blob: fac144053e9b8452f621e0ecf28b1948be08edc3 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono0b462322008-03-12 22:44:24 +00003# Generated by GNU Autoconf 2.59 for pjproject 0.8.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Benny Prijono0b462322008-03-12 22:44:24 +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 Prijono0b462322008-03-12 22:44:24 +000012# Be Bourne compatible
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013if 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+"$@"}'='"$@"'
Benny Prijono0b462322008-03-12 22:44:24 +000019elif 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
Benny Prijonofdafd402008-01-23 14:34:46 +000023
Benny Prijono0b462322008-03-12 22:44:24 +000024# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000029fi
30
31
Benny Prijono0b462322008-03-12 22:44:24 +000032# 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
Benny Prijono7e0d75f2006-12-25 20:34:14 +000063
64
Benny Prijono0b462322008-03-12 22:44:24 +000065# 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
Benny Prijono0b462322008-03-12 22:44:24 +0000100 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
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000110for 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
Benny Prijono0b462322008-03-12 22:44:24 +0000117 ;;
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
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000123 fi
Benny Prijono0b462322008-03-12 22:44:24 +0000124 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 '')
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000130 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=.
Benny Prijono0b462322008-03-12 22:44:24 +0000135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000137 /*)
Benny Prijono0b462322008-03-12 22:44:24 +0000138 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
Benny Prijonofdafd402008-01-23 14:34:46 +0000152done
Benny Prijono0b462322008-03-12 22:44:24 +0000153;;
154 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000155
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
Benny Prijono0b462322008-03-12 22:44:24 +0000158 # 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.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijono0b462322008-03-12 22:44:24 +0000163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000165 sed '
166 N
Benny Prijono0b462322008-03-12 22:44:24 +0000167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000170 t loop
Benny Prijono0b462322008-03-12 22:44:24 +0000171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000173 ' >$as_me.lineno &&
Benny Prijono0b462322008-03-12 22:44:24 +0000174 chmod +x $as_me.lineno ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000175 { 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
Benny Prijono0b462322008-03-12 22:44:24 +0000180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000182 # Exit status is that of the last command.
183 exit
184}
185
186
Benny Prijono0b462322008-03-12 22:44:24 +0000187case `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= ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000192esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000193
Benny Prijono0b462322008-03-12 22:44:24 +0000194if expr a : '\(a\)' >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000195 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
Benny Prijono0b462322008-03-12 22:44:24 +0000203 # 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
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000207 as_ln_s='cp -p'
Benny Prijono0b462322008-03-12 22:44:24 +0000208 else
209 as_ln_s='ln -s'
210 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
Benny Prijono0b462322008-03-12 22:44:24 +0000216rm -f conf$$ conf$$.exe conf$$.file
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000217
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 Prijono0b462322008-03-12 22:44:24 +0000225as_executable_p="test -f"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000226
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
Benny Prijono0b462322008-03-12 22:44:24 +0000234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000239
Benny Prijono0b462322008-03-12 22:44:24 +0000240# CDPATH.
241$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
Benny Prijono0b462322008-03-12 22:44:24 +0000249exec 6>&1
250
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000251#
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
Benny Prijono0b462322008-03-12 22:44:24 +0000262# 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 Prijono1c5f4e42008-02-07 13:11:39 +0000270PACKAGE_VERSION='0.8'
271PACKAGE_STRING='pjproject 0.8'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
Benny Prijono0b462322008-03-12 22:44:24 +0000277#if HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000278# include <sys/types.h>
279#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000280#if HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000281# include <sys/stat.h>
282#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000283#if STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000284# include <stdlib.h>
285# include <stddef.h>
286#else
Benny Prijono0b462322008-03-12 22:44:24 +0000287# if HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000288# include <stdlib.h>
289# endif
290#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000293# include <memory.h>
294# endif
295# include <string.h>
296#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000297#if HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000298# include <strings.h>
299#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000300#if HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000301# include <inttypes.h>
Benny Prijono0b462322008-03-12 22:44:24 +0000302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000306#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000307#if HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000308# include <unistd.h>
309#endif"
310
Benny Prijono71f657d2008-03-17 14:24:21 +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_pa_use_oss 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_g722_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'
Benny Prijono0b462322008-03-12 22:44:24 +0000342datadir='${prefix}/share'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
Benny Prijono0b462322008-03-12 22:44:24 +0000346libdir='${exec_prefix}/lib'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000347includedir='${prefix}/include'
348oldincludedir='/usr/include'
Benny Prijono0b462322008-03-12 22:44:24 +0000349infodir='${prefix}/info'
350mandir='${prefix}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
Benny Prijono0b462322008-03-12 22:44:24 +0000357 eval "$ac_prev=\$ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000358 ac_prev=
359 continue
360 fi
361
Benny Prijono0b462322008-03-12 22:44:24 +0000362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
Benny Prijono0b462322008-03-12 22:44:24 +0000366 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000367
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
Benny Prijono0b462322008-03-12 22:44:24 +0000388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000389 ac_prev=datadir ;;
Benny Prijono0b462322008-03-12 22:44:24 +0000390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000392 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.
Benny Prijono0b462322008-03-12 22:44:24 +0000397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
Benny Prijono0b462322008-03-12 22:44:24 +0000406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000409 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'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000415
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 \
Benny Prijono0b462322008-03-12 22:44:24 +0000466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Benny Prijono0b462322008-03-12 22:44:24 +0000470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000472 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.
Benny Prijono0b462322008-03-12 22:44:24 +0000588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000591 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'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
Benny Prijono0b462322008-03-12 22:44:24 +0000601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000606
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; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000638 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
Benny Prijono0b462322008-03-12 22:44:24 +0000657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000659do
Benny Prijono0b462322008-03-12 22:44:24 +0000660 eval ac_val=$`echo $ac_var`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000661 case $ac_val in
Benny Prijono0b462322008-03-12 22:44:24 +0000662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000665 esac
Benny Prijono0b462322008-03-12 22:44:24 +0000666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000678done
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
Benny Prijono0b462322008-03-12 22:44:24 +0000707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +0000712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000714echo X"$0" |
Benny Prijono0b462322008-03-12 22:44:24 +0000715 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
Benny Prijono0b462322008-03-12 22:44:24 +0000721 if test ! -r $srcdir/$ac_unique_file; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
Benny Prijono0b462322008-03-12 22:44:24 +0000727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { 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; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000733 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000734 fi
Benny Prijonofdafd402008-01-23 14:34:46 +0000735fi
Benny Prijono0b462322008-03-12 22:44:24 +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; }; }
739srcdir=`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
768ac_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
776ac_env_CPP_set=${CPP+set}
777ac_env_CPP_value=$CPP
778ac_cv_env_CPP_set=${CPP+set}
779ac_cv_env_CPP_value=$CPP
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000780
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 Prijono1c5f4e42008-02-07 13:11:39 +0000788\`configure' configures pjproject 0.8 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 Prijono0b462322008-03-12 22:44:24 +0000808_ACEOF
809
810 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]
Benny Prijono0b462322008-03-12 22:44:24 +0000828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000829 --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]
Benny Prijono0b462322008-03-12 22:44:24 +0000835 --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 Prijono1c5f4e42008-02-07 13:11:39 +0000850 short | recursive ) echo "Configuration of pjproject 0.8:";;
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 Prijono0b462322008-03-12 22:44:24 +0000860 --disable-oss Disable OSS audio (default: not disabled)
861
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000862 --disable-small-filter Exclude small filter in resampling
863 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000864 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
865 --disable-g711-codec Exclude G.711 codecs from the build
866 --disable-l16-codec Exclude Linear/L16 codec family from the build
867 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +0000868 --disable-g722-codec Exclude G.722 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000869 --disable-speex-codec Exclude Speex codecs in the build
870 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +0000871 --enable-libsamplerate Link with libsamplerate when available. Note that
872 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoce1db762007-02-14 02:21:08 +0000873 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000874
875
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
Benny Prijono0b462322008-03-12 22:44:24 +0000881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000883 CXX C++ compiler command
884 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000885 CPP C preprocessor
886
887Use these variables to override the choices made by `configure' or to help
888it to find libraries and programs with nonstandard names/locations.
889
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000890_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000891fi
892
893if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
Benny Prijono0b462322008-03-12 22:44:24 +0000895 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono0b462322008-03-12 22:44:24 +0000897 test -d $ac_dir || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000898 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000899
Benny Prijono0b462322008-03-12 22:44:24 +0000900if test "$ac_dir" != .; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijono0b462322008-03-12 22:44:24 +0000902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904else
905 ac_dir_suffix= ac_top_builddir=
906fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000907
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000908case $srcdir in
Benny Prijono0b462322008-03-12 22:44:24 +0000909 .) # No --srcdir option. We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000910 ac_srcdir=.
Benny Prijono0b462322008-03-12 22:44:24 +0000911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000917 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijono0b462322008-03-12 22:44:24 +0000918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000922esac
923
Benny Prijono0b462322008-03-12 22:44:24 +0000924# Do not use `cd foo && pwd` to compute absolute paths, because
925# the directories may not exist.
926case `pwd` in
927.) ac_abs_builddir="$ac_dir";;
928*)
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934esac
935case $ac_abs_builddir in
936.) ac_abs_top_builddir=${ac_top_builddir}.;;
937*)
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_srcdir=$ac_srcdir;;
946*)
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_top_srcdir=$ac_top_srcdir;;
955*)
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961esac
962
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000975 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijono0b462322008-03-12 22:44:24 +0000977 fi
978 cd $ac_popdir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000979 done
980fi
981
Benny Prijono0b462322008-03-12 22:44:24 +0000982test -n "$ac_init_help" && exit 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000983if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000984 cat <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +0000985pjproject configure 0.8
Benny Prijono0b462322008-03-12 22:44:24 +0000986generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000987
Benny Prijono0b462322008-03-12 22:44:24 +0000988Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000989This configure script is free software; the Free Software Foundation
990gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000991_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +0000992 exit 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000993fi
Benny Prijono0b462322008-03-12 22:44:24 +0000994exec 5>config.log
995cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000996This file contains any messages produced by compilers while
997running configure, to aid debugging if configure makes a mistake.
998
Benny Prijono1c5f4e42008-02-07 13:11:39 +0000999It was created by pjproject $as_me 0.8, which was
Benny Prijono0b462322008-03-12 22:44:24 +00001000generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001001
1002 $ $0 $@
1003
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001004_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001005{
1006cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001007## --------- ##
1008## Platform. ##
1009## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001010
1011hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019
1020/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Benny Prijono0b462322008-03-12 22:44:24 +00001023hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001024/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027
1028_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001029
1030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031for as_dir in $PATH
1032do
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036done
1037
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001038} >&5
1039
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001040cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001041
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001042
1043## ----------- ##
1044## Core tests. ##
1045## ----------- ##
1046
1047_ACEOF
1048
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001049
1050# Keep a trace of the command line.
1051# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001052# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001053# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001054# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001055ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001056ac_configure_args0=
1057ac_configure_args1=
Benny Prijono0b462322008-03-12 22:44:24 +00001058ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001059ac_must_keep_next=false
1060for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001061do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001062 for ac_arg
1063 do
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
Benny Prijono0b462322008-03-12 22:44:24 +00001069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 2)
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1087 ;;
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1090 fi
Benny Prijono0b462322008-03-12 22:44:24 +00001091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001094 ;;
1095 esac
1096 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001097done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001098$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099$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 +00001100
1101# When interrupted or exit'd, cleanup temporary files, and complete
1102# config.log. We remove comments because anyway the quotes in there
1103# would cause problems or look ugly.
Benny Prijono0b462322008-03-12 22:44:24 +00001104# WARNING: Be sure not to use single quotes in there, as some shells,
1105# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001106trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001108 {
1109 echo
1110
1111 cat <<\_ASBOX
1112## ---------------- ##
1113## Cache variables. ##
1114## ---------------- ##
1115_ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
Benny Prijono0b462322008-03-12 22:44:24 +00001118{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001119 (set) 2>&1 |
Benny Prijono0b462322008-03-12 22:44:24 +00001120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001122 sed -n \
Benny Prijono0b462322008-03-12 22:44:24 +00001123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001125 ;;
Benny Prijono0b462322008-03-12 22:44:24 +00001126 *)
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ;;
1130 esac;
1131}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001132 echo
1133
1134 cat <<\_ASBOX
1135## ----------------- ##
1136## Output variables. ##
1137## ----------------- ##
1138_ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1141 do
Benny Prijono0b462322008-03-12 22:44:24 +00001142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001144 done | sort
1145 echo
1146
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
Benny Prijono0b462322008-03-12 22:44:24 +00001149## ------------- ##
1150## Output files. ##
1151## ------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001152_ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1155 do
Benny Prijono0b462322008-03-12 22:44:24 +00001156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001158 done | sort
1159 echo
1160 fi
1161
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164## ----------- ##
1165## confdefs.h. ##
1166## ----------- ##
1167_ASBOX
1168 echo
Benny Prijono0b462322008-03-12 22:44:24 +00001169 sed "/^$/d" confdefs.h | sort
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001170 echo
1171 fi
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
Benny Prijono0b462322008-03-12 22:44:24 +00001176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001178 exit $exit_status
Benny Prijono0b462322008-03-12 22:44:24 +00001179 ' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001180for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182done
1183ac_signal=0
1184
1185# confdefs.h avoids OS command line length limits that DEFS can exceed.
Benny Prijono0b462322008-03-12 22:44:24 +00001186rm -rf conftest* confdefs.h
1187# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188echo >confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001189
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001190# Predefined preprocessor variables.
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_NAME "$PACKAGE_NAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_VERSION "$PACKAGE_VERSION"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_STRING "$PACKAGE_STRING"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214_ACEOF
1215
1216
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001217# Let the site file select an alternate cache file if it wants to.
1218# Prefer explicitly selected file to automatically selected ones.
Benny Prijono0b462322008-03-12 22:44:24 +00001219if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001225fi
Benny Prijono0b462322008-03-12 22:44:24 +00001226for ac_site_file in $CONFIG_SITE; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001227 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001229echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001230 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001231 . "$ac_site_file"
1232 fi
1233done
1234
1235if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001240echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001244 esac
1245 fi
1246else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001248echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1250fi
1251
1252# Check that the precious variables saved in the cache have kept the same
1253# value.
1254ac_cache_corrupted=false
Benny Prijono0b462322008-03-12 22:44:24 +00001255for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
Benny Prijono0b462322008-03-12 22:44:24 +00001259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001261 case $ac_old_set,$ac_new_set in
1262 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001263 { 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 +00001264echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001268echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1271 *)
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001274echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001276echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001278echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001279 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001280 fi;;
1281 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001282 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
Benny Prijono0b462322008-03-12 22:44:24 +00001285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001292 esac
1293 fi
1294done
1295if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001297echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001299echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1301fi
1302
1303ac_ext=c
1304ac_cpp='$CPP $CPPFLAGS'
1305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001309
1310
Benny Prijono0b462322008-03-12 22:44:24 +00001311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
Benny Prijono5b818b22006-09-17 22:58:51 +00001336host_orig="$host"
1337
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001338ac_aux_dir=
Benny Prijono0b462322008-03-12 22:44:24 +00001339for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1340 if test -f $ac_dir/install-sh; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
Benny Prijono0b462322008-03-12 22:44:24 +00001344 elif test -f $ac_dir/install.sh; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
Benny Prijono0b462322008-03-12 22:44:24 +00001348 elif test -f $ac_dir/shtool; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1352 fi
1353done
1354if test -z "$ac_aux_dir"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001357 { (exit 1); exit 1; }; }
1358fi
Benny Prijono0b462322008-03-12 22:44:24 +00001359ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001362
1363# Make sure we can run config.sub.
Benny Prijono0b462322008-03-12 22:44:24 +00001364$ac_config_sub sun4 >/dev/null 2>&1 ||
1365 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1366echo "$as_me: error: cannot run $ac_config_sub" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001367 { (exit 1); exit 1; }; }
1368
Benny Prijono0b462322008-03-12 22:44:24 +00001369echo "$as_me:$LINENO: checking build system type" >&5
1370echo $ECHO_N "checking build system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001371if test "${ac_cv_build+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373else
Benny Prijono0b462322008-03-12 22:44:24 +00001374 ac_cv_build_alias=$build_alias
1375test -z "$ac_cv_build_alias" &&
1376 ac_cv_build_alias=`$ac_config_guess`
1377test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001378 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001379echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1380 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +00001381ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1382 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1383echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001384 { (exit 1); exit 1; }; }
1385
1386fi
Benny Prijono0b462322008-03-12 22:44:24 +00001387echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1388echo "${ECHO_T}$ac_cv_build" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001389build=$ac_cv_build
Benny Prijono0b462322008-03-12 22:44:24 +00001390build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1391build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1392build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001393
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001394
Benny Prijono0b462322008-03-12 22:44:24 +00001395echo "$as_me:$LINENO: checking host system type" >&5
1396echo $ECHO_N "checking host system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001397if test "${ac_cv_host+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399else
Benny Prijono0b462322008-03-12 22:44:24 +00001400 ac_cv_host_alias=$host_alias
1401test -z "$ac_cv_host_alias" &&
1402 ac_cv_host_alias=$ac_cv_build_alias
1403ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1404 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1405echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001406 { (exit 1); exit 1; }; }
1407
1408fi
Benny Prijono0b462322008-03-12 22:44:24 +00001409echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1410echo "${ECHO_T}$ac_cv_host" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001411host=$ac_cv_host
Benny Prijono0b462322008-03-12 22:44:24 +00001412host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1413host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1414host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001415
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001416
Benny Prijono0b462322008-03-12 22:44:24 +00001417echo "$as_me:$LINENO: checking target system type" >&5
1418echo $ECHO_N "checking target system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001419if test "${ac_cv_target+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1421else
Benny Prijono0b462322008-03-12 22:44:24 +00001422 ac_cv_target_alias=$target_alias
1423test "x$ac_cv_target_alias" = "x" &&
1424 ac_cv_target_alias=$ac_cv_host_alias
1425ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1426 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1427echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001428 { (exit 1); exit 1; }; }
1429
1430fi
Benny Prijono0b462322008-03-12 22:44:24 +00001431echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1432echo "${ECHO_T}$ac_cv_target" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001433target=$ac_cv_target
Benny Prijono0b462322008-03-12 22:44:24 +00001434target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1435target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1436target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001437
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001438
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001439# The aliases save the names the user supplied, while $host etc.
1440# will get canonicalized.
1441test -n "$target_alias" &&
1442 test "$program_prefix$program_suffix$program_transform_name" = \
1443 NONENONEs,x,x, &&
1444 program_prefix=${target_alias}-
Benny Prijono0b462322008-03-12 22:44:24 +00001445 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 +00001446
Benny Prijono0b462322008-03-12 22:44:24 +00001447 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 +00001448
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001449
Benny Prijono12483112007-03-12 10:44:38 +00001450
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001451if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001452 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001453else
1454 CFLAGS="$CFLAGS"
1455fi
1456
1457CXXFLAGS="$CFLAGS $CXXFLAGS"
1458
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001459ac_ext=c
1460ac_cpp='$CPP $CPPFLAGS'
1461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463ac_compiler_gnu=$ac_cv_c_compiler_gnu
1464if test -n "$ac_tool_prefix"; then
1465 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1466set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001467echo "$as_me:$LINENO: checking for $ac_word" >&5
1468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001469if test "${ac_cv_prog_CC+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471else
1472 if test -n "$CC"; then
1473 ac_cv_prog_CC="$CC" # Let the user override the test.
1474else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478 IFS=$as_save_IFS
1479 test -z "$as_dir" && as_dir=.
1480 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001482 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1484 break 2
1485 fi
1486done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001487done
1488
1489fi
1490fi
1491CC=$ac_cv_prog_CC
1492if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001493 echo "$as_me:$LINENO: result: $CC" >&5
1494echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001495else
Benny Prijono0b462322008-03-12 22:44:24 +00001496 echo "$as_me:$LINENO: result: no" >&5
1497echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001498fi
1499
1500fi
1501if test -z "$ac_cv_prog_CC"; then
1502 ac_ct_CC=$CC
1503 # Extract the first word of "gcc", so it can be a program name with args.
1504set dummy gcc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001505echo "$as_me:$LINENO: checking for $ac_word" >&5
1506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001507if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509else
1510 if test -n "$ac_ct_CC"; then
1511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1512else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514for as_dir in $PATH
1515do
1516 IFS=$as_save_IFS
1517 test -z "$as_dir" && as_dir=.
1518 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001520 ac_cv_prog_ac_ct_CC="gcc"
1521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1522 break 2
1523 fi
1524done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001525done
1526
1527fi
1528fi
1529ac_ct_CC=$ac_cv_prog_ac_ct_CC
1530if test -n "$ac_ct_CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001531 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1532echo "${ECHO_T}$ac_ct_CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001533else
Benny Prijono0b462322008-03-12 22:44:24 +00001534 echo "$as_me:$LINENO: result: no" >&5
1535echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001536fi
1537
Benny Prijono0b462322008-03-12 22:44:24 +00001538 CC=$ac_ct_CC
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001539else
1540 CC="$ac_cv_prog_CC"
1541fi
1542
1543if test -z "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001544 if test -n "$ac_tool_prefix"; then
1545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001546set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001547echo "$as_me:$LINENO: checking for $ac_word" >&5
1548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001549if test "${ac_cv_prog_CC+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552 if test -n "$CC"; then
1553 ac_cv_prog_CC="$CC" # Let the user override the test.
1554else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556for as_dir in $PATH
1557do
1558 IFS=$as_save_IFS
1559 test -z "$as_dir" && as_dir=.
1560 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001562 ac_cv_prog_CC="${ac_tool_prefix}cc"
1563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 break 2
1565 fi
1566done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001567done
1568
1569fi
1570fi
1571CC=$ac_cv_prog_CC
1572if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001573 echo "$as_me:$LINENO: result: $CC" >&5
1574echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001575else
Benny Prijono0b462322008-03-12 22:44:24 +00001576 echo "$as_me:$LINENO: result: no" >&5
1577echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001578fi
1579
Benny Prijono0b462322008-03-12 22:44:24 +00001580fi
1581if test -z "$ac_cv_prog_CC"; then
1582 ac_ct_CC=$CC
1583 # Extract the first word of "cc", so it can be a program name with args.
1584set dummy cc; ac_word=$2
1585echo "$as_me:$LINENO: checking for $ac_word" >&5
1586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 if test -n "$ac_ct_CC"; then
1591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592else
1593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594for as_dir in $PATH
1595do
1596 IFS=$as_save_IFS
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_ac_ct_CC="cc"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 break 2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001603 fi
Benny Prijono0b462322008-03-12 22:44:24 +00001604done
1605done
1606
1607fi
1608fi
1609ac_ct_CC=$ac_cv_prog_ac_ct_CC
1610if test -n "$ac_ct_CC"; then
1611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1612echo "${ECHO_T}$ac_ct_CC" >&6
1613else
1614 echo "$as_me:$LINENO: result: no" >&5
1615echo "${ECHO_T}no" >&6
1616fi
1617
1618 CC=$ac_ct_CC
1619else
1620 CC="$ac_cv_prog_CC"
1621fi
1622
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001623fi
1624if test -z "$CC"; then
1625 # Extract the first word of "cc", so it can be a program name with args.
1626set dummy cc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001627echo "$as_me:$LINENO: checking for $ac_word" >&5
1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001629if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1634else
1635 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637for as_dir in $PATH
1638do
1639 IFS=$as_save_IFS
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1644 ac_prog_rejected=yes
1645 continue
1646 fi
1647 ac_cv_prog_CC="cc"
1648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649 break 2
1650 fi
1651done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001652done
1653
1654if test $ac_prog_rejected = yes; then
1655 # We found a bogon in the path, so make sure we never use it.
1656 set dummy $ac_cv_prog_CC
1657 shift
1658 if test $# != 0; then
1659 # We chose a different compiler from the bogus one.
1660 # However, it has the same basename, so the bogon will be chosen
1661 # first if we set CC to just the basename; use the full file name.
1662 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001663 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001664 fi
1665fi
1666fi
1667fi
1668CC=$ac_cv_prog_CC
1669if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001670 echo "$as_me:$LINENO: result: $CC" >&5
1671echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001672else
Benny Prijono0b462322008-03-12 22:44:24 +00001673 echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001675fi
1676
1677fi
1678if test -z "$CC"; then
1679 if test -n "$ac_tool_prefix"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001680 for ac_prog in cl
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001681 do
1682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001684echo "$as_me:$LINENO: checking for $ac_word" >&5
1685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001686if test "${ac_cv_prog_CC+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688else
1689 if test -n "$CC"; then
1690 ac_cv_prog_CC="$CC" # Let the user override the test.
1691else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001699 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 break 2
1702 fi
1703done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001704done
1705
1706fi
1707fi
1708CC=$ac_cv_prog_CC
1709if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001710 echo "$as_me:$LINENO: result: $CC" >&5
1711echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001712else
Benny Prijono0b462322008-03-12 22:44:24 +00001713 echo "$as_me:$LINENO: result: no" >&5
1714echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001715fi
1716
1717 test -n "$CC" && break
1718 done
1719fi
1720if test -z "$CC"; then
1721 ac_ct_CC=$CC
Benny Prijono0b462322008-03-12 22:44:24 +00001722 for ac_prog in cl
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001723do
1724 # Extract the first word of "$ac_prog", so it can be a program name with args.
1725set dummy $ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001726echo "$as_me:$LINENO: checking for $ac_word" >&5
1727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735for as_dir in $PATH
1736do
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001741 ac_cv_prog_ac_ct_CC="$ac_prog"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1744 fi
1745done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001746done
1747
1748fi
1749fi
1750ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751if test -n "$ac_ct_CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753echo "${ECHO_T}$ac_ct_CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001754else
Benny Prijono0b462322008-03-12 22:44:24 +00001755 echo "$as_me:$LINENO: result: no" >&5
1756echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001757fi
1758
1759 test -n "$ac_ct_CC" && break
1760done
1761
Benny Prijono0b462322008-03-12 22:44:24 +00001762 CC=$ac_ct_CC
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001763fi
1764
1765fi
1766
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001767
1768test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1769See \`config.log' for more details." >&5
1770echo "$as_me: error: no acceptable C compiler found in \$PATH
1771See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001772 { (exit 1); exit 1; }; }
1773
1774# Provide some information about the compiler.
Benny Prijono0b462322008-03-12 22:44:24 +00001775echo "$as_me:$LINENO:" \
1776 "checking for C compiler version" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001777ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono0b462322008-03-12 22:44:24 +00001778{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1779 (eval $ac_compiler --version </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001780 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001782 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00001783{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1784 (eval $ac_compiler -v </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001785 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001787 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00001788{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1789 (eval $ac_compiler -V </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001790 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001792 (exit $ac_status); }
1793
1794cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001795/* confdefs.h. */
1796_ACEOF
1797cat confdefs.h >>conftest.$ac_ext
1798cat >>conftest.$ac_ext <<_ACEOF
1799/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001800
1801int
1802main ()
1803{
1804
1805 ;
1806 return 0;
1807}
1808_ACEOF
1809ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001810ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001811# Try to create an executable without -o first, disregard a.out.
1812# It will help us diagnose broken compilers, and finding out an intuition
1813# of exeext.
Benny Prijono0b462322008-03-12 22:44:24 +00001814echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1815echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001816ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijono0b462322008-03-12 22:44:24 +00001817if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1818 (eval $ac_link_default) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001819 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001821 (exit $ac_status); }; then
Benny Prijono0b462322008-03-12 22:44:24 +00001822 # Find the output, starting from the most likely. This scheme is
1823# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1824# resort.
1825
1826# Be careful to initialize this variable, since it used to be cached.
1827# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1828ac_cv_exeext=
1829# b.out is created by i960 compilers.
1830for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001831do
1832 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001833 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1835 ;;
1836 conftest.$ac_ext )
1837 # This is the source file.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001838 ;;
1839 [ab].out )
1840 # We found the default executable, but exeext='' is most
1841 # certainly right.
1842 break;;
1843 *.* )
Benny Prijono0b462322008-03-12 22:44:24 +00001844 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1845 # FIXME: I believe we export ac_cv_exeext for Libtool,
1846 # but it would be cool to find out if it's true. Does anybody
1847 # maintain Libtool? --akim.
1848 export ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001849 break;;
1850 * )
1851 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001852 esac
1853done
1854else
1855 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001856sed 's/^/| /' conftest.$ac_ext >&5
1857
1858{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1859See \`config.log' for more details." >&5
1860echo "$as_me: error: C compiler cannot create executables
1861See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001862 { (exit 77); exit 77; }; }
1863fi
1864
1865ac_exeext=$ac_cv_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00001866echo "$as_me:$LINENO: result: $ac_file" >&5
1867echo "${ECHO_T}$ac_file" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001868
Benny Prijono0b462322008-03-12 22:44:24 +00001869# Check the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001870# the compiler is broken, or we cross compile.
Benny Prijono0b462322008-03-12 22:44:24 +00001871echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1872echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001873# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1874# If not cross compiling, check that we can run a simple program.
1875if test "$cross_compiling" != yes; then
1876 if { ac_try='./$ac_file'
Benny Prijono0b462322008-03-12 22:44:24 +00001877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1878 (eval $ac_try) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001879 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001881 (exit $ac_status); }; }; then
1882 cross_compiling=no
1883 else
1884 if test "$cross_compiling" = maybe; then
1885 cross_compiling=yes
1886 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001887 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1888If you meant to cross compile, use \`--host'.
1889See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001890echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001891If you meant to cross compile, use \`--host'.
1892See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001893 { (exit 1); exit 1; }; }
1894 fi
1895 fi
1896fi
Benny Prijono0b462322008-03-12 22:44:24 +00001897echo "$as_me:$LINENO: result: yes" >&5
1898echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001899
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001900rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001901ac_clean_files=$ac_clean_files_save
Benny Prijono0b462322008-03-12 22:44:24 +00001902# Check the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001903# the compiler is broken, or we cross compile.
Benny Prijono0b462322008-03-12 22:44:24 +00001904echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1905echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1906echo "$as_me:$LINENO: result: $cross_compiling" >&5
1907echo "${ECHO_T}$cross_compiling" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001908
Benny Prijono0b462322008-03-12 22:44:24 +00001909echo "$as_me:$LINENO: checking for suffix of executables" >&5
1910echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1912 (eval $ac_link) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001913 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001915 (exit $ac_status); }; then
1916 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1917# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1918# work properly (i.e., refer to `conftest.exe'), while it won't with
1919# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001920for ac_file in conftest.exe conftest conftest.*; do
1921 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001922 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001924 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono0b462322008-03-12 22:44:24 +00001925 export ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001926 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001927 * ) break;;
1928 esac
1929done
1930else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001931 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1932See \`config.log' for more details." >&5
1933echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1934See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001935 { (exit 1); exit 1; }; }
1936fi
1937
1938rm -f conftest$ac_cv_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00001939echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1940echo "${ECHO_T}$ac_cv_exeext" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001941
1942rm -f conftest.$ac_ext
1943EXEEXT=$ac_cv_exeext
1944ac_exeext=$EXEEXT
Benny Prijono0b462322008-03-12 22:44:24 +00001945echo "$as_me:$LINENO: checking for suffix of object files" >&5
1946echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001947if test "${ac_cv_objext+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001951/* confdefs.h. */
1952_ACEOF
1953cat confdefs.h >>conftest.$ac_ext
1954cat >>conftest.$ac_ext <<_ACEOF
1955/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001956
1957int
1958main ()
1959{
1960
1961 ;
1962 return 0;
1963}
1964_ACEOF
1965rm -f conftest.o conftest.obj
Benny Prijono0b462322008-03-12 22:44:24 +00001966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1967 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001968 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001970 (exit $ac_status); }; then
Benny Prijono0b462322008-03-12 22:44:24 +00001971 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001972 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001974 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1975 break;;
1976 esac
1977done
1978else
1979 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1983See \`config.log' for more details." >&5
1984echo "$as_me: error: cannot compute suffix of object files: cannot compile
1985See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001986 { (exit 1); exit 1; }; }
1987fi
1988
1989rm -f conftest.$ac_cv_objext conftest.$ac_ext
1990fi
Benny Prijono0b462322008-03-12 22:44:24 +00001991echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1992echo "${ECHO_T}$ac_cv_objext" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001993OBJEXT=$ac_cv_objext
1994ac_objext=$OBJEXT
Benny Prijono0b462322008-03-12 22:44:24 +00001995echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1996echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001997if test "${ac_cv_c_compiler_gnu+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999else
2000 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002001/* confdefs.h. */
2002_ACEOF
2003cat confdefs.h >>conftest.$ac_ext
2004cat >>conftest.$ac_ext <<_ACEOF
2005/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002006
2007int
2008main ()
2009{
2010#ifndef __GNUC__
2011 choke me
2012#endif
2013
2014 ;
2015 return 0;
2016}
2017_ACEOF
2018rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2020 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002021 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002022 grep -v '^ *+' conftest.er1 >conftest.err
2023 rm -f conftest.er1
2024 cat conftest.err >&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002026 (exit $ac_status); } &&
2027 { ac_try='test -z "$ac_c_werror_flag"
2028 || test ! -s conftest.err'
2029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 (eval $ac_try) 2>&5
2031 ac_status=$?
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; } &&
2034 { ac_try='test -s conftest.$ac_objext'
2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 (eval $ac_try) 2>&5
2037 ac_status=$?
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002040 ac_compiler_gnu=yes
2041else
2042 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002043sed 's/^/| /' conftest.$ac_ext >&5
2044
Benny Prijono0b462322008-03-12 22:44:24 +00002045ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002046fi
Benny Prijono0b462322008-03-12 22:44:24 +00002047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002048ac_cv_c_compiler_gnu=$ac_compiler_gnu
2049
2050fi
Benny Prijono0b462322008-03-12 22:44:24 +00002051echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2052echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002053GCC=`test $ac_compiler_gnu = yes && echo yes`
2054ac_test_CFLAGS=${CFLAGS+set}
2055ac_save_CFLAGS=$CFLAGS
Benny Prijono0b462322008-03-12 22:44:24 +00002056CFLAGS="-g"
2057echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2058echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002059if test "${ac_cv_prog_cc_g+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
Benny Prijono0b462322008-03-12 22:44:24 +00002062 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002063/* confdefs.h. */
2064_ACEOF
2065cat confdefs.h >>conftest.$ac_ext
2066cat >>conftest.$ac_ext <<_ACEOF
2067/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002068
2069int
2070main ()
2071{
2072
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002080 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002081 grep -v '^ *+' conftest.er1 >conftest.err
2082 rm -f conftest.er1
2083 cat conftest.err >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002085 (exit $ac_status); } &&
2086 { ac_try='test -z "$ac_c_werror_flag"
2087 || test ! -s conftest.err'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 (eval $ac_try) 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; } &&
2093 { ac_try='test -s conftest.$ac_objext'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002099 ac_cv_prog_cc_g=yes
2100else
2101 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002102sed 's/^/| /' conftest.$ac_ext >&5
2103
Benny Prijono0b462322008-03-12 22:44:24 +00002104ac_cv_prog_cc_g=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002105fi
Benny Prijono0b462322008-03-12 22:44:24 +00002106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002107fi
Benny Prijono0b462322008-03-12 22:44:24 +00002108echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2109echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002110if test "$ac_test_CFLAGS" = set; then
2111 CFLAGS=$ac_save_CFLAGS
2112elif test $ac_cv_prog_cc_g = yes; then
2113 if test "$GCC" = yes; then
2114 CFLAGS="-g -O2"
2115 else
2116 CFLAGS="-g"
2117 fi
2118else
2119 if test "$GCC" = yes; then
2120 CFLAGS="-O2"
2121 else
2122 CFLAGS=
2123 fi
2124fi
Benny Prijono0b462322008-03-12 22:44:24 +00002125echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2126echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2127if test "${ac_cv_prog_cc_stdc+set}" = set; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
Benny Prijono0b462322008-03-12 22:44:24 +00002130 ac_cv_prog_cc_stdc=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002131ac_save_CC=$CC
2132cat >conftest.$ac_ext <<_ACEOF
2133/* confdefs.h. */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h. */
2138#include <stdarg.h>
2139#include <stdio.h>
2140#include <sys/types.h>
2141#include <sys/stat.h>
2142/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2143struct buf { int x; };
2144FILE * (*rcsopen) (struct buf *, struct stat *, int);
2145static char *e (p, i)
2146 char **p;
2147 int i;
2148{
2149 return p[i];
2150}
2151static char *f (char * (*g) (char **, int), char **p, ...)
2152{
2153 char *s;
2154 va_list v;
2155 va_start (v,p);
2156 s = g (p, va_arg (v,int));
2157 va_end (v);
2158 return s;
2159}
2160
2161/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2162 function prototypes and stuff, but not '\xHH' hex character constants.
2163 These don't provoke an error unfortunately, instead are silently treated
Benny Prijono0b462322008-03-12 22:44:24 +00002164 as 'x'. The following induces an error, until -std1 is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2166 array size at least. It's necessary to write '\x00'==0 to get something
Benny Prijono0b462322008-03-12 22:44:24 +00002167 that's true only with -std1. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002168int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2169
2170int test (int i, double x);
2171struct s1 {int (*f) (int a);};
2172struct s2 {int (*f) (double a);};
2173int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2174int argc;
2175char **argv;
2176int
2177main ()
2178{
2179return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2180 ;
2181 return 0;
2182}
2183_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00002184# Don't try gcc -ansi; that turns off useful extensions and
2185# breaks some systems' header files.
2186# AIX -qlanglvl=ansi
2187# Ultrix and OSF/1 -std1
2188# HP-UX 10.20 and later -Ae
2189# HP-UX older versions -Aa -D_HPUX_SOURCE
2190# SVR4 -Xc -D__EXTENSIONS__
2191for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002192do
2193 CC="$ac_save_CC $ac_arg"
2194 rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002197 ac_status=$?
2198 grep -v '^ *+' conftest.er1 >conftest.err
2199 rm -f conftest.er1
2200 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002202 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag"
2204 || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 ac_cv_prog_cc_stdc=$ac_arg
2217break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002218else
2219 echo "$as_me: failed program was:" >&5
2220sed 's/^/| /' conftest.$ac_ext >&5
2221
2222fi
Benny Prijono0b462322008-03-12 22:44:24 +00002223rm -f conftest.err conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002224done
Benny Prijono0b462322008-03-12 22:44:24 +00002225rm -f conftest.$ac_ext conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002226CC=$ac_save_CC
2227
2228fi
Benny Prijono0b462322008-03-12 22:44:24 +00002229
2230case "x$ac_cv_prog_cc_stdc" in
2231 x|xno)
2232 echo "$as_me:$LINENO: result: none needed" >&5
2233echo "${ECHO_T}none needed" >&6 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002234 *)
Benny Prijono0b462322008-03-12 22:44:24 +00002235 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2236echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2237 CC="$CC $ac_cv_prog_cc_stdc" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002238esac
2239
Benny Prijono0b462322008-03-12 22:44:24 +00002240# Some people use a C++ compiler to compile C. Since we use `exit',
2241# in C++ we need to declare it. In case someone uses the same compiler
2242# for both compiling C and C++ we need to have the C++ compiler decide
2243# the declaration of exit, since it's the most demanding environment.
2244cat >conftest.$ac_ext <<_ACEOF
2245#ifndef __cplusplus
2246 choke me
2247#endif
2248_ACEOF
2249rm -f conftest.$ac_objext
2250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>conftest.er1
2252 ac_status=$?
2253 grep -v '^ *+' conftest.er1 >conftest.err
2254 rm -f conftest.er1
2255 cat conftest.err >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -z "$ac_c_werror_flag"
2259 || test ! -s conftest.err'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; } &&
2265 { ac_try='test -s conftest.$ac_objext'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 for ac_declaration in \
2272 '' \
2273 'extern "C" void std::exit (int) throw (); using std::exit;' \
2274 'extern "C" void std::exit (int); using std::exit;' \
2275 'extern "C" void exit (int) throw ();' \
2276 'extern "C" void exit (int);' \
2277 'void exit (int);'
2278do
2279 cat >conftest.$ac_ext <<_ACEOF
2280/* confdefs.h. */
2281_ACEOF
2282cat confdefs.h >>conftest.$ac_ext
2283cat >>conftest.$ac_ext <<_ACEOF
2284/* end confdefs.h. */
2285$ac_declaration
2286#include <stdlib.h>
2287int
2288main ()
2289{
2290exit (42);
2291 ;
2292 return 0;
2293}
2294_ACEOF
2295rm -f conftest.$ac_objext
2296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>conftest.er1
2298 ac_status=$?
2299 grep -v '^ *+' conftest.er1 >conftest.err
2300 rm -f conftest.er1
2301 cat conftest.err >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try='test -z "$ac_c_werror_flag"
2305 || test ! -s conftest.err'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 (eval $ac_try) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2317 :
2318else
2319 echo "$as_me: failed program was:" >&5
2320sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002321
Benny Prijono0b462322008-03-12 22:44:24 +00002322continue
2323fi
2324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2325 cat >conftest.$ac_ext <<_ACEOF
2326/* confdefs.h. */
2327_ACEOF
2328cat confdefs.h >>conftest.$ac_ext
2329cat >>conftest.$ac_ext <<_ACEOF
2330/* end confdefs.h. */
2331$ac_declaration
2332int
2333main ()
2334{
2335exit (42);
2336 ;
2337 return 0;
2338}
2339_ACEOF
2340rm -f conftest.$ac_objext
2341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342 (eval $ac_compile) 2>conftest.er1
2343 ac_status=$?
2344 grep -v '^ *+' conftest.er1 >conftest.err
2345 rm -f conftest.er1
2346 cat conftest.err >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -z "$ac_c_werror_flag"
2350 || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 break
2363else
2364 echo "$as_me: failed program was:" >&5
2365sed 's/^/| /' conftest.$ac_ext >&5
2366
2367fi
2368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2369done
2370rm -f conftest*
2371if test -n "$ac_declaration"; then
2372 echo '#ifdef __cplusplus' >>confdefs.h
2373 echo $ac_declaration >>confdefs.h
2374 echo '#endif' >>confdefs.h
2375fi
2376
2377else
2378 echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002383ac_ext=c
2384ac_cpp='$CPP $CPPFLAGS'
2385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388
Benny Prijono0b462322008-03-12 22:44:24 +00002389ac_ext=cc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002390ac_cpp='$CXXCPP $CPPFLAGS'
2391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Benny Prijono0b462322008-03-12 22:44:24 +00002394if test -n "$ac_tool_prefix"; then
2395 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002396 do
2397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2398set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00002399echo "$as_me:$LINENO: checking for $ac_word" >&5
2400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002401if test "${ac_cv_prog_CXX+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403else
2404 if test -n "$CXX"; then
2405 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2406else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00002413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002414 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2417 fi
2418done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002419done
2420
2421fi
2422fi
2423CXX=$ac_cv_prog_CXX
2424if test -n "$CXX"; then
Benny Prijono0b462322008-03-12 22:44:24 +00002425 echo "$as_me:$LINENO: result: $CXX" >&5
2426echo "${ECHO_T}$CXX" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002427else
Benny Prijono0b462322008-03-12 22:44:24 +00002428 echo "$as_me:$LINENO: result: no" >&5
2429echo "${ECHO_T}no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002430fi
2431
2432 test -n "$CXX" && break
2433 done
2434fi
2435if test -z "$CXX"; then
2436 ac_ct_CXX=$CXX
Benny Prijono0b462322008-03-12 22:44:24 +00002437 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002438do
2439 # Extract the first word of "$ac_prog", so it can be a program name with args.
2440set dummy $ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00002441echo "$as_me:$LINENO: checking for $ac_word" >&5
2442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002443if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445else
2446 if test -n "$ac_ct_CXX"; then
2447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2448else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2451do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00002455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002456 ac_cv_prog_ac_ct_CXX="$ac_prog"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2459 fi
2460done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002461done
2462
2463fi
2464fi
2465ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2466if test -n "$ac_ct_CXX"; then
Benny Prijono0b462322008-03-12 22:44:24 +00002467 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2468echo "${ECHO_T}$ac_ct_CXX" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002469else
Benny Prijono0b462322008-03-12 22:44:24 +00002470 echo "$as_me:$LINENO: result: no" >&5
2471echo "${ECHO_T}no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002472fi
2473
2474 test -n "$ac_ct_CXX" && break
2475done
Benny Prijono0b462322008-03-12 22:44:24 +00002476test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002477
Benny Prijono0b462322008-03-12 22:44:24 +00002478 CXX=$ac_ct_CXX
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002479fi
2480
Benny Prijono0b462322008-03-12 22:44:24 +00002481
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002482# Provide some information about the compiler.
Benny Prijono0b462322008-03-12 22:44:24 +00002483echo "$as_me:$LINENO:" \
2484 "checking for C++ compiler version" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002485ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono0b462322008-03-12 22:44:24 +00002486{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2487 (eval $ac_compiler --version </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002488 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002490 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00002491{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2492 (eval $ac_compiler -v </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002493 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002495 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00002496{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2497 (eval $ac_compiler -V </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002498 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002500 (exit $ac_status); }
2501
Benny Prijono0b462322008-03-12 22:44:24 +00002502echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2503echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002504if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002508/* confdefs.h. */
2509_ACEOF
2510cat confdefs.h >>conftest.$ac_ext
2511cat >>conftest.$ac_ext <<_ACEOF
2512/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002513
2514int
2515main ()
2516{
2517#ifndef __GNUC__
2518 choke me
2519#endif
2520
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002528 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_cxx_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002547 ac_compiler_gnu=yes
2548else
2549 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002550sed 's/^/| /' conftest.$ac_ext >&5
2551
Benny Prijono0b462322008-03-12 22:44:24 +00002552ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002553fi
Benny Prijono0b462322008-03-12 22:44:24 +00002554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002555ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2556
2557fi
Benny Prijono0b462322008-03-12 22:44:24 +00002558echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2559echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002560GXX=`test $ac_compiler_gnu = yes && echo yes`
2561ac_test_CXXFLAGS=${CXXFLAGS+set}
2562ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono0b462322008-03-12 22:44:24 +00002563CXXFLAGS="-g"
2564echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2565echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002566if test "${ac_cv_prog_cxx_g+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568else
Benny Prijono0b462322008-03-12 22:44:24 +00002569 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002570/* confdefs.h. */
2571_ACEOF
2572cat confdefs.h >>conftest.$ac_ext
2573cat >>conftest.$ac_ext <<_ACEOF
2574/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002575
2576int
2577main ()
2578{
2579
2580 ;
2581 return 0;
2582}
2583_ACEOF
2584rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002587 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002588 grep -v '^ *+' conftest.er1 >conftest.err
2589 rm -f conftest.er1
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002592 (exit $ac_status); } &&
2593 { ac_try='test -z "$ac_cxx_werror_flag"
2594 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002606 ac_cv_prog_cxx_g=yes
2607else
2608 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002609sed 's/^/| /' conftest.$ac_ext >&5
2610
Benny Prijono0b462322008-03-12 22:44:24 +00002611ac_cv_prog_cxx_g=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002612fi
Benny Prijono0b462322008-03-12 22:44:24 +00002613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002614fi
Benny Prijono0b462322008-03-12 22:44:24 +00002615echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2616echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002617if test "$ac_test_CXXFLAGS" = set; then
2618 CXXFLAGS=$ac_save_CXXFLAGS
2619elif test $ac_cv_prog_cxx_g = yes; then
2620 if test "$GXX" = yes; then
2621 CXXFLAGS="-g -O2"
2622 else
2623 CXXFLAGS="-g"
2624 fi
2625else
2626 if test "$GXX" = yes; then
2627 CXXFLAGS="-O2"
2628 else
2629 CXXFLAGS=
2630 fi
2631fi
Benny Prijono0b462322008-03-12 22:44:24 +00002632for ac_declaration in \
2633 '' \
2634 'extern "C" void std::exit (int) throw (); using std::exit;' \
2635 'extern "C" void std::exit (int); using std::exit;' \
2636 'extern "C" void exit (int) throw ();' \
2637 'extern "C" void exit (int);' \
2638 'void exit (int);'
2639do
2640 cat >conftest.$ac_ext <<_ACEOF
2641/* confdefs.h. */
2642_ACEOF
2643cat confdefs.h >>conftest.$ac_ext
2644cat >>conftest.$ac_ext <<_ACEOF
2645/* end confdefs.h. */
2646$ac_declaration
2647#include <stdlib.h>
2648int
2649main ()
2650{
2651exit (42);
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656rm -f conftest.$ac_objext
2657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_cxx_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 :
2679else
2680 echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683continue
2684fi
2685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 cat >conftest.$ac_ext <<_ACEOF
2687/* confdefs.h. */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h. */
2692$ac_declaration
2693int
2694main ()
2695{
2696exit (42);
2697 ;
2698 return 0;
2699}
2700_ACEOF
2701rm -f conftest.$ac_objext
2702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_cxx_werror_flag"
2711 || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 break
2724else
2725 echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
2728fi
2729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730done
2731rm -f conftest*
2732if test -n "$ac_declaration"; then
2733 echo '#ifdef __cplusplus' >>confdefs.h
2734 echo $ac_declaration >>confdefs.h
2735 echo '#endif' >>confdefs.h
2736fi
2737
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002744ac_ext=c
2745ac_cpp='$CPP $CPPFLAGS'
2746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002750
2751
Benny Prijono53847a32007-09-24 16:10:13 +00002752case $target in
2753 *mingw* | *cygw* | *win32* | *w32* )
2754 ac_pjdir=`pwd -W`
2755 ;;
2756 *)
2757 ac_pjdir=`pwd`
2758 ;;
2759esac
Benny Prijono12483112007-03-12 10:44:38 +00002760
2761
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002762
Benny Prijono0b462322008-03-12 22:44:24 +00002763echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2764echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002765if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767else
2768 ac_check_lib_save_LIBS=$LIBS
2769LIBS="-lpthread $LIBS"
2770cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002771/* confdefs.h. */
2772_ACEOF
2773cat confdefs.h >>conftest.$ac_ext
2774cat >>conftest.$ac_ext <<_ACEOF
2775/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002776
Benny Prijono0b462322008-03-12 22:44:24 +00002777/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002778#ifdef __cplusplus
2779extern "C"
2780#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002781/* We use char because int might match the return type of a gcc2
2782 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002783char pthread_create ();
2784int
2785main ()
2786{
Benny Prijono0b462322008-03-12 22:44:24 +00002787pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002788 ;
2789 return 0;
2790}
2791_ACEOF
2792rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2794 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002795 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002796 grep -v '^ *+' conftest.er1 >conftest.err
2797 rm -f conftest.er1
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002800 (exit $ac_status); } &&
2801 { ac_try='test -z "$ac_c_werror_flag"
2802 || test ! -s conftest.err'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; } &&
2808 { ac_try='test -s conftest$ac_exeext'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002814 ac_cv_lib_pthread_pthread_create=yes
2815else
2816 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002817sed 's/^/| /' conftest.$ac_ext >&5
2818
Benny Prijono0b462322008-03-12 22:44:24 +00002819ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002820fi
Benny Prijono0b462322008-03-12 22:44:24 +00002821rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002822 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002823LIBS=$ac_check_lib_save_LIBS
2824fi
Benny Prijono0b462322008-03-12 22:44:24 +00002825echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2826echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002827if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002828 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002829#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002830_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002831
2832 LIBS="-lpthread $LIBS"
2833
2834fi
2835
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002836
Benny Prijono0b462322008-03-12 22:44:24 +00002837echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
2838echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002839if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2841else
2842 ac_check_lib_save_LIBS=$LIBS
2843LIBS="-lwsock32 $LIBS"
2844cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002845/* confdefs.h. */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002850
Benny Prijono0b462322008-03-12 22:44:24 +00002851/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002852#ifdef __cplusplus
2853extern "C"
2854#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002855/* We use char because int might match the return type of a gcc2
2856 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002857char puts ();
2858int
2859main ()
2860{
Benny Prijono0b462322008-03-12 22:44:24 +00002861puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002862 ;
2863 return 0;
2864}
2865_ACEOF
2866rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2868 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002869 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002874 (exit $ac_status); } &&
2875 { ac_try='test -z "$ac_c_werror_flag"
2876 || test ! -s conftest.err'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; } &&
2882 { ac_try='test -s conftest$ac_exeext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002888 ac_cv_lib_wsock32_puts=yes
2889else
2890 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002891sed 's/^/| /' conftest.$ac_ext >&5
2892
Benny Prijono0b462322008-03-12 22:44:24 +00002893ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002894fi
Benny Prijono0b462322008-03-12 22:44:24 +00002895rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002896 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002897LIBS=$ac_check_lib_save_LIBS
2898fi
Benny Prijono0b462322008-03-12 22:44:24 +00002899echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
2900echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002901if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002902 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002903#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002904_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002905
2906 LIBS="-lwsock32 $LIBS"
2907
2908fi
2909
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002910
Benny Prijono0b462322008-03-12 22:44:24 +00002911echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
2912echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002913if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915else
2916 ac_check_lib_save_LIBS=$LIBS
2917LIBS="-lws2_32 $LIBS"
2918cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002924
Benny Prijono0b462322008-03-12 22:44:24 +00002925/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002926#ifdef __cplusplus
2927extern "C"
2928#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002929/* We use char because int might match the return type of a gcc2
2930 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002931char puts ();
2932int
2933main ()
2934{
Benny Prijono0b462322008-03-12 22:44:24 +00002935puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2942 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002943 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_c_werror_flag"
2950 || test ! -s conftest.err'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest$ac_exeext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002962 ac_cv_lib_ws2_32_puts=yes
2963else
2964 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002965sed 's/^/| /' conftest.$ac_ext >&5
2966
Benny Prijono0b462322008-03-12 22:44:24 +00002967ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002968fi
Benny Prijono0b462322008-03-12 22:44:24 +00002969rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002970 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002971LIBS=$ac_check_lib_save_LIBS
2972fi
Benny Prijono0b462322008-03-12 22:44:24 +00002973echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
2974echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002975if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002976 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002977#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002978_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002979
2980 LIBS="-lws2_32 $LIBS"
2981
2982fi
2983
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002984
Benny Prijono0b462322008-03-12 22:44:24 +00002985echo "$as_me:$LINENO: checking for puts in -lole32" >&5
2986echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002987if test "${ac_cv_lib_ole32_puts+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990 ac_check_lib_save_LIBS=$LIBS
2991LIBS="-lole32 $LIBS"
2992cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002993/* confdefs.h. */
2994_ACEOF
2995cat confdefs.h >>conftest.$ac_ext
2996cat >>conftest.$ac_ext <<_ACEOF
2997/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002998
Benny Prijono0b462322008-03-12 22:44:24 +00002999/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003000#ifdef __cplusplus
3001extern "C"
3002#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003003/* We use char because int might match the return type of a gcc2
3004 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003005char puts ();
3006int
3007main ()
3008{
Benny Prijono0b462322008-03-12 22:44:24 +00003009puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003010 ;
3011 return 0;
3012}
3013_ACEOF
3014rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3016 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003017 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003018 grep -v '^ *+' conftest.er1 >conftest.err
3019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003022 (exit $ac_status); } &&
3023 { ac_try='test -z "$ac_c_werror_flag"
3024 || test ! -s conftest.err'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; } &&
3030 { ac_try='test -s conftest$ac_exeext'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003036 ac_cv_lib_ole32_puts=yes
3037else
3038 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003039sed 's/^/| /' conftest.$ac_ext >&5
3040
Benny Prijono0b462322008-03-12 22:44:24 +00003041ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003042fi
Benny Prijono0b462322008-03-12 22:44:24 +00003043rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003044 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003045LIBS=$ac_check_lib_save_LIBS
3046fi
Benny Prijono0b462322008-03-12 22:44:24 +00003047echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3048echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003049if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003050 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003051#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003052_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003053
3054 LIBS="-lole32 $LIBS"
3055
3056fi
3057
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003058
Benny Prijono0b462322008-03-12 22:44:24 +00003059echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3060echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003061if test "${ac_cv_lib_winmm_puts+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 ac_check_lib_save_LIBS=$LIBS
3065LIBS="-lwinmm $LIBS"
3066cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003072
Benny Prijono0b462322008-03-12 22:44:24 +00003073/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003074#ifdef __cplusplus
3075extern "C"
3076#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003077/* We use char because int might match the return type of a gcc2
3078 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003079char puts ();
3080int
3081main ()
3082{
Benny Prijono0b462322008-03-12 22:44:24 +00003083puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003084 ;
3085 return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3090 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003091 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest$ac_exeext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003110 ac_cv_lib_winmm_puts=yes
3111else
3112 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003113sed 's/^/| /' conftest.$ac_ext >&5
3114
Benny Prijono0b462322008-03-12 22:44:24 +00003115ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003116fi
Benny Prijono0b462322008-03-12 22:44:24 +00003117rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003118 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003119LIBS=$ac_check_lib_save_LIBS
3120fi
Benny Prijono0b462322008-03-12 22:44:24 +00003121echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3122echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003123if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003124 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003125#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003126_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003127
3128 LIBS="-lwinmm $LIBS"
3129
3130fi
3131
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003132
Benny Prijono0b462322008-03-12 22:44:24 +00003133echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3134echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003135if test "${ac_cv_lib_socket_puts+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137else
3138 ac_check_lib_save_LIBS=$LIBS
3139LIBS="-lsocket $LIBS"
3140cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003146
Benny Prijono0b462322008-03-12 22:44:24 +00003147/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003148#ifdef __cplusplus
3149extern "C"
3150#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003151/* We use char because int might match the return type of a gcc2
3152 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003153char puts ();
3154int
3155main ()
3156{
Benny Prijono0b462322008-03-12 22:44:24 +00003157puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003158 ;
3159 return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3164 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003165 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest$ac_exeext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003184 ac_cv_lib_socket_puts=yes
3185else
3186 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003187sed 's/^/| /' conftest.$ac_ext >&5
3188
Benny Prijono0b462322008-03-12 22:44:24 +00003189ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003190fi
Benny Prijono0b462322008-03-12 22:44:24 +00003191rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003192 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003193LIBS=$ac_check_lib_save_LIBS
3194fi
Benny Prijono0b462322008-03-12 22:44:24 +00003195echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3196echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003197if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003198 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003199#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003200_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003201
3202 LIBS="-lsocket $LIBS"
3203
3204fi
3205
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003206
Benny Prijono0b462322008-03-12 22:44:24 +00003207echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3208echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003209if test "${ac_cv_lib_rt_puts+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212 ac_check_lib_save_LIBS=$LIBS
3213LIBS="-lrt $LIBS"
3214cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003220
Benny Prijono0b462322008-03-12 22:44:24 +00003221/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003222#ifdef __cplusplus
3223extern "C"
3224#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003225/* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003227char puts ();
3228int
3229main ()
3230{
Benny Prijono0b462322008-03-12 22:44:24 +00003231puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003232 ;
3233 return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3238 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003239 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003244 (exit $ac_status); } &&
3245 { ac_try='test -z "$ac_c_werror_flag"
3246 || test ! -s conftest.err'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest$ac_exeext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003258 ac_cv_lib_rt_puts=yes
3259else
3260 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003261sed 's/^/| /' conftest.$ac_ext >&5
3262
Benny Prijono0b462322008-03-12 22:44:24 +00003263ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003264fi
Benny Prijono0b462322008-03-12 22:44:24 +00003265rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003266 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003267LIBS=$ac_check_lib_save_LIBS
3268fi
Benny Prijono0b462322008-03-12 22:44:24 +00003269echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3270echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003271if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003272 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003273#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003274_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003275
3276 LIBS="-lrt $LIBS"
3277
3278fi
3279
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003280
Benny Prijono0b462322008-03-12 22:44:24 +00003281echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3282echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003283if test "${ac_cv_lib_nsl_puts+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286 ac_check_lib_save_LIBS=$LIBS
3287LIBS="-lnsl $LIBS"
3288cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003294
Benny Prijono0b462322008-03-12 22:44:24 +00003295/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003296#ifdef __cplusplus
3297extern "C"
3298#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003299/* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003301char puts ();
3302int
3303main ()
3304{
Benny Prijono0b462322008-03-12 22:44:24 +00003305puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003306 ;
3307 return 0;
3308}
3309_ACEOF
3310rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3312 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003313 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003318 (exit $ac_status); } &&
3319 { ac_try='test -z "$ac_c_werror_flag"
3320 || test ! -s conftest.err'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 (eval $ac_try) 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; } &&
3326 { ac_try='test -s conftest$ac_exeext'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 (eval $ac_try) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003332 ac_cv_lib_nsl_puts=yes
3333else
3334 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003335sed 's/^/| /' conftest.$ac_ext >&5
3336
Benny Prijono0b462322008-03-12 22:44:24 +00003337ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003338fi
Benny Prijono0b462322008-03-12 22:44:24 +00003339rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003340 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003341LIBS=$ac_check_lib_save_LIBS
3342fi
Benny Prijono0b462322008-03-12 22:44:24 +00003343echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3344echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003345if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003346 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003347#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003348_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003349
3350 LIBS="-lnsl $LIBS"
3351
3352fi
3353
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003354
Benny Prijono0b462322008-03-12 22:44:24 +00003355echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3356echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003357if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
3360 ac_check_lib_save_LIBS=$LIBS
3361LIBS="-luuid $LIBS"
3362cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368
Benny Prijono0b462322008-03-12 22:44:24 +00003369/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003370#ifdef __cplusplus
3371extern "C"
3372#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003373/* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003375char uuid_generate ();
3376int
3377main ()
3378{
Benny Prijono0b462322008-03-12 22:44:24 +00003379uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003380 ;
3381 return 0;
3382}
3383_ACEOF
3384rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3386 (eval $ac_link) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest$ac_exeext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003406 ac_cv_lib_uuid_uuid_generate=yes
3407else
3408 echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
Benny Prijono0b462322008-03-12 22:44:24 +00003411ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003412fi
Benny Prijono0b462322008-03-12 22:44:24 +00003413rm -f conftest.err conftest.$ac_objext \
Benny Prijono4e48b512007-05-16 13:41:00 +00003414 conftest$ac_exeext conftest.$ac_ext
3415LIBS=$ac_check_lib_save_LIBS
3416fi
Benny Prijono0b462322008-03-12 22:44:24 +00003417echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3418echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003419if test $ac_cv_lib_uuid_uuid_generate = yes; then
3420 cat >>confdefs.h <<_ACEOF
3421#define HAVE_LIBUUID 1
3422_ACEOF
3423
3424 LIBS="-luuid $LIBS"
3425
3426fi
3427
Benny Prijono0b462322008-03-12 22:44:24 +00003428echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3429echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003430if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3432else
3433 ac_check_lib_save_LIBS=$LIBS
3434LIBS="-luuid $LIBS"
3435cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441
Benny Prijono0b462322008-03-12 22:44:24 +00003442/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003443#ifdef __cplusplus
3444extern "C"
3445#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003446/* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003448char uuid_generate ();
3449int
3450main ()
3451{
Benny Prijono0b462322008-03-12 22:44:24 +00003452uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003453 ;
3454 return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3459 (eval $ac_link) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003465 (exit $ac_status); } &&
3466 { ac_try='test -z "$ac_c_werror_flag"
3467 || test ! -s conftest.err'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try='test -s conftest$ac_exeext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003479 ac_cv_lib_uuid_uuid_generate=yes
3480else
3481 echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
Benny Prijono0b462322008-03-12 22:44:24 +00003484ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003485fi
Benny Prijono0b462322008-03-12 22:44:24 +00003486rm -f conftest.err conftest.$ac_objext \
Benny Prijono4e48b512007-05-16 13:41:00 +00003487 conftest$ac_exeext conftest.$ac_ext
3488LIBS=$ac_check_lib_save_LIBS
3489fi
Benny Prijono0b462322008-03-12 22:44:24 +00003490echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3491echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003492if test $ac_cv_lib_uuid_uuid_generate = yes; then
3493 ac_has_uuid_lib=1
3494fi
3495
3496
Benny Prijono0b462322008-03-12 22:44:24 +00003497echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3498echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003499cat >>confdefs.h <<_ACEOF
3500#define PJ_M_NAME "$target_cpu"
3501_ACEOF
3502
3503
Benny Prijono0b462322008-03-12 22:44:24 +00003504echo "$as_me:$LINENO: checking memory alignment" >&5
3505echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003506case $target in
3507 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003508 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003509#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003510_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003511
Benny Prijono0b462322008-03-12 22:44:24 +00003512 echo "$as_me:$LINENO: result: 8 bytes" >&5
3513echo "${ECHO_T}8 bytes" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003514 ;;
3515 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003516 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003517#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003518_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003519
Benny Prijono0b462322008-03-12 22:44:24 +00003520 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
3521echo "${ECHO_T}4 bytes (default)" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003522 ;;
3523esac
3524
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003525
Benny Prijono0b462322008-03-12 22:44:24 +00003526echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3527echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003528if test "${ac_cv_c_bigendian+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003531 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003532cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003533/* confdefs.h. */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
3537/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003538#include <sys/types.h>
3539#include <sys/param.h>
3540
3541int
3542main ()
3543{
Benny Prijono0b462322008-03-12 22:44:24 +00003544#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003545 bogus endian macros
3546#endif
3547
3548 ;
3549 return 0;
3550}
3551_ACEOF
3552rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3554 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003555 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003556 grep -v '^ *+' conftest.er1 >conftest.err
3557 rm -f conftest.er1
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003560 (exit $ac_status); } &&
3561 { ac_try='test -z "$ac_c_werror_flag"
3562 || test ! -s conftest.err'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 (eval $ac_try) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; } &&
3568 { ac_try='test -s conftest.$ac_objext'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003574 # It does; now see whether it defined to BIG_ENDIAN or not.
3575cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003576/* confdefs.h. */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003581#include <sys/types.h>
3582#include <sys/param.h>
3583
3584int
3585main ()
3586{
3587#if BYTE_ORDER != BIG_ENDIAN
3588 not big endian
3589#endif
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003598 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003617 ac_cv_c_bigendian=yes
3618else
3619 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003620sed 's/^/| /' conftest.$ac_ext >&5
3621
Benny Prijono0b462322008-03-12 22:44:24 +00003622ac_cv_c_bigendian=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003623fi
Benny Prijono0b462322008-03-12 22:44:24 +00003624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003625else
3626 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003627sed 's/^/| /' conftest.$ac_ext >&5
3628
Benny Prijono0b462322008-03-12 22:44:24 +00003629# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003630if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003631 # try to guess the endianness by grepping values into an object file
3632 ac_cv_c_bigendian=unknown
3633 cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h. */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h. */
Benny Prijono0b462322008-03-12 22:44:24 +00003639short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3640short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003641void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Benny Prijono0b462322008-03-12 22:44:24 +00003642short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3643short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003644void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3645int
3646main ()
3647{
3648 _ascii (); _ebcdic ();
3649 ;
3650 return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003656 ac_status=$?
3657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003661 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_c_werror_flag"
3663 || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest.$ac_objext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003675 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3676 ac_cv_c_bigendian=yes
3677fi
3678if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3679 if test "$ac_cv_c_bigendian" = unknown; then
3680 ac_cv_c_bigendian=no
3681 else
3682 # finding both strings is unlikely to happen, but who knows?
3683 ac_cv_c_bigendian=unknown
3684 fi
3685fi
3686else
3687 echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690fi
Benny Prijono0b462322008-03-12 22:44:24 +00003691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003692else
3693 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003694/* confdefs.h. */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003699int
3700main ()
3701{
3702 /* Are we little or big endian? From Harbison&Steele. */
3703 union
3704 {
Benny Prijono0b462322008-03-12 22:44:24 +00003705 long l;
3706 char c[sizeof (long)];
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003707 } u;
3708 u.l = 1;
Benny Prijono0b462322008-03-12 22:44:24 +00003709 exit (u.c[sizeof (long) - 1] == 1);
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003710}
3711_ACEOF
3712rm -f conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714 (eval $ac_link) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003715 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono0b462322008-03-12 22:44:24 +00003718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003720 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003722 (exit $ac_status); }; }; then
3723 ac_cv_c_bigendian=no
3724else
3725 echo "$as_me: program exited with status $ac_status" >&5
3726echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003730ac_cv_c_bigendian=yes
3731fi
Benny Prijono0b462322008-03-12 22:44:24 +00003732rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003733fi
3734fi
Benny Prijono0b462322008-03-12 22:44:24 +00003735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003736fi
Benny Prijono0b462322008-03-12 22:44:24 +00003737echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3738echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003739case $ac_cv_c_bigendian in
3740 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003741
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003742cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003743#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003744_ACEOF
3745 ;;
3746 no)
3747 ;;
3748 *)
3749 { { echo "$as_me:$LINENO: error: unknown endianness
3750presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3751echo "$as_me: error: unknown endianness
3752presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3753 { (exit 1); exit 1; }; } ;;
3754esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003755
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003756
3757case $target in
3758 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003759 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003760#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003761_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003762
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003763 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003764#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003765_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003766
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003767 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003768#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003769_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003770
3771 ;;
3772 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003773 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003774#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003775_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003776
3777 ;;
3778 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003779 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003780#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003781_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003782
3783 ;;
3784 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003785 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003786#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003787_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003788
3789 ;;
3790 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003791 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003792#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003793_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003794
3795 ;;
3796 *)
3797 ;;
3798esac
3799
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003800
3801
3802
Benny Prijono0b462322008-03-12 22:44:24 +00003803# Check whether --enable-floating-point or --disable-floating-point was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003804if test "${enable_floating_point+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00003805 enableval="$enable_floating_point"
3806 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003807 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003808#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003809_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003810
Benny Prijono0b462322008-03-12 22:44:24 +00003811 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
3812echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003813 fi
3814else
3815
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003816 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003817#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003818_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003819
Benny Prijono0b462322008-03-12 22:44:24 +00003820 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
3821echo "${ECHO_T}Checking if floating point is disabled... no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003822
Benny Prijono0b462322008-03-12 22:44:24 +00003823echo "$as_me:$LINENO: checking for fmod in -lm" >&5
3824echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003825if test "${ac_cv_lib_m_fmod+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827else
3828 ac_check_lib_save_LIBS=$LIBS
3829LIBS="-lm $LIBS"
3830cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003831/* confdefs.h. */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003836
Benny Prijono0b462322008-03-12 22:44:24 +00003837/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003838#ifdef __cplusplus
3839extern "C"
3840#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003841/* We use char because int might match the return type of a gcc2
3842 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003843char fmod ();
3844int
3845main ()
3846{
Benny Prijono0b462322008-03-12 22:44:24 +00003847fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003848 ;
3849 return 0;
3850}
3851_ACEOF
3852rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003855 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003856 grep -v '^ *+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003860 (exit $ac_status); } &&
3861 { ac_try='test -z "$ac_c_werror_flag"
3862 || test ! -s conftest.err'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; } &&
3868 { ac_try='test -s conftest$ac_exeext'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003874 ac_cv_lib_m_fmod=yes
3875else
3876 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003877sed 's/^/| /' conftest.$ac_ext >&5
3878
Benny Prijono0b462322008-03-12 22:44:24 +00003879ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003880fi
Benny Prijono0b462322008-03-12 22:44:24 +00003881rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003882 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003883LIBS=$ac_check_lib_save_LIBS
3884fi
Benny Prijono0b462322008-03-12 22:44:24 +00003885echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
3886echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003887if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003888 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003889#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003890_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003891
3892 LIBS="-lm $LIBS"
3893
3894fi
3895
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003896
Benny Prijono0b462322008-03-12 22:44:24 +00003897fi;
3898
3899
3900ac_ext=c
3901ac_cpp='$CPP $CPPFLAGS'
3902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3906echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3907# On Suns, sometimes $CPP names a directory.
3908if test -n "$CPP" && test -d "$CPP"; then
3909 CPP=
3910fi
3911if test -z "$CPP"; then
3912 if test "${ac_cv_prog_CPP+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915 # Double quotes because CPP needs to be expanded
3916 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3917 do
3918 ac_preproc_ok=false
3919for ac_c_preproc_warn_flag in '' yes
3920do
3921 # Use a header file that comes with gcc, so configuring glibc
3922 # with a fresh cross-compiler works.
3923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3924 # <limits.h> exists even on freestanding compilers.
3925 # On the NeXT, cc -E runs the code through the compiler's parser,
3926 # not just through cpp. "Syntax error" is here to catch this case.
3927 cat >conftest.$ac_ext <<_ACEOF
3928/* confdefs.h. */
3929_ACEOF
3930cat confdefs.h >>conftest.$ac_ext
3931cat >>conftest.$ac_ext <<_ACEOF
3932/* end confdefs.h. */
3933#ifdef __STDC__
3934# include <limits.h>
3935#else
3936# include <assert.h>
3937#endif
3938 Syntax error
3939_ACEOF
3940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } >/dev/null; then
3948 if test -s conftest.err; then
3949 ac_cpp_err=$ac_c_preproc_warn_flag
3950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3951 else
3952 ac_cpp_err=
3953 fi
3954else
3955 ac_cpp_err=yes
3956fi
3957if test -z "$ac_cpp_err"; then
3958 :
3959else
3960 echo "$as_me: failed program was:" >&5
3961sed 's/^/| /' conftest.$ac_ext >&5
3962
3963 # Broken: fails on valid input.
3964continue
3965fi
3966rm -f conftest.err conftest.$ac_ext
3967
3968 # OK, works on sane cases. Now check whether non-existent headers
3969 # can be detected and how.
3970 cat >conftest.$ac_ext <<_ACEOF
3971/* confdefs.h. */
3972_ACEOF
3973cat confdefs.h >>conftest.$ac_ext
3974cat >>conftest.$ac_ext <<_ACEOF
3975/* end confdefs.h. */
3976#include <ac_nonexistent.h>
3977_ACEOF
3978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3980 ac_status=$?
3981 grep -v '^ *+' conftest.er1 >conftest.err
3982 rm -f conftest.er1
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } >/dev/null; then
3986 if test -s conftest.err; then
3987 ac_cpp_err=$ac_c_preproc_warn_flag
3988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3989 else
3990 ac_cpp_err=
3991 fi
3992else
3993 ac_cpp_err=yes
3994fi
3995if test -z "$ac_cpp_err"; then
3996 # Broken: success on invalid input.
3997continue
3998else
3999 echo "$as_me: failed program was:" >&5
4000sed 's/^/| /' conftest.$ac_ext >&5
4001
4002 # Passes both tests.
4003ac_preproc_ok=:
4004break
4005fi
4006rm -f conftest.err conftest.$ac_ext
4007
4008done
4009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010rm -f conftest.err conftest.$ac_ext
4011if $ac_preproc_ok; then
4012 break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004013fi
4014
Benny Prijono0b462322008-03-12 22:44:24 +00004015 done
4016 ac_cv_prog_CPP=$CPP
4017
4018fi
4019 CPP=$ac_cv_prog_CPP
4020else
4021 ac_cv_prog_CPP=$CPP
4022fi
4023echo "$as_me:$LINENO: result: $CPP" >&5
4024echo "${ECHO_T}$CPP" >&6
4025ac_preproc_ok=false
4026for ac_c_preproc_warn_flag in '' yes
4027do
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040#ifdef __STDC__
4041# include <limits.h>
4042#else
4043# include <assert.h>
4044#endif
4045 Syntax error
4046_ACEOF
4047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_c_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058 else
4059 ac_cpp_err=
4060 fi
4061else
4062 ac_cpp_err=yes
4063fi
4064if test -z "$ac_cpp_err"; then
4065 :
4066else
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 # Broken: fails on valid input.
4071continue
4072fi
4073rm -f conftest.err conftest.$ac_ext
4074
4075 # OK, works on sane cases. Now check whether non-existent headers
4076 # can be detected and how.
4077 cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h. */
4079_ACEOF
4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
4082/* end confdefs.h. */
4083#include <ac_nonexistent.h>
4084_ACEOF
4085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096 else
4097 ac_cpp_err=
4098 fi
4099else
4100 ac_cpp_err=yes
4101fi
4102if test -z "$ac_cpp_err"; then
4103 # Broken: success on invalid input.
4104continue
4105else
4106 echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 # Passes both tests.
4110ac_preproc_ok=:
4111break
4112fi
4113rm -f conftest.err conftest.$ac_ext
4114
4115done
4116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117rm -f conftest.err conftest.$ac_ext
4118if $ac_preproc_ok; then
4119 :
4120else
4121 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4122See \`config.log' for more details." >&5
4123echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4124See \`config.log' for more details." >&2;}
4125 { (exit 1); exit 1; }; }
4126fi
4127
4128ac_ext=c
4129ac_cpp='$CPP $CPPFLAGS'
4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134
4135echo "$as_me:$LINENO: checking for egrep" >&5
4136echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4137if test "${ac_cv_prog_egrep+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4141 then ac_cv_prog_egrep='grep -E'
4142 else ac_cv_prog_egrep='egrep'
4143 fi
4144fi
4145echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4146echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4147 EGREP=$ac_cv_prog_egrep
4148
4149
4150echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4151echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4152if test "${ac_cv_header_stdc+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155 cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
4161#include <stdlib.h>
4162#include <stdarg.h>
4163#include <string.h>
4164#include <float.h>
4165
4166int
4167main ()
4168{
4169
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174rm -f conftest.$ac_objext
4175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_header_stdc=yes
4197else
4198 echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201ac_cv_header_stdc=no
4202fi
4203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204
4205if test $ac_cv_header_stdc = yes; then
4206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4207 cat >conftest.$ac_ext <<_ACEOF
4208/* confdefs.h. */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
4212/* end confdefs.h. */
4213#include <string.h>
4214
4215_ACEOF
4216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217 $EGREP "memchr" >/dev/null 2>&1; then
4218 :
4219else
4220 ac_cv_header_stdc=no
4221fi
4222rm -f conftest*
4223
4224fi
4225
4226if test $ac_cv_header_stdc = yes; then
4227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4228 cat >conftest.$ac_ext <<_ACEOF
4229/* confdefs.h. */
4230_ACEOF
4231cat confdefs.h >>conftest.$ac_ext
4232cat >>conftest.$ac_ext <<_ACEOF
4233/* end confdefs.h. */
4234#include <stdlib.h>
4235
4236_ACEOF
4237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 $EGREP "free" >/dev/null 2>&1; then
4239 :
4240else
4241 ac_cv_header_stdc=no
4242fi
4243rm -f conftest*
4244
4245fi
4246
4247if test $ac_cv_header_stdc = yes; then
4248 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4249 if test "$cross_compiling" = yes; then
4250 :
4251else
4252 cat >conftest.$ac_ext <<_ACEOF
4253/* confdefs.h. */
4254_ACEOF
4255cat confdefs.h >>conftest.$ac_ext
4256cat >>conftest.$ac_ext <<_ACEOF
4257/* end confdefs.h. */
4258#include <ctype.h>
4259#if ((' ' & 0x0FF) == 0x020)
4260# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4261# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4262#else
4263# define ISLOWER(c) \
4264 (('a' <= (c) && (c) <= 'i') \
4265 || ('j' <= (c) && (c) <= 'r') \
4266 || ('s' <= (c) && (c) <= 'z'))
4267# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4268#endif
4269
4270#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4271int
4272main ()
4273{
4274 int i;
4275 for (i = 0; i < 256; i++)
4276 if (XOR (islower (i), ISLOWER (i))
4277 || toupper (i) != TOUPPER (i))
4278 exit(2);
4279 exit (0);
4280}
4281_ACEOF
4282rm -f conftest$ac_exeext
4283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 :
4294else
4295 echo "$as_me: program exited with status $ac_status" >&5
4296echo "$as_me: failed program was:" >&5
4297sed 's/^/| /' conftest.$ac_ext >&5
4298
4299( exit $ac_status )
4300ac_cv_header_stdc=no
4301fi
4302rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4303fi
4304fi
4305fi
4306echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4307echo "${ECHO_T}$ac_cv_header_stdc" >&6
4308if test $ac_cv_header_stdc = yes; then
4309
4310cat >>confdefs.h <<\_ACEOF
4311#define STDC_HEADERS 1
4312_ACEOF
4313
4314fi
4315
4316# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4327 inttypes.h stdint.h unistd.h
4328do
4329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4330echo "$as_me:$LINENO: checking for $ac_header" >&5
4331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335 cat >conftest.$ac_ext <<_ACEOF
4336/* confdefs.h. */
4337_ACEOF
4338cat confdefs.h >>conftest.$ac_ext
4339cat >>conftest.$ac_ext <<_ACEOF
4340/* end confdefs.h. */
4341$ac_includes_default
4342
4343#include <$ac_header>
4344_ACEOF
4345rm -f conftest.$ac_objext
4346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4347 (eval $ac_compile) 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -z "$ac_c_werror_flag"
4355 || test ! -s conftest.err'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 eval "$as_ac_Header=yes"
4368else
4369 echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372eval "$as_ac_Header=no"
4373fi
4374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4375fi
4376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4378if test `eval echo '${'$as_ac_Header'}'` = yes; then
4379 cat >>confdefs.h <<_ACEOF
4380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4381_ACEOF
4382
4383fi
4384
4385done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004386
4387
4388if test "${ac_cv_header_arpa_inet_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004389 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4390echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004391if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393fi
Benny Prijono0b462322008-03-12 22:44:24 +00004394echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4395echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004396else
4397 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004398echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4399echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004400cat >conftest.$ac_ext <<_ACEOF
4401/* confdefs.h. */
4402_ACEOF
4403cat confdefs.h >>conftest.$ac_ext
4404cat >>conftest.$ac_ext <<_ACEOF
4405/* end confdefs.h. */
4406$ac_includes_default
4407#include <arpa/inet.h>
4408_ACEOF
4409rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004431 ac_header_compiler=yes
4432else
4433 echo "$as_me: failed program was:" >&5
4434sed 's/^/| /' conftest.$ac_ext >&5
4435
Benny Prijono0b462322008-03-12 22:44:24 +00004436ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004437fi
Benny Prijono0b462322008-03-12 22:44:24 +00004438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004441
4442# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004443echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4444echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004445cat >conftest.$ac_ext <<_ACEOF
4446/* confdefs.h. */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h. */
4451#include <arpa/inet.h>
4452_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004460 (exit $ac_status); } >/dev/null; then
4461 if test -s conftest.err; then
4462 ac_cpp_err=$ac_c_preproc_warn_flag
4463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4464 else
4465 ac_cpp_err=
4466 fi
4467else
4468 ac_cpp_err=yes
4469fi
4470if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004471 ac_header_preproc=yes
4472else
4473 echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 ac_header_preproc=no
4477fi
4478rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4480echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004481
4482# So? What about this header?
4483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4484 yes:no: )
4485 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4486echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4488echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4489 ac_header_preproc=yes
4490 ;;
4491 no:yes:* )
4492 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4493echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4495echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4497echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4498 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4499echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4501echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4503echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004504 (
4505 cat <<\_ASBOX
4506## ------------------------------------ ##
4507## Report this to the pjproject lists. ##
4508## ------------------------------------ ##
4509_ASBOX
4510 ) |
4511 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004512 ;;
4513esac
Benny Prijono0b462322008-03-12 22:44:24 +00004514echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4515echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004516if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004518else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004519 ac_cv_header_arpa_inet_h=$ac_header_preproc
4520fi
Benny Prijono0b462322008-03-12 22:44:24 +00004521echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4522echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004523
4524fi
4525if test $ac_cv_header_arpa_inet_h = yes; then
4526 cat >>confdefs.h <<\_ACEOF
4527#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004528_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004529
4530fi
4531
4532
4533if test "${ac_cv_header_assert_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004534 echo "$as_me:$LINENO: checking for assert.h" >&5
4535echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004536if test "${ac_cv_header_assert_h+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538fi
Benny Prijono0b462322008-03-12 22:44:24 +00004539echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4540echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004541else
4542 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004543echo "$as_me:$LINENO: checking assert.h usability" >&5
4544echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004545cat >conftest.$ac_ext <<_ACEOF
4546/* confdefs.h. */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h. */
4551$ac_includes_default
4552#include <assert.h>
4553_ACEOF
4554rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004557 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004558 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004559 rm -f conftest.er1
4560 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag"
4564 || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004576 ac_header_compiler=yes
4577else
4578 echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
Benny Prijono0b462322008-03-12 22:44:24 +00004581ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004582fi
Benny Prijono0b462322008-03-12 22:44:24 +00004583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4585echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004586
4587# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004588echo "$as_me:$LINENO: checking assert.h presence" >&5
4589echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004590cat >conftest.$ac_ext <<_ACEOF
4591/* confdefs.h. */
4592_ACEOF
4593cat confdefs.h >>conftest.$ac_ext
4594cat >>conftest.$ac_ext <<_ACEOF
4595/* end confdefs.h. */
4596#include <assert.h>
4597_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004605 (exit $ac_status); } >/dev/null; then
4606 if test -s conftest.err; then
4607 ac_cpp_err=$ac_c_preproc_warn_flag
4608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4609 else
4610 ac_cpp_err=
4611 fi
4612else
4613 ac_cpp_err=yes
4614fi
4615if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004616 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004617else
4618 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004622fi
4623rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4625echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004626
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004627# So? What about this header?
4628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4629 yes:no: )
4630 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4631echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4632 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4633echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4634 ac_header_preproc=yes
4635 ;;
4636 no:yes:* )
4637 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4638echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4639 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4640echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4641 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4642echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4643 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4644echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4645 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4646echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4647 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4648echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004649 (
4650 cat <<\_ASBOX
4651## ------------------------------------ ##
4652## Report this to the pjproject lists. ##
4653## ------------------------------------ ##
4654_ASBOX
4655 ) |
4656 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004657 ;;
4658esac
Benny Prijono0b462322008-03-12 22:44:24 +00004659echo "$as_me:$LINENO: checking for assert.h" >&5
4660echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004661if test "${ac_cv_header_assert_h+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004663else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004664 ac_cv_header_assert_h=$ac_header_preproc
4665fi
Benny Prijono0b462322008-03-12 22:44:24 +00004666echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4667echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004668
4669fi
4670if test $ac_cv_header_assert_h = yes; then
4671 cat >>confdefs.h <<\_ACEOF
4672#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004673_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004674
4675fi
4676
4677
4678if test "${ac_cv_header_ctype_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004679 echo "$as_me:$LINENO: checking for ctype.h" >&5
4680echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004681if test "${ac_cv_header_ctype_h+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683fi
Benny Prijono0b462322008-03-12 22:44:24 +00004684echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4685echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004686else
4687 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004688echo "$as_me:$LINENO: checking ctype.h usability" >&5
4689echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004690cat >conftest.$ac_ext <<_ACEOF
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
4696$ac_includes_default
4697#include <ctype.h>
4698_ACEOF
4699rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004702 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004703 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004704 rm -f conftest.er1
4705 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest.$ac_objext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004721 ac_header_compiler=yes
4722else
4723 echo "$as_me: failed program was:" >&5
4724sed 's/^/| /' conftest.$ac_ext >&5
4725
Benny Prijono0b462322008-03-12 22:44:24 +00004726ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004727fi
Benny Prijono0b462322008-03-12 22:44:24 +00004728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4729echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4730echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004731
4732# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004733echo "$as_me:$LINENO: checking ctype.h presence" >&5
4734echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004735cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h. */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h. */
4741#include <ctype.h>
4742_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004750 (exit $ac_status); } >/dev/null; then
4751 if test -s conftest.err; then
4752 ac_cpp_err=$ac_c_preproc_warn_flag
4753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4754 else
4755 ac_cpp_err=
4756 fi
4757else
4758 ac_cpp_err=yes
4759fi
4760if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004761 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004762else
4763 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004764sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004767fi
4768rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004769echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4770echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004771
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004772# So? What about this header?
4773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4774 yes:no: )
4775 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4776echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4777 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4778echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4779 ac_header_preproc=yes
4780 ;;
4781 no:yes:* )
4782 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4783echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4784 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4785echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4787echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4788 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4789echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4791echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4792 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4793echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004794 (
4795 cat <<\_ASBOX
4796## ------------------------------------ ##
4797## Report this to the pjproject lists. ##
4798## ------------------------------------ ##
4799_ASBOX
4800 ) |
4801 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004802 ;;
4803esac
Benny Prijono0b462322008-03-12 22:44:24 +00004804echo "$as_me:$LINENO: checking for ctype.h" >&5
4805echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004806if test "${ac_cv_header_ctype_h+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004808else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004809 ac_cv_header_ctype_h=$ac_header_preproc
4810fi
Benny Prijono0b462322008-03-12 22:44:24 +00004811echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4812echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004813
4814fi
4815if test $ac_cv_header_ctype_h = yes; then
4816 cat >>confdefs.h <<\_ACEOF
4817#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004818_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004819
4820fi
4821
4822
4823
4824case $target in
4825 *mingw* | *cygw* | *win32* | *w32* )
4826 cat >>confdefs.h <<\_ACEOF
4827#define PJ_HAS_ERRNO_H 0
4828_ACEOF
4829
4830 ;;
4831 *)
4832 if test "${ac_cv_header_errno_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004833 echo "$as_me:$LINENO: checking for errno.h" >&5
4834echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004835if test "${ac_cv_header_errno_h+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837fi
Benny Prijono0b462322008-03-12 22:44:24 +00004838echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4839echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004840else
4841 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004842echo "$as_me:$LINENO: checking errno.h usability" >&5
4843echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004844cat >conftest.$ac_ext <<_ACEOF
4845/* confdefs.h. */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h. */
4850$ac_includes_default
4851#include <errno.h>
4852_ACEOF
4853rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004856 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004857 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004858 rm -f conftest.er1
4859 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004861 (exit $ac_status); } &&
4862 { ac_try='test -z "$ac_c_werror_flag"
4863 || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004875 ac_header_compiler=yes
4876else
4877 echo "$as_me: failed program was:" >&5
4878sed 's/^/| /' conftest.$ac_ext >&5
4879
Benny Prijono0b462322008-03-12 22:44:24 +00004880ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004881fi
Benny Prijono0b462322008-03-12 22:44:24 +00004882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4883echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4884echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004885
4886# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004887echo "$as_me:$LINENO: checking errno.h presence" >&5
4888echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004889cat >conftest.$ac_ext <<_ACEOF
4890/* confdefs.h. */
4891_ACEOF
4892cat confdefs.h >>conftest.$ac_ext
4893cat >>conftest.$ac_ext <<_ACEOF
4894/* end confdefs.h. */
4895#include <errno.h>
4896_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004897if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004904 (exit $ac_status); } >/dev/null; then
4905 if test -s conftest.err; then
4906 ac_cpp_err=$ac_c_preproc_warn_flag
4907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4908 else
4909 ac_cpp_err=
4910 fi
4911else
4912 ac_cpp_err=yes
4913fi
4914if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004915 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004916else
4917 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004921fi
4922rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004923echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4924echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004925
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004926# So? What about this header?
4927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4928 yes:no: )
4929 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4930echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4931 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4932echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4933 ac_header_preproc=yes
4934 ;;
4935 no:yes:* )
4936 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4937echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4939echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4941echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4942 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4943echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4945echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4946 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4947echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004948 (
4949 cat <<\_ASBOX
4950## ------------------------------------ ##
4951## Report this to the pjproject lists. ##
4952## ------------------------------------ ##
4953_ASBOX
4954 ) |
4955 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004956 ;;
4957esac
Benny Prijono0b462322008-03-12 22:44:24 +00004958echo "$as_me:$LINENO: checking for errno.h" >&5
4959echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004960if test "${ac_cv_header_errno_h+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004962else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004963 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004964fi
Benny Prijono0b462322008-03-12 22:44:24 +00004965echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4966echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004967
4968fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004969if test $ac_cv_header_errno_h = yes; then
4970 cat >>confdefs.h <<\_ACEOF
4971#define PJ_HAS_ERRNO_H 1
4972_ACEOF
4973
4974fi
4975
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004976
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004977 ;;
4978esac
4979
Benny Prijono1d481ab2008-01-24 15:27:30 +00004980if test "${ac_cv_header_fcntl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004981 echo "$as_me:$LINENO: checking for fcntl.h" >&5
4982echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004983if test "${ac_cv_header_fcntl_h+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985fi
Benny Prijono0b462322008-03-12 22:44:24 +00004986echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
4987echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004988else
4989 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004990echo "$as_me:$LINENO: checking fcntl.h usability" >&5
4991echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004992cat >conftest.$ac_ext <<_ACEOF
4993/* confdefs.h. */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h. */
4998$ac_includes_default
4999#include <fcntl.h>
5000_ACEOF
5001rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003 (eval $ac_compile) 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005004 ac_status=$?
5005 grep -v '^ *+' conftest.er1 >conftest.err
5006 rm -f conftest.er1
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005009 (exit $ac_status); } &&
5010 { ac_try='test -z "$ac_c_werror_flag"
5011 || test ! -s conftest.err'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try='test -s conftest.$ac_objext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005023 ac_header_compiler=yes
5024else
5025 echo "$as_me: failed program was:" >&5
5026sed 's/^/| /' conftest.$ac_ext >&5
5027
Benny Prijono0b462322008-03-12 22:44:24 +00005028ac_header_compiler=no
Benny Prijono1d481ab2008-01-24 15:27:30 +00005029fi
Benny Prijono0b462322008-03-12 22:44:24 +00005030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5032echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005033
5034# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005035echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5036echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005037cat >conftest.$ac_ext <<_ACEOF
5038/* confdefs.h. */
5039_ACEOF
5040cat confdefs.h >>conftest.$ac_ext
5041cat >>conftest.$ac_ext <<_ACEOF
5042/* end confdefs.h. */
5043#include <fcntl.h>
5044_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005052 (exit $ac_status); } >/dev/null; then
5053 if test -s conftest.err; then
5054 ac_cpp_err=$ac_c_preproc_warn_flag
5055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5056 else
5057 ac_cpp_err=
5058 fi
5059else
5060 ac_cpp_err=yes
5061fi
5062if test -z "$ac_cpp_err"; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005063 ac_header_preproc=yes
5064else
5065 echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 ac_header_preproc=no
5069fi
Benny Prijono1d481ab2008-01-24 15:27:30 +00005070rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5072echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005073
5074# So? What about this header?
5075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5076 yes:no: )
5077 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5078echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5080echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5081 ac_header_preproc=yes
5082 ;;
5083 no:yes:* )
5084 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5085echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5086 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5087echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5088 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5089echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5090 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5091echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5092 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5093echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5094 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5095echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005096 (
5097 cat <<\_ASBOX
5098## ------------------------------------ ##
5099## Report this to the pjproject lists. ##
5100## ------------------------------------ ##
5101_ASBOX
5102 ) |
5103 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1d481ab2008-01-24 15:27:30 +00005104 ;;
5105esac
Benny Prijono0b462322008-03-12 22:44:24 +00005106echo "$as_me:$LINENO: checking for fcntl.h" >&5
5107echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005108if test "${ac_cv_header_fcntl_h+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111 ac_cv_header_fcntl_h=$ac_header_preproc
5112fi
Benny Prijono0b462322008-03-12 22:44:24 +00005113echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5114echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005115
5116fi
5117if test $ac_cv_header_fcntl_h = yes; then
5118 cat >>confdefs.h <<\_ACEOF
5119#define PJ_HAS_FCNTL_H 1
5120_ACEOF
5121
5122fi
5123
5124
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005125if test "${ac_cv_header_linux_socket_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005126 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5127echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005128if test "${ac_cv_header_linux_socket_h+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130fi
Benny Prijono0b462322008-03-12 22:44:24 +00005131echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5132echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005133else
5134 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005135echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5136echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005137cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h. */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h. */
5143$ac_includes_default
5144#include <linux/socket.h>
5145_ACEOF
5146rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005149 ac_status=$?
5150 grep -v '^ *+' conftest.er1 >conftest.err
5151 rm -f conftest.er1
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005154 (exit $ac_status); } &&
5155 { ac_try='test -z "$ac_c_werror_flag"
5156 || test ! -s conftest.err'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; } &&
5162 { ac_try='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 (eval $ac_try) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005168 ac_header_compiler=yes
5169else
5170 echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
Benny Prijono0b462322008-03-12 22:44:24 +00005173ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005174fi
Benny Prijono0b462322008-03-12 22:44:24 +00005175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5177echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005178
5179# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005180echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5181echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005182cat >conftest.$ac_ext <<_ACEOF
5183/* confdefs.h. */
5184_ACEOF
5185cat confdefs.h >>conftest.$ac_ext
5186cat >>conftest.$ac_ext <<_ACEOF
5187/* end confdefs.h. */
5188#include <linux/socket.h>
5189_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005197 (exit $ac_status); } >/dev/null; then
5198 if test -s conftest.err; then
5199 ac_cpp_err=$ac_c_preproc_warn_flag
5200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5201 else
5202 ac_cpp_err=
5203 fi
5204else
5205 ac_cpp_err=yes
5206fi
5207if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005208 ac_header_preproc=yes
5209else
5210 echo "$as_me: failed program was:" >&5
5211sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 ac_header_preproc=no
5214fi
5215rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5217echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005218
5219# So? What about this header?
5220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5221 yes:no: )
5222 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5223echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5225echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5226 ac_header_preproc=yes
5227 ;;
5228 no:yes:* )
5229 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5230echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5231 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5232echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5233 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5234echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5235 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5236echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5237 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5238echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5239 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5240echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005241 (
5242 cat <<\_ASBOX
5243## ------------------------------------ ##
5244## Report this to the pjproject lists. ##
5245## ------------------------------------ ##
5246_ASBOX
5247 ) |
5248 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005249 ;;
5250esac
Benny Prijono0b462322008-03-12 22:44:24 +00005251echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5252echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005253if test "${ac_cv_header_linux_socket_h+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005255else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005256 ac_cv_header_linux_socket_h=$ac_header_preproc
5257fi
Benny Prijono0b462322008-03-12 22:44:24 +00005258echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5259echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005260
5261fi
5262if test $ac_cv_header_linux_socket_h = yes; then
5263 cat >>confdefs.h <<\_ACEOF
5264#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005265_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005266
5267fi
5268
5269
5270if test "${ac_cv_header_malloc_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005271 echo "$as_me:$LINENO: checking for malloc.h" >&5
5272echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005273if test "${ac_cv_header_malloc_h+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275fi
Benny Prijono0b462322008-03-12 22:44:24 +00005276echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5277echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005278else
5279 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005280echo "$as_me:$LINENO: checking malloc.h usability" >&5
5281echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005282cat >conftest.$ac_ext <<_ACEOF
5283/* confdefs.h. */
5284_ACEOF
5285cat confdefs.h >>conftest.$ac_ext
5286cat >>conftest.$ac_ext <<_ACEOF
5287/* end confdefs.h. */
5288$ac_includes_default
5289#include <malloc.h>
5290_ACEOF
5291rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005294 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005295 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005296 rm -f conftest.er1
5297 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005313 ac_header_compiler=yes
5314else
5315 echo "$as_me: failed program was:" >&5
5316sed 's/^/| /' conftest.$ac_ext >&5
5317
Benny Prijono0b462322008-03-12 22:44:24 +00005318ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005319fi
Benny Prijono0b462322008-03-12 22:44:24 +00005320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5322echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005323
5324# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005325echo "$as_me:$LINENO: checking malloc.h presence" >&5
5326echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005327cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h. */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h. */
5333#include <malloc.h>
5334_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005342 (exit $ac_status); } >/dev/null; then
5343 if test -s conftest.err; then
5344 ac_cpp_err=$ac_c_preproc_warn_flag
5345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5346 else
5347 ac_cpp_err=
5348 fi
5349else
5350 ac_cpp_err=yes
5351fi
5352if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005353 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005354else
5355 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005356sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005359fi
5360rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5362echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005363
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005364# So? What about this header?
5365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5366 yes:no: )
5367 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5368echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5370echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5371 ac_header_preproc=yes
5372 ;;
5373 no:yes:* )
5374 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5375echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5376 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5377echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5378 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5379echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5380 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5381echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5382 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5383echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5385echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005386 (
5387 cat <<\_ASBOX
5388## ------------------------------------ ##
5389## Report this to the pjproject lists. ##
5390## ------------------------------------ ##
5391_ASBOX
5392 ) |
5393 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005394 ;;
5395esac
Benny Prijono0b462322008-03-12 22:44:24 +00005396echo "$as_me:$LINENO: checking for malloc.h" >&5
5397echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005398if test "${ac_cv_header_malloc_h+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005400else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005401 ac_cv_header_malloc_h=$ac_header_preproc
5402fi
Benny Prijono0b462322008-03-12 22:44:24 +00005403echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5404echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005405
5406fi
5407if test $ac_cv_header_malloc_h = yes; then
5408 cat >>confdefs.h <<\_ACEOF
5409#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005410_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005411
5412fi
5413
5414
5415if test "${ac_cv_header_netdb_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005416 echo "$as_me:$LINENO: checking for netdb.h" >&5
5417echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005418if test "${ac_cv_header_netdb_h+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420fi
Benny Prijono0b462322008-03-12 22:44:24 +00005421echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5422echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005423else
5424 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005425echo "$as_me:$LINENO: checking netdb.h usability" >&5
5426echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005427cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433$ac_includes_default
5434#include <netdb.h>
5435_ACEOF
5436rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005439 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005440 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005441 rm -f conftest.er1
5442 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005444 (exit $ac_status); } &&
5445 { ac_try='test -z "$ac_c_werror_flag"
5446 || test ! -s conftest.err'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try='test -s conftest.$ac_objext'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 (eval $ac_try) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005458 ac_header_compiler=yes
5459else
5460 echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5
5462
Benny Prijono0b462322008-03-12 22:44:24 +00005463ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005464fi
Benny Prijono0b462322008-03-12 22:44:24 +00005465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5467echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005468
5469# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005470echo "$as_me:$LINENO: checking netdb.h presence" >&5
5471echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005472cat >conftest.$ac_ext <<_ACEOF
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
5478#include <netdb.h>
5479_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005487 (exit $ac_status); } >/dev/null; then
5488 if test -s conftest.err; then
5489 ac_cpp_err=$ac_c_preproc_warn_flag
5490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5491 else
5492 ac_cpp_err=
5493 fi
5494else
5495 ac_cpp_err=yes
5496fi
5497if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005498 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005499else
5500 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005501sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005504fi
5505rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5507echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005508
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005509# So? What about this header?
5510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5511 yes:no: )
5512 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5513echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5515echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5516 ac_header_preproc=yes
5517 ;;
5518 no:yes:* )
5519 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5520echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5522echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5524echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5526echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5528echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5530echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005531 (
5532 cat <<\_ASBOX
5533## ------------------------------------ ##
5534## Report this to the pjproject lists. ##
5535## ------------------------------------ ##
5536_ASBOX
5537 ) |
5538 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005539 ;;
5540esac
Benny Prijono0b462322008-03-12 22:44:24 +00005541echo "$as_me:$LINENO: checking for netdb.h" >&5
5542echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005543if test "${ac_cv_header_netdb_h+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005545else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005546 ac_cv_header_netdb_h=$ac_header_preproc
5547fi
Benny Prijono0b462322008-03-12 22:44:24 +00005548echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5549echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005550
5551fi
5552if test $ac_cv_header_netdb_h = yes; then
5553 cat >>confdefs.h <<\_ACEOF
5554#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005555_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005556
5557fi
5558
5559
5560if test "${ac_cv_header_netinet_in_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005561 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5562echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005563if test "${ac_cv_header_netinet_in_h+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565fi
Benny Prijono0b462322008-03-12 22:44:24 +00005566echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5567echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005568else
5569 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005570echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5571echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005572cat >conftest.$ac_ext <<_ACEOF
5573/* confdefs.h. */
5574_ACEOF
5575cat confdefs.h >>conftest.$ac_ext
5576cat >>conftest.$ac_ext <<_ACEOF
5577/* end confdefs.h. */
5578$ac_includes_default
5579#include <netinet/in.h>
5580_ACEOF
5581rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005584 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005585 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005586 rm -f conftest.er1
5587 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag"
5591 || test ! -s conftest.err'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005603 ac_header_compiler=yes
5604else
5605 echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
Benny Prijono0b462322008-03-12 22:44:24 +00005608ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005609fi
Benny Prijono0b462322008-03-12 22:44:24 +00005610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5611echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5612echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005613
5614# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005615echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5616echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005617cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h. */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h. */
5623#include <netinet/in.h>
5624_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005632 (exit $ac_status); } >/dev/null; then
5633 if test -s conftest.err; then
5634 ac_cpp_err=$ac_c_preproc_warn_flag
5635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5636 else
5637 ac_cpp_err=
5638 fi
5639else
5640 ac_cpp_err=yes
5641fi
5642if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005643 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005644else
5645 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005646sed 's/^/| /' conftest.$ac_ext >&5
5647
5648 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005649fi
5650rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005651echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5652echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005653
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005654# So? What about this header?
5655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5656 yes:no: )
5657 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5658echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5660echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5661 ac_header_preproc=yes
5662 ;;
5663 no:yes:* )
5664 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5665echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5667echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5669echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5670 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5671echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5672 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5673echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5675echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005676 (
5677 cat <<\_ASBOX
5678## ------------------------------------ ##
5679## Report this to the pjproject lists. ##
5680## ------------------------------------ ##
5681_ASBOX
5682 ) |
5683 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005684 ;;
5685esac
Benny Prijono0b462322008-03-12 22:44:24 +00005686echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5687echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005688if test "${ac_cv_header_netinet_in_h+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005690else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005691 ac_cv_header_netinet_in_h=$ac_header_preproc
5692fi
Benny Prijono0b462322008-03-12 22:44:24 +00005693echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5694echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005695
5696fi
5697if test $ac_cv_header_netinet_in_h = yes; then
5698 cat >>confdefs.h <<\_ACEOF
5699#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005700_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005701
5702fi
5703
5704
Benny Prijonof63a2552007-02-01 00:36:52 +00005705if test "${ac_cv_header_netinet_ip_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005706 echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5707echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005708if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710fi
Benny Prijono0b462322008-03-12 22:44:24 +00005711echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5712echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005713else
5714 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005715echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5
5716echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005717cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723$ac_includes_default
5724#include <netinet/ip.h>
5725_ACEOF
5726rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00005729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag"
5736 || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
Benny Prijonof63a2552007-02-01 00:36:52 +00005748 ac_header_compiler=yes
5749else
5750 echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
Benny Prijono0b462322008-03-12 22:44:24 +00005753ac_header_compiler=no
Benny Prijonof63a2552007-02-01 00:36:52 +00005754fi
Benny Prijono0b462322008-03-12 22:44:24 +00005755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5757echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005758
5759# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005760echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5
5761echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005762cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h. */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h. */
5768#include <netinet/ip.h>
5769_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00005772 ac_status=$?
5773 grep -v '^ *+' conftest.er1 >conftest.err
5774 rm -f conftest.er1
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005777 (exit $ac_status); } >/dev/null; then
5778 if test -s conftest.err; then
5779 ac_cpp_err=$ac_c_preproc_warn_flag
5780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5781 else
5782 ac_cpp_err=
5783 fi
5784else
5785 ac_cpp_err=yes
5786fi
5787if test -z "$ac_cpp_err"; then
Benny Prijonof63a2552007-02-01 00:36:52 +00005788 ac_header_preproc=yes
5789else
5790 echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793 ac_header_preproc=no
5794fi
5795rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5797echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005798
5799# So? What about this header?
5800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5801 yes:no: )
5802 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5
5803echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5804 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5
5805echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}
5806 ac_header_preproc=yes
5807 ;;
5808 no:yes:* )
5809 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5
5810echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}
5811 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5
5812echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}
5813 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5
5814echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}
5815 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5
5816echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}
5817 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5
5818echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}
5819 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5
5820echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005821 (
5822 cat <<\_ASBOX
5823## ------------------------------------ ##
5824## Report this to the pjproject lists. ##
5825## ------------------------------------ ##
5826_ASBOX
5827 ) |
5828 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijonof63a2552007-02-01 00:36:52 +00005829 ;;
5830esac
Benny Prijono0b462322008-03-12 22:44:24 +00005831echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5832echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005833if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5835else
5836 ac_cv_header_netinet_ip_h=$ac_header_preproc
5837fi
Benny Prijono0b462322008-03-12 22:44:24 +00005838echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5839echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005840
5841fi
5842if test $ac_cv_header_netinet_ip_h = yes; then
5843 cat >>confdefs.h <<\_ACEOF
5844#define PJ_HAS_NETINET_IP_H 1
5845_ACEOF
5846
5847fi
5848
5849
Benny Prijono1d65f702007-12-03 04:03:17 +00005850if test "${ac_cv_header_ifaddrs_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005851 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5852echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005853if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855fi
Benny Prijono0b462322008-03-12 22:44:24 +00005856echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5857echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005858else
5859 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005860echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5861echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005862cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h. */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h. */
5868$ac_includes_default
5869#include <ifaddrs.h>
5870_ACEOF
5871rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5873 (eval $ac_compile) 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00005874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005879 (exit $ac_status); } &&
5880 { ac_try='test -z "$ac_c_werror_flag"
5881 || test ! -s conftest.err'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest.$ac_objext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 (eval $ac_try) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
Benny Prijono1d65f702007-12-03 04:03:17 +00005893 ac_header_compiler=yes
5894else
5895 echo "$as_me: failed program was:" >&5
5896sed 's/^/| /' conftest.$ac_ext >&5
5897
Benny Prijono0b462322008-03-12 22:44:24 +00005898ac_header_compiler=no
Benny Prijono1d65f702007-12-03 04:03:17 +00005899fi
Benny Prijono0b462322008-03-12 22:44:24 +00005900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5901echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5902echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005903
5904# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005905echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5906echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005907cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
5913#include <ifaddrs.h>
5914_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00005917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005922 (exit $ac_status); } >/dev/null; then
5923 if test -s conftest.err; then
5924 ac_cpp_err=$ac_c_preproc_warn_flag
5925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5926 else
5927 ac_cpp_err=
5928 fi
5929else
5930 ac_cpp_err=yes
5931fi
5932if test -z "$ac_cpp_err"; then
Benny Prijono1d65f702007-12-03 04:03:17 +00005933 ac_header_preproc=yes
5934else
5935 echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938 ac_header_preproc=no
5939fi
5940rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005941echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5942echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005943
5944# So? What about this header?
5945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5946 yes:no: )
5947 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5948echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
5950echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
5951 ac_header_preproc=yes
5952 ;;
5953 no:yes:* )
5954 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5955echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5956 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5957echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5958 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
5959echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
5960 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
5961echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
5962 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5963echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5964 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
5965echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005966 (
5967 cat <<\_ASBOX
5968## ------------------------------------ ##
5969## Report this to the pjproject lists. ##
5970## ------------------------------------ ##
5971_ASBOX
5972 ) |
5973 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1d65f702007-12-03 04:03:17 +00005974 ;;
5975esac
Benny Prijono0b462322008-03-12 22:44:24 +00005976echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5977echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005978if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981 ac_cv_header_ifaddrs_h=$ac_header_preproc
5982fi
Benny Prijono0b462322008-03-12 22:44:24 +00005983echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5984echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005985
5986fi
5987if test $ac_cv_header_ifaddrs_h = yes; then
5988 cat >>confdefs.h <<\_ACEOF
5989#define PJ_HAS_IFADDRS_H 1
5990_ACEOF
5991
5992fi
5993
5994
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005995if test "${ac_cv_header_semaphore_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005996 echo "$as_me:$LINENO: checking for semaphore.h" >&5
5997echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005998if test "${ac_cv_header_semaphore_h+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000fi
Benny Prijono0b462322008-03-12 22:44:24 +00006001echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6002echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006003else
6004 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006005echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6006echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006007cat >conftest.$ac_ext <<_ACEOF
6008/* confdefs.h. */
6009_ACEOF
6010cat confdefs.h >>conftest.$ac_ext
6011cat >>conftest.$ac_ext <<_ACEOF
6012/* end confdefs.h. */
6013$ac_includes_default
6014#include <semaphore.h>
6015_ACEOF
6016rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006024 (exit $ac_status); } &&
6025 { ac_try='test -z "$ac_c_werror_flag"
6026 || test ! -s conftest.err'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 (eval $ac_try) 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006038 ac_header_compiler=yes
6039else
6040 echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
Benny Prijono0b462322008-03-12 22:44:24 +00006043ac_header_compiler=no
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006044fi
Benny Prijono0b462322008-03-12 22:44:24 +00006045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6047echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006048
6049# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006050echo "$as_me:$LINENO: checking semaphore.h presence" >&5
6051echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006052cat >conftest.$ac_ext <<_ACEOF
6053/* confdefs.h. */
6054_ACEOF
6055cat confdefs.h >>conftest.$ac_ext
6056cat >>conftest.$ac_ext <<_ACEOF
6057/* end confdefs.h. */
6058#include <semaphore.h>
6059_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006067 (exit $ac_status); } >/dev/null; then
6068 if test -s conftest.err; then
6069 ac_cpp_err=$ac_c_preproc_warn_flag
6070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6071 else
6072 ac_cpp_err=
6073 fi
6074else
6075 ac_cpp_err=yes
6076fi
6077if test -z "$ac_cpp_err"; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006078 ac_header_preproc=yes
6079else
6080 echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 ac_header_preproc=no
6084fi
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006085rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6087echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006088
6089# So? What about this header?
6090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6091 yes:no: )
6092 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
6093echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
6095echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
6096 ac_header_preproc=yes
6097 ;;
6098 no:yes:* )
6099 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
6100echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
6102echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
6104echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
6106echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
6107 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
6108echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
6109 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
6110echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006111 (
6112 cat <<\_ASBOX
6113## ------------------------------------ ##
6114## Report this to the pjproject lists. ##
6115## ------------------------------------ ##
6116_ASBOX
6117 ) |
6118 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006119 ;;
6120esac
Benny Prijono0b462322008-03-12 22:44:24 +00006121echo "$as_me:$LINENO: checking for semaphore.h" >&5
6122echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006123if test "${ac_cv_header_semaphore_h+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126 ac_cv_header_semaphore_h=$ac_header_preproc
6127fi
Benny Prijono0b462322008-03-12 22:44:24 +00006128echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6129echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006130
6131fi
6132if test $ac_cv_header_semaphore_h = yes; then
6133 cat >>confdefs.h <<\_ACEOF
6134#define PJ_HAS_SEMAPHORE_H 1
6135_ACEOF
6136
6137fi
6138
6139
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006140if test "${ac_cv_header_setjmp_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006141 echo "$as_me:$LINENO: checking for setjmp.h" >&5
6142echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006143if test "${ac_cv_header_setjmp_h+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145fi
Benny Prijono0b462322008-03-12 22:44:24 +00006146echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6147echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006148else
6149 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006150echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6151echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006152cat >conftest.$ac_ext <<_ACEOF
6153/* confdefs.h. */
6154_ACEOF
6155cat confdefs.h >>conftest.$ac_ext
6156cat >>conftest.$ac_ext <<_ACEOF
6157/* end confdefs.h. */
6158$ac_includes_default
6159#include <setjmp.h>
6160_ACEOF
6161rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6163 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006164 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006165 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006166 rm -f conftest.er1
6167 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006169 (exit $ac_status); } &&
6170 { ac_try='test -z "$ac_c_werror_flag"
6171 || test ! -s conftest.err'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; } &&
6177 { ac_try='test -s conftest.$ac_objext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006183 ac_header_compiler=yes
6184else
6185 echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
Benny Prijono0b462322008-03-12 22:44:24 +00006188ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006189fi
Benny Prijono0b462322008-03-12 22:44:24 +00006190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6192echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006193
6194# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006195echo "$as_me:$LINENO: checking setjmp.h presence" >&5
6196echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006197cat >conftest.$ac_ext <<_ACEOF
6198/* confdefs.h. */
6199_ACEOF
6200cat confdefs.h >>conftest.$ac_ext
6201cat >>conftest.$ac_ext <<_ACEOF
6202/* end confdefs.h. */
6203#include <setjmp.h>
6204_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006212 (exit $ac_status); } >/dev/null; then
6213 if test -s conftest.err; then
6214 ac_cpp_err=$ac_c_preproc_warn_flag
6215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6216 else
6217 ac_cpp_err=
6218 fi
6219else
6220 ac_cpp_err=yes
6221fi
6222if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006223 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006224else
6225 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006229fi
6230rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6232echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006233
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006234# So? What about this header?
6235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6236 yes:no: )
6237 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6238echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6239 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
6240echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
6241 ac_header_preproc=yes
6242 ;;
6243 no:yes:* )
6244 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
6245echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
6246 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
6247echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
6248 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
6249echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
6250 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
6251echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6252 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
6253echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
6254 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
6255echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006256 (
6257 cat <<\_ASBOX
6258## ------------------------------------ ##
6259## Report this to the pjproject lists. ##
6260## ------------------------------------ ##
6261_ASBOX
6262 ) |
6263 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006264 ;;
6265esac
Benny Prijono0b462322008-03-12 22:44:24 +00006266echo "$as_me:$LINENO: checking for setjmp.h" >&5
6267echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006268if test "${ac_cv_header_setjmp_h+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006270else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006271 ac_cv_header_setjmp_h=$ac_header_preproc
6272fi
Benny Prijono0b462322008-03-12 22:44:24 +00006273echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6274echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006275
6276fi
6277if test $ac_cv_header_setjmp_h = yes; then
6278 cat >>confdefs.h <<\_ACEOF
6279#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006280_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006281
6282fi
6283
6284
6285if test "${ac_cv_header_stdarg_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006286 echo "$as_me:$LINENO: checking for stdarg.h" >&5
6287echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006288if test "${ac_cv_header_stdarg_h+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290fi
Benny Prijono0b462322008-03-12 22:44:24 +00006291echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6292echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006293else
6294 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006295echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6296echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006297cat >conftest.$ac_ext <<_ACEOF
6298/* confdefs.h. */
6299_ACEOF
6300cat confdefs.h >>conftest.$ac_ext
6301cat >>conftest.$ac_ext <<_ACEOF
6302/* end confdefs.h. */
6303$ac_includes_default
6304#include <stdarg.h>
6305_ACEOF
6306rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006309 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006310 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006311 rm -f conftest.er1
6312 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006314 (exit $ac_status); } &&
6315 { ac_try='test -z "$ac_c_werror_flag"
6316 || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006328 ac_header_compiler=yes
6329else
6330 echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
Benny Prijono0b462322008-03-12 22:44:24 +00006333ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006334fi
Benny Prijono0b462322008-03-12 22:44:24 +00006335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6337echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006338
6339# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006340echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6341echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006342cat >conftest.$ac_ext <<_ACEOF
6343/* confdefs.h. */
6344_ACEOF
6345cat confdefs.h >>conftest.$ac_ext
6346cat >>conftest.$ac_ext <<_ACEOF
6347/* end confdefs.h. */
6348#include <stdarg.h>
6349_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006357 (exit $ac_status); } >/dev/null; then
6358 if test -s conftest.err; then
6359 ac_cpp_err=$ac_c_preproc_warn_flag
6360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6361 else
6362 ac_cpp_err=
6363 fi
6364else
6365 ac_cpp_err=yes
6366fi
6367if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006368 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006369else
6370 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006371sed 's/^/| /' conftest.$ac_ext >&5
6372
6373 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006374fi
6375rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006376echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6377echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006378
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006379# So? What about this header?
6380case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6381 yes:no: )
6382 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6383echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6385echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6386 ac_header_preproc=yes
6387 ;;
6388 no:yes:* )
6389 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6390echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6392echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6394echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6396echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6397 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6398echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6399 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6400echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006401 (
6402 cat <<\_ASBOX
6403## ------------------------------------ ##
6404## Report this to the pjproject lists. ##
6405## ------------------------------------ ##
6406_ASBOX
6407 ) |
6408 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006409 ;;
6410esac
Benny Prijono0b462322008-03-12 22:44:24 +00006411echo "$as_me:$LINENO: checking for stdarg.h" >&5
6412echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006413if test "${ac_cv_header_stdarg_h+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006415else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006416 ac_cv_header_stdarg_h=$ac_header_preproc
6417fi
Benny Prijono0b462322008-03-12 22:44:24 +00006418echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6419echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006420
6421fi
6422if test $ac_cv_header_stdarg_h = yes; then
6423 cat >>confdefs.h <<\_ACEOF
6424#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006425_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006426
6427fi
6428
6429
6430if test "${ac_cv_header_stddef_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006431 echo "$as_me:$LINENO: checking for stddef.h" >&5
6432echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006433if test "${ac_cv_header_stddef_h+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435fi
Benny Prijono0b462322008-03-12 22:44:24 +00006436echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6437echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006438else
6439 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006440echo "$as_me:$LINENO: checking stddef.h usability" >&5
6441echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006442cat >conftest.$ac_ext <<_ACEOF
6443/* confdefs.h. */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
6447/* end confdefs.h. */
6448$ac_includes_default
6449#include <stddef.h>
6450_ACEOF
6451rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6453 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006454 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006455 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006456 rm -f conftest.er1
6457 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006459 (exit $ac_status); } &&
6460 { ac_try='test -z "$ac_c_werror_flag"
6461 || test ! -s conftest.err'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; } &&
6467 { ac_try='test -s conftest.$ac_objext'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 (eval $ac_try) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006473 ac_header_compiler=yes
6474else
6475 echo "$as_me: failed program was:" >&5
6476sed 's/^/| /' conftest.$ac_ext >&5
6477
Benny Prijono0b462322008-03-12 22:44:24 +00006478ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006479fi
Benny Prijono0b462322008-03-12 22:44:24 +00006480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6482echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006483
6484# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006485echo "$as_me:$LINENO: checking stddef.h presence" >&5
6486echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006487cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h. */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h. */
6493#include <stddef.h>
6494_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006502 (exit $ac_status); } >/dev/null; then
6503 if test -s conftest.err; then
6504 ac_cpp_err=$ac_c_preproc_warn_flag
6505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6506 else
6507 ac_cpp_err=
6508 fi
6509else
6510 ac_cpp_err=yes
6511fi
6512if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006513 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006514else
6515 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006516sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006519fi
6520rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006521echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6522echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006523
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006524# So? What about this header?
6525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6526 yes:no: )
6527 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6528echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6530echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6531 ac_header_preproc=yes
6532 ;;
6533 no:yes:* )
6534 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6535echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6536 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6537echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6538 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6539echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6540 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6541echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6542 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6543echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6544 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6545echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006546 (
6547 cat <<\_ASBOX
6548## ------------------------------------ ##
6549## Report this to the pjproject lists. ##
6550## ------------------------------------ ##
6551_ASBOX
6552 ) |
6553 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006554 ;;
6555esac
Benny Prijono0b462322008-03-12 22:44:24 +00006556echo "$as_me:$LINENO: checking for stddef.h" >&5
6557echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006558if test "${ac_cv_header_stddef_h+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006560else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006561 ac_cv_header_stddef_h=$ac_header_preproc
6562fi
Benny Prijono0b462322008-03-12 22:44:24 +00006563echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6564echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006565
6566fi
6567if test $ac_cv_header_stddef_h = yes; then
6568 cat >>confdefs.h <<\_ACEOF
6569#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006570_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006571
6572fi
6573
6574
6575if test "${ac_cv_header_stdio_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006576 echo "$as_me:$LINENO: checking for stdio.h" >&5
6577echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006578if test "${ac_cv_header_stdio_h+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580fi
Benny Prijono0b462322008-03-12 22:44:24 +00006581echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6582echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006583else
6584 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006585echo "$as_me:$LINENO: checking stdio.h usability" >&5
6586echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006587cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h. */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h. */
6593$ac_includes_default
6594#include <stdio.h>
6595_ACEOF
6596rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006599 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006600 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006601 rm -f conftest.er1
6602 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest.$ac_objext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006618 ac_header_compiler=yes
6619else
6620 echo "$as_me: failed program was:" >&5
6621sed 's/^/| /' conftest.$ac_ext >&5
6622
Benny Prijono0b462322008-03-12 22:44:24 +00006623ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006624fi
Benny Prijono0b462322008-03-12 22:44:24 +00006625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6626echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6627echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006628
6629# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006630echo "$as_me:$LINENO: checking stdio.h presence" >&5
6631echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006632cat >conftest.$ac_ext <<_ACEOF
6633/* confdefs.h. */
6634_ACEOF
6635cat confdefs.h >>conftest.$ac_ext
6636cat >>conftest.$ac_ext <<_ACEOF
6637/* end confdefs.h. */
6638#include <stdio.h>
6639_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006642 ac_status=$?
6643 grep -v '^ *+' conftest.er1 >conftest.err
6644 rm -f conftest.er1
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006647 (exit $ac_status); } >/dev/null; then
6648 if test -s conftest.err; then
6649 ac_cpp_err=$ac_c_preproc_warn_flag
6650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6651 else
6652 ac_cpp_err=
6653 fi
6654else
6655 ac_cpp_err=yes
6656fi
6657if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006658 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006659else
6660 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006664fi
6665rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006666echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6667echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006668
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006669# So? What about this header?
6670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6671 yes:no: )
6672 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6673echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6675echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6676 ac_header_preproc=yes
6677 ;;
6678 no:yes:* )
6679 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6680echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6682echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6683 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6684echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6685 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6686echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6687 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6688echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6689 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6690echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006691 (
6692 cat <<\_ASBOX
6693## ------------------------------------ ##
6694## Report this to the pjproject lists. ##
6695## ------------------------------------ ##
6696_ASBOX
6697 ) |
6698 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006699 ;;
6700esac
Benny Prijono0b462322008-03-12 22:44:24 +00006701echo "$as_me:$LINENO: checking for stdio.h" >&5
6702echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006703if test "${ac_cv_header_stdio_h+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006705else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006706 ac_cv_header_stdio_h=$ac_header_preproc
6707fi
Benny Prijono0b462322008-03-12 22:44:24 +00006708echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6709echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006710
6711fi
6712if test $ac_cv_header_stdio_h = yes; then
6713 cat >>confdefs.h <<\_ACEOF
6714#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006715_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006716
6717fi
6718
6719
Benny Prijonofdafd402008-01-23 14:34:46 +00006720if test "${ac_cv_header_stdint_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006721 echo "$as_me:$LINENO: checking for stdint.h" >&5
6722echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006723if test "${ac_cv_header_stdint_h+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725fi
Benny Prijono0b462322008-03-12 22:44:24 +00006726echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6727echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006728else
6729 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006730echo "$as_me:$LINENO: checking stdint.h usability" >&5
6731echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006732cat >conftest.$ac_ext <<_ACEOF
6733/* confdefs.h. */
6734_ACEOF
6735cat confdefs.h >>conftest.$ac_ext
6736cat >>conftest.$ac_ext <<_ACEOF
6737/* end confdefs.h. */
6738$ac_includes_default
6739#include <stdint.h>
6740_ACEOF
6741rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6743 (eval $ac_compile) 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00006744 ac_status=$?
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006749 (exit $ac_status); } &&
6750 { ac_try='test -z "$ac_c_werror_flag"
6751 || test ! -s conftest.err'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; } &&
6757 { ac_try='test -s conftest.$ac_objext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006763 ac_header_compiler=yes
6764else
6765 echo "$as_me: failed program was:" >&5
6766sed 's/^/| /' conftest.$ac_ext >&5
6767
Benny Prijono0b462322008-03-12 22:44:24 +00006768ac_header_compiler=no
Benny Prijonofdafd402008-01-23 14:34:46 +00006769fi
Benny Prijono0b462322008-03-12 22:44:24 +00006770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6772echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006773
6774# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006775echo "$as_me:$LINENO: checking stdint.h presence" >&5
6776echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006777cat >conftest.$ac_ext <<_ACEOF
6778/* confdefs.h. */
6779_ACEOF
6780cat confdefs.h >>conftest.$ac_ext
6781cat >>conftest.$ac_ext <<_ACEOF
6782/* end confdefs.h. */
6783#include <stdint.h>
6784_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00006787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006792 (exit $ac_status); } >/dev/null; then
6793 if test -s conftest.err; then
6794 ac_cpp_err=$ac_c_preproc_warn_flag
6795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6796 else
6797 ac_cpp_err=
6798 fi
6799else
6800 ac_cpp_err=yes
6801fi
6802if test -z "$ac_cpp_err"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006803 ac_header_preproc=yes
6804else
6805 echo "$as_me: failed program was:" >&5
6806sed 's/^/| /' conftest.$ac_ext >&5
6807
6808 ac_header_preproc=no
6809fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006810rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006811echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6812echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006813
6814# So? What about this header?
6815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6816 yes:no: )
6817 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
6818echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
6820echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
6821 ac_header_preproc=yes
6822 ;;
6823 no:yes:* )
6824 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
6825echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
6827echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
6828 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
6829echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
6831echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
6832 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
6833echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
6834 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
6835echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006836 (
6837 cat <<\_ASBOX
6838## ------------------------------------ ##
6839## Report this to the pjproject lists. ##
6840## ------------------------------------ ##
6841_ASBOX
6842 ) |
6843 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijonofdafd402008-01-23 14:34:46 +00006844 ;;
6845esac
Benny Prijono0b462322008-03-12 22:44:24 +00006846echo "$as_me:$LINENO: checking for stdint.h" >&5
6847echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006848if test "${ac_cv_header_stdint_h+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851 ac_cv_header_stdint_h=$ac_header_preproc
6852fi
Benny Prijono0b462322008-03-12 22:44:24 +00006853echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6854echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006855
6856fi
6857if test $ac_cv_header_stdint_h = yes; then
6858 cat >>confdefs.h <<\_ACEOF
6859#define PJ_HAS_STDINT_H 1
6860_ACEOF
6861
6862fi
6863
6864
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006865if test "${ac_cv_header_stdlib_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006866 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6867echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006868if test "${ac_cv_header_stdlib_h+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870fi
Benny Prijono0b462322008-03-12 22:44:24 +00006871echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6872echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006873else
6874 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006875echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6876echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006877cat >conftest.$ac_ext <<_ACEOF
6878/* confdefs.h. */
6879_ACEOF
6880cat confdefs.h >>conftest.$ac_ext
6881cat >>conftest.$ac_ext <<_ACEOF
6882/* end confdefs.h. */
6883$ac_includes_default
6884#include <stdlib.h>
6885_ACEOF
6886rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006889 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006890 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006891 rm -f conftest.er1
6892 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006894 (exit $ac_status); } &&
6895 { ac_try='test -z "$ac_c_werror_flag"
6896 || test ! -s conftest.err'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 (eval $ac_try) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; } &&
6902 { ac_try='test -s conftest.$ac_objext'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006908 ac_header_compiler=yes
6909else
6910 echo "$as_me: failed program was:" >&5
6911sed 's/^/| /' conftest.$ac_ext >&5
6912
Benny Prijono0b462322008-03-12 22:44:24 +00006913ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006914fi
Benny Prijono0b462322008-03-12 22:44:24 +00006915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6917echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006918
6919# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006920echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6921echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006922cat >conftest.$ac_ext <<_ACEOF
6923/* confdefs.h. */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
6927/* end confdefs.h. */
6928#include <stdlib.h>
6929_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006937 (exit $ac_status); } >/dev/null; then
6938 if test -s conftest.err; then
6939 ac_cpp_err=$ac_c_preproc_warn_flag
6940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6941 else
6942 ac_cpp_err=
6943 fi
6944else
6945 ac_cpp_err=yes
6946fi
6947if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006948 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006949else
6950 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006951sed 's/^/| /' conftest.$ac_ext >&5
6952
6953 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006954fi
6955rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6957echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006958
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006959# So? What about this header?
6960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6961 yes:no: )
6962 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6963echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6965echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6966 ac_header_preproc=yes
6967 ;;
6968 no:yes:* )
6969 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6970echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6971 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
6972echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6974echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6975 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
6976echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6977 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6978echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6979 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6980echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006981 (
6982 cat <<\_ASBOX
6983## ------------------------------------ ##
6984## Report this to the pjproject lists. ##
6985## ------------------------------------ ##
6986_ASBOX
6987 ) |
6988 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006989 ;;
6990esac
Benny Prijono0b462322008-03-12 22:44:24 +00006991echo "$as_me:$LINENO: checking for stdlib.h" >&5
6992echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006993if test "${ac_cv_header_stdlib_h+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006995else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006996 ac_cv_header_stdlib_h=$ac_header_preproc
6997fi
Benny Prijono0b462322008-03-12 22:44:24 +00006998echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6999echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007000
7001fi
7002if test $ac_cv_header_stdlib_h = yes; then
7003 cat >>confdefs.h <<\_ACEOF
7004#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007005_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007006
7007fi
7008
7009
7010if test "${ac_cv_header_string_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007011 echo "$as_me:$LINENO: checking for string.h" >&5
7012echo $ECHO_N "checking for string.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007013if test "${ac_cv_header_string_h+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7015fi
Benny Prijono0b462322008-03-12 22:44:24 +00007016echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7017echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007018else
7019 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007020echo "$as_me:$LINENO: checking string.h usability" >&5
7021echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007022cat >conftest.$ac_ext <<_ACEOF
7023/* confdefs.h. */
7024_ACEOF
7025cat confdefs.h >>conftest.$ac_ext
7026cat >>conftest.$ac_ext <<_ACEOF
7027/* end confdefs.h. */
7028$ac_includes_default
7029#include <string.h>
7030_ACEOF
7031rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7033 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007034 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007035 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007036 rm -f conftest.er1
7037 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007039 (exit $ac_status); } &&
7040 { ac_try='test -z "$ac_c_werror_flag"
7041 || test ! -s conftest.err'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; } &&
7047 { ac_try='test -s conftest.$ac_objext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 (eval $ac_try) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007053 ac_header_compiler=yes
7054else
7055 echo "$as_me: failed program was:" >&5
7056sed 's/^/| /' conftest.$ac_ext >&5
7057
Benny Prijono0b462322008-03-12 22:44:24 +00007058ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007059fi
Benny Prijono0b462322008-03-12 22:44:24 +00007060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7061echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7062echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007063
7064# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007065echo "$as_me:$LINENO: checking string.h presence" >&5
7066echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007067cat >conftest.$ac_ext <<_ACEOF
7068/* confdefs.h. */
7069_ACEOF
7070cat confdefs.h >>conftest.$ac_ext
7071cat >>conftest.$ac_ext <<_ACEOF
7072/* end confdefs.h. */
7073#include <string.h>
7074_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007077 ac_status=$?
7078 grep -v '^ *+' conftest.er1 >conftest.err
7079 rm -f conftest.er1
7080 cat conftest.err >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007082 (exit $ac_status); } >/dev/null; then
7083 if test -s conftest.err; then
7084 ac_cpp_err=$ac_c_preproc_warn_flag
7085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7086 else
7087 ac_cpp_err=
7088 fi
7089else
7090 ac_cpp_err=yes
7091fi
7092if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007093 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007094else
7095 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007096sed 's/^/| /' conftest.$ac_ext >&5
7097
7098 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007099fi
7100rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007101echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7102echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007103
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007104# So? What about this header?
7105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7106 yes:no: )
7107 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7108echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7109 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7110echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7111 ac_header_preproc=yes
7112 ;;
7113 no:yes:* )
7114 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7115echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7117echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7119echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7120 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7121echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7122 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7123echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
7125echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007126 (
7127 cat <<\_ASBOX
7128## ------------------------------------ ##
7129## Report this to the pjproject lists. ##
7130## ------------------------------------ ##
7131_ASBOX
7132 ) |
7133 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007134 ;;
7135esac
Benny Prijono0b462322008-03-12 22:44:24 +00007136echo "$as_me:$LINENO: checking for string.h" >&5
7137echo $ECHO_N "checking for string.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007138if test "${ac_cv_header_string_h+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007140else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007141 ac_cv_header_string_h=$ac_header_preproc
7142fi
Benny Prijono0b462322008-03-12 22:44:24 +00007143echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7144echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007145
7146fi
7147if test $ac_cv_header_string_h = yes; then
7148 cat >>confdefs.h <<\_ACEOF
7149#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007150_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007151
7152fi
7153
7154
7155if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007156 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7157echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007158if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160fi
Benny Prijono0b462322008-03-12 22:44:24 +00007161echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7162echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007163else
7164 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007165echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
7166echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007167cat >conftest.$ac_ext <<_ACEOF
7168/* confdefs.h. */
7169_ACEOF
7170cat confdefs.h >>conftest.$ac_ext
7171cat >>conftest.$ac_ext <<_ACEOF
7172/* end confdefs.h. */
7173$ac_includes_default
7174#include <sys/ioctl.h>
7175_ACEOF
7176rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7178 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007179 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007180 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007181 rm -f conftest.er1
7182 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007184 (exit $ac_status); } &&
7185 { ac_try='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try='test -s conftest.$ac_objext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007198 ac_header_compiler=yes
7199else
7200 echo "$as_me: failed program was:" >&5
7201sed 's/^/| /' conftest.$ac_ext >&5
7202
Benny Prijono0b462322008-03-12 22:44:24 +00007203ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007204fi
Benny Prijono0b462322008-03-12 22:44:24 +00007205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7207echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007208
7209# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007210echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
7211echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007212cat >conftest.$ac_ext <<_ACEOF
7213/* confdefs.h. */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h. */
7218#include <sys/ioctl.h>
7219_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007227 (exit $ac_status); } >/dev/null; then
7228 if test -s conftest.err; then
7229 ac_cpp_err=$ac_c_preproc_warn_flag
7230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7231 else
7232 ac_cpp_err=
7233 fi
7234else
7235 ac_cpp_err=yes
7236fi
7237if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007238 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007239else
7240 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007241sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007244fi
7245rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007248
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007249# So? What about this header?
7250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7251 yes:no: )
7252 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7253echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
7255echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
7256 ac_header_preproc=yes
7257 ;;
7258 no:yes:* )
7259 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
7260echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
7262echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
7264echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
7266echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
7268echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
7270echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007271 (
7272 cat <<\_ASBOX
7273## ------------------------------------ ##
7274## Report this to the pjproject lists. ##
7275## ------------------------------------ ##
7276_ASBOX
7277 ) |
7278 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007279 ;;
7280esac
Benny Prijono0b462322008-03-12 22:44:24 +00007281echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7282echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007283if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007285else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007286 ac_cv_header_sys_ioctl_h=$ac_header_preproc
7287fi
Benny Prijono0b462322008-03-12 22:44:24 +00007288echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7289echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007290
7291fi
7292if test $ac_cv_header_sys_ioctl_h = yes; then
7293 cat >>confdefs.h <<\_ACEOF
7294#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007295_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007296
7297fi
7298
7299
7300if test "${ac_cv_header_sys_select_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007301 echo "$as_me:$LINENO: checking for sys/select.h" >&5
7302echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007303if test "${ac_cv_header_sys_select_h+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305fi
Benny Prijono0b462322008-03-12 22:44:24 +00007306echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7307echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007308else
7309 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007310echo "$as_me:$LINENO: checking sys/select.h usability" >&5
7311echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007312cat >conftest.$ac_ext <<_ACEOF
7313/* confdefs.h. */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h. */
7318$ac_includes_default
7319#include <sys/select.h>
7320_ACEOF
7321rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007324 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007325 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007326 rm -f conftest.er1
7327 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007329 (exit $ac_status); } &&
7330 { ac_try='test -z "$ac_c_werror_flag"
7331 || test ! -s conftest.err'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 (eval $ac_try) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; } &&
7337 { ac_try='test -s conftest.$ac_objext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007343 ac_header_compiler=yes
7344else
7345 echo "$as_me: failed program was:" >&5
7346sed 's/^/| /' conftest.$ac_ext >&5
7347
Benny Prijono0b462322008-03-12 22:44:24 +00007348ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007349fi
Benny Prijono0b462322008-03-12 22:44:24 +00007350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7352echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007353
7354# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007355echo "$as_me:$LINENO: checking sys/select.h presence" >&5
7356echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007357cat >conftest.$ac_ext <<_ACEOF
7358/* confdefs.h. */
7359_ACEOF
7360cat confdefs.h >>conftest.$ac_ext
7361cat >>conftest.$ac_ext <<_ACEOF
7362/* end confdefs.h. */
7363#include <sys/select.h>
7364_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007367 ac_status=$?
7368 grep -v '^ *+' conftest.er1 >conftest.err
7369 rm -f conftest.er1
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007372 (exit $ac_status); } >/dev/null; then
7373 if test -s conftest.err; then
7374 ac_cpp_err=$ac_c_preproc_warn_flag
7375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7376 else
7377 ac_cpp_err=
7378 fi
7379else
7380 ac_cpp_err=yes
7381fi
7382if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007383 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007384else
7385 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007386sed 's/^/| /' conftest.$ac_ext >&5
7387
7388 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007389fi
7390rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007391echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7392echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007393
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007394# So? What about this header?
7395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7396 yes:no: )
7397 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
7398echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7399 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
7400echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
7401 ac_header_preproc=yes
7402 ;;
7403 no:yes:* )
7404 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
7405echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
7407echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
7409echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
7410 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
7411echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
7412 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
7413echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
7414 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
7415echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007416 (
7417 cat <<\_ASBOX
7418## ------------------------------------ ##
7419## Report this to the pjproject lists. ##
7420## ------------------------------------ ##
7421_ASBOX
7422 ) |
7423 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007424 ;;
7425esac
Benny Prijono0b462322008-03-12 22:44:24 +00007426echo "$as_me:$LINENO: checking for sys/select.h" >&5
7427echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007428if test "${ac_cv_header_sys_select_h+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007430else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007431 ac_cv_header_sys_select_h=$ac_header_preproc
7432fi
Benny Prijono0b462322008-03-12 22:44:24 +00007433echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7434echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007435
7436fi
7437if test $ac_cv_header_sys_select_h = yes; then
7438 cat >>confdefs.h <<\_ACEOF
7439#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007440_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007441
7442fi
7443
7444
7445if test "${ac_cv_header_sys_socket_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007446 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7447echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007448if test "${ac_cv_header_sys_socket_h+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450fi
Benny Prijono0b462322008-03-12 22:44:24 +00007451echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7452echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007453else
7454 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007455echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
7456echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007457cat >conftest.$ac_ext <<_ACEOF
7458/* confdefs.h. */
7459_ACEOF
7460cat confdefs.h >>conftest.$ac_ext
7461cat >>conftest.$ac_ext <<_ACEOF
7462/* end confdefs.h. */
7463$ac_includes_default
7464#include <sys/socket.h>
7465_ACEOF
7466rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007469 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007470 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007471 rm -f conftest.er1
7472 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007474 (exit $ac_status); } &&
7475 { ac_try='test -z "$ac_c_werror_flag"
7476 || test ! -s conftest.err'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007488 ac_header_compiler=yes
7489else
7490 echo "$as_me: failed program was:" >&5
7491sed 's/^/| /' conftest.$ac_ext >&5
7492
Benny Prijono0b462322008-03-12 22:44:24 +00007493ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007494fi
Benny Prijono0b462322008-03-12 22:44:24 +00007495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7497echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007498
7499# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007500echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
7501echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007502cat >conftest.$ac_ext <<_ACEOF
7503/* confdefs.h. */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h. */
7508#include <sys/socket.h>
7509_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007517 (exit $ac_status); } >/dev/null; then
7518 if test -s conftest.err; then
7519 ac_cpp_err=$ac_c_preproc_warn_flag
7520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7521 else
7522 ac_cpp_err=
7523 fi
7524else
7525 ac_cpp_err=yes
7526fi
7527if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007528 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007529else
7530 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007531sed 's/^/| /' conftest.$ac_ext >&5
7532
7533 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007534fi
7535rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007536echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7537echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007538
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007539# So? What about this header?
7540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7541 yes:no: )
7542 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
7543echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7544 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
7545echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
7546 ac_header_preproc=yes
7547 ;;
7548 no:yes:* )
7549 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
7550echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
7552echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
7553 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
7554echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
7556echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
7558echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
7560echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007561 (
7562 cat <<\_ASBOX
7563## ------------------------------------ ##
7564## Report this to the pjproject lists. ##
7565## ------------------------------------ ##
7566_ASBOX
7567 ) |
7568 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007569 ;;
7570esac
Benny Prijono0b462322008-03-12 22:44:24 +00007571echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7572echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007573if test "${ac_cv_header_sys_socket_h+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007575else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007576 ac_cv_header_sys_socket_h=$ac_header_preproc
7577fi
Benny Prijono0b462322008-03-12 22:44:24 +00007578echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7579echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007580
7581fi
7582if test $ac_cv_header_sys_socket_h = yes; then
7583 cat >>confdefs.h <<\_ACEOF
7584#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007585_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007586
7587fi
7588
7589
7590if test "${ac_cv_header_sys_time_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007591 echo "$as_me:$LINENO: checking for sys/time.h" >&5
7592echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007593if test "${ac_cv_header_sys_time_h+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595fi
Benny Prijono0b462322008-03-12 22:44:24 +00007596echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7597echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007598else
7599 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007600echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7601echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007602cat >conftest.$ac_ext <<_ACEOF
7603/* confdefs.h. */
7604_ACEOF
7605cat confdefs.h >>conftest.$ac_ext
7606cat >>conftest.$ac_ext <<_ACEOF
7607/* end confdefs.h. */
7608$ac_includes_default
7609#include <sys/time.h>
7610_ACEOF
7611rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7613 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007614 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007615 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007616 rm -f conftest.er1
7617 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007619 (exit $ac_status); } &&
7620 { ac_try='test -z "$ac_c_werror_flag"
7621 || test ! -s conftest.err'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try='test -s conftest.$ac_objext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007633 ac_header_compiler=yes
7634else
7635 echo "$as_me: failed program was:" >&5
7636sed 's/^/| /' conftest.$ac_ext >&5
7637
Benny Prijono0b462322008-03-12 22:44:24 +00007638ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007639fi
Benny Prijono0b462322008-03-12 22:44:24 +00007640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7641echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7642echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007643
7644# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007645echo "$as_me:$LINENO: checking sys/time.h presence" >&5
7646echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007647cat >conftest.$ac_ext <<_ACEOF
7648/* confdefs.h. */
7649_ACEOF
7650cat confdefs.h >>conftest.$ac_ext
7651cat >>conftest.$ac_ext <<_ACEOF
7652/* end confdefs.h. */
7653#include <sys/time.h>
7654_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007662 (exit $ac_status); } >/dev/null; then
7663 if test -s conftest.err; then
7664 ac_cpp_err=$ac_c_preproc_warn_flag
7665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7666 else
7667 ac_cpp_err=
7668 fi
7669else
7670 ac_cpp_err=yes
7671fi
7672if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007673 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007674else
7675 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007676sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007679fi
7680rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7682echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007683
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007684# So? What about this header?
7685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7686 yes:no: )
7687 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7688echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
7690echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
7691 ac_header_preproc=yes
7692 ;;
7693 no:yes:* )
7694 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
7695echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
7697echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
7699echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
7701echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
7703echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
7705echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007706 (
7707 cat <<\_ASBOX
7708## ------------------------------------ ##
7709## Report this to the pjproject lists. ##
7710## ------------------------------------ ##
7711_ASBOX
7712 ) |
7713 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007714 ;;
7715esac
Benny Prijono0b462322008-03-12 22:44:24 +00007716echo "$as_me:$LINENO: checking for sys/time.h" >&5
7717echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007718if test "${ac_cv_header_sys_time_h+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007720else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007721 ac_cv_header_sys_time_h=$ac_header_preproc
7722fi
Benny Prijono0b462322008-03-12 22:44:24 +00007723echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7724echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007725
7726fi
7727if test $ac_cv_header_sys_time_h = yes; then
7728 cat >>confdefs.h <<\_ACEOF
7729#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007730_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007731
7732fi
7733
7734
7735if test "${ac_cv_header_sys_timeb_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007736 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7737echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007738if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740fi
Benny Prijono0b462322008-03-12 22:44:24 +00007741echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7742echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007743else
7744 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007745echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7746echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007747cat >conftest.$ac_ext <<_ACEOF
7748/* confdefs.h. */
7749_ACEOF
7750cat confdefs.h >>conftest.$ac_ext
7751cat >>conftest.$ac_ext <<_ACEOF
7752/* end confdefs.h. */
7753$ac_includes_default
7754#include <sys/timeb.h>
7755_ACEOF
7756rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007759 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007760 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007761 rm -f conftest.er1
7762 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag"
7766 || test ! -s conftest.err'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 (eval $ac_try) 2>&5
7769 ac_status=$?
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; } &&
7772 { ac_try='test -s conftest.$ac_objext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007778 ac_header_compiler=yes
7779else
7780 echo "$as_me: failed program was:" >&5
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
Benny Prijono0b462322008-03-12 22:44:24 +00007783ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007784fi
Benny Prijono0b462322008-03-12 22:44:24 +00007785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7787echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007788
7789# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007790echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7791echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007792cat >conftest.$ac_ext <<_ACEOF
7793/* confdefs.h. */
7794_ACEOF
7795cat confdefs.h >>conftest.$ac_ext
7796cat >>conftest.$ac_ext <<_ACEOF
7797/* end confdefs.h. */
7798#include <sys/timeb.h>
7799_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007802 ac_status=$?
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007807 (exit $ac_status); } >/dev/null; then
7808 if test -s conftest.err; then
7809 ac_cpp_err=$ac_c_preproc_warn_flag
7810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7811 else
7812 ac_cpp_err=
7813 fi
7814else
7815 ac_cpp_err=yes
7816fi
7817if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007818 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007819else
7820 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007821sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007824fi
7825rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7827echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007828
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007829# So? What about this header?
7830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7831 yes:no: )
7832 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7833echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7834 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7835echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7836 ac_header_preproc=yes
7837 ;;
7838 no:yes:* )
7839 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7840echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7842echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7844echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7846echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7847 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7848echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7849 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7850echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007851 (
7852 cat <<\_ASBOX
7853## ------------------------------------ ##
7854## Report this to the pjproject lists. ##
7855## ------------------------------------ ##
7856_ASBOX
7857 ) |
7858 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007859 ;;
7860esac
Benny Prijono0b462322008-03-12 22:44:24 +00007861echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7862echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007863if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007865else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007866 ac_cv_header_sys_timeb_h=$ac_header_preproc
7867fi
Benny Prijono0b462322008-03-12 22:44:24 +00007868echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7869echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007870
7871fi
7872if test $ac_cv_header_sys_timeb_h = yes; then
7873 cat >>confdefs.h <<\_ACEOF
7874#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007875_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007876
7877fi
7878
7879
7880if test "${ac_cv_header_sys_types_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007881 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7882echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007883if test "${ac_cv_header_sys_types_h+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885fi
Benny Prijono0b462322008-03-12 22:44:24 +00007886echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7887echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007888else
7889 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007890echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7891echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007892cat >conftest.$ac_ext <<_ACEOF
7893/* confdefs.h. */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h. */
7898$ac_includes_default
7899#include <sys/types.h>
7900_ACEOF
7901rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007904 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007905 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007906 rm -f conftest.er1
7907 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest.$ac_objext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007923 ac_header_compiler=yes
7924else
7925 echo "$as_me: failed program was:" >&5
7926sed 's/^/| /' conftest.$ac_ext >&5
7927
Benny Prijono0b462322008-03-12 22:44:24 +00007928ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007929fi
Benny Prijono0b462322008-03-12 22:44:24 +00007930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7931echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7932echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007933
7934# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007935echo "$as_me:$LINENO: checking sys/types.h presence" >&5
7936echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007937cat >conftest.$ac_ext <<_ACEOF
7938/* confdefs.h. */
7939_ACEOF
7940cat confdefs.h >>conftest.$ac_ext
7941cat >>conftest.$ac_ext <<_ACEOF
7942/* end confdefs.h. */
7943#include <sys/types.h>
7944_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007952 (exit $ac_status); } >/dev/null; then
7953 if test -s conftest.err; then
7954 ac_cpp_err=$ac_c_preproc_warn_flag
7955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7956 else
7957 ac_cpp_err=
7958 fi
7959else
7960 ac_cpp_err=yes
7961fi
7962if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007963 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007964else
7965 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007966sed 's/^/| /' conftest.$ac_ext >&5
7967
7968 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007969fi
7970rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007971echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7972echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007973
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007974# So? What about this header?
7975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7976 yes:no: )
7977 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
7978echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7979 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
7980echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
7981 ac_header_preproc=yes
7982 ;;
7983 no:yes:* )
7984 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
7985echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
7986 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
7987echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
7989echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
7991echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
7992 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
7993echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
7995echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007996 (
7997 cat <<\_ASBOX
7998## ------------------------------------ ##
7999## Report this to the pjproject lists. ##
8000## ------------------------------------ ##
8001_ASBOX
8002 ) |
8003 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008004 ;;
8005esac
Benny Prijono0b462322008-03-12 22:44:24 +00008006echo "$as_me:$LINENO: checking for sys/types.h" >&5
8007echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008008if test "${ac_cv_header_sys_types_h+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008010else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008011 ac_cv_header_sys_types_h=$ac_header_preproc
8012fi
Benny Prijono0b462322008-03-12 22:44:24 +00008013echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8014echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008015
8016fi
8017if test $ac_cv_header_sys_types_h = yes; then
8018 cat >>confdefs.h <<\_ACEOF
8019#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008020_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008021
8022fi
8023
8024
8025if test "${ac_cv_header_time_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008026 echo "$as_me:$LINENO: checking for time.h" >&5
8027echo $ECHO_N "checking for time.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008028if test "${ac_cv_header_time_h+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8030fi
Benny Prijono0b462322008-03-12 22:44:24 +00008031echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8032echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008033else
8034 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008035echo "$as_me:$LINENO: checking time.h usability" >&5
8036echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008037cat >conftest.$ac_ext <<_ACEOF
8038/* confdefs.h. */
8039_ACEOF
8040cat confdefs.h >>conftest.$ac_ext
8041cat >>conftest.$ac_ext <<_ACEOF
8042/* end confdefs.h. */
8043$ac_includes_default
8044#include <time.h>
8045_ACEOF
8046rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8048 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008049 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008050 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008051 rm -f conftest.er1
8052 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008054 (exit $ac_status); } &&
8055 { ac_try='test -z "$ac_c_werror_flag"
8056 || test ! -s conftest.err'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try='test -s conftest.$ac_objext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008068 ac_header_compiler=yes
8069else
8070 echo "$as_me: failed program was:" >&5
8071sed 's/^/| /' conftest.$ac_ext >&5
8072
Benny Prijono0b462322008-03-12 22:44:24 +00008073ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008074fi
Benny Prijono0b462322008-03-12 22:44:24 +00008075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8077echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008078
8079# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008080echo "$as_me:$LINENO: checking time.h presence" >&5
8081echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008082cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
8088#include <time.h>
8089_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008097 (exit $ac_status); } >/dev/null; then
8098 if test -s conftest.err; then
8099 ac_cpp_err=$ac_c_preproc_warn_flag
8100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8101 else
8102 ac_cpp_err=
8103 fi
8104else
8105 ac_cpp_err=yes
8106fi
8107if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008108 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008109else
8110 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008111sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008114fi
8115rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8117echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008118
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008119# So? What about this header?
8120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8121 yes:no: )
8122 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8123echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8124 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
8125echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
8126 ac_header_preproc=yes
8127 ;;
8128 no:yes:* )
8129 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
8130echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
8131 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
8132echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
8133 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
8134echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
8135 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
8136echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8137 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
8138echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
8139 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
8140echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008141 (
8142 cat <<\_ASBOX
8143## ------------------------------------ ##
8144## Report this to the pjproject lists. ##
8145## ------------------------------------ ##
8146_ASBOX
8147 ) |
8148 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008149 ;;
8150esac
Benny Prijono0b462322008-03-12 22:44:24 +00008151echo "$as_me:$LINENO: checking for time.h" >&5
8152echo $ECHO_N "checking for time.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008153if test "${ac_cv_header_time_h+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008155else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008156 ac_cv_header_time_h=$ac_header_preproc
8157fi
Benny Prijono0b462322008-03-12 22:44:24 +00008158echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8159echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008160
8161fi
8162if test $ac_cv_header_time_h = yes; then
8163 cat >>confdefs.h <<\_ACEOF
8164#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008165_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008166
8167fi
8168
8169
8170if test "${ac_cv_header_unistd_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008171 echo "$as_me:$LINENO: checking for unistd.h" >&5
8172echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008173if test "${ac_cv_header_unistd_h+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175fi
Benny Prijono0b462322008-03-12 22:44:24 +00008176echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8177echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008178else
8179 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008180echo "$as_me:$LINENO: checking unistd.h usability" >&5
8181echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008182cat >conftest.$ac_ext <<_ACEOF
8183/* confdefs.h. */
8184_ACEOF
8185cat confdefs.h >>conftest.$ac_ext
8186cat >>conftest.$ac_ext <<_ACEOF
8187/* end confdefs.h. */
8188$ac_includes_default
8189#include <unistd.h>
8190_ACEOF
8191rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008194 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008195 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008196 rm -f conftest.er1
8197 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008199 (exit $ac_status); } &&
8200 { ac_try='test -z "$ac_c_werror_flag"
8201 || test ! -s conftest.err'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 (eval $ac_try) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try='test -s conftest.$ac_objext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 (eval $ac_try) 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008213 ac_header_compiler=yes
8214else
8215 echo "$as_me: failed program was:" >&5
8216sed 's/^/| /' conftest.$ac_ext >&5
8217
Benny Prijono0b462322008-03-12 22:44:24 +00008218ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008219fi
Benny Prijono0b462322008-03-12 22:44:24 +00008220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8221echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8222echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008223
8224# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008225echo "$as_me:$LINENO: checking unistd.h presence" >&5
8226echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008227cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h. */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h. */
8233#include <unistd.h>
8234_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008242 (exit $ac_status); } >/dev/null; then
8243 if test -s conftest.err; then
8244 ac_cpp_err=$ac_c_preproc_warn_flag
8245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8246 else
8247 ac_cpp_err=
8248 fi
8249else
8250 ac_cpp_err=yes
8251fi
8252if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008253 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008254else
8255 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008256sed 's/^/| /' conftest.$ac_ext >&5
8257
8258 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008259fi
8260rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008261echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8262echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008263
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008264# So? What about this header?
8265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8266 yes:no: )
8267 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
8268echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8269 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
8270echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
8271 ac_header_preproc=yes
8272 ;;
8273 no:yes:* )
8274 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
8275echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
8276 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
8277echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
8278 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
8279echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
8280 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
8281echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
8282 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
8283echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
8284 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
8285echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008286 (
8287 cat <<\_ASBOX
8288## ------------------------------------ ##
8289## Report this to the pjproject lists. ##
8290## ------------------------------------ ##
8291_ASBOX
8292 ) |
8293 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008294 ;;
8295esac
Benny Prijono0b462322008-03-12 22:44:24 +00008296echo "$as_me:$LINENO: checking for unistd.h" >&5
8297echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008298if test "${ac_cv_header_unistd_h+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008300else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008301 ac_cv_header_unistd_h=$ac_header_preproc
8302fi
Benny Prijono0b462322008-03-12 22:44:24 +00008303echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8304echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008305
8306fi
8307if test $ac_cv_header_unistd_h = yes; then
8308 cat >>confdefs.h <<\_ACEOF
8309#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008310_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008311
8312fi
8313
8314
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008315if test "${ac_cv_header_winsock_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008316 echo "$as_me:$LINENO: checking for winsock.h" >&5
8317echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008318if test "${ac_cv_header_winsock_h+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320fi
Benny Prijono0b462322008-03-12 22:44:24 +00008321echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8322echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008323else
8324 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008325echo "$as_me:$LINENO: checking winsock.h usability" >&5
8326echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008327cat >conftest.$ac_ext <<_ACEOF
8328/* confdefs.h. */
8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h. */
8333$ac_includes_default
8334#include <winsock.h>
8335_ACEOF
8336rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8338 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008339 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008340 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008341 rm -f conftest.er1
8342 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest.$ac_objext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008358 ac_header_compiler=yes
8359else
8360 echo "$as_me: failed program was:" >&5
8361sed 's/^/| /' conftest.$ac_ext >&5
8362
Benny Prijono0b462322008-03-12 22:44:24 +00008363ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008364fi
Benny Prijono0b462322008-03-12 22:44:24 +00008365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8367echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008368
8369# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008370echo "$as_me:$LINENO: checking winsock.h presence" >&5
8371echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008372cat >conftest.$ac_ext <<_ACEOF
8373/* confdefs.h. */
8374_ACEOF
8375cat confdefs.h >>conftest.$ac_ext
8376cat >>conftest.$ac_ext <<_ACEOF
8377/* end confdefs.h. */
8378#include <winsock.h>
8379_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008382 ac_status=$?
8383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008387 (exit $ac_status); } >/dev/null; then
8388 if test -s conftest.err; then
8389 ac_cpp_err=$ac_c_preproc_warn_flag
8390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8391 else
8392 ac_cpp_err=
8393 fi
8394else
8395 ac_cpp_err=yes
8396fi
8397if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008398 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008399else
8400 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008401sed 's/^/| /' conftest.$ac_ext >&5
8402
8403 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008404fi
8405rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8407echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008408
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008409# So? What about this header?
8410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8411 yes:no: )
8412 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8413echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8414 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
8415echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
8416 ac_header_preproc=yes
8417 ;;
8418 no:yes:* )
8419 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
8420echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
8421 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
8422echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
8424echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
8426echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
8428echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
8429 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
8430echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008431 (
8432 cat <<\_ASBOX
8433## ------------------------------------ ##
8434## Report this to the pjproject lists. ##
8435## ------------------------------------ ##
8436_ASBOX
8437 ) |
8438 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008439 ;;
8440esac
Benny Prijono0b462322008-03-12 22:44:24 +00008441echo "$as_me:$LINENO: checking for winsock.h" >&5
8442echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008443if test "${ac_cv_header_winsock_h+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008445else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008446 ac_cv_header_winsock_h=$ac_header_preproc
8447fi
Benny Prijono0b462322008-03-12 22:44:24 +00008448echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8449echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008450
8451fi
8452if test $ac_cv_header_winsock_h = yes; then
8453 cat >>confdefs.h <<\_ACEOF
8454#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008455_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008456
8457fi
8458
8459
8460if test "${ac_cv_header_winsock2_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008461 echo "$as_me:$LINENO: checking for winsock2.h" >&5
8462echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008463if test "${ac_cv_header_winsock2_h+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465fi
Benny Prijono0b462322008-03-12 22:44:24 +00008466echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8467echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008468else
8469 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008470echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8471echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008472cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
8478$ac_includes_default
8479#include <winsock2.h>
8480_ACEOF
8481rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8483 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008484 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008485 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008486 rm -f conftest.er1
8487 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_c_werror_flag"
8491 || test ! -s conftest.err'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try='test -s conftest.$ac_objext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008503 ac_header_compiler=yes
8504else
8505 echo "$as_me: failed program was:" >&5
8506sed 's/^/| /' conftest.$ac_ext >&5
8507
Benny Prijono0b462322008-03-12 22:44:24 +00008508ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008509fi
Benny Prijono0b462322008-03-12 22:44:24 +00008510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8512echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008513
8514# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008515echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8516echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008517cat >conftest.$ac_ext <<_ACEOF
8518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
8523#include <winsock2.h>
8524_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008532 (exit $ac_status); } >/dev/null; then
8533 if test -s conftest.err; then
8534 ac_cpp_err=$ac_c_preproc_warn_flag
8535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8536 else
8537 ac_cpp_err=
8538 fi
8539else
8540 ac_cpp_err=yes
8541fi
8542if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008543 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008544else
8545 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008546sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008549fi
8550rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008551echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8552echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008553
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008554# So? What about this header?
8555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8556 yes:no: )
8557 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8558echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8560echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8561 ac_header_preproc=yes
8562 ;;
8563 no:yes:* )
8564 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8565echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8567echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8568 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8569echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8571echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8573echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8575echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008576 (
8577 cat <<\_ASBOX
8578## ------------------------------------ ##
8579## Report this to the pjproject lists. ##
8580## ------------------------------------ ##
8581_ASBOX
8582 ) |
8583 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008584 ;;
8585esac
Benny Prijono0b462322008-03-12 22:44:24 +00008586echo "$as_me:$LINENO: checking for winsock2.h" >&5
8587echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008588if test "${ac_cv_header_winsock2_h+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008590else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008591 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008592fi
Benny Prijono0b462322008-03-12 22:44:24 +00008593echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8594echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008595
8596fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008597if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008598 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008599#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008600_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008601
8602fi
8603
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008604
Benny Prijonoa9948e62008-03-25 14:03:01 +00008605echo "$as_me:$LINENO: checking for mswsock.h" >&5
8606echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
8607if test "${ac_cv_header_mswsock_h+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609else
8610 cat >conftest.$ac_ext <<_ACEOF
8611/* confdefs.h. */
8612_ACEOF
8613cat confdefs.h >>conftest.$ac_ext
8614cat >>conftest.$ac_ext <<_ACEOF
8615/* end confdefs.h. */
8616#if PJ_HAS_WINSOCK2_H
8617 # include <winsock2.h>
8618 #elif PJ_HAS_WINSOCK_H
8619 # include <winsock.h>
8620 #endif
8621
8622
8623#include <mswsock.h>
8624_ACEOF
8625rm -f conftest.$ac_objext
8626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8627 (eval $ac_compile) 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -z "$ac_c_werror_flag"
8635 || test ! -s conftest.err'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest.$ac_objext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 ac_cv_header_mswsock_h=yes
8648else
8649 echo "$as_me: failed program was:" >&5
8650sed 's/^/| /' conftest.$ac_ext >&5
8651
8652ac_cv_header_mswsock_h=no
8653fi
8654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8655fi
8656echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8657echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
8658if test $ac_cv_header_mswsock_h = yes; then
8659 cat >>confdefs.h <<\_ACEOF
8660#define PJ_HAS_MSWSOCK_H 1
8661_ACEOF
8662
8663fi
8664
8665
Benny Prijono4e48b512007-05-16 13:41:00 +00008666if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008667 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8668echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008669if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8671fi
Benny Prijono0b462322008-03-12 22:44:24 +00008672echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8673echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008674else
8675 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008676echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8677echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008678cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h. */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h. */
8684$ac_includes_default
8685#include <uuid/uuid.h>
8686_ACEOF
8687rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8689 (eval $ac_compile) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008690 ac_status=$?
8691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008695 (exit $ac_status); } &&
8696 { ac_try='test -z "$ac_c_werror_flag"
8697 || test ! -s conftest.err'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 (eval $ac_try) 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest.$ac_objext'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00008709 ac_header_compiler=yes
8710else
8711 echo "$as_me: failed program was:" >&5
8712sed 's/^/| /' conftest.$ac_ext >&5
8713
Benny Prijono0b462322008-03-12 22:44:24 +00008714ac_header_compiler=no
Benny Prijono4e48b512007-05-16 13:41:00 +00008715fi
Benny Prijono0b462322008-03-12 22:44:24 +00008716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8718echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008719
8720# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008721echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
8722echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008723cat >conftest.$ac_ext <<_ACEOF
8724/* confdefs.h. */
8725_ACEOF
8726cat confdefs.h >>conftest.$ac_ext
8727cat >>conftest.$ac_ext <<_ACEOF
8728/* end confdefs.h. */
8729#include <uuid/uuid.h>
8730_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008733 ac_status=$?
8734 grep -v '^ *+' conftest.er1 >conftest.err
8735 rm -f conftest.er1
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008738 (exit $ac_status); } >/dev/null; then
8739 if test -s conftest.err; then
8740 ac_cpp_err=$ac_c_preproc_warn_flag
8741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8742 else
8743 ac_cpp_err=
8744 fi
8745else
8746 ac_cpp_err=yes
8747fi
8748if test -z "$ac_cpp_err"; then
Benny Prijono4e48b512007-05-16 13:41:00 +00008749 ac_header_preproc=yes
8750else
8751 echo "$as_me: failed program was:" >&5
8752sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 ac_header_preproc=no
8755fi
8756rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8758echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008759
8760# So? What about this header?
8761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8762 yes:no: )
8763 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
8764echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
8766echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
8767 ac_header_preproc=yes
8768 ;;
8769 no:yes:* )
8770 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
8771echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
8773echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
8775echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
8777echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
8779echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
8781echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008782 (
8783 cat <<\_ASBOX
8784## ------------------------------------ ##
8785## Report this to the pjproject lists. ##
8786## ------------------------------------ ##
8787_ASBOX
8788 ) |
8789 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono4e48b512007-05-16 13:41:00 +00008790 ;;
8791esac
Benny Prijono0b462322008-03-12 22:44:24 +00008792echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8793echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008794if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8796else
8797 ac_cv_header_uuid_uuid_h=$ac_header_preproc
8798fi
Benny Prijono0b462322008-03-12 22:44:24 +00008799echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8800echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008801
8802fi
8803if test $ac_cv_header_uuid_uuid_h = yes; then
8804 ac_has_uuid_h=1
8805fi
8806
8807
Benny Prijonoa9948e62008-03-25 14:03:01 +00008808echo "$as_me:$LINENO: checking for net/if.h" >&5
8809echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
8810if test "${ac_cv_header_net_if_h+set}" = set; then
Benny Prijono188ba7e2008-03-25 13:53:16 +00008811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812else
8813 cat >conftest.$ac_ext <<_ACEOF
8814/* confdefs.h. */
8815_ACEOF
8816cat confdefs.h >>conftest.$ac_ext
8817cat >>conftest.$ac_ext <<_ACEOF
8818/* end confdefs.h. */
8819#if PJ_HAS_SYS_SOCKET_H
8820 # include <sys/socket.h>
8821 #endif
8822
8823
Benny Prijonoa9948e62008-03-25 14:03:01 +00008824#include <net/if.h>
Benny Prijono188ba7e2008-03-25 13:53:16 +00008825_ACEOF
8826rm -f conftest.$ac_objext
8827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8828 (eval $ac_compile) 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -z "$ac_c_werror_flag"
8836 || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try='test -s conftest.$ac_objext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
Benny Prijonoa9948e62008-03-25 14:03:01 +00008848 ac_cv_header_net_if_h=yes
Benny Prijono188ba7e2008-03-25 13:53:16 +00008849else
8850 echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
Benny Prijonoa9948e62008-03-25 14:03:01 +00008853ac_cv_header_net_if_h=no
Benny Prijono188ba7e2008-03-25 13:53:16 +00008854fi
8855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8856fi
Benny Prijonoa9948e62008-03-25 14:03:01 +00008857echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
8858echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
8859if test $ac_cv_header_net_if_h = yes; then
8860 cat >>confdefs.h <<\_ACEOF
Benny Prijono188ba7e2008-03-25 13:53:16 +00008861#define PJ_HAS_NET_IF_H 1
8862_ACEOF
8863
8864fi
8865
Benny Prijono188ba7e2008-03-25 13:53:16 +00008866
8867
Benny Prijono0b462322008-03-12 22:44:24 +00008868echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
8869echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008870cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008871#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008872_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008873
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008874
Benny Prijono0b462322008-03-12 22:44:24 +00008875echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
8876echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008877cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008878#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008879_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008880
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008881
Benny Prijono0b462322008-03-12 22:44:24 +00008882echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
8883echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008884cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008885#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008886_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008887
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008888
Benny Prijono0b462322008-03-12 22:44:24 +00008889echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
8890echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008891cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008892#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008893_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008894
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008895
Benny Prijono0b462322008-03-12 22:44:24 +00008896echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
8897echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008898cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008899#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008900_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008901
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008902
Benny Prijono0b462322008-03-12 22:44:24 +00008903echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
8904echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008905cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008906#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008907_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008908
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008909
Benny Prijono0b462322008-03-12 22:44:24 +00008910echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
8911echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008912cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008913/* confdefs.h. */
8914_ACEOF
8915cat confdefs.h >>conftest.$ac_ext
8916cat >>conftest.$ac_ext <<_ACEOF
8917/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008918#include <sys/types.h>
8919 #include <sys/socket.h>
8920 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008921int
8922main ()
8923{
8924inet_aton(0, 0);
8925 ;
8926 return 0;
8927}
8928_ACEOF
8929rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8931 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008932 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008937 (exit $ac_status); } &&
8938 { ac_try='test -z "$ac_c_werror_flag"
8939 || test ! -s conftest.err'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 (eval $ac_try) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; } &&
8945 { ac_try='test -s conftest.$ac_objext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008951 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008952#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008953_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008954
Benny Prijono0b462322008-03-12 22:44:24 +00008955 echo "$as_me:$LINENO: result: yes" >&5
8956echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008957else
8958 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008959sed 's/^/| /' conftest.$ac_ext >&5
8960
Benny Prijono0b462322008-03-12 22:44:24 +00008961echo "$as_me:$LINENO: result: no" >&5
8962echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008963fi
Benny Prijono0b462322008-03-12 22:44:24 +00008964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008965
Benny Prijono0b462322008-03-12 22:44:24 +00008966echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
8967echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008968cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h. */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h. */
8974#include <sys/types.h>
8975 #include <sys/socket.h>
8976 #include <arpa/inet.h>
8977int
8978main ()
8979{
8980inet_pton(0, 0, 0);
8981 ;
8982 return 0;
8983}
8984_ACEOF
8985rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag"
8995 || test ! -s conftest.err'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009007 cat >>confdefs.h <<\_ACEOF
9008#define PJ_SOCK_HAS_INET_PTON 1
9009_ACEOF
9010
Benny Prijono0b462322008-03-12 22:44:24 +00009011 echo "$as_me:$LINENO: result: yes" >&5
9012echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009013else
9014 echo "$as_me: failed program was:" >&5
9015sed 's/^/| /' conftest.$ac_ext >&5
9016
Benny Prijono0b462322008-03-12 22:44:24 +00009017echo "$as_me:$LINENO: result: no" >&5
9018echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009019fi
Benny Prijono0b462322008-03-12 22:44:24 +00009020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009021
Benny Prijono0b462322008-03-12 22:44:24 +00009022echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
9023echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009024cat >conftest.$ac_ext <<_ACEOF
9025/* confdefs.h. */
9026_ACEOF
9027cat confdefs.h >>conftest.$ac_ext
9028cat >>conftest.$ac_ext <<_ACEOF
9029/* end confdefs.h. */
9030#include <sys/types.h>
9031 #include <sys/socket.h>
9032 #include <arpa/inet.h>
9033int
9034main ()
9035{
9036inet_ntop(0, 0, 0, 0);
9037 ;
9038 return 0;
9039}
9040_ACEOF
9041rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9043 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest.$ac_objext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009063 cat >>confdefs.h <<\_ACEOF
9064#define PJ_SOCK_HAS_INET_NTOP 1
9065_ACEOF
9066
Benny Prijono0b462322008-03-12 22:44:24 +00009067 echo "$as_me:$LINENO: result: yes" >&5
9068echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009069else
9070 echo "$as_me: failed program was:" >&5
9071sed 's/^/| /' conftest.$ac_ext >&5
9072
Benny Prijono0b462322008-03-12 22:44:24 +00009073echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009075fi
Benny Prijono0b462322008-03-12 22:44:24 +00009076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009077
Benny Prijono0b462322008-03-12 22:44:24 +00009078echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
9079echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009080cat >conftest.$ac_ext <<_ACEOF
9081/* confdefs.h. */
9082_ACEOF
9083cat confdefs.h >>conftest.$ac_ext
9084cat >>conftest.$ac_ext <<_ACEOF
9085/* end confdefs.h. */
9086#include <sys/types.h>
9087 #include <sys/socket.h>
9088 #include <netdb.h>
9089int
9090main ()
9091{
9092getaddrinfo(0, 0, 0, 0);
9093 ;
9094 return 0;
9095}
9096_ACEOF
9097rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009100 ac_status=$?
9101 grep -v '^ *+' conftest.er1 >conftest.err
9102 rm -f conftest.er1
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009105 (exit $ac_status); } &&
9106 { ac_try='test -z "$ac_c_werror_flag"
9107 || test ! -s conftest.err'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest.$ac_objext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009119 cat >>confdefs.h <<\_ACEOF
9120#define PJ_SOCK_HAS_GETADDRINFO 1
9121_ACEOF
9122
Benny Prijono0b462322008-03-12 22:44:24 +00009123 echo "$as_me:$LINENO: result: yes" >&5
9124echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009125else
9126 echo "$as_me: failed program was:" >&5
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
Benny Prijono0b462322008-03-12 22:44:24 +00009129echo "$as_me:$LINENO: result: no" >&5
9130echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009131fi
Benny Prijono0b462322008-03-12 22:44:24 +00009132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009133
Benny Prijono0b462322008-03-12 22:44:24 +00009134echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
9135echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009136cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009137/* confdefs.h. */
9138_ACEOF
9139cat confdefs.h >>conftest.$ac_ext
9140cat >>conftest.$ac_ext <<_ACEOF
9141/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009142#include <sys/types.h>
9143 #include <sys/socket.h>
9144 #include <netinet/in.h>
9145 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009146int
9147main ()
9148{
9149struct sockaddr_in a; a.sin_len=0;
9150 ;
9151 return 0;
9152}
9153_ACEOF
9154rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009157 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009162 (exit $ac_status); } &&
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest.$ac_objext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009176 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009177#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009178_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009179
Benny Prijono0b462322008-03-12 22:44:24 +00009180 echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009182else
9183 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009184sed 's/^/| /' conftest.$ac_ext >&5
9185
Benny Prijono0b462322008-03-12 22:44:24 +00009186echo "$as_me:$LINENO: result: no" >&5
9187echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009188fi
Benny Prijono0b462322008-03-12 22:44:24 +00009189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009190
Benny Prijono0b462322008-03-12 22:44:24 +00009191echo "$as_me:$LINENO: checking if socklen_t is available" >&5
9192echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009193cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009194/* confdefs.h. */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00009199#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00009200int
9201main ()
9202{
9203socklen_t xxx = 0;
9204 ;
9205 return 0;
9206}
9207_ACEOF
9208rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9210 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00009211 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag"
9218 || test ! -s conftest.err'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; } &&
9224 { ac_try='test -s conftest.$ac_objext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009230 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009231#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009232_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009233
Benny Prijono0b462322008-03-12 22:44:24 +00009234 echo "$as_me:$LINENO: result: yes" >&5
9235echo "${ECHO_T}yes" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009236else
9237 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009238sed 's/^/| /' conftest.$ac_ext >&5
9239
Benny Prijono0b462322008-03-12 22:44:24 +00009240echo "$as_me:$LINENO: result: no" >&5
9241echo "${ECHO_T}no" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009242fi
Benny Prijono0b462322008-03-12 22:44:24 +00009243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00009244
Benny Prijono0b462322008-03-12 22:44:24 +00009245echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
9246echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009247case $target in
9248 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009249 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009250#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009251_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009252
Benny Prijono0b462322008-03-12 22:44:24 +00009253 echo "$as_me:$LINENO: result: yes" >&5
9254echo "${ECHO_T}yes" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009255 ;;
9256 *)
9257 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009258/* confdefs.h. */
9259_ACEOF
9260cat confdefs.h >>conftest.$ac_ext
9261cat >>conftest.$ac_ext <<_ACEOF
9262/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009263#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009264 #include <sys/socket.h>
9265 #include <netinet/in.h>
9266 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009267int
9268main ()
9269{
9270int i=SO_ERROR;
9271 ;
9272 return 0;
9273}
9274_ACEOF
9275rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009278 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009279 grep -v '^ *+' conftest.er1 >conftest.err
9280 rm -f conftest.er1
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 (eval $ac_try) 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest.$ac_objext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 (eval $ac_try) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009297 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009298#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009299_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009300
Benny Prijono0b462322008-03-12 22:44:24 +00009301 echo "$as_me:$LINENO: result: yes" >&5
9302echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009303else
9304 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009305sed 's/^/| /' conftest.$ac_ext >&5
9306
Benny Prijono0b462322008-03-12 22:44:24 +00009307echo "$as_me:$LINENO: result: no" >&5
9308echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009309fi
Benny Prijono0b462322008-03-12 22:44:24 +00009310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009311 ;;
9312esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009313
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009314
Benny Prijono0b462322008-03-12 22:44:24 +00009315echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
9316echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009317cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009318/* confdefs.h. */
9319_ACEOF
9320cat confdefs.h >>conftest.$ac_ext
9321cat >>conftest.$ac_ext <<_ACEOF
9322/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009323#include <pthread.h>
9324int
9325main ()
9326{
9327pthread_rwlock_t *x;
9328 ;
9329 return 0;
9330}
9331_ACEOF
9332rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9334 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009335 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009340 (exit $ac_status); } &&
9341 { ac_try='test -z "$ac_c_werror_flag"
9342 || test ! -s conftest.err'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } &&
9348 { ac_try='test -s conftest.$ac_objext'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009354 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009355#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009356_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009357
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009358 ac_rwmutex="yes"
Benny Prijono0b462322008-03-12 22:44:24 +00009359 echo "$as_me:$LINENO: result: yes" >&5
9360echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009361else
9362 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009363sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009364
Benny Prijono0b462322008-03-12 22:44:24 +00009365cat >>confdefs.h <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009366#define PJ_EMULATE_RWMUTEX 1
9367_ACEOF
9368
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009369 ac_rwmutex="no"
Benny Prijono0b462322008-03-12 22:44:24 +00009370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009372fi
Benny Prijono0b462322008-03-12 22:44:24 +00009373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009374
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009375if test "$ac_rwmutex" = "no"; then
Benny Prijono0b462322008-03-12 22:44:24 +00009376 echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
9377echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009378 cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h. */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h. */
9384#define _POSIX_READER_WRITER_LOCKS
9385 #include <pthread.h>
9386int
9387main ()
9388{
9389pthread_rwlock_t *x;
9390 ;
9391 return 0;
9392}
9393_ACEOF
9394rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009402 (exit $ac_status); } &&
9403 { ac_try='test -z "$ac_c_werror_flag"
9404 || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009416 cat >>confdefs.h <<\_ACEOF
9417#define PJ_EMULATE_RWMUTEX 0
9418_ACEOF
9419
9420 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono0b462322008-03-12 22:44:24 +00009421 echo "$as_me:$LINENO: result: yes" >&5
9422echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009423else
9424 echo "$as_me: failed program was:" >&5
9425sed 's/^/| /' conftest.$ac_ext >&5
9426
Benny Prijono0b462322008-03-12 22:44:24 +00009427cat >>confdefs.h <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009428#define PJ_EMULATE_RWMUTEX 1
9429_ACEOF
9430
Benny Prijono0b462322008-03-12 22:44:24 +00009431 echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
9433fi
9434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009435fi
9436
Benny Prijono0b462322008-03-12 22:44:24 +00009437echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
9438echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009439cat >conftest.$ac_ext <<_ACEOF
9440/* confdefs.h. */
9441_ACEOF
9442cat confdefs.h >>conftest.$ac_ext
9443cat >>conftest.$ac_ext <<_ACEOF
9444/* end confdefs.h. */
9445#include <pthread.h>
9446int
9447main ()
9448{
9449pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9456 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009457 ac_status=$?
9458 grep -v '^ *+' conftest.er1 >conftest.err
9459 rm -f conftest.er1
9460 cat conftest.err >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009462 (exit $ac_status); } &&
9463 { ac_try='test -z "$ac_c_werror_flag"
9464 || test ! -s conftest.err'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; } &&
9470 { ac_try='test -s conftest.$ac_objext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009476 cat >>confdefs.h <<\_ACEOF
9477#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
9478_ACEOF
9479
Benny Prijono0b462322008-03-12 22:44:24 +00009480 echo "$as_me:$LINENO: result: yes" >&5
9481echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009482else
9483 echo "$as_me: failed program was:" >&5
9484sed 's/^/| /' conftest.$ac_ext >&5
9485
Benny Prijono0b462322008-03-12 22:44:24 +00009486echo "$as_me:$LINENO: result: no" >&5
9487echo "${ECHO_T}no" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009488fi
Benny Prijono0b462322008-03-12 22:44:24 +00009489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009490
Benny Prijono0b462322008-03-12 22:44:24 +00009491echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
9492echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009493cat >conftest.$ac_ext <<_ACEOF
9494/* confdefs.h. */
9495_ACEOF
9496cat confdefs.h >>conftest.$ac_ext
9497cat >>conftest.$ac_ext <<_ACEOF
9498/* end confdefs.h. */
9499#include <pthread.h>
9500int
9501main ()
9502{
9503pthread_mutexattr_t attr;
9504 attr.recursive=1;
9505 ;
9506 return 0;
9507}
9508_ACEOF
9509rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag"
9519 || test ! -s conftest.err'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 (eval $ac_try) 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest.$ac_objext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009531 cat >>confdefs.h <<\_ACEOF
9532#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
9533_ACEOF
9534
Benny Prijono0b462322008-03-12 22:44:24 +00009535 echo "$as_me:$LINENO: result: yes" >&5
9536echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009537else
9538 echo "$as_me: failed program was:" >&5
9539sed 's/^/| /' conftest.$ac_ext >&5
9540
Benny Prijono0b462322008-03-12 22:44:24 +00009541echo "$as_me:$LINENO: result: no" >&5
9542echo "${ECHO_T}no" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009543fi
Benny Prijono0b462322008-03-12 22:44:24 +00009544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009545
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009546
9547case $target in
9548 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00009549 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 +00009550 ;;
9551 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00009552 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"
9553 # UUID
9554 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
9555 ac_os_objs="$ac_os_objs guid_uuid.o"
9556 else
9557 ac_os_objs="$ac_os_objs guid_simple.o"
9558 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009559 ;;
9560esac
9561
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009562
9563
9564
Benny Prijono4e48b512007-05-16 13:41:00 +00009565
Benny Prijono0b462322008-03-12 22:44:24 +00009566# Check whether --enable-sound or --disable-sound was given.
Benny Prijono1d971622006-09-10 22:27:40 +00009567if test "${enable_sound+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009568 enableval="$enable_sound"
9569 if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00009570 ac_pjmedia_snd=null
Benny Prijono0b462322008-03-12 22:44:24 +00009571 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
9572echo "${ECHO_T}Checking if sound is disabled... yes" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00009573 fi
9574
Benny Prijono0b462322008-03-12 22:44:24 +00009575fi;
Benny Prijono1d971622006-09-10 22:27:40 +00009576
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009577
Benny Prijono27c98722007-04-09 21:28:15 +00009578if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009579 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9580echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009581if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9583fi
Benny Prijono0b462322008-03-12 22:44:24 +00009584echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9585echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009586else
9587 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009588echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9589echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009590cat >conftest.$ac_ext <<_ACEOF
9591/* confdefs.h. */
9592_ACEOF
9593cat confdefs.h >>conftest.$ac_ext
9594cat >>conftest.$ac_ext <<_ACEOF
9595/* end confdefs.h. */
9596$ac_includes_default
9597#include <sys/soundcard.h>
9598_ACEOF
9599rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9601 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009607 (exit $ac_status); } &&
9608 { ac_try='test -z "$ac_c_werror_flag"
9609 || test ! -s conftest.err'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest.$ac_objext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009621 ac_header_compiler=yes
9622else
9623 echo "$as_me: failed program was:" >&5
9624sed 's/^/| /' conftest.$ac_ext >&5
9625
Benny Prijono0b462322008-03-12 22:44:24 +00009626ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009627fi
Benny Prijono0b462322008-03-12 22:44:24 +00009628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9629echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9630echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009631
9632# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009633echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9634echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009635cat >conftest.$ac_ext <<_ACEOF
9636/* confdefs.h. */
9637_ACEOF
9638cat confdefs.h >>conftest.$ac_ext
9639cat >>conftest.$ac_ext <<_ACEOF
9640/* end confdefs.h. */
9641#include <sys/soundcard.h>
9642_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009650 (exit $ac_status); } >/dev/null; then
9651 if test -s conftest.err; then
9652 ac_cpp_err=$ac_c_preproc_warn_flag
9653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9654 else
9655 ac_cpp_err=
9656 fi
9657else
9658 ac_cpp_err=yes
9659fi
9660if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009661 ac_header_preproc=yes
9662else
9663 echo "$as_me: failed program was:" >&5
9664sed 's/^/| /' conftest.$ac_ext >&5
9665
9666 ac_header_preproc=no
9667fi
9668rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00009669echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9670echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009671
9672# So? What about this header?
9673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9674 yes:no: )
9675 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9676echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9678echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9679 ac_header_preproc=yes
9680 ;;
9681 no:yes:* )
9682 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9683echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9685echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9687echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9689echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9691echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9693echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00009694 (
9695 cat <<\_ASBOX
9696## ------------------------------------ ##
9697## Report this to the pjproject lists. ##
9698## ------------------------------------ ##
9699_ASBOX
9700 ) |
9701 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +00009702 ;;
9703esac
Benny Prijono0b462322008-03-12 22:44:24 +00009704echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9705echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009706if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708else
9709 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9710fi
Benny Prijono0b462322008-03-12 22:44:24 +00009711echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9712echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009713
9714fi
9715if test $ac_cv_header_sys_soundcard_h = yes; then
9716 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
9717fi
9718
9719
9720if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009721 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9722echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009723if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725fi
Benny Prijono0b462322008-03-12 22:44:24 +00009726echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9727echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009728else
9729 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009730echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
9731echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009732cat >conftest.$ac_ext <<_ACEOF
9733/* confdefs.h. */
9734_ACEOF
9735cat confdefs.h >>conftest.$ac_ext
9736cat >>conftest.$ac_ext <<_ACEOF
9737/* end confdefs.h. */
9738$ac_includes_default
9739#include <linux/soundcard.h>
9740_ACEOF
9741rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009744 ac_status=$?
9745 grep -v '^ *+' conftest.er1 >conftest.err
9746 rm -f conftest.er1
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009749 (exit $ac_status); } &&
9750 { ac_try='test -z "$ac_c_werror_flag"
9751 || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest.$ac_objext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009763 ac_header_compiler=yes
9764else
9765 echo "$as_me: failed program was:" >&5
9766sed 's/^/| /' conftest.$ac_ext >&5
9767
Benny Prijono0b462322008-03-12 22:44:24 +00009768ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009769fi
Benny Prijono0b462322008-03-12 22:44:24 +00009770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9772echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009773
9774# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009775echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
9776echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009777cat >conftest.$ac_ext <<_ACEOF
9778/* confdefs.h. */
9779_ACEOF
9780cat confdefs.h >>conftest.$ac_ext
9781cat >>conftest.$ac_ext <<_ACEOF
9782/* end confdefs.h. */
9783#include <linux/soundcard.h>
9784_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009792 (exit $ac_status); } >/dev/null; then
9793 if test -s conftest.err; then
9794 ac_cpp_err=$ac_c_preproc_warn_flag
9795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9796 else
9797 ac_cpp_err=
9798 fi
9799else
9800 ac_cpp_err=yes
9801fi
9802if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009803 ac_header_preproc=yes
9804else
9805 echo "$as_me: failed program was:" >&5
9806sed 's/^/| /' conftest.$ac_ext >&5
9807
9808 ac_header_preproc=no
9809fi
9810rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00009811echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9812echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009813
9814# So? What about this header?
9815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9816 yes:no: )
9817 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9818echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9819 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
9820echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
9821 ac_header_preproc=yes
9822 ;;
9823 no:yes:* )
9824 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
9825echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
9827echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
9829echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9831echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
9833echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
9835echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00009836 (
9837 cat <<\_ASBOX
9838## ------------------------------------ ##
9839## Report this to the pjproject lists. ##
9840## ------------------------------------ ##
9841_ASBOX
9842 ) |
9843 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +00009844 ;;
9845esac
Benny Prijono0b462322008-03-12 22:44:24 +00009846echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9847echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009848if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850else
9851 ac_cv_header_linux_soundcard_h=$ac_header_preproc
9852fi
Benny Prijono0b462322008-03-12 22:44:24 +00009853echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9854echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009855
9856fi
9857if test $ac_cv_header_linux_soundcard_h = yes; then
9858 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
9859fi
9860
9861
9862if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009863 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9864echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009865if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867fi
Benny Prijono0b462322008-03-12 22:44:24 +00009868echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9869echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009870else
9871 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009872echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
9873echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009874cat >conftest.$ac_ext <<_ACEOF
9875/* confdefs.h. */
9876_ACEOF
9877cat confdefs.h >>conftest.$ac_ext
9878cat >>conftest.$ac_ext <<_ACEOF
9879/* end confdefs.h. */
9880$ac_includes_default
9881#include <machine/soundcard.h>
9882_ACEOF
9883rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9885 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009886 ac_status=$?
9887 grep -v '^ *+' conftest.er1 >conftest.err
9888 rm -f conftest.er1
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag"
9893 || test ! -s conftest.err'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 (eval $ac_try) 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest.$ac_objext'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009905 ac_header_compiler=yes
9906else
9907 echo "$as_me: failed program was:" >&5
9908sed 's/^/| /' conftest.$ac_ext >&5
9909
Benny Prijono0b462322008-03-12 22:44:24 +00009910ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009911fi
Benny Prijono0b462322008-03-12 22:44:24 +00009912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9913echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9914echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009915
9916# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009917echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
9918echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009919cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h. */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h. */
9925#include <machine/soundcard.h>
9926_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009934 (exit $ac_status); } >/dev/null; then
9935 if test -s conftest.err; then
9936 ac_cpp_err=$ac_c_preproc_warn_flag
9937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9938 else
9939 ac_cpp_err=
9940 fi
9941else
9942 ac_cpp_err=yes
9943fi
9944if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009945 ac_header_preproc=yes
9946else
9947 echo "$as_me: failed program was:" >&5
9948sed 's/^/| /' conftest.$ac_ext >&5
9949
9950 ac_header_preproc=no
9951fi
9952rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00009953echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9954echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009955
9956# So? What about this header?
9957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9958 yes:no: )
9959 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9960echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9961 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
9962echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
9963 ac_header_preproc=yes
9964 ;;
9965 no:yes:* )
9966 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
9967echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
9969echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
9971echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
9972 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9973echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
9975echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
9976 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
9977echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00009978 (
9979 cat <<\_ASBOX
9980## ------------------------------------ ##
9981## Report this to the pjproject lists. ##
9982## ------------------------------------ ##
9983_ASBOX
9984 ) |
9985 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +00009986 ;;
9987esac
Benny Prijono0b462322008-03-12 22:44:24 +00009988echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9989echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009990if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992else
9993 ac_cv_header_machine_soundcard_h=$ac_header_preproc
9994fi
Benny Prijono0b462322008-03-12 22:44:24 +00009995echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9996echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009997
9998fi
9999if test $ac_cv_header_machine_soundcard_h = yes; then
10000 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
10001fi
10002
10003
10004
Benny Prijono3e091672008-01-09 15:43:02 +000010005if test "x$ac_cv_c_bigendian" = "xyes"; then
10006 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
10007else
10008 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
10009fi
10010
Benny Prijono1d971622006-09-10 22:27:40 +000010011if test "$enable_sound" = "no"; then
10012 true;
10013else
10014 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +000010015 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000010016 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
10017 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010018 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000010019 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
10020 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono0b462322008-03-12 22:44:24 +000010021 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
10022echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +000010023 else
10024 ac_pjmedia_snd=pa_darwinos
Benny Prijono0b462322008-03-12 22:44:24 +000010025 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
10026echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +000010027 fi
Benny Prijonob466e232006-09-10 08:53:59 +000010028 ;;
10029 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010030 ac_pjmedia_snd=pa_win32
Benny Prijono0b462322008-03-12 22:44:24 +000010031 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
10032echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010033 ;;
10034 *rtems*)
10035 ac_pjmedia_snd=null
Benny Prijono0b462322008-03-12 22:44:24 +000010036 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
10037echo "${ECHO_T}Checking sound device backend... null sound" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010038 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010039 *)
Benny Prijono0b462322008-03-12 22:44:24 +000010040 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010041 if test "${ac_cv_header_alsa_version_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010042 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10043echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010044if test "${ac_cv_header_alsa_version_h+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010046fi
Benny Prijono0b462322008-03-12 22:44:24 +000010047echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10048echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010049else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010050 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +000010051echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
10052echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010053cat >conftest.$ac_ext <<_ACEOF
10054/* confdefs.h. */
10055_ACEOF
10056cat confdefs.h >>conftest.$ac_ext
10057cat >>conftest.$ac_ext <<_ACEOF
10058/* end confdefs.h. */
10059$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010060#include <alsa/version.h>
10061_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010062rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +000010063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010065 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010066 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010067 rm -f conftest.er1
10068 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag"
10072 || test ! -s conftest.err'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest.$ac_objext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010084 ac_header_compiler=yes
10085else
10086 echo "$as_me: failed program was:" >&5
10087sed 's/^/| /' conftest.$ac_ext >&5
10088
Benny Prijono0b462322008-03-12 22:44:24 +000010089ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010090fi
Benny Prijono0b462322008-03-12 22:44:24 +000010091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10092echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10093echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010094
10095# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +000010096echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
10097echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010098cat >conftest.$ac_ext <<_ACEOF
10099/* confdefs.h. */
10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h. */
10104#include <alsa/version.h>
10105_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000010106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010108 ac_status=$?
10109 grep -v '^ *+' conftest.er1 >conftest.err
10110 rm -f conftest.er1
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010113 (exit $ac_status); } >/dev/null; then
10114 if test -s conftest.err; then
10115 ac_cpp_err=$ac_c_preproc_warn_flag
10116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10117 else
10118 ac_cpp_err=
10119 fi
10120else
10121 ac_cpp_err=yes
10122fi
10123if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010124 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010125else
10126 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010127sed 's/^/| /' conftest.$ac_ext >&5
10128
10129 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010130fi
10131rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +000010132echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010134
10135# So? What about this header?
10136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10137 yes:no: )
10138 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10139echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
10141echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
10142 ac_header_preproc=yes
10143 ;;
10144 no:yes:* )
10145 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
10146echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
10148echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
10150echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
10152echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10153 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
10154echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
10155 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
10156echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010157 (
10158 cat <<\_ASBOX
10159## ------------------------------------ ##
10160## Report this to the pjproject lists. ##
10161## ------------------------------------ ##
10162_ASBOX
10163 ) |
10164 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010165 ;;
10166esac
Benny Prijono0b462322008-03-12 22:44:24 +000010167echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10168echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010169if test "${ac_cv_header_alsa_version_h+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171else
10172 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010173fi
Benny Prijono0b462322008-03-12 22:44:24 +000010174echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10175echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010176
10177fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010178if test $ac_cv_header_alsa_version_h = yes; then
10179 ac_pa_use_alsa=1
10180
10181 LIBS="$LIBS -lasound"
10182
10183else
10184 ac_pa_use_alsa=0
10185
10186fi
10187
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010188
Benny Prijono0b462322008-03-12 22:44:24 +000010189 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
10190echo "${ECHO_T}Checking sound device backend... unix" >&6
10191
10192 ac_pa_use_oss=1
10193
10194 # Check whether --enable-oss or --disable-oss was given.
10195if test "${enable_oss+set}" = set; then
10196 enableval="$enable_oss"
10197
10198 if test "$enable_oss" = "no"; then
10199 ac_pa_use_oss=0
10200 echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
10201echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6
10202 fi
10203
10204fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010205 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000010206 esac
10207fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010208
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010209
Benny Prijono0b462322008-03-12 22:44:24 +000010210# Check whether --enable-small-filter or --disable-small-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010211if test "${enable_small_filter+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010212 enableval="$enable_small_filter"
10213 if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010214 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010215 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
10216echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010217 fi
10218else
Benny Prijono0b462322008-03-12 22:44:24 +000010219 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
10220echo "${ECHO_T}Checking if small filter is disabled... no" >&6
10221fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010222
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010223
Benny Prijono0b462322008-03-12 22:44:24 +000010224# Check whether --enable-large-filter or --disable-large-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010225if test "${enable_large_filter+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010226 enableval="$enable_large_filter"
10227 if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010228 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010229 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
10230echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010231 fi
10232else
Benny Prijono0b462322008-03-12 22:44:24 +000010233 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
10234echo "${ECHO_T}Checking if large filter is disabled... no" >&6
10235fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010236
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010237
Benny Prijono0b462322008-03-12 22:44:24 +000010238# Check whether --enable-speex-aec or --disable-speex-aec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010239if test "${enable_speex_aec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010240 enableval="$enable_speex_aec"
10241 if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010242 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010243 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
10244echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010245 fi
10246else
Benny Prijono0b462322008-03-12 22:44:24 +000010247 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
10248echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
10249fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010250
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010251
Benny Prijono0b462322008-03-12 22:44:24 +000010252# Check whether --enable-g711-codec or --disable-g711-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010253if test "${enable_g711_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010254 enableval="$enable_g711_codec"
10255 if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010256 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010257 cat >>confdefs.h <<\_ACEOF
10258#define PJMEDIA_HAS_G711_CODEC 0
10259_ACEOF
10260
Benny Prijono0b462322008-03-12 22:44:24 +000010261 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
10262echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010263 fi
10264else
Benny Prijono0b462322008-03-12 22:44:24 +000010265 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
10266echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
10267fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010268
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010269
10270
Benny Prijono0b462322008-03-12 22:44:24 +000010271# Check whether --enable-l16-codec or --disable-l16-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010272if test "${enable_l16_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010273 enableval="$enable_l16_codec"
10274 if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010275 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010276 cat >>confdefs.h <<\_ACEOF
10277#define PJMEDIA_HAS_L16_CODEC 0
10278_ACEOF
10279
Benny Prijono0b462322008-03-12 22:44:24 +000010280 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
10281echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010282 fi
10283else
Benny Prijono0b462322008-03-12 22:44:24 +000010284 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
10285echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
10286fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010287
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010288
10289
Benny Prijono0b462322008-03-12 22:44:24 +000010290# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010291if test "${enable_gsm_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010292 enableval="$enable_gsm_codec"
10293 if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010294 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010295 cat >>confdefs.h <<\_ACEOF
10296#define PJMEDIA_HAS_GSM_CODEC 0
10297_ACEOF
10298
Benny Prijono0b462322008-03-12 22:44:24 +000010299 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
10300echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010301 fi
10302else
Benny Prijono0b462322008-03-12 22:44:24 +000010303 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
10304echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
10305fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010306
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010307
Benny Prijono71f657d2008-03-17 14:24:21 +000010308# Check whether --enable-g722-codec or --disable-g722-codec was given.
10309if test "${enable_g722_codec+set}" = set; then
10310 enableval="$enable_g722_codec"
10311 if test "$enable_g722_codec" = "no"; then
10312 ac_no_g722_codec=1
10313 cat >>confdefs.h <<\_ACEOF
10314#define PJMEDIA_HAS_G722_CODEC 0
10315_ACEOF
10316
10317 echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5
10318echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6
10319 fi
10320else
10321 echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5
10322echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6
10323fi;
10324
10325
Benny Prijono0b462322008-03-12 22:44:24 +000010326# Check whether --enable-speex-codec or --disable-speex-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010327if test "${enable_speex_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010328 enableval="$enable_speex_codec"
10329 if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010330 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010331 cat >>confdefs.h <<\_ACEOF
10332#define PJMEDIA_HAS_SPEEX_CODEC 0
10333_ACEOF
10334
Benny Prijono0b462322008-03-12 22:44:24 +000010335 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
10336echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010337 fi
10338else
Benny Prijono0b462322008-03-12 22:44:24 +000010339 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
10340echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
10341fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010342
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010343
Benny Prijono0b462322008-03-12 22:44:24 +000010344# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010345if test "${enable_ilbc_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010346 enableval="$enable_ilbc_codec"
10347 if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010348 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010349 cat >>confdefs.h <<\_ACEOF
10350#define PJMEDIA_HAS_ILBC_CODEC 0
10351_ACEOF
10352
Benny Prijono0b462322008-03-12 22:44:24 +000010353 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
10354echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010355 fi
10356else
Benny Prijono0b462322008-03-12 22:44:24 +000010357 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
10358echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
10359fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010360
Benny Prijono0b462322008-03-12 22:44:24 +000010361# Check whether --enable-libsamplerate or --disable-libsamplerate was given.
Benny Prijono550a1a62007-10-16 08:54:00 +000010362if test "${enable_libsamplerate+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010363 enableval="$enable_libsamplerate"
10364
10365echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
10366echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010367if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370 ac_check_lib_save_LIBS=$LIBS
10371LIBS="-lsamplerate $LIBS"
10372cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378
Benny Prijono0b462322008-03-12 22:44:24 +000010379/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010380#ifdef __cplusplus
10381extern "C"
10382#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010383/* We use char because int might match the return type of a gcc2
10384 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010385char src_new ();
10386int
10387main ()
10388{
Benny Prijono0b462322008-03-12 22:44:24 +000010389src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000010390 ;
10391 return 0;
10392}
10393_ACEOF
10394rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10396 (eval $ac_link) 2>conftest.er1
Benny Prijono550a1a62007-10-16 08:54:00 +000010397 ac_status=$?
10398 grep -v '^ *+' conftest.er1 >conftest.err
10399 rm -f conftest.er1
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010402 (exit $ac_status); } &&
10403 { ac_try='test -z "$ac_c_werror_flag"
10404 || test ! -s conftest.err'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; } &&
10410 { ac_try='test -s conftest$ac_exeext'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; }; then
Benny Prijono550a1a62007-10-16 08:54:00 +000010416 ac_cv_lib_samplerate_src_new=yes
10417else
10418 echo "$as_me: failed program was:" >&5
10419sed 's/^/| /' conftest.$ac_ext >&5
10420
Benny Prijono0b462322008-03-12 22:44:24 +000010421ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000010422fi
Benny Prijono0b462322008-03-12 22:44:24 +000010423rm -f conftest.err conftest.$ac_objext \
Benny Prijono550a1a62007-10-16 08:54:00 +000010424 conftest$ac_exeext conftest.$ac_ext
10425LIBS=$ac_check_lib_save_LIBS
10426fi
Benny Prijono0b462322008-03-12 22:44:24 +000010427echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
10428echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010429if test $ac_cv_lib_samplerate_src_new = yes; then
10430 cat >>confdefs.h <<_ACEOF
10431#define HAVE_LIBSAMPLERATE 1
10432_ACEOF
10433
10434 LIBS="-lsamplerate $LIBS"
10435
10436fi
10437
10438else
Benny Prijono0b462322008-03-12 22:44:24 +000010439 echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
10440echo "${ECHO_T}Skipping libsamplerate detection" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010441
Benny Prijono0b462322008-03-12 22:44:24 +000010442fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010443
10444
10445
10446
Benny Prijono0b462322008-03-12 22:44:24 +000010447# Check whether --enable-ssl or --disable-ssl was given.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010448if test "${enable_ssl+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010449 enableval="$enable_ssl"
10450
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010451 if test "$enable_ssl" = "no"; then
10452 ac_no_ssl=1
Benny Prijono0b462322008-03-12 22:44:24 +000010453 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
10454echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010455 fi
10456
10457else
10458
Benny Prijono0b462322008-03-12 22:44:24 +000010459 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
10460echo "${ECHO_T}checking for OpenSSL installations.." >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010461
10462
10463
10464 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010465 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10466echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010467if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469fi
Benny Prijono0b462322008-03-12 22:44:24 +000010470echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10471echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010472else
10473 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +000010474echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10475echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010476cat >conftest.$ac_ext <<_ACEOF
10477/* confdefs.h. */
10478_ACEOF
10479cat confdefs.h >>conftest.$ac_ext
10480cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h. */
10482$ac_includes_default
10483#include <openssl/ssl.h>
10484_ACEOF
10485rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +000010486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010493 (exit $ac_status); } &&
10494 { ac_try='test -z "$ac_c_werror_flag"
10495 || test ! -s conftest.err'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; } &&
10501 { ac_try='test -s conftest.$ac_objext'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010507 ac_header_compiler=yes
10508else
10509 echo "$as_me: failed program was:" >&5
10510sed 's/^/| /' conftest.$ac_ext >&5
10511
Benny Prijono0b462322008-03-12 22:44:24 +000010512ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010513fi
Benny Prijono0b462322008-03-12 22:44:24 +000010514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10516echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010517
10518# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +000010519echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10520echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010521cat >conftest.$ac_ext <<_ACEOF
10522/* confdefs.h. */
10523_ACEOF
10524cat confdefs.h >>conftest.$ac_ext
10525cat >>conftest.$ac_ext <<_ACEOF
10526/* end confdefs.h. */
10527#include <openssl/ssl.h>
10528_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000010529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010536 (exit $ac_status); } >/dev/null; then
10537 if test -s conftest.err; then
10538 ac_cpp_err=$ac_c_preproc_warn_flag
10539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10540 else
10541 ac_cpp_err=
10542 fi
10543else
10544 ac_cpp_err=yes
10545fi
10546if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010547 ac_header_preproc=yes
10548else
10549 echo "$as_me: failed program was:" >&5
10550sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 ac_header_preproc=no
10553fi
10554rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +000010555echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10556echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010557
10558# So? What about this header?
10559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10560 yes:no: )
10561 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10562echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10563 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10564echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10565 ac_header_preproc=yes
10566 ;;
10567 no:yes:* )
10568 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10569echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10570 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10571echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10572 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10573echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10574 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10575echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10577echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10579echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010580 (
10581 cat <<\_ASBOX
10582## ------------------------------------ ##
10583## Report this to the pjproject lists. ##
10584## ------------------------------------ ##
10585_ASBOX
10586 ) |
10587 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010588 ;;
10589esac
Benny Prijono0b462322008-03-12 22:44:24 +000010590echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10591echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010592if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594else
10595 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10596fi
Benny Prijono0b462322008-03-12 22:44:24 +000010597echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10598echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010599
10600fi
10601if test $ac_cv_header_openssl_ssl_h = yes; then
10602 openssl_h_present=1
10603fi
10604
10605
Benny Prijono0b462322008-03-12 22:44:24 +000010606 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
10607echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010608if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610else
10611 ac_check_lib_save_LIBS=$LIBS
10612LIBS="-lssl $LIBS"
10613cat >conftest.$ac_ext <<_ACEOF
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
10619
Benny Prijono0b462322008-03-12 22:44:24 +000010620/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010621#ifdef __cplusplus
10622extern "C"
10623#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010624/* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010626char SSL_library_init ();
10627int
10628main ()
10629{
Benny Prijono0b462322008-03-12 22:44:24 +000010630SSL_library_init ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010631 ;
10632 return 0;
10633}
10634_ACEOF
10635rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010643 (exit $ac_status); } &&
10644 { ac_try='test -z "$ac_c_werror_flag"
10645 || test ! -s conftest.err'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10648 ac_status=$?
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; } &&
10651 { ac_try='test -s conftest$ac_exeext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010657 ac_cv_lib_ssl_SSL_library_init=yes
10658else
10659 echo "$as_me: failed program was:" >&5
10660sed 's/^/| /' conftest.$ac_ext >&5
10661
Benny Prijono0b462322008-03-12 22:44:24 +000010662ac_cv_lib_ssl_SSL_library_init=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010663fi
Benny Prijono0b462322008-03-12 22:44:24 +000010664rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010665 conftest$ac_exeext conftest.$ac_ext
10666LIBS=$ac_check_lib_save_LIBS
10667fi
Benny Prijono0b462322008-03-12 22:44:24 +000010668echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
10669echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010670if test $ac_cv_lib_ssl_SSL_library_init = yes; then
10671 libssl_present=1 && LIBS="$LIBS -lssl"
10672fi
10673
Benny Prijono0b462322008-03-12 22:44:24 +000010674 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
10675echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010676if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678else
10679 ac_check_lib_save_LIBS=$LIBS
10680LIBS="-lcrypto $LIBS"
10681cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h. */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h. */
10687
Benny Prijono0b462322008-03-12 22:44:24 +000010688/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010689#ifdef __cplusplus
10690extern "C"
10691#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010692/* We use char because int might match the return type of a gcc2
10693 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010694char ERR_load_BIO_strings ();
10695int
10696main ()
10697{
Benny Prijono0b462322008-03-12 22:44:24 +000010698ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010699 ;
10700 return 0;
10701}
10702_ACEOF
10703rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705 (eval $ac_link) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_c_werror_flag"
10713 || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest$ac_exeext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010725 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
10726else
10727 echo "$as_me: failed program was:" >&5
10728sed 's/^/| /' conftest.$ac_ext >&5
10729
Benny Prijono0b462322008-03-12 22:44:24 +000010730ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010731fi
Benny Prijono0b462322008-03-12 22:44:24 +000010732rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010733 conftest$ac_exeext conftest.$ac_ext
10734LIBS=$ac_check_lib_save_LIBS
10735fi
Benny Prijono0b462322008-03-12 22:44:24 +000010736echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
10737echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010738if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
10739 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
10740fi
10741
10742 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijono0b462322008-03-12 22:44:24 +000010743 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
10744echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010745 cat >>confdefs.h <<\_ACEOF
10746#define PJSIP_HAS_TLS_TRANSPORT 1
10747_ACEOF
10748
10749 else
Benny Prijono0b462322008-03-12 22:44:24 +000010750 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
10751echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010752 fi
10753
Benny Prijono0b462322008-03-12 22:44:24 +000010754fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010755
10756
10757
10758
Benny Prijono0b462322008-03-12 22:44:24 +000010759echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
10760echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010761case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010762 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010763#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010764_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010765
Benny Prijono0b462322008-03-12 22:44:24 +000010766 echo "$as_me:$LINENO: result: yes" >&5
10767echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010768 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010769 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010770#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010771_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010772
Benny Prijono0b462322008-03-12 22:44:24 +000010773 echo "$as_me:$LINENO: result: no (default)" >&5
10774echo "${ECHO_T}no (default)" >&6
10775 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
10776echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010777 ;;
10778esac
10779
Benny Prijono0b462322008-03-12 22:44:24 +000010780echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
10781echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010782case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010783 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010784#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010785_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010786
Benny Prijono0b462322008-03-12 22:44:24 +000010787 echo "$as_me:$LINENO: result: yes" >&5
10788echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010789 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010790 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010791#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010792_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010793
Benny Prijono0b462322008-03-12 22:44:24 +000010794 echo "$as_me:$LINENO: result: no (default)" >&5
10795echo "${ECHO_T}no (default)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010796 ;;
10797esac
10798
Benny Prijono0b462322008-03-12 22:44:24 +000010799echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
10800echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010801case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010802 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010803#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010804_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010805
Benny Prijono0b462322008-03-12 22:44:24 +000010806 echo "$as_me:$LINENO: result: yes" >&5
10807echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010808 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010809 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010810#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010811_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010812
Benny Prijono0b462322008-03-12 22:44:24 +000010813 echo "$as_me:$LINENO: result: no (default)" >&5
10814echo "${ECHO_T}no (default)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010815 ;;
10816esac
10817
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010818case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010819 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010820 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010821#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010822_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010823
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010824 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010825 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010826#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010827_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010828
Benny Prijono0b462322008-03-12 22:44:24 +000010829 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
10830echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010831 ;;
10832esac
10833
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010834case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010835 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010836 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010837#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010838_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010839
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010840 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010841 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010842#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010843_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010844
Benny Prijono0b462322008-03-12 22:44:24 +000010845 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
10846echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010847 ;;
10848esac
10849
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010850
10851
10852
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010853if test "$build" = "$host"; then
10854 ac_cross_compile=
10855else
Benny Prijono5b818b22006-09-17 22:58:51 +000010856 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010857fi
10858ac_linux_poll=select
10859
10860ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010861
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010862
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010863case $target in
10864 *rtems*)
10865 ac_main_obj=main_rtems.o
10866 ;;
10867 *)
10868 ac_main_obj=main.o
10869 ;;
10870esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010871
10872cat >confcache <<\_ACEOF
10873# This file is a shell script that caches the results of configure
10874# tests run on this system so they can be shared between configure
10875# scripts and configure runs, see configure's option --config-cache.
10876# It is not useful on other systems. If it contains results you don't
10877# want to keep, you may remove or edit it.
10878#
10879# config.status only pays attention to the cache file if you give it
10880# the --recheck option to rerun configure.
10881#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010882# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010883# loading this file, other *unset* `ac_cv_foo' will be assigned the
10884# following values.
10885
10886_ACEOF
10887
10888# The following way of writing the cache mishandles newlines in values,
10889# but we know of no workaround that is simple, portable, and efficient.
Benny Prijono0b462322008-03-12 22:44:24 +000010890# So, don't put newlines in cache variables' values.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010891# Ultrix sh set writes to stderr and can't be redirected directly,
10892# and sets the high bit in the cache file unless we assign to the vars.
Benny Prijono0b462322008-03-12 22:44:24 +000010893{
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010894 (set) 2>&1 |
Benny Prijono0b462322008-03-12 22:44:24 +000010895 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10896 *ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010897 # `set' does not quote correctly, so add quotes (double-quote
10898 # substitution turns \\\\ into \\, and sed turns \\ into \).
10899 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010900 "s/'/'\\\\''/g;
10901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijono0b462322008-03-12 22:44:24 +000010902 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010903 *)
10904 # `set' quotes correctly as required by POSIX, so do not add quotes.
Benny Prijono0b462322008-03-12 22:44:24 +000010905 sed -n \
10906 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010907 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000010908 esac;
10909} |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010910 sed '
10911 t clear
Benny Prijono0b462322008-03-12 22:44:24 +000010912 : clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10914 t end
Benny Prijono0b462322008-03-12 22:44:24 +000010915 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10916 : end' >>confcache
10917if diff $cache_file confcache >/dev/null 2>&1; then :; else
10918 if test -w $cache_file; then
10919 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010920 cat confcache >$cache_file
10921 else
Benny Prijono0b462322008-03-12 22:44:24 +000010922 echo "not updating unwritable cache $cache_file"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010923 fi
10924fi
10925rm -f confcache
10926
10927test "x$prefix" = xNONE && prefix=$ac_default_prefix
10928# Let make expand exec_prefix.
10929test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10930
Benny Prijono0b462322008-03-12 22:44:24 +000010931# VPATH may cause trouble with some makes, so we remove $(srcdir),
10932# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10933# trailing colons and then remove the whole line if VPATH becomes empty
10934# (actually we leave an empty line to preserve line numbers).
10935if test "x$srcdir" = x.; then
10936 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10937s/:*\$(srcdir):*/:/;
10938s/:*\${srcdir}:*/:/;
10939s/:*@srcdir@:*/:/;
10940s/^\([^=]*=[ ]*\):*/\1/;
10941s/:*$//;
10942s/^[^=]*=[ ]*$//;
10943}'
10944fi
10945
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010946DEFS=-DHAVE_CONFIG_H
10947
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010948ac_libobjs=
10949ac_ltlibobjs=
10950for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10951 # 1. Remove the extension, and $U if already installed.
Benny Prijono0b462322008-03-12 22:44:24 +000010952 ac_i=`echo "$ac_i" |
10953 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10954 # 2. Add them.
10955 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10956 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010957done
10958LIBOBJS=$ac_libobjs
10959
10960LTLIBOBJS=$ac_ltlibobjs
10961
10962
10963
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010964: ${CONFIG_STATUS=./config.status}
10965ac_clean_files_save=$ac_clean_files
10966ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010967{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010968echo "$as_me: creating $CONFIG_STATUS" >&6;}
10969cat >$CONFIG_STATUS <<_ACEOF
10970#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010971# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010972# Run this file to recreate the current configuration.
10973# Compiler output produced by configure, useful for debugging
10974# configure, is in config.log if it exists.
10975
10976debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010977ac_cs_recheck=false
10978ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010979SHELL=\${CONFIG_SHELL-$SHELL}
10980_ACEOF
10981
10982cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010983## --------------------- ##
10984## M4sh Initialization. ##
10985## --------------------- ##
10986
Benny Prijono0b462322008-03-12 22:44:24 +000010987# Be Bourne compatible
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010988if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10989 emulate sh
10990 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010991 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10992 # is contrary to our usage. Disable this feature.
10993 alias -g '${1+"$@"}'='"$@"'
Benny Prijono0b462322008-03-12 22:44:24 +000010994elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10995 set -o posix
10996fi
10997DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonofdafd402008-01-23 14:34:46 +000010998
Benny Prijono0b462322008-03-12 22:44:24 +000010999# Support unset when possible.
11000if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11001 as_unset=unset
11002else
11003 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011004fi
11005
11006
Benny Prijono0b462322008-03-12 22:44:24 +000011007# Work around bugs in pre-3.0 UWIN ksh.
11008$as_unset ENV MAIL MAILPATH
11009PS1='$ '
11010PS2='> '
11011PS4='+ '
11012
11013# NLS nuisances.
11014for as_var in \
11015 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11016 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11017 LC_TELEPHONE LC_TIME
11018do
11019 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11020 eval $as_var=C; export $as_var
11021 else
11022 $as_unset $as_var
11023 fi
11024done
11025
11026# Required to use basename.
11027if expr a : '\(a\)' >/dev/null 2>&1; then
11028 as_expr=expr
11029else
11030 as_expr=false
11031fi
11032
11033if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11034 as_basename=basename
11035else
11036 as_basename=false
11037fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011038
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011039
Benny Prijono0b462322008-03-12 22:44:24 +000011040# Name of the executable.
11041as_me=`$as_basename "$0" ||
11042$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11043 X"$0" : 'X\(//\)$' \| \
11044 X"$0" : 'X\(/\)$' \| \
11045 . : '\(.\)' 2>/dev/null ||
11046echo X/"$0" |
11047 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11048 /^X\/\(\/\/\)$/{ s//\1/; q; }
11049 /^X\/\(\/\).*/{ s//\1/; q; }
11050 s/.*/./; q'`
11051
11052
11053# PATH needs CR, and LINENO needs CR and PATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011054# Avoid depending upon Character Ranges.
11055as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11056as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11057as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11058as_cr_digits='0123456789'
11059as_cr_alnum=$as_cr_Letters$as_cr_digits
11060
11061# The user is always right.
11062if test "${PATH_SEPARATOR+set}" != set; then
11063 echo "#! /bin/sh" >conf$$.sh
11064 echo "exit 0" >>conf$$.sh
11065 chmod +x conf$$.sh
11066 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11067 PATH_SEPARATOR=';'
11068 else
11069 PATH_SEPARATOR=:
11070 fi
11071 rm -f conf$$.sh
11072fi
11073
11074
Benny Prijono0b462322008-03-12 22:44:24 +000011075 as_lineno_1=$LINENO
11076 as_lineno_2=$LINENO
11077 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11078 test "x$as_lineno_1" != "x$as_lineno_2" &&
11079 test "x$as_lineno_3" = "x$as_lineno_2" || {
11080 # Find who we are. Look in the path if we contain no path at all
11081 # relative or not.
11082 case $0 in
11083 *[\\/]* ) as_myself=$0 ;;
11084 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011085for as_dir in $PATH
11086do
11087 IFS=$as_save_IFS
11088 test -z "$as_dir" && as_dir=.
11089 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11090done
11091
Benny Prijono0b462322008-03-12 22:44:24 +000011092 ;;
11093 esac
11094 # We did not find ourselves, most probably we were run as `sh COMMAND'
11095 # in which case we are not to be found in the path.
11096 if test "x$as_myself" = x; then
11097 as_myself=$0
Benny Prijonofdafd402008-01-23 14:34:46 +000011098 fi
Benny Prijono0b462322008-03-12 22:44:24 +000011099 if test ! -f "$as_myself"; then
11100 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11101echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11102 { (exit 1); exit 1; }; }
11103 fi
11104 case $CONFIG_SHELL in
11105 '')
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11108do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for as_base in sh bash ksh sh5; do
11112 case $as_dir in
11113 /*)
11114 if ("$as_dir/$as_base" -c '
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011115 as_lineno_1=$LINENO
11116 as_lineno_2=$LINENO
Benny Prijono0b462322008-03-12 22:44:24 +000011117 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011118 test "x$as_lineno_1" != "x$as_lineno_2" &&
Benny Prijono0b462322008-03-12 22:44:24 +000011119 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11120 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11121 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11122 CONFIG_SHELL=$as_dir/$as_base
11123 export CONFIG_SHELL
11124 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11125 fi;;
11126 esac
11127 done
11128done
11129;;
11130 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011131
11132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11133 # uniformly replaced by the line number. The first 'sed' inserts a
Benny Prijono0b462322008-03-12 22:44:24 +000011134 # line-number line before each line; the second 'sed' does the real
11135 # work. The second script uses 'N' to pair each line-number line
11136 # with the numbered line, and appends trailing '-' during
11137 # substitution so that $LINENO is not a special case at line end.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijono0b462322008-03-12 22:44:24 +000011139 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11140 sed '=' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011141 sed '
11142 N
Benny Prijono0b462322008-03-12 22:44:24 +000011143 s,$,-,
11144 : loop
11145 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011146 t loop
Benny Prijono0b462322008-03-12 22:44:24 +000011147 s,-$,,
11148 s,^['$as_cr_digits']*\n,,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011149 ' >$as_me.lineno &&
Benny Prijono0b462322008-03-12 22:44:24 +000011150 chmod +x $as_me.lineno ||
11151 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11152echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011153 { (exit 1); exit 1; }; }
11154
11155 # Don't try to exec as it changes $[0], causing all sort of problems
11156 # (the dirname of $[0] is not the place where we might find the
Benny Prijono0b462322008-03-12 22:44:24 +000011157 # original and so on. Autoconf is especially sensible to this).
11158 . ./$as_me.lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011159 # Exit status is that of the last command.
11160 exit
11161}
11162
11163
Benny Prijono0b462322008-03-12 22:44:24 +000011164case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11165 *c*,-n*) ECHO_N= ECHO_C='
11166' ECHO_T=' ' ;;
11167 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11168 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011169esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011170
Benny Prijono0b462322008-03-12 22:44:24 +000011171if expr a : '\(a\)' >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011172 as_expr=expr
11173else
11174 as_expr=false
11175fi
11176
11177rm -f conf$$ conf$$.exe conf$$.file
11178echo >conf$$.file
11179if ln -s conf$$.file conf$$ 2>/dev/null; then
Benny Prijono0b462322008-03-12 22:44:24 +000011180 # We could just check for DJGPP; but this test a) works b) is more generic
11181 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11182 if test -f conf$$.exe; then
11183 # Don't use ln at all; we don't have any links
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011184 as_ln_s='cp -p'
Benny Prijono0b462322008-03-12 22:44:24 +000011185 else
11186 as_ln_s='ln -s'
11187 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011188elif ln conf$$.file conf$$ 2>/dev/null; then
11189 as_ln_s=ln
11190else
11191 as_ln_s='cp -p'
11192fi
Benny Prijono0b462322008-03-12 22:44:24 +000011193rm -f conf$$ conf$$.exe conf$$.file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011194
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011195if mkdir -p . 2>/dev/null; then
11196 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000011197else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011198 test -d ./-p && rmdir ./-p
11199 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000011200fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011201
Benny Prijono0b462322008-03-12 22:44:24 +000011202as_executable_p="test -f"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011203
11204# Sed expression to map a string onto a valid CPP name.
11205as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11206
11207# Sed expression to map a string onto a valid variable name.
11208as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11209
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011210
Benny Prijono0b462322008-03-12 22:44:24 +000011211# IFS
11212# We need space, tab and new line, in precisely that order.
11213as_nl='
11214'
11215IFS=" $as_nl"
11216
11217# CDPATH.
11218$as_unset CDPATH
11219
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011220exec 6>&1
11221
Benny Prijono0b462322008-03-12 22:44:24 +000011222# Open the log real soon, to keep \$[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011223# report actual input values of CONFIG_FILES etc. instead of their
Benny Prijono0b462322008-03-12 22:44:24 +000011224# values after options handling. Logging --version etc. is OK.
11225exec 5>>config.log
11226{
11227 echo
11228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11229## Running $as_me. ##
11230_ASBOX
11231} >&5
11232cat >&5 <<_CSEOF
11233
Benny Prijono1c5f4e42008-02-07 13:11:39 +000011234This file was extended by pjproject $as_me 0.8, which was
Benny Prijono0b462322008-03-12 22:44:24 +000011235generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011236
11237 CONFIG_FILES = $CONFIG_FILES
11238 CONFIG_HEADERS = $CONFIG_HEADERS
11239 CONFIG_LINKS = $CONFIG_LINKS
11240 CONFIG_COMMANDS = $CONFIG_COMMANDS
11241 $ $0 $@
11242
Benny Prijono0b462322008-03-12 22:44:24 +000011243_CSEOF
11244echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11245echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011246_ACEOF
11247
11248# Files that config.status was made for.
Benny Prijono0b462322008-03-12 22:44:24 +000011249if test -n "$ac_config_files"; then
11250 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11251fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011252
Benny Prijono0b462322008-03-12 22:44:24 +000011253if test -n "$ac_config_headers"; then
11254 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11255fi
11256
11257if test -n "$ac_config_links"; then
11258 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11259fi
11260
11261if test -n "$ac_config_commands"; then
11262 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11263fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011264
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011265cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011266
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011267ac_cs_usage="\
11268\`$as_me' instantiates files from templates according to the
11269current configuration.
11270
11271Usage: $0 [OPTIONS] [FILE]...
11272
11273 -h, --help print this help, then exit
Benny Prijono0b462322008-03-12 22:44:24 +000011274 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011275 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011276 -d, --debug don't remove temporary files
11277 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011278 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011279 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011280 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011281 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011282
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011283Configuration files:
11284$config_files
11285
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011286Configuration headers:
11287$config_headers
11288
11289Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonofdafd402008-01-23 14:34:46 +000011290_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011291
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011292cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011293ac_cs_version="\\
Benny Prijono1c5f4e42008-02-07 13:11:39 +000011294pjproject config.status 0.8
Benny Prijono0b462322008-03-12 22:44:24 +000011295configured by $0, generated by GNU Autoconf 2.59,
11296 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011297
Benny Prijono0b462322008-03-12 22:44:24 +000011298Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011299This config.status script is free software; the Free Software Foundation
11300gives unlimited permission to copy, distribute and modify it."
Benny Prijono0b462322008-03-12 22:44:24 +000011301srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011302_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011303
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011304cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011305# If no file are specified by the user, then we need to provide default
11306# value. By we need to know if files were specified by the user.
11307ac_need_defaults=:
11308while test $# != 0
11309do
11310 case $1 in
11311 --*=*)
Benny Prijono0b462322008-03-12 22:44:24 +000011312 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11313 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011314 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011315 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011316 -*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011317 ac_option=$1
11318 ac_optarg=$2
11319 ac_shift=shift
11320 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011321 *) # This is not an option, so the user has probably given explicit
11322 # arguments.
11323 ac_option=$1
11324 ac_need_defaults=false;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011325 esac
11326
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011327 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011328 # Handling of the options.
Benny Prijono0b462322008-03-12 22:44:24 +000011329_ACEOF
11330cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011332 ac_cs_recheck=: ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011333 --version | --vers* | -V )
11334 echo "$ac_cs_version"; exit 0 ;;
11335 --he | --h)
11336 # Conflict between --help and --header
11337 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11338Try \`$0 --help' for more information." >&5
11339echo "$as_me: error: ambiguous option: $1
11340Try \`$0 --help' for more information." >&2;}
11341 { (exit 1); exit 1; }; };;
11342 --help | --hel | -h )
11343 echo "$ac_cs_usage"; exit 0 ;;
11344 --debug | --d* | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011345 debug=: ;;
11346 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011347 $ac_shift
11348 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011349 ac_need_defaults=false;;
11350 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011351 $ac_shift
11352 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011353 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11356 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011357
11358 # This is an error.
Benny Prijono0b462322008-03-12 22:44:24 +000011359 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11360Try \`$0 --help' for more information." >&5
11361echo "$as_me: error: unrecognized option: $1
11362Try \`$0 --help' for more information." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011363 { (exit 1); exit 1; }; } ;;
11364
Benny Prijono0b462322008-03-12 22:44:24 +000011365 *) ac_config_targets="$ac_config_targets $1" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011366
11367 esac
11368 shift
11369done
11370
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011371ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011372
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011373if $ac_cs_silent; then
11374 exec 6>/dev/null
11375 ac_configure_extra_args="$ac_configure_extra_args --silent"
11376fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011377
11378_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011379cat >>$CONFIG_STATUS <<_ACEOF
11380if \$ac_cs_recheck; then
Benny Prijono0b462322008-03-12 22:44:24 +000011381 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11382 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011383fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011384
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011385_ACEOF
11386
Benny Prijono0b462322008-03-12 22:44:24 +000011387
11388
11389
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011390
11391cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011392for ac_config_target in $ac_config_targets
11393do
Benny Prijono0b462322008-03-12 22:44:24 +000011394 case "$ac_config_target" in
11395 # Handling of arguments.
11396 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
11397 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
11398 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
11399 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
11400 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
11401 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
11402 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
11403 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
11404 "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
11405 "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
11406 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
11407 "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
11408 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011409 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011410echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11411 { (exit 1); exit 1; }; };;
11412 esac
11413done
11414
11415# If the user did not use the arguments to specify the items to instantiate,
11416# then the envvar interface is used. Set only those that are not.
11417# We use the long form for the default assignment because of an extremely
11418# bizarre bug on SunOS 4.1.3.
11419if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11422fi
11423
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011424# Have a temporary directory for convenience. Make it in the build tree
Benny Prijono0b462322008-03-12 22:44:24 +000011425# simply because there is no reason to put it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011426# creating and moving files from /tmp can sometimes cause problems.
Benny Prijono0b462322008-03-12 22:44:24 +000011427# Create a temporary directory, and hook for its removal unless debugging.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011428$debug ||
11429{
Benny Prijono0b462322008-03-12 22:44:24 +000011430 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011431 trap '{ (exit 1); exit 1; }' 1 2 13 15
11432}
Benny Prijono0b462322008-03-12 22:44:24 +000011433
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011434# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011435
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011436{
Benny Prijono0b462322008-03-12 22:44:24 +000011437 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011438 test -n "$tmp" && test -d "$tmp"
11439} ||
11440{
Benny Prijono0b462322008-03-12 22:44:24 +000011441 tmp=./confstat$$-$RANDOM
11442 (umask 077 && mkdir $tmp)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011443} ||
11444{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011445 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011446 { (exit 1); exit 1; }
11447}
11448
Benny Prijono0b462322008-03-12 22:44:24 +000011449_ACEOF
11450
11451cat >>$CONFIG_STATUS <<_ACEOF
11452
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011453#
Benny Prijono0b462322008-03-12 22:44:24 +000011454# CONFIG_FILES section.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011455#
11456
11457# No need to generate the scripts if there are no CONFIG_FILES.
11458# This happens for instance when ./config.status config.h
Benny Prijono0b462322008-03-12 22:44:24 +000011459if test -n "\$CONFIG_FILES"; then
11460 # Protect against being on the right side of a sed subst in config.status.
11461 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11462 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11463s,@SHELL@,$SHELL,;t t
11464s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11465s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11466s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11467s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11468s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11469s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11470s,@exec_prefix@,$exec_prefix,;t t
11471s,@prefix@,$prefix,;t t
11472s,@program_transform_name@,$program_transform_name,;t t
11473s,@bindir@,$bindir,;t t
11474s,@sbindir@,$sbindir,;t t
11475s,@libexecdir@,$libexecdir,;t t
11476s,@datadir@,$datadir,;t t
11477s,@sysconfdir@,$sysconfdir,;t t
11478s,@sharedstatedir@,$sharedstatedir,;t t
11479s,@localstatedir@,$localstatedir,;t t
11480s,@libdir@,$libdir,;t t
11481s,@includedir@,$includedir,;t t
11482s,@oldincludedir@,$oldincludedir,;t t
11483s,@infodir@,$infodir,;t t
11484s,@mandir@,$mandir,;t t
11485s,@build_alias@,$build_alias,;t t
11486s,@host_alias@,$host_alias,;t t
11487s,@target_alias@,$target_alias,;t t
11488s,@DEFS@,$DEFS,;t t
11489s,@ECHO_C@,$ECHO_C,;t t
11490s,@ECHO_N@,$ECHO_N,;t t
11491s,@ECHO_T@,$ECHO_T,;t t
11492s,@LIBS@,$LIBS,;t t
11493s,@build@,$build,;t t
11494s,@build_cpu@,$build_cpu,;t t
11495s,@build_vendor@,$build_vendor,;t t
11496s,@build_os@,$build_os,;t t
11497s,@host@,$host,;t t
11498s,@host_cpu@,$host_cpu,;t t
11499s,@host_vendor@,$host_vendor,;t t
11500s,@host_os@,$host_os,;t t
11501s,@target@,$target,;t t
11502s,@target_cpu@,$target_cpu,;t t
11503s,@target_vendor@,$target_vendor,;t t
11504s,@target_os@,$target_os,;t t
11505s,@CC@,$CC,;t t
11506s,@CFLAGS@,$CFLAGS,;t t
11507s,@LDFLAGS@,$LDFLAGS,;t t
11508s,@CPPFLAGS@,$CPPFLAGS,;t t
11509s,@ac_ct_CC@,$ac_ct_CC,;t t
11510s,@EXEEXT@,$EXEEXT,;t t
11511s,@OBJEXT@,$OBJEXT,;t t
11512s,@CXX@,$CXX,;t t
11513s,@CXXFLAGS@,$CXXFLAGS,;t t
11514s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11515s,@ac_pjdir@,$ac_pjdir,;t t
11516s,@CPP@,$CPP,;t t
11517s,@EGREP@,$EGREP,;t t
11518s,@ac_os_objs@,$ac_os_objs,;t t
11519s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
11520s,@ac_pa_cflags@,$ac_pa_cflags,;t t
11521s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
11522s,@ac_pa_use_oss@,$ac_pa_use_oss,;t t
11523s,@ac_no_small_filter@,$ac_no_small_filter,;t t
11524s,@ac_no_large_filter@,$ac_no_large_filter,;t t
11525s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
11526s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
11527s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
11528s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
Benny Prijono71f657d2008-03-17 14:24:21 +000011529s,@ac_no_g722_codec@,$ac_no_g722_codec,;t t
Benny Prijono0b462322008-03-12 22:44:24 +000011530s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
11531s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
11532s,@ac_no_ssl@,$ac_no_ssl,;t t
11533s,@openssl_h_present@,$openssl_h_present,;t t
11534s,@libssl_present@,$libssl_present,;t t
11535s,@libcrypto_present@,$libcrypto_present,;t t
11536s,@ac_cross_compile@,$ac_cross_compile,;t t
11537s,@ac_linux_poll@,$ac_linux_poll,;t t
11538s,@ac_host@,$ac_host,;t t
11539s,@ac_main_obj@,$ac_main_obj,;t t
11540s,@LIBOBJS@,$LIBOBJS,;t t
11541s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11542CEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011543
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011544_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011545
Benny Prijono0b462322008-03-12 22:44:24 +000011546 cat >>$CONFIG_STATUS <<\_ACEOF
11547 # Split the substitutions into bite-sized pieces for seds with
11548 # small command number limits, like on Digital OSF/1 and HP-UX.
11549 ac_max_sed_lines=48
11550 ac_sed_frag=1 # Number of current file.
11551 ac_beg=1 # First line for current file.
11552 ac_end=$ac_max_sed_lines # Line after last line for current file.
11553 ac_more_lines=:
11554 ac_sed_cmds=
11555 while $ac_more_lines; do
11556 if test $ac_beg -gt 1; then
11557 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11558 else
11559 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11560 fi
11561 if test ! -s $tmp/subs.frag; then
11562 ac_more_lines=false
11563 else
11564 # The purpose of the label and of the branching condition is to
11565 # speed up the sed processing (if there are no `@' at all, there
11566 # is no need to browse any of the substitutions).
11567 # These are the two extra sed commands mentioned above.
11568 (echo ':t
11569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11570 if test -z "$ac_sed_cmds"; then
11571 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11572 else
11573 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11574 fi
11575 ac_sed_frag=`expr $ac_sed_frag + 1`
11576 ac_beg=$ac_end
11577 ac_end=`expr $ac_end + $ac_max_sed_lines`
11578 fi
11579 done
11580 if test -z "$ac_sed_cmds"; then
11581 ac_sed_cmds=cat
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011582 fi
11583fi # test -n "$CONFIG_FILES"
11584
Benny Prijono0b462322008-03-12 22:44:24 +000011585_ACEOF
11586cat >>$CONFIG_STATUS <<\_ACEOF
11587for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11589 case $ac_file in
11590 - | *:- | *:-:* ) # input from stdin
11591 cat >$tmp/stdin
11592 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11594 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11596 * ) ac_file_in=$ac_file.in ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011597 esac
11598
Benny Prijono0b462322008-03-12 22:44:24 +000011599 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11600 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011601$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11602 X"$ac_file" : 'X\(//\)[^/]' \| \
11603 X"$ac_file" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +000011604 X"$ac_file" : 'X\(/\)' \| \
11605 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011606echo X"$ac_file" |
Benny Prijono0b462322008-03-12 22:44:24 +000011607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11609 /^X\(\/\/\)$/{ s//\1/; q; }
11610 /^X\(\/\).*/{ s//\1/; q; }
11611 s/.*/./; q'`
11612 { if $as_mkdir_p; then
11613 mkdir -p "$ac_dir"
11614 else
11615 as_dir="$ac_dir"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011616 as_dirs=
Benny Prijono0b462322008-03-12 22:44:24 +000011617 while test ! -d "$as_dir"; do
11618 as_dirs="$as_dir $as_dirs"
11619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011620$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11621 X"$as_dir" : 'X\(//\)[^/]' \| \
11622 X"$as_dir" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +000011623 X"$as_dir" : 'X\(/\)' \| \
11624 . : '\(.\)' 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011625echo X"$as_dir" |
Benny Prijono0b462322008-03-12 22:44:24 +000011626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11628 /^X\(\/\/\)$/{ s//\1/; q; }
11629 /^X\(\/\).*/{ s//\1/; q; }
11630 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011631 done
Benny Prijono0b462322008-03-12 22:44:24 +000011632 test ! -n "$as_dirs" || mkdir $as_dirs
11633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11634echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011635 { (exit 1); exit 1; }; }; }
Benny Prijono0b462322008-03-12 22:44:24 +000011636
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011637 ac_builddir=.
11638
Benny Prijono0b462322008-03-12 22:44:24 +000011639if test "$ac_dir" != .; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijono0b462322008-03-12 22:44:24 +000011641 # A "../" for each directory in $ac_dir_suffix.
11642 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11643else
11644 ac_dir_suffix= ac_top_builddir=
11645fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011646
11647case $srcdir in
Benny Prijono0b462322008-03-12 22:44:24 +000011648 .) # No --srcdir option. We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011649 ac_srcdir=.
Benny Prijono0b462322008-03-12 22:44:24 +000011650 if test -z "$ac_top_builddir"; then
11651 ac_top_srcdir=.
11652 else
11653 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11654 fi ;;
11655 [\\/]* | ?:[\\/]* ) # Absolute path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011656 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijono0b462322008-03-12 22:44:24 +000011657 ac_top_srcdir=$srcdir ;;
11658 *) # Relative path.
11659 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11660 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011661esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011662
Benny Prijono0b462322008-03-12 22:44:24 +000011663# Do not use `cd foo && pwd` to compute absolute paths, because
11664# the directories may not exist.
11665case `pwd` in
11666.) ac_abs_builddir="$ac_dir";;
11667*)
11668 case "$ac_dir" in
11669 .) ac_abs_builddir=`pwd`;;
11670 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11671 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11672 esac;;
Benny Prijonofdafd402008-01-23 14:34:46 +000011673esac
Benny Prijono0b462322008-03-12 22:44:24 +000011674case $ac_abs_builddir in
11675.) ac_abs_top_builddir=${ac_top_builddir}.;;
11676*)
11677 case ${ac_top_builddir}. in
11678 .) ac_abs_top_builddir=$ac_abs_builddir;;
11679 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11680 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11681 esac;;
11682esac
11683case $ac_abs_builddir in
11684.) ac_abs_srcdir=$ac_srcdir;;
11685*)
11686 case $ac_srcdir in
11687 .) ac_abs_srcdir=$ac_abs_builddir;;
11688 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11689 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11690 esac;;
11691esac
11692case $ac_abs_builddir in
11693.) ac_abs_top_srcdir=$ac_top_srcdir;;
11694*)
11695 case $ac_top_srcdir in
11696 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11697 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11698 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11699 esac;;
11700esac
Benny Prijonofdafd402008-01-23 14:34:46 +000011701
Benny Prijono0b462322008-03-12 22:44:24 +000011702
11703
11704 if test x"$ac_file" != x-; then
11705 { echo "$as_me:$LINENO: creating $ac_file" >&5
11706echo "$as_me: creating $ac_file" >&6;}
11707 rm -f "$ac_file"
11708 fi
11709 # Let's still pretend it is `configure' which instantiates (i.e., don't
11710 # use $as_me), people would be surprised to read:
11711 # /* config.h. Generated by config.status. */
11712 if test x"$ac_file" = x-; then
11713 configure_input=
11714 else
11715 configure_input="$ac_file. "
11716 fi
11717 configure_input=$configure_input"Generated from `echo $ac_file_in |
11718 sed 's,.*/,,'` by configure."
11719
11720 # First look for the input files in the build tree, otherwise in the
11721 # src tree.
11722 ac_file_inputs=`IFS=:
11723 for f in $ac_file_in; do
11724 case $f in
11725 -) echo $tmp/stdin ;;
11726 [\\/$]*)
11727 # Absolute (can't be DOS-style, as IFS=:)
11728 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11729echo "$as_me: error: cannot find input file: $f" >&2;}
11730 { (exit 1); exit 1; }; }
11731 echo "$f";;
11732 *) # Relative
11733 if test -f "$f"; then
11734 # Build tree
11735 echo "$f"
11736 elif test -f "$srcdir/$f"; then
11737 # Source tree
11738 echo "$srcdir/$f"
11739 else
11740 # /dev/null tree
11741 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11742echo "$as_me: error: cannot find input file: $f" >&2;}
11743 { (exit 1); exit 1; }; }
11744 fi;;
11745 esac
11746 done` || { (exit 1); exit 1; }
11747_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011748cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011749 sed "$ac_vpsub
11750$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011751_ACEOF
11752cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011753:t
11754/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono0b462322008-03-12 22:44:24 +000011755s,@configure_input@,$configure_input,;t t
11756s,@srcdir@,$ac_srcdir,;t t
11757s,@abs_srcdir@,$ac_abs_srcdir,;t t
11758s,@top_srcdir@,$ac_top_srcdir,;t t
11759s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11760s,@builddir@,$ac_builddir,;t t
11761s,@abs_builddir@,$ac_abs_builddir,;t t
11762s,@top_builddir@,$ac_top_builddir,;t t
11763s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11764" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11765 rm -f $tmp/stdin
11766 if test x"$ac_file" != x-; then
11767 mv $tmp/out $ac_file
11768 else
11769 cat $tmp/out
11770 rm -f $tmp/out
11771 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011772
Benny Prijono0b462322008-03-12 22:44:24 +000011773done
11774_ACEOF
11775cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011776
Benny Prijono0b462322008-03-12 22:44:24 +000011777#
11778# CONFIG_HEADER section.
11779#
11780
11781# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11782# NAME is the cpp macro being defined and VALUE is the value it is being given.
11783#
11784# ac_d sets the value in "#define NAME VALUE" lines.
11785ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11786ac_dB='[ ].*$,\1#\2'
11787ac_dC=' '
11788ac_dD=',;t'
11789# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11790ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11791ac_uB='$,\1#\2define\3'
11792ac_uC=' '
11793ac_uD=',;t'
11794
11795for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011797 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +000011798 - | *:- | *:-:* ) # input from stdin
11799 cat >$tmp/stdin
11800 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11802 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11804 * ) ac_file_in=$ac_file.in ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011805 esac
Benny Prijono0b462322008-03-12 22:44:24 +000011806
11807 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11808echo "$as_me: creating $ac_file" >&6;}
11809
11810 # First look for the input files in the build tree, otherwise in the
11811 # src tree.
11812 ac_file_inputs=`IFS=:
11813 for f in $ac_file_in; do
11814 case $f in
11815 -) echo $tmp/stdin ;;
11816 [\\/$]*)
11817 # Absolute (can't be DOS-style, as IFS=:)
11818 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11819echo "$as_me: error: cannot find input file: $f" >&2;}
11820 { (exit 1); exit 1; }; }
11821 # Do quote $f, to prevent DOS paths from being IFS'd.
11822 echo "$f";;
11823 *) # Relative
11824 if test -f "$f"; then
11825 # Build tree
11826 echo "$f"
11827 elif test -f "$srcdir/$f"; then
11828 # Source tree
11829 echo "$srcdir/$f"
11830 else
11831 # /dev/null tree
11832 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11833echo "$as_me: error: cannot find input file: $f" >&2;}
11834 { (exit 1); exit 1; }; }
11835 fi;;
11836 esac
11837 done` || { (exit 1); exit 1; }
11838 # Remove the trailing spaces.
11839 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11840
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011841_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011842
Benny Prijono0b462322008-03-12 22:44:24 +000011843# Transform confdefs.h into two sed scripts, `conftest.defines' and
11844# `conftest.undefs', that substitutes the proper values into
11845# config.h.in to produce config.h. The first handles `#define'
11846# templates, and the second `#undef' templates.
11847# And first: Protect against being on the right side of a sed subst in
11848# config.status. Protect against being in an unquoted here document
11849# in config.status.
11850rm -f conftest.defines conftest.undefs
11851# Using a here document instead of a string reduces the quoting nightmare.
11852# Putting comments in sed scripts is not portable.
11853#
11854# `end' is used to avoid that the second main sed command (meant for
11855# 0-ary CPP macros) applies to n-ary macro definitions.
11856# See the Autoconf documentation for `clear'.
11857cat >confdef2sed.sed <<\_ACEOF
11858s/[\\&,]/\\&/g
11859s,[\\$`],\\&,g
11860t clear
11861: clear
11862s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11863t end
11864s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11865: end
11866_ACEOF
11867# If some macros were called several times there might be several times
11868# the same #defines, which is useless. Nevertheless, we may not want to
11869# sort them, since we want the *last* AC-DEFINE to be honored.
11870uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11871sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11872rm -f confdef2sed.sed
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011873
Benny Prijono0b462322008-03-12 22:44:24 +000011874# This sed command replaces #undef with comments. This is necessary, for
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011875# example, in the case of _POSIX_SOURCE, which is predefined and required
11876# on some systems where configure will not decide to define it.
Benny Prijono0b462322008-03-12 22:44:24 +000011877cat >>conftest.undefs <<\_ACEOF
11878s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Benny Prijonofdafd402008-01-23 14:34:46 +000011879_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011880
11881# Break up conftest.defines because some shells have a limit on the size
11882# of here documents, and old seds have small limits too (100 cmds).
11883echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11884echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11885echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11886echo ' :' >>$CONFIG_STATUS
11887rm -f conftest.tail
11888while grep . conftest.defines >/dev/null
11889do
11890 # Write a limited-size here document to $tmp/defines.sed.
11891 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11892 # Speed up: don't consider the non `#define' lines.
11893 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11894 # Work around the forget-to-reset-the-flag bug.
11895 echo 't clr' >>$CONFIG_STATUS
11896 echo ': clr' >>$CONFIG_STATUS
11897 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011898 echo 'CEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011899 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11900 rm -f $tmp/in
11901 mv $tmp/out $tmp/in
11902' >>$CONFIG_STATUS
11903 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011904 rm -f conftest.defines
11905 mv conftest.tail conftest.defines
11906done
Benny Prijono0b462322008-03-12 22:44:24 +000011907rm -f conftest.defines
11908echo ' fi # grep' >>$CONFIG_STATUS
11909echo >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011910
Benny Prijono0b462322008-03-12 22:44:24 +000011911# Break up conftest.undefs because some shells have a limit on the size
11912# of here documents, and old seds have small limits too (100 cmds).
11913echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11914rm -f conftest.tail
11915while grep . conftest.undefs >/dev/null
11916do
11917 # Write a limited-size here document to $tmp/undefs.sed.
11918 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11919 # Speed up: don't consider the non `#undef'
11920 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11921 # Work around the forget-to-reset-the-flag bug.
11922 echo 't clr' >>$CONFIG_STATUS
11923 echo ': clr' >>$CONFIG_STATUS
11924 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11925 echo 'CEOF
11926 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11927 rm -f $tmp/in
11928 mv $tmp/out $tmp/in
11929' >>$CONFIG_STATUS
11930 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11931 rm -f conftest.undefs
11932 mv conftest.tail conftest.undefs
11933done
11934rm -f conftest.undefs
11935
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011936cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011937 # Let's still pretend it is `configure' which instantiates (i.e., don't
11938 # use $as_me), people would be surprised to read:
11939 # /* config.h. Generated by config.status. */
11940 if test x"$ac_file" = x-; then
11941 echo "/* Generated by configure. */" >$tmp/config.h
11942 else
11943 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11944 fi
11945 cat $tmp/in >>$tmp/config.h
11946 rm -f $tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011947 if test x"$ac_file" != x-; then
Benny Prijono0b462322008-03-12 22:44:24 +000011948 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011949 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011950echo "$as_me: $ac_file is unchanged" >&6;}
11951 else
Benny Prijono0b462322008-03-12 22:44:24 +000011952 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11953$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11954 X"$ac_file" : 'X\(//\)[^/]' \| \
11955 X"$ac_file" : 'X\(//\)$' \| \
11956 X"$ac_file" : 'X\(/\)' \| \
11957 . : '\(.\)' 2>/dev/null ||
11958echo X"$ac_file" |
11959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11961 /^X\(\/\/\)$/{ s//\1/; q; }
11962 /^X\(\/\).*/{ s//\1/; q; }
11963 s/.*/./; q'`
11964 { if $as_mkdir_p; then
11965 mkdir -p "$ac_dir"
11966 else
11967 as_dir="$ac_dir"
11968 as_dirs=
11969 while test ! -d "$as_dir"; do
11970 as_dirs="$as_dir $as_dirs"
11971 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11972$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11973 X"$as_dir" : 'X\(//\)[^/]' \| \
11974 X"$as_dir" : 'X\(//\)$' \| \
11975 X"$as_dir" : 'X\(/\)' \| \
11976 . : '\(.\)' 2>/dev/null ||
11977echo X"$as_dir" |
11978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11980 /^X\(\/\/\)$/{ s//\1/; q; }
11981 /^X\(\/\).*/{ s//\1/; q; }
11982 s/.*/./; q'`
11983 done
11984 test ! -n "$as_dirs" || mkdir $as_dirs
11985 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11986echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11987 { (exit 1); exit 1; }; }; }
11988
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011989 rm -f $ac_file
Benny Prijono0b462322008-03-12 22:44:24 +000011990 mv $tmp/config.h $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011991 fi
11992 else
Benny Prijono0b462322008-03-12 22:44:24 +000011993 cat $tmp/config.h
11994 rm -f $tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011995 fi
Benny Prijono0b462322008-03-12 22:44:24 +000011996done
11997_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011998
Benny Prijono0b462322008-03-12 22:44:24 +000011999cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012000
12001{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012002_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012003chmod +x $CONFIG_STATUS
12004ac_clean_files=$ac_clean_files_save
12005
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012006
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012007# configure is writing to config.log, and then calls config.status.
12008# config.status does its own redirection, appending to config.log.
12009# Unfortunately, on DOS this fails, as config.log is still kept open
12010# by configure, so config.status won't be able to write to it; its
12011# output is simply discarded. So we exec the FD to /dev/null,
12012# effectively closing config.log, so it can be properly (re)opened and
12013# appended to by config.status. When coming back to configure, we
12014# need to make the FD available again.
12015if test "$no_create" != yes; then
12016 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012017 ac_config_status_args=
12018 test "$silent" = yes &&
12019 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012020 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012021 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012022 exec 5>>config.log
12023 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12024 # would make configure fail if this is the last instruction.
12025 $ac_cs_success || { (exit 1); exit 1; }
12026fi
12027
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012028
Benny Prijonod9627842007-04-18 09:24:31 +000012029
Benny Prijono0b462322008-03-12 22:44:24 +000012030echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000012031
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012032Configurations 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 +000012033
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012034Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012035 - 'user.mak'
12036 - 'pjlib/include/pj/config_site.h'
12037
12038The next step now is to run 'make dep' and 'make'.
12039" >&5
12040echo "${ECHO_T}
12041
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012042Configurations 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 +000012043
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012044Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012045 - 'user.mak'
12046 - 'pjlib/include/pj/config_site.h'
12047
12048The next step now is to run 'make dep' and 'make'.
Benny Prijono0b462322008-03-12 22:44:24 +000012049" >&6
Benny Prijonod9627842007-04-18 09:24:31 +000012050