blob: b5067e5d03712f1bd148086923ae8f845b8d43d7 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003# Generated by GNU Autoconf 2.59 for pjproject 0.5.8.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='pjproject'
269PACKAGE_TARNAME='pjproject'
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000270PACKAGE_VERSION='0.5.8'
271PACKAGE_STRING='pjproject 0.5.8'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX ac_bigendian CPP EGREP ac_pjmedia_snd ac_pa_use_alsa ac_no_small_filter ac_no_large_filter ac_no_g711_plc ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_speex_codec ac_no_ilbc_codec ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000768ac_env_CXX_set=${CXX+set}
769ac_env_CXX_value=$CXX
770ac_cv_env_CXX_set=${CXX+set}
771ac_cv_env_CXX_value=$CXX
772ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773ac_env_CXXFLAGS_value=$CXXFLAGS
774ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000776ac_env_CPP_set=${CPP+set}
777ac_env_CPP_value=$CPP
778ac_cv_env_CPP_set=${CPP+set}
779ac_cv_env_CPP_value=$CPP
780
781#
782# Report the --help message.
783#
784if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
787 cat <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000788\`configure' configures pjproject 0.5.8 to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000789
790Usage: $0 [OPTION]... [VAR=VALUE]...
791
792To assign environment variables (e.g., CC, CFLAGS...), specify them as
793VAR=VALUE. See below for descriptions of some of the useful variables.
794
795Defaults for the options are specified in brackets.
796
797Configuration:
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807
808_ACEOF
809
810 cat <<_ACEOF
811Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
813 [$ac_default_prefix]
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
815 [PREFIX]
816
817By default, \`make install' will install all the files in
818\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820for instance \`--prefix=\$HOME'.
821
822For better control, use the options below.
823
824Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
837_ACEOF
838
839 cat <<\_ACEOF
840
841System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 --target=TARGET configure for building compilers for TARGET [HOST]
845_ACEOF
846fi
847
848if test -n "$ac_init_help"; then
849 case $ac_init_help in
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000850 short | recursive ) echo "Configuration of pjproject 0.5.8:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000851 esac
852 cat <<\_ACEOF
853
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000854Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-floating-point
858 Disable floating point where possible
859 --disable-small-filter Exclude small filter in resampling
860 --disable-large-filter Exclude large filter in resampling
861 --disable-g711-plc Exclude G.711 Annex A PLC
862 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
863 --disable-g711-codec Exclude G.711 codecs from the build
864 --disable-l16-codec Exclude Linear/L16 codec family from the build
865 --disable-gsm-codec Exclude GSM codec in the build
866 --disable-speex-codec Exclude Speex codecs in the build
867 --disable-ilbc-codec Exclude iLBC codec in the build
868
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000869Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000876 CXX C++ compiler command
877 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000878 CPP C preprocessor
879
880Use these variables to override the choices made by `configure' or to help
881it to find libraries and programs with nonstandard names/locations.
882
883_ACEOF
884fi
885
886if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
888 ac_popdir=`pwd`
889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890 test -d $ac_dir || continue
891 ac_builddir=.
892
893if test "$ac_dir" != .; then
894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895 # A "../" for each directory in $ac_dir_suffix.
896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897else
898 ac_dir_suffix= ac_top_builddir=
899fi
900
901case $srcdir in
902 .) # No --srcdir option. We are building in place.
903 ac_srcdir=.
904 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=.
906 else
907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908 fi ;;
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_srcdir=$srcdir$ac_dir_suffix;
911 ac_top_srcdir=$srcdir ;;
912 *) # Relative path.
913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915esac
916
917# Do not use `cd foo && pwd` to compute absolute paths, because
918# the directories may not exist.
919case `pwd` in
920.) ac_abs_builddir="$ac_dir";;
921*)
922 case "$ac_dir" in
923 .) ac_abs_builddir=`pwd`;;
924 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 esac;;
927esac
928case $ac_abs_builddir in
929.) ac_abs_top_builddir=${ac_top_builddir}.;;
930*)
931 case ${ac_top_builddir}. in
932 .) ac_abs_top_builddir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_srcdir=$ac_srcdir;;
939*)
940 case $ac_srcdir in
941 .) ac_abs_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_top_srcdir=$ac_top_srcdir;;
948*)
949 case $ac_top_srcdir in
950 .) ac_abs_top_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
953 esac;;
954esac
955
956 cd $ac_dir
957 # Check for guested configure; otherwise get Cygnus style configure.
958 if test -f $ac_srcdir/configure.gnu; then
959 echo
960 $SHELL $ac_srcdir/configure.gnu --help=recursive
961 elif test -f $ac_srcdir/configure; then
962 echo
963 $SHELL $ac_srcdir/configure --help=recursive
964 elif test -f $ac_srcdir/configure.ac ||
965 test -f $ac_srcdir/configure.in; then
966 echo
967 $ac_configure --help
968 else
969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 fi
971 cd $ac_popdir
972 done
973fi
974
975test -n "$ac_init_help" && exit 0
976if $ac_init_version; then
977 cat <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000978pjproject configure 0.5.8
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000979generated by GNU Autoconf 2.59
980
981Copyright (C) 2003 Free Software Foundation, Inc.
982This configure script is free software; the Free Software Foundation
983gives unlimited permission to copy, distribute and modify it.
984_ACEOF
985 exit 0
986fi
987exec 5>config.log
988cat >&5 <<_ACEOF
989This file contains any messages produced by compilers while
990running configure, to aid debugging if configure makes a mistake.
991
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000992It was created by pjproject $as_me 0.5.8, which was
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000993generated by GNU Autoconf 2.59. Invocation command line was
994
995 $ $0 $@
996
997_ACEOF
998{
999cat <<_ASUNAME
1000## --------- ##
1001## Platform. ##
1002## --------- ##
1003
1004hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012
1013/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020
1021_ASUNAME
1022
1023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024for as_dir in $PATH
1025do
1026 IFS=$as_save_IFS
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1029done
1030
1031} >&5
1032
1033cat >&5 <<_ACEOF
1034
1035
1036## ----------- ##
1037## Core tests. ##
1038## ----------- ##
1039
1040_ACEOF
1041
1042
1043# Keep a trace of the command line.
1044# Strip out --no-create and --no-recursion so they do not pile up.
1045# Strip out --silent because we don't want to record it for future runs.
1046# Also quote any args containing shell meta-characters.
1047# Make two passes to allow for proper duplicate-argument suppression.
1048ac_configure_args=
1049ac_configure_args0=
1050ac_configure_args1=
1051ac_sep=
1052ac_must_keep_next=false
1053for ac_pass in 1 2
1054do
1055 for ac_arg
1056 do
1057 case $ac_arg in
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 continue ;;
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 esac
1065 case $ac_pass in
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 2)
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1071 else
1072 case $ac_arg in
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 esac
1080 ;;
1081 -* ) ac_must_keep_next=true ;;
1082 esac
1083 fi
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1086 ac_sep=" "
1087 ;;
1088 esac
1089 done
1090done
1091$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094# When interrupted or exit'd, cleanup temporary files, and complete
1095# config.log. We remove comments because anyway the quotes in there
1096# would cause problems or look ugly.
1097# WARNING: Be sure not to use single quotes in there, as some shells,
1098# such as our DU 5.0 friend, will then `close' the trap.
1099trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1101 {
1102 echo
1103
1104 cat <<\_ASBOX
1105## ---------------- ##
1106## Cache variables. ##
1107## ---------------- ##
1108_ASBOX
1109 echo
1110 # The following way of writing the cache mishandles newlines in values,
1111{
1112 (set) 2>&1 |
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 *ac_space=\ *)
1115 sed -n \
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 ;;
1119 *)
1120 sed -n \
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ;;
1123 esac;
1124}
1125 echo
1126
1127 cat <<\_ASBOX
1128## ----------------- ##
1129## Output variables. ##
1130## ----------------- ##
1131_ASBOX
1132 echo
1133 for ac_var in $ac_subst_vars
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139
1140 if test -n "$ac_subst_files"; then
1141 cat <<\_ASBOX
1142## ------------- ##
1143## Output files. ##
1144## ------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_files
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153 fi
1154
1155 if test -s confdefs.h; then
1156 cat <<\_ASBOX
1157## ----------- ##
1158## confdefs.h. ##
1159## ----------- ##
1160_ASBOX
1161 echo
1162 sed "/^$/d" confdefs.h | sort
1163 echo
1164 fi
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1168 } >&5
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 exit $exit_status
1172 ' 0
1173for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175done
1176ac_signal=0
1177
1178# confdefs.h avoids OS command line length limits that DEFS can exceed.
1179rm -rf conftest* confdefs.h
1180# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181echo >confdefs.h
1182
1183# Predefined preprocessor variables.
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_NAME "$PACKAGE_NAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_VERSION "$PACKAGE_VERSION"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_STRING "$PACKAGE_STRING"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207_ACEOF
1208
1209
1210# Let the site file select an alternate cache file if it wants to.
1211# Prefer explicitly selected file to automatically selected ones.
1212if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 else
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 fi
1218fi
1219for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1224 . "$ac_site_file"
1225 fi
1226done
1227
1228if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233echo "$as_me: loading cache $cache_file" >&6;}
1234 case $cache_file in
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1237 esac
1238 fi
1239else
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241echo "$as_me: creating cache $cache_file" >&6;}
1242 >$cache_file
1243fi
1244
1245# Check that the precious variables saved in the cache have kept the same
1246# value.
1247ac_cache_corrupted=false
1248for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1255 set,)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,set)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,);;
1264 *)
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1273 fi;;
1274 esac
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1277 case $ac_new_val in
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1281 esac
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 esac
1286 fi
1287done
1288if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1294fi
1295
1296ac_ext=c
1297ac_cpp='$CPP $CPPFLAGS'
1298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328ac_aux_dir=
1329for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330 if test -f $ac_dir/install-sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 break
1334 elif test -f $ac_dir/install.sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 break
1338 elif test -f $ac_dir/shtool; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 break
1342 fi
1343done
1344if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347 { (exit 1); exit 1; }; }
1348fi
1349ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352
1353# Make sure we can run config.sub.
1354$ac_config_sub sun4 >/dev/null 2>&1 ||
1355 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1356echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1357 { (exit 1); exit 1; }; }
1358
1359echo "$as_me:$LINENO: checking build system type" >&5
1360echo $ECHO_N "checking build system type... $ECHO_C" >&6
1361if test "${ac_cv_build+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363else
1364 ac_cv_build_alias=$build_alias
1365test -z "$ac_cv_build_alias" &&
1366 ac_cv_build_alias=`$ac_config_guess`
1367test -z "$ac_cv_build_alias" &&
1368 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1369echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1370 { (exit 1); exit 1; }; }
1371ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1373echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1375
1376fi
1377echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1378echo "${ECHO_T}$ac_cv_build" >&6
1379build=$ac_cv_build
1380build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383
1384
1385echo "$as_me:$LINENO: checking host system type" >&5
1386echo $ECHO_N "checking host system type... $ECHO_C" >&6
1387if test "${ac_cv_host+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1389else
1390 ac_cv_host_alias=$host_alias
1391test -z "$ac_cv_host_alias" &&
1392 ac_cv_host_alias=$ac_cv_build_alias
1393ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1395echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1396 { (exit 1); exit 1; }; }
1397
1398fi
1399echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1400echo "${ECHO_T}$ac_cv_host" >&6
1401host=$ac_cv_host
1402host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405
1406
1407echo "$as_me:$LINENO: checking target system type" >&5
1408echo $ECHO_N "checking target system type... $ECHO_C" >&6
1409if test "${ac_cv_target+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411else
1412 ac_cv_target_alias=$target_alias
1413test "x$ac_cv_target_alias" = "x" &&
1414 ac_cv_target_alias=$ac_cv_host_alias
1415ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1417echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1419
1420fi
1421echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1422echo "${ECHO_T}$ac_cv_target" >&6
1423target=$ac_cv_target
1424target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427
1428
1429# The aliases save the names the user supplied, while $host etc.
1430# will get canonicalized.
1431test -n "$target_alias" &&
1432 test "$program_prefix$program_suffix$program_transform_name" = \
1433 NONENONEs,x,x, &&
1434 program_prefix=${target_alias}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001435 ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h"
1436
1437 ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001438
1439ac_ext=c
1440ac_cpp='$CPP $CPPFLAGS'
1441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1443ac_compiler_gnu=$ac_cv_c_compiler_gnu
1444if test -n "$ac_tool_prefix"; then
1445 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1446set dummy ${ac_tool_prefix}gcc; ac_word=$2
1447echo "$as_me:$LINENO: checking for $ac_word" >&5
1448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1449if test "${ac_cv_prog_CC+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1451else
1452 if test -n "$CC"; then
1453 ac_cv_prog_CC="$CC" # Let the user override the test.
1454else
1455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456for as_dir in $PATH
1457do
1458 IFS=$as_save_IFS
1459 test -z "$as_dir" && as_dir=.
1460 for ac_exec_ext in '' $ac_executable_extensions; do
1461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 break 2
1465 fi
1466done
1467done
1468
1469fi
1470fi
1471CC=$ac_cv_prog_CC
1472if test -n "$CC"; then
1473 echo "$as_me:$LINENO: result: $CC" >&5
1474echo "${ECHO_T}$CC" >&6
1475else
1476 echo "$as_me:$LINENO: result: no" >&5
1477echo "${ECHO_T}no" >&6
1478fi
1479
1480fi
1481if test -z "$ac_cv_prog_CC"; then
1482 ac_ct_CC=$CC
1483 # Extract the first word of "gcc", so it can be a program name with args.
1484set dummy gcc; ac_word=$2
1485echo "$as_me:$LINENO: checking for $ac_word" >&5
1486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489else
1490 if test -n "$ac_ct_CC"; then
1491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1492else
1493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494for as_dir in $PATH
1495do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_prog_ac_ct_CC="gcc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 break 2
1503 fi
1504done
1505done
1506
1507fi
1508fi
1509ac_ct_CC=$ac_cv_prog_ac_ct_CC
1510if test -n "$ac_ct_CC"; then
1511 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1512echo "${ECHO_T}$ac_ct_CC" >&6
1513else
1514 echo "$as_me:$LINENO: result: no" >&5
1515echo "${ECHO_T}no" >&6
1516fi
1517
1518 CC=$ac_ct_CC
1519else
1520 CC="$ac_cv_prog_CC"
1521fi
1522
1523if test -z "$CC"; then
1524 if test -n "$ac_tool_prefix"; then
1525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1526set dummy ${ac_tool_prefix}cc; ac_word=$2
1527echo "$as_me:$LINENO: checking for $ac_word" >&5
1528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1531else
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1534else
1535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536for as_dir in $PATH
1537do
1538 IFS=$as_save_IFS
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_CC="${ac_tool_prefix}cc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 break 2
1545 fi
1546done
1547done
1548
1549fi
1550fi
1551CC=$ac_cv_prog_CC
1552if test -n "$CC"; then
1553 echo "$as_me:$LINENO: result: $CC" >&5
1554echo "${ECHO_T}$CC" >&6
1555else
1556 echo "$as_me:$LINENO: result: no" >&5
1557echo "${ECHO_T}no" >&6
1558fi
1559
1560fi
1561if test -z "$ac_cv_prog_CC"; then
1562 ac_ct_CC=$CC
1563 # Extract the first word of "cc", so it can be a program name with args.
1564set dummy cc; ac_word=$2
1565echo "$as_me:$LINENO: checking for $ac_word" >&5
1566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569else
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572else
1573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574for as_dir in $PATH
1575do
1576 IFS=$as_save_IFS
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_ac_ct_CC="cc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 break 2
1583 fi
1584done
1585done
1586
1587fi
1588fi
1589ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590if test -n "$ac_ct_CC"; then
1591 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592echo "${ECHO_T}$ac_ct_CC" >&6
1593else
1594 echo "$as_me:$LINENO: result: no" >&5
1595echo "${ECHO_T}no" >&6
1596fi
1597
1598 CC=$ac_ct_CC
1599else
1600 CC="$ac_cv_prog_CC"
1601fi
1602
1603fi
1604if test -z "$CC"; then
1605 # Extract the first word of "cc", so it can be a program name with args.
1606set dummy cc; ac_word=$2
1607echo "$as_me:$LINENO: checking for $ac_word" >&5
1608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1614else
1615 ac_prog_rejected=no
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1624 ac_prog_rejected=yes
1625 continue
1626 fi
1627 ac_cv_prog_CC="cc"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 break 2
1630 fi
1631done
1632done
1633
1634if test $ac_prog_rejected = yes; then
1635 # We found a bogon in the path, so make sure we never use it.
1636 set dummy $ac_cv_prog_CC
1637 shift
1638 if test $# != 0; then
1639 # We chose a different compiler from the bogus one.
1640 # However, it has the same basename, so the bogon will be chosen
1641 # first if we set CC to just the basename; use the full file name.
1642 shift
1643 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1644 fi
1645fi
1646fi
1647fi
1648CC=$ac_cv_prog_CC
1649if test -n "$CC"; then
1650 echo "$as_me:$LINENO: result: $CC" >&5
1651echo "${ECHO_T}$CC" >&6
1652else
1653 echo "$as_me:$LINENO: result: no" >&5
1654echo "${ECHO_T}no" >&6
1655fi
1656
1657fi
1658if test -z "$CC"; then
1659 if test -n "$ac_tool_prefix"; then
1660 for ac_prog in cl
1661 do
1662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1663set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669 if test -n "$CC"; then
1670 ac_cv_prog_CC="$CC" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1682 fi
1683done
1684done
1685
1686fi
1687fi
1688CC=$ac_cv_prog_CC
1689if test -n "$CC"; then
1690 echo "$as_me:$LINENO: result: $CC" >&5
1691echo "${ECHO_T}$CC" >&6
1692else
1693 echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695fi
1696
1697 test -n "$CC" && break
1698 done
1699fi
1700if test -z "$CC"; then
1701 ac_ct_CC=$CC
1702 for ac_prog in cl
1703do
1704 # Extract the first word of "$ac_prog", so it can be a program name with args.
1705set dummy $ac_prog; ac_word=$2
1706echo "$as_me:$LINENO: checking for $ac_word" >&5
1707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711 if test -n "$ac_ct_CC"; then
1712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1713else
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_ac_ct_CC="$ac_prog"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1724 fi
1725done
1726done
1727
1728fi
1729fi
1730ac_ct_CC=$ac_cv_prog_ac_ct_CC
1731if test -n "$ac_ct_CC"; then
1732 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1733echo "${ECHO_T}$ac_ct_CC" >&6
1734else
1735 echo "$as_me:$LINENO: result: no" >&5
1736echo "${ECHO_T}no" >&6
1737fi
1738
1739 test -n "$ac_ct_CC" && break
1740done
1741
1742 CC=$ac_ct_CC
1743fi
1744
1745fi
1746
1747
1748test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1749See \`config.log' for more details." >&5
1750echo "$as_me: error: no acceptable C compiler found in \$PATH
1751See \`config.log' for more details." >&2;}
1752 { (exit 1); exit 1; }; }
1753
1754# Provide some information about the compiler.
1755echo "$as_me:$LINENO:" \
1756 "checking for C compiler version" >&5
1757ac_compiler=`set X $ac_compile; echo $2`
1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1759 (eval $ac_compiler --version </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1764 (eval $ac_compiler -v </dev/null >&5) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1768{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1769 (eval $ac_compiler -V </dev/null >&5) 2>&5
1770 ac_status=$?
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); }
1773
1774cat >conftest.$ac_ext <<_ACEOF
1775/* confdefs.h. */
1776_ACEOF
1777cat confdefs.h >>conftest.$ac_ext
1778cat >>conftest.$ac_ext <<_ACEOF
1779/* end confdefs.h. */
1780
1781int
1782main ()
1783{
1784
1785 ;
1786 return 0;
1787}
1788_ACEOF
1789ac_clean_files_save=$ac_clean_files
1790ac_clean_files="$ac_clean_files a.out a.exe b.out"
1791# Try to create an executable without -o first, disregard a.out.
1792# It will help us diagnose broken compilers, and finding out an intuition
1793# of exeext.
1794echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1795echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1796ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1797if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1798 (eval $ac_link_default) 2>&5
1799 ac_status=$?
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }; then
1802 # Find the output, starting from the most likely. This scheme is
1803# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1804# resort.
1805
1806# Be careful to initialize this variable, since it used to be cached.
1807# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1808ac_cv_exeext=
1809# b.out is created by i960 compilers.
1810for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1811do
1812 test -f "$ac_file" || continue
1813 case $ac_file in
1814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1815 ;;
1816 conftest.$ac_ext )
1817 # This is the source file.
1818 ;;
1819 [ab].out )
1820 # We found the default executable, but exeext='' is most
1821 # certainly right.
1822 break;;
1823 *.* )
1824 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1825 # FIXME: I believe we export ac_cv_exeext for Libtool,
1826 # but it would be cool to find out if it's true. Does anybody
1827 # maintain Libtool? --akim.
1828 export ac_cv_exeext
1829 break;;
1830 * )
1831 break;;
1832 esac
1833done
1834else
1835 echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1839See \`config.log' for more details." >&5
1840echo "$as_me: error: C compiler cannot create executables
1841See \`config.log' for more details." >&2;}
1842 { (exit 77); exit 77; }; }
1843fi
1844
1845ac_exeext=$ac_cv_exeext
1846echo "$as_me:$LINENO: result: $ac_file" >&5
1847echo "${ECHO_T}$ac_file" >&6
1848
1849# Check the compiler produces executables we can run. If not, either
1850# the compiler is broken, or we cross compile.
1851echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1852echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1853# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1854# If not cross compiling, check that we can run a simple program.
1855if test "$cross_compiling" != yes; then
1856 if { ac_try='./$ac_file'
1857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1858 (eval $ac_try) 2>&5
1859 ac_status=$?
1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861 (exit $ac_status); }; }; then
1862 cross_compiling=no
1863 else
1864 if test "$cross_compiling" = maybe; then
1865 cross_compiling=yes
1866 else
1867 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1868If you meant to cross compile, use \`--host'.
1869See \`config.log' for more details." >&5
1870echo "$as_me: error: cannot run C compiled programs.
1871If you meant to cross compile, use \`--host'.
1872See \`config.log' for more details." >&2;}
1873 { (exit 1); exit 1; }; }
1874 fi
1875 fi
1876fi
1877echo "$as_me:$LINENO: result: yes" >&5
1878echo "${ECHO_T}yes" >&6
1879
1880rm -f a.out a.exe conftest$ac_cv_exeext b.out
1881ac_clean_files=$ac_clean_files_save
1882# Check the compiler produces executables we can run. If not, either
1883# the compiler is broken, or we cross compile.
1884echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1885echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1886echo "$as_me:$LINENO: result: $cross_compiling" >&5
1887echo "${ECHO_T}$cross_compiling" >&6
1888
1889echo "$as_me:$LINENO: checking for suffix of executables" >&5
1890echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1892 (eval $ac_link) 2>&5
1893 ac_status=$?
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; then
1896 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1897# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1898# work properly (i.e., refer to `conftest.exe'), while it won't with
1899# `rm'.
1900for ac_file in conftest.exe conftest conftest.*; do
1901 test -f "$ac_file" || continue
1902 case $ac_file in
1903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1904 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 export ac_cv_exeext
1906 break;;
1907 * ) break;;
1908 esac
1909done
1910else
1911 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1912See \`config.log' for more details." >&5
1913echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1914See \`config.log' for more details." >&2;}
1915 { (exit 1); exit 1; }; }
1916fi
1917
1918rm -f conftest$ac_cv_exeext
1919echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1920echo "${ECHO_T}$ac_cv_exeext" >&6
1921
1922rm -f conftest.$ac_ext
1923EXEEXT=$ac_cv_exeext
1924ac_exeext=$EXEEXT
1925echo "$as_me:$LINENO: checking for suffix of object files" >&5
1926echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1927if test "${ac_cv_objext+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930 cat >conftest.$ac_ext <<_ACEOF
1931/* confdefs.h. */
1932_ACEOF
1933cat confdefs.h >>conftest.$ac_ext
1934cat >>conftest.$ac_ext <<_ACEOF
1935/* end confdefs.h. */
1936
1937int
1938main ()
1939{
1940
1941 ;
1942 return 0;
1943}
1944_ACEOF
1945rm -f conftest.o conftest.obj
1946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1947 (eval $ac_compile) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; then
1951 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1952 case $ac_file in
1953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1954 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1955 break;;
1956 esac
1957done
1958else
1959 echo "$as_me: failed program was:" >&5
1960sed 's/^/| /' conftest.$ac_ext >&5
1961
1962{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1963See \`config.log' for more details." >&5
1964echo "$as_me: error: cannot compute suffix of object files: cannot compile
1965See \`config.log' for more details." >&2;}
1966 { (exit 1); exit 1; }; }
1967fi
1968
1969rm -f conftest.$ac_cv_objext conftest.$ac_ext
1970fi
1971echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1972echo "${ECHO_T}$ac_cv_objext" >&6
1973OBJEXT=$ac_cv_objext
1974ac_objext=$OBJEXT
1975echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1976echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1977if test "${ac_cv_c_compiler_gnu+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979else
1980 cat >conftest.$ac_ext <<_ACEOF
1981/* confdefs.h. */
1982_ACEOF
1983cat confdefs.h >>conftest.$ac_ext
1984cat >>conftest.$ac_ext <<_ACEOF
1985/* end confdefs.h. */
1986
1987int
1988main ()
1989{
1990#ifndef __GNUC__
1991 choke me
1992#endif
1993
1994 ;
1995 return 0;
1996}
1997_ACEOF
1998rm -f conftest.$ac_objext
1999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>conftest.er1
2001 ac_status=$?
2002 grep -v '^ *+' conftest.er1 >conftest.err
2003 rm -f conftest.er1
2004 cat conftest.err >&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -z "$ac_c_werror_flag"
2008 || test ! -s conftest.err'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; } &&
2014 { ac_try='test -s conftest.$ac_objext'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 (eval $ac_try) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
2020 ac_compiler_gnu=yes
2021else
2022 echo "$as_me: failed program was:" >&5
2023sed 's/^/| /' conftest.$ac_ext >&5
2024
2025ac_compiler_gnu=no
2026fi
2027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2028ac_cv_c_compiler_gnu=$ac_compiler_gnu
2029
2030fi
2031echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2032echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2033GCC=`test $ac_compiler_gnu = yes && echo yes`
2034ac_test_CFLAGS=${CFLAGS+set}
2035ac_save_CFLAGS=$CFLAGS
2036CFLAGS="-g"
2037echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2038echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2039if test "${ac_cv_prog_cc_g+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
2042 cat >conftest.$ac_ext <<_ACEOF
2043/* confdefs.h. */
2044_ACEOF
2045cat confdefs.h >>conftest.$ac_ext
2046cat >>conftest.$ac_ext <<_ACEOF
2047/* end confdefs.h. */
2048
2049int
2050main ()
2051{
2052
2053 ;
2054 return 0;
2055}
2056_ACEOF
2057rm -f conftest.$ac_objext
2058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2059 (eval $ac_compile) 2>conftest.er1
2060 ac_status=$?
2061 grep -v '^ *+' conftest.er1 >conftest.err
2062 rm -f conftest.er1
2063 cat conftest.err >&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); } &&
2066 { ac_try='test -z "$ac_c_werror_flag"
2067 || test ! -s conftest.err'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; } &&
2073 { ac_try='test -s conftest.$ac_objext'
2074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075 (eval $ac_try) 2>&5
2076 ac_status=$?
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }; }; then
2079 ac_cv_prog_cc_g=yes
2080else
2081 echo "$as_me: failed program was:" >&5
2082sed 's/^/| /' conftest.$ac_ext >&5
2083
2084ac_cv_prog_cc_g=no
2085fi
2086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2087fi
2088echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2089echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2090if test "$ac_test_CFLAGS" = set; then
2091 CFLAGS=$ac_save_CFLAGS
2092elif test $ac_cv_prog_cc_g = yes; then
2093 if test "$GCC" = yes; then
2094 CFLAGS="-g -O2"
2095 else
2096 CFLAGS="-g"
2097 fi
2098else
2099 if test "$GCC" = yes; then
2100 CFLAGS="-O2"
2101 else
2102 CFLAGS=
2103 fi
2104fi
2105echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2106echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2107if test "${ac_cv_prog_cc_stdc+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109else
2110 ac_cv_prog_cc_stdc=no
2111ac_save_CC=$CC
2112cat >conftest.$ac_ext <<_ACEOF
2113/* confdefs.h. */
2114_ACEOF
2115cat confdefs.h >>conftest.$ac_ext
2116cat >>conftest.$ac_ext <<_ACEOF
2117/* end confdefs.h. */
2118#include <stdarg.h>
2119#include <stdio.h>
2120#include <sys/types.h>
2121#include <sys/stat.h>
2122/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2123struct buf { int x; };
2124FILE * (*rcsopen) (struct buf *, struct stat *, int);
2125static char *e (p, i)
2126 char **p;
2127 int i;
2128{
2129 return p[i];
2130}
2131static char *f (char * (*g) (char **, int), char **p, ...)
2132{
2133 char *s;
2134 va_list v;
2135 va_start (v,p);
2136 s = g (p, va_arg (v,int));
2137 va_end (v);
2138 return s;
2139}
2140
2141/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2142 function prototypes and stuff, but not '\xHH' hex character constants.
2143 These don't provoke an error unfortunately, instead are silently treated
2144 as 'x'. The following induces an error, until -std1 is added to get
2145 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2146 array size at least. It's necessary to write '\x00'==0 to get something
2147 that's true only with -std1. */
2148int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2149
2150int test (int i, double x);
2151struct s1 {int (*f) (int a);};
2152struct s2 {int (*f) (double a);};
2153int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2154int argc;
2155char **argv;
2156int
2157main ()
2158{
2159return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2160 ;
2161 return 0;
2162}
2163_ACEOF
2164# Don't try gcc -ansi; that turns off useful extensions and
2165# breaks some systems' header files.
2166# AIX -qlanglvl=ansi
2167# Ultrix and OSF/1 -std1
2168# HP-UX 10.20 and later -Ae
2169# HP-UX older versions -Aa -D_HPUX_SOURCE
2170# SVR4 -Xc -D__EXTENSIONS__
2171for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2172do
2173 CC="$ac_save_CC $ac_arg"
2174 rm -f conftest.$ac_objext
2175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>conftest.er1
2177 ac_status=$?
2178 grep -v '^ *+' conftest.er1 >conftest.err
2179 rm -f conftest.er1
2180 cat conftest.err >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); } &&
2183 { ac_try='test -z "$ac_c_werror_flag"
2184 || test ! -s conftest.err'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2196 ac_cv_prog_cc_stdc=$ac_arg
2197break
2198else
2199 echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202fi
2203rm -f conftest.err conftest.$ac_objext
2204done
2205rm -f conftest.$ac_ext conftest.$ac_objext
2206CC=$ac_save_CC
2207
2208fi
2209
2210case "x$ac_cv_prog_cc_stdc" in
2211 x|xno)
2212 echo "$as_me:$LINENO: result: none needed" >&5
2213echo "${ECHO_T}none needed" >&6 ;;
2214 *)
2215 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2216echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2217 CC="$CC $ac_cv_prog_cc_stdc" ;;
2218esac
2219
2220# Some people use a C++ compiler to compile C. Since we use `exit',
2221# in C++ we need to declare it. In case someone uses the same compiler
2222# for both compiling C and C++ we need to have the C++ compiler decide
2223# the declaration of exit, since it's the most demanding environment.
2224cat >conftest.$ac_ext <<_ACEOF
2225#ifndef __cplusplus
2226 choke me
2227#endif
2228_ACEOF
2229rm -f conftest.$ac_objext
2230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>conftest.er1
2232 ac_status=$?
2233 grep -v '^ *+' conftest.er1 >conftest.err
2234 rm -f conftest.er1
2235 cat conftest.err >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 { ac_try='test -z "$ac_c_werror_flag"
2239 || test ! -s conftest.err'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; } &&
2245 { ac_try='test -s conftest.$ac_objext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2251 for ac_declaration in \
2252 '' \
2253 'extern "C" void std::exit (int) throw (); using std::exit;' \
2254 'extern "C" void std::exit (int); using std::exit;' \
2255 'extern "C" void exit (int) throw ();' \
2256 'extern "C" void exit (int);' \
2257 'void exit (int);'
2258do
2259 cat >conftest.$ac_ext <<_ACEOF
2260/* confdefs.h. */
2261_ACEOF
2262cat confdefs.h >>conftest.$ac_ext
2263cat >>conftest.$ac_ext <<_ACEOF
2264/* end confdefs.h. */
2265$ac_declaration
2266#include <stdlib.h>
2267int
2268main ()
2269{
2270exit (42);
2271 ;
2272 return 0;
2273}
2274_ACEOF
2275rm -f conftest.$ac_objext
2276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>conftest.er1
2278 ac_status=$?
2279 grep -v '^ *+' conftest.er1 >conftest.err
2280 rm -f conftest.er1
2281 cat conftest.err >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -z "$ac_c_werror_flag"
2285 || test ! -s conftest.err'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 :
2298else
2299 echo "$as_me: failed program was:" >&5
2300sed 's/^/| /' conftest.$ac_ext >&5
2301
2302continue
2303fi
2304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2305 cat >conftest.$ac_ext <<_ACEOF
2306/* confdefs.h. */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h. */
2311$ac_declaration
2312int
2313main ()
2314{
2315exit (42);
2316 ;
2317 return 0;
2318}
2319_ACEOF
2320rm -f conftest.$ac_objext
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>conftest.er1
2323 ac_status=$?
2324 grep -v '^ *+' conftest.er1 >conftest.err
2325 rm -f conftest.er1
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -z "$ac_c_werror_flag"
2330 || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 (eval $ac_try) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2342 break
2343else
2344 echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347fi
2348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349done
2350rm -f conftest*
2351if test -n "$ac_declaration"; then
2352 echo '#ifdef __cplusplus' >>confdefs.h
2353 echo $ac_declaration >>confdefs.h
2354 echo '#endif' >>confdefs.h
2355fi
2356
2357else
2358 echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361fi
2362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2363ac_ext=c
2364ac_cpp='$CPP $CPPFLAGS'
2365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002369ac_ext=cc
2370ac_cpp='$CXXCPP $CPPFLAGS'
2371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2374if test -n "$ac_tool_prefix"; then
2375 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2376 do
2377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2379echo "$as_me:$LINENO: checking for $ac_word" >&5
2380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2381if test "${ac_cv_prog_CXX+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383else
2384 if test -n "$CXX"; then
2385 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2386else
2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2394 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398done
2399done
2400
2401fi
2402fi
2403CXX=$ac_cv_prog_CXX
2404if test -n "$CXX"; then
2405 echo "$as_me:$LINENO: result: $CXX" >&5
2406echo "${ECHO_T}$CXX" >&6
2407else
2408 echo "$as_me:$LINENO: result: no" >&5
2409echo "${ECHO_T}no" >&6
2410fi
2411
2412 test -n "$CXX" && break
2413 done
2414fi
2415if test -z "$CXX"; then
2416 ac_ct_CXX=$CXX
2417 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2418do
2419 # Extract the first word of "$ac_prog", so it can be a program name with args.
2420set dummy $ac_prog; ac_word=$2
2421echo "$as_me:$LINENO: checking for $ac_word" >&5
2422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2423if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425else
2426 if test -n "$ac_ct_CXX"; then
2427 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2428else
2429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430for as_dir in $PATH
2431do
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 ac_cv_prog_ac_ct_CXX="$ac_prog"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 break 2
2439 fi
2440done
2441done
2442
2443fi
2444fi
2445ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2446if test -n "$ac_ct_CXX"; then
2447 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2448echo "${ECHO_T}$ac_ct_CXX" >&6
2449else
2450 echo "$as_me:$LINENO: result: no" >&5
2451echo "${ECHO_T}no" >&6
2452fi
2453
2454 test -n "$ac_ct_CXX" && break
2455done
2456test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2457
2458 CXX=$ac_ct_CXX
2459fi
2460
2461
2462# Provide some information about the compiler.
2463echo "$as_me:$LINENO:" \
2464 "checking for C++ compiler version" >&5
2465ac_compiler=`set X $ac_compile; echo $2`
2466{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2467 (eval $ac_compiler --version </dev/null >&5) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }
2471{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2472 (eval $ac_compiler -v </dev/null >&5) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }
2476{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2477 (eval $ac_compiler -V </dev/null >&5) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }
2481
2482echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2483echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2484if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487 cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h. */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h. */
2493
2494int
2495main ()
2496{
2497#ifndef __GNUC__
2498 choke me
2499#endif
2500
2501 ;
2502 return 0;
2503}
2504_ACEOF
2505rm -f conftest.$ac_objext
2506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507 (eval $ac_compile) 2>conftest.er1
2508 ac_status=$?
2509 grep -v '^ *+' conftest.er1 >conftest.err
2510 rm -f conftest.er1
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } &&
2514 { ac_try='test -z "$ac_cxx_werror_flag"
2515 || test ! -s conftest.err'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; } &&
2521 { ac_try='test -s conftest.$ac_objext'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 (eval $ac_try) 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2527 ac_compiler_gnu=yes
2528else
2529 echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532ac_compiler_gnu=no
2533fi
2534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2536
2537fi
2538echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2539echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2540GXX=`test $ac_compiler_gnu = yes && echo yes`
2541ac_test_CXXFLAGS=${CXXFLAGS+set}
2542ac_save_CXXFLAGS=$CXXFLAGS
2543CXXFLAGS="-g"
2544echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2545echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2546if test "${ac_cv_prog_cxx_g+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556int
2557main ()
2558{
2559
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_cxx_werror_flag"
2574 || test ! -s conftest.err'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 ac_cv_prog_cxx_g=yes
2587else
2588 echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591ac_cv_prog_cxx_g=no
2592fi
2593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
2595echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2596echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2597if test "$ac_test_CXXFLAGS" = set; then
2598 CXXFLAGS=$ac_save_CXXFLAGS
2599elif test $ac_cv_prog_cxx_g = yes; then
2600 if test "$GXX" = yes; then
2601 CXXFLAGS="-g -O2"
2602 else
2603 CXXFLAGS="-g"
2604 fi
2605else
2606 if test "$GXX" = yes; then
2607 CXXFLAGS="-O2"
2608 else
2609 CXXFLAGS=
2610 fi
2611fi
2612for ac_declaration in \
2613 '' \
2614 'extern "C" void std::exit (int) throw (); using std::exit;' \
2615 'extern "C" void std::exit (int); using std::exit;' \
2616 'extern "C" void exit (int) throw ();' \
2617 'extern "C" void exit (int);' \
2618 'void exit (int);'
2619do
2620 cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h. */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h. */
2626$ac_declaration
2627#include <stdlib.h>
2628int
2629main ()
2630{
2631exit (42);
2632 ;
2633 return 0;
2634}
2635_ACEOF
2636rm -f conftest.$ac_objext
2637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_cxx_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 :
2659else
2660 echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663continue
2664fi
2665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 cat >conftest.$ac_ext <<_ACEOF
2667/* confdefs.h. */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h. */
2672$ac_declaration
2673int
2674main ()
2675{
2676exit (42);
2677 ;
2678 return 0;
2679}
2680_ACEOF
2681rm -f conftest.$ac_objext
2682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>conftest.er1
2684 ac_status=$?
2685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -z "$ac_cxx_werror_flag"
2691 || test ! -s conftest.err'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; } &&
2697 { ac_try='test -s conftest.$ac_objext'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 (eval $ac_try) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2703 break
2704else
2705 echo "$as_me: failed program was:" >&5
2706sed 's/^/| /' conftest.$ac_ext >&5
2707
2708fi
2709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710done
2711rm -f conftest*
2712if test -n "$ac_declaration"; then
2713 echo '#ifdef __cplusplus' >>confdefs.h
2714 echo $ac_declaration >>confdefs.h
2715 echo '#endif' >>confdefs.h
2716fi
2717
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002718ac_ext=c
2719ac_cpp='$CPP $CPPFLAGS'
2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002724ac_ext=c
2725ac_cpp='$CPP $CPPFLAGS'
2726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729
2730
2731
2732
2733echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2734echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2735if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738 ac_check_lib_save_LIBS=$LIBS
2739LIBS="-lpthread $LIBS"
2740cat >conftest.$ac_ext <<_ACEOF
2741/* confdefs.h. */
2742_ACEOF
2743cat confdefs.h >>conftest.$ac_ext
2744cat >>conftest.$ac_ext <<_ACEOF
2745/* end confdefs.h. */
2746
2747/* Override any gcc2 internal prototype to avoid an error. */
2748#ifdef __cplusplus
2749extern "C"
2750#endif
2751/* We use char because int might match the return type of a gcc2
2752 builtin and then its argument prototype would still apply. */
2753char pthread_create ();
2754int
2755main ()
2756{
2757pthread_create ();
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762rm -f conftest.$ac_objext conftest$ac_exeext
2763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2764 (eval $ac_link) 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest$ac_exeext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_lib_pthread_pthread_create=yes
2785else
2786 echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789ac_cv_lib_pthread_pthread_create=no
2790fi
2791rm -f conftest.err conftest.$ac_objext \
2792 conftest$ac_exeext conftest.$ac_ext
2793LIBS=$ac_check_lib_save_LIBS
2794fi
2795echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2796echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2797if test $ac_cv_lib_pthread_pthread_create = yes; then
2798 cat >>confdefs.h <<_ACEOF
2799#define HAVE_LIBPTHREAD 1
2800_ACEOF
2801
2802 LIBS="-lpthread $LIBS"
2803
2804fi
2805
2806
2807echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
2808echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
2809cat >>confdefs.h <<_ACEOF
2810#define PJ_M_NAME "$target_cpu"
2811_ACEOF
2812
2813
2814# Endianness detection
2815echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2816echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2817if test "${ac_cv_c_bigendian+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819else
2820 # See if sys/param.h defines the BYTE_ORDER macro.
2821cat >conftest.$ac_ext <<_ACEOF
2822/* confdefs.h. */
2823_ACEOF
2824cat confdefs.h >>conftest.$ac_ext
2825cat >>conftest.$ac_ext <<_ACEOF
2826/* end confdefs.h. */
2827#include <sys/types.h>
2828#include <sys/param.h>
2829
2830int
2831main ()
2832{
2833#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2834 bogus endian macros
2835#endif
2836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 # It does; now see whether it defined to BIG_ENDIAN or not.
2864cat >conftest.$ac_ext <<_ACEOF
2865/* confdefs.h. */
2866_ACEOF
2867cat confdefs.h >>conftest.$ac_ext
2868cat >>conftest.$ac_ext <<_ACEOF
2869/* end confdefs.h. */
2870#include <sys/types.h>
2871#include <sys/param.h>
2872
2873int
2874main ()
2875{
2876#if BYTE_ORDER != BIG_ENDIAN
2877 not big endian
2878#endif
2879
2880 ;
2881 return 0;
2882}
2883_ACEOF
2884rm -f conftest.$ac_objext
2885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 ac_cv_c_bigendian=yes
2907else
2908 echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911ac_cv_c_bigendian=no
2912fi
2913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914else
2915 echo "$as_me: failed program was:" >&5
2916sed 's/^/| /' conftest.$ac_ext >&5
2917
2918# It does not; compile a test program.
2919if test "$cross_compiling" = yes; then
2920 # try to guess the endianness by grepping values into an object file
2921 ac_cv_c_bigendian=unknown
2922 cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
2928short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2929short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2930void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2931short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2932short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2933void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2934int
2935main ()
2936{
2937 _ascii (); _ebcdic ();
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext
2943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag"
2952 || test ! -s conftest.err'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 (eval $ac_try) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2965 ac_cv_c_bigendian=yes
2966fi
2967if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2968 if test "$ac_cv_c_bigendian" = unknown; then
2969 ac_cv_c_bigendian=no
2970 else
2971 # finding both strings is unlikely to happen, but who knows?
2972 ac_cv_c_bigendian=unknown
2973 fi
2974fi
2975else
2976 echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979fi
2980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2981else
2982 cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h. */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h. */
2988int
2989main ()
2990{
2991 /* Are we little or big endian? From Harbison&Steele. */
2992 union
2993 {
2994 long l;
2995 char c[sizeof (long)];
2996 } u;
2997 u.l = 1;
2998 exit (u.c[sizeof (long) - 1] == 1);
2999}
3000_ACEOF
3001rm -f conftest$ac_exeext
3002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3003 (eval $ac_link) 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_cv_c_bigendian=no
3013else
3014 echo "$as_me: program exited with status $ac_status" >&5
3015echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018( exit $ac_status )
3019ac_cv_c_bigendian=yes
3020fi
3021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3022fi
3023fi
3024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025fi
3026echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3027echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3028case $ac_cv_c_bigendian in
3029 yes)
3030 ac_bigendian=1
3031
3032 cat >>confdefs.h <<\_ACEOF
3033#define PJ_IS_LITTLE_ENDIAN 0
3034_ACEOF
3035
3036 cat >>confdefs.h <<\_ACEOF
3037#define PJ_IS_BIG_ENDIAN 1
3038_ACEOF
3039
3040 ;;
3041 no)
3042 ac_bigendian=0
3043
3044 cat >>confdefs.h <<\_ACEOF
3045#define PJ_IS_LITTLE_ENDIAN 1
3046_ACEOF
3047
3048 cat >>confdefs.h <<\_ACEOF
3049#define PJ_IS_BIG_ENDIAN 0
3050_ACEOF
3051
3052 ;;
3053 *)
3054 { { echo "$as_me:$LINENO: error: unknown endianness
3055presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3056echo "$as_me: error: unknown endianness
3057presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3058 { (exit 1); exit 1; }; } ;;
3059esac
3060
3061
3062# --disable-floating-point option
3063# Check whether --enable-floating-point or --disable-floating-point was given.
3064if test "${enable_floating_point+set}" = set; then
3065 enableval="$enable_floating_point"
3066 if test "$enable_floating_point" = "no"; then
3067 cat >>confdefs.h <<\_ACEOF
3068#define PJ_HAS_FLOATING_POINT 0
3069_ACEOF
3070
3071 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
3072echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
3073 fi
3074else
3075
3076 cat >>confdefs.h <<\_ACEOF
3077#define PJ_HAS_FLOATING_POINT 1
3078_ACEOF
3079
3080 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
3081echo "${ECHO_T}Checking if floating point is disabled... no" >&6
3082
3083echo "$as_me:$LINENO: checking for fmod in -lm" >&5
3084echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
3085if test "${ac_cv_lib_m_fmod+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088 ac_check_lib_save_LIBS=$LIBS
3089LIBS="-lm $LIBS"
3090cat >conftest.$ac_ext <<_ACEOF
3091/* confdefs.h. */
3092_ACEOF
3093cat confdefs.h >>conftest.$ac_ext
3094cat >>conftest.$ac_ext <<_ACEOF
3095/* end confdefs.h. */
3096
3097/* Override any gcc2 internal prototype to avoid an error. */
3098#ifdef __cplusplus
3099extern "C"
3100#endif
3101/* We use char because int might match the return type of a gcc2
3102 builtin and then its argument prototype would still apply. */
3103char fmod ();
3104int
3105main ()
3106{
3107fmod ();
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext conftest$ac_exeext
3113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3114 (eval $ac_link) 2>conftest.er1
3115 ac_status=$?
3116 grep -v '^ *+' conftest.er1 >conftest.err
3117 rm -f conftest.er1
3118 cat conftest.err >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -z "$ac_c_werror_flag"
3122 || test ! -s conftest.err'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; } &&
3128 { ac_try='test -s conftest$ac_exeext'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 ac_cv_lib_m_fmod=yes
3135else
3136 echo "$as_me: failed program was:" >&5
3137sed 's/^/| /' conftest.$ac_ext >&5
3138
3139ac_cv_lib_m_fmod=no
3140fi
3141rm -f conftest.err conftest.$ac_objext \
3142 conftest$ac_exeext conftest.$ac_ext
3143LIBS=$ac_check_lib_save_LIBS
3144fi
3145echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
3146echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
3147if test $ac_cv_lib_m_fmod = yes; then
3148 cat >>confdefs.h <<_ACEOF
3149#define HAVE_LIBM 1
3150_ACEOF
3151
3152 LIBS="-lm $LIBS"
3153
3154fi
3155
3156
3157fi;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003158
3159
3160ac_ext=c
3161ac_cpp='$CPP $CPPFLAGS'
3162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3166echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3167# On Suns, sometimes $CPP names a directory.
3168if test -n "$CPP" && test -d "$CPP"; then
3169 CPP=
3170fi
3171if test -z "$CPP"; then
3172 if test "${ac_cv_prog_CPP+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174else
3175 # Double quotes because CPP needs to be expanded
3176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3177 do
3178 ac_preproc_ok=false
3179for ac_c_preproc_warn_flag in '' yes
3180do
3181 # Use a header file that comes with gcc, so configuring glibc
3182 # with a fresh cross-compiler works.
3183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3184 # <limits.h> exists even on freestanding compilers.
3185 # On the NeXT, cc -E runs the code through the compiler's parser,
3186 # not just through cpp. "Syntax error" is here to catch this case.
3187 cat >conftest.$ac_ext <<_ACEOF
3188/* confdefs.h. */
3189_ACEOF
3190cat confdefs.h >>conftest.$ac_ext
3191cat >>conftest.$ac_ext <<_ACEOF
3192/* end confdefs.h. */
3193#ifdef __STDC__
3194# include <limits.h>
3195#else
3196# include <assert.h>
3197#endif
3198 Syntax error
3199_ACEOF
3200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } >/dev/null; then
3208 if test -s conftest.err; then
3209 ac_cpp_err=$ac_c_preproc_warn_flag
3210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3211 else
3212 ac_cpp_err=
3213 fi
3214else
3215 ac_cpp_err=yes
3216fi
3217if test -z "$ac_cpp_err"; then
3218 :
3219else
3220 echo "$as_me: failed program was:" >&5
3221sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 # Broken: fails on valid input.
3224continue
3225fi
3226rm -f conftest.err conftest.$ac_ext
3227
3228 # OK, works on sane cases. Now check whether non-existent headers
3229 # can be detected and how.
3230 cat >conftest.$ac_ext <<_ACEOF
3231/* confdefs.h. */
3232_ACEOF
3233cat confdefs.h >>conftest.$ac_ext
3234cat >>conftest.$ac_ext <<_ACEOF
3235/* end confdefs.h. */
3236#include <ac_nonexistent.h>
3237_ACEOF
3238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } >/dev/null; then
3246 if test -s conftest.err; then
3247 ac_cpp_err=$ac_c_preproc_warn_flag
3248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3249 else
3250 ac_cpp_err=
3251 fi
3252else
3253 ac_cpp_err=yes
3254fi
3255if test -z "$ac_cpp_err"; then
3256 # Broken: success on invalid input.
3257continue
3258else
3259 echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 # Passes both tests.
3263ac_preproc_ok=:
3264break
3265fi
3266rm -f conftest.err conftest.$ac_ext
3267
3268done
3269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3270rm -f conftest.err conftest.$ac_ext
3271if $ac_preproc_ok; then
3272 break
3273fi
3274
3275 done
3276 ac_cv_prog_CPP=$CPP
3277
3278fi
3279 CPP=$ac_cv_prog_CPP
3280else
3281 ac_cv_prog_CPP=$CPP
3282fi
3283echo "$as_me:$LINENO: result: $CPP" >&5
3284echo "${ECHO_T}$CPP" >&6
3285ac_preproc_ok=false
3286for ac_c_preproc_warn_flag in '' yes
3287do
3288 # Use a header file that comes with gcc, so configuring glibc
3289 # with a fresh cross-compiler works.
3290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3291 # <limits.h> exists even on freestanding compilers.
3292 # On the NeXT, cc -E runs the code through the compiler's parser,
3293 # not just through cpp. "Syntax error" is here to catch this case.
3294 cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300#ifdef __STDC__
3301# include <limits.h>
3302#else
3303# include <assert.h>
3304#endif
3305 Syntax error
3306_ACEOF
3307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } >/dev/null; then
3315 if test -s conftest.err; then
3316 ac_cpp_err=$ac_c_preproc_warn_flag
3317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3318 else
3319 ac_cpp_err=
3320 fi
3321else
3322 ac_cpp_err=yes
3323fi
3324if test -z "$ac_cpp_err"; then
3325 :
3326else
3327 echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 # Broken: fails on valid input.
3331continue
3332fi
3333rm -f conftest.err conftest.$ac_ext
3334
3335 # OK, works on sane cases. Now check whether non-existent headers
3336 # can be detected and how.
3337 cat >conftest.$ac_ext <<_ACEOF
3338/* confdefs.h. */
3339_ACEOF
3340cat confdefs.h >>conftest.$ac_ext
3341cat >>conftest.$ac_ext <<_ACEOF
3342/* end confdefs.h. */
3343#include <ac_nonexistent.h>
3344_ACEOF
3345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null; then
3353 if test -s conftest.err; then
3354 ac_cpp_err=$ac_c_preproc_warn_flag
3355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3356 else
3357 ac_cpp_err=
3358 fi
3359else
3360 ac_cpp_err=yes
3361fi
3362if test -z "$ac_cpp_err"; then
3363 # Broken: success on invalid input.
3364continue
3365else
3366 echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 # Passes both tests.
3370ac_preproc_ok=:
3371break
3372fi
3373rm -f conftest.err conftest.$ac_ext
3374
3375done
3376# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3377rm -f conftest.err conftest.$ac_ext
3378if $ac_preproc_ok; then
3379 :
3380else
3381 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3382See \`config.log' for more details." >&5
3383echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3384See \`config.log' for more details." >&2;}
3385 { (exit 1); exit 1; }; }
3386fi
3387
3388ac_ext=c
3389ac_cpp='$CPP $CPPFLAGS'
3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393
3394
3395echo "$as_me:$LINENO: checking for egrep" >&5
3396echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3397if test "${ac_cv_prog_egrep+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3401 then ac_cv_prog_egrep='grep -E'
3402 else ac_cv_prog_egrep='egrep'
3403 fi
3404fi
3405echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3406echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3407 EGREP=$ac_cv_prog_egrep
3408
3409
3410echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3411echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3412if test "${ac_cv_header_stdc+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421#include <stdlib.h>
3422#include <stdarg.h>
3423#include <string.h>
3424#include <float.h>
3425
3426int
3427main ()
3428{
3429
3430 ;
3431 return 0;
3432}
3433_ACEOF
3434rm -f conftest.$ac_objext
3435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3436 (eval $ac_compile) 2>conftest.er1
3437 ac_status=$?
3438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
3443 { ac_try='test -z "$ac_c_werror_flag"
3444 || test ! -s conftest.err'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 ac_cv_header_stdc=yes
3457else
3458 echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461ac_cv_header_stdc=no
3462fi
3463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3464
3465if test $ac_cv_header_stdc = yes; then
3466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3467 cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h. */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h. */
3473#include <string.h>
3474
3475_ACEOF
3476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3477 $EGREP "memchr" >/dev/null 2>&1; then
3478 :
3479else
3480 ac_cv_header_stdc=no
3481fi
3482rm -f conftest*
3483
3484fi
3485
3486if test $ac_cv_header_stdc = yes; then
3487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3488 cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h. */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h. */
3494#include <stdlib.h>
3495
3496_ACEOF
3497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3498 $EGREP "free" >/dev/null 2>&1; then
3499 :
3500else
3501 ac_cv_header_stdc=no
3502fi
3503rm -f conftest*
3504
3505fi
3506
3507if test $ac_cv_header_stdc = yes; then
3508 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3509 if test "$cross_compiling" = yes; then
3510 :
3511else
3512 cat >conftest.$ac_ext <<_ACEOF
3513/* confdefs.h. */
3514_ACEOF
3515cat confdefs.h >>conftest.$ac_ext
3516cat >>conftest.$ac_ext <<_ACEOF
3517/* end confdefs.h. */
3518#include <ctype.h>
3519#if ((' ' & 0x0FF) == 0x020)
3520# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3521# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3522#else
3523# define ISLOWER(c) \
3524 (('a' <= (c) && (c) <= 'i') \
3525 || ('j' <= (c) && (c) <= 'r') \
3526 || ('s' <= (c) && (c) <= 'z'))
3527# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3528#endif
3529
3530#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3531int
3532main ()
3533{
3534 int i;
3535 for (i = 0; i < 256; i++)
3536 if (XOR (islower (i), ISLOWER (i))
3537 || toupper (i) != TOUPPER (i))
3538 exit(2);
3539 exit (0);
3540}
3541_ACEOF
3542rm -f conftest$ac_exeext
3543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3544 (eval $ac_link) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 :
3554else
3555 echo "$as_me: program exited with status $ac_status" >&5
3556echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559( exit $ac_status )
3560ac_cv_header_stdc=no
3561fi
3562rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3563fi
3564fi
3565fi
3566echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3567echo "${ECHO_T}$ac_cv_header_stdc" >&6
3568if test $ac_cv_header_stdc = yes; then
3569
3570cat >>confdefs.h <<\_ACEOF
3571#define STDC_HEADERS 1
3572_ACEOF
3573
3574fi
3575
3576# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3587 inttypes.h stdint.h unistd.h
3588do
3589as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3590echo "$as_me:$LINENO: checking for $ac_header" >&5
3591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3592if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595 cat >conftest.$ac_ext <<_ACEOF
3596/* confdefs.h. */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h. */
3601$ac_includes_default
3602
3603#include <$ac_header>
3604_ACEOF
3605rm -f conftest.$ac_objext
3606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3607 (eval $ac_compile) 2>conftest.er1
3608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try='test -z "$ac_c_werror_flag"
3615 || test ! -s conftest.err'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try='test -s conftest.$ac_objext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 eval "$as_ac_Header=yes"
3628else
3629 echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632eval "$as_ac_Header=no"
3633fi
3634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3635fi
3636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3638if test `eval echo '${'$as_ac_Header'}'` = yes; then
3639 cat >>confdefs.h <<_ACEOF
3640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3641_ACEOF
3642
3643fi
3644
3645done
3646
3647
3648if test "${ac_cv_header_arpa_inet_h+set}" = set; then
3649 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
3650echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
3651if test "${ac_cv_header_arpa_inet_h+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3653fi
3654echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
3655echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
3656else
3657 # Is the header compilable?
3658echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
3659echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
3660cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h. */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h. */
3666$ac_includes_default
3667#include <arpa/inet.h>
3668_ACEOF
3669rm -f conftest.$ac_objext
3670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_c_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 ac_header_compiler=yes
3692else
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696ac_header_compiler=no
3697fi
3698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3700echo "${ECHO_T}$ac_header_compiler" >&6
3701
3702# Is the header present?
3703echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
3704echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
3705cat >conftest.$ac_ext <<_ACEOF
3706/* confdefs.h. */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h. */
3711#include <arpa/inet.h>
3712_ACEOF
3713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3715 ac_status=$?
3716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } >/dev/null; then
3721 if test -s conftest.err; then
3722 ac_cpp_err=$ac_c_preproc_warn_flag
3723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3724 else
3725 ac_cpp_err=
3726 fi
3727else
3728 ac_cpp_err=yes
3729fi
3730if test -z "$ac_cpp_err"; then
3731 ac_header_preproc=yes
3732else
3733 echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 ac_header_preproc=no
3737fi
3738rm -f conftest.err conftest.$ac_ext
3739echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3740echo "${ECHO_T}$ac_header_preproc" >&6
3741
3742# So? What about this header?
3743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3744 yes:no: )
3745 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
3746echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3747 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
3748echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
3749 ac_header_preproc=yes
3750 ;;
3751 no:yes:* )
3752 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
3753echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
3755echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
3757echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
3758 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
3759echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
3760 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
3761echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
3762 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
3763echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
3764 (
3765 cat <<\_ASBOX
3766## ------------------------------------ ##
3767## Report this to the pjproject lists. ##
3768## ------------------------------------ ##
3769_ASBOX
3770 ) |
3771 sed "s/^/$as_me: WARNING: /" >&2
3772 ;;
3773esac
3774echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
3775echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
3776if test "${ac_cv_header_arpa_inet_h+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 ac_cv_header_arpa_inet_h=$ac_header_preproc
3780fi
3781echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
3782echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
3783
3784fi
3785if test $ac_cv_header_arpa_inet_h = yes; then
3786 cat >>confdefs.h <<\_ACEOF
3787#define PJ_HAS_ARPA_INET_H 1
3788_ACEOF
3789
3790fi
3791
3792
3793if test "${ac_cv_header_assert_h+set}" = set; then
3794 echo "$as_me:$LINENO: checking for assert.h" >&5
3795echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
3796if test "${ac_cv_header_assert_h+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798fi
3799echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
3800echo "${ECHO_T}$ac_cv_header_assert_h" >&6
3801else
3802 # Is the header compilable?
3803echo "$as_me:$LINENO: checking assert.h usability" >&5
3804echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
3805cat >conftest.$ac_ext <<_ACEOF
3806/* confdefs.h. */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h. */
3811$ac_includes_default
3812#include <assert.h>
3813_ACEOF
3814rm -f conftest.$ac_objext
3815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_header_compiler=yes
3837else
3838 echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841ac_header_compiler=no
3842fi
3843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3845echo "${ECHO_T}$ac_header_compiler" >&6
3846
3847# Is the header present?
3848echo "$as_me:$LINENO: checking assert.h presence" >&5
3849echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
3850cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h. */
3856#include <assert.h>
3857_ACEOF
3858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } >/dev/null; then
3866 if test -s conftest.err; then
3867 ac_cpp_err=$ac_c_preproc_warn_flag
3868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3869 else
3870 ac_cpp_err=
3871 fi
3872else
3873 ac_cpp_err=yes
3874fi
3875if test -z "$ac_cpp_err"; then
3876 ac_header_preproc=yes
3877else
3878 echo "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 ac_header_preproc=no
3882fi
3883rm -f conftest.err conftest.$ac_ext
3884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3885echo "${ECHO_T}$ac_header_preproc" >&6
3886
3887# So? What about this header?
3888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3889 yes:no: )
3890 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
3891echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
3893echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
3894 ac_header_preproc=yes
3895 ;;
3896 no:yes:* )
3897 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
3898echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
3900echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
3902echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
3904echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
3906echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
3908echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
3909 (
3910 cat <<\_ASBOX
3911## ------------------------------------ ##
3912## Report this to the pjproject lists. ##
3913## ------------------------------------ ##
3914_ASBOX
3915 ) |
3916 sed "s/^/$as_me: WARNING: /" >&2
3917 ;;
3918esac
3919echo "$as_me:$LINENO: checking for assert.h" >&5
3920echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
3921if test "${ac_cv_header_assert_h+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924 ac_cv_header_assert_h=$ac_header_preproc
3925fi
3926echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
3927echo "${ECHO_T}$ac_cv_header_assert_h" >&6
3928
3929fi
3930if test $ac_cv_header_assert_h = yes; then
3931 cat >>confdefs.h <<\_ACEOF
3932#define PJ_HAS_ASSERT_H 1
3933_ACEOF
3934
3935fi
3936
3937
3938if test "${ac_cv_header_ctype_h+set}" = set; then
3939 echo "$as_me:$LINENO: checking for ctype.h" >&5
3940echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
3941if test "${ac_cv_header_ctype_h+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943fi
3944echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
3945echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
3946else
3947 # Is the header compilable?
3948echo "$as_me:$LINENO: checking ctype.h usability" >&5
3949echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
3950cat >conftest.$ac_ext <<_ACEOF
3951/* confdefs.h. */
3952_ACEOF
3953cat confdefs.h >>conftest.$ac_ext
3954cat >>conftest.$ac_ext <<_ACEOF
3955/* end confdefs.h. */
3956$ac_includes_default
3957#include <ctype.h>
3958_ACEOF
3959rm -f conftest.$ac_objext
3960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3961 (eval $ac_compile) 2>conftest.er1
3962 ac_status=$?
3963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try='test -z "$ac_c_werror_flag"
3969 || test ! -s conftest.err'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 (eval $ac_try) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; } &&
3975 { ac_try='test -s conftest.$ac_objext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 (eval $ac_try) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 ac_header_compiler=yes
3982else
3983 echo "$as_me: failed program was:" >&5
3984sed 's/^/| /' conftest.$ac_ext >&5
3985
3986ac_header_compiler=no
3987fi
3988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3990echo "${ECHO_T}$ac_header_compiler" >&6
3991
3992# Is the header present?
3993echo "$as_me:$LINENO: checking ctype.h presence" >&5
3994echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
3995cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
4001#include <ctype.h>
4002_ACEOF
4003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } >/dev/null; then
4011 if test -s conftest.err; then
4012 ac_cpp_err=$ac_c_preproc_warn_flag
4013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4014 else
4015 ac_cpp_err=
4016 fi
4017else
4018 ac_cpp_err=yes
4019fi
4020if test -z "$ac_cpp_err"; then
4021 ac_header_preproc=yes
4022else
4023 echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 ac_header_preproc=no
4027fi
4028rm -f conftest.err conftest.$ac_ext
4029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4030echo "${ECHO_T}$ac_header_preproc" >&6
4031
4032# So? What about this header?
4033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4034 yes:no: )
4035 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4036echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4037 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4038echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4039 ac_header_preproc=yes
4040 ;;
4041 no:yes:* )
4042 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4043echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4044 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4045echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4046 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4047echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4049echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4050 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4051echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4052 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4053echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
4054 (
4055 cat <<\_ASBOX
4056## ------------------------------------ ##
4057## Report this to the pjproject lists. ##
4058## ------------------------------------ ##
4059_ASBOX
4060 ) |
4061 sed "s/^/$as_me: WARNING: /" >&2
4062 ;;
4063esac
4064echo "$as_me:$LINENO: checking for ctype.h" >&5
4065echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4066if test "${ac_cv_header_ctype_h+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069 ac_cv_header_ctype_h=$ac_header_preproc
4070fi
4071echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4072echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4073
4074fi
4075if test $ac_cv_header_ctype_h = yes; then
4076 cat >>confdefs.h <<\_ACEOF
4077#define PJ_HAS_CTYPE_H 1
4078_ACEOF
4079
4080fi
4081
4082
4083if test "${ac_cv_header_errno_h+set}" = set; then
4084 echo "$as_me:$LINENO: checking for errno.h" >&5
4085echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4086if test "${ac_cv_header_errno_h+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088fi
4089echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4090echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4091else
4092 # Is the header compilable?
4093echo "$as_me:$LINENO: checking errno.h usability" >&5
4094echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
4095cat >conftest.$ac_ext <<_ACEOF
4096/* confdefs.h. */
4097_ACEOF
4098cat confdefs.h >>conftest.$ac_ext
4099cat >>conftest.$ac_ext <<_ACEOF
4100/* end confdefs.h. */
4101$ac_includes_default
4102#include <errno.h>
4103_ACEOF
4104rm -f conftest.$ac_objext
4105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 ac_header_compiler=yes
4127else
4128 echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
4130
4131ac_header_compiler=no
4132fi
4133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4135echo "${ECHO_T}$ac_header_compiler" >&6
4136
4137# Is the header present?
4138echo "$as_me:$LINENO: checking errno.h presence" >&5
4139echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
4140cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146#include <errno.h>
4147_ACEOF
4148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null; then
4156 if test -s conftest.err; then
4157 ac_cpp_err=$ac_c_preproc_warn_flag
4158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4159 else
4160 ac_cpp_err=
4161 fi
4162else
4163 ac_cpp_err=yes
4164fi
4165if test -z "$ac_cpp_err"; then
4166 ac_header_preproc=yes
4167else
4168 echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171 ac_header_preproc=no
4172fi
4173rm -f conftest.err conftest.$ac_ext
4174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4175echo "${ECHO_T}$ac_header_preproc" >&6
4176
4177# So? What about this header?
4178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4179 yes:no: )
4180 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4181echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4182 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4183echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4184 ac_header_preproc=yes
4185 ;;
4186 no:yes:* )
4187 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4188echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4189 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4190echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4192echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4193 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4194echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4195 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4196echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4197 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4198echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
4199 (
4200 cat <<\_ASBOX
4201## ------------------------------------ ##
4202## Report this to the pjproject lists. ##
4203## ------------------------------------ ##
4204_ASBOX
4205 ) |
4206 sed "s/^/$as_me: WARNING: /" >&2
4207 ;;
4208esac
4209echo "$as_me:$LINENO: checking for errno.h" >&5
4210echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4211if test "${ac_cv_header_errno_h+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214 ac_cv_header_errno_h=$ac_header_preproc
4215fi
4216echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4217echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4218
4219fi
4220if test $ac_cv_header_errno_h = yes; then
4221 cat >>confdefs.h <<\_ACEOF
4222#define PJ_HAS_ERRNO_H 1
4223_ACEOF
4224
4225fi
4226
4227
4228if test "${ac_cv_header_linux_socket_h+set}" = set; then
4229 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
4230echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4231if test "${ac_cv_header_linux_socket_h+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4233fi
4234echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4235echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4236else
4237 # Is the header compilable?
4238echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
4239echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
4240cat >conftest.$ac_ext <<_ACEOF
4241/* confdefs.h. */
4242_ACEOF
4243cat confdefs.h >>conftest.$ac_ext
4244cat >>conftest.$ac_ext <<_ACEOF
4245/* end confdefs.h. */
4246$ac_includes_default
4247#include <linux/socket.h>
4248_ACEOF
4249rm -f conftest.$ac_objext
4250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251 (eval $ac_compile) 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag"
4259 || test ! -s conftest.err'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 (eval $ac_try) 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; } &&
4265 { ac_try='test -s conftest.$ac_objext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_header_compiler=yes
4272else
4273 echo "$as_me: failed program was:" >&5
4274sed 's/^/| /' conftest.$ac_ext >&5
4275
4276ac_header_compiler=no
4277fi
4278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4280echo "${ECHO_T}$ac_header_compiler" >&6
4281
4282# Is the header present?
4283echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
4284echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
4285cat >conftest.$ac_ext <<_ACEOF
4286/* confdefs.h. */
4287_ACEOF
4288cat confdefs.h >>conftest.$ac_ext
4289cat >>conftest.$ac_ext <<_ACEOF
4290/* end confdefs.h. */
4291#include <linux/socket.h>
4292_ACEOF
4293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } >/dev/null; then
4301 if test -s conftest.err; then
4302 ac_cpp_err=$ac_c_preproc_warn_flag
4303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4304 else
4305 ac_cpp_err=
4306 fi
4307else
4308 ac_cpp_err=yes
4309fi
4310if test -z "$ac_cpp_err"; then
4311 ac_header_preproc=yes
4312else
4313 echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 ac_header_preproc=no
4317fi
4318rm -f conftest.err conftest.$ac_ext
4319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4320echo "${ECHO_T}$ac_header_preproc" >&6
4321
4322# So? What about this header?
4323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4324 yes:no: )
4325 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
4326echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4327 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
4328echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
4329 ac_header_preproc=yes
4330 ;;
4331 no:yes:* )
4332 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
4333echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
4334 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
4335echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
4336 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
4337echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
4338 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
4339echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
4340 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
4341echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
4342 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
4343echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
4344 (
4345 cat <<\_ASBOX
4346## ------------------------------------ ##
4347## Report this to the pjproject lists. ##
4348## ------------------------------------ ##
4349_ASBOX
4350 ) |
4351 sed "s/^/$as_me: WARNING: /" >&2
4352 ;;
4353esac
4354echo "$as_me:$LINENO: checking for linux/socket.h" >&5
4355echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4356if test "${ac_cv_header_linux_socket_h+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359 ac_cv_header_linux_socket_h=$ac_header_preproc
4360fi
4361echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4362echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4363
4364fi
4365if test $ac_cv_header_linux_socket_h = yes; then
4366 cat >>confdefs.h <<\_ACEOF
4367#define PJ_HAS_LINUX_SOCKET_H 1
4368_ACEOF
4369
4370fi
4371
4372
4373if test "${ac_cv_header_malloc_h+set}" = set; then
4374 echo "$as_me:$LINENO: checking for malloc.h" >&5
4375echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
4376if test "${ac_cv_header_malloc_h+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378fi
4379echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
4380echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
4381else
4382 # Is the header compilable?
4383echo "$as_me:$LINENO: checking malloc.h usability" >&5
4384echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
4385cat >conftest.$ac_ext <<_ACEOF
4386/* confdefs.h. */
4387_ACEOF
4388cat confdefs.h >>conftest.$ac_ext
4389cat >>conftest.$ac_ext <<_ACEOF
4390/* end confdefs.h. */
4391$ac_includes_default
4392#include <malloc.h>
4393_ACEOF
4394rm -f conftest.$ac_objext
4395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>conftest.er1
4397 ac_status=$?
4398 grep -v '^ *+' conftest.er1 >conftest.err
4399 rm -f conftest.er1
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } &&
4403 { ac_try='test -z "$ac_c_werror_flag"
4404 || test ! -s conftest.err'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; } &&
4410 { ac_try='test -s conftest.$ac_objext'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 (eval $ac_try) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; }; then
4416 ac_header_compiler=yes
4417else
4418 echo "$as_me: failed program was:" >&5
4419sed 's/^/| /' conftest.$ac_ext >&5
4420
4421ac_header_compiler=no
4422fi
4423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4425echo "${ECHO_T}$ac_header_compiler" >&6
4426
4427# Is the header present?
4428echo "$as_me:$LINENO: checking malloc.h presence" >&5
4429echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
4430cat >conftest.$ac_ext <<_ACEOF
4431/* confdefs.h. */
4432_ACEOF
4433cat confdefs.h >>conftest.$ac_ext
4434cat >>conftest.$ac_ext <<_ACEOF
4435/* end confdefs.h. */
4436#include <malloc.h>
4437_ACEOF
4438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } >/dev/null; then
4446 if test -s conftest.err; then
4447 ac_cpp_err=$ac_c_preproc_warn_flag
4448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4449 else
4450 ac_cpp_err=
4451 fi
4452else
4453 ac_cpp_err=yes
4454fi
4455if test -z "$ac_cpp_err"; then
4456 ac_header_preproc=yes
4457else
4458 echo "$as_me: failed program was:" >&5
4459sed 's/^/| /' conftest.$ac_ext >&5
4460
4461 ac_header_preproc=no
4462fi
4463rm -f conftest.err conftest.$ac_ext
4464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4465echo "${ECHO_T}$ac_header_preproc" >&6
4466
4467# So? What about this header?
4468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4469 yes:no: )
4470 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
4471echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4472 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
4473echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
4474 ac_header_preproc=yes
4475 ;;
4476 no:yes:* )
4477 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
4478echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
4480echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
4481 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
4482echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
4483 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
4484echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
4486echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
4488echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
4489 (
4490 cat <<\_ASBOX
4491## ------------------------------------ ##
4492## Report this to the pjproject lists. ##
4493## ------------------------------------ ##
4494_ASBOX
4495 ) |
4496 sed "s/^/$as_me: WARNING: /" >&2
4497 ;;
4498esac
4499echo "$as_me:$LINENO: checking for malloc.h" >&5
4500echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
4501if test "${ac_cv_header_malloc_h+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504 ac_cv_header_malloc_h=$ac_header_preproc
4505fi
4506echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
4507echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
4508
4509fi
4510if test $ac_cv_header_malloc_h = yes; then
4511 cat >>confdefs.h <<\_ACEOF
4512#define PJ_HAS_MALLOC_H 1
4513_ACEOF
4514
4515fi
4516
4517
4518if test "${ac_cv_header_netdb_h+set}" = set; then
4519 echo "$as_me:$LINENO: checking for netdb.h" >&5
4520echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
4521if test "${ac_cv_header_netdb_h+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523fi
4524echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
4525echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
4526else
4527 # Is the header compilable?
4528echo "$as_me:$LINENO: checking netdb.h usability" >&5
4529echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
4530cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h. */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h. */
4536$ac_includes_default
4537#include <netdb.h>
4538_ACEOF
4539rm -f conftest.$ac_objext
4540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_header_compiler=yes
4562else
4563 echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
4566ac_header_compiler=no
4567fi
4568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4569echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4570echo "${ECHO_T}$ac_header_compiler" >&6
4571
4572# Is the header present?
4573echo "$as_me:$LINENO: checking netdb.h presence" >&5
4574echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
4575cat >conftest.$ac_ext <<_ACEOF
4576/* confdefs.h. */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h. */
4581#include <netdb.h>
4582_ACEOF
4583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } >/dev/null; then
4591 if test -s conftest.err; then
4592 ac_cpp_err=$ac_c_preproc_warn_flag
4593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4594 else
4595 ac_cpp_err=
4596 fi
4597else
4598 ac_cpp_err=yes
4599fi
4600if test -z "$ac_cpp_err"; then
4601 ac_header_preproc=yes
4602else
4603 echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ac_header_preproc=no
4607fi
4608rm -f conftest.err conftest.$ac_ext
4609echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4610echo "${ECHO_T}$ac_header_preproc" >&6
4611
4612# So? What about this header?
4613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4614 yes:no: )
4615 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
4616echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4617 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
4618echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
4619 ac_header_preproc=yes
4620 ;;
4621 no:yes:* )
4622 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
4623echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
4624 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
4625echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
4626 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
4627echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
4628 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
4629echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
4630 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
4631echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
4632 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
4633echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
4634 (
4635 cat <<\_ASBOX
4636## ------------------------------------ ##
4637## Report this to the pjproject lists. ##
4638## ------------------------------------ ##
4639_ASBOX
4640 ) |
4641 sed "s/^/$as_me: WARNING: /" >&2
4642 ;;
4643esac
4644echo "$as_me:$LINENO: checking for netdb.h" >&5
4645echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
4646if test "${ac_cv_header_netdb_h+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649 ac_cv_header_netdb_h=$ac_header_preproc
4650fi
4651echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
4652echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
4653
4654fi
4655if test $ac_cv_header_netdb_h = yes; then
4656 cat >>confdefs.h <<\_ACEOF
4657#define PJ_HAS_NETDB_H 1
4658_ACEOF
4659
4660fi
4661
4662
4663if test "${ac_cv_header_netinet_in_h+set}" = set; then
4664 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
4665echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
4666if test "${ac_cv_header_netinet_in_h+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668fi
4669echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
4670echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
4671else
4672 # Is the header compilable?
4673echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
4674echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
4675cat >conftest.$ac_ext <<_ACEOF
4676/* confdefs.h. */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h. */
4681$ac_includes_default
4682#include <netinet/in.h>
4683_ACEOF
4684rm -f conftest.$ac_objext
4685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_header_compiler=yes
4707else
4708 echo "$as_me: failed program was:" >&5
4709sed 's/^/| /' conftest.$ac_ext >&5
4710
4711ac_header_compiler=no
4712fi
4713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4715echo "${ECHO_T}$ac_header_compiler" >&6
4716
4717# Is the header present?
4718echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
4719echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
4720cat >conftest.$ac_ext <<_ACEOF
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
4726#include <netinet/in.h>
4727_ACEOF
4728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } >/dev/null; then
4736 if test -s conftest.err; then
4737 ac_cpp_err=$ac_c_preproc_warn_flag
4738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4739 else
4740 ac_cpp_err=
4741 fi
4742else
4743 ac_cpp_err=yes
4744fi
4745if test -z "$ac_cpp_err"; then
4746 ac_header_preproc=yes
4747else
4748 echo "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 ac_header_preproc=no
4752fi
4753rm -f conftest.err conftest.$ac_ext
4754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4755echo "${ECHO_T}$ac_header_preproc" >&6
4756
4757# So? What about this header?
4758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4759 yes:no: )
4760 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
4761echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
4763echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
4764 ac_header_preproc=yes
4765 ;;
4766 no:yes:* )
4767 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
4768echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
4769 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
4770echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
4771 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
4772echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
4773 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
4774echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
4775 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
4776echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
4777 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
4778echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
4779 (
4780 cat <<\_ASBOX
4781## ------------------------------------ ##
4782## Report this to the pjproject lists. ##
4783## ------------------------------------ ##
4784_ASBOX
4785 ) |
4786 sed "s/^/$as_me: WARNING: /" >&2
4787 ;;
4788esac
4789echo "$as_me:$LINENO: checking for netinet/in.h" >&5
4790echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
4791if test "${ac_cv_header_netinet_in_h+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793else
4794 ac_cv_header_netinet_in_h=$ac_header_preproc
4795fi
4796echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
4797echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
4798
4799fi
4800if test $ac_cv_header_netinet_in_h = yes; then
4801 cat >>confdefs.h <<\_ACEOF
4802#define PJ_HAS_NETINET_IN_H 1
4803_ACEOF
4804
4805fi
4806
4807
4808if test "${ac_cv_header_setjmp_h+set}" = set; then
4809 echo "$as_me:$LINENO: checking for setjmp.h" >&5
4810echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
4811if test "${ac_cv_header_setjmp_h+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813fi
4814echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
4815echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
4816else
4817 # Is the header compilable?
4818echo "$as_me:$LINENO: checking setjmp.h usability" >&5
4819echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
4820cat >conftest.$ac_ext <<_ACEOF
4821/* confdefs.h. */
4822_ACEOF
4823cat confdefs.h >>conftest.$ac_ext
4824cat >>conftest.$ac_ext <<_ACEOF
4825/* end confdefs.h. */
4826$ac_includes_default
4827#include <setjmp.h>
4828_ACEOF
4829rm -f conftest.$ac_objext
4830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -z "$ac_c_werror_flag"
4839 || test ! -s conftest.err'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; } &&
4845 { ac_try='test -s conftest.$ac_objext'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4851 ac_header_compiler=yes
4852else
4853 echo "$as_me: failed program was:" >&5
4854sed 's/^/| /' conftest.$ac_ext >&5
4855
4856ac_header_compiler=no
4857fi
4858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4859echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4860echo "${ECHO_T}$ac_header_compiler" >&6
4861
4862# Is the header present?
4863echo "$as_me:$LINENO: checking setjmp.h presence" >&5
4864echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
4865cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871#include <setjmp.h>
4872_ACEOF
4873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null; then
4881 if test -s conftest.err; then
4882 ac_cpp_err=$ac_c_preproc_warn_flag
4883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4884 else
4885 ac_cpp_err=
4886 fi
4887else
4888 ac_cpp_err=yes
4889fi
4890if test -z "$ac_cpp_err"; then
4891 ac_header_preproc=yes
4892else
4893 echo "$as_me: failed program was:" >&5
4894sed 's/^/| /' conftest.$ac_ext >&5
4895
4896 ac_header_preproc=no
4897fi
4898rm -f conftest.err conftest.$ac_ext
4899echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4900echo "${ECHO_T}$ac_header_preproc" >&6
4901
4902# So? What about this header?
4903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4904 yes:no: )
4905 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
4906echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4907 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
4908echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
4909 ac_header_preproc=yes
4910 ;;
4911 no:yes:* )
4912 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
4913echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
4914 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
4915echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
4916 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
4917echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
4918 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
4919echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
4920 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
4921echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
4922 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
4923echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
4924 (
4925 cat <<\_ASBOX
4926## ------------------------------------ ##
4927## Report this to the pjproject lists. ##
4928## ------------------------------------ ##
4929_ASBOX
4930 ) |
4931 sed "s/^/$as_me: WARNING: /" >&2
4932 ;;
4933esac
4934echo "$as_me:$LINENO: checking for setjmp.h" >&5
4935echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
4936if test "${ac_cv_header_setjmp_h+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938else
4939 ac_cv_header_setjmp_h=$ac_header_preproc
4940fi
4941echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
4942echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
4943
4944fi
4945if test $ac_cv_header_setjmp_h = yes; then
4946 cat >>confdefs.h <<\_ACEOF
4947#define PJ_HAS_SETJMP_H 1
4948_ACEOF
4949
4950fi
4951
4952
4953if test "${ac_cv_header_stdarg_h+set}" = set; then
4954 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4955echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4956if test "${ac_cv_header_stdarg_h+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958fi
4959echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4960echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4961else
4962 # Is the header compilable?
4963echo "$as_me:$LINENO: checking stdarg.h usability" >&5
4964echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
4965cat >conftest.$ac_ext <<_ACEOF
4966/* confdefs.h. */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h. */
4971$ac_includes_default
4972#include <stdarg.h>
4973_ACEOF
4974rm -f conftest.$ac_objext
4975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -z "$ac_c_werror_flag"
4984 || test ! -s conftest.err'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try='test -s conftest.$ac_objext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_header_compiler=yes
4997else
4998 echo "$as_me: failed program was:" >&5
4999sed 's/^/| /' conftest.$ac_ext >&5
5000
5001ac_header_compiler=no
5002fi
5003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5005echo "${ECHO_T}$ac_header_compiler" >&6
5006
5007# Is the header present?
5008echo "$as_me:$LINENO: checking stdarg.h presence" >&5
5009echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
5010cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h. */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h. */
5016#include <stdarg.h>
5017_ACEOF
5018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_c_preproc_warn_flag
5028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5029 else
5030 ac_cpp_err=
5031 fi
5032else
5033 ac_cpp_err=yes
5034fi
5035if test -z "$ac_cpp_err"; then
5036 ac_header_preproc=yes
5037else
5038 echo "$as_me: failed program was:" >&5
5039sed 's/^/| /' conftest.$ac_ext >&5
5040
5041 ac_header_preproc=no
5042fi
5043rm -f conftest.err conftest.$ac_ext
5044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5045echo "${ECHO_T}$ac_header_preproc" >&6
5046
5047# So? What about this header?
5048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5049 yes:no: )
5050 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5051echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5052 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5053echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5054 ac_header_preproc=yes
5055 ;;
5056 no:yes:* )
5057 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5058echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5059 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5060echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5061 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5062echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5063 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5064echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5065 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5066echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5068echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
5069 (
5070 cat <<\_ASBOX
5071## ------------------------------------ ##
5072## Report this to the pjproject lists. ##
5073## ------------------------------------ ##
5074_ASBOX
5075 ) |
5076 sed "s/^/$as_me: WARNING: /" >&2
5077 ;;
5078esac
5079echo "$as_me:$LINENO: checking for stdarg.h" >&5
5080echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5081if test "${ac_cv_header_stdarg_h+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084 ac_cv_header_stdarg_h=$ac_header_preproc
5085fi
5086echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5087echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5088
5089fi
5090if test $ac_cv_header_stdarg_h = yes; then
5091 cat >>confdefs.h <<\_ACEOF
5092#define PJ_HAS_STDARG_H 1
5093_ACEOF
5094
5095fi
5096
5097
5098if test "${ac_cv_header_stddef_h+set}" = set; then
5099 echo "$as_me:$LINENO: checking for stddef.h" >&5
5100echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5101if test "${ac_cv_header_stddef_h+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103fi
5104echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5105echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
5106else
5107 # Is the header compilable?
5108echo "$as_me:$LINENO: checking stddef.h usability" >&5
5109echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
5110cat >conftest.$ac_ext <<_ACEOF
5111/* confdefs.h. */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h. */
5116$ac_includes_default
5117#include <stddef.h>
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_header_compiler=yes
5142else
5143 echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146ac_header_compiler=no
5147fi
5148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5150echo "${ECHO_T}$ac_header_compiler" >&6
5151
5152# Is the header present?
5153echo "$as_me:$LINENO: checking stddef.h presence" >&5
5154echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
5155cat >conftest.$ac_ext <<_ACEOF
5156/* confdefs.h. */
5157_ACEOF
5158cat confdefs.h >>conftest.$ac_ext
5159cat >>conftest.$ac_ext <<_ACEOF
5160/* end confdefs.h. */
5161#include <stddef.h>
5162_ACEOF
5163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null; then
5171 if test -s conftest.err; then
5172 ac_cpp_err=$ac_c_preproc_warn_flag
5173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5174 else
5175 ac_cpp_err=
5176 fi
5177else
5178 ac_cpp_err=yes
5179fi
5180if test -z "$ac_cpp_err"; then
5181 ac_header_preproc=yes
5182else
5183 echo "$as_me: failed program was:" >&5
5184sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_header_preproc=no
5187fi
5188rm -f conftest.err conftest.$ac_ext
5189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5190echo "${ECHO_T}$ac_header_preproc" >&6
5191
5192# So? What about this header?
5193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5194 yes:no: )
5195 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
5196echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
5198echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
5199 ac_header_preproc=yes
5200 ;;
5201 no:yes:* )
5202 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
5203echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
5205echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
5207echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
5209echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
5211echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
5213echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
5214 (
5215 cat <<\_ASBOX
5216## ------------------------------------ ##
5217## Report this to the pjproject lists. ##
5218## ------------------------------------ ##
5219_ASBOX
5220 ) |
5221 sed "s/^/$as_me: WARNING: /" >&2
5222 ;;
5223esac
5224echo "$as_me:$LINENO: checking for stddef.h" >&5
5225echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5226if test "${ac_cv_header_stddef_h+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229 ac_cv_header_stddef_h=$ac_header_preproc
5230fi
5231echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5232echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
5233
5234fi
5235if test $ac_cv_header_stddef_h = yes; then
5236 cat >>confdefs.h <<\_ACEOF
5237#define PJ_HAS_STDDEF_H 1
5238_ACEOF
5239
5240fi
5241
5242
5243if test "${ac_cv_header_stdio_h+set}" = set; then
5244 echo "$as_me:$LINENO: checking for stdio.h" >&5
5245echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
5246if test "${ac_cv_header_stdio_h+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248fi
5249echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
5250echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
5251else
5252 # Is the header compilable?
5253echo "$as_me:$LINENO: checking stdio.h usability" >&5
5254echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
5255cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h. */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h. */
5261$ac_includes_default
5262#include <stdio.h>
5263_ACEOF
5264rm -f conftest.$ac_objext
5265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266 (eval $ac_compile) 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -z "$ac_c_werror_flag"
5274 || test ! -s conftest.err'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 (eval $ac_try) 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; } &&
5280 { ac_try='test -s conftest.$ac_objext'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 ac_header_compiler=yes
5287else
5288 echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291ac_header_compiler=no
5292fi
5293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5295echo "${ECHO_T}$ac_header_compiler" >&6
5296
5297# Is the header present?
5298echo "$as_me:$LINENO: checking stdio.h presence" >&5
5299echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
5300cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h. */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h. */
5306#include <stdio.h>
5307_ACEOF
5308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5310 ac_status=$?
5311 grep -v '^ *+' conftest.er1 >conftest.err
5312 rm -f conftest.er1
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } >/dev/null; then
5316 if test -s conftest.err; then
5317 ac_cpp_err=$ac_c_preproc_warn_flag
5318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5319 else
5320 ac_cpp_err=
5321 fi
5322else
5323 ac_cpp_err=yes
5324fi
5325if test -z "$ac_cpp_err"; then
5326 ac_header_preproc=yes
5327else
5328 echo "$as_me: failed program was:" >&5
5329sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 ac_header_preproc=no
5332fi
5333rm -f conftest.err conftest.$ac_ext
5334echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5335echo "${ECHO_T}$ac_header_preproc" >&6
5336
5337# So? What about this header?
5338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5339 yes:no: )
5340 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5341echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5342 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
5343echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
5344 ac_header_preproc=yes
5345 ;;
5346 no:yes:* )
5347 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
5348echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
5350echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
5352echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
5354echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
5356echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
5357 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
5358echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
5359 (
5360 cat <<\_ASBOX
5361## ------------------------------------ ##
5362## Report this to the pjproject lists. ##
5363## ------------------------------------ ##
5364_ASBOX
5365 ) |
5366 sed "s/^/$as_me: WARNING: /" >&2
5367 ;;
5368esac
5369echo "$as_me:$LINENO: checking for stdio.h" >&5
5370echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
5371if test "${ac_cv_header_stdio_h+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374 ac_cv_header_stdio_h=$ac_header_preproc
5375fi
5376echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
5377echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
5378
5379fi
5380if test $ac_cv_header_stdio_h = yes; then
5381 cat >>confdefs.h <<\_ACEOF
5382#define PJ_HAS_STDIO_H 1
5383_ACEOF
5384
5385fi
5386
5387
5388if test "${ac_cv_header_stdlib_h+set}" = set; then
5389 echo "$as_me:$LINENO: checking for stdlib.h" >&5
5390echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
5391if test "${ac_cv_header_stdlib_h+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393fi
5394echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5395echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
5396else
5397 # Is the header compilable?
5398echo "$as_me:$LINENO: checking stdlib.h usability" >&5
5399echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
5400cat >conftest.$ac_ext <<_ACEOF
5401/* confdefs.h. */
5402_ACEOF
5403cat confdefs.h >>conftest.$ac_ext
5404cat >>conftest.$ac_ext <<_ACEOF
5405/* end confdefs.h. */
5406$ac_includes_default
5407#include <stdlib.h>
5408_ACEOF
5409rm -f conftest.$ac_objext
5410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411 (eval $ac_compile) 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -z "$ac_c_werror_flag"
5419 || test ! -s conftest.err'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; } &&
5425 { ac_try='test -s conftest.$ac_objext'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 (eval $ac_try) 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 ac_header_compiler=yes
5432else
5433 echo "$as_me: failed program was:" >&5
5434sed 's/^/| /' conftest.$ac_ext >&5
5435
5436ac_header_compiler=no
5437fi
5438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5440echo "${ECHO_T}$ac_header_compiler" >&6
5441
5442# Is the header present?
5443echo "$as_me:$LINENO: checking stdlib.h presence" >&5
5444echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
5445cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h. */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h. */
5451#include <stdlib.h>
5452_ACEOF
5453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } >/dev/null; then
5461 if test -s conftest.err; then
5462 ac_cpp_err=$ac_c_preproc_warn_flag
5463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5464 else
5465 ac_cpp_err=
5466 fi
5467else
5468 ac_cpp_err=yes
5469fi
5470if test -z "$ac_cpp_err"; then
5471 ac_header_preproc=yes
5472else
5473 echo "$as_me: failed program was:" >&5
5474sed 's/^/| /' conftest.$ac_ext >&5
5475
5476 ac_header_preproc=no
5477fi
5478rm -f conftest.err conftest.$ac_ext
5479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5480echo "${ECHO_T}$ac_header_preproc" >&6
5481
5482# So? What about this header?
5483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5484 yes:no: )
5485 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5486echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
5488echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
5489 ac_header_preproc=yes
5490 ;;
5491 no:yes:* )
5492 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
5493echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
5494 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
5495echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
5496 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
5497echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
5498 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
5499echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
5500 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
5501echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
5502 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
5503echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
5504 (
5505 cat <<\_ASBOX
5506## ------------------------------------ ##
5507## Report this to the pjproject lists. ##
5508## ------------------------------------ ##
5509_ASBOX
5510 ) |
5511 sed "s/^/$as_me: WARNING: /" >&2
5512 ;;
5513esac
5514echo "$as_me:$LINENO: checking for stdlib.h" >&5
5515echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
5516if test "${ac_cv_header_stdlib_h+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519 ac_cv_header_stdlib_h=$ac_header_preproc
5520fi
5521echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5522echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
5523
5524fi
5525if test $ac_cv_header_stdlib_h = yes; then
5526 cat >>confdefs.h <<\_ACEOF
5527#define PJ_HAS_STDLIB_H 1
5528_ACEOF
5529
5530fi
5531
5532
5533if test "${ac_cv_header_string_h+set}" = set; then
5534 echo "$as_me:$LINENO: checking for string.h" >&5
5535echo $ECHO_N "checking for string.h... $ECHO_C" >&6
5536if test "${ac_cv_header_string_h+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538fi
5539echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
5540echo "${ECHO_T}$ac_cv_header_string_h" >&6
5541else
5542 # Is the header compilable?
5543echo "$as_me:$LINENO: checking string.h usability" >&5
5544echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
5545cat >conftest.$ac_ext <<_ACEOF
5546/* confdefs.h. */
5547_ACEOF
5548cat confdefs.h >>conftest.$ac_ext
5549cat >>conftest.$ac_ext <<_ACEOF
5550/* end confdefs.h. */
5551$ac_includes_default
5552#include <string.h>
5553_ACEOF
5554rm -f conftest.$ac_objext
5555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5556 (eval $ac_compile) 2>conftest.er1
5557 ac_status=$?
5558 grep -v '^ *+' conftest.er1 >conftest.err
5559 rm -f conftest.er1
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } &&
5563 { ac_try='test -z "$ac_c_werror_flag"
5564 || test ! -s conftest.err'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566 (eval $ac_try) 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; } &&
5570 { ac_try='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_header_compiler=yes
5577else
5578 echo "$as_me: failed program was:" >&5
5579sed 's/^/| /' conftest.$ac_ext >&5
5580
5581ac_header_compiler=no
5582fi
5583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5585echo "${ECHO_T}$ac_header_compiler" >&6
5586
5587# Is the header present?
5588echo "$as_me:$LINENO: checking string.h presence" >&5
5589echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
5590cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h. */
5596#include <string.h>
5597_ACEOF
5598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } >/dev/null; then
5606 if test -s conftest.err; then
5607 ac_cpp_err=$ac_c_preproc_warn_flag
5608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5609 else
5610 ac_cpp_err=
5611 fi
5612else
5613 ac_cpp_err=yes
5614fi
5615if test -z "$ac_cpp_err"; then
5616 ac_header_preproc=yes
5617else
5618 echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ac_header_preproc=no
5622fi
5623rm -f conftest.err conftest.$ac_ext
5624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5625echo "${ECHO_T}$ac_header_preproc" >&6
5626
5627# So? What about this header?
5628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5629 yes:no: )
5630 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
5631echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5632 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
5633echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
5634 ac_header_preproc=yes
5635 ;;
5636 no:yes:* )
5637 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
5638echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
5639 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
5640echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
5641 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
5642echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
5643 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
5644echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
5645 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
5646echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
5647 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
5648echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
5649 (
5650 cat <<\_ASBOX
5651## ------------------------------------ ##
5652## Report this to the pjproject lists. ##
5653## ------------------------------------ ##
5654_ASBOX
5655 ) |
5656 sed "s/^/$as_me: WARNING: /" >&2
5657 ;;
5658esac
5659echo "$as_me:$LINENO: checking for string.h" >&5
5660echo $ECHO_N "checking for string.h... $ECHO_C" >&6
5661if test "${ac_cv_header_string_h+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664 ac_cv_header_string_h=$ac_header_preproc
5665fi
5666echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
5667echo "${ECHO_T}$ac_cv_header_string_h" >&6
5668
5669fi
5670if test $ac_cv_header_string_h = yes; then
5671 cat >>confdefs.h <<\_ACEOF
5672#define PJ_HAS_STRING_H 1
5673_ACEOF
5674
5675fi
5676
5677
5678if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
5679 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
5680echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
5681if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683fi
5684echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
5685echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
5686else
5687 # Is the header compilable?
5688echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
5689echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
5690cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h. */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h. */
5696$ac_includes_default
5697#include <sys/ioctl.h>
5698_ACEOF
5699rm -f conftest.$ac_objext
5700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -z "$ac_c_werror_flag"
5709 || test ! -s conftest.err'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; } &&
5715 { ac_try='test -s conftest.$ac_objext'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 ac_header_compiler=yes
5722else
5723 echo "$as_me: failed program was:" >&5
5724sed 's/^/| /' conftest.$ac_ext >&5
5725
5726ac_header_compiler=no
5727fi
5728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5729echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5730echo "${ECHO_T}$ac_header_compiler" >&6
5731
5732# Is the header present?
5733echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
5734echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
5735cat >conftest.$ac_ext <<_ACEOF
5736/* confdefs.h. */
5737_ACEOF
5738cat confdefs.h >>conftest.$ac_ext
5739cat >>conftest.$ac_ext <<_ACEOF
5740/* end confdefs.h. */
5741#include <sys/ioctl.h>
5742_ACEOF
5743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } >/dev/null; then
5751 if test -s conftest.err; then
5752 ac_cpp_err=$ac_c_preproc_warn_flag
5753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5754 else
5755 ac_cpp_err=
5756 fi
5757else
5758 ac_cpp_err=yes
5759fi
5760if test -z "$ac_cpp_err"; then
5761 ac_header_preproc=yes
5762else
5763 echo "$as_me: failed program was:" >&5
5764sed 's/^/| /' conftest.$ac_ext >&5
5765
5766 ac_header_preproc=no
5767fi
5768rm -f conftest.err conftest.$ac_ext
5769echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5770echo "${ECHO_T}$ac_header_preproc" >&6
5771
5772# So? What about this header?
5773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5774 yes:no: )
5775 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5776echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
5778echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
5779 ac_header_preproc=yes
5780 ;;
5781 no:yes:* )
5782 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
5783echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
5784 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
5785echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
5787echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
5789echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
5791echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
5793echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
5794 (
5795 cat <<\_ASBOX
5796## ------------------------------------ ##
5797## Report this to the pjproject lists. ##
5798## ------------------------------------ ##
5799_ASBOX
5800 ) |
5801 sed "s/^/$as_me: WARNING: /" >&2
5802 ;;
5803esac
5804echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
5805echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
5806if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809 ac_cv_header_sys_ioctl_h=$ac_header_preproc
5810fi
5811echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
5812echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
5813
5814fi
5815if test $ac_cv_header_sys_ioctl_h = yes; then
5816 cat >>confdefs.h <<\_ACEOF
5817#define PJ_HAS_SYS_IOCTL_H 1
5818_ACEOF
5819
5820fi
5821
5822
5823if test "${ac_cv_header_sys_select_h+set}" = set; then
5824 echo "$as_me:$LINENO: checking for sys/select.h" >&5
5825echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
5826if test "${ac_cv_header_sys_select_h+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828fi
5829echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
5830echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
5831else
5832 # Is the header compilable?
5833echo "$as_me:$LINENO: checking sys/select.h usability" >&5
5834echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
5835cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h. */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h. */
5841$ac_includes_default
5842#include <sys/select.h>
5843_ACEOF
5844rm -f conftest.$ac_objext
5845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5846 (eval $ac_compile) 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } &&
5853 { ac_try='test -z "$ac_c_werror_flag"
5854 || test ! -s conftest.err'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest.$ac_objext'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5866 ac_header_compiler=yes
5867else
5868 echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871ac_header_compiler=no
5872fi
5873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5875echo "${ECHO_T}$ac_header_compiler" >&6
5876
5877# Is the header present?
5878echo "$as_me:$LINENO: checking sys/select.h presence" >&5
5879echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
5880cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h. */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h. */
5886#include <sys/select.h>
5887_ACEOF
5888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev/null; then
5896 if test -s conftest.err; then
5897 ac_cpp_err=$ac_c_preproc_warn_flag
5898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5899 else
5900 ac_cpp_err=
5901 fi
5902else
5903 ac_cpp_err=yes
5904fi
5905if test -z "$ac_cpp_err"; then
5906 ac_header_preproc=yes
5907else
5908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 ac_header_preproc=no
5912fi
5913rm -f conftest.err conftest.$ac_ext
5914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5915echo "${ECHO_T}$ac_header_preproc" >&6
5916
5917# So? What about this header?
5918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5919 yes:no: )
5920 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
5921echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5922 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
5923echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
5924 ac_header_preproc=yes
5925 ;;
5926 no:yes:* )
5927 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
5928echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
5929 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
5930echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
5931 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
5932echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
5933 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
5934echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
5935 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
5936echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
5937 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
5938echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
5939 (
5940 cat <<\_ASBOX
5941## ------------------------------------ ##
5942## Report this to the pjproject lists. ##
5943## ------------------------------------ ##
5944_ASBOX
5945 ) |
5946 sed "s/^/$as_me: WARNING: /" >&2
5947 ;;
5948esac
5949echo "$as_me:$LINENO: checking for sys/select.h" >&5
5950echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
5951if test "${ac_cv_header_sys_select_h+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953else
5954 ac_cv_header_sys_select_h=$ac_header_preproc
5955fi
5956echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
5957echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
5958
5959fi
5960if test $ac_cv_header_sys_select_h = yes; then
5961 cat >>confdefs.h <<\_ACEOF
5962#define PJ_HAS_SYS_SELECT_H 1
5963_ACEOF
5964
5965fi
5966
5967
5968if test "${ac_cv_header_sys_socket_h+set}" = set; then
5969 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
5970echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
5971if test "${ac_cv_header_sys_socket_h+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973fi
5974echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
5975echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
5976else
5977 # Is the header compilable?
5978echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
5979echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
5980cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h. */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h. */
5986$ac_includes_default
5987#include <sys/socket.h>
5988_ACEOF
5989rm -f conftest.$ac_objext
5990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } &&
5998 { ac_try='test -z "$ac_c_werror_flag"
5999 || test ! -s conftest.err'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; } &&
6005 { ac_try='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_header_compiler=yes
6012else
6013 echo "$as_me: failed program was:" >&5
6014sed 's/^/| /' conftest.$ac_ext >&5
6015
6016ac_header_compiler=no
6017fi
6018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6019echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6020echo "${ECHO_T}$ac_header_compiler" >&6
6021
6022# Is the header present?
6023echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
6024echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
6025cat >conftest.$ac_ext <<_ACEOF
6026/* confdefs.h. */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h. */
6031#include <sys/socket.h>
6032_ACEOF
6033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } >/dev/null; then
6041 if test -s conftest.err; then
6042 ac_cpp_err=$ac_c_preproc_warn_flag
6043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6044 else
6045 ac_cpp_err=
6046 fi
6047else
6048 ac_cpp_err=yes
6049fi
6050if test -z "$ac_cpp_err"; then
6051 ac_header_preproc=yes
6052else
6053 echo "$as_me: failed program was:" >&5
6054sed 's/^/| /' conftest.$ac_ext >&5
6055
6056 ac_header_preproc=no
6057fi
6058rm -f conftest.err conftest.$ac_ext
6059echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6060echo "${ECHO_T}$ac_header_preproc" >&6
6061
6062# So? What about this header?
6063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6064 yes:no: )
6065 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
6066echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6067 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
6068echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
6069 ac_header_preproc=yes
6070 ;;
6071 no:yes:* )
6072 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
6073echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
6074 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
6075echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
6076 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
6077echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
6079echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
6080 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
6081echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
6082 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
6083echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
6084 (
6085 cat <<\_ASBOX
6086## ------------------------------------ ##
6087## Report this to the pjproject lists. ##
6088## ------------------------------------ ##
6089_ASBOX
6090 ) |
6091 sed "s/^/$as_me: WARNING: /" >&2
6092 ;;
6093esac
6094echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6095echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6096if test "${ac_cv_header_sys_socket_h+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099 ac_cv_header_sys_socket_h=$ac_header_preproc
6100fi
6101echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6102echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6103
6104fi
6105if test $ac_cv_header_sys_socket_h = yes; then
6106 cat >>confdefs.h <<\_ACEOF
6107#define PJ_HAS_SYS_SOCKET_H 1
6108_ACEOF
6109
6110fi
6111
6112
6113if test "${ac_cv_header_sys_time_h+set}" = set; then
6114 echo "$as_me:$LINENO: checking for sys/time.h" >&5
6115echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
6116if test "${ac_cv_header_sys_time_h+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118fi
6119echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
6120echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
6121else
6122 # Is the header compilable?
6123echo "$as_me:$LINENO: checking sys/time.h usability" >&5
6124echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
6125cat >conftest.$ac_ext <<_ACEOF
6126/* confdefs.h. */
6127_ACEOF
6128cat confdefs.h >>conftest.$ac_ext
6129cat >>conftest.$ac_ext <<_ACEOF
6130/* end confdefs.h. */
6131$ac_includes_default
6132#include <sys/time.h>
6133_ACEOF
6134rm -f conftest.$ac_objext
6135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136 (eval $ac_compile) 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -z "$ac_c_werror_flag"
6144 || test ! -s conftest.err'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; } &&
6150 { ac_try='test -s conftest.$ac_objext'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6156 ac_header_compiler=yes
6157else
6158 echo "$as_me: failed program was:" >&5
6159sed 's/^/| /' conftest.$ac_ext >&5
6160
6161ac_header_compiler=no
6162fi
6163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6164echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6165echo "${ECHO_T}$ac_header_compiler" >&6
6166
6167# Is the header present?
6168echo "$as_me:$LINENO: checking sys/time.h presence" >&5
6169echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
6170cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h. */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h. */
6176#include <sys/time.h>
6177_ACEOF
6178if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } >/dev/null; then
6186 if test -s conftest.err; then
6187 ac_cpp_err=$ac_c_preproc_warn_flag
6188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6189 else
6190 ac_cpp_err=
6191 fi
6192else
6193 ac_cpp_err=yes
6194fi
6195if test -z "$ac_cpp_err"; then
6196 ac_header_preproc=yes
6197else
6198 echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 ac_header_preproc=no
6202fi
6203rm -f conftest.err conftest.$ac_ext
6204echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6205echo "${ECHO_T}$ac_header_preproc" >&6
6206
6207# So? What about this header?
6208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6209 yes:no: )
6210 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
6211echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
6213echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
6214 ac_header_preproc=yes
6215 ;;
6216 no:yes:* )
6217 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
6218echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
6220echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
6222echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
6224echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
6225 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
6226echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
6227 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
6228echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
6229 (
6230 cat <<\_ASBOX
6231## ------------------------------------ ##
6232## Report this to the pjproject lists. ##
6233## ------------------------------------ ##
6234_ASBOX
6235 ) |
6236 sed "s/^/$as_me: WARNING: /" >&2
6237 ;;
6238esac
6239echo "$as_me:$LINENO: checking for sys/time.h" >&5
6240echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
6241if test "${ac_cv_header_sys_time_h+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243else
6244 ac_cv_header_sys_time_h=$ac_header_preproc
6245fi
6246echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
6247echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
6248
6249fi
6250if test $ac_cv_header_sys_time_h = yes; then
6251 cat >>confdefs.h <<\_ACEOF
6252#define PJ_HAS_SYS_TIME_H 1
6253_ACEOF
6254
6255fi
6256
6257
6258if test "${ac_cv_header_sys_timeb_h+set}" = set; then
6259 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
6260echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
6261if test "${ac_cv_header_sys_timeb_h+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263fi
6264echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
6265echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
6266else
6267 # Is the header compilable?
6268echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
6269echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
6270cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h. */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h. */
6276$ac_includes_default
6277#include <sys/timeb.h>
6278_ACEOF
6279rm -f conftest.$ac_objext
6280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_header_compiler=yes
6302else
6303 echo "$as_me: failed program was:" >&5
6304sed 's/^/| /' conftest.$ac_ext >&5
6305
6306ac_header_compiler=no
6307fi
6308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6310echo "${ECHO_T}$ac_header_compiler" >&6
6311
6312# Is the header present?
6313echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
6314echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
6315cat >conftest.$ac_ext <<_ACEOF
6316/* confdefs.h. */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h. */
6321#include <sys/timeb.h>
6322_ACEOF
6323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } >/dev/null; then
6331 if test -s conftest.err; then
6332 ac_cpp_err=$ac_c_preproc_warn_flag
6333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6334 else
6335 ac_cpp_err=
6336 fi
6337else
6338 ac_cpp_err=yes
6339fi
6340if test -z "$ac_cpp_err"; then
6341 ac_header_preproc=yes
6342else
6343 echo "$as_me: failed program was:" >&5
6344sed 's/^/| /' conftest.$ac_ext >&5
6345
6346 ac_header_preproc=no
6347fi
6348rm -f conftest.err conftest.$ac_ext
6349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6350echo "${ECHO_T}$ac_header_preproc" >&6
6351
6352# So? What about this header?
6353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6354 yes:no: )
6355 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
6356echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
6358echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
6359 ac_header_preproc=yes
6360 ;;
6361 no:yes:* )
6362 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
6363echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
6365echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
6366 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
6367echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
6368 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
6369echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
6370 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
6371echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
6372 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
6373echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
6374 (
6375 cat <<\_ASBOX
6376## ------------------------------------ ##
6377## Report this to the pjproject lists. ##
6378## ------------------------------------ ##
6379_ASBOX
6380 ) |
6381 sed "s/^/$as_me: WARNING: /" >&2
6382 ;;
6383esac
6384echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
6385echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
6386if test "${ac_cv_header_sys_timeb_h+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388else
6389 ac_cv_header_sys_timeb_h=$ac_header_preproc
6390fi
6391echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
6392echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
6393
6394fi
6395if test $ac_cv_header_sys_timeb_h = yes; then
6396 cat >>confdefs.h <<\_ACEOF
6397#define PJ_HAS_SYS_TIMEB_H 1
6398_ACEOF
6399
6400fi
6401
6402
6403if test "${ac_cv_header_sys_types_h+set}" = set; then
6404 echo "$as_me:$LINENO: checking for sys/types.h" >&5
6405echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
6406if test "${ac_cv_header_sys_types_h+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408fi
6409echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
6410echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
6411else
6412 # Is the header compilable?
6413echo "$as_me:$LINENO: checking sys/types.h usability" >&5
6414echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
6415cat >conftest.$ac_ext <<_ACEOF
6416/* confdefs.h. */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h. */
6421$ac_includes_default
6422#include <sys/types.h>
6423_ACEOF
6424rm -f conftest.$ac_objext
6425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426 (eval $ac_compile) 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -z "$ac_c_werror_flag"
6434 || test ! -s conftest.err'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; } &&
6440 { ac_try='test -s conftest.$ac_objext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_header_compiler=yes
6447else
6448 echo "$as_me: failed program was:" >&5
6449sed 's/^/| /' conftest.$ac_ext >&5
6450
6451ac_header_compiler=no
6452fi
6453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6455echo "${ECHO_T}$ac_header_compiler" >&6
6456
6457# Is the header present?
6458echo "$as_me:$LINENO: checking sys/types.h presence" >&5
6459echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
6460cat >conftest.$ac_ext <<_ACEOF
6461/* confdefs.h. */
6462_ACEOF
6463cat confdefs.h >>conftest.$ac_ext
6464cat >>conftest.$ac_ext <<_ACEOF
6465/* end confdefs.h. */
6466#include <sys/types.h>
6467_ACEOF
6468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } >/dev/null; then
6476 if test -s conftest.err; then
6477 ac_cpp_err=$ac_c_preproc_warn_flag
6478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6479 else
6480 ac_cpp_err=
6481 fi
6482else
6483 ac_cpp_err=yes
6484fi
6485if test -z "$ac_cpp_err"; then
6486 ac_header_preproc=yes
6487else
6488 echo "$as_me: failed program was:" >&5
6489sed 's/^/| /' conftest.$ac_ext >&5
6490
6491 ac_header_preproc=no
6492fi
6493rm -f conftest.err conftest.$ac_ext
6494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6495echo "${ECHO_T}$ac_header_preproc" >&6
6496
6497# So? What about this header?
6498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6499 yes:no: )
6500 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
6501echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
6503echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
6504 ac_header_preproc=yes
6505 ;;
6506 no:yes:* )
6507 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
6508echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
6510echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
6512echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
6514echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
6516echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
6518echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
6519 (
6520 cat <<\_ASBOX
6521## ------------------------------------ ##
6522## Report this to the pjproject lists. ##
6523## ------------------------------------ ##
6524_ASBOX
6525 ) |
6526 sed "s/^/$as_me: WARNING: /" >&2
6527 ;;
6528esac
6529echo "$as_me:$LINENO: checking for sys/types.h" >&5
6530echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
6531if test "${ac_cv_header_sys_types_h+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 ac_cv_header_sys_types_h=$ac_header_preproc
6535fi
6536echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
6537echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
6538
6539fi
6540if test $ac_cv_header_sys_types_h = yes; then
6541 cat >>confdefs.h <<\_ACEOF
6542#define PJ_HAS_SYS_TYPES_H 1
6543_ACEOF
6544
6545fi
6546
6547
6548if test "${ac_cv_header_time_h+set}" = set; then
6549 echo "$as_me:$LINENO: checking for time.h" >&5
6550echo $ECHO_N "checking for time.h... $ECHO_C" >&6
6551if test "${ac_cv_header_time_h+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553fi
6554echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
6555echo "${ECHO_T}$ac_cv_header_time_h" >&6
6556else
6557 # Is the header compilable?
6558echo "$as_me:$LINENO: checking time.h usability" >&5
6559echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
6560cat >conftest.$ac_ext <<_ACEOF
6561/* confdefs.h. */
6562_ACEOF
6563cat confdefs.h >>conftest.$ac_ext
6564cat >>conftest.$ac_ext <<_ACEOF
6565/* end confdefs.h. */
6566$ac_includes_default
6567#include <time.h>
6568_ACEOF
6569rm -f conftest.$ac_objext
6570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_c_werror_flag"
6579 || test ! -s conftest.err'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_header_compiler=yes
6592else
6593 echo "$as_me: failed program was:" >&5
6594sed 's/^/| /' conftest.$ac_ext >&5
6595
6596ac_header_compiler=no
6597fi
6598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6599echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6600echo "${ECHO_T}$ac_header_compiler" >&6
6601
6602# Is the header present?
6603echo "$as_me:$LINENO: checking time.h presence" >&5
6604echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
6605cat >conftest.$ac_ext <<_ACEOF
6606/* confdefs.h. */
6607_ACEOF
6608cat confdefs.h >>conftest.$ac_ext
6609cat >>conftest.$ac_ext <<_ACEOF
6610/* end confdefs.h. */
6611#include <time.h>
6612_ACEOF
6613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } >/dev/null; then
6621 if test -s conftest.err; then
6622 ac_cpp_err=$ac_c_preproc_warn_flag
6623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6624 else
6625 ac_cpp_err=
6626 fi
6627else
6628 ac_cpp_err=yes
6629fi
6630if test -z "$ac_cpp_err"; then
6631 ac_header_preproc=yes
6632else
6633 echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 ac_header_preproc=no
6637fi
6638rm -f conftest.err conftest.$ac_ext
6639echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6640echo "${ECHO_T}$ac_header_preproc" >&6
6641
6642# So? What about this header?
6643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6644 yes:no: )
6645 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
6646echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
6648echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
6649 ac_header_preproc=yes
6650 ;;
6651 no:yes:* )
6652 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
6653echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
6655echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
6657echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
6658 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
6659echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
6661echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
6663echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
6664 (
6665 cat <<\_ASBOX
6666## ------------------------------------ ##
6667## Report this to the pjproject lists. ##
6668## ------------------------------------ ##
6669_ASBOX
6670 ) |
6671 sed "s/^/$as_me: WARNING: /" >&2
6672 ;;
6673esac
6674echo "$as_me:$LINENO: checking for time.h" >&5
6675echo $ECHO_N "checking for time.h... $ECHO_C" >&6
6676if test "${ac_cv_header_time_h+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678else
6679 ac_cv_header_time_h=$ac_header_preproc
6680fi
6681echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
6682echo "${ECHO_T}$ac_cv_header_time_h" >&6
6683
6684fi
6685if test $ac_cv_header_time_h = yes; then
6686 cat >>confdefs.h <<\_ACEOF
6687#define PJ_HAS_TIME_H 1
6688_ACEOF
6689
6690fi
6691
6692
6693if test "${ac_cv_header_unistd_h+set}" = set; then
6694 echo "$as_me:$LINENO: checking for unistd.h" >&5
6695echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
6696if test "${ac_cv_header_unistd_h+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698fi
6699echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
6700echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
6701else
6702 # Is the header compilable?
6703echo "$as_me:$LINENO: checking unistd.h usability" >&5
6704echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
6705cat >conftest.$ac_ext <<_ACEOF
6706/* confdefs.h. */
6707_ACEOF
6708cat confdefs.h >>conftest.$ac_ext
6709cat >>conftest.$ac_ext <<_ACEOF
6710/* end confdefs.h. */
6711$ac_includes_default
6712#include <unistd.h>
6713_ACEOF
6714rm -f conftest.$ac_objext
6715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -z "$ac_c_werror_flag"
6724 || test ! -s conftest.err'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; } &&
6730 { ac_try='test -s conftest.$ac_objext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 (eval $ac_try) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6736 ac_header_compiler=yes
6737else
6738 echo "$as_me: failed program was:" >&5
6739sed 's/^/| /' conftest.$ac_ext >&5
6740
6741ac_header_compiler=no
6742fi
6743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6745echo "${ECHO_T}$ac_header_compiler" >&6
6746
6747# Is the header present?
6748echo "$as_me:$LINENO: checking unistd.h presence" >&5
6749echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
6750cat >conftest.$ac_ext <<_ACEOF
6751/* confdefs.h. */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h. */
6756#include <unistd.h>
6757_ACEOF
6758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } >/dev/null; then
6766 if test -s conftest.err; then
6767 ac_cpp_err=$ac_c_preproc_warn_flag
6768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6769 else
6770 ac_cpp_err=
6771 fi
6772else
6773 ac_cpp_err=yes
6774fi
6775if test -z "$ac_cpp_err"; then
6776 ac_header_preproc=yes
6777else
6778 echo "$as_me: failed program was:" >&5
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 ac_header_preproc=no
6782fi
6783rm -f conftest.err conftest.$ac_ext
6784echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6785echo "${ECHO_T}$ac_header_preproc" >&6
6786
6787# So? What about this header?
6788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6789 yes:no: )
6790 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6791echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6792 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
6793echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
6794 ac_header_preproc=yes
6795 ;;
6796 no:yes:* )
6797 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
6798echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
6799 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
6800echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
6801 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
6802echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
6804echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6805 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
6806echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
6807 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
6808echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
6809 (
6810 cat <<\_ASBOX
6811## ------------------------------------ ##
6812## Report this to the pjproject lists. ##
6813## ------------------------------------ ##
6814_ASBOX
6815 ) |
6816 sed "s/^/$as_me: WARNING: /" >&2
6817 ;;
6818esac
6819echo "$as_me:$LINENO: checking for unistd.h" >&5
6820echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
6821if test "${ac_cv_header_unistd_h+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823else
6824 ac_cv_header_unistd_h=$ac_header_preproc
6825fi
6826echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
6827echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
6828
6829fi
6830if test $ac_cv_header_unistd_h = yes; then
6831 cat >>confdefs.h <<\_ACEOF
6832#define PJ_HAS_UNISTD_H 1
6833_ACEOF
6834
6835fi
6836
6837
6838if test "${ac_cv_header_mswsock_h+set}" = set; then
6839 echo "$as_me:$LINENO: checking for mswsock.h" >&5
6840echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
6841if test "${ac_cv_header_mswsock_h+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843fi
6844echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
6845echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
6846else
6847 # Is the header compilable?
6848echo "$as_me:$LINENO: checking mswsock.h usability" >&5
6849echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6
6850cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h. */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
6856$ac_includes_default
6857#include <mswsock.h>
6858_ACEOF
6859rm -f conftest.$ac_objext
6860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861 (eval $ac_compile) 2>conftest.er1
6862 ac_status=$?
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
6868 { ac_try='test -z "$ac_c_werror_flag"
6869 || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 ac_header_compiler=yes
6882else
6883 echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886ac_header_compiler=no
6887fi
6888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6889echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6890echo "${ECHO_T}$ac_header_compiler" >&6
6891
6892# Is the header present?
6893echo "$as_me:$LINENO: checking mswsock.h presence" >&5
6894echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6
6895cat >conftest.$ac_ext <<_ACEOF
6896/* confdefs.h. */
6897_ACEOF
6898cat confdefs.h >>conftest.$ac_ext
6899cat >>conftest.$ac_ext <<_ACEOF
6900/* end confdefs.h. */
6901#include <mswsock.h>
6902_ACEOF
6903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } >/dev/null; then
6911 if test -s conftest.err; then
6912 ac_cpp_err=$ac_c_preproc_warn_flag
6913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6914 else
6915 ac_cpp_err=
6916 fi
6917else
6918 ac_cpp_err=yes
6919fi
6920if test -z "$ac_cpp_err"; then
6921 ac_header_preproc=yes
6922else
6923 echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 ac_header_preproc=no
6927fi
6928rm -f conftest.err conftest.$ac_ext
6929echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6930echo "${ECHO_T}$ac_header_preproc" >&6
6931
6932# So? What about this header?
6933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6934 yes:no: )
6935 { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
6936echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6937 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
6938echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
6939 ac_header_preproc=yes
6940 ;;
6941 no:yes:* )
6942 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
6943echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
6944 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
6945echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
6946 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
6947echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
6948 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
6949echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
6950 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
6951echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
6952 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
6953echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;}
6954 (
6955 cat <<\_ASBOX
6956## ------------------------------------ ##
6957## Report this to the pjproject lists. ##
6958## ------------------------------------ ##
6959_ASBOX
6960 ) |
6961 sed "s/^/$as_me: WARNING: /" >&2
6962 ;;
6963esac
6964echo "$as_me:$LINENO: checking for mswsock.h" >&5
6965echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
6966if test "${ac_cv_header_mswsock_h+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969 ac_cv_header_mswsock_h=$ac_header_preproc
6970fi
6971echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
6972echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
6973
6974fi
6975if test $ac_cv_header_mswsock_h = yes; then
6976 cat >>confdefs.h <<\_ACEOF
6977#define PJ_HAS_MSWSOCK_H 1
6978_ACEOF
6979
6980fi
6981
6982
6983if test "${ac_cv_header_winsock_h+set}" = set; then
6984 echo "$as_me:$LINENO: checking for winsock.h" >&5
6985echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
6986if test "${ac_cv_header_winsock_h+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988fi
6989echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
6990echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
6991else
6992 # Is the header compilable?
6993echo "$as_me:$LINENO: checking winsock.h usability" >&5
6994echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
6995cat >conftest.$ac_ext <<_ACEOF
6996/* confdefs.h. */
6997_ACEOF
6998cat confdefs.h >>conftest.$ac_ext
6999cat >>conftest.$ac_ext <<_ACEOF
7000/* end confdefs.h. */
7001$ac_includes_default
7002#include <winsock.h>
7003_ACEOF
7004rm -f conftest.$ac_objext
7005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>conftest.er1
7007 ac_status=$?
7008 grep -v '^ *+' conftest.er1 >conftest.err
7009 rm -f conftest.er1
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try='test -s conftest.$ac_objext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 ac_header_compiler=yes
7027else
7028 echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031ac_header_compiler=no
7032fi
7033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7035echo "${ECHO_T}$ac_header_compiler" >&6
7036
7037# Is the header present?
7038echo "$as_me:$LINENO: checking winsock.h presence" >&5
7039echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
7040cat >conftest.$ac_ext <<_ACEOF
7041/* confdefs.h. */
7042_ACEOF
7043cat confdefs.h >>conftest.$ac_ext
7044cat >>conftest.$ac_ext <<_ACEOF
7045/* end confdefs.h. */
7046#include <winsock.h>
7047_ACEOF
7048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } >/dev/null; then
7056 if test -s conftest.err; then
7057 ac_cpp_err=$ac_c_preproc_warn_flag
7058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7059 else
7060 ac_cpp_err=
7061 fi
7062else
7063 ac_cpp_err=yes
7064fi
7065if test -z "$ac_cpp_err"; then
7066 ac_header_preproc=yes
7067else
7068 echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 ac_header_preproc=no
7072fi
7073rm -f conftest.err conftest.$ac_ext
7074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7075echo "${ECHO_T}$ac_header_preproc" >&6
7076
7077# So? What about this header?
7078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7079 yes:no: )
7080 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7081echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7082 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
7083echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
7084 ac_header_preproc=yes
7085 ;;
7086 no:yes:* )
7087 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
7088echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
7089 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
7090echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
7091 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
7092echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
7093 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
7094echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7095 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
7096echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
7097 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
7098echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
7099 (
7100 cat <<\_ASBOX
7101## ------------------------------------ ##
7102## Report this to the pjproject lists. ##
7103## ------------------------------------ ##
7104_ASBOX
7105 ) |
7106 sed "s/^/$as_me: WARNING: /" >&2
7107 ;;
7108esac
7109echo "$as_me:$LINENO: checking for winsock.h" >&5
7110echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7111if test "${ac_cv_header_winsock_h+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113else
7114 ac_cv_header_winsock_h=$ac_header_preproc
7115fi
7116echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
7117echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
7118
7119fi
7120if test $ac_cv_header_winsock_h = yes; then
7121 cat >>confdefs.h <<\_ACEOF
7122#define PJ_HAS_WINSOCK_H 1
7123_ACEOF
7124
7125fi
7126
7127
7128if test "${ac_cv_header_winsock2_h+set}" = set; then
7129 echo "$as_me:$LINENO: checking for winsock2.h" >&5
7130echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
7131if test "${ac_cv_header_winsock2_h+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133fi
7134echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
7135echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
7136else
7137 # Is the header compilable?
7138echo "$as_me:$LINENO: checking winsock2.h usability" >&5
7139echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
7140cat >conftest.$ac_ext <<_ACEOF
7141/* confdefs.h. */
7142_ACEOF
7143cat confdefs.h >>conftest.$ac_ext
7144cat >>conftest.$ac_ext <<_ACEOF
7145/* end confdefs.h. */
7146$ac_includes_default
7147#include <winsock2.h>
7148_ACEOF
7149rm -f conftest.$ac_objext
7150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag"
7159 || test ! -s conftest.err'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 (eval $ac_try) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; } &&
7165 { ac_try='test -s conftest.$ac_objext'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; }; then
7171 ac_header_compiler=yes
7172else
7173 echo "$as_me: failed program was:" >&5
7174sed 's/^/| /' conftest.$ac_ext >&5
7175
7176ac_header_compiler=no
7177fi
7178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7180echo "${ECHO_T}$ac_header_compiler" >&6
7181
7182# Is the header present?
7183echo "$as_me:$LINENO: checking winsock2.h presence" >&5
7184echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
7185cat >conftest.$ac_ext <<_ACEOF
7186/* confdefs.h. */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
7190/* end confdefs.h. */
7191#include <winsock2.h>
7192_ACEOF
7193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } >/dev/null; then
7201 if test -s conftest.err; then
7202 ac_cpp_err=$ac_c_preproc_warn_flag
7203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7204 else
7205 ac_cpp_err=
7206 fi
7207else
7208 ac_cpp_err=yes
7209fi
7210if test -z "$ac_cpp_err"; then
7211 ac_header_preproc=yes
7212else
7213 echo "$as_me: failed program was:" >&5
7214sed 's/^/| /' conftest.$ac_ext >&5
7215
7216 ac_header_preproc=no
7217fi
7218rm -f conftest.err conftest.$ac_ext
7219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7220echo "${ECHO_T}$ac_header_preproc" >&6
7221
7222# So? What about this header?
7223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7224 yes:no: )
7225 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7226echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7227 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
7228echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
7229 ac_header_preproc=yes
7230 ;;
7231 no:yes:* )
7232 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
7233echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
7234 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
7235echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
7236 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
7237echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
7239echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
7241echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
7243echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
7244 (
7245 cat <<\_ASBOX
7246## ------------------------------------ ##
7247## Report this to the pjproject lists. ##
7248## ------------------------------------ ##
7249_ASBOX
7250 ) |
7251 sed "s/^/$as_me: WARNING: /" >&2
7252 ;;
7253esac
7254echo "$as_me:$LINENO: checking for winsock2.h" >&5
7255echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
7256if test "${ac_cv_header_winsock2_h+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259 ac_cv_header_winsock2_h=$ac_header_preproc
7260fi
7261echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
7262echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
7263
7264fi
7265if test $ac_cv_header_winsock2_h = yes; then
7266 cat >>confdefs.h <<\_ACEOF
7267#define PJ_HAS_WINSOCK2_H 1
7268_ACEOF
7269
7270fi
7271
7272
7273
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007274echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
7275echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
7276cat >>confdefs.h <<_ACEOF
7277#define PJ_OS_NAME "$target"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007278_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007279
7280
7281echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
7282echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
7283cat >>confdefs.h <<\_ACEOF
7284#define PJ_HAS_ERRNO_VAR 1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007285_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007286
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007287
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007288echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
7289echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
7290cat >>confdefs.h <<\_ACEOF
7291#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007292_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007293
7294
7295echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
7296echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
7297cat >>confdefs.h <<\_ACEOF
7298#define PJ_HAS_MALLOC 1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007299_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007300
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007301
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007302echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
7303echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
7304cat >>confdefs.h <<\_ACEOF
7305#define PJ_NATIVE_STRING_IS_UNICODE 0
7306_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007307
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007308
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007309echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
7310echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
7311cat >>confdefs.h <<\_ACEOF
7312#define PJ_ATOMIC_VALUE_TYPE long
7313_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007314
7315
7316# Determine if inet_aton() is available
7317echo "$as_me:$LINENO: checking if inet_aton is available" >&5
7318echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6
7319cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h. */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h. */
7325#include <sys/socket.h>
7326 #include <netinet/in.h>
7327 #include <arpa/inet.h>
7328int
7329main ()
7330{
7331inet_aton(0, 0);
7332 ;
7333 return 0;
7334}
7335_ACEOF
7336rm -f conftest.$ac_objext
7337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>conftest.er1
7339 ac_status=$?
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -z "$ac_c_werror_flag"
7346 || test ! -s conftest.err'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 (eval $ac_try) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try='test -s conftest.$ac_objext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 (eval $ac_try) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 cat >>confdefs.h <<\_ACEOF
7359#define PJ_SOCK_HAS_INET_ATON 1
7360_ACEOF
7361
7362 echo "$as_me:$LINENO: result: yes" >&5
7363echo "${ECHO_T}yes" >&6
7364else
7365 echo "$as_me: failed program was:" >&5
7366sed 's/^/| /' conftest.$ac_ext >&5
7367
7368echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6
7370fi
7371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7372
7373# Determine if sockaddr_in has sin_len member
7374echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
7375echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
7376cat >conftest.$ac_ext <<_ACEOF
7377/* confdefs.h. */
7378_ACEOF
7379cat confdefs.h >>conftest.$ac_ext
7380cat >>conftest.$ac_ext <<_ACEOF
7381/* end confdefs.h. */
7382#include <sys/socket.h>
7383 #include <netinet/in.h>
7384 #include <arpa/inet.h>
7385int
7386main ()
7387{
7388struct sockaddr_in a; a.sin_len=0;
7389 ;
7390 return 0;
7391}
7392_ACEOF
7393rm -f conftest.$ac_objext
7394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7395 (eval $ac_compile) 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag"
7403 || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest.$ac_objext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 cat >>confdefs.h <<\_ACEOF
7416#define PJ_SOCKADDR_HAS_LEN 1
7417_ACEOF
7418
7419 echo "$as_me:$LINENO: result: yes" >&5
7420echo "${ECHO_T}yes" >&6
7421else
7422 echo "$as_me: failed program was:" >&5
7423sed 's/^/| /' conftest.$ac_ext >&5
7424
7425echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6
7427fi
7428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7429
Benny Prijono30f85c62006-09-09 20:05:33 +00007430# Determine if socklen_t is available
7431echo "$as_me:$LINENO: checking if socklen_t is available" >&5
7432echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
7433cat >conftest.$ac_ext <<_ACEOF
7434/* confdefs.h. */
7435_ACEOF
7436cat confdefs.h >>conftest.$ac_ext
7437cat >>conftest.$ac_ext <<_ACEOF
7438/* end confdefs.h. */
7439#include <unistd.h>
7440int
7441main ()
7442{
7443socklen_t xxx = 0;
7444 ;
7445 return 0;
7446}
7447_ACEOF
7448rm -f conftest.$ac_objext
7449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7450 (eval $ac_compile) 2>conftest.er1
7451 ac_status=$?
7452 grep -v '^ *+' conftest.er1 >conftest.err
7453 rm -f conftest.er1
7454 cat conftest.err >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } &&
7457 { ac_try='test -z "$ac_c_werror_flag"
7458 || test ! -s conftest.err'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; } &&
7464 { ac_try='test -s conftest.$ac_objext'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
7470 cat >>confdefs.h <<\_ACEOF
7471#define PJ_HAS_SOCKLEN_T 1
7472_ACEOF
7473
7474 echo "$as_me:$LINENO: result: yes" >&5
7475echo "${ECHO_T}yes" >&6
7476else
7477 echo "$as_me: failed program was:" >&5
7478sed 's/^/| /' conftest.$ac_ext >&5
7479
7480echo "$as_me:$LINENO: result: no" >&5
7481echo "${ECHO_T}no" >&6
7482fi
7483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007485# Determine if SO_ERROR is available
7486echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
7487echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
7488cat >conftest.$ac_ext <<_ACEOF
7489/* confdefs.h. */
7490_ACEOF
7491cat confdefs.h >>conftest.$ac_ext
7492cat >>conftest.$ac_ext <<_ACEOF
7493/* end confdefs.h. */
7494#include <sys/socket.h>
7495 #include <netinet/in.h>
7496 #include <arpa/inet.h>
7497int
7498main ()
7499{
7500int i=SO_ERROR;
7501 ;
7502 return 0;
7503}
7504_ACEOF
7505rm -f conftest.$ac_objext
7506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -z "$ac_c_werror_flag"
7515 || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest.$ac_objext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 cat >>confdefs.h <<\_ACEOF
7528#define PJ_HAS_SO_ERROR 1
7529_ACEOF
7530
7531 echo "$as_me:$LINENO: result: yes" >&5
7532echo "${ECHO_T}yes" >&6
7533else
7534 echo "$as_me: failed program was:" >&5
7535sed 's/^/| /' conftest.$ac_ext >&5
7536
7537echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539fi
7540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7541
7542# Determine if RW-mutex is available
7543echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
7544echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
7545cat >conftest.$ac_ext <<_ACEOF
7546/* confdefs.h. */
7547_ACEOF
7548cat confdefs.h >>conftest.$ac_ext
7549cat >>conftest.$ac_ext <<_ACEOF
7550/* end confdefs.h. */
7551#include <pthread.h>
7552int
7553main ()
7554{
7555pthread_rwlock_t *x;
7556 ;
7557 return 0;
7558}
7559_ACEOF
7560rm -f conftest.$ac_objext
7561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7562 (eval $ac_compile) 2>conftest.er1
7563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } &&
7569 { ac_try='test -z "$ac_c_werror_flag"
7570 || test ! -s conftest.err'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 (eval $ac_try) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try='test -s conftest.$ac_objext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 cat >>confdefs.h <<\_ACEOF
7583#define PJ_EMULATE_RWMUTEX 0
7584_ACEOF
7585
7586 echo "$as_me:$LINENO: result: yes" >&5
7587echo "${ECHO_T}yes" >&6
7588else
7589 echo "$as_me: failed program was:" >&5
7590sed 's/^/| /' conftest.$ac_ext >&5
7591
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007592cat >>confdefs.h <<\_ACEOF
7593#define PJ_EMULATE_RWMUTEX 1
7594_ACEOF
7595
7596 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007597echo "${ECHO_T}no" >&6
7598fi
7599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7600
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007601
7602##########################################
7603#
7604# PJMEDIA
7605#
7606
7607# Sound device backend selection
7608
7609case $target in
7610 *cygwin* | *win* | *mingw*)
7611 ac_pjmedia_snd=pa_win32
7612 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
7613echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
7614 ;;
7615 *rtems*)
7616 ac_pjmedia_snd=null
7617 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
7618echo "${ECHO_T}Checking sound device backend... null sound" >&6
7619 ;;
7620 *darwin*)
7621 ac_pjmedia_snd=pa_darwin_os
7622 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
7623echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
7624 ;;
7625 *)
7626 ac_pjmedia_snd=pa_unix
7627 if test "${ac_cv_header_alsa_version_h+set}" = set; then
7628 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
7629echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
7630if test "${ac_cv_header_alsa_version_h+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632fi
7633echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
7634echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
7635else
7636 # Is the header compilable?
7637echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
7638echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
7639cat >conftest.$ac_ext <<_ACEOF
7640/* confdefs.h. */
7641_ACEOF
7642cat confdefs.h >>conftest.$ac_ext
7643cat >>conftest.$ac_ext <<_ACEOF
7644/* end confdefs.h. */
7645$ac_includes_default
7646#include <alsa/version.h>
7647_ACEOF
7648rm -f conftest.$ac_objext
7649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_header_compiler=yes
7671else
7672 echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675ac_header_compiler=no
7676fi
7677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7679echo "${ECHO_T}$ac_header_compiler" >&6
7680
7681# Is the header present?
7682echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
7683echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
7684cat >conftest.$ac_ext <<_ACEOF
7685/* confdefs.h. */
7686_ACEOF
7687cat confdefs.h >>conftest.$ac_ext
7688cat >>conftest.$ac_ext <<_ACEOF
7689/* end confdefs.h. */
7690#include <alsa/version.h>
7691_ACEOF
7692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7694 ac_status=$?
7695 grep -v '^ *+' conftest.er1 >conftest.err
7696 rm -f conftest.er1
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } >/dev/null; then
7700 if test -s conftest.err; then
7701 ac_cpp_err=$ac_c_preproc_warn_flag
7702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7703 else
7704 ac_cpp_err=
7705 fi
7706else
7707 ac_cpp_err=yes
7708fi
7709if test -z "$ac_cpp_err"; then
7710 ac_header_preproc=yes
7711else
7712 echo "$as_me: failed program was:" >&5
7713sed 's/^/| /' conftest.$ac_ext >&5
7714
7715 ac_header_preproc=no
7716fi
7717rm -f conftest.err conftest.$ac_ext
7718echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7719echo "${ECHO_T}$ac_header_preproc" >&6
7720
7721# So? What about this header?
7722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7723 yes:no: )
7724 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7725echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7726 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
7727echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
7728 ac_header_preproc=yes
7729 ;;
7730 no:yes:* )
7731 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
7732echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
7733 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
7734echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
7735 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
7736echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
7737 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
7738echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7739 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
7740echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
7741 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
7742echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
7743 (
7744 cat <<\_ASBOX
7745## ------------------------------------ ##
7746## Report this to the pjproject lists. ##
7747## ------------------------------------ ##
7748_ASBOX
7749 ) |
7750 sed "s/^/$as_me: WARNING: /" >&2
7751 ;;
7752esac
7753echo "$as_me:$LINENO: checking for alsa/version.h" >&5
7754echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
7755if test "${ac_cv_header_alsa_version_h+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7757else
7758 ac_cv_header_alsa_version_h=$ac_header_preproc
7759fi
7760echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
7761echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
7762
7763fi
7764if test $ac_cv_header_alsa_version_h = yes; then
7765 ac_pa_use_alsa=1
7766
7767 LIBS="$LIBS -lasound"
7768
7769else
7770 ac_pa_use_alsa=0
7771
7772fi
7773
7774
7775 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
7776echo "${ECHO_T}Checking sound device backend... unix" >&6
7777 ;;
7778esac
7779
7780# Include resampling small filter
7781
7782# Check whether --enable-small-filter or --disable-small-filter was given.
7783if test "${enable_small_filter+set}" = set; then
7784 enableval="$enable_small_filter"
7785 if test "$enable_small_filter" = "no"; then
7786 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
7787 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
7788echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
7789 fi
7790else
7791 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
7792echo "${ECHO_T}Checking if small filter is disabled... no" >&6
7793fi;
7794
7795# Include resampling large filter
7796
7797# Check whether --enable-large-filter or --disable-large-filter was given.
7798if test "${enable_large_filter+set}" = set; then
7799 enableval="$enable_large_filter"
7800 if test "$enable_large_filter" = "no"; then
7801 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
7802 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
7803echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
7804 fi
7805else
7806 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
7807echo "${ECHO_T}Checking if large filter is disabled... no" >&6
7808fi;
7809
7810# Include G.711 Annex A PLC
7811
7812# Check whether --enable-g711-plc or --disable-g711-plc was given.
7813if test "${enable_g711_plc+set}" = set; then
7814 enableval="$enable_g711_plc"
7815 if test "$enable_g711_plc" = "no"; then
7816 ac_no_g711_plc='-DPJMEDIA_HAS_G711_PLC=0'
7817 echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...yes" >&5
7818echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...yes" >&6
7819 fi
7820else
7821 echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...no" >&5
7822echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...no" >&6
7823fi;
7824
7825# Include Speex AEC
7826
7827# Check whether --enable-speex-aec or --disable-speex-aec was given.
7828if test "${enable_speex_aec+set}" = set; then
7829 enableval="$enable_speex_aec"
7830 if test "$enable_speex_aec" = "no"; then
7831 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
7832 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
7833echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
7834 fi
7835else
7836 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
7837echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
7838fi;
7839
7840# Include G711 codec
7841
7842# Check whether --enable-g711-codec or --disable-g711-codec was given.
7843if test "${enable_g711_codec+set}" = set; then
7844 enableval="$enable_g711_codec"
7845 if test "$enable_g711_codec" = "no"; then
7846 ac_no_g711_codec=1
7847 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
7848echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
7849 fi
7850else
7851 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
7852echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
7853fi;
7854
7855
7856# Include L16 codec
7857
7858# Check whether --enable-l16-codec or --disable-l16-codec was given.
7859if test "${enable_l16_codec+set}" = set; then
7860 enableval="$enable_l16_codec"
7861 if test "$enable_l16_codec" = "no"; then
7862 ac_no_l16_codec=1
7863 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
7864echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
7865 fi
7866else
7867 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
7868echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
7869fi;
7870
7871
7872# Include GSM codec
7873
7874# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
7875if test "${enable_gsm_codec+set}" = set; then
7876 enableval="$enable_gsm_codec"
7877 if test "$enable_gsm_codec" = "no"; then
7878 ac_no_gsm_codec=1
7879 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
7880echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
7881 fi
7882else
7883 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
7884echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
7885fi;
7886
7887# Include Speex codec
7888
7889# Check whether --enable-speex-codec or --disable-speex-codec was given.
7890if test "${enable_speex_codec+set}" = set; then
7891 enableval="$enable_speex_codec"
7892 if test "$enable_speex_codec" = "no"; then
7893 ac_no_speex_codec=1
7894 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
7895echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
7896 fi
7897else
7898 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
7899echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
7900fi;
7901
7902# Include iLBC codec
7903
7904# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
7905if test "${enable_ilbc_codec+set}" = set; then
7906 enableval="$enable_ilbc_codec"
7907 if test "$enable_ilbc_codec" = "no"; then
7908 ac_no_ilbc_codec=1
7909 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
7910echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
7911 fi
7912else
7913 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
7914echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
7915fi;
7916
7917
7918
7919##########################################
7920#
7921# MANUAL CONFIG
7922#
7923
7924
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007925# Determine if select() requires nfds to be filled up with
7926# correct value (max_fd+1). If zero, nfds will be filled up with
7927# PJ_FD_SETSIZE
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007928echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
7929echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007930case $target in
7931 *rtems*) cat >>confdefs.h <<\_ACEOF
7932#define PJ_SELECT_NEEDS_NFDS 1
7933_ACEOF
7934
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007935 echo "$as_me:$LINENO: result: yes" >&5
7936echo "${ECHO_T}yes" >&6
7937 ;;
7938 *) cat >>confdefs.h <<\_ACEOF
7939#define PJ_SELECT_NEEDS_NFDS 0
7940_ACEOF
7941
7942 echo "$as_me:$LINENO: result: no (default)" >&5
7943echo "${ECHO_T}no (default)" >&6
7944 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
7945echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
7946 ;;
7947esac
7948
7949# Determine if pj_thread_create() should enforce thread stack size when
7950# creating thread. Default is zero, to allow OS to allocate appropriate
7951# thread's stack size.
7952echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
7953echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
7954case $target in
7955 *rtems*) cat >>confdefs.h <<\_ACEOF
7956#define PJ_THREAD_SET_STACK_SIZE 1
7957_ACEOF
7958
7959 echo "$as_me:$LINENO: result: yes" >&5
7960echo "${ECHO_T}yes" >&6
7961 ;;
7962 *) cat >>confdefs.h <<\_ACEOF
7963#define PJ_THREAD_SET_STACK_SIZE 0
7964_ACEOF
7965
7966 echo "$as_me:$LINENO: result: no (default)" >&5
7967echo "${ECHO_T}no (default)" >&6
7968 ;;
7969esac
7970
7971# Determine if pj_thread_create() should allocate thread's stack from
7972# the pool. Default is zero, to let OS allocate thread's stack.
7973echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
7974echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
7975case $target in
7976 *rtems*) cat >>confdefs.h <<\_ACEOF
7977#define PJ_THREAD_ALLOCATE_STACK 1
7978_ACEOF
7979
7980 echo "$as_me:$LINENO: result: yes" >&5
7981echo "${ECHO_T}yes" >&6
7982 ;;
7983 *) cat >>confdefs.h <<\_ACEOF
7984#define PJ_THREAD_ALLOCATE_STACK 0
7985_ACEOF
7986
7987 echo "$as_me:$LINENO: result: no (default)" >&5
7988echo "${ECHO_T}no (default)" >&6
7989 ;;
7990esac
7991
7992# This value specifies the value set in errno by the OS when a non-blocking
7993# socket recv() can not return immediate data.
7994case $target in
7995 *) cat >>confdefs.h <<\_ACEOF
7996#define PJ_BLOCKING_ERROR_VAL EAGAIN
7997_ACEOF
7998
7999 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
8000echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
8001 ;;
8002esac
8003
8004# This value specifies the value set in errno by the OS when a non-blocking
8005# socket connect() can not get connected immediately.
8006case $target in
8007 *) cat >>confdefs.h <<\_ACEOF
8008#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
8009_ACEOF
8010
8011 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
8012echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
8013 ;;
8014esac
8015
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008016
8017
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008018
8019if test "$build" = "$host"; then
8020 ac_cross_compile=
8021else
8022 ac_cross_compile=${host}-
8023fi
8024ac_linux_poll=select
8025
8026ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008027
8028
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008029case $target in
8030 *rtems*)
8031 ac_main_obj=main_rtems.o
8032 ;;
8033 *)
8034 ac_main_obj=main.o
8035 ;;
8036esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008037
8038cat >confcache <<\_ACEOF
8039# This file is a shell script that caches the results of configure
8040# tests run on this system so they can be shared between configure
8041# scripts and configure runs, see configure's option --config-cache.
8042# It is not useful on other systems. If it contains results you don't
8043# want to keep, you may remove or edit it.
8044#
8045# config.status only pays attention to the cache file if you give it
8046# the --recheck option to rerun configure.
8047#
8048# `ac_cv_env_foo' variables (set or unset) will be overridden when
8049# loading this file, other *unset* `ac_cv_foo' will be assigned the
8050# following values.
8051
8052_ACEOF
8053
8054# The following way of writing the cache mishandles newlines in values,
8055# but we know of no workaround that is simple, portable, and efficient.
8056# So, don't put newlines in cache variables' values.
8057# Ultrix sh set writes to stderr and can't be redirected directly,
8058# and sets the high bit in the cache file unless we assign to the vars.
8059{
8060 (set) 2>&1 |
8061 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8062 *ac_space=\ *)
8063 # `set' does not quote correctly, so add quotes (double-quote
8064 # substitution turns \\\\ into \\, and sed turns \\ into \).
8065 sed -n \
8066 "s/'/'\\\\''/g;
8067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8068 ;;
8069 *)
8070 # `set' quotes correctly as required by POSIX, so do not add quotes.
8071 sed -n \
8072 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8073 ;;
8074 esac;
8075} |
8076 sed '
8077 t clear
8078 : clear
8079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8080 t end
8081 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8082 : end' >>confcache
8083if diff $cache_file confcache >/dev/null 2>&1; then :; else
8084 if test -w $cache_file; then
8085 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8086 cat confcache >$cache_file
8087 else
8088 echo "not updating unwritable cache $cache_file"
8089 fi
8090fi
8091rm -f confcache
8092
8093test "x$prefix" = xNONE && prefix=$ac_default_prefix
8094# Let make expand exec_prefix.
8095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8096
8097# VPATH may cause trouble with some makes, so we remove $(srcdir),
8098# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8099# trailing colons and then remove the whole line if VPATH becomes empty
8100# (actually we leave an empty line to preserve line numbers).
8101if test "x$srcdir" = x.; then
8102 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8103s/:*\$(srcdir):*/:/;
8104s/:*\${srcdir}:*/:/;
8105s/:*@srcdir@:*/:/;
8106s/^\([^=]*=[ ]*\):*/\1/;
8107s/:*$//;
8108s/^[^=]*=[ ]*$//;
8109}'
8110fi
8111
8112DEFS=-DHAVE_CONFIG_H
8113
8114ac_libobjs=
8115ac_ltlibobjs=
8116for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8117 # 1. Remove the extension, and $U if already installed.
8118 ac_i=`echo "$ac_i" |
8119 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8120 # 2. Add them.
8121 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8122 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8123done
8124LIBOBJS=$ac_libobjs
8125
8126LTLIBOBJS=$ac_ltlibobjs
8127
8128
8129
8130: ${CONFIG_STATUS=./config.status}
8131ac_clean_files_save=$ac_clean_files
8132ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8133{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8134echo "$as_me: creating $CONFIG_STATUS" >&6;}
8135cat >$CONFIG_STATUS <<_ACEOF
8136#! $SHELL
8137# Generated by $as_me.
8138# Run this file to recreate the current configuration.
8139# Compiler output produced by configure, useful for debugging
8140# configure, is in config.log if it exists.
8141
8142debug=false
8143ac_cs_recheck=false
8144ac_cs_silent=false
8145SHELL=\${CONFIG_SHELL-$SHELL}
8146_ACEOF
8147
8148cat >>$CONFIG_STATUS <<\_ACEOF
8149## --------------------- ##
8150## M4sh Initialization. ##
8151## --------------------- ##
8152
8153# Be Bourne compatible
8154if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8155 emulate sh
8156 NULLCMD=:
8157 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8158 # is contrary to our usage. Disable this feature.
8159 alias -g '${1+"$@"}'='"$@"'
8160elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8161 set -o posix
8162fi
8163DUALCASE=1; export DUALCASE # for MKS sh
8164
8165# Support unset when possible.
8166if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8167 as_unset=unset
8168else
8169 as_unset=false
8170fi
8171
8172
8173# Work around bugs in pre-3.0 UWIN ksh.
8174$as_unset ENV MAIL MAILPATH
8175PS1='$ '
8176PS2='> '
8177PS4='+ '
8178
8179# NLS nuisances.
8180for as_var in \
8181 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8182 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8183 LC_TELEPHONE LC_TIME
8184do
8185 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8186 eval $as_var=C; export $as_var
8187 else
8188 $as_unset $as_var
8189 fi
8190done
8191
8192# Required to use basename.
8193if expr a : '\(a\)' >/dev/null 2>&1; then
8194 as_expr=expr
8195else
8196 as_expr=false
8197fi
8198
8199if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8200 as_basename=basename
8201else
8202 as_basename=false
8203fi
8204
8205
8206# Name of the executable.
8207as_me=`$as_basename "$0" ||
8208$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8209 X"$0" : 'X\(//\)$' \| \
8210 X"$0" : 'X\(/\)$' \| \
8211 . : '\(.\)' 2>/dev/null ||
8212echo X/"$0" |
8213 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8214 /^X\/\(\/\/\)$/{ s//\1/; q; }
8215 /^X\/\(\/\).*/{ s//\1/; q; }
8216 s/.*/./; q'`
8217
8218
8219# PATH needs CR, and LINENO needs CR and PATH.
8220# Avoid depending upon Character Ranges.
8221as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8222as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8223as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8224as_cr_digits='0123456789'
8225as_cr_alnum=$as_cr_Letters$as_cr_digits
8226
8227# The user is always right.
8228if test "${PATH_SEPARATOR+set}" != set; then
8229 echo "#! /bin/sh" >conf$$.sh
8230 echo "exit 0" >>conf$$.sh
8231 chmod +x conf$$.sh
8232 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8233 PATH_SEPARATOR=';'
8234 else
8235 PATH_SEPARATOR=:
8236 fi
8237 rm -f conf$$.sh
8238fi
8239
8240
8241 as_lineno_1=$LINENO
8242 as_lineno_2=$LINENO
8243 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8244 test "x$as_lineno_1" != "x$as_lineno_2" &&
8245 test "x$as_lineno_3" = "x$as_lineno_2" || {
8246 # Find who we are. Look in the path if we contain no path at all
8247 # relative or not.
8248 case $0 in
8249 *[\\/]* ) as_myself=$0 ;;
8250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251for as_dir in $PATH
8252do
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
8255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8256done
8257
8258 ;;
8259 esac
8260 # We did not find ourselves, most probably we were run as `sh COMMAND'
8261 # in which case we are not to be found in the path.
8262 if test "x$as_myself" = x; then
8263 as_myself=$0
8264 fi
8265 if test ! -f "$as_myself"; then
8266 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8267echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8268 { (exit 1); exit 1; }; }
8269 fi
8270 case $CONFIG_SHELL in
8271 '')
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8274do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for as_base in sh bash ksh sh5; do
8278 case $as_dir in
8279 /*)
8280 if ("$as_dir/$as_base" -c '
8281 as_lineno_1=$LINENO
8282 as_lineno_2=$LINENO
8283 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8284 test "x$as_lineno_1" != "x$as_lineno_2" &&
8285 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8286 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8287 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8288 CONFIG_SHELL=$as_dir/$as_base
8289 export CONFIG_SHELL
8290 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8291 fi;;
8292 esac
8293 done
8294done
8295;;
8296 esac
8297
8298 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8299 # uniformly replaced by the line number. The first 'sed' inserts a
8300 # line-number line before each line; the second 'sed' does the real
8301 # work. The second script uses 'N' to pair each line-number line
8302 # with the numbered line, and appends trailing '-' during
8303 # substitution so that $LINENO is not a special case at line end.
8304 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8305 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8306 sed '=' <$as_myself |
8307 sed '
8308 N
8309 s,$,-,
8310 : loop
8311 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8312 t loop
8313 s,-$,,
8314 s,^['$as_cr_digits']*\n,,
8315 ' >$as_me.lineno &&
8316 chmod +x $as_me.lineno ||
8317 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8318echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8319 { (exit 1); exit 1; }; }
8320
8321 # Don't try to exec as it changes $[0], causing all sort of problems
8322 # (the dirname of $[0] is not the place where we might find the
8323 # original and so on. Autoconf is especially sensible to this).
8324 . ./$as_me.lineno
8325 # Exit status is that of the last command.
8326 exit
8327}
8328
8329
8330case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8331 *c*,-n*) ECHO_N= ECHO_C='
8332' ECHO_T=' ' ;;
8333 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8334 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8335esac
8336
8337if expr a : '\(a\)' >/dev/null 2>&1; then
8338 as_expr=expr
8339else
8340 as_expr=false
8341fi
8342
8343rm -f conf$$ conf$$.exe conf$$.file
8344echo >conf$$.file
8345if ln -s conf$$.file conf$$ 2>/dev/null; then
8346 # We could just check for DJGPP; but this test a) works b) is more generic
8347 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8348 if test -f conf$$.exe; then
8349 # Don't use ln at all; we don't have any links
8350 as_ln_s='cp -p'
8351 else
8352 as_ln_s='ln -s'
8353 fi
8354elif ln conf$$.file conf$$ 2>/dev/null; then
8355 as_ln_s=ln
8356else
8357 as_ln_s='cp -p'
8358fi
8359rm -f conf$$ conf$$.exe conf$$.file
8360
8361if mkdir -p . 2>/dev/null; then
8362 as_mkdir_p=:
8363else
8364 test -d ./-p && rmdir ./-p
8365 as_mkdir_p=false
8366fi
8367
8368as_executable_p="test -f"
8369
8370# Sed expression to map a string onto a valid CPP name.
8371as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8372
8373# Sed expression to map a string onto a valid variable name.
8374as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8375
8376
8377# IFS
8378# We need space, tab and new line, in precisely that order.
8379as_nl='
8380'
8381IFS=" $as_nl"
8382
8383# CDPATH.
8384$as_unset CDPATH
8385
8386exec 6>&1
8387
8388# Open the log real soon, to keep \$[0] and so on meaningful, and to
8389# report actual input values of CONFIG_FILES etc. instead of their
8390# values after options handling. Logging --version etc. is OK.
8391exec 5>>config.log
8392{
8393 echo
8394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8395## Running $as_me. ##
8396_ASBOX
8397} >&5
8398cat >&5 <<_CSEOF
8399
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008400This file was extended by pjproject $as_me 0.5.8, which was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008401generated by GNU Autoconf 2.59. Invocation command line was
8402
8403 CONFIG_FILES = $CONFIG_FILES
8404 CONFIG_HEADERS = $CONFIG_HEADERS
8405 CONFIG_LINKS = $CONFIG_LINKS
8406 CONFIG_COMMANDS = $CONFIG_COMMANDS
8407 $ $0 $@
8408
8409_CSEOF
8410echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8411echo >&5
8412_ACEOF
8413
8414# Files that config.status was made for.
8415if test -n "$ac_config_files"; then
8416 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8417fi
8418
8419if test -n "$ac_config_headers"; then
8420 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8421fi
8422
8423if test -n "$ac_config_links"; then
8424 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8425fi
8426
8427if test -n "$ac_config_commands"; then
8428 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8429fi
8430
8431cat >>$CONFIG_STATUS <<\_ACEOF
8432
8433ac_cs_usage="\
8434\`$as_me' instantiates files from templates according to the
8435current configuration.
8436
8437Usage: $0 [OPTIONS] [FILE]...
8438
8439 -h, --help print this help, then exit
8440 -V, --version print version number, then exit
8441 -q, --quiet do not print progress messages
8442 -d, --debug don't remove temporary files
8443 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008444 --file=FILE[:TEMPLATE]
8445 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008446 --header=FILE[:TEMPLATE]
8447 instantiate the configuration header FILE
8448
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008449Configuration files:
8450$config_files
8451
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008452Configuration headers:
8453$config_headers
8454
8455Report bugs to <bug-autoconf@gnu.org>."
8456_ACEOF
8457
8458cat >>$CONFIG_STATUS <<_ACEOF
8459ac_cs_version="\\
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008460pjproject config.status 0.5.8
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008461configured by $0, generated by GNU Autoconf 2.59,
8462 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8463
8464Copyright (C) 2003 Free Software Foundation, Inc.
8465This config.status script is free software; the Free Software Foundation
8466gives unlimited permission to copy, distribute and modify it."
8467srcdir=$srcdir
8468_ACEOF
8469
8470cat >>$CONFIG_STATUS <<\_ACEOF
8471# If no file are specified by the user, then we need to provide default
8472# value. By we need to know if files were specified by the user.
8473ac_need_defaults=:
8474while test $# != 0
8475do
8476 case $1 in
8477 --*=*)
8478 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8479 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8480 ac_shift=:
8481 ;;
8482 -*)
8483 ac_option=$1
8484 ac_optarg=$2
8485 ac_shift=shift
8486 ;;
8487 *) # This is not an option, so the user has probably given explicit
8488 # arguments.
8489 ac_option=$1
8490 ac_need_defaults=false;;
8491 esac
8492
8493 case $ac_option in
8494 # Handling of the options.
8495_ACEOF
8496cat >>$CONFIG_STATUS <<\_ACEOF
8497 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8498 ac_cs_recheck=: ;;
8499 --version | --vers* | -V )
8500 echo "$ac_cs_version"; exit 0 ;;
8501 --he | --h)
8502 # Conflict between --help and --header
8503 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8504Try \`$0 --help' for more information." >&5
8505echo "$as_me: error: ambiguous option: $1
8506Try \`$0 --help' for more information." >&2;}
8507 { (exit 1); exit 1; }; };;
8508 --help | --hel | -h )
8509 echo "$ac_cs_usage"; exit 0 ;;
8510 --debug | --d* | -d )
8511 debug=: ;;
8512 --file | --fil | --fi | --f )
8513 $ac_shift
8514 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8515 ac_need_defaults=false;;
8516 --header | --heade | --head | --hea )
8517 $ac_shift
8518 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8519 ac_need_defaults=false;;
8520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8521 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8522 ac_cs_silent=: ;;
8523
8524 # This is an error.
8525 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8526Try \`$0 --help' for more information." >&5
8527echo "$as_me: error: unrecognized option: $1
8528Try \`$0 --help' for more information." >&2;}
8529 { (exit 1); exit 1; }; } ;;
8530
8531 *) ac_config_targets="$ac_config_targets $1" ;;
8532
8533 esac
8534 shift
8535done
8536
8537ac_configure_extra_args=
8538
8539if $ac_cs_silent; then
8540 exec 6>/dev/null
8541 ac_configure_extra_args="$ac_configure_extra_args --silent"
8542fi
8543
8544_ACEOF
8545cat >>$CONFIG_STATUS <<_ACEOF
8546if \$ac_cs_recheck; then
8547 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8548 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8549fi
8550
8551_ACEOF
8552
8553
8554
8555
8556
8557cat >>$CONFIG_STATUS <<\_ACEOF
8558for ac_config_target in $ac_config_targets
8559do
8560 case "$ac_config_target" in
8561 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008562 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
8563 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
8564 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
8565 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
8566 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
8567 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008568 "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 +00008569 "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008570 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8571echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8572 { (exit 1); exit 1; }; };;
8573 esac
8574done
8575
8576# If the user did not use the arguments to specify the items to instantiate,
8577# then the envvar interface is used. Set only those that are not.
8578# We use the long form for the default assignment because of an extremely
8579# bizarre bug on SunOS 4.1.3.
8580if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8583fi
8584
8585# Have a temporary directory for convenience. Make it in the build tree
8586# simply because there is no reason to put it here, and in addition,
8587# creating and moving files from /tmp can sometimes cause problems.
8588# Create a temporary directory, and hook for its removal unless debugging.
8589$debug ||
8590{
8591 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8592 trap '{ (exit 1); exit 1; }' 1 2 13 15
8593}
8594
8595# Create a (secure) tmp directory for tmp files.
8596
8597{
8598 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8599 test -n "$tmp" && test -d "$tmp"
8600} ||
8601{
8602 tmp=./confstat$$-$RANDOM
8603 (umask 077 && mkdir $tmp)
8604} ||
8605{
8606 echo "$me: cannot create a temporary directory in ." >&2
8607 { (exit 1); exit 1; }
8608}
8609
8610_ACEOF
8611
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008612cat >>$CONFIG_STATUS <<_ACEOF
8613
8614#
8615# CONFIG_FILES section.
8616#
8617
8618# No need to generate the scripts if there are no CONFIG_FILES.
8619# This happens for instance when ./config.status config.h
8620if test -n "\$CONFIG_FILES"; then
8621 # Protect against being on the right side of a sed subst in config.status.
8622 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8623 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8624s,@SHELL@,$SHELL,;t t
8625s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8626s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8627s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8628s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8629s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8630s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8631s,@exec_prefix@,$exec_prefix,;t t
8632s,@prefix@,$prefix,;t t
8633s,@program_transform_name@,$program_transform_name,;t t
8634s,@bindir@,$bindir,;t t
8635s,@sbindir@,$sbindir,;t t
8636s,@libexecdir@,$libexecdir,;t t
8637s,@datadir@,$datadir,;t t
8638s,@sysconfdir@,$sysconfdir,;t t
8639s,@sharedstatedir@,$sharedstatedir,;t t
8640s,@localstatedir@,$localstatedir,;t t
8641s,@libdir@,$libdir,;t t
8642s,@includedir@,$includedir,;t t
8643s,@oldincludedir@,$oldincludedir,;t t
8644s,@infodir@,$infodir,;t t
8645s,@mandir@,$mandir,;t t
8646s,@build_alias@,$build_alias,;t t
8647s,@host_alias@,$host_alias,;t t
8648s,@target_alias@,$target_alias,;t t
8649s,@DEFS@,$DEFS,;t t
8650s,@ECHO_C@,$ECHO_C,;t t
8651s,@ECHO_N@,$ECHO_N,;t t
8652s,@ECHO_T@,$ECHO_T,;t t
8653s,@LIBS@,$LIBS,;t t
8654s,@build@,$build,;t t
8655s,@build_cpu@,$build_cpu,;t t
8656s,@build_vendor@,$build_vendor,;t t
8657s,@build_os@,$build_os,;t t
8658s,@host@,$host,;t t
8659s,@host_cpu@,$host_cpu,;t t
8660s,@host_vendor@,$host_vendor,;t t
8661s,@host_os@,$host_os,;t t
8662s,@target@,$target,;t t
8663s,@target_cpu@,$target_cpu,;t t
8664s,@target_vendor@,$target_vendor,;t t
8665s,@target_os@,$target_os,;t t
8666s,@CC@,$CC,;t t
8667s,@CFLAGS@,$CFLAGS,;t t
8668s,@LDFLAGS@,$LDFLAGS,;t t
8669s,@CPPFLAGS@,$CPPFLAGS,;t t
8670s,@ac_ct_CC@,$ac_ct_CC,;t t
8671s,@EXEEXT@,$EXEEXT,;t t
8672s,@OBJEXT@,$OBJEXT,;t t
8673s,@CXX@,$CXX,;t t
8674s,@CXXFLAGS@,$CXXFLAGS,;t t
8675s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8676s,@ac_bigendian@,$ac_bigendian,;t t
8677s,@CPP@,$CPP,;t t
8678s,@EGREP@,$EGREP,;t t
8679s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
8680s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
8681s,@ac_no_small_filter@,$ac_no_small_filter,;t t
8682s,@ac_no_large_filter@,$ac_no_large_filter,;t t
8683s,@ac_no_g711_plc@,$ac_no_g711_plc,;t t
8684s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
8685s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
8686s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
8687s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
8688s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
8689s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
8690s,@ac_cross_compile@,$ac_cross_compile,;t t
8691s,@ac_linux_poll@,$ac_linux_poll,;t t
8692s,@ac_host@,$ac_host,;t t
8693s,@ac_main_obj@,$ac_main_obj,;t t
8694s,@LIBOBJS@,$LIBOBJS,;t t
8695s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8696CEOF
8697
8698_ACEOF
8699
8700 cat >>$CONFIG_STATUS <<\_ACEOF
8701 # Split the substitutions into bite-sized pieces for seds with
8702 # small command number limits, like on Digital OSF/1 and HP-UX.
8703 ac_max_sed_lines=48
8704 ac_sed_frag=1 # Number of current file.
8705 ac_beg=1 # First line for current file.
8706 ac_end=$ac_max_sed_lines # Line after last line for current file.
8707 ac_more_lines=:
8708 ac_sed_cmds=
8709 while $ac_more_lines; do
8710 if test $ac_beg -gt 1; then
8711 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8712 else
8713 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8714 fi
8715 if test ! -s $tmp/subs.frag; then
8716 ac_more_lines=false
8717 else
8718 # The purpose of the label and of the branching condition is to
8719 # speed up the sed processing (if there are no `@' at all, there
8720 # is no need to browse any of the substitutions).
8721 # These are the two extra sed commands mentioned above.
8722 (echo ':t
8723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8724 if test -z "$ac_sed_cmds"; then
8725 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8726 else
8727 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8728 fi
8729 ac_sed_frag=`expr $ac_sed_frag + 1`
8730 ac_beg=$ac_end
8731 ac_end=`expr $ac_end + $ac_max_sed_lines`
8732 fi
8733 done
8734 if test -z "$ac_sed_cmds"; then
8735 ac_sed_cmds=cat
8736 fi
8737fi # test -n "$CONFIG_FILES"
8738
8739_ACEOF
8740cat >>$CONFIG_STATUS <<\_ACEOF
8741for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8743 case $ac_file in
8744 - | *:- | *:-:* ) # input from stdin
8745 cat >$tmp/stdin
8746 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8747 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8748 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8750 * ) ac_file_in=$ac_file.in ;;
8751 esac
8752
8753 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8754 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8755$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8756 X"$ac_file" : 'X\(//\)[^/]' \| \
8757 X"$ac_file" : 'X\(//\)$' \| \
8758 X"$ac_file" : 'X\(/\)' \| \
8759 . : '\(.\)' 2>/dev/null ||
8760echo X"$ac_file" |
8761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8763 /^X\(\/\/\)$/{ s//\1/; q; }
8764 /^X\(\/\).*/{ s//\1/; q; }
8765 s/.*/./; q'`
8766 { if $as_mkdir_p; then
8767 mkdir -p "$ac_dir"
8768 else
8769 as_dir="$ac_dir"
8770 as_dirs=
8771 while test ! -d "$as_dir"; do
8772 as_dirs="$as_dir $as_dirs"
8773 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8774$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8775 X"$as_dir" : 'X\(//\)[^/]' \| \
8776 X"$as_dir" : 'X\(//\)$' \| \
8777 X"$as_dir" : 'X\(/\)' \| \
8778 . : '\(.\)' 2>/dev/null ||
8779echo X"$as_dir" |
8780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8782 /^X\(\/\/\)$/{ s//\1/; q; }
8783 /^X\(\/\).*/{ s//\1/; q; }
8784 s/.*/./; q'`
8785 done
8786 test ! -n "$as_dirs" || mkdir $as_dirs
8787 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8788echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8789 { (exit 1); exit 1; }; }; }
8790
8791 ac_builddir=.
8792
8793if test "$ac_dir" != .; then
8794 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8795 # A "../" for each directory in $ac_dir_suffix.
8796 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8797else
8798 ac_dir_suffix= ac_top_builddir=
8799fi
8800
8801case $srcdir in
8802 .) # No --srcdir option. We are building in place.
8803 ac_srcdir=.
8804 if test -z "$ac_top_builddir"; then
8805 ac_top_srcdir=.
8806 else
8807 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8808 fi ;;
8809 [\\/]* | ?:[\\/]* ) # Absolute path.
8810 ac_srcdir=$srcdir$ac_dir_suffix;
8811 ac_top_srcdir=$srcdir ;;
8812 *) # Relative path.
8813 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8814 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8815esac
8816
8817# Do not use `cd foo && pwd` to compute absolute paths, because
8818# the directories may not exist.
8819case `pwd` in
8820.) ac_abs_builddir="$ac_dir";;
8821*)
8822 case "$ac_dir" in
8823 .) ac_abs_builddir=`pwd`;;
8824 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8825 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8826 esac;;
8827esac
8828case $ac_abs_builddir in
8829.) ac_abs_top_builddir=${ac_top_builddir}.;;
8830*)
8831 case ${ac_top_builddir}. in
8832 .) ac_abs_top_builddir=$ac_abs_builddir;;
8833 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8834 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8835 esac;;
8836esac
8837case $ac_abs_builddir in
8838.) ac_abs_srcdir=$ac_srcdir;;
8839*)
8840 case $ac_srcdir in
8841 .) ac_abs_srcdir=$ac_abs_builddir;;
8842 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8843 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8844 esac;;
8845esac
8846case $ac_abs_builddir in
8847.) ac_abs_top_srcdir=$ac_top_srcdir;;
8848*)
8849 case $ac_top_srcdir in
8850 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8851 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8852 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8853 esac;;
8854esac
8855
8856
8857
8858 if test x"$ac_file" != x-; then
8859 { echo "$as_me:$LINENO: creating $ac_file" >&5
8860echo "$as_me: creating $ac_file" >&6;}
8861 rm -f "$ac_file"
8862 fi
8863 # Let's still pretend it is `configure' which instantiates (i.e., don't
8864 # use $as_me), people would be surprised to read:
8865 # /* config.h. Generated by config.status. */
8866 if test x"$ac_file" = x-; then
8867 configure_input=
8868 else
8869 configure_input="$ac_file. "
8870 fi
8871 configure_input=$configure_input"Generated from `echo $ac_file_in |
8872 sed 's,.*/,,'` by configure."
8873
8874 # First look for the input files in the build tree, otherwise in the
8875 # src tree.
8876 ac_file_inputs=`IFS=:
8877 for f in $ac_file_in; do
8878 case $f in
8879 -) echo $tmp/stdin ;;
8880 [\\/$]*)
8881 # Absolute (can't be DOS-style, as IFS=:)
8882 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8883echo "$as_me: error: cannot find input file: $f" >&2;}
8884 { (exit 1); exit 1; }; }
8885 echo "$f";;
8886 *) # Relative
8887 if test -f "$f"; then
8888 # Build tree
8889 echo "$f"
8890 elif test -f "$srcdir/$f"; then
8891 # Source tree
8892 echo "$srcdir/$f"
8893 else
8894 # /dev/null tree
8895 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8896echo "$as_me: error: cannot find input file: $f" >&2;}
8897 { (exit 1); exit 1; }; }
8898 fi;;
8899 esac
8900 done` || { (exit 1); exit 1; }
8901_ACEOF
8902cat >>$CONFIG_STATUS <<_ACEOF
8903 sed "$ac_vpsub
8904$extrasub
8905_ACEOF
8906cat >>$CONFIG_STATUS <<\_ACEOF
8907:t
8908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8909s,@configure_input@,$configure_input,;t t
8910s,@srcdir@,$ac_srcdir,;t t
8911s,@abs_srcdir@,$ac_abs_srcdir,;t t
8912s,@top_srcdir@,$ac_top_srcdir,;t t
8913s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8914s,@builddir@,$ac_builddir,;t t
8915s,@abs_builddir@,$ac_abs_builddir,;t t
8916s,@top_builddir@,$ac_top_builddir,;t t
8917s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8918" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8919 rm -f $tmp/stdin
8920 if test x"$ac_file" != x-; then
8921 mv $tmp/out $ac_file
8922 else
8923 cat $tmp/out
8924 rm -f $tmp/out
8925 fi
8926
8927done
8928_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008929cat >>$CONFIG_STATUS <<\_ACEOF
8930
8931#
8932# CONFIG_HEADER section.
8933#
8934
8935# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8936# NAME is the cpp macro being defined and VALUE is the value it is being given.
8937#
8938# ac_d sets the value in "#define NAME VALUE" lines.
8939ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8940ac_dB='[ ].*$,\1#\2'
8941ac_dC=' '
8942ac_dD=',;t'
8943# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8944ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8945ac_uB='$,\1#\2define\3'
8946ac_uC=' '
8947ac_uD=',;t'
8948
8949for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8951 case $ac_file in
8952 - | *:- | *:-:* ) # input from stdin
8953 cat >$tmp/stdin
8954 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8956 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8958 * ) ac_file_in=$ac_file.in ;;
8959 esac
8960
8961 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8962echo "$as_me: creating $ac_file" >&6;}
8963
8964 # First look for the input files in the build tree, otherwise in the
8965 # src tree.
8966 ac_file_inputs=`IFS=:
8967 for f in $ac_file_in; do
8968 case $f in
8969 -) echo $tmp/stdin ;;
8970 [\\/$]*)
8971 # Absolute (can't be DOS-style, as IFS=:)
8972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8973echo "$as_me: error: cannot find input file: $f" >&2;}
8974 { (exit 1); exit 1; }; }
8975 # Do quote $f, to prevent DOS paths from being IFS'd.
8976 echo "$f";;
8977 *) # Relative
8978 if test -f "$f"; then
8979 # Build tree
8980 echo "$f"
8981 elif test -f "$srcdir/$f"; then
8982 # Source tree
8983 echo "$srcdir/$f"
8984 else
8985 # /dev/null tree
8986 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8987echo "$as_me: error: cannot find input file: $f" >&2;}
8988 { (exit 1); exit 1; }; }
8989 fi;;
8990 esac
8991 done` || { (exit 1); exit 1; }
8992 # Remove the trailing spaces.
8993 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8994
8995_ACEOF
8996
8997# Transform confdefs.h into two sed scripts, `conftest.defines' and
8998# `conftest.undefs', that substitutes the proper values into
8999# config.h.in to produce config.h. The first handles `#define'
9000# templates, and the second `#undef' templates.
9001# And first: Protect against being on the right side of a sed subst in
9002# config.status. Protect against being in an unquoted here document
9003# in config.status.
9004rm -f conftest.defines conftest.undefs
9005# Using a here document instead of a string reduces the quoting nightmare.
9006# Putting comments in sed scripts is not portable.
9007#
9008# `end' is used to avoid that the second main sed command (meant for
9009# 0-ary CPP macros) applies to n-ary macro definitions.
9010# See the Autoconf documentation for `clear'.
9011cat >confdef2sed.sed <<\_ACEOF
9012s/[\\&,]/\\&/g
9013s,[\\$`],\\&,g
9014t clear
9015: clear
9016s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9017t end
9018s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9019: end
9020_ACEOF
9021# If some macros were called several times there might be several times
9022# the same #defines, which is useless. Nevertheless, we may not want to
9023# sort them, since we want the *last* AC-DEFINE to be honored.
9024uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9025sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9026rm -f confdef2sed.sed
9027
9028# This sed command replaces #undef with comments. This is necessary, for
9029# example, in the case of _POSIX_SOURCE, which is predefined and required
9030# on some systems where configure will not decide to define it.
9031cat >>conftest.undefs <<\_ACEOF
9032s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9033_ACEOF
9034
9035# Break up conftest.defines because some shells have a limit on the size
9036# of here documents, and old seds have small limits too (100 cmds).
9037echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9038echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9039echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9040echo ' :' >>$CONFIG_STATUS
9041rm -f conftest.tail
9042while grep . conftest.defines >/dev/null
9043do
9044 # Write a limited-size here document to $tmp/defines.sed.
9045 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9046 # Speed up: don't consider the non `#define' lines.
9047 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9048 # Work around the forget-to-reset-the-flag bug.
9049 echo 't clr' >>$CONFIG_STATUS
9050 echo ': clr' >>$CONFIG_STATUS
9051 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9052 echo 'CEOF
9053 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9054 rm -f $tmp/in
9055 mv $tmp/out $tmp/in
9056' >>$CONFIG_STATUS
9057 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9058 rm -f conftest.defines
9059 mv conftest.tail conftest.defines
9060done
9061rm -f conftest.defines
9062echo ' fi # grep' >>$CONFIG_STATUS
9063echo >>$CONFIG_STATUS
9064
9065# Break up conftest.undefs because some shells have a limit on the size
9066# of here documents, and old seds have small limits too (100 cmds).
9067echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9068rm -f conftest.tail
9069while grep . conftest.undefs >/dev/null
9070do
9071 # Write a limited-size here document to $tmp/undefs.sed.
9072 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9073 # Speed up: don't consider the non `#undef'
9074 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9075 # Work around the forget-to-reset-the-flag bug.
9076 echo 't clr' >>$CONFIG_STATUS
9077 echo ': clr' >>$CONFIG_STATUS
9078 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9079 echo 'CEOF
9080 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9081 rm -f $tmp/in
9082 mv $tmp/out $tmp/in
9083' >>$CONFIG_STATUS
9084 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9085 rm -f conftest.undefs
9086 mv conftest.tail conftest.undefs
9087done
9088rm -f conftest.undefs
9089
9090cat >>$CONFIG_STATUS <<\_ACEOF
9091 # Let's still pretend it is `configure' which instantiates (i.e., don't
9092 # use $as_me), people would be surprised to read:
9093 # /* config.h. Generated by config.status. */
9094 if test x"$ac_file" = x-; then
9095 echo "/* Generated by configure. */" >$tmp/config.h
9096 else
9097 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9098 fi
9099 cat $tmp/in >>$tmp/config.h
9100 rm -f $tmp/in
9101 if test x"$ac_file" != x-; then
9102 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9103 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9104echo "$as_me: $ac_file is unchanged" >&6;}
9105 else
9106 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9107$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9108 X"$ac_file" : 'X\(//\)[^/]' \| \
9109 X"$ac_file" : 'X\(//\)$' \| \
9110 X"$ac_file" : 'X\(/\)' \| \
9111 . : '\(.\)' 2>/dev/null ||
9112echo X"$ac_file" |
9113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9115 /^X\(\/\/\)$/{ s//\1/; q; }
9116 /^X\(\/\).*/{ s//\1/; q; }
9117 s/.*/./; q'`
9118 { if $as_mkdir_p; then
9119 mkdir -p "$ac_dir"
9120 else
9121 as_dir="$ac_dir"
9122 as_dirs=
9123 while test ! -d "$as_dir"; do
9124 as_dirs="$as_dir $as_dirs"
9125 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9126$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9127 X"$as_dir" : 'X\(//\)[^/]' \| \
9128 X"$as_dir" : 'X\(//\)$' \| \
9129 X"$as_dir" : 'X\(/\)' \| \
9130 . : '\(.\)' 2>/dev/null ||
9131echo X"$as_dir" |
9132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9134 /^X\(\/\/\)$/{ s//\1/; q; }
9135 /^X\(\/\).*/{ s//\1/; q; }
9136 s/.*/./; q'`
9137 done
9138 test ! -n "$as_dirs" || mkdir $as_dirs
9139 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9140echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9141 { (exit 1); exit 1; }; }; }
9142
9143 rm -f $ac_file
9144 mv $tmp/config.h $ac_file
9145 fi
9146 else
9147 cat $tmp/config.h
9148 rm -f $tmp/config.h
9149 fi
9150done
9151_ACEOF
9152
9153cat >>$CONFIG_STATUS <<\_ACEOF
9154
9155{ (exit 0); exit 0; }
9156_ACEOF
9157chmod +x $CONFIG_STATUS
9158ac_clean_files=$ac_clean_files_save
9159
9160
9161# configure is writing to config.log, and then calls config.status.
9162# config.status does its own redirection, appending to config.log.
9163# Unfortunately, on DOS this fails, as config.log is still kept open
9164# by configure, so config.status won't be able to write to it; its
9165# output is simply discarded. So we exec the FD to /dev/null,
9166# effectively closing config.log, so it can be properly (re)opened and
9167# appended to by config.status. When coming back to configure, we
9168# need to make the FD available again.
9169if test "$no_create" != yes; then
9170 ac_cs_success=:
9171 ac_config_status_args=
9172 test "$silent" = yes &&
9173 ac_config_status_args="$ac_config_status_args --quiet"
9174 exec 5>/dev/null
9175 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9176 exec 5>>config.log
9177 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9178 # would make configure fail if this is the last instruction.
9179 $ac_cs_success || { (exit 1); exit 1; }
9180fi
9181
9182