blob: 7f628658dded58d6434a5fae7bd908b7e7b97068 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonob466e232006-09-10 08:53:59 +00003# Generated by Autoconf 2.52 for pjproject 0.5.8.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Benny Prijonob466e232006-09-10 08:53:59 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010# Avoid depending upon Character Ranges.
11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
16
Benny Prijonob466e232006-09-10 08:53:59 +000017# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000029fi
30
Benny Prijonob466e232006-09-10 08:53:59 +000031# Name of the executable.
32as_me=`echo "$0" |sed 's,.*[\\/],,'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +000033
34if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36else
37 as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53else
54 as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
Benny Prijonoa9b372a2006-07-24 02:07:11 +000058as_executable_p="test -f"
59
Benny Prijonob466e232006-09-10 08:53:59 +000060# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63else
64 as_unset=false
65fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000066
Benny Prijonob466e232006-09-10 08:53:59 +000067# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000076
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS=" $as_nl"
82
83# CDPATH.
Benny Prijonob466e232006-09-10 08:53:59 +000084$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000085
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
96ac_default_prefix=/usr/local
Benny Prijonoa9b372a2006-07-24 02:07:11 +000097cross_compiling=no
98subdirs=
Benny Prijonob466e232006-09-10 08:53:59 +000099MFLAGS= MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000100SHELL=${CONFIG_SHELL-/bin/sh}
101
102# Maximum number of lines to put in a shell here document.
103# This variable seems obsolete. It should probably be removed, and
104# only ac_max_sed_lines should be used.
105: ${ac_max_here_lines=38}
106
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000107# Initialize some variables set by options.
108ac_init_help=
109ac_init_version=false
110# The variables have the same names as the options, with
111# dashes changed to underlines.
112cache_file=/dev/null
113exec_prefix=NONE
114no_create=
115no_recursion=
116prefix=NONE
117program_prefix=NONE
118program_suffix=NONE
119program_transform_name=s,x,x,
120silent=
121site=
122srcdir=
123verbose=
124x_includes=NONE
125x_libraries=NONE
126
127# Installation directory options.
128# These are left unexpanded so users can "make install exec_prefix=/foo"
129# and all the variables that are supposed to be based on exec_prefix
130# by default will actually change.
131# Use braces instead of parens because sh, perl, etc. also accept them.
132bindir='${exec_prefix}/bin'
133sbindir='${exec_prefix}/sbin'
134libexecdir='${exec_prefix}/libexec'
135datadir='${prefix}/share'
136sysconfdir='${prefix}/etc'
137sharedstatedir='${prefix}/com'
138localstatedir='${prefix}/var'
139libdir='${exec_prefix}/lib'
140includedir='${prefix}/include'
141oldincludedir='/usr/include'
142infodir='${prefix}/info'
143mandir='${prefix}/man'
144
Benny Prijonob466e232006-09-10 08:53:59 +0000145# Identity of this package.
146PACKAGE_NAME='pjproject'
147PACKAGE_TARNAME='pjproject'
148PACKAGE_VERSION='0.5.8'
149PACKAGE_STRING='pjproject 0.5.8'
150PACKAGE_BUGREPORT=''
151
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000152ac_prev=
153for ac_option
154do
155 # If the previous option needs an argument, assign it.
156 if test -n "$ac_prev"; then
157 eval "$ac_prev=\$ac_option"
158 ac_prev=
159 continue
160 fi
161
162 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
163
164 # Accept the important Cygnus configure options, so we can diagnose typos.
165
166 case $ac_option in
167
168 -bindir | --bindir | --bindi | --bind | --bin | --bi)
169 ac_prev=bindir ;;
170 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
171 bindir=$ac_optarg ;;
172
173 -build | --build | --buil | --bui | --bu)
174 ac_prev=build_alias ;;
175 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
176 build_alias=$ac_optarg ;;
177
178 -cache-file | --cache-file | --cache-fil | --cache-fi \
179 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
180 ac_prev=cache_file ;;
181 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
182 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
183 cache_file=$ac_optarg ;;
184
185 --config-cache | -C)
186 cache_file=config.cache ;;
187
188 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
189 ac_prev=datadir ;;
190 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
191 | --da=*)
192 datadir=$ac_optarg ;;
193
194 -disable-* | --disable-*)
195 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
196 # Reject names that are not valid shell variable names.
197 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
198 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
199 { (exit 1); exit 1; }; }
200 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
201 eval "enable_$ac_feature=no" ;;
202
203 -enable-* | --enable-*)
204 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
205 # Reject names that are not valid shell variable names.
206 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
207 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
208 { (exit 1); exit 1; }; }
209 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
210 case $ac_option in
211 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
212 *) ac_optarg=yes ;;
213 esac
214 eval "enable_$ac_feature='$ac_optarg'" ;;
215
216 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
217 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
218 | --exec | --exe | --ex)
219 ac_prev=exec_prefix ;;
220 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
221 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
222 | --exec=* | --exe=* | --ex=*)
223 exec_prefix=$ac_optarg ;;
224
225 -gas | --gas | --ga | --g)
226 # Obsolete; use --with-gas.
227 with_gas=yes ;;
228
229 -help | --help | --hel | --he | -h)
230 ac_init_help=long ;;
231 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
232 ac_init_help=recursive ;;
233 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
234 ac_init_help=short ;;
235
236 -host | --host | --hos | --ho)
237 ac_prev=host_alias ;;
238 -host=* | --host=* | --hos=* | --ho=*)
239 host_alias=$ac_optarg ;;
240
241 -includedir | --includedir | --includedi | --included | --include \
242 | --includ | --inclu | --incl | --inc)
243 ac_prev=includedir ;;
244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
245 | --includ=* | --inclu=* | --incl=* | --inc=*)
246 includedir=$ac_optarg ;;
247
248 -infodir | --infodir | --infodi | --infod | --info | --inf)
249 ac_prev=infodir ;;
250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
251 infodir=$ac_optarg ;;
252
253 -libdir | --libdir | --libdi | --libd)
254 ac_prev=libdir ;;
255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
256 libdir=$ac_optarg ;;
257
258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
259 | --libexe | --libex | --libe)
260 ac_prev=libexecdir ;;
261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
262 | --libexe=* | --libex=* | --libe=*)
263 libexecdir=$ac_optarg ;;
264
265 -localstatedir | --localstatedir | --localstatedi | --localstated \
266 | --localstate | --localstat | --localsta | --localst \
267 | --locals | --local | --loca | --loc | --lo)
268 ac_prev=localstatedir ;;
269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
270 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
271 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
272 localstatedir=$ac_optarg ;;
273
274 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275 ac_prev=mandir ;;
276 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
277 mandir=$ac_optarg ;;
278
279 -nfp | --nfp | --nf)
280 # Obsolete; use --without-fp.
281 with_fp=no ;;
282
283 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijonob466e232006-09-10 08:53:59 +0000284 | --no-cr | --no-c)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000285 no_create=yes ;;
286
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 no_recursion=yes ;;
290
291 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
292 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
293 | --oldin | --oldi | --old | --ol | --o)
294 ac_prev=oldincludedir ;;
295 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
296 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
297 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
298 oldincludedir=$ac_optarg ;;
299
300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301 ac_prev=prefix ;;
302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
303 prefix=$ac_optarg ;;
304
305 -program-prefix | --program-prefix | --program-prefi | --program-pref \
306 | --program-pre | --program-pr | --program-p)
307 ac_prev=program_prefix ;;
308 -program-prefix=* | --program-prefix=* | --program-prefi=* \
309 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
310 program_prefix=$ac_optarg ;;
311
312 -program-suffix | --program-suffix | --program-suffi | --program-suff \
313 | --program-suf | --program-su | --program-s)
314 ac_prev=program_suffix ;;
315 -program-suffix=* | --program-suffix=* | --program-suffi=* \
316 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
317 program_suffix=$ac_optarg ;;
318
319 -program-transform-name | --program-transform-name \
320 | --program-transform-nam | --program-transform-na \
321 | --program-transform-n | --program-transform- \
322 | --program-transform | --program-transfor \
323 | --program-transfo | --program-transf \
324 | --program-trans | --program-tran \
325 | --progr-tra | --program-tr | --program-t)
326 ac_prev=program_transform_name ;;
327 -program-transform-name=* | --program-transform-name=* \
328 | --program-transform-nam=* | --program-transform-na=* \
329 | --program-transform-n=* | --program-transform-=* \
330 | --program-transform=* | --program-transfor=* \
331 | --program-transfo=* | --program-transf=* \
332 | --program-trans=* | --program-tran=* \
333 | --progr-tra=* | --program-tr=* | --program-t=*)
334 program_transform_name=$ac_optarg ;;
335
336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
337 | -silent | --silent | --silen | --sile | --sil)
338 silent=yes ;;
339
340 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341 ac_prev=sbindir ;;
342 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343 | --sbi=* | --sb=*)
344 sbindir=$ac_optarg ;;
345
346 -sharedstatedir | --sharedstatedir | --sharedstatedi \
347 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
348 | --sharedst | --shareds | --shared | --share | --shar \
349 | --sha | --sh)
350 ac_prev=sharedstatedir ;;
351 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
352 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
353 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354 | --sha=* | --sh=*)
355 sharedstatedir=$ac_optarg ;;
356
357 -site | --site | --sit)
358 ac_prev=site ;;
359 -site=* | --site=* | --sit=*)
360 site=$ac_optarg ;;
361
362 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363 ac_prev=srcdir ;;
364 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
365 srcdir=$ac_optarg ;;
366
367 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
368 | --syscon | --sysco | --sysc | --sys | --sy)
369 ac_prev=sysconfdir ;;
370 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
371 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
372 sysconfdir=$ac_optarg ;;
373
374 -target | --target | --targe | --targ | --tar | --ta | --t)
375 ac_prev=target_alias ;;
376 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
377 target_alias=$ac_optarg ;;
378
379 -v | -verbose | --verbose | --verbos | --verbo | --verb)
380 verbose=yes ;;
381
382 -version | --version | --versio | --versi | --vers | -V)
383 ac_init_version=: ;;
384
385 -with-* | --with-*)
386 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid package name: $ac_package" >&2
390 { (exit 1); exit 1; }; }
391 ac_package=`echo $ac_package| sed 's/-/_/g'`
392 case $ac_option in
393 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
394 *) ac_optarg=yes ;;
395 esac
396 eval "with_$ac_package='$ac_optarg'" ;;
397
398 -without-* | --without-*)
399 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid package name: $ac_package" >&2
403 { (exit 1); exit 1; }; }
404 ac_package=`echo $ac_package | sed 's/-/_/g'`
405 eval "with_$ac_package=no" ;;
406
407 --x)
408 # Obsolete; use --with-x.
409 with_x=yes ;;
410
411 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412 | --x-incl | --x-inc | --x-in | --x-i)
413 ac_prev=x_includes ;;
414 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416 x_includes=$ac_optarg ;;
417
418 -x-libraries | --x-libraries | --x-librarie | --x-librari \
419 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420 ac_prev=x_libraries ;;
421 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423 x_libraries=$ac_optarg ;;
424
425 -*) { echo "$as_me: error: unrecognized option: $ac_option
426Try \`$0 --help' for more information." >&2
427 { (exit 1); exit 1; }; }
428 ;;
429
430 *=*)
431 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
432 # Reject names that are not valid shell variable names.
433 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
434 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
435 { (exit 1); exit 1; }; }
436 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
437 eval "$ac_envvar='$ac_optarg'"
438 export $ac_envvar ;;
439
440 *)
441 # FIXME: should be removed in autoconf 3.0.
442 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
443 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
444 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
445 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
446 ;;
447
448 esac
449done
450
451if test -n "$ac_prev"; then
452 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
453 { echo "$as_me: error: missing argument to $ac_option" >&2
454 { (exit 1); exit 1; }; }
455fi
456
457# Be sure to have absolute paths.
458for ac_var in exec_prefix prefix
459do
460 eval ac_val=$`echo $ac_var`
461 case $ac_val in
462 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Benny Prijonob466e232006-09-10 08:53:59 +0000463 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000464 { (exit 1); exit 1; }; };;
465 esac
466done
467
468# Be sure to have absolute paths.
469for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Benny Prijonob466e232006-09-10 08:53:59 +0000470 localstatedir libdir includedir oldincludedir infodir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000471do
472 eval ac_val=$`echo $ac_var`
473 case $ac_val in
474 [\\/$]* | ?:[\\/]* ) ;;
Benny Prijonob466e232006-09-10 08:53:59 +0000475 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000476 { (exit 1); exit 1; }; };;
477 esac
478done
479
480# There might be people who depend on the old broken behavior: `$host'
481# used to hold the argument of --host etc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000482build=$build_alias
483host=$host_alias
484target=$target_alias
485
Benny Prijonob466e232006-09-10 08:53:59 +0000486# FIXME: should be removed in autoconf 3.0.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000487if test "x$host_alias" != x; then
488 if test "x$build_alias" = x; then
489 cross_compiling=maybe
490 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
491 If a cross compiler is detected then cross compile mode will be used." >&2
492 elif test "x$build_alias" != "x$host_alias"; then
493 cross_compiling=yes
494 fi
495fi
496
497ac_tool_prefix=
498test -n "$host_alias" && ac_tool_prefix=$host_alias-
499
500test "$silent" = yes && exec 6>/dev/null
501
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000502# Find the source files, if location was not specified.
503if test -z "$srcdir"; then
504 ac_srcdir_defaulted=yes
505 # Try the directory containing this script, then its parent.
Benny Prijonob466e232006-09-10 08:53:59 +0000506 ac_prog=$0
507 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000509 srcdir=$ac_confdir
510 if test ! -r $srcdir/$ac_unique_file; then
511 srcdir=..
512 fi
513else
514 ac_srcdir_defaulted=no
515fi
516if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +0000518 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000519 { (exit 1); exit 1; }; }
520 else
Benny Prijonob466e232006-09-10 08:53:59 +0000521 { echo "$as_me: error: cannot find sources in $srcdir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000522 { (exit 1); exit 1; }; }
523 fi
524fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000525srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
526ac_env_build_alias_set=${build_alias+set}
527ac_env_build_alias_value=$build_alias
528ac_cv_env_build_alias_set=${build_alias+set}
529ac_cv_env_build_alias_value=$build_alias
530ac_env_host_alias_set=${host_alias+set}
531ac_env_host_alias_value=$host_alias
532ac_cv_env_host_alias_set=${host_alias+set}
533ac_cv_env_host_alias_value=$host_alias
534ac_env_target_alias_set=${target_alias+set}
535ac_env_target_alias_value=$target_alias
536ac_cv_env_target_alias_set=${target_alias+set}
537ac_cv_env_target_alias_value=$target_alias
538ac_env_CC_set=${CC+set}
539ac_env_CC_value=$CC
540ac_cv_env_CC_set=${CC+set}
541ac_cv_env_CC_value=$CC
542ac_env_CFLAGS_set=${CFLAGS+set}
543ac_env_CFLAGS_value=$CFLAGS
544ac_cv_env_CFLAGS_set=${CFLAGS+set}
545ac_cv_env_CFLAGS_value=$CFLAGS
546ac_env_LDFLAGS_set=${LDFLAGS+set}
547ac_env_LDFLAGS_value=$LDFLAGS
548ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
549ac_cv_env_LDFLAGS_value=$LDFLAGS
550ac_env_CPPFLAGS_set=${CPPFLAGS+set}
551ac_env_CPPFLAGS_value=$CPPFLAGS
552ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
553ac_cv_env_CPPFLAGS_value=$CPPFLAGS
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000554ac_env_CXX_set=${CXX+set}
555ac_env_CXX_value=$CXX
556ac_cv_env_CXX_set=${CXX+set}
557ac_cv_env_CXX_value=$CXX
558ac_env_CXXFLAGS_set=${CXXFLAGS+set}
559ac_env_CXXFLAGS_value=$CXXFLAGS
560ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
561ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000562ac_env_CPP_set=${CPP+set}
563ac_env_CPP_value=$CPP
564ac_cv_env_CPP_set=${CPP+set}
565ac_cv_env_CPP_value=$CPP
566
567#
568# Report the --help message.
569#
570if test "$ac_init_help" = "long"; then
571 # Omit some internal or obsolete options to make the list less imposing.
572 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijonob466e232006-09-10 08:53:59 +0000573 cat <<EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000574\`configure' configures pjproject 0.5.8 to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000575
576Usage: $0 [OPTION]... [VAR=VALUE]...
577
578To assign environment variables (e.g., CC, CFLAGS...), specify them as
579VAR=VALUE. See below for descriptions of some of the useful variables.
580
581Defaults for the options are specified in brackets.
582
583Configuration:
584 -h, --help display this help and exit
585 --help=short display options specific to this package
586 --help=recursive display the short help of all the included packages
587 -V, --version display version information and exit
588 -q, --quiet, --silent do not print \`checking...' messages
589 --cache-file=FILE cache test results in FILE [disabled]
590 -C, --config-cache alias for \`--cache-file=config.cache'
591 -n, --no-create do not create output files
592 --srcdir=DIR find the sources in DIR [configure dir or \`..']
593
Benny Prijonob466e232006-09-10 08:53:59 +0000594EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000595
Benny Prijonob466e232006-09-10 08:53:59 +0000596 cat <<EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000597Installation directories:
598 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijonob466e232006-09-10 08:53:59 +0000599 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000600 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijonob466e232006-09-10 08:53:59 +0000601 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000602
603By default, \`make install' will install all the files in
604\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
605an installation prefix other than \`$ac_default_prefix' using \`--prefix',
606for instance \`--prefix=\$HOME'.
607
608For better control, use the options below.
609
610Fine tuning of the installation directories:
611 --bindir=DIR user executables [EPREFIX/bin]
612 --sbindir=DIR system admin executables [EPREFIX/sbin]
613 --libexecdir=DIR program executables [EPREFIX/libexec]
614 --datadir=DIR read-only architecture-independent data [PREFIX/share]
615 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
616 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
617 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
618 --libdir=DIR object code libraries [EPREFIX/lib]
619 --includedir=DIR C header files [PREFIX/include]
620 --oldincludedir=DIR C header files for non-gcc [/usr/include]
621 --infodir=DIR info documentation [PREFIX/info]
622 --mandir=DIR man documentation [PREFIX/man]
Benny Prijonob466e232006-09-10 08:53:59 +0000623EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000624
Benny Prijonob466e232006-09-10 08:53:59 +0000625 cat <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000626
627System types:
628 --build=BUILD configure for building on BUILD [guessed]
Benny Prijonob466e232006-09-10 08:53:59 +0000629 --host=HOST build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000630 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijonob466e232006-09-10 08:53:59 +0000631EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000632fi
633
634if test -n "$ac_init_help"; then
635 case $ac_init_help in
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000636 short | recursive ) echo "Configuration of pjproject 0.5.8:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000637 esac
Benny Prijonob466e232006-09-10 08:53:59 +0000638 cat <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000639
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000640Optional Features:
641 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
642 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
643 --disable-floating-point
644 Disable floating point where possible
645 --disable-small-filter Exclude small filter in resampling
646 --disable-large-filter Exclude large filter in resampling
647 --disable-g711-plc Exclude G.711 Annex A PLC
648 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
649 --disable-g711-codec Exclude G.711 codecs from the build
650 --disable-l16-codec Exclude Linear/L16 codec family from the build
651 --disable-gsm-codec Exclude GSM codec in the build
652 --disable-speex-codec Exclude Speex codecs in the build
653 --disable-ilbc-codec Exclude iLBC codec in the build
654
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000655Some influential environment variables:
656 CC C compiler command
657 CFLAGS C compiler flags
658 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
659 nonstandard directory <lib dir>
660 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
661 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000662 CXX C++ compiler command
663 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000664 CPP C preprocessor
665
666Use these variables to override the choices made by `configure' or to help
667it to find libraries and programs with nonstandard names/locations.
668
Benny Prijonob466e232006-09-10 08:53:59 +0000669EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000670fi
671
672if test "$ac_init_help" = "recursive"; then
673 # If there are subdirs, report their specific --help.
674 ac_popdir=`pwd`
Benny Prijonob466e232006-09-10 08:53:59 +0000675 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
676 cd $ac_subdir
677 # A "../" for each directory in /$ac_subdir.
678 ac_dots=`echo $ac_subdir |
679 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000680
Benny Prijonob466e232006-09-10 08:53:59 +0000681 case $srcdir in
682 .) # No --srcdir option. We are building in place.
683 ac_sub_srcdir=$srcdir ;;
684 [\\/]* | ?:[\\/]* ) # Absolute path.
685 ac_sub_srcdir=$srcdir/$ac_subdir ;;
686 *) # Relative path.
687 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
688 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000689
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000690 # Check for guested configure; otherwise get Cygnus style configure.
Benny Prijonob466e232006-09-10 08:53:59 +0000691 if test -f $ac_sub_srcdir/configure.gnu; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000692 echo
Benny Prijonob466e232006-09-10 08:53:59 +0000693 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
694 elif test -f $ac_sub_srcdir/configure; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000695 echo
Benny Prijonob466e232006-09-10 08:53:59 +0000696 $SHELL $ac_sub_srcdir/configure --help=recursive
697 elif test -f $ac_sub_srcdir/configure.ac ||
698 test -f $ac_sub_srcdir/configure.in; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000699 echo
700 $ac_configure --help
701 else
Benny Prijonob466e232006-09-10 08:53:59 +0000702 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000703 fi
704 cd $ac_popdir
705 done
706fi
707
708test -n "$ac_init_help" && exit 0
709if $ac_init_version; then
Benny Prijonob466e232006-09-10 08:53:59 +0000710 cat <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000711pjproject configure 0.5.8
Benny Prijonob466e232006-09-10 08:53:59 +0000712generated by GNU Autoconf 2.52
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000713
Benny Prijonob466e232006-09-10 08:53:59 +0000714Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
715Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000716This configure script is free software; the Free Software Foundation
717gives unlimited permission to copy, distribute and modify it.
Benny Prijonob466e232006-09-10 08:53:59 +0000718EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000719 exit 0
720fi
721exec 5>config.log
Benny Prijonob466e232006-09-10 08:53:59 +0000722cat >&5 <<EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000723This file contains any messages produced by compilers while
724running configure, to aid debugging if configure makes a mistake.
725
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000726It was created by pjproject $as_me 0.5.8, which was
Benny Prijonob466e232006-09-10 08:53:59 +0000727generated by GNU Autoconf 2.52. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000728
729 $ $0 $@
730
Benny Prijonob466e232006-09-10 08:53:59 +0000731EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000732{
733cat <<_ASUNAME
Benny Prijonob466e232006-09-10 08:53:59 +0000734## ---------- ##
735## Platform. ##
736## ---------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000737
738hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
739uname -m = `(uname -m) 2>/dev/null || echo unknown`
740uname -r = `(uname -r) 2>/dev/null || echo unknown`
741uname -s = `(uname -s) 2>/dev/null || echo unknown`
742uname -v = `(uname -v) 2>/dev/null || echo unknown`
743
744/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
745/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
746
747/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
748/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
749/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
750hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
751/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
752/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
753/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
754
Benny Prijonob466e232006-09-10 08:53:59 +0000755PATH = $PATH
756
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000757_ASUNAME
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000758} >&5
759
Benny Prijonob466e232006-09-10 08:53:59 +0000760cat >&5 <<EOF
761## ------------ ##
762## Core tests. ##
763## ------------ ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000764
Benny Prijonob466e232006-09-10 08:53:59 +0000765EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000766
767# Keep a trace of the command line.
768# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000769# Also quote any args containing shell meta-characters.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000770ac_configure_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000771ac_sep=
Benny Prijonob466e232006-09-10 08:53:59 +0000772for ac_arg
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000773do
Benny Prijonob466e232006-09-10 08:53:59 +0000774 case $ac_arg in
775 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
776 | --no-cr | --no-c) ;;
777 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
778 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
779 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
780 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
781 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
782 ac_sep=" " ;;
783 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
784 ac_sep=" " ;;
785 esac
786 # Get rid of the leading space.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000787done
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000788
789# When interrupted or exit'd, cleanup temporary files, and complete
790# config.log. We remove comments because anyway the quotes in there
791# would cause problems or look ugly.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000792trap 'exit_status=$?
793 # Save into config.log some information that might help in debugging.
Benny Prijonob466e232006-09-10 08:53:59 +0000794 echo >&5
795 echo "## ----------------- ##" >&5
796 echo "## Cache variables. ##" >&5
797 echo "## ----------------- ##" >&5
798 echo >&5
799 # The following way of writing the cache mishandles newlines in values,
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000800{
801 (set) 2>&1 |
802 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
803 *ac_space=\ *)
804 sed -n \
Benny Prijonob466e232006-09-10 08:53:59 +0000805 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000807 ;;
808 *)
809 sed -n \
Benny Prijonob466e232006-09-10 08:53:59 +0000810 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000811 ;;
812 esac;
Benny Prijonob466e232006-09-10 08:53:59 +0000813} >&5
814 sed "/^$/d" confdefs.h >conftest.log
815 if test -s conftest.log; then
816 echo >&5
817 echo "## ------------ ##" >&5
818 echo "## confdefs.h. ##" >&5
819 echo "## ------------ ##" >&5
820 echo >&5
821 cat conftest.log >&5
822 fi
823 (echo; echo) >&5
824 test "$ac_signal" != 0 &&
825 echo "$as_me: caught signal $ac_signal" >&5
826 echo "$as_me: exit $exit_status" >&5
827 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000828 exit $exit_status
829 ' 0
830for ac_signal in 1 2 13 15; do
831 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
832done
833ac_signal=0
834
835# confdefs.h avoids OS command line length limits that DEFS can exceed.
836rm -rf conftest* confdefs.h
837# AIX cpp loses on an empty file, so make sure it contains at least a newline.
838echo >confdefs.h
839
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000840# Let the site file select an alternate cache file if it wants to.
841# Prefer explicitly selected file to automatically selected ones.
842if test -z "$CONFIG_SITE"; then
843 if test "x$prefix" != xNONE; then
844 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
845 else
846 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
847 fi
848fi
849for ac_site_file in $CONFIG_SITE; do
850 if test -r "$ac_site_file"; then
Benny Prijonob466e232006-09-10 08:53:59 +0000851 { echo "$as_me:851: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000852echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijonob466e232006-09-10 08:53:59 +0000853 cat "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000854 . "$ac_site_file"
855 fi
856done
857
858if test -r "$cache_file"; then
859 # Some versions of bash will fail to source /dev/null (special
860 # files actually), so we avoid doing that.
861 if test -f "$cache_file"; then
Benny Prijonob466e232006-09-10 08:53:59 +0000862 { echo "$as_me:862: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000863echo "$as_me: loading cache $cache_file" >&6;}
864 case $cache_file in
865 [\\/]* | ?:[\\/]* ) . $cache_file;;
866 *) . ./$cache_file;;
867 esac
868 fi
869else
Benny Prijonob466e232006-09-10 08:53:59 +0000870 { echo "$as_me:870: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000871echo "$as_me: creating cache $cache_file" >&6;}
872 >$cache_file
873fi
874
875# Check that the precious variables saved in the cache have kept the same
876# value.
877ac_cache_corrupted=false
878for ac_var in `(set) 2>&1 |
Benny Prijonob466e232006-09-10 08:53:59 +0000879 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
881 eval ac_new_set=\$ac_env_${ac_var}_set
882 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
883 eval ac_new_val="\$ac_env_${ac_var}_value"
884 case $ac_old_set,$ac_new_set in
885 set,)
Benny Prijonob466e232006-09-10 08:53:59 +0000886 { echo "$as_me:886: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000887echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
888 ac_cache_corrupted=: ;;
889 ,set)
Benny Prijonob466e232006-09-10 08:53:59 +0000890 { echo "$as_me:890: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000891echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
892 ac_cache_corrupted=: ;;
893 ,);;
894 *)
895 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijonob466e232006-09-10 08:53:59 +0000896 { echo "$as_me:896: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000897echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijonob466e232006-09-10 08:53:59 +0000898 { echo "$as_me:898: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000899echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijonob466e232006-09-10 08:53:59 +0000900 { echo "$as_me:900: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000901echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijonob466e232006-09-10 08:53:59 +0000902 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000903 fi;;
904 esac
Benny Prijonob466e232006-09-10 08:53:59 +0000905 # Pass precious variables to config.status. It doesn't matter if
906 # we pass some twice (in addition to the command line arguments).
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000907 if test "$ac_new_set" = set; then
908 case $ac_new_val in
909 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijonob466e232006-09-10 08:53:59 +0000910 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
911 ac_configure_args="$ac_configure_args '$ac_arg'"
912 ;;
913 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
914 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000915 esac
916 fi
917done
918if $ac_cache_corrupted; then
Benny Prijonob466e232006-09-10 08:53:59 +0000919 { echo "$as_me:919: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000920echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijonob466e232006-09-10 08:53:59 +0000921 { { echo "$as_me:921: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000922echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
923 { (exit 1); exit 1; }; }
924fi
925
926ac_ext=c
927ac_cpp='$CPP $CPPFLAGS'
928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
930ac_compiler_gnu=$ac_cv_c_compiler_gnu
931
Benny Prijonob466e232006-09-10 08:53:59 +0000932case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
933 *c*,-n*) ECHO_N= ECHO_C='
934' ECHO_T=' ' ;;
935 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
936 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
937esac
938echo "#! $SHELL" >conftest.sh
939echo "exit 0" >>conftest.sh
940chmod +x conftest.sh
941if { (echo "$as_me:941: PATH=\".;.\"; conftest.sh") >&5
942 (PATH=".;."; conftest.sh) 2>&5
943 ac_status=$?
944 echo "$as_me:944: \$? = $ac_status" >&5
945 (exit $ac_status); }; then
946 ac_path_separator=';'
947else
948 ac_path_separator=:
949fi
950PATH_SEPARATOR="$ac_path_separator"
951rm -f conftest.sh
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000952
953ac_aux_dir=
954for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
955 if test -f $ac_dir/install-sh; then
956 ac_aux_dir=$ac_dir
957 ac_install_sh="$ac_aux_dir/install-sh -c"
958 break
959 elif test -f $ac_dir/install.sh; then
960 ac_aux_dir=$ac_dir
961 ac_install_sh="$ac_aux_dir/install.sh -c"
962 break
963 elif test -f $ac_dir/shtool; then
964 ac_aux_dir=$ac_dir
965 ac_install_sh="$ac_aux_dir/shtool install -c"
966 break
967 fi
968done
969if test -z "$ac_aux_dir"; then
Benny Prijonob466e232006-09-10 08:53:59 +0000970 { { echo "$as_me:970: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000971echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
972 { (exit 1); exit 1; }; }
973fi
974ac_config_guess="$SHELL $ac_aux_dir/config.guess"
975ac_config_sub="$SHELL $ac_aux_dir/config.sub"
976ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
977
978# Make sure we can run config.sub.
979$ac_config_sub sun4 >/dev/null 2>&1 ||
Benny Prijonob466e232006-09-10 08:53:59 +0000980 { { echo "$as_me:980: error: cannot run $ac_config_sub" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000981echo "$as_me: error: cannot run $ac_config_sub" >&2;}
982 { (exit 1); exit 1; }; }
983
Benny Prijonob466e232006-09-10 08:53:59 +0000984echo "$as_me:984: checking build system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000985echo $ECHO_N "checking build system type... $ECHO_C" >&6
986if test "${ac_cv_build+set}" = set; then
987 echo $ECHO_N "(cached) $ECHO_C" >&6
988else
989 ac_cv_build_alias=$build_alias
990test -z "$ac_cv_build_alias" &&
991 ac_cv_build_alias=`$ac_config_guess`
992test -z "$ac_cv_build_alias" &&
Benny Prijonob466e232006-09-10 08:53:59 +0000993 { { echo "$as_me:993: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000994echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
995 { (exit 1); exit 1; }; }
996ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Benny Prijonob466e232006-09-10 08:53:59 +0000997 { { echo "$as_me:997: error: $ac_config_sub $ac_cv_build_alias failed." >&5
998echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000999 { (exit 1); exit 1; }; }
1000
1001fi
Benny Prijonob466e232006-09-10 08:53:59 +00001002echo "$as_me:1002: result: $ac_cv_build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001003echo "${ECHO_T}$ac_cv_build" >&6
1004build=$ac_cv_build
1005build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1006build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1007build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1008
Benny Prijonob466e232006-09-10 08:53:59 +00001009echo "$as_me:1009: checking host system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001010echo $ECHO_N "checking host system type... $ECHO_C" >&6
1011if test "${ac_cv_host+set}" = set; then
1012 echo $ECHO_N "(cached) $ECHO_C" >&6
1013else
1014 ac_cv_host_alias=$host_alias
1015test -z "$ac_cv_host_alias" &&
1016 ac_cv_host_alias=$ac_cv_build_alias
1017ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Benny Prijonob466e232006-09-10 08:53:59 +00001018 { { echo "$as_me:1018: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001019echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1020 { (exit 1); exit 1; }; }
1021
1022fi
Benny Prijonob466e232006-09-10 08:53:59 +00001023echo "$as_me:1023: result: $ac_cv_host" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001024echo "${ECHO_T}$ac_cv_host" >&6
1025host=$ac_cv_host
1026host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1027host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1028host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1029
Benny Prijonob466e232006-09-10 08:53:59 +00001030echo "$as_me:1030: checking target system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001031echo $ECHO_N "checking target system type... $ECHO_C" >&6
1032if test "${ac_cv_target+set}" = set; then
1033 echo $ECHO_N "(cached) $ECHO_C" >&6
1034else
1035 ac_cv_target_alias=$target_alias
1036test "x$ac_cv_target_alias" = "x" &&
1037 ac_cv_target_alias=$ac_cv_host_alias
1038ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
Benny Prijonob466e232006-09-10 08:53:59 +00001039 { { echo "$as_me:1039: error: $ac_config_sub $ac_cv_target_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001040echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1041 { (exit 1); exit 1; }; }
1042
1043fi
Benny Prijonob466e232006-09-10 08:53:59 +00001044echo "$as_me:1044: result: $ac_cv_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001045echo "${ECHO_T}$ac_cv_target" >&6
1046target=$ac_cv_target
1047target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001051# The aliases save the names the user supplied, while $host etc.
1052# will get canonicalized.
1053test -n "$target_alias" &&
1054 test "$program_prefix$program_suffix$program_transform_name" = \
1055 NONENONEs,x,x, &&
1056 program_prefix=${target_alias}-
Benny Prijonob466e232006-09-10 08:53:59 +00001057ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001058
Benny Prijonob466e232006-09-10 08:53:59 +00001059ac_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"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001060
1061ac_ext=c
1062ac_cpp='$CPP $CPPFLAGS'
1063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1065ac_compiler_gnu=$ac_cv_c_compiler_gnu
1066if test -n "$ac_tool_prefix"; then
1067 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1068set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijonob466e232006-09-10 08:53:59 +00001069echo "$as_me:1069: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1071if test "${ac_cv_prog_CC+set}" = set; then
1072 echo $ECHO_N "(cached) $ECHO_C" >&6
1073else
1074 if test -n "$CC"; then
1075 ac_cv_prog_CC="$CC" # Let the user override the test.
1076else
Benny Prijonob466e232006-09-10 08:53:59 +00001077 ac_save_IFS=$IFS; IFS=$ac_path_separator
1078ac_dummy="$PATH"
1079for ac_dir in $ac_dummy; do
1080 IFS=$ac_save_IFS
1081 test -z "$ac_dir" && ac_dir=.
1082 $as_executable_p "$ac_dir/$ac_word" || continue
1083ac_cv_prog_CC="${ac_tool_prefix}gcc"
1084echo "$as_me:1084: found $ac_dir/$ac_word" >&5
1085break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001086done
1087
1088fi
1089fi
1090CC=$ac_cv_prog_CC
1091if test -n "$CC"; then
Benny Prijonob466e232006-09-10 08:53:59 +00001092 echo "$as_me:1092: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001093echo "${ECHO_T}$CC" >&6
1094else
Benny Prijonob466e232006-09-10 08:53:59 +00001095 echo "$as_me:1095: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001096echo "${ECHO_T}no" >&6
1097fi
1098
1099fi
1100if test -z "$ac_cv_prog_CC"; then
1101 ac_ct_CC=$CC
1102 # Extract the first word of "gcc", so it can be a program name with args.
1103set dummy gcc; ac_word=$2
Benny Prijonob466e232006-09-10 08:53:59 +00001104echo "$as_me:1104: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1106if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1107 echo $ECHO_N "(cached) $ECHO_C" >&6
1108else
1109 if test -n "$ac_ct_CC"; then
1110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1111else
Benny Prijonob466e232006-09-10 08:53:59 +00001112 ac_save_IFS=$IFS; IFS=$ac_path_separator
1113ac_dummy="$PATH"
1114for ac_dir in $ac_dummy; do
1115 IFS=$ac_save_IFS
1116 test -z "$ac_dir" && ac_dir=.
1117 $as_executable_p "$ac_dir/$ac_word" || continue
1118ac_cv_prog_ac_ct_CC="gcc"
1119echo "$as_me:1119: found $ac_dir/$ac_word" >&5
1120break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001121done
1122
1123fi
1124fi
1125ac_ct_CC=$ac_cv_prog_ac_ct_CC
1126if test -n "$ac_ct_CC"; then
Benny Prijonob466e232006-09-10 08:53:59 +00001127 echo "$as_me:1127: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001128echo "${ECHO_T}$ac_ct_CC" >&6
1129else
Benny Prijonob466e232006-09-10 08:53:59 +00001130 echo "$as_me:1130: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001131echo "${ECHO_T}no" >&6
1132fi
1133
1134 CC=$ac_ct_CC
1135else
1136 CC="$ac_cv_prog_CC"
1137fi
1138
1139if test -z "$CC"; then
1140 if test -n "$ac_tool_prefix"; then
1141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1142set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijonob466e232006-09-10 08:53:59 +00001143echo "$as_me:1143: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1145if test "${ac_cv_prog_CC+set}" = set; then
1146 echo $ECHO_N "(cached) $ECHO_C" >&6
1147else
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC="$CC" # Let the user override the test.
1150else
Benny Prijonob466e232006-09-10 08:53:59 +00001151 ac_save_IFS=$IFS; IFS=$ac_path_separator
1152ac_dummy="$PATH"
1153for ac_dir in $ac_dummy; do
1154 IFS=$ac_save_IFS
1155 test -z "$ac_dir" && ac_dir=.
1156 $as_executable_p "$ac_dir/$ac_word" || continue
1157ac_cv_prog_CC="${ac_tool_prefix}cc"
1158echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1159break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001160done
1161
1162fi
1163fi
1164CC=$ac_cv_prog_CC
1165if test -n "$CC"; then
Benny Prijonob466e232006-09-10 08:53:59 +00001166 echo "$as_me:1166: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001167echo "${ECHO_T}$CC" >&6
1168else
Benny Prijonob466e232006-09-10 08:53:59 +00001169 echo "$as_me:1169: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001170echo "${ECHO_T}no" >&6
1171fi
1172
1173fi
1174if test -z "$ac_cv_prog_CC"; then
1175 ac_ct_CC=$CC
1176 # Extract the first word of "cc", so it can be a program name with args.
1177set dummy cc; ac_word=$2
Benny Prijonob466e232006-09-10 08:53:59 +00001178echo "$as_me:1178: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1180if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1181 echo $ECHO_N "(cached) $ECHO_C" >&6
1182else
1183 if test -n "$ac_ct_CC"; then
1184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1185else
Benny Prijonob466e232006-09-10 08:53:59 +00001186 ac_save_IFS=$IFS; IFS=$ac_path_separator
1187ac_dummy="$PATH"
1188for ac_dir in $ac_dummy; do
1189 IFS=$ac_save_IFS
1190 test -z "$ac_dir" && ac_dir=.
1191 $as_executable_p "$ac_dir/$ac_word" || continue
1192ac_cv_prog_ac_ct_CC="cc"
1193echo "$as_me:1193: found $ac_dir/$ac_word" >&5
1194break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001195done
1196
1197fi
1198fi
1199ac_ct_CC=$ac_cv_prog_ac_ct_CC
1200if test -n "$ac_ct_CC"; then
Benny Prijonob466e232006-09-10 08:53:59 +00001201 echo "$as_me:1201: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001202echo "${ECHO_T}$ac_ct_CC" >&6
1203else
Benny Prijonob466e232006-09-10 08:53:59 +00001204 echo "$as_me:1204: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001205echo "${ECHO_T}no" >&6
1206fi
1207
1208 CC=$ac_ct_CC
1209else
1210 CC="$ac_cv_prog_CC"
1211fi
1212
1213fi
1214if test -z "$CC"; then
1215 # Extract the first word of "cc", so it can be a program name with args.
1216set dummy cc; ac_word=$2
Benny Prijonob466e232006-09-10 08:53:59 +00001217echo "$as_me:1217: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219if test "${ac_cv_prog_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1221else
1222 if test -n "$CC"; then
1223 ac_cv_prog_CC="$CC" # Let the user override the test.
1224else
1225 ac_prog_rejected=no
Benny Prijonob466e232006-09-10 08:53:59 +00001226 ac_save_IFS=$IFS; IFS=$ac_path_separator
1227ac_dummy="$PATH"
1228for ac_dir in $ac_dummy; do
1229 IFS=$ac_save_IFS
1230 test -z "$ac_dir" && ac_dir=.
1231 $as_executable_p "$ac_dir/$ac_word" || continue
1232if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1233 ac_prog_rejected=yes
1234 continue
1235fi
1236ac_cv_prog_CC="cc"
1237echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1238break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001239done
1240
1241if test $ac_prog_rejected = yes; then
1242 # We found a bogon in the path, so make sure we never use it.
1243 set dummy $ac_cv_prog_CC
1244 shift
1245 if test $# != 0; then
1246 # We chose a different compiler from the bogus one.
1247 # However, it has the same basename, so the bogon will be chosen
1248 # first if we set CC to just the basename; use the full file name.
1249 shift
Benny Prijonob466e232006-09-10 08:53:59 +00001250 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1251 shift
1252 ac_cv_prog_CC="$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001253 fi
1254fi
1255fi
1256fi
1257CC=$ac_cv_prog_CC
1258if test -n "$CC"; then
Benny Prijonob466e232006-09-10 08:53:59 +00001259 echo "$as_me:1259: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001260echo "${ECHO_T}$CC" >&6
1261else
Benny Prijonob466e232006-09-10 08:53:59 +00001262 echo "$as_me:1262: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001263echo "${ECHO_T}no" >&6
1264fi
1265
1266fi
1267if test -z "$CC"; then
1268 if test -n "$ac_tool_prefix"; then
1269 for ac_prog in cl
1270 do
1271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonob466e232006-09-10 08:53:59 +00001273echo "$as_me:1273: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1275if test "${ac_cv_prog_CC+set}" = set; then
1276 echo $ECHO_N "(cached) $ECHO_C" >&6
1277else
1278 if test -n "$CC"; then
1279 ac_cv_prog_CC="$CC" # Let the user override the test.
1280else
Benny Prijonob466e232006-09-10 08:53:59 +00001281 ac_save_IFS=$IFS; IFS=$ac_path_separator
1282ac_dummy="$PATH"
1283for ac_dir in $ac_dummy; do
1284 IFS=$ac_save_IFS
1285 test -z "$ac_dir" && ac_dir=.
1286 $as_executable_p "$ac_dir/$ac_word" || continue
1287ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1288echo "$as_me:1288: found $ac_dir/$ac_word" >&5
1289break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001290done
1291
1292fi
1293fi
1294CC=$ac_cv_prog_CC
1295if test -n "$CC"; then
Benny Prijonob466e232006-09-10 08:53:59 +00001296 echo "$as_me:1296: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001297echo "${ECHO_T}$CC" >&6
1298else
Benny Prijonob466e232006-09-10 08:53:59 +00001299 echo "$as_me:1299: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001300echo "${ECHO_T}no" >&6
1301fi
1302
1303 test -n "$CC" && break
1304 done
1305fi
1306if test -z "$CC"; then
1307 ac_ct_CC=$CC
1308 for ac_prog in cl
1309do
1310 # Extract the first word of "$ac_prog", so it can be a program name with args.
1311set dummy $ac_prog; ac_word=$2
Benny Prijonob466e232006-09-10 08:53:59 +00001312echo "$as_me:1312: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1314if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1316else
1317 if test -n "$ac_ct_CC"; then
1318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1319else
Benny Prijonob466e232006-09-10 08:53:59 +00001320 ac_save_IFS=$IFS; IFS=$ac_path_separator
1321ac_dummy="$PATH"
1322for ac_dir in $ac_dummy; do
1323 IFS=$ac_save_IFS
1324 test -z "$ac_dir" && ac_dir=.
1325 $as_executable_p "$ac_dir/$ac_word" || continue
1326ac_cv_prog_ac_ct_CC="$ac_prog"
1327echo "$as_me:1327: found $ac_dir/$ac_word" >&5
1328break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001329done
1330
1331fi
1332fi
1333ac_ct_CC=$ac_cv_prog_ac_ct_CC
1334if test -n "$ac_ct_CC"; then
Benny Prijonob466e232006-09-10 08:53:59 +00001335 echo "$as_me:1335: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001336echo "${ECHO_T}$ac_ct_CC" >&6
1337else
Benny Prijonob466e232006-09-10 08:53:59 +00001338 echo "$as_me:1338: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001339echo "${ECHO_T}no" >&6
1340fi
1341
1342 test -n "$ac_ct_CC" && break
1343done
1344
1345 CC=$ac_ct_CC
1346fi
1347
1348fi
1349
Benny Prijonob466e232006-09-10 08:53:59 +00001350test -z "$CC" && { { echo "$as_me:1350: error: no acceptable cc found in \$PATH" >&5
1351echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001352 { (exit 1); exit 1; }; }
1353
1354# Provide some information about the compiler.
Benny Prijonob466e232006-09-10 08:53:59 +00001355echo "$as_me:1355:" \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001356 "checking for C compiler version" >&5
1357ac_compiler=`set X $ac_compile; echo $2`
Benny Prijonob466e232006-09-10 08:53:59 +00001358{ (eval echo "$as_me:1358: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001359 (eval $ac_compiler --version </dev/null >&5) 2>&5
1360 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001361 echo "$as_me:1361: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001362 (exit $ac_status); }
Benny Prijonob466e232006-09-10 08:53:59 +00001363{ (eval echo "$as_me:1363: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001364 (eval $ac_compiler -v </dev/null >&5) 2>&5
1365 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001366 echo "$as_me:1366: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001367 (exit $ac_status); }
Benny Prijonob466e232006-09-10 08:53:59 +00001368{ (eval echo "$as_me:1368: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001369 (eval $ac_compiler -V </dev/null >&5) 2>&5
1370 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001371 echo "$as_me:1371: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001372 (exit $ac_status); }
1373
1374cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00001375#line 1375 "configure"
1376#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001377
1378int
1379main ()
1380{
1381
1382 ;
1383 return 0;
1384}
1385_ACEOF
1386ac_clean_files_save=$ac_clean_files
Benny Prijonob466e232006-09-10 08:53:59 +00001387ac_clean_files="$ac_clean_files a.out a.exe"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001388# Try to create an executable without -o first, disregard a.out.
1389# It will help us diagnose broken compilers, and finding out an intuition
1390# of exeext.
Benny Prijonob466e232006-09-10 08:53:59 +00001391echo "$as_me:1391: checking for C compiler default output" >&5
1392echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001393ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijonob466e232006-09-10 08:53:59 +00001394if { (eval echo "$as_me:1394: \"$ac_link_default\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001395 (eval $ac_link_default) 2>&5
1396 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001397 echo "$as_me:1397: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001398 (exit $ac_status); }; then
1399 # Find the output, starting from the most likely. This scheme is
1400# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1401# resort.
Benny Prijonob466e232006-09-10 08:53:59 +00001402for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1403 ls a.out conftest 2>/dev/null;
1404 ls a.* conftest.* 2>/dev/null`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001405 case $ac_file in
Benny Prijonob466e232006-09-10 08:53:59 +00001406 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1407 a.out ) # We found the default executable, but exeext='' is most
1408 # certainly right.
1409 break;;
1410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1411 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1412 export ac_cv_exeext
1413 break;;
1414 * ) break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001415 esac
1416done
1417else
1418 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00001419cat conftest.$ac_ext >&5
1420{ { echo "$as_me:1420: error: C compiler cannot create executables" >&5
1421echo "$as_me: error: C compiler cannot create executables" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001422 { (exit 77); exit 77; }; }
1423fi
1424
1425ac_exeext=$ac_cv_exeext
Benny Prijonob466e232006-09-10 08:53:59 +00001426echo "$as_me:1426: result: $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001427echo "${ECHO_T}$ac_file" >&6
1428
1429# Check the compiler produces executables we can run. If not, either
1430# the compiler is broken, or we cross compile.
Benny Prijonob466e232006-09-10 08:53:59 +00001431echo "$as_me:1431: checking whether the C compiler works" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001432echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1433# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1434# If not cross compiling, check that we can run a simple program.
1435if test "$cross_compiling" != yes; then
1436 if { ac_try='./$ac_file'
Benny Prijonob466e232006-09-10 08:53:59 +00001437 { (eval echo "$as_me:1437: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001438 (eval $ac_try) 2>&5
1439 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001440 echo "$as_me:1440: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001441 (exit $ac_status); }; }; then
1442 cross_compiling=no
1443 else
1444 if test "$cross_compiling" = maybe; then
1445 cross_compiling=yes
1446 else
Benny Prijonob466e232006-09-10 08:53:59 +00001447 { { echo "$as_me:1447: error: cannot run C compiled programs.
1448If you meant to cross compile, use \`--host'." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001449echo "$as_me: error: cannot run C compiled programs.
Benny Prijonob466e232006-09-10 08:53:59 +00001450If you meant to cross compile, use \`--host'." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001451 { (exit 1); exit 1; }; }
1452 fi
1453 fi
1454fi
Benny Prijonob466e232006-09-10 08:53:59 +00001455echo "$as_me:1455: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001456echo "${ECHO_T}yes" >&6
1457
Benny Prijonob466e232006-09-10 08:53:59 +00001458rm -f a.out a.exe conftest$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001459ac_clean_files=$ac_clean_files_save
1460# Check the compiler produces executables we can run. If not, either
1461# the compiler is broken, or we cross compile.
Benny Prijonob466e232006-09-10 08:53:59 +00001462echo "$as_me:1462: checking whether we are cross compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001463echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Benny Prijonob466e232006-09-10 08:53:59 +00001464echo "$as_me:1464: result: $cross_compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001465echo "${ECHO_T}$cross_compiling" >&6
1466
Benny Prijonob466e232006-09-10 08:53:59 +00001467echo "$as_me:1467: checking for executable suffix" >&5
1468echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1469if { (eval echo "$as_me:1469: \"$ac_link\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001470 (eval $ac_link) 2>&5
1471 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001472 echo "$as_me:1472: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001473 (exit $ac_status); }; then
1474 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1475# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1476# work properly (i.e., refer to `conftest.exe'), while it won't with
1477# `rm'.
Benny Prijonob466e232006-09-10 08:53:59 +00001478for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001479 case $ac_file in
Benny Prijonob466e232006-09-10 08:53:59 +00001480 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001481 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijonob466e232006-09-10 08:53:59 +00001482 export ac_cv_exeext
1483 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001484 * ) break;;
1485 esac
1486done
1487else
Benny Prijonob466e232006-09-10 08:53:59 +00001488 { { echo "$as_me:1488: error: cannot compute EXEEXT: cannot compile and link" >&5
1489echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001490 { (exit 1); exit 1; }; }
1491fi
1492
1493rm -f conftest$ac_cv_exeext
Benny Prijonob466e232006-09-10 08:53:59 +00001494echo "$as_me:1494: result: $ac_cv_exeext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001495echo "${ECHO_T}$ac_cv_exeext" >&6
1496
1497rm -f conftest.$ac_ext
1498EXEEXT=$ac_cv_exeext
1499ac_exeext=$EXEEXT
Benny Prijonob466e232006-09-10 08:53:59 +00001500echo "$as_me:1500: checking for object suffix" >&5
1501echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001502if test "${ac_cv_objext+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1504else
1505 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00001506#line 1506 "configure"
1507#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001508
1509int
1510main ()
1511{
1512
1513 ;
1514 return 0;
1515}
1516_ACEOF
1517rm -f conftest.o conftest.obj
Benny Prijonob466e232006-09-10 08:53:59 +00001518if { (eval echo "$as_me:1518: \"$ac_compile\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001519 (eval $ac_compile) 2>&5
1520 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001521 echo "$as_me:1521: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001522 (exit $ac_status); }; then
1523 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1524 case $ac_file in
Benny Prijonob466e232006-09-10 08:53:59 +00001525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1527 break;;
1528 esac
1529done
1530else
1531 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00001532cat conftest.$ac_ext >&5
1533{ { echo "$as_me:1533: error: cannot compute OBJEXT: cannot compile" >&5
1534echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001535 { (exit 1); exit 1; }; }
1536fi
1537
1538rm -f conftest.$ac_cv_objext conftest.$ac_ext
1539fi
Benny Prijonob466e232006-09-10 08:53:59 +00001540echo "$as_me:1540: result: $ac_cv_objext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001541echo "${ECHO_T}$ac_cv_objext" >&6
1542OBJEXT=$ac_cv_objext
1543ac_objext=$OBJEXT
Benny Prijonob466e232006-09-10 08:53:59 +00001544echo "$as_me:1544: checking whether we are using the GNU C compiler" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001545echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1546if test "${ac_cv_c_compiler_gnu+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00001550#line 1550 "configure"
1551#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001552
1553int
1554main ()
1555{
1556#ifndef __GNUC__
1557 choke me
1558#endif
1559
1560 ;
1561 return 0;
1562}
1563_ACEOF
1564rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00001565if { (eval echo "$as_me:1565: \"$ac_compile\"") >&5
1566 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001567 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001568 echo "$as_me:1568: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001569 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00001570 { ac_try='test -s conftest.$ac_objext'
1571 { (eval echo "$as_me:1571: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001572 (eval $ac_try) 2>&5
1573 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001574 echo "$as_me:1574: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001575 (exit $ac_status); }; }; then
1576 ac_compiler_gnu=yes
1577else
1578 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00001579cat conftest.$ac_ext >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001580ac_compiler_gnu=no
1581fi
Benny Prijonob466e232006-09-10 08:53:59 +00001582rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001583ac_cv_c_compiler_gnu=$ac_compiler_gnu
1584
1585fi
Benny Prijonob466e232006-09-10 08:53:59 +00001586echo "$as_me:1586: result: $ac_cv_c_compiler_gnu" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001587echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1588GCC=`test $ac_compiler_gnu = yes && echo yes`
1589ac_test_CFLAGS=${CFLAGS+set}
1590ac_save_CFLAGS=$CFLAGS
1591CFLAGS="-g"
Benny Prijonob466e232006-09-10 08:53:59 +00001592echo "$as_me:1592: checking whether $CC accepts -g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001593echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1594if test "${ac_cv_prog_cc_g+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00001598#line 1598 "configure"
1599#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001600
1601int
1602main ()
1603{
1604
1605 ;
1606 return 0;
1607}
1608_ACEOF
1609rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00001610if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5
1611 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001612 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001613 echo "$as_me:1613: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001614 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00001615 { ac_try='test -s conftest.$ac_objext'
1616 { (eval echo "$as_me:1616: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001617 (eval $ac_try) 2>&5
1618 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001619 echo "$as_me:1619: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001620 (exit $ac_status); }; }; then
1621 ac_cv_prog_cc_g=yes
1622else
1623 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00001624cat conftest.$ac_ext >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001625ac_cv_prog_cc_g=no
1626fi
Benny Prijonob466e232006-09-10 08:53:59 +00001627rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001628fi
Benny Prijonob466e232006-09-10 08:53:59 +00001629echo "$as_me:1629: result: $ac_cv_prog_cc_g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001630echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1631if test "$ac_test_CFLAGS" = set; then
1632 CFLAGS=$ac_save_CFLAGS
1633elif test $ac_cv_prog_cc_g = yes; then
1634 if test "$GCC" = yes; then
1635 CFLAGS="-g -O2"
1636 else
1637 CFLAGS="-g"
1638 fi
1639else
1640 if test "$GCC" = yes; then
1641 CFLAGS="-O2"
1642 else
1643 CFLAGS=
1644 fi
1645fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001646# Some people use a C++ compiler to compile C. Since we use `exit',
1647# in C++ we need to declare it. In case someone uses the same compiler
1648# for both compiling C and C++ we need to have the C++ compiler decide
1649# the declaration of exit, since it's the most demanding environment.
1650cat >conftest.$ac_ext <<_ACEOF
1651#ifndef __cplusplus
1652 choke me
1653#endif
1654_ACEOF
1655rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00001656if { (eval echo "$as_me:1656: \"$ac_compile\"") >&5
1657 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001658 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001659 echo "$as_me:1659: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001660 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00001661 { ac_try='test -s conftest.$ac_objext'
1662 { (eval echo "$as_me:1662: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001663 (eval $ac_try) 2>&5
1664 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001665 echo "$as_me:1665: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001666 (exit $ac_status); }; }; then
1667 for ac_declaration in \
Benny Prijonob466e232006-09-10 08:53:59 +00001668 ''\
1669 '#include <stdlib.h>' \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001670 'extern "C" void std::exit (int) throw (); using std::exit;' \
1671 'extern "C" void std::exit (int); using std::exit;' \
1672 'extern "C" void exit (int) throw ();' \
1673 'extern "C" void exit (int);' \
1674 'void exit (int);'
1675do
1676 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00001677#line 1677 "configure"
1678#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001679#include <stdlib.h>
Benny Prijonob466e232006-09-10 08:53:59 +00001680$ac_declaration
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001681int
1682main ()
1683{
1684exit (42);
1685 ;
1686 return 0;
1687}
1688_ACEOF
1689rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00001690if { (eval echo "$as_me:1690: \"$ac_compile\"") >&5
1691 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001692 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001693 echo "$as_me:1693: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001694 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00001695 { ac_try='test -s conftest.$ac_objext'
1696 { (eval echo "$as_me:1696: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001697 (eval $ac_try) 2>&5
1698 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001699 echo "$as_me:1699: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001700 (exit $ac_status); }; }; then
1701 :
1702else
1703 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00001704cat conftest.$ac_ext >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001705continue
1706fi
Benny Prijonob466e232006-09-10 08:53:59 +00001707rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001708 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00001709#line 1709 "configure"
1710#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001711$ac_declaration
1712int
1713main ()
1714{
1715exit (42);
1716 ;
1717 return 0;
1718}
1719_ACEOF
1720rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00001721if { (eval echo "$as_me:1721: \"$ac_compile\"") >&5
1722 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001723 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001724 echo "$as_me:1724: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001725 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00001726 { ac_try='test -s conftest.$ac_objext'
1727 { (eval echo "$as_me:1727: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001728 (eval $ac_try) 2>&5
1729 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001730 echo "$as_me:1730: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001731 (exit $ac_status); }; }; then
1732 break
1733else
1734 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00001735cat conftest.$ac_ext >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001736fi
Benny Prijonob466e232006-09-10 08:53:59 +00001737rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001738done
1739rm -f conftest*
1740if test -n "$ac_declaration"; then
1741 echo '#ifdef __cplusplus' >>confdefs.h
1742 echo $ac_declaration >>confdefs.h
1743 echo '#endif' >>confdefs.h
1744fi
1745
1746else
1747 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00001748cat conftest.$ac_ext >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001749fi
Benny Prijonob466e232006-09-10 08:53:59 +00001750rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001751ac_ext=c
1752ac_cpp='$CPP $CPPFLAGS'
1753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001757ac_ext=cc
1758ac_cpp='$CXXCPP $CPPFLAGS'
1759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1762if test -n "$ac_tool_prefix"; then
1763 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1764 do
1765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1766set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonob466e232006-09-10 08:53:59 +00001767echo "$as_me:1767: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769if test "${ac_cv_prog_CXX+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772 if test -n "$CXX"; then
1773 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1774else
Benny Prijonob466e232006-09-10 08:53:59 +00001775 ac_save_IFS=$IFS; IFS=$ac_path_separator
1776ac_dummy="$PATH"
1777for ac_dir in $ac_dummy; do
1778 IFS=$ac_save_IFS
1779 test -z "$ac_dir" && ac_dir=.
1780 $as_executable_p "$ac_dir/$ac_word" || continue
1781ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1782echo "$as_me:1782: found $ac_dir/$ac_word" >&5
1783break
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001784done
1785
1786fi
1787fi
1788CXX=$ac_cv_prog_CXX
1789if test -n "$CXX"; then
Benny Prijonob466e232006-09-10 08:53:59 +00001790 echo "$as_me:1790: result: $CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001791echo "${ECHO_T}$CXX" >&6
1792else
Benny Prijonob466e232006-09-10 08:53:59 +00001793 echo "$as_me:1793: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001794echo "${ECHO_T}no" >&6
1795fi
1796
1797 test -n "$CXX" && break
1798 done
1799fi
1800if test -z "$CXX"; then
1801 ac_ct_CXX=$CXX
1802 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1803do
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805set dummy $ac_prog; ac_word=$2
Benny Prijonob466e232006-09-10 08:53:59 +00001806echo "$as_me:1806: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811 if test -n "$ac_ct_CXX"; then
1812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1813else
Benny Prijonob466e232006-09-10 08:53:59 +00001814 ac_save_IFS=$IFS; IFS=$ac_path_separator
1815ac_dummy="$PATH"
1816for ac_dir in $ac_dummy; do
1817 IFS=$ac_save_IFS
1818 test -z "$ac_dir" && ac_dir=.
1819 $as_executable_p "$ac_dir/$ac_word" || continue
1820ac_cv_prog_ac_ct_CXX="$ac_prog"
1821echo "$as_me:1821: found $ac_dir/$ac_word" >&5
1822break
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001823done
1824
1825fi
1826fi
1827ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1828if test -n "$ac_ct_CXX"; then
Benny Prijonob466e232006-09-10 08:53:59 +00001829 echo "$as_me:1829: result: $ac_ct_CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001830echo "${ECHO_T}$ac_ct_CXX" >&6
1831else
Benny Prijonob466e232006-09-10 08:53:59 +00001832 echo "$as_me:1832: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001833echo "${ECHO_T}no" >&6
1834fi
1835
1836 test -n "$ac_ct_CXX" && break
1837done
1838test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1839
1840 CXX=$ac_ct_CXX
1841fi
1842
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001843# Provide some information about the compiler.
Benny Prijonob466e232006-09-10 08:53:59 +00001844echo "$as_me:1844:" \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001845 "checking for C++ compiler version" >&5
1846ac_compiler=`set X $ac_compile; echo $2`
Benny Prijonob466e232006-09-10 08:53:59 +00001847{ (eval echo "$as_me:1847: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001848 (eval $ac_compiler --version </dev/null >&5) 2>&5
1849 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001850 echo "$as_me:1850: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001851 (exit $ac_status); }
Benny Prijonob466e232006-09-10 08:53:59 +00001852{ (eval echo "$as_me:1852: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001853 (eval $ac_compiler -v </dev/null >&5) 2>&5
1854 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001855 echo "$as_me:1855: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001856 (exit $ac_status); }
Benny Prijonob466e232006-09-10 08:53:59 +00001857{ (eval echo "$as_me:1857: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001858 (eval $ac_compiler -V </dev/null >&5) 2>&5
1859 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001860 echo "$as_me:1860: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001861 (exit $ac_status); }
1862
Benny Prijonob466e232006-09-10 08:53:59 +00001863echo "$as_me:1863: checking whether we are using the GNU C++ compiler" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001864echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1865if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00001869#line 1869 "configure"
1870#include "confdefs.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001871
1872int
1873main ()
1874{
1875#ifndef __GNUC__
1876 choke me
1877#endif
1878
1879 ;
1880 return 0;
1881}
1882_ACEOF
1883rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00001884if { (eval echo "$as_me:1884: \"$ac_compile\"") >&5
1885 (eval $ac_compile) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001886 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001887 echo "$as_me:1887: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001888 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00001889 { ac_try='test -s conftest.$ac_objext'
1890 { (eval echo "$as_me:1890: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001891 (eval $ac_try) 2>&5
1892 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001893 echo "$as_me:1893: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001894 (exit $ac_status); }; }; then
1895 ac_compiler_gnu=yes
1896else
1897 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00001898cat conftest.$ac_ext >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001899ac_compiler_gnu=no
1900fi
Benny Prijonob466e232006-09-10 08:53:59 +00001901rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001902ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1903
1904fi
Benny Prijonob466e232006-09-10 08:53:59 +00001905echo "$as_me:1905: result: $ac_cv_cxx_compiler_gnu" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001906echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1907GXX=`test $ac_compiler_gnu = yes && echo yes`
1908ac_test_CXXFLAGS=${CXXFLAGS+set}
1909ac_save_CXXFLAGS=$CXXFLAGS
1910CXXFLAGS="-g"
Benny Prijonob466e232006-09-10 08:53:59 +00001911echo "$as_me:1911: checking whether $CXX accepts -g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001912echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1913if test "${ac_cv_prog_cxx_g+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915else
1916 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00001917#line 1917 "configure"
1918#include "confdefs.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001919
1920int
1921main ()
1922{
1923
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00001929if { (eval echo "$as_me:1929: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001931 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001932 echo "$as_me:1932: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001933 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00001934 { ac_try='test -s conftest.$ac_objext'
1935 { (eval echo "$as_me:1935: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001936 (eval $ac_try) 2>&5
1937 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001938 echo "$as_me:1938: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001939 (exit $ac_status); }; }; then
1940 ac_cv_prog_cxx_g=yes
1941else
1942 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00001943cat conftest.$ac_ext >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001944ac_cv_prog_cxx_g=no
1945fi
Benny Prijonob466e232006-09-10 08:53:59 +00001946rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001947fi
Benny Prijonob466e232006-09-10 08:53:59 +00001948echo "$as_me:1948: result: $ac_cv_prog_cxx_g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001949echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1950if test "$ac_test_CXXFLAGS" = set; then
1951 CXXFLAGS=$ac_save_CXXFLAGS
1952elif test $ac_cv_prog_cxx_g = yes; then
1953 if test "$GXX" = yes; then
1954 CXXFLAGS="-g -O2"
1955 else
1956 CXXFLAGS="-g"
1957 fi
1958else
1959 if test "$GXX" = yes; then
1960 CXXFLAGS="-O2"
1961 else
1962 CXXFLAGS=
1963 fi
1964fi
1965for ac_declaration in \
Benny Prijonob466e232006-09-10 08:53:59 +00001966 ''\
1967 '#include <stdlib.h>' \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001968 'extern "C" void std::exit (int) throw (); using std::exit;' \
1969 'extern "C" void std::exit (int); using std::exit;' \
1970 'extern "C" void exit (int) throw ();' \
1971 'extern "C" void exit (int);' \
1972 'void exit (int);'
1973do
1974 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00001975#line 1975 "configure"
1976#include "confdefs.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001977#include <stdlib.h>
Benny Prijonob466e232006-09-10 08:53:59 +00001978$ac_declaration
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001979int
1980main ()
1981{
1982exit (42);
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00001988if { (eval echo "$as_me:1988: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001990 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001991 echo "$as_me:1991: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001992 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00001993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:1994: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001995 (eval $ac_try) 2>&5
1996 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00001997 echo "$as_me:1997: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001998 (exit $ac_status); }; }; then
1999 :
2000else
2001 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002002cat conftest.$ac_ext >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002003continue
2004fi
Benny Prijonob466e232006-09-10 08:53:59 +00002005rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002006 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002007#line 2007 "configure"
2008#include "confdefs.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002009$ac_declaration
2010int
2011main ()
2012{
2013exit (42);
2014 ;
2015 return 0;
2016}
2017_ACEOF
2018rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00002019if { (eval echo "$as_me:2019: \"$ac_compile\"") >&5
2020 (eval $ac_compile) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002021 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002022 echo "$as_me:2022: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002023 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00002024 { ac_try='test -s conftest.$ac_objext'
2025 { (eval echo "$as_me:2025: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002026 (eval $ac_try) 2>&5
2027 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002028 echo "$as_me:2028: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002029 (exit $ac_status); }; }; then
2030 break
2031else
2032 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002033cat conftest.$ac_ext >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002034fi
Benny Prijonob466e232006-09-10 08:53:59 +00002035rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002036done
2037rm -f conftest*
2038if test -n "$ac_declaration"; then
2039 echo '#ifdef __cplusplus' >>confdefs.h
2040 echo $ac_declaration >>confdefs.h
2041 echo '#endif' >>confdefs.h
2042fi
2043
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002044ac_ext=c
2045ac_cpp='$CPP $CPPFLAGS'
2046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002050ac_ext=c
2051ac_cpp='$CPP $CPPFLAGS'
2052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055
Benny Prijonob466e232006-09-10 08:53:59 +00002056echo "$as_me:2056: checking for pthread_create in -lpthread" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002057echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2058if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061 ac_check_lib_save_LIBS=$LIBS
2062LIBS="-lpthread $LIBS"
2063cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002064#line 2064 "configure"
2065#include "confdefs.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002066
2067/* Override any gcc2 internal prototype to avoid an error. */
2068#ifdef __cplusplus
2069extern "C"
2070#endif
2071/* We use char because int might match the return type of a gcc2
2072 builtin and then its argument prototype would still apply. */
2073char pthread_create ();
2074int
2075main ()
2076{
2077pthread_create ();
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonob466e232006-09-10 08:53:59 +00002083if { (eval echo "$as_me:2083: \"$ac_link\"") >&5
2084 (eval $ac_link) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002085 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002086 echo "$as_me:2086: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002087 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00002088 { ac_try='test -s conftest$ac_exeext'
2089 { (eval echo "$as_me:2089: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002090 (eval $ac_try) 2>&5
2091 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002092 echo "$as_me:2092: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002093 (exit $ac_status); }; }; then
2094 ac_cv_lib_pthread_pthread_create=yes
2095else
2096 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002097cat conftest.$ac_ext >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002098ac_cv_lib_pthread_pthread_create=no
2099fi
Benny Prijonob466e232006-09-10 08:53:59 +00002100rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002101LIBS=$ac_check_lib_save_LIBS
2102fi
Benny Prijonob466e232006-09-10 08:53:59 +00002103echo "$as_me:2103: result: $ac_cv_lib_pthread_pthread_create" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002104echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2105if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002106 cat >>confdefs.h <<EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002107#define HAVE_LIBPTHREAD 1
Benny Prijonob466e232006-09-10 08:53:59 +00002108EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002109
2110 LIBS="-lpthread $LIBS"
2111
2112fi
2113
Benny Prijonob466e232006-09-10 08:53:59 +00002114echo "$as_me:2114: result: Setting PJ_M_NAME to $target_cpu" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002115echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
Benny Prijonob466e232006-09-10 08:53:59 +00002116cat >>confdefs.h <<EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002117#define PJ_M_NAME "$target_cpu"
Benny Prijonob466e232006-09-10 08:53:59 +00002118EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002119
Benny Prijonob466e232006-09-10 08:53:59 +00002120echo "$as_me:2120: checking whether byte ordering is bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002121echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2122if test "${ac_cv_c_bigendian+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
Benny Prijonob466e232006-09-10 08:53:59 +00002125 ac_cv_c_bigendian=unknown
2126# See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002127cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002128#line 2128 "configure"
2129#include "confdefs.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002130#include <sys/types.h>
2131#include <sys/param.h>
2132
2133int
2134main ()
2135{
2136#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2137 bogus endian macros
2138#endif
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00002145if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002147 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002148 echo "$as_me:2148: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002149 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00002150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:2151: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002152 (eval $ac_try) 2>&5
2153 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002154 echo "$as_me:2154: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002155 (exit $ac_status); }; }; then
2156 # It does; now see whether it defined to BIG_ENDIAN or not.
2157cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002158#line 2158 "configure"
2159#include "confdefs.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002160#include <sys/types.h>
2161#include <sys/param.h>
2162
2163int
2164main ()
2165{
2166#if BYTE_ORDER != BIG_ENDIAN
2167 not big endian
2168#endif
2169
2170 ;
2171 return 0;
2172}
2173_ACEOF
2174rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00002175if { (eval echo "$as_me:2175: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002177 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002178 echo "$as_me:2178: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002179 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00002180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:2181: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002182 (eval $ac_try) 2>&5
2183 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002184 echo "$as_me:2184: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002185 (exit $ac_status); }; }; then
2186 ac_cv_c_bigendian=yes
2187else
2188 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002189cat conftest.$ac_ext >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002190ac_cv_c_bigendian=no
2191fi
Benny Prijonob466e232006-09-10 08:53:59 +00002192rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002193else
2194 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002195cat conftest.$ac_ext >&5
2196fi
2197rm -f conftest.$ac_objext conftest.$ac_ext
2198if test $ac_cv_c_bigendian = unknown; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002199if test "$cross_compiling" = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002200 { { echo "$as_me:2200: error: cannot run test program while cross compiling" >&5
2201echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2202 { (exit 1); exit 1; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002203else
2204 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002205#line 2205 "configure"
2206#include "confdefs.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002207int
2208main ()
2209{
2210 /* Are we little or big endian? From Harbison&Steele. */
2211 union
2212 {
2213 long l;
2214 char c[sizeof (long)];
2215 } u;
2216 u.l = 1;
2217 exit (u.c[sizeof (long) - 1] == 1);
2218}
2219_ACEOF
2220rm -f conftest$ac_exeext
Benny Prijonob466e232006-09-10 08:53:59 +00002221if { (eval echo "$as_me:2221: \"$ac_link\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002222 (eval $ac_link) 2>&5
2223 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002224 echo "$as_me:2224: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijonob466e232006-09-10 08:53:59 +00002226 { (eval echo "$as_me:2226: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002227 (eval $ac_try) 2>&5
2228 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002229 echo "$as_me:2229: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002230 (exit $ac_status); }; }; then
2231 ac_cv_c_bigendian=no
2232else
2233 echo "$as_me: program exited with status $ac_status" >&5
2234echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002235cat conftest.$ac_ext >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002236ac_cv_c_bigendian=yes
2237fi
Benny Prijonob466e232006-09-10 08:53:59 +00002238rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002239fi
2240fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002241fi
Benny Prijonob466e232006-09-10 08:53:59 +00002242echo "$as_me:2242: result: $ac_cv_c_bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002243echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijonob466e232006-09-10 08:53:59 +00002244if test $ac_cv_c_bigendian = yes; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002245
Benny Prijonob466e232006-09-10 08:53:59 +00002246cat >>confdefs.h <<\EOF
2247#define WORDS_BIGENDIAN 1
2248EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002249
Benny Prijonob466e232006-09-10 08:53:59 +00002250fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002251
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002252# Check whether --enable-floating-point or --disable-floating-point was given.
2253if test "${enable_floating_point+set}" = set; then
2254 enableval="$enable_floating_point"
2255 if test "$enable_floating_point" = "no"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002256 cat >>confdefs.h <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002257#define PJ_HAS_FLOATING_POINT 0
Benny Prijonob466e232006-09-10 08:53:59 +00002258EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002259
Benny Prijonob466e232006-09-10 08:53:59 +00002260 echo "$as_me:2260: result: Checking if floating point is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002261echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
2262 fi
2263else
2264
Benny Prijonob466e232006-09-10 08:53:59 +00002265 cat >>confdefs.h <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002266#define PJ_HAS_FLOATING_POINT 1
Benny Prijonob466e232006-09-10 08:53:59 +00002267EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002268
Benny Prijonob466e232006-09-10 08:53:59 +00002269 echo "$as_me:2269: result: Checking if floating point is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002270echo "${ECHO_T}Checking if floating point is disabled... no" >&6
2271
Benny Prijonob466e232006-09-10 08:53:59 +00002272echo "$as_me:2272: checking for fmod in -lm" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002273echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
2274if test "${ac_cv_lib_m_fmod+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277 ac_check_lib_save_LIBS=$LIBS
2278LIBS="-lm $LIBS"
2279cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002280#line 2280 "configure"
2281#include "confdefs.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002282
2283/* Override any gcc2 internal prototype to avoid an error. */
2284#ifdef __cplusplus
2285extern "C"
2286#endif
2287/* We use char because int might match the return type of a gcc2
2288 builtin and then its argument prototype would still apply. */
2289char fmod ();
2290int
2291main ()
2292{
2293fmod ();
2294 ;
2295 return 0;
2296}
2297_ACEOF
2298rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonob466e232006-09-10 08:53:59 +00002299if { (eval echo "$as_me:2299: \"$ac_link\"") >&5
2300 (eval $ac_link) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002301 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002302 echo "$as_me:2302: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002303 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00002304 { ac_try='test -s conftest$ac_exeext'
2305 { (eval echo "$as_me:2305: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002306 (eval $ac_try) 2>&5
2307 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002308 echo "$as_me:2308: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002309 (exit $ac_status); }; }; then
2310 ac_cv_lib_m_fmod=yes
2311else
2312 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002313cat conftest.$ac_ext >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002314ac_cv_lib_m_fmod=no
2315fi
Benny Prijonob466e232006-09-10 08:53:59 +00002316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002317LIBS=$ac_check_lib_save_LIBS
2318fi
Benny Prijonob466e232006-09-10 08:53:59 +00002319echo "$as_me:2319: result: $ac_cv_lib_m_fmod" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002320echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
2321if test $ac_cv_lib_m_fmod = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002322 cat >>confdefs.h <<EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002323#define HAVE_LIBM 1
Benny Prijonob466e232006-09-10 08:53:59 +00002324EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002325
2326 LIBS="-lm $LIBS"
2327
2328fi
2329
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002330fi;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002331
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002332ac_ext=c
2333ac_cpp='$CPP $CPPFLAGS'
2334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijonob466e232006-09-10 08:53:59 +00002337echo "$as_me:2337: checking how to run the C preprocessor" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002338echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2339# On Suns, sometimes $CPP names a directory.
2340if test -n "$CPP" && test -d "$CPP"; then
2341 CPP=
2342fi
2343if test -z "$CPP"; then
2344 if test "${ac_cv_prog_CPP+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347 # Double quotes because CPP needs to be expanded
2348 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2349 do
2350 ac_preproc_ok=false
2351for ac_c_preproc_warn_flag in '' yes
2352do
2353 # Use a header file that comes with gcc, so configuring glibc
2354 # with a fresh cross-compiler works.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002355 # On the NeXT, cc -E runs the code through the compiler's parser,
2356 # not just through cpp. "Syntax error" is here to catch this case.
2357 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002358#line 2358 "configure"
2359#include "confdefs.h"
2360#include <assert.h>
2361 Syntax error
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002362_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002363if { (eval echo "$as_me:2363: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2365 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002366 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002367 rm -f conftest.er1
2368 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002369 echo "$as_me:2369: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002370 (exit $ac_status); } >/dev/null; then
2371 if test -s conftest.err; then
2372 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002373 else
2374 ac_cpp_err=
2375 fi
2376else
2377 ac_cpp_err=yes
2378fi
2379if test -z "$ac_cpp_err"; then
2380 :
2381else
2382 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002383 cat conftest.$ac_ext >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002384 # Broken: fails on valid input.
2385continue
2386fi
2387rm -f conftest.err conftest.$ac_ext
2388
2389 # OK, works on sane cases. Now check whether non-existent headers
2390 # can be detected and how.
2391 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002392#line 2392 "configure"
2393#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002394#include <ac_nonexistent.h>
2395_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002396if { (eval echo "$as_me:2396: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2398 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002399 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002400 rm -f conftest.er1
2401 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002402 echo "$as_me:2402: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002403 (exit $ac_status); } >/dev/null; then
2404 if test -s conftest.err; then
2405 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002406 else
2407 ac_cpp_err=
2408 fi
2409else
2410 ac_cpp_err=yes
2411fi
2412if test -z "$ac_cpp_err"; then
2413 # Broken: success on invalid input.
2414continue
2415else
2416 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002417 cat conftest.$ac_ext >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002418 # Passes both tests.
2419ac_preproc_ok=:
2420break
2421fi
2422rm -f conftest.err conftest.$ac_ext
2423
2424done
2425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2426rm -f conftest.err conftest.$ac_ext
2427if $ac_preproc_ok; then
2428 break
2429fi
2430
2431 done
2432 ac_cv_prog_CPP=$CPP
2433
2434fi
2435 CPP=$ac_cv_prog_CPP
2436else
2437 ac_cv_prog_CPP=$CPP
2438fi
Benny Prijonob466e232006-09-10 08:53:59 +00002439echo "$as_me:2439: result: $CPP" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002440echo "${ECHO_T}$CPP" >&6
2441ac_preproc_ok=false
2442for ac_c_preproc_warn_flag in '' yes
2443do
2444 # Use a header file that comes with gcc, so configuring glibc
2445 # with a fresh cross-compiler works.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002446 # On the NeXT, cc -E runs the code through the compiler's parser,
2447 # not just through cpp. "Syntax error" is here to catch this case.
2448 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002449#line 2449 "configure"
2450#include "confdefs.h"
2451#include <assert.h>
2452 Syntax error
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002453_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002454if { (eval echo "$as_me:2454: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002457 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002458 rm -f conftest.er1
2459 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002460 echo "$as_me:2460: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002464 else
2465 ac_cpp_err=
2466 fi
2467else
2468 ac_cpp_err=yes
2469fi
2470if test -z "$ac_cpp_err"; then
2471 :
2472else
2473 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002474 cat conftest.$ac_ext >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002475 # Broken: fails on valid input.
2476continue
2477fi
2478rm -f conftest.err conftest.$ac_ext
2479
2480 # OK, works on sane cases. Now check whether non-existent headers
2481 # can be detected and how.
2482 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002483#line 2483 "configure"
2484#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002485#include <ac_nonexistent.h>
2486_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002487if { (eval echo "$as_me:2487: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002490 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002491 rm -f conftest.er1
2492 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002493 echo "$as_me:2493: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002497 else
2498 ac_cpp_err=
2499 fi
2500else
2501 ac_cpp_err=yes
2502fi
2503if test -z "$ac_cpp_err"; then
2504 # Broken: success on invalid input.
2505continue
2506else
2507 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002508 cat conftest.$ac_ext >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002509 # Passes both tests.
2510ac_preproc_ok=:
2511break
2512fi
2513rm -f conftest.err conftest.$ac_ext
2514
2515done
2516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2517rm -f conftest.err conftest.$ac_ext
2518if $ac_preproc_ok; then
2519 :
2520else
Benny Prijonob466e232006-09-10 08:53:59 +00002521 { { echo "$as_me:2521: error: C preprocessor \"$CPP\" fails sanity check" >&5
2522echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002523 { (exit 1); exit 1; }; }
2524fi
2525
2526ac_ext=c
2527ac_cpp='$CPP $CPPFLAGS'
2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
Benny Prijonob466e232006-09-10 08:53:59 +00002532echo "$as_me:2532: checking for arpa/inet.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002533echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
2534if test "${ac_cv_header_arpa_inet_h+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002536else
Benny Prijonob466e232006-09-10 08:53:59 +00002537 cat >conftest.$ac_ext <<_ACEOF
2538#line 2538 "configure"
2539#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002540#include <arpa/inet.h>
2541_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002542if { (eval echo "$as_me:2542: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2544 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002545 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002546 rm -f conftest.er1
2547 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002548 echo "$as_me:2548: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002549 (exit $ac_status); } >/dev/null; then
2550 if test -s conftest.err; then
2551 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002552 else
2553 ac_cpp_err=
2554 fi
2555else
2556 ac_cpp_err=yes
2557fi
2558if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002559 ac_cv_header_arpa_inet_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002560else
2561 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002562 cat conftest.$ac_ext >&5
2563 ac_cv_header_arpa_inet_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002564fi
2565rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002566fi
Benny Prijonob466e232006-09-10 08:53:59 +00002567echo "$as_me:2567: result: $ac_cv_header_arpa_inet_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002568echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002569if test $ac_cv_header_arpa_inet_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002570 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002571#define PJ_HAS_ARPA_INET_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00002572EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002573
2574fi
2575
Benny Prijonob466e232006-09-10 08:53:59 +00002576echo "$as_me:2576: checking for assert.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002577echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
2578if test "${ac_cv_header_assert_h+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002580else
Benny Prijonob466e232006-09-10 08:53:59 +00002581 cat >conftest.$ac_ext <<_ACEOF
2582#line 2582 "configure"
2583#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002584#include <assert.h>
2585_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002586if { (eval echo "$as_me:2586: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2588 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002589 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002590 rm -f conftest.er1
2591 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002592 echo "$as_me:2592: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002593 (exit $ac_status); } >/dev/null; then
2594 if test -s conftest.err; then
2595 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002596 else
2597 ac_cpp_err=
2598 fi
2599else
2600 ac_cpp_err=yes
2601fi
2602if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002603 ac_cv_header_assert_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002604else
2605 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002606 cat conftest.$ac_ext >&5
2607 ac_cv_header_assert_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002608fi
2609rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002610fi
Benny Prijonob466e232006-09-10 08:53:59 +00002611echo "$as_me:2611: result: $ac_cv_header_assert_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002612echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002613if test $ac_cv_header_assert_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002614 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002615#define PJ_HAS_ASSERT_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00002616EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002617
2618fi
2619
Benny Prijonob466e232006-09-10 08:53:59 +00002620echo "$as_me:2620: checking for ctype.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002621echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
2622if test "${ac_cv_header_ctype_h+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002624else
Benny Prijonob466e232006-09-10 08:53:59 +00002625 cat >conftest.$ac_ext <<_ACEOF
2626#line 2626 "configure"
2627#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002628#include <ctype.h>
2629_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002630if { (eval echo "$as_me:2630: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2632 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002633 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002634 rm -f conftest.er1
2635 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002636 echo "$as_me:2636: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002637 (exit $ac_status); } >/dev/null; then
2638 if test -s conftest.err; then
2639 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002640 else
2641 ac_cpp_err=
2642 fi
2643else
2644 ac_cpp_err=yes
2645fi
2646if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002647 ac_cv_header_ctype_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002648else
2649 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002650 cat conftest.$ac_ext >&5
2651 ac_cv_header_ctype_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002652fi
2653rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002654fi
Benny Prijonob466e232006-09-10 08:53:59 +00002655echo "$as_me:2655: result: $ac_cv_header_ctype_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002656echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002657if test $ac_cv_header_ctype_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002658 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002659#define PJ_HAS_CTYPE_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00002660EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002661
2662fi
2663
Benny Prijonob466e232006-09-10 08:53:59 +00002664echo "$as_me:2664: checking for errno.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002665echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
2666if test "${ac_cv_header_errno_h+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002668else
Benny Prijonob466e232006-09-10 08:53:59 +00002669 cat >conftest.$ac_ext <<_ACEOF
2670#line 2670 "configure"
2671#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002672#include <errno.h>
2673_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002674if { (eval echo "$as_me:2674: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2676 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002677 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002678 rm -f conftest.er1
2679 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002680 echo "$as_me:2680: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002681 (exit $ac_status); } >/dev/null; then
2682 if test -s conftest.err; then
2683 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002684 else
2685 ac_cpp_err=
2686 fi
2687else
2688 ac_cpp_err=yes
2689fi
2690if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002691 ac_cv_header_errno_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002692else
2693 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002694 cat conftest.$ac_ext >&5
2695 ac_cv_header_errno_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002696fi
2697rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002698fi
Benny Prijonob466e232006-09-10 08:53:59 +00002699echo "$as_me:2699: result: $ac_cv_header_errno_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002700echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002701if test $ac_cv_header_errno_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002702 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002703#define PJ_HAS_ERRNO_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00002704EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002705
2706fi
2707
Benny Prijonob466e232006-09-10 08:53:59 +00002708echo "$as_me:2708: checking for linux/socket.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002709echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
2710if test "${ac_cv_header_linux_socket_h+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002712else
Benny Prijonob466e232006-09-10 08:53:59 +00002713 cat >conftest.$ac_ext <<_ACEOF
2714#line 2714 "configure"
2715#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002716#include <linux/socket.h>
2717_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002718if { (eval echo "$as_me:2718: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2720 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002721 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002722 rm -f conftest.er1
2723 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002724 echo "$as_me:2724: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002725 (exit $ac_status); } >/dev/null; then
2726 if test -s conftest.err; then
2727 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002728 else
2729 ac_cpp_err=
2730 fi
2731else
2732 ac_cpp_err=yes
2733fi
2734if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002735 ac_cv_header_linux_socket_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002736else
2737 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002738 cat conftest.$ac_ext >&5
2739 ac_cv_header_linux_socket_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002740fi
2741rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002742fi
Benny Prijonob466e232006-09-10 08:53:59 +00002743echo "$as_me:2743: result: $ac_cv_header_linux_socket_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002744echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002745if test $ac_cv_header_linux_socket_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002746 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002747#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00002748EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002749
2750fi
2751
Benny Prijonob466e232006-09-10 08:53:59 +00002752echo "$as_me:2752: checking for malloc.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002753echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
2754if test "${ac_cv_header_malloc_h+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002756else
Benny Prijonob466e232006-09-10 08:53:59 +00002757 cat >conftest.$ac_ext <<_ACEOF
2758#line 2758 "configure"
2759#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002760#include <malloc.h>
2761_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002762if { (eval echo "$as_me:2762: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2764 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002765 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002766 rm -f conftest.er1
2767 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002768 echo "$as_me:2768: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002769 (exit $ac_status); } >/dev/null; then
2770 if test -s conftest.err; then
2771 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002772 else
2773 ac_cpp_err=
2774 fi
2775else
2776 ac_cpp_err=yes
2777fi
2778if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002779 ac_cv_header_malloc_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002780else
2781 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002782 cat conftest.$ac_ext >&5
2783 ac_cv_header_malloc_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002784fi
2785rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002786fi
Benny Prijonob466e232006-09-10 08:53:59 +00002787echo "$as_me:2787: result: $ac_cv_header_malloc_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002788echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002789if test $ac_cv_header_malloc_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002790 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002791#define PJ_HAS_MALLOC_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00002792EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002793
2794fi
2795
Benny Prijonob466e232006-09-10 08:53:59 +00002796echo "$as_me:2796: checking for netdb.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002797echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
2798if test "${ac_cv_header_netdb_h+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002800else
Benny Prijonob466e232006-09-10 08:53:59 +00002801 cat >conftest.$ac_ext <<_ACEOF
2802#line 2802 "configure"
2803#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002804#include <netdb.h>
2805_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002806if { (eval echo "$as_me:2806: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2808 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002809 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002810 rm -f conftest.er1
2811 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002812 echo "$as_me:2812: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002813 (exit $ac_status); } >/dev/null; then
2814 if test -s conftest.err; then
2815 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002816 else
2817 ac_cpp_err=
2818 fi
2819else
2820 ac_cpp_err=yes
2821fi
2822if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002823 ac_cv_header_netdb_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002824else
2825 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002826 cat conftest.$ac_ext >&5
2827 ac_cv_header_netdb_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002828fi
2829rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002830fi
Benny Prijonob466e232006-09-10 08:53:59 +00002831echo "$as_me:2831: result: $ac_cv_header_netdb_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002832echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002833if test $ac_cv_header_netdb_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002834 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002835#define PJ_HAS_NETDB_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00002836EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002837
2838fi
2839
Benny Prijonob466e232006-09-10 08:53:59 +00002840echo "$as_me:2840: checking for netinet/in.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002841echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
2842if test "${ac_cv_header_netinet_in_h+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002844else
Benny Prijonob466e232006-09-10 08:53:59 +00002845 cat >conftest.$ac_ext <<_ACEOF
2846#line 2846 "configure"
2847#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002848#include <netinet/in.h>
2849_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002850if { (eval echo "$as_me:2850: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2852 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002853 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002854 rm -f conftest.er1
2855 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002856 echo "$as_me:2856: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002857 (exit $ac_status); } >/dev/null; then
2858 if test -s conftest.err; then
2859 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002860 else
2861 ac_cpp_err=
2862 fi
2863else
2864 ac_cpp_err=yes
2865fi
2866if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002867 ac_cv_header_netinet_in_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002868else
2869 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002870 cat conftest.$ac_ext >&5
2871 ac_cv_header_netinet_in_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002872fi
2873rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002874fi
Benny Prijonob466e232006-09-10 08:53:59 +00002875echo "$as_me:2875: result: $ac_cv_header_netinet_in_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002876echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002877if test $ac_cv_header_netinet_in_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002878 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002879#define PJ_HAS_NETINET_IN_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00002880EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002881
2882fi
2883
Benny Prijonob466e232006-09-10 08:53:59 +00002884echo "$as_me:2884: checking for setjmp.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002885echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
2886if test "${ac_cv_header_setjmp_h+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002888else
Benny Prijonob466e232006-09-10 08:53:59 +00002889 cat >conftest.$ac_ext <<_ACEOF
2890#line 2890 "configure"
2891#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002892#include <setjmp.h>
2893_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002894if { (eval echo "$as_me:2894: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2896 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002897 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002898 rm -f conftest.er1
2899 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002900 echo "$as_me:2900: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002901 (exit $ac_status); } >/dev/null; then
2902 if test -s conftest.err; then
2903 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002904 else
2905 ac_cpp_err=
2906 fi
2907else
2908 ac_cpp_err=yes
2909fi
2910if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002911 ac_cv_header_setjmp_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002912else
2913 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002914 cat conftest.$ac_ext >&5
2915 ac_cv_header_setjmp_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002916fi
2917rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002918fi
Benny Prijonob466e232006-09-10 08:53:59 +00002919echo "$as_me:2919: result: $ac_cv_header_setjmp_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002920echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002921if test $ac_cv_header_setjmp_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002922 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002923#define PJ_HAS_SETJMP_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00002924EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002925
2926fi
2927
Benny Prijonob466e232006-09-10 08:53:59 +00002928echo "$as_me:2928: checking for stdarg.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002929echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
2930if test "${ac_cv_header_stdarg_h+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002932else
Benny Prijonob466e232006-09-10 08:53:59 +00002933 cat >conftest.$ac_ext <<_ACEOF
2934#line 2934 "configure"
2935#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002936#include <stdarg.h>
2937_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002938if { (eval echo "$as_me:2938: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002941 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002942 rm -f conftest.er1
2943 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002944 echo "$as_me:2944: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002945 (exit $ac_status); } >/dev/null; then
2946 if test -s conftest.err; then
2947 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002948 else
2949 ac_cpp_err=
2950 fi
2951else
2952 ac_cpp_err=yes
2953fi
2954if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002955 ac_cv_header_stdarg_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002956else
2957 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002958 cat conftest.$ac_ext >&5
2959 ac_cv_header_stdarg_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002960fi
2961rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002962fi
Benny Prijonob466e232006-09-10 08:53:59 +00002963echo "$as_me:2963: result: $ac_cv_header_stdarg_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002964echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002965if test $ac_cv_header_stdarg_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00002966 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002967#define PJ_HAS_STDARG_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00002968EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002969
2970fi
2971
Benny Prijonob466e232006-09-10 08:53:59 +00002972echo "$as_me:2972: checking for stddef.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002973echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
2974if test "${ac_cv_header_stddef_h+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002976else
Benny Prijonob466e232006-09-10 08:53:59 +00002977 cat >conftest.$ac_ext <<_ACEOF
2978#line 2978 "configure"
2979#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002980#include <stddef.h>
2981_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00002982if { (eval echo "$as_me:2982: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2984 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00002985 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002986 rm -f conftest.er1
2987 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00002988 echo "$as_me:2988: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002989 (exit $ac_status); } >/dev/null; then
2990 if test -s conftest.err; then
2991 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002992 else
2993 ac_cpp_err=
2994 fi
2995else
2996 ac_cpp_err=yes
2997fi
2998if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00002999 ac_cv_header_stddef_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003000else
3001 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003002 cat conftest.$ac_ext >&5
3003 ac_cv_header_stddef_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003004fi
3005rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003006fi
Benny Prijonob466e232006-09-10 08:53:59 +00003007echo "$as_me:3007: result: $ac_cv_header_stddef_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003008echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003009if test $ac_cv_header_stddef_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003010 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003011#define PJ_HAS_STDDEF_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003012EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003013
3014fi
3015
Benny Prijonob466e232006-09-10 08:53:59 +00003016echo "$as_me:3016: checking for stdio.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003017echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
3018if test "${ac_cv_header_stdio_h+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003020else
Benny Prijonob466e232006-09-10 08:53:59 +00003021 cat >conftest.$ac_ext <<_ACEOF
3022#line 3022 "configure"
3023#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003024#include <stdio.h>
3025_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003026if { (eval echo "$as_me:3026: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003029 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003030 rm -f conftest.er1
3031 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003032 echo "$as_me:3032: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003036 else
3037 ac_cpp_err=
3038 fi
3039else
3040 ac_cpp_err=yes
3041fi
3042if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003043 ac_cv_header_stdio_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003044else
3045 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003046 cat conftest.$ac_ext >&5
3047 ac_cv_header_stdio_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003048fi
3049rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003050fi
Benny Prijonob466e232006-09-10 08:53:59 +00003051echo "$as_me:3051: result: $ac_cv_header_stdio_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003052echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003053if test $ac_cv_header_stdio_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003054 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003055#define PJ_HAS_STDIO_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003056EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003057
3058fi
3059
Benny Prijonob466e232006-09-10 08:53:59 +00003060echo "$as_me:3060: checking for stdlib.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003061echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
3062if test "${ac_cv_header_stdlib_h+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003064else
Benny Prijonob466e232006-09-10 08:53:59 +00003065 cat >conftest.$ac_ext <<_ACEOF
3066#line 3066 "configure"
3067#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003068#include <stdlib.h>
3069_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003070if { (eval echo "$as_me:3070: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3072 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003073 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003074 rm -f conftest.er1
3075 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003076 echo "$as_me:3076: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003077 (exit $ac_status); } >/dev/null; then
3078 if test -s conftest.err; then
3079 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003080 else
3081 ac_cpp_err=
3082 fi
3083else
3084 ac_cpp_err=yes
3085fi
3086if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003087 ac_cv_header_stdlib_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003088else
3089 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003090 cat conftest.$ac_ext >&5
3091 ac_cv_header_stdlib_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003092fi
3093rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003094fi
Benny Prijonob466e232006-09-10 08:53:59 +00003095echo "$as_me:3095: result: $ac_cv_header_stdlib_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003096echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003097if test $ac_cv_header_stdlib_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003098 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003099#define PJ_HAS_STDLIB_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003100EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003101
3102fi
3103
Benny Prijonob466e232006-09-10 08:53:59 +00003104echo "$as_me:3104: checking for string.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003105echo $ECHO_N "checking for string.h... $ECHO_C" >&6
3106if test "${ac_cv_header_string_h+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003108else
Benny Prijonob466e232006-09-10 08:53:59 +00003109 cat >conftest.$ac_ext <<_ACEOF
3110#line 3110 "configure"
3111#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003112#include <string.h>
3113_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003114if { (eval echo "$as_me:3114: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3116 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003117 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003118 rm -f conftest.er1
3119 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003120 echo "$as_me:3120: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003121 (exit $ac_status); } >/dev/null; then
3122 if test -s conftest.err; then
3123 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003124 else
3125 ac_cpp_err=
3126 fi
3127else
3128 ac_cpp_err=yes
3129fi
3130if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003131 ac_cv_header_string_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003132else
3133 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003134 cat conftest.$ac_ext >&5
3135 ac_cv_header_string_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003136fi
3137rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003138fi
Benny Prijonob466e232006-09-10 08:53:59 +00003139echo "$as_me:3139: result: $ac_cv_header_string_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003140echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003141if test $ac_cv_header_string_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003142 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003143#define PJ_HAS_STRING_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003144EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003145
3146fi
3147
Benny Prijonob466e232006-09-10 08:53:59 +00003148echo "$as_me:3148: checking for sys/ioctl.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003149echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
3150if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003152else
Benny Prijonob466e232006-09-10 08:53:59 +00003153 cat >conftest.$ac_ext <<_ACEOF
3154#line 3154 "configure"
3155#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003156#include <sys/ioctl.h>
3157_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003158if { (eval echo "$as_me:3158: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3160 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003161 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003162 rm -f conftest.er1
3163 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003164 echo "$as_me:3164: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003165 (exit $ac_status); } >/dev/null; then
3166 if test -s conftest.err; then
3167 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003168 else
3169 ac_cpp_err=
3170 fi
3171else
3172 ac_cpp_err=yes
3173fi
3174if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003175 ac_cv_header_sys_ioctl_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003176else
3177 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003178 cat conftest.$ac_ext >&5
3179 ac_cv_header_sys_ioctl_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003180fi
3181rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003182fi
Benny Prijonob466e232006-09-10 08:53:59 +00003183echo "$as_me:3183: result: $ac_cv_header_sys_ioctl_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003184echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003185if test $ac_cv_header_sys_ioctl_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003186 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003187#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003188EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003189
3190fi
3191
Benny Prijonob466e232006-09-10 08:53:59 +00003192echo "$as_me:3192: checking for sys/select.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003193echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
3194if test "${ac_cv_header_sys_select_h+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003196else
Benny Prijonob466e232006-09-10 08:53:59 +00003197 cat >conftest.$ac_ext <<_ACEOF
3198#line 3198 "configure"
3199#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003200#include <sys/select.h>
3201_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003202if { (eval echo "$as_me:3202: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003205 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003206 rm -f conftest.er1
3207 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003208 echo "$as_me:3208: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003209 (exit $ac_status); } >/dev/null; then
3210 if test -s conftest.err; then
3211 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003212 else
3213 ac_cpp_err=
3214 fi
3215else
3216 ac_cpp_err=yes
3217fi
3218if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003219 ac_cv_header_sys_select_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003220else
3221 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003222 cat conftest.$ac_ext >&5
3223 ac_cv_header_sys_select_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003224fi
3225rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003226fi
Benny Prijonob466e232006-09-10 08:53:59 +00003227echo "$as_me:3227: result: $ac_cv_header_sys_select_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003228echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003229if test $ac_cv_header_sys_select_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003230 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003231#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003232EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003233
3234fi
3235
Benny Prijonob466e232006-09-10 08:53:59 +00003236echo "$as_me:3236: checking for sys/socket.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003237echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
3238if test "${ac_cv_header_sys_socket_h+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003240else
Benny Prijonob466e232006-09-10 08:53:59 +00003241 cat >conftest.$ac_ext <<_ACEOF
3242#line 3242 "configure"
3243#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003244#include <sys/socket.h>
3245_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003246if { (eval echo "$as_me:3246: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003249 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003250 rm -f conftest.er1
3251 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003252 echo "$as_me:3252: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003256 else
3257 ac_cpp_err=
3258 fi
3259else
3260 ac_cpp_err=yes
3261fi
3262if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003263 ac_cv_header_sys_socket_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003264else
3265 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003266 cat conftest.$ac_ext >&5
3267 ac_cv_header_sys_socket_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003268fi
3269rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003270fi
Benny Prijonob466e232006-09-10 08:53:59 +00003271echo "$as_me:3271: result: $ac_cv_header_sys_socket_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003272echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003273if test $ac_cv_header_sys_socket_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003274 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003275#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003276EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003277
3278fi
3279
Benny Prijonob466e232006-09-10 08:53:59 +00003280echo "$as_me:3280: checking for sys/time.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003281echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
3282if test "${ac_cv_header_sys_time_h+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003284else
Benny Prijonob466e232006-09-10 08:53:59 +00003285 cat >conftest.$ac_ext <<_ACEOF
3286#line 3286 "configure"
3287#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003288#include <sys/time.h>
3289_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003290if { (eval echo "$as_me:3290: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3292 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003293 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003294 rm -f conftest.er1
3295 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003296 echo "$as_me:3296: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003297 (exit $ac_status); } >/dev/null; then
3298 if test -s conftest.err; then
3299 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003300 else
3301 ac_cpp_err=
3302 fi
3303else
3304 ac_cpp_err=yes
3305fi
3306if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003307 ac_cv_header_sys_time_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003308else
3309 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003310 cat conftest.$ac_ext >&5
3311 ac_cv_header_sys_time_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003312fi
3313rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003314fi
Benny Prijonob466e232006-09-10 08:53:59 +00003315echo "$as_me:3315: result: $ac_cv_header_sys_time_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003316echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003317if test $ac_cv_header_sys_time_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003318 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003319#define PJ_HAS_SYS_TIME_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003320EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003321
3322fi
3323
Benny Prijonob466e232006-09-10 08:53:59 +00003324echo "$as_me:3324: checking for sys/timeb.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003325echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
3326if test "${ac_cv_header_sys_timeb_h+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003328else
Benny Prijonob466e232006-09-10 08:53:59 +00003329 cat >conftest.$ac_ext <<_ACEOF
3330#line 3330 "configure"
3331#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003332#include <sys/timeb.h>
3333_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003334if { (eval echo "$as_me:3334: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3336 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003337 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003338 rm -f conftest.er1
3339 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003340 echo "$as_me:3340: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003341 (exit $ac_status); } >/dev/null; then
3342 if test -s conftest.err; then
3343 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003344 else
3345 ac_cpp_err=
3346 fi
3347else
3348 ac_cpp_err=yes
3349fi
3350if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003351 ac_cv_header_sys_timeb_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003352else
3353 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003354 cat conftest.$ac_ext >&5
3355 ac_cv_header_sys_timeb_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003356fi
3357rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003358fi
Benny Prijonob466e232006-09-10 08:53:59 +00003359echo "$as_me:3359: result: $ac_cv_header_sys_timeb_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003360echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003361if test $ac_cv_header_sys_timeb_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003362 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003363#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003364EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003365
3366fi
3367
Benny Prijonob466e232006-09-10 08:53:59 +00003368echo "$as_me:3368: checking for sys/types.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003369echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
3370if test "${ac_cv_header_sys_types_h+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003372else
Benny Prijonob466e232006-09-10 08:53:59 +00003373 cat >conftest.$ac_ext <<_ACEOF
3374#line 3374 "configure"
3375#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003376#include <sys/types.h>
3377_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003378if { (eval echo "$as_me:3378: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3380 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003381 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003382 rm -f conftest.er1
3383 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003384 echo "$as_me:3384: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003385 (exit $ac_status); } >/dev/null; then
3386 if test -s conftest.err; then
3387 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003388 else
3389 ac_cpp_err=
3390 fi
3391else
3392 ac_cpp_err=yes
3393fi
3394if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003395 ac_cv_header_sys_types_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003396else
3397 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003398 cat conftest.$ac_ext >&5
3399 ac_cv_header_sys_types_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003400fi
3401rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003402fi
Benny Prijonob466e232006-09-10 08:53:59 +00003403echo "$as_me:3403: result: $ac_cv_header_sys_types_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003404echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003405if test $ac_cv_header_sys_types_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003406 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003407#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003408EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003409
3410fi
3411
Benny Prijonob466e232006-09-10 08:53:59 +00003412echo "$as_me:3412: checking for time.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003413echo $ECHO_N "checking for time.h... $ECHO_C" >&6
3414if test "${ac_cv_header_time_h+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003416else
Benny Prijonob466e232006-09-10 08:53:59 +00003417 cat >conftest.$ac_ext <<_ACEOF
3418#line 3418 "configure"
3419#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003420#include <time.h>
3421_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003422if { (eval echo "$as_me:3422: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3424 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003425 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003426 rm -f conftest.er1
3427 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003428 echo "$as_me:3428: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003429 (exit $ac_status); } >/dev/null; then
3430 if test -s conftest.err; then
3431 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003432 else
3433 ac_cpp_err=
3434 fi
3435else
3436 ac_cpp_err=yes
3437fi
3438if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003439 ac_cv_header_time_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003440else
3441 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003442 cat conftest.$ac_ext >&5
3443 ac_cv_header_time_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003444fi
3445rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003446fi
Benny Prijonob466e232006-09-10 08:53:59 +00003447echo "$as_me:3447: result: $ac_cv_header_time_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003448echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003449if test $ac_cv_header_time_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003450 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003451#define PJ_HAS_TIME_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003452EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003453
3454fi
3455
Benny Prijonob466e232006-09-10 08:53:59 +00003456echo "$as_me:3456: checking for unistd.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003457echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3458if test "${ac_cv_header_unistd_h+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003460else
Benny Prijonob466e232006-09-10 08:53:59 +00003461 cat >conftest.$ac_ext <<_ACEOF
3462#line 3462 "configure"
3463#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003464#include <unistd.h>
3465_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003466if { (eval echo "$as_me:3466: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003469 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003470 rm -f conftest.er1
3471 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003472 echo "$as_me:3472: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003473 (exit $ac_status); } >/dev/null; then
3474 if test -s conftest.err; then
3475 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003476 else
3477 ac_cpp_err=
3478 fi
3479else
3480 ac_cpp_err=yes
3481fi
3482if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003483 ac_cv_header_unistd_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003484else
3485 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003486 cat conftest.$ac_ext >&5
3487 ac_cv_header_unistd_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003488fi
3489rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003490fi
Benny Prijonob466e232006-09-10 08:53:59 +00003491echo "$as_me:3491: result: $ac_cv_header_unistd_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003492echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003493if test $ac_cv_header_unistd_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003494 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003495#define PJ_HAS_UNISTD_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003496EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003497
3498fi
3499
Benny Prijonob466e232006-09-10 08:53:59 +00003500echo "$as_me:3500: checking for mswsock.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003501echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
3502if test "${ac_cv_header_mswsock_h+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003504else
Benny Prijonob466e232006-09-10 08:53:59 +00003505 cat >conftest.$ac_ext <<_ACEOF
3506#line 3506 "configure"
3507#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003508#include <mswsock.h>
3509_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003510if { (eval echo "$as_me:3510: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3512 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003513 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003514 rm -f conftest.er1
3515 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003516 echo "$as_me:3516: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003517 (exit $ac_status); } >/dev/null; then
3518 if test -s conftest.err; then
3519 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003520 else
3521 ac_cpp_err=
3522 fi
3523else
3524 ac_cpp_err=yes
3525fi
3526if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003527 ac_cv_header_mswsock_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003528else
3529 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003530 cat conftest.$ac_ext >&5
3531 ac_cv_header_mswsock_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003532fi
3533rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003534fi
Benny Prijonob466e232006-09-10 08:53:59 +00003535echo "$as_me:3535: result: $ac_cv_header_mswsock_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003536echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003537if test $ac_cv_header_mswsock_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003538 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003539#define PJ_HAS_MSWSOCK_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003540EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003541
3542fi
3543
Benny Prijonob466e232006-09-10 08:53:59 +00003544echo "$as_me:3544: checking for winsock.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003545echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
3546if test "${ac_cv_header_winsock_h+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003548else
Benny Prijonob466e232006-09-10 08:53:59 +00003549 cat >conftest.$ac_ext <<_ACEOF
3550#line 3550 "configure"
3551#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003552#include <winsock.h>
3553_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003554if { (eval echo "$as_me:3554: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3556 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003557 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003558 rm -f conftest.er1
3559 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003560 echo "$as_me:3560: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003561 (exit $ac_status); } >/dev/null; then
3562 if test -s conftest.err; then
3563 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003564 else
3565 ac_cpp_err=
3566 fi
3567else
3568 ac_cpp_err=yes
3569fi
3570if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003571 ac_cv_header_winsock_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003572else
3573 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003574 cat conftest.$ac_ext >&5
3575 ac_cv_header_winsock_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003576fi
3577rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003578fi
Benny Prijonob466e232006-09-10 08:53:59 +00003579echo "$as_me:3579: result: $ac_cv_header_winsock_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003580echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003581if test $ac_cv_header_winsock_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003582 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003583#define PJ_HAS_WINSOCK_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003584EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003585
3586fi
3587
Benny Prijonob466e232006-09-10 08:53:59 +00003588echo "$as_me:3588: checking for winsock2.h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003589echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
3590if test "${ac_cv_header_winsock2_h+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003592else
Benny Prijonob466e232006-09-10 08:53:59 +00003593 cat >conftest.$ac_ext <<_ACEOF
3594#line 3594 "configure"
3595#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003596#include <winsock2.h>
3597_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003598if { (eval echo "$as_me:3598: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3600 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003601 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003602 rm -f conftest.er1
3603 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003604 echo "$as_me:3604: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003605 (exit $ac_status); } >/dev/null; then
3606 if test -s conftest.err; then
3607 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003608 else
3609 ac_cpp_err=
3610 fi
3611else
3612 ac_cpp_err=yes
3613fi
3614if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003615 ac_cv_header_winsock2_h=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003616else
3617 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003618 cat conftest.$ac_ext >&5
3619 ac_cv_header_winsock2_h=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003620fi
3621rm -f conftest.err conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003622fi
Benny Prijonob466e232006-09-10 08:53:59 +00003623echo "$as_me:3623: result: $ac_cv_header_winsock2_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003624echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003625if test $ac_cv_header_winsock2_h = yes; then
Benny Prijonob466e232006-09-10 08:53:59 +00003626 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003627#define PJ_HAS_WINSOCK2_H 1
Benny Prijonob466e232006-09-10 08:53:59 +00003628EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003629
3630fi
3631
Benny Prijonob466e232006-09-10 08:53:59 +00003632echo "$as_me:3632: result: Setting PJ_OS_NAME to $target" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003633echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijonob466e232006-09-10 08:53:59 +00003634cat >>confdefs.h <<EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003635#define PJ_OS_NAME "$target"
Benny Prijonob466e232006-09-10 08:53:59 +00003636EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003637
Benny Prijonob466e232006-09-10 08:53:59 +00003638echo "$as_me:3638: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003639echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijonob466e232006-09-10 08:53:59 +00003640cat >>confdefs.h <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003641#define PJ_HAS_ERRNO_VAR 1
Benny Prijonob466e232006-09-10 08:53:59 +00003642EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003643
Benny Prijonob466e232006-09-10 08:53:59 +00003644echo "$as_me:3644: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003645echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijonob466e232006-09-10 08:53:59 +00003646cat >>confdefs.h <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003647#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijonob466e232006-09-10 08:53:59 +00003648EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003649
Benny Prijonob466e232006-09-10 08:53:59 +00003650echo "$as_me:3650: result: Setting PJ_HAS_MALLOC to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003651echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijonob466e232006-09-10 08:53:59 +00003652cat >>confdefs.h <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003653#define PJ_HAS_MALLOC 1
Benny Prijonob466e232006-09-10 08:53:59 +00003654EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003655
Benny Prijonob466e232006-09-10 08:53:59 +00003656echo "$as_me:3656: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003657echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijonob466e232006-09-10 08:53:59 +00003658cat >>confdefs.h <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003659#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijonob466e232006-09-10 08:53:59 +00003660EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003661
Benny Prijonob466e232006-09-10 08:53:59 +00003662echo "$as_me:3662: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003663echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijonob466e232006-09-10 08:53:59 +00003664cat >>confdefs.h <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003665#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijonob466e232006-09-10 08:53:59 +00003666EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003667
Benny Prijonob466e232006-09-10 08:53:59 +00003668echo "$as_me:3668: checking if inet_aton is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003669echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6
3670cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003671#line 3671 "configure"
3672#include "confdefs.h"
3673#include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003674int
3675main ()
3676{
3677inet_aton(0, 0);
3678 ;
3679 return 0;
3680}
3681_ACEOF
3682rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00003683if { (eval echo "$as_me:3683: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003685 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003686 echo "$as_me:3686: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003687 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00003688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:3689: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003690 (eval $ac_try) 2>&5
3691 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003692 echo "$as_me:3692: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003693 (exit $ac_status); }; }; then
Benny Prijonob466e232006-09-10 08:53:59 +00003694 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003695#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijonob466e232006-09-10 08:53:59 +00003696EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003697
Benny Prijonob466e232006-09-10 08:53:59 +00003698 echo "$as_me:3698: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003699echo "${ECHO_T}yes" >&6
3700else
3701 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003702cat conftest.$ac_ext >&5
3703echo "$as_me:3703: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003704echo "${ECHO_T}no" >&6
3705fi
Benny Prijonob466e232006-09-10 08:53:59 +00003706rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003707
Benny Prijonob466e232006-09-10 08:53:59 +00003708echo "$as_me:3708: checking if sockaddr_in has sin_len member" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003709echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
3710cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003711#line 3711 "configure"
3712#include "confdefs.h"
3713#include <sys/types.h>
3714 #include <sys/socket.h>
3715 #include <netinet/in.h>
3716 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003717int
3718main ()
3719{
3720struct sockaddr_in a; a.sin_len=0;
3721 ;
3722 return 0;
3723}
3724_ACEOF
3725rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00003726if { (eval echo "$as_me:3726: \"$ac_compile\"") >&5
3727 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003728 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003729 echo "$as_me:3729: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003730 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00003731 { ac_try='test -s conftest.$ac_objext'
3732 { (eval echo "$as_me:3732: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003733 (eval $ac_try) 2>&5
3734 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003735 echo "$as_me:3735: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003736 (exit $ac_status); }; }; then
Benny Prijonob466e232006-09-10 08:53:59 +00003737 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003738#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijonob466e232006-09-10 08:53:59 +00003739EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003740
Benny Prijonob466e232006-09-10 08:53:59 +00003741 echo "$as_me:3741: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003742echo "${ECHO_T}yes" >&6
3743else
3744 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003745cat conftest.$ac_ext >&5
3746echo "$as_me:3746: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003747echo "${ECHO_T}no" >&6
3748fi
Benny Prijonob466e232006-09-10 08:53:59 +00003749rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003750
Benny Prijonob466e232006-09-10 08:53:59 +00003751echo "$as_me:3751: checking if socklen_t is available" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00003752echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
3753cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003754#line 3754 "configure"
3755#include "confdefs.h"
Benny Prijono30f85c62006-09-09 20:05:33 +00003756#include <unistd.h>
3757int
3758main ()
3759{
3760socklen_t xxx = 0;
3761 ;
3762 return 0;
3763}
3764_ACEOF
3765rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00003766if { (eval echo "$as_me:3766: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>&5
Benny Prijono30f85c62006-09-09 20:05:33 +00003768 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003769 echo "$as_me:3769: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00003770 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00003771 { ac_try='test -s conftest.$ac_objext'
3772 { (eval echo "$as_me:3772: \"$ac_try\"") >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00003773 (eval $ac_try) 2>&5
3774 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003775 echo "$as_me:3775: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00003776 (exit $ac_status); }; }; then
Benny Prijonob466e232006-09-10 08:53:59 +00003777 cat >>confdefs.h <<\EOF
Benny Prijono30f85c62006-09-09 20:05:33 +00003778#define PJ_HAS_SOCKLEN_T 1
Benny Prijonob466e232006-09-10 08:53:59 +00003779EOF
Benny Prijono30f85c62006-09-09 20:05:33 +00003780
Benny Prijonob466e232006-09-10 08:53:59 +00003781 echo "$as_me:3781: result: yes" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00003782echo "${ECHO_T}yes" >&6
3783else
3784 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003785cat conftest.$ac_ext >&5
3786echo "$as_me:3786: result: no" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00003787echo "${ECHO_T}no" >&6
3788fi
Benny Prijonob466e232006-09-10 08:53:59 +00003789rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00003790
Benny Prijonob466e232006-09-10 08:53:59 +00003791echo "$as_me:3791: checking if SO_ERROR is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003792echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
3793cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003794#line 3794 "configure"
3795#include "confdefs.h"
3796#include <sys/types.h>
3797 #include <sys/socket.h>
3798 #include <netinet/in.h>
3799 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003800int
3801main ()
3802{
3803int i=SO_ERROR;
3804 ;
3805 return 0;
3806}
3807_ACEOF
3808rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00003809if { (eval echo "$as_me:3809: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003811 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003812 echo "$as_me:3812: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003813 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00003814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:3815: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003816 (eval $ac_try) 2>&5
3817 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003818 echo "$as_me:3818: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003819 (exit $ac_status); }; }; then
Benny Prijonob466e232006-09-10 08:53:59 +00003820 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003821#define PJ_HAS_SO_ERROR 1
Benny Prijonob466e232006-09-10 08:53:59 +00003822EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003823
Benny Prijonob466e232006-09-10 08:53:59 +00003824 echo "$as_me:3824: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003825echo "${ECHO_T}yes" >&6
3826else
3827 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003828cat conftest.$ac_ext >&5
3829echo "$as_me:3829: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003830echo "${ECHO_T}no" >&6
3831fi
Benny Prijonob466e232006-09-10 08:53:59 +00003832rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003833
Benny Prijonob466e232006-09-10 08:53:59 +00003834echo "$as_me:3834: checking if pthread_rwlock_t is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003835echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
3836cat >conftest.$ac_ext <<_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003837#line 3837 "configure"
3838#include "confdefs.h"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003839#include <pthread.h>
3840int
3841main ()
3842{
3843pthread_rwlock_t *x;
3844 ;
3845 return 0;
3846}
3847_ACEOF
3848rm -f conftest.$ac_objext
Benny Prijonob466e232006-09-10 08:53:59 +00003849if { (eval echo "$as_me:3849: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003851 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003852 echo "$as_me:3852: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003853 (exit $ac_status); } &&
Benny Prijonob466e232006-09-10 08:53:59 +00003854 { ac_try='test -s conftest.$ac_objext'
3855 { (eval echo "$as_me:3855: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003856 (eval $ac_try) 2>&5
3857 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003858 echo "$as_me:3858: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003859 (exit $ac_status); }; }; then
Benny Prijonob466e232006-09-10 08:53:59 +00003860 cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003861#define PJ_EMULATE_RWMUTEX 0
Benny Prijonob466e232006-09-10 08:53:59 +00003862EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003863
Benny Prijonob466e232006-09-10 08:53:59 +00003864 echo "$as_me:3864: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003865echo "${ECHO_T}yes" >&6
3866else
3867 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003868cat conftest.$ac_ext >&5
3869cat >>confdefs.h <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003870#define PJ_EMULATE_RWMUTEX 1
Benny Prijonob466e232006-09-10 08:53:59 +00003871EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003872
Benny Prijonob466e232006-09-10 08:53:59 +00003873 echo "$as_me:3873: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003874echo "${ECHO_T}no" >&6
3875fi
Benny Prijonob466e232006-09-10 08:53:59 +00003876rm -f conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003877
3878case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00003879 *darwin*)
3880 ac_pjmedia_snd=pa_darwinos
3881 echo "$as_me:3881: result: Checking sound device backend... coreaudio" >&5
3882echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
3883 LIBS="$LIBS -framework CoreAudio"
3884 ;;
3885 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003886 ac_pjmedia_snd=pa_win32
Benny Prijonob466e232006-09-10 08:53:59 +00003887 echo "$as_me:3887: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003888echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
3889 ;;
3890 *rtems*)
3891 ac_pjmedia_snd=null
Benny Prijonob466e232006-09-10 08:53:59 +00003892 echo "$as_me:3892: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003893echo "${ECHO_T}Checking sound device backend... null sound" >&6
3894 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003895 *)
3896 ac_pjmedia_snd=pa_unix
Benny Prijonob466e232006-09-10 08:53:59 +00003897 echo "$as_me:3897: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003898echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
3899if test "${ac_cv_header_alsa_version_h+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003901else
Benny Prijonob466e232006-09-10 08:53:59 +00003902 cat >conftest.$ac_ext <<_ACEOF
3903#line 3903 "configure"
3904#include "confdefs.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003905#include <alsa/version.h>
3906_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003907if { (eval echo "$as_me:3907: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3909 ac_status=$?
Benny Prijonob466e232006-09-10 08:53:59 +00003910 egrep -v '^ *\+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003911 rm -f conftest.er1
3912 cat conftest.err >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003913 echo "$as_me:3913: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003914 (exit $ac_status); } >/dev/null; then
3915 if test -s conftest.err; then
3916 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003917 else
3918 ac_cpp_err=
3919 fi
3920else
3921 ac_cpp_err=yes
3922fi
3923if test -z "$ac_cpp_err"; then
Benny Prijonob466e232006-09-10 08:53:59 +00003924 ac_cv_header_alsa_version_h=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003925else
3926 echo "$as_me: failed program was:" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00003927 cat conftest.$ac_ext >&5
3928 ac_cv_header_alsa_version_h=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003929fi
3930rm -f conftest.err conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003931fi
Benny Prijonob466e232006-09-10 08:53:59 +00003932echo "$as_me:3932: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003933echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003934if test $ac_cv_header_alsa_version_h = yes; then
3935 ac_pa_use_alsa=1
3936
3937 LIBS="$LIBS -lasound"
3938
3939else
3940 ac_pa_use_alsa=0
3941
3942fi
3943
Benny Prijonob466e232006-09-10 08:53:59 +00003944 echo "$as_me:3944: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003945echo "${ECHO_T}Checking sound device backend... unix" >&6
3946 ;;
3947esac
3948
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003949# Check whether --enable-small-filter or --disable-small-filter was given.
3950if test "${enable_small_filter+set}" = set; then
3951 enableval="$enable_small_filter"
3952 if test "$enable_small_filter" = "no"; then
3953 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijonob466e232006-09-10 08:53:59 +00003954 echo "$as_me:3954: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003955echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
3956 fi
3957else
Benny Prijonob466e232006-09-10 08:53:59 +00003958 echo "$as_me:3958: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003959echo "${ECHO_T}Checking if small filter is disabled... no" >&6
3960fi;
3961
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003962# Check whether --enable-large-filter or --disable-large-filter was given.
3963if test "${enable_large_filter+set}" = set; then
3964 enableval="$enable_large_filter"
3965 if test "$enable_large_filter" = "no"; then
3966 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijonob466e232006-09-10 08:53:59 +00003967 echo "$as_me:3967: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003968echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
3969 fi
3970else
Benny Prijonob466e232006-09-10 08:53:59 +00003971 echo "$as_me:3971: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003972echo "${ECHO_T}Checking if large filter is disabled... no" >&6
3973fi;
3974
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003975# Check whether --enable-g711-plc or --disable-g711-plc was given.
3976if test "${enable_g711_plc+set}" = set; then
3977 enableval="$enable_g711_plc"
3978 if test "$enable_g711_plc" = "no"; then
3979 ac_no_g711_plc='-DPJMEDIA_HAS_G711_PLC=0'
Benny Prijonob466e232006-09-10 08:53:59 +00003980 echo "$as_me:3980: result: Checking if G.711 Annex A PLC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003981echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...yes" >&6
3982 fi
3983else
Benny Prijonob466e232006-09-10 08:53:59 +00003984 echo "$as_me:3984: result: Checking if G.711 Annex A PLC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003985echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...no" >&6
3986fi;
3987
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003988# Check whether --enable-speex-aec or --disable-speex-aec was given.
3989if test "${enable_speex_aec+set}" = set; then
3990 enableval="$enable_speex_aec"
3991 if test "$enable_speex_aec" = "no"; then
3992 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijonob466e232006-09-10 08:53:59 +00003993 echo "$as_me:3993: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003994echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
3995 fi
3996else
Benny Prijonob466e232006-09-10 08:53:59 +00003997 echo "$as_me:3997: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003998echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
3999fi;
4000
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004001# Check whether --enable-g711-codec or --disable-g711-codec was given.
4002if test "${enable_g711_codec+set}" = set; then
4003 enableval="$enable_g711_codec"
4004 if test "$enable_g711_codec" = "no"; then
4005 ac_no_g711_codec=1
Benny Prijonob466e232006-09-10 08:53:59 +00004006 echo "$as_me:4006: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004007echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
4008 fi
4009else
Benny Prijonob466e232006-09-10 08:53:59 +00004010 echo "$as_me:4010: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004011echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
4012fi;
4013
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004014# Check whether --enable-l16-codec or --disable-l16-codec was given.
4015if test "${enable_l16_codec+set}" = set; then
4016 enableval="$enable_l16_codec"
4017 if test "$enable_l16_codec" = "no"; then
4018 ac_no_l16_codec=1
Benny Prijonob466e232006-09-10 08:53:59 +00004019 echo "$as_me:4019: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004020echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
4021 fi
4022else
Benny Prijonob466e232006-09-10 08:53:59 +00004023 echo "$as_me:4023: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004024echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
4025fi;
4026
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004027# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
4028if test "${enable_gsm_codec+set}" = set; then
4029 enableval="$enable_gsm_codec"
4030 if test "$enable_gsm_codec" = "no"; then
4031 ac_no_gsm_codec=1
Benny Prijonob466e232006-09-10 08:53:59 +00004032 echo "$as_me:4032: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004033echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
4034 fi
4035else
Benny Prijonob466e232006-09-10 08:53:59 +00004036 echo "$as_me:4036: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004037echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
4038fi;
4039
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004040# Check whether --enable-speex-codec or --disable-speex-codec was given.
4041if test "${enable_speex_codec+set}" = set; then
4042 enableval="$enable_speex_codec"
4043 if test "$enable_speex_codec" = "no"; then
4044 ac_no_speex_codec=1
Benny Prijonob466e232006-09-10 08:53:59 +00004045 echo "$as_me:4045: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004046echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
4047 fi
4048else
Benny Prijonob466e232006-09-10 08:53:59 +00004049 echo "$as_me:4049: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004050echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
4051fi;
4052
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004053# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
4054if test "${enable_ilbc_codec+set}" = set; then
4055 enableval="$enable_ilbc_codec"
4056 if test "$enable_ilbc_codec" = "no"; then
4057 ac_no_ilbc_codec=1
Benny Prijonob466e232006-09-10 08:53:59 +00004058 echo "$as_me:4058: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004059echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
4060 fi
4061else
Benny Prijonob466e232006-09-10 08:53:59 +00004062 echo "$as_me:4062: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004063echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
4064fi;
4065
Benny Prijonob466e232006-09-10 08:53:59 +00004066echo "$as_me:4066: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004067echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004068case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00004069 *rtems*) cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004070#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijonob466e232006-09-10 08:53:59 +00004071EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004072
Benny Prijonob466e232006-09-10 08:53:59 +00004073 echo "$as_me:4073: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004074echo "${ECHO_T}yes" >&6
4075 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00004076 *) cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004077#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijonob466e232006-09-10 08:53:59 +00004078EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004079
Benny Prijonob466e232006-09-10 08:53:59 +00004080 echo "$as_me:4080: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004081echo "${ECHO_T}no (default)" >&6
Benny Prijonob466e232006-09-10 08:53:59 +00004082 echo "$as_me:4082: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004083echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
4084 ;;
4085esac
4086
Benny Prijonob466e232006-09-10 08:53:59 +00004087echo "$as_me:4087: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004088echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
4089case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00004090 *rtems*) cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004091#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijonob466e232006-09-10 08:53:59 +00004092EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004093
Benny Prijonob466e232006-09-10 08:53:59 +00004094 echo "$as_me:4094: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004095echo "${ECHO_T}yes" >&6
4096 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00004097 *) cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004098#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijonob466e232006-09-10 08:53:59 +00004099EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004100
Benny Prijonob466e232006-09-10 08:53:59 +00004101 echo "$as_me:4101: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004102echo "${ECHO_T}no (default)" >&6
4103 ;;
4104esac
4105
Benny Prijonob466e232006-09-10 08:53:59 +00004106echo "$as_me:4106: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004107echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
4108case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00004109 *rtems*) cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004110#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijonob466e232006-09-10 08:53:59 +00004111EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004112
Benny Prijonob466e232006-09-10 08:53:59 +00004113 echo "$as_me:4113: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004114echo "${ECHO_T}yes" >&6
4115 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00004116 *) cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004117#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijonob466e232006-09-10 08:53:59 +00004118EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004119
Benny Prijonob466e232006-09-10 08:53:59 +00004120 echo "$as_me:4120: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004121echo "${ECHO_T}no (default)" >&6
4122 ;;
4123esac
4124
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004125case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00004126 *) cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004127#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijonob466e232006-09-10 08:53:59 +00004128EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004129
Benny Prijonob466e232006-09-10 08:53:59 +00004130 echo "$as_me:4130: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004131echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
4132 ;;
4133esac
4134
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004135case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00004136 *) cat >>confdefs.h <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004137#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijonob466e232006-09-10 08:53:59 +00004138EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004139
Benny Prijonob466e232006-09-10 08:53:59 +00004140 echo "$as_me:4140: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004141echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
4142 ;;
4143esac
4144
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004145if test "$build" = "$host"; then
4146 ac_cross_compile=
4147else
4148 ac_cross_compile=${host}-
4149fi
4150ac_linux_poll=select
4151
4152ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004153
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004154case $target in
4155 *rtems*)
4156 ac_main_obj=main_rtems.o
4157 ;;
4158 *)
4159 ac_main_obj=main.o
4160 ;;
4161esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004162
4163cat >confcache <<\_ACEOF
4164# This file is a shell script that caches the results of configure
4165# tests run on this system so they can be shared between configure
4166# scripts and configure runs, see configure's option --config-cache.
4167# It is not useful on other systems. If it contains results you don't
4168# want to keep, you may remove or edit it.
4169#
4170# config.status only pays attention to the cache file if you give it
4171# the --recheck option to rerun configure.
4172#
Benny Prijonob466e232006-09-10 08:53:59 +00004173# `ac_cv_env_foo' variables (set or unset) will be overriden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004174# loading this file, other *unset* `ac_cv_foo' will be assigned the
4175# following values.
4176
4177_ACEOF
4178
4179# The following way of writing the cache mishandles newlines in values,
4180# but we know of no workaround that is simple, portable, and efficient.
4181# So, don't put newlines in cache variables' values.
4182# Ultrix sh set writes to stderr and can't be redirected directly,
4183# and sets the high bit in the cache file unless we assign to the vars.
4184{
4185 (set) 2>&1 |
4186 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4187 *ac_space=\ *)
4188 # `set' does not quote correctly, so add quotes (double-quote
4189 # substitution turns \\\\ into \\, and sed turns \\ into \).
4190 sed -n \
Benny Prijonob466e232006-09-10 08:53:59 +00004191 "s/'/'\\\\''/g;
4192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004193 ;;
4194 *)
4195 # `set' quotes correctly as required by POSIX, so do not add quotes.
4196 sed -n \
Benny Prijonob466e232006-09-10 08:53:59 +00004197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004198 ;;
4199 esac;
4200} |
4201 sed '
4202 t clear
4203 : clear
4204 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4205 t end
4206 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4207 : end' >>confcache
Benny Prijonob466e232006-09-10 08:53:59 +00004208if cmp -s $cache_file confcache; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004209 if test -w $cache_file; then
4210 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4211 cat confcache >$cache_file
4212 else
4213 echo "not updating unwritable cache $cache_file"
4214 fi
4215fi
4216rm -f confcache
4217
4218test "x$prefix" = xNONE && prefix=$ac_default_prefix
4219# Let make expand exec_prefix.
4220test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4221
4222# VPATH may cause trouble with some makes, so we remove $(srcdir),
4223# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4224# trailing colons and then remove the whole line if VPATH becomes empty
4225# (actually we leave an empty line to preserve line numbers).
4226if test "x$srcdir" = x.; then
Benny Prijonob466e232006-09-10 08:53:59 +00004227 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004228s/:*\$(srcdir):*/:/;
4229s/:*\${srcdir}:*/:/;
4230s/:*@srcdir@:*/:/;
Benny Prijonob466e232006-09-10 08:53:59 +00004231s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004232s/:*$//;
Benny Prijonob466e232006-09-10 08:53:59 +00004233s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004234}'
4235fi
4236
4237DEFS=-DHAVE_CONFIG_H
4238
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004239: ${CONFIG_STATUS=./config.status}
4240ac_clean_files_save=$ac_clean_files
4241ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijonob466e232006-09-10 08:53:59 +00004242{ echo "$as_me:4242: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004243echo "$as_me: creating $CONFIG_STATUS" >&6;}
4244cat >$CONFIG_STATUS <<_ACEOF
4245#! $SHELL
Benny Prijonob466e232006-09-10 08:53:59 +00004246# Generated automatically by configure.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004247# Run this file to recreate the current configuration.
4248# Compiler output produced by configure, useful for debugging
4249# configure, is in config.log if it exists.
4250
4251debug=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004252SHELL=\${CONFIG_SHELL-$SHELL}
Benny Prijonob466e232006-09-10 08:53:59 +00004253ac_cs_invocation="\$0 \$@"
4254
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004255_ACEOF
4256
4257cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004258# Be Bourne compatible
4259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4260 emulate sh
4261 NULLCMD=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004262elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4263 set -o posix
4264fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004265
4266# Name of the executable.
Benny Prijonob466e232006-09-10 08:53:59 +00004267as_me=`echo "$0" |sed 's,.*[\\/],,'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004268
4269if expr a : '\(a\)' >/dev/null 2>&1; then
4270 as_expr=expr
4271else
4272 as_expr=false
4273fi
4274
4275rm -f conf$$ conf$$.exe conf$$.file
4276echo >conf$$.file
4277if ln -s conf$$.file conf$$ 2>/dev/null; then
4278 # We could just check for DJGPP; but this test a) works b) is more generic
4279 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4280 if test -f conf$$.exe; then
4281 # Don't use ln at all; we don't have any links
4282 as_ln_s='cp -p'
4283 else
4284 as_ln_s='ln -s'
4285 fi
4286elif ln conf$$.file conf$$ 2>/dev/null; then
4287 as_ln_s=ln
4288else
4289 as_ln_s='cp -p'
4290fi
4291rm -f conf$$ conf$$.exe conf$$.file
4292
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004293as_executable_p="test -f"
4294
Benny Prijonob466e232006-09-10 08:53:59 +00004295# Support unset when possible.
4296if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4297 as_unset=unset
4298else
4299 as_unset=false
4300fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004301
Benny Prijonob466e232006-09-10 08:53:59 +00004302# NLS nuisances.
4303$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4304$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4305$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4306$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4307$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4308$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4309$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4310$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004311
4312# IFS
4313# We need space, tab and new line, in precisely that order.
4314as_nl='
4315'
4316IFS=" $as_nl"
4317
4318# CDPATH.
Benny Prijonob466e232006-09-10 08:53:59 +00004319$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004320
4321exec 6>&1
4322
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004323_ACEOF
4324
4325# Files that config.status was made for.
4326if test -n "$ac_config_files"; then
4327 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4328fi
4329
4330if test -n "$ac_config_headers"; then
4331 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4332fi
4333
4334if test -n "$ac_config_links"; then
4335 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4336fi
4337
4338if test -n "$ac_config_commands"; then
4339 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4340fi
4341
Benny Prijonob466e232006-09-10 08:53:59 +00004342cat >>$CONFIG_STATUS <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004343
4344ac_cs_usage="\
4345\`$as_me' instantiates files from templates according to the
4346current configuration.
4347
4348Usage: $0 [OPTIONS] [FILE]...
4349
4350 -h, --help print this help, then exit
4351 -V, --version print version number, then exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004352 -d, --debug don't remove temporary files
4353 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004354 --file=FILE[:TEMPLATE]
Benny Prijonob466e232006-09-10 08:53:59 +00004355 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004356 --header=FILE[:TEMPLATE]
Benny Prijonob466e232006-09-10 08:53:59 +00004357 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004358
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004359Configuration files:
4360$config_files
4361
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004362Configuration headers:
4363$config_headers
4364
4365Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonob466e232006-09-10 08:53:59 +00004366EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004367
Benny Prijonob466e232006-09-10 08:53:59 +00004368cat >>$CONFIG_STATUS <<EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004369ac_cs_version="\\
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004370pjproject config.status 0.5.8
Benny Prijonob466e232006-09-10 08:53:59 +00004371configured by $0, generated by GNU Autoconf 2.52,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004372 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4373
Benny Prijonob466e232006-09-10 08:53:59 +00004374Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4375Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004376This config.status script is free software; the Free Software Foundation
4377gives unlimited permission to copy, distribute and modify it."
4378srcdir=$srcdir
Benny Prijonob466e232006-09-10 08:53:59 +00004379EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004380
Benny Prijonob466e232006-09-10 08:53:59 +00004381cat >>$CONFIG_STATUS <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004382# If no file are specified by the user, then we need to provide default
4383# value. By we need to know if files were specified by the user.
4384ac_need_defaults=:
4385while test $# != 0
4386do
4387 case $1 in
4388 --*=*)
4389 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4390 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijonob466e232006-09-10 08:53:59 +00004391 shift
4392 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4393 shift
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004394 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00004395 -*);;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004396 *) # This is not an option, so the user has probably given explicit
4397 # arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004398 ac_need_defaults=false;;
4399 esac
4400
Benny Prijonob466e232006-09-10 08:53:59 +00004401 case $1 in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004402 # Handling of the options.
Benny Prijonob466e232006-09-10 08:53:59 +00004403EOF
4404cat >>$CONFIG_STATUS <<EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijonob466e232006-09-10 08:53:59 +00004406 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4407 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4408EOF
4409cat >>$CONFIG_STATUS <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004410 --version | --vers* | -V )
4411 echo "$ac_cs_version"; exit 0 ;;
4412 --he | --h)
4413 # Conflict between --help and --header
Benny Prijonob466e232006-09-10 08:53:59 +00004414 { { echo "$as_me:4414: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004415Try \`$0 --help' for more information." >&5
4416echo "$as_me: error: ambiguous option: $1
4417Try \`$0 --help' for more information." >&2;}
4418 { (exit 1); exit 1; }; };;
4419 --help | --hel | -h )
4420 echo "$ac_cs_usage"; exit 0 ;;
4421 --debug | --d* | -d )
4422 debug=: ;;
4423 --file | --fil | --fi | --f )
Benny Prijonob466e232006-09-10 08:53:59 +00004424 shift
4425 CONFIG_FILES="$CONFIG_FILES $1"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004426 ac_need_defaults=false;;
4427 --header | --heade | --head | --hea )
Benny Prijonob466e232006-09-10 08:53:59 +00004428 shift
4429 CONFIG_HEADERS="$CONFIG_HEADERS $1"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004430 ac_need_defaults=false;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004431
4432 # This is an error.
Benny Prijonob466e232006-09-10 08:53:59 +00004433 -*) { { echo "$as_me:4433: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004434Try \`$0 --help' for more information." >&5
4435echo "$as_me: error: unrecognized option: $1
4436Try \`$0 --help' for more information." >&2;}
4437 { (exit 1); exit 1; }; } ;;
4438
4439 *) ac_config_targets="$ac_config_targets $1" ;;
4440
4441 esac
4442 shift
4443done
4444
Benny Prijonob466e232006-09-10 08:53:59 +00004445exec 5>>config.log
4446cat >&5 << _ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004447
Benny Prijonob466e232006-09-10 08:53:59 +00004448## ----------------------- ##
4449## Running config.status. ##
4450## ----------------------- ##
4451
4452This file was extended by $as_me (pjproject 0.5.8) 2.52, executed with
4453 CONFIG_FILES = $CONFIG_FILES
4454 CONFIG_HEADERS = $CONFIG_HEADERS
4455 CONFIG_LINKS = $CONFIG_LINKS
4456 CONFIG_COMMANDS = $CONFIG_COMMANDS
4457 > $ac_cs_invocation
4458on `(hostname || uname -n) 2>/dev/null | sed 1q`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004459
4460_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00004461EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004462
Benny Prijonob466e232006-09-10 08:53:59 +00004463cat >>$CONFIG_STATUS <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004464for ac_config_target in $ac_config_targets
4465do
4466 case "$ac_config_target" in
4467 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004468 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
4469 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
4470 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
4471 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
4472 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
4473 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004474 "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004475 "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
Benny Prijonob466e232006-09-10 08:53:59 +00004476 *) { { echo "$as_me:4476: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004477echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4478 { (exit 1); exit 1; }; };;
4479 esac
4480done
4481
4482# If the user did not use the arguments to specify the items to instantiate,
4483# then the envvar interface is used. Set only those that are not.
4484# We use the long form for the default assignment because of an extremely
4485# bizarre bug on SunOS 4.1.3.
4486if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004487 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004488 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4489fi
4490
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004491# Create a temporary directory, and hook for its removal unless debugging.
4492$debug ||
4493{
4494 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4495 trap '{ (exit 1); exit 1; }' 1 2 13 15
4496}
4497
4498# Create a (secure) tmp directory for tmp files.
Benny Prijonob466e232006-09-10 08:53:59 +00004499: ${TMPDIR=/tmp}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004500{
Benny Prijonob466e232006-09-10 08:53:59 +00004501 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004502 test -n "$tmp" && test -d "$tmp"
4503} ||
4504{
Benny Prijonob466e232006-09-10 08:53:59 +00004505 tmp=$TMPDIR/cs$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004506 (umask 077 && mkdir $tmp)
4507} ||
4508{
Benny Prijonob466e232006-09-10 08:53:59 +00004509 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004510 { (exit 1); exit 1; }
4511}
4512
Benny Prijonob466e232006-09-10 08:53:59 +00004513EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004514
Benny Prijonob466e232006-09-10 08:53:59 +00004515cat >>$CONFIG_STATUS <<EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004516
4517#
4518# CONFIG_FILES section.
4519#
4520
4521# No need to generate the scripts if there are no CONFIG_FILES.
4522# This happens for instance when ./config.status config.h
4523if test -n "\$CONFIG_FILES"; then
4524 # Protect against being on the right side of a sed subst in config.status.
4525 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4526 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4527s,@SHELL@,$SHELL,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004528s,@exec_prefix@,$exec_prefix,;t t
4529s,@prefix@,$prefix,;t t
4530s,@program_transform_name@,$program_transform_name,;t t
4531s,@bindir@,$bindir,;t t
4532s,@sbindir@,$sbindir,;t t
4533s,@libexecdir@,$libexecdir,;t t
4534s,@datadir@,$datadir,;t t
4535s,@sysconfdir@,$sysconfdir,;t t
4536s,@sharedstatedir@,$sharedstatedir,;t t
4537s,@localstatedir@,$localstatedir,;t t
4538s,@libdir@,$libdir,;t t
4539s,@includedir@,$includedir,;t t
4540s,@oldincludedir@,$oldincludedir,;t t
4541s,@infodir@,$infodir,;t t
4542s,@mandir@,$mandir,;t t
Benny Prijonob466e232006-09-10 08:53:59 +00004543s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4544s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4545s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4546s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4547s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004548s,@build_alias@,$build_alias,;t t
4549s,@host_alias@,$host_alias,;t t
4550s,@target_alias@,$target_alias,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004551s,@ECHO_C@,$ECHO_C,;t t
4552s,@ECHO_N@,$ECHO_N,;t t
4553s,@ECHO_T@,$ECHO_T,;t t
Benny Prijonob466e232006-09-10 08:53:59 +00004554s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4555s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004556s,@LIBS@,$LIBS,;t t
4557s,@build@,$build,;t t
4558s,@build_cpu@,$build_cpu,;t t
4559s,@build_vendor@,$build_vendor,;t t
4560s,@build_os@,$build_os,;t t
4561s,@host@,$host,;t t
4562s,@host_cpu@,$host_cpu,;t t
4563s,@host_vendor@,$host_vendor,;t t
4564s,@host_os@,$host_os,;t t
4565s,@target@,$target,;t t
4566s,@target_cpu@,$target_cpu,;t t
4567s,@target_vendor@,$target_vendor,;t t
4568s,@target_os@,$target_os,;t t
4569s,@CC@,$CC,;t t
4570s,@CFLAGS@,$CFLAGS,;t t
4571s,@LDFLAGS@,$LDFLAGS,;t t
4572s,@CPPFLAGS@,$CPPFLAGS,;t t
4573s,@ac_ct_CC@,$ac_ct_CC,;t t
4574s,@EXEEXT@,$EXEEXT,;t t
4575s,@OBJEXT@,$OBJEXT,;t t
4576s,@CXX@,$CXX,;t t
4577s,@CXXFLAGS@,$CXXFLAGS,;t t
4578s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004579s,@CPP@,$CPP,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004580s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
4581s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
4582s,@ac_no_small_filter@,$ac_no_small_filter,;t t
4583s,@ac_no_large_filter@,$ac_no_large_filter,;t t
4584s,@ac_no_g711_plc@,$ac_no_g711_plc,;t t
4585s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
4586s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
4587s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
4588s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
4589s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
4590s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
4591s,@ac_cross_compile@,$ac_cross_compile,;t t
4592s,@ac_linux_poll@,$ac_linux_poll,;t t
4593s,@ac_host@,$ac_host,;t t
4594s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004595CEOF
4596
Benny Prijonob466e232006-09-10 08:53:59 +00004597EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004598
Benny Prijonob466e232006-09-10 08:53:59 +00004599 cat >>$CONFIG_STATUS <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004600 # Split the substitutions into bite-sized pieces for seds with
4601 # small command number limits, like on Digital OSF/1 and HP-UX.
4602 ac_max_sed_lines=48
4603 ac_sed_frag=1 # Number of current file.
4604 ac_beg=1 # First line for current file.
4605 ac_end=$ac_max_sed_lines # Line after last line for current file.
4606 ac_more_lines=:
4607 ac_sed_cmds=
4608 while $ac_more_lines; do
4609 if test $ac_beg -gt 1; then
4610 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4611 else
4612 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4613 fi
4614 if test ! -s $tmp/subs.frag; then
4615 ac_more_lines=false
4616 else
4617 # The purpose of the label and of the branching condition is to
4618 # speed up the sed processing (if there are no `@' at all, there
4619 # is no need to browse any of the substitutions).
4620 # These are the two extra sed commands mentioned above.
4621 (echo ':t
4622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4623 if test -z "$ac_sed_cmds"; then
Benny Prijonob466e232006-09-10 08:53:59 +00004624 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004625 else
Benny Prijonob466e232006-09-10 08:53:59 +00004626 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004627 fi
4628 ac_sed_frag=`expr $ac_sed_frag + 1`
4629 ac_beg=$ac_end
4630 ac_end=`expr $ac_end + $ac_max_sed_lines`
4631 fi
4632 done
4633 if test -z "$ac_sed_cmds"; then
4634 ac_sed_cmds=cat
4635 fi
4636fi # test -n "$CONFIG_FILES"
4637
Benny Prijonob466e232006-09-10 08:53:59 +00004638EOF
4639cat >>$CONFIG_STATUS <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004640for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4641 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4642 case $ac_file in
4643 - | *:- | *:-:* ) # input from stdin
Benny Prijonob466e232006-09-10 08:53:59 +00004644 cat >$tmp/stdin
4645 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4646 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004647 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijonob466e232006-09-10 08:53:59 +00004648 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004649 * ) ac_file_in=$ac_file.in ;;
4650 esac
4651
4652 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijonob466e232006-09-10 08:53:59 +00004653 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4654 X"$ac_file" : 'X\(//\)[^/]' \| \
4655 X"$ac_file" : 'X\(//\)$' \| \
4656 X"$ac_file" : 'X\(/\)' \| \
4657 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004658echo X"$ac_file" |
4659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4661 /^X\(\/\/\)$/{ s//\1/; q; }
4662 /^X\(\/\).*/{ s//\1/; q; }
4663 s/.*/./; q'`
Benny Prijonob466e232006-09-10 08:53:59 +00004664 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4665 { case "$ac_dir" in
4666 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4667 *) as_incr_dir=.;;
4668esac
4669as_dummy="$ac_dir"
4670for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4671 case $as_mkdir_dir in
4672 # Skip DOS drivespec
4673 ?:) as_incr_dir=$as_mkdir_dir ;;
4674 *)
4675 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4676 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4677 ;;
4678 esac
4679done; }
4680
4681 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4682 # A "../" for each directory in $ac_dir_suffix.
4683 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004684 else
Benny Prijonob466e232006-09-10 08:53:59 +00004685 ac_dir_suffix= ac_dots=
4686 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004687
Benny Prijonob466e232006-09-10 08:53:59 +00004688 case $srcdir in
4689 .) ac_srcdir=.
4690 if test -z "$ac_dots"; then
4691 ac_top_srcdir=.
4692 else
4693 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4694 fi ;;
4695 [\\/]* | ?:[\\/]* )
4696 ac_srcdir=$srcdir$ac_dir_suffix;
4697 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004698 *) # Relative path.
Benny Prijonob466e232006-09-10 08:53:59 +00004699 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4700 ac_top_srcdir=$ac_dots$srcdir ;;
4701 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004702
4703 if test x"$ac_file" != x-; then
Benny Prijonob466e232006-09-10 08:53:59 +00004704 { echo "$as_me:4704: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004705echo "$as_me: creating $ac_file" >&6;}
4706 rm -f "$ac_file"
4707 fi
4708 # Let's still pretend it is `configure' which instantiates (i.e., don't
4709 # use $as_me), people would be surprised to read:
Benny Prijonob466e232006-09-10 08:53:59 +00004710 # /* config.h. Generated automatically by config.status. */
4711 configure_input="Generated automatically from `echo $ac_file_in |
4712 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004713
4714 # First look for the input files in the build tree, otherwise in the
4715 # src tree.
4716 ac_file_inputs=`IFS=:
4717 for f in $ac_file_in; do
4718 case $f in
4719 -) echo $tmp/stdin ;;
4720 [\\/$]*)
Benny Prijonob466e232006-09-10 08:53:59 +00004721 # Absolute (can't be DOS-style, as IFS=:)
4722 test -f "$f" || { { echo "$as_me:4722: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004723echo "$as_me: error: cannot find input file: $f" >&2;}
4724 { (exit 1); exit 1; }; }
Benny Prijonob466e232006-09-10 08:53:59 +00004725 echo $f;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004726 *) # Relative
Benny Prijonob466e232006-09-10 08:53:59 +00004727 if test -f "$f"; then
4728 # Build tree
4729 echo $f
4730 elif test -f "$srcdir/$f"; then
4731 # Source tree
4732 echo $srcdir/$f
4733 else
4734 # /dev/null tree
4735 { { echo "$as_me:4735: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004736echo "$as_me: error: cannot find input file: $f" >&2;}
4737 { (exit 1); exit 1; }; }
Benny Prijonob466e232006-09-10 08:53:59 +00004738 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004739 esac
4740 done` || { (exit 1); exit 1; }
Benny Prijonob466e232006-09-10 08:53:59 +00004741EOF
4742cat >>$CONFIG_STATUS <<EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004743 sed "$ac_vpsub
4744$extrasub
Benny Prijonob466e232006-09-10 08:53:59 +00004745EOF
4746cat >>$CONFIG_STATUS <<\EOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004747:t
4748/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4749s,@configure_input@,$configure_input,;t t
4750s,@srcdir@,$ac_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004751s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004752" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4753 rm -f $tmp/stdin
4754 if test x"$ac_file" != x-; then
4755 mv $tmp/out $ac_file
4756 else
4757 cat $tmp/out
4758 rm -f $tmp/out
4759 fi
4760
4761done
Benny Prijonob466e232006-09-10 08:53:59 +00004762EOF
4763cat >>$CONFIG_STATUS <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004764
4765#
4766# CONFIG_HEADER section.
4767#
4768
4769# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4770# NAME is the cpp macro being defined and VALUE is the value it is being given.
4771#
4772# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijonob466e232006-09-10 08:53:59 +00004773ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4774ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004775ac_dC=' '
4776ac_dD=',;t'
4777# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijonob466e232006-09-10 08:53:59 +00004778ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004779ac_uB='$,\1#\2define\3'
4780ac_uC=' '
4781ac_uD=',;t'
4782
4783for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4785 case $ac_file in
4786 - | *:- | *:-:* ) # input from stdin
Benny Prijonob466e232006-09-10 08:53:59 +00004787 cat >$tmp/stdin
4788 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004790 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijonob466e232006-09-10 08:53:59 +00004791 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004792 * ) ac_file_in=$ac_file.in ;;
4793 esac
4794
Benny Prijonob466e232006-09-10 08:53:59 +00004795 test x"$ac_file" != x- && { echo "$as_me:4795: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004796echo "$as_me: creating $ac_file" >&6;}
4797
4798 # First look for the input files in the build tree, otherwise in the
4799 # src tree.
4800 ac_file_inputs=`IFS=:
4801 for f in $ac_file_in; do
4802 case $f in
4803 -) echo $tmp/stdin ;;
4804 [\\/$]*)
Benny Prijonob466e232006-09-10 08:53:59 +00004805 # Absolute (can't be DOS-style, as IFS=:)
4806 test -f "$f" || { { echo "$as_me:4806: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004807echo "$as_me: error: cannot find input file: $f" >&2;}
4808 { (exit 1); exit 1; }; }
Benny Prijonob466e232006-09-10 08:53:59 +00004809 echo $f;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004810 *) # Relative
Benny Prijonob466e232006-09-10 08:53:59 +00004811 if test -f "$f"; then
4812 # Build tree
4813 echo $f
4814 elif test -f "$srcdir/$f"; then
4815 # Source tree
4816 echo $srcdir/$f
4817 else
4818 # /dev/null tree
4819 { { echo "$as_me:4819: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004820echo "$as_me: error: cannot find input file: $f" >&2;}
4821 { (exit 1); exit 1; }; }
Benny Prijonob466e232006-09-10 08:53:59 +00004822 fi;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004823 esac
4824 done` || { (exit 1); exit 1; }
4825 # Remove the trailing spaces.
Benny Prijonob466e232006-09-10 08:53:59 +00004826 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004827
Benny Prijonob466e232006-09-10 08:53:59 +00004828EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004829
4830# Transform confdefs.h into two sed scripts, `conftest.defines' and
4831# `conftest.undefs', that substitutes the proper values into
4832# config.h.in to produce config.h. The first handles `#define'
4833# templates, and the second `#undef' templates.
4834# And first: Protect against being on the right side of a sed subst in
4835# config.status. Protect against being in an unquoted here document
4836# in config.status.
4837rm -f conftest.defines conftest.undefs
4838# Using a here document instead of a string reduces the quoting nightmare.
4839# Putting comments in sed scripts is not portable.
4840#
4841# `end' is used to avoid that the second main sed command (meant for
4842# 0-ary CPP macros) applies to n-ary macro definitions.
4843# See the Autoconf documentation for `clear'.
Benny Prijonob466e232006-09-10 08:53:59 +00004844cat >confdef2sed.sed <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004845s/[\\&,]/\\&/g
4846s,[\\$`],\\&,g
4847t clear
4848: clear
Benny Prijonob466e232006-09-10 08:53:59 +00004849s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004850t end
Benny Prijonob466e232006-09-10 08:53:59 +00004851s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004852: end
Benny Prijonob466e232006-09-10 08:53:59 +00004853EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004854# If some macros were called several times there might be several times
4855# the same #defines, which is useless. Nevertheless, we may not want to
4856# sort them, since we want the *last* AC-DEFINE to be honored.
4857uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4858sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4859rm -f confdef2sed.sed
4860
4861# This sed command replaces #undef with comments. This is necessary, for
4862# example, in the case of _POSIX_SOURCE, which is predefined and required
4863# on some systems where configure will not decide to define it.
Benny Prijonob466e232006-09-10 08:53:59 +00004864cat >>conftest.undefs <<\EOF
4865s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4866EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004867
4868# Break up conftest.defines because some shells have a limit on the size
4869# of here documents, and old seds have small limits too (100 cmds).
4870echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijonob466e232006-09-10 08:53:59 +00004871echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004872echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4873echo ' :' >>$CONFIG_STATUS
4874rm -f conftest.tail
4875while grep . conftest.defines >/dev/null
4876do
4877 # Write a limited-size here document to $tmp/defines.sed.
4878 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4879 # Speed up: don't consider the non `#define' lines.
Benny Prijonob466e232006-09-10 08:53:59 +00004880 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004881 # Work around the forget-to-reset-the-flag bug.
4882 echo 't clr' >>$CONFIG_STATUS
4883 echo ': clr' >>$CONFIG_STATUS
4884 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4885 echo 'CEOF
4886 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4887 rm -f $tmp/in
4888 mv $tmp/out $tmp/in
4889' >>$CONFIG_STATUS
4890 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4891 rm -f conftest.defines
4892 mv conftest.tail conftest.defines
4893done
4894rm -f conftest.defines
Benny Prijonob466e232006-09-10 08:53:59 +00004895echo ' fi # egrep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004896echo >>$CONFIG_STATUS
4897
4898# Break up conftest.undefs because some shells have a limit on the size
4899# of here documents, and old seds have small limits too (100 cmds).
4900echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4901rm -f conftest.tail
4902while grep . conftest.undefs >/dev/null
4903do
4904 # Write a limited-size here document to $tmp/undefs.sed.
4905 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4906 # Speed up: don't consider the non `#undef'
Benny Prijonob466e232006-09-10 08:53:59 +00004907 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004908 # Work around the forget-to-reset-the-flag bug.
4909 echo 't clr' >>$CONFIG_STATUS
4910 echo ': clr' >>$CONFIG_STATUS
4911 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4912 echo 'CEOF
4913 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4914 rm -f $tmp/in
4915 mv $tmp/out $tmp/in
4916' >>$CONFIG_STATUS
4917 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4918 rm -f conftest.undefs
4919 mv conftest.tail conftest.undefs
4920done
4921rm -f conftest.undefs
4922
Benny Prijonob466e232006-09-10 08:53:59 +00004923cat >>$CONFIG_STATUS <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004924 # Let's still pretend it is `configure' which instantiates (i.e., don't
4925 # use $as_me), people would be surprised to read:
Benny Prijonob466e232006-09-10 08:53:59 +00004926 # /* config.h. Generated automatically by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004927 if test x"$ac_file" = x-; then
Benny Prijonob466e232006-09-10 08:53:59 +00004928 echo "/* Generated automatically by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004929 else
Benny Prijonob466e232006-09-10 08:53:59 +00004930 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004931 fi
4932 cat $tmp/in >>$tmp/config.h
4933 rm -f $tmp/in
4934 if test x"$ac_file" != x-; then
Benny Prijonob466e232006-09-10 08:53:59 +00004935 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4936 { echo "$as_me:4936: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004937echo "$as_me: $ac_file is unchanged" >&6;}
4938 else
Benny Prijonob466e232006-09-10 08:53:59 +00004939 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4940 X"$ac_file" : 'X\(//\)[^/]' \| \
4941 X"$ac_file" : 'X\(//\)$' \| \
4942 X"$ac_file" : 'X\(/\)' \| \
4943 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004944echo X"$ac_file" |
4945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4947 /^X\(\/\/\)$/{ s//\1/; q; }
4948 /^X\(\/\).*/{ s//\1/; q; }
4949 s/.*/./; q'`
Benny Prijonob466e232006-09-10 08:53:59 +00004950 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4951 { case "$ac_dir" in
4952 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4953 *) as_incr_dir=.;;
4954esac
4955as_dummy="$ac_dir"
4956for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4957 case $as_mkdir_dir in
4958 # Skip DOS drivespec
4959 ?:) as_incr_dir=$as_mkdir_dir ;;
4960 *)
4961 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4962 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4963 ;;
4964 esac
4965done; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004966
Benny Prijonob466e232006-09-10 08:53:59 +00004967 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004968 rm -f $ac_file
4969 mv $tmp/config.h $ac_file
4970 fi
4971 else
4972 cat $tmp/config.h
4973 rm -f $tmp/config.h
4974 fi
4975done
Benny Prijonob466e232006-09-10 08:53:59 +00004976EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004977
Benny Prijonob466e232006-09-10 08:53:59 +00004978cat >>$CONFIG_STATUS <<\EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004979
4980{ (exit 0); exit 0; }
Benny Prijonob466e232006-09-10 08:53:59 +00004981EOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004982chmod +x $CONFIG_STATUS
4983ac_clean_files=$ac_clean_files_save
4984
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004985# configure is writing to config.log, and then calls config.status.
4986# config.status does its own redirection, appending to config.log.
4987# Unfortunately, on DOS this fails, as config.log is still kept open
4988# by configure, so config.status won't be able to write to it; its
4989# output is simply discarded. So we exec the FD to /dev/null,
4990# effectively closing config.log, so it can be properly (re)opened and
4991# appended to by config.status. When coming back to configure, we
4992# need to make the FD available again.
4993if test "$no_create" != yes; then
4994 ac_cs_success=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004995 exec 5>/dev/null
Benny Prijonob466e232006-09-10 08:53:59 +00004996 $SHELL $CONFIG_STATUS || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004997 exec 5>>config.log
4998 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4999 # would make configure fail if this is the last instruction.
5000 $ac_cs_success || { (exit 1); exit 1; }
5001fi
5002