Fixed incorrect test for error on _sopen return value, thanks Brian Coverstone
[pwlib.git] / configure
blobcbc5260d8997e87fc166eca7b53368a4b2a5a127
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
44 if (set +x; test -n "`(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
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="include/ptlib.h"
274 ac_subdirs_all="$ac_subdirs_all plugins"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_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 subdirs CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT PWLIBDIR PWINSTDIR INSTALLPREFIX LIBDIR MAJOR_VERSION MINOR_VERSION BUILD_NUMBER PWLIB_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MACHTYPE OSTYPE OSRELEASE TARGETDIR SHAREDLIBEXT CXXCPP EGREP HAS_REGEX HAS_PLUGINS HAS_SASL2 HAS_SASL HAS_OPENLDAP HAS_OPENSSL P_STATIC_ENDLDLIBS P_STATIC_LDFLAGS HAS_EXPAT HAS_IPV6 HAS_SDL HAS_VIDEO_CAPTURE HAS_ALSA STDCCFLAGS STDCXXFLAGS OPTSTDCCFLAGS ENDLDLIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXX_set=${CXX+set}
754 ac_env_CXX_value=$CXX
755 ac_cv_env_CXX_set=${CXX+set}
756 ac_cv_env_CXX_value=$CXX
757 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_env_CXXFLAGS_value=$CXXFLAGS
759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXXCPP_set=${CXXCPP+set}
770 ac_env_CXXCPP_value=$CXXCPP
771 ac_cv_env_CXXCPP_set=${CXXCPP+set}
772 ac_cv_env_CXXCPP_value=$CXXCPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838 _ACEOF
841 if test -n "$ac_init_help"; then
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-internalregex force internal regex library
849 --enable-plugins enable plugins' support in PWLIB
850 --disable-resolver disable DNS resolver support in PWLIB
851 --disable-sasl disable SASL support in PWLIB
852 --disable-openldap disable OpenLDAP support in PWLIB
853 --disable-openssl disable OpenSSL support in PWLIB
854 --disable-expat disable XML support in PWLIB
855 --disable-ipv6 disable IPV6 support in PWLIB
856 --disable-qos disable QOS support in PWLIB
857 --disable-sdl disable SDL support in PWLIB
858 --disable-video disable non-plugin video device support in PWLIB
859 --enable-alsa disable non-plugin ALSA audio support
860 --enable-memcheck enable leak testing code (off by default)
862 Some influential environment variables:
863 CXX C++ compiler command
864 CXXFLAGS C++ compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CXXCPP C++ preprocessor
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
874 _ACEOF
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
914 cd $ac_dir
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
917 echo
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
920 echo
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
924 echo
925 $ac_configure --help
926 else
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929 cd $ac_popdir
930 done
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935 cat <<\_ACEOF
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
941 _ACEOF
942 exit 0
944 exec 5>config.log
945 cat >&5 <<_ACEOF
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.57. Invocation command line was
952 $ $0 $@
954 _ACEOF
956 cat <<_ASUNAME
957 ## --------- ##
958 ## Platform. ##
959 ## --------- ##
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978 _ASUNAME
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
983 IFS=$as_save_IFS
984 test -z "$as_dir" && as_dir=.
985 echo "PATH: $as_dir"
986 done
988 } >&5
990 cat >&5 <<_ACEOF
993 ## ----------- ##
994 ## Core tests. ##
995 ## ----------- ##
997 _ACEOF
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_configure_args=
1006 ac_configure_args0=
1007 ac_configure_args1=
1008 ac_sep=
1009 ac_must_keep_next=false
1010 for ac_pass in 1 2
1012 for ac_arg
1014 case $ac_arg in
1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 continue ;;
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021 esac
1022 case $ac_pass in
1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026 if test $ac_must_keep_next = true; then
1027 ac_must_keep_next=false # Got value, back to normal.
1028 else
1029 case $ac_arg in
1030 *=* | --config-cache | -C | -disable-* | --disable-* \
1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033 | -with-* | --with-* | -without-* | --without-* | --x)
1034 case "$ac_configure_args0 " in
1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036 esac
1038 -* ) ac_must_keep_next=true ;;
1039 esac
1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1043 ac_sep=" "
1045 esac
1046 done
1047 done
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log. We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057 # Save into config.log some information that might help in debugging.
1059 echo
1061 cat <<\_ASBOX
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1065 _ASBOX
1066 echo
1067 # The following way of writing the cache mishandles newlines in values,
1069 (set) 2>&1 |
1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 *ac_space=\ *)
1072 sed -n \
1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077 sed -n \
1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1080 esac;
1082 echo
1084 cat <<\_ASBOX
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1088 _ASBOX
1089 echo
1090 for ac_var in $ac_subst_vars
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1094 done | sort
1095 echo
1097 if test -n "$ac_subst_files"; then
1098 cat <<\_ASBOX
1099 ## ------------- ##
1100 ## Output files. ##
1101 ## ------------- ##
1102 _ASBOX
1103 echo
1104 for ac_var in $ac_subst_files
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1108 done | sort
1109 echo
1112 if test -s confdefs.h; then
1113 cat <<\_ASBOX
1114 ## ----------- ##
1115 ## confdefs.h. ##
1116 ## ----------- ##
1117 _ASBOX
1118 echo
1119 sed "/^$/d" confdefs.h | sort
1120 echo
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1125 } >&5
1126 rm -f core core.* *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128 exit $exit_status
1130 for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 done
1133 ac_signal=0
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 echo >confdefs.h
1140 # Predefined preprocessor variables.
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 _ACEOF
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 _ACEOF
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 _ACEOF
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 _ACEOF
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 _ACEOF
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172 else
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176 for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180 sed 's/^/| /' "$ac_site_file" >&5
1181 . "$ac_site_file"
1183 done
1185 if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1191 case $cache_file in
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1194 esac
1196 else
1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1199 >$cache_file
1202 # Check that the precious variables saved in the cache have kept the same
1203 # value.
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1212 set,)
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1216 ,set)
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,);;
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1226 echo "$as_me: former value: $ac_old_val" >&2;}
1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1228 echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1230 fi;;
1231 esac
1232 # Pass precious variables to config.status.
1233 if test "$ac_new_set" = set; then
1234 case $ac_new_val in
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1238 esac
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242 esac
1244 done
1245 if $ac_cache_corrupted; then
1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1253 ac_ext=c
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1278 ac_aux_dir=
1279 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1280 if test -f $ac_dir/install-sh; then
1281 ac_aux_dir=$ac_dir
1282 ac_install_sh="$ac_aux_dir/install-sh -c"
1283 break
1284 elif test -f $ac_dir/install.sh; then
1285 ac_aux_dir=$ac_dir
1286 ac_install_sh="$ac_aux_dir/install.sh -c"
1287 break
1288 elif test -f $ac_dir/shtool; then
1289 ac_aux_dir=$ac_dir
1290 ac_install_sh="$ac_aux_dir/shtool install -c"
1291 break
1293 done
1294 if test -z "$ac_aux_dir"; then
1295 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1296 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1297 { (exit 1); exit 1; }; }
1299 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1300 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1301 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1305 subdirs="$subdirs plugins"
1308 ac_ext=cc
1309 ac_cpp='$CXXCPP $CPPFLAGS'
1310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1313 if test -n "$ac_tool_prefix"; then
1314 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1318 echo "$as_me:$LINENO: checking for $ac_word" >&5
1319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1320 if test "${ac_cv_prog_CXX+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 else
1323 if test -n "$CXX"; then
1324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1325 else
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327 for as_dir in $PATH
1329 IFS=$as_save_IFS
1330 test -z "$as_dir" && as_dir=.
1331 for ac_exec_ext in '' $ac_executable_extensions; do
1332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1333 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1335 break 2
1337 done
1338 done
1342 CXX=$ac_cv_prog_CXX
1343 if test -n "$CXX"; then
1344 echo "$as_me:$LINENO: result: $CXX" >&5
1345 echo "${ECHO_T}$CXX" >&6
1346 else
1347 echo "$as_me:$LINENO: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1351 test -n "$CXX" && break
1352 done
1354 if test -z "$CXX"; then
1355 ac_ct_CXX=$CXX
1356 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1358 # Extract the first word of "$ac_prog", so it can be a program name with args.
1359 set dummy $ac_prog; ac_word=$2
1360 echo "$as_me:$LINENO: checking for $ac_word" >&5
1361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 if test -n "$ac_ct_CXX"; then
1366 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1367 else
1368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369 for as_dir in $PATH
1371 IFS=$as_save_IFS
1372 test -z "$as_dir" && as_dir=.
1373 for ac_exec_ext in '' $ac_executable_extensions; do
1374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1375 ac_cv_prog_ac_ct_CXX="$ac_prog"
1376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1377 break 2
1379 done
1380 done
1384 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1385 if test -n "$ac_ct_CXX"; then
1386 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1387 echo "${ECHO_T}$ac_ct_CXX" >&6
1388 else
1389 echo "$as_me:$LINENO: result: no" >&5
1390 echo "${ECHO_T}no" >&6
1393 test -n "$ac_ct_CXX" && break
1394 done
1395 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1397 CXX=$ac_ct_CXX
1401 # Provide some information about the compiler.
1402 echo "$as_me:$LINENO:" \
1403 "checking for C++ compiler version" >&5
1404 ac_compiler=`set X $ac_compile; echo $2`
1405 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1406 (eval $ac_compiler --version </dev/null >&5) 2>&5
1407 ac_status=$?
1408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1409 (exit $ac_status); }
1410 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1411 (eval $ac_compiler -v </dev/null >&5) 2>&5
1412 ac_status=$?
1413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1414 (exit $ac_status); }
1415 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1416 (eval $ac_compiler -V </dev/null >&5) 2>&5
1417 ac_status=$?
1418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1419 (exit $ac_status); }
1421 cat >conftest.$ac_ext <<_ACEOF
1422 #line $LINENO "configure"
1423 /* confdefs.h. */
1424 _ACEOF
1425 cat confdefs.h >>conftest.$ac_ext
1426 cat >>conftest.$ac_ext <<_ACEOF
1427 /* end confdefs.h. */
1430 main ()
1434 return 0;
1436 _ACEOF
1437 ac_clean_files_save=$ac_clean_files
1438 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1439 # Try to create an executable without -o first, disregard a.out.
1440 # It will help us diagnose broken compilers, and finding out an intuition
1441 # of exeext.
1442 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1443 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1444 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1445 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1446 (eval $ac_link_default) 2>&5
1447 ac_status=$?
1448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1449 (exit $ac_status); }; then
1450 # Find the output, starting from the most likely. This scheme is
1451 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1452 # resort.
1454 # Be careful to initialize this variable, since it used to be cached.
1455 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1456 ac_cv_exeext=
1457 # b.out is created by i960 compilers.
1458 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1460 test -f "$ac_file" || continue
1461 case $ac_file in
1462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1464 conftest.$ac_ext )
1465 # This is the source file.
1467 [ab].out )
1468 # We found the default executable, but exeext='' is most
1469 # certainly right.
1470 break;;
1471 *.* )
1472 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1473 # FIXME: I believe we export ac_cv_exeext for Libtool,
1474 # but it would be cool to find out if it's true. Does anybody
1475 # maintain Libtool? --akim.
1476 export ac_cv_exeext
1477 break;;
1479 break;;
1480 esac
1481 done
1482 else
1483 echo "$as_me: failed program was:" >&5
1484 sed 's/^/| /' conftest.$ac_ext >&5
1486 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1487 See \`config.log' for more details." >&5
1488 echo "$as_me: error: C++ compiler cannot create executables
1489 See \`config.log' for more details." >&2;}
1490 { (exit 77); exit 77; }; }
1493 ac_exeext=$ac_cv_exeext
1494 echo "$as_me:$LINENO: result: $ac_file" >&5
1495 echo "${ECHO_T}$ac_file" >&6
1497 # Check the compiler produces executables we can run. If not, either
1498 # the compiler is broken, or we cross compile.
1499 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1500 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1501 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1502 # If not cross compiling, check that we can run a simple program.
1503 if test "$cross_compiling" != yes; then
1504 if { ac_try='./$ac_file'
1505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1506 (eval $ac_try) 2>&5
1507 ac_status=$?
1508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1509 (exit $ac_status); }; }; then
1510 cross_compiling=no
1511 else
1512 if test "$cross_compiling" = maybe; then
1513 cross_compiling=yes
1514 else
1515 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1516 If you meant to cross compile, use \`--host'.
1517 See \`config.log' for more details." >&5
1518 echo "$as_me: error: cannot run C++ compiled programs.
1519 If you meant to cross compile, use \`--host'.
1520 See \`config.log' for more details." >&2;}
1521 { (exit 1); exit 1; }; }
1525 echo "$as_me:$LINENO: result: yes" >&5
1526 echo "${ECHO_T}yes" >&6
1528 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1529 ac_clean_files=$ac_clean_files_save
1530 # Check the compiler produces executables we can run. If not, either
1531 # the compiler is broken, or we cross compile.
1532 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1533 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1534 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1535 echo "${ECHO_T}$cross_compiling" >&6
1537 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1538 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1540 (eval $ac_link) 2>&5
1541 ac_status=$?
1542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1543 (exit $ac_status); }; then
1544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1546 # work properly (i.e., refer to `conftest.exe'), while it won't with
1547 # `rm'.
1548 for ac_file in conftest.exe conftest conftest.*; do
1549 test -f "$ac_file" || continue
1550 case $ac_file in
1551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1553 export ac_cv_exeext
1554 break;;
1555 * ) break;;
1556 esac
1557 done
1558 else
1559 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1560 See \`config.log' for more details." >&5
1561 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1562 See \`config.log' for more details." >&2;}
1563 { (exit 1); exit 1; }; }
1566 rm -f conftest$ac_cv_exeext
1567 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1568 echo "${ECHO_T}$ac_cv_exeext" >&6
1570 rm -f conftest.$ac_ext
1571 EXEEXT=$ac_cv_exeext
1572 ac_exeext=$EXEEXT
1573 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1574 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1575 if test "${ac_cv_objext+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 cat >conftest.$ac_ext <<_ACEOF
1579 #line $LINENO "configure"
1580 /* confdefs.h. */
1581 _ACEOF
1582 cat confdefs.h >>conftest.$ac_ext
1583 cat >>conftest.$ac_ext <<_ACEOF
1584 /* end confdefs.h. */
1587 main ()
1591 return 0;
1593 _ACEOF
1594 rm -f conftest.o conftest.obj
1595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1596 (eval $ac_compile) 2>&5
1597 ac_status=$?
1598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1599 (exit $ac_status); }; then
1600 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1601 case $ac_file in
1602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1604 break;;
1605 esac
1606 done
1607 else
1608 echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1612 See \`config.log' for more details." >&5
1613 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1614 See \`config.log' for more details." >&2;}
1615 { (exit 1); exit 1; }; }
1618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1620 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1621 echo "${ECHO_T}$ac_cv_objext" >&6
1622 OBJEXT=$ac_cv_objext
1623 ac_objext=$OBJEXT
1624 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1625 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1626 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 cat >conftest.$ac_ext <<_ACEOF
1630 #line $LINENO "configure"
1631 /* confdefs.h. */
1632 _ACEOF
1633 cat confdefs.h >>conftest.$ac_ext
1634 cat >>conftest.$ac_ext <<_ACEOF
1635 /* end confdefs.h. */
1638 main ()
1640 #ifndef __GNUC__
1641 choke me
1642 #endif
1645 return 0;
1647 _ACEOF
1648 rm -f conftest.$ac_objext
1649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1650 (eval $ac_compile) 2>&5
1651 ac_status=$?
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); } &&
1654 { ac_try='test -s conftest.$ac_objext'
1655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1656 (eval $ac_try) 2>&5
1657 ac_status=$?
1658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1659 (exit $ac_status); }; }; then
1660 ac_compiler_gnu=yes
1661 else
1662 echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1665 ac_compiler_gnu=no
1667 rm -f conftest.$ac_objext conftest.$ac_ext
1668 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1671 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1672 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1673 GXX=`test $ac_compiler_gnu = yes && echo yes`
1674 ac_test_CXXFLAGS=${CXXFLAGS+set}
1675 ac_save_CXXFLAGS=$CXXFLAGS
1676 CXXFLAGS="-g"
1677 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1678 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1679 if test "${ac_cv_prog_cxx_g+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682 cat >conftest.$ac_ext <<_ACEOF
1683 #line $LINENO "configure"
1684 /* confdefs.h. */
1685 _ACEOF
1686 cat confdefs.h >>conftest.$ac_ext
1687 cat >>conftest.$ac_ext <<_ACEOF
1688 /* end confdefs.h. */
1691 main ()
1695 return 0;
1697 _ACEOF
1698 rm -f conftest.$ac_objext
1699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1700 (eval $ac_compile) 2>&5
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); } &&
1704 { ac_try='test -s conftest.$ac_objext'
1705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1706 (eval $ac_try) 2>&5
1707 ac_status=$?
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); }; }; then
1710 ac_cv_prog_cxx_g=yes
1711 else
1712 echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1715 ac_cv_prog_cxx_g=no
1717 rm -f conftest.$ac_objext conftest.$ac_ext
1719 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1720 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1721 if test "$ac_test_CXXFLAGS" = set; then
1722 CXXFLAGS=$ac_save_CXXFLAGS
1723 elif test $ac_cv_prog_cxx_g = yes; then
1724 if test "$GXX" = yes; then
1725 CXXFLAGS="-g -O2"
1726 else
1727 CXXFLAGS="-g"
1729 else
1730 if test "$GXX" = yes; then
1731 CXXFLAGS="-O2"
1732 else
1733 CXXFLAGS=
1736 for ac_declaration in \
1738 '#include <stdlib.h>' \
1739 'extern "C" void std::exit (int) throw (); using std::exit;' \
1740 'extern "C" void std::exit (int); using std::exit;' \
1741 'extern "C" void exit (int) throw ();' \
1742 'extern "C" void exit (int);' \
1743 'void exit (int);'
1745 cat >conftest.$ac_ext <<_ACEOF
1746 #line $LINENO "configure"
1747 /* confdefs.h. */
1748 _ACEOF
1749 cat confdefs.h >>conftest.$ac_ext
1750 cat >>conftest.$ac_ext <<_ACEOF
1751 /* end confdefs.h. */
1752 #include <stdlib.h>
1753 $ac_declaration
1755 main ()
1757 exit (42);
1759 return 0;
1761 _ACEOF
1762 rm -f conftest.$ac_objext
1763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1764 (eval $ac_compile) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); } &&
1768 { ac_try='test -s conftest.$ac_objext'
1769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1770 (eval $ac_try) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1775 else
1776 echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 continue
1781 rm -f conftest.$ac_objext conftest.$ac_ext
1782 cat >conftest.$ac_ext <<_ACEOF
1783 #line $LINENO "configure"
1784 /* confdefs.h. */
1785 _ACEOF
1786 cat confdefs.h >>conftest.$ac_ext
1787 cat >>conftest.$ac_ext <<_ACEOF
1788 /* end confdefs.h. */
1789 $ac_declaration
1791 main ()
1793 exit (42);
1795 return 0;
1797 _ACEOF
1798 rm -f conftest.$ac_objext
1799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1800 (eval $ac_compile) 2>&5
1801 ac_status=$?
1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803 (exit $ac_status); } &&
1804 { ac_try='test -s conftest.$ac_objext'
1805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1806 (eval $ac_try) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }; }; then
1810 break
1811 else
1812 echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1816 rm -f conftest.$ac_objext conftest.$ac_ext
1817 done
1818 rm -f conftest*
1819 if test -n "$ac_declaration"; then
1820 echo '#ifdef __cplusplus' >>confdefs.h
1821 echo $ac_declaration >>confdefs.h
1822 echo '#endif' >>confdefs.h
1825 ac_ext=c
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 ac_ext=cc
1833 ac_cpp='$CXXCPP $CPPFLAGS'
1834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1840 PWLIBDIR=`pwd`
1844 if test "x$prefix" = "xNONE"; then
1845 INSTALLPREFIX="/usr/local"
1846 else
1847 INSTALLPREFIX="${prefix}"
1853 LIBDIR=${libdir}
1857 MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1858 MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1859 BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1860 PWLIB_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1865 MAJOR_VERSION=$MAJOR_VERSION
1867 MINOR_VERSION=$MINOR_VERSION
1869 BUILD_NUMBER=$BUILD_NUMBER
1872 { echo "$as_me:$LINENO: PTLib version is ${PWLIB_VERSION}" >&5
1873 echo "$as_me: PTLib version is ${PWLIB_VERSION}" >&6;};
1876 cat >>confdefs.h <<_ACEOF
1877 #define PWLIB_MAJOR $MAJOR_VERSION
1878 _ACEOF
1881 cat >>confdefs.h <<_ACEOF
1882 #define PWLIB_MINOR $MINOR_VERSION
1883 _ACEOF
1886 cat >>confdefs.h <<_ACEOF
1887 #define PWLIB_BUILD $BUILD_NUMBER
1888 _ACEOF
1891 cat >>confdefs.h <<_ACEOF
1892 #define PWLIB_VERSION "$PWLIB_VERSION"
1893 _ACEOF
1897 # Make sure we can run config.sub.
1898 $ac_config_sub sun4 >/dev/null 2>&1 ||
1899 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1900 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1901 { (exit 1); exit 1; }; }
1903 echo "$as_me:$LINENO: checking build system type" >&5
1904 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1905 if test "${ac_cv_build+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 ac_cv_build_alias=$build_alias
1909 test -z "$ac_cv_build_alias" &&
1910 ac_cv_build_alias=`$ac_config_guess`
1911 test -z "$ac_cv_build_alias" &&
1912 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1913 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1914 { (exit 1); exit 1; }; }
1915 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1916 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1917 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1918 { (exit 1); exit 1; }; }
1921 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1922 echo "${ECHO_T}$ac_cv_build" >&6
1923 build=$ac_cv_build
1924 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1925 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1926 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1929 echo "$as_me:$LINENO: checking host system type" >&5
1930 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1931 if test "${ac_cv_host+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 ac_cv_host_alias=$host_alias
1935 test -z "$ac_cv_host_alias" &&
1936 ac_cv_host_alias=$ac_cv_build_alias
1937 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1938 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1939 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1940 { (exit 1); exit 1; }; }
1943 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1944 echo "${ECHO_T}$ac_cv_host" >&6
1945 host=$ac_cv_host
1946 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1947 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1948 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1951 echo "$as_me:$LINENO: checking target system type" >&5
1952 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1953 if test "${ac_cv_target+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 ac_cv_target_alias=$target_alias
1957 test "x$ac_cv_target_alias" = "x" &&
1958 ac_cv_target_alias=$ac_cv_host_alias
1959 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1960 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1961 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1962 { (exit 1); exit 1; }; }
1965 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1966 echo "${ECHO_T}$ac_cv_target" >&6
1967 target=$ac_cv_target
1968 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1969 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1970 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1973 # The aliases save the names the user supplied, while $host etc.
1974 # will get canonicalized.
1975 test -n "$target_alias" &&
1976 test "$program_prefix$program_suffix$program_transform_name" = \
1977 NONENONEs,x,x, &&
1978 program_prefix=${target_alias}-
1980 TARGETDIR=unix
1981 OSTYPE=
1983 case "$target_os" in
1984 linux*) OSTYPE=linux ;
1985 OSRELEASE="\"`uname -r`\"";
1986 OS_TAG="P_LINUX" ;
1987 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1990 freebsd* ) OSTYPE=FreeBSD ;
1991 OS_TAG="P_FREEBSD" ;
1992 if test "x$OSRELEASE" = "x"; then
1993 OSRELEASE="`sysctl -n kern.osreldate`" ;
1995 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1998 openbsd* ) OSTYPE=OpenBSD ;
1999 OS_TAG="P_OPENBSD" ;
2000 OSRELEASE="`sysctl -n kern.osrevision`" ;
2001 ENDLDLIBS="-lossaudio" ;
2002 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2005 netbsd* ) OSTYPE=NetBSD ;
2006 OS_TAG="P_NETBSD" ;
2007 OSRELEASE="`/sbin/sysctl -n kern.osrevision`" ;
2008 ENDLDLIBS="-lossaudio" ;
2009 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2012 solaris* | sunos* ) OSTYPE=solaris ;
2013 OS_TAG="P_SOLARIS" ;
2014 OSRELEASE=`uname -r | sed "s/5\.//g"` ;
2015 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2018 darwin* ) OSTYPE=Darwin ;
2019 OS_TAG="P_MACOSX" ;
2020 OSRELEASE="`uname -r | sed 's/\.//g'`" ;
2021 SHAREDLIBEXT="dylib";
2022 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2025 beos*) OSTYPE=beos ;
2026 OS_TAG="P_BEOS" ;
2027 OSRELEASE=`uname -r` ;
2028 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
2031 * ) OSTYPE="$target_os" ;
2032 OS_TAG="P_UNKNOWN_OS" ;
2033 OSRELEASE="\"${OSTYPE}_`uname -r`\"" ;
2034 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2035 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2037 esac
2039 MACHTYPE=
2041 case "$target_cpu" in
2042 x86 | i686 | i586 | i486 | i386 ) MACHTYPE=x86
2045 x86_64) MACHTYPE=x86_64 ;
2046 P_64BIT=1 ;
2047 LIB64=1 ;
2050 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) MACHTYPE=alpha ;
2051 P_64BIT=1 ;
2054 sparc ) MACHTYPE=sparc ;
2057 powerpc ) MACHTYPE=ppc ;
2060 ppc ) MACHTYPE=ppc ;
2063 powerpc64 ) MACHTYPE=ppc64 ;
2064 P_64BIT=1 ;
2065 LIB64=1 ;
2068 ppc64 ) MACHTYPE=ppc64 ;
2069 P_64BIT=1 ;
2070 LIB64=1 ;
2073 ia64) MACHTYPE=ia64 ;
2074 P_64BIT=1 ;
2077 s390x) MACHTYPE=s390x ;
2078 P_64BIT=1 ;
2079 LIB64=1 ;
2082 s390) MACHTYPE=s390 ;
2085 * ) MACHTYPE=$target_cpu ;
2086 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2087 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2088 esac
2090 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2091 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2092 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2093 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2094 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2095 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2097 MACHTYPE=$MACHTYPE
2099 OSTYPE=$OSTYPE
2101 OSRELEASE=$OSRELEASE
2103 TARGETDIR=$TARGETDIR
2106 cat >>confdefs.h <<_ACEOF
2107 #define $OS_TAG $OSRELEASE
2108 _ACEOF
2112 cat >>confdefs.h <<\_ACEOF
2113 #define PHAS_TEMPLATES 1
2114 _ACEOF
2117 if test "x$P_64BIT" != "x" ; then
2119 cat >>confdefs.h <<\_ACEOF
2120 #define P_64BIT 1
2121 _ACEOF
2125 if test ${OSTYPE} != beos ; then
2127 cat >>confdefs.h <<\_ACEOF
2128 #define P_PTHREADS 1
2129 _ACEOF
2134 if test "x${SHAREDLIBEXT}" = "x" ; then
2135 SHAREDLIBEXT="so"
2137 SHAREDLIBEXT=$SHAREDLIBEXT
2140 cat >>confdefs.h <<\_ACEOF
2141 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2142 _ACEOF
2148 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2149 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2150 if test "${ac_cv_c_bigendian+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 # See if sys/param.h defines the BYTE_ORDER macro.
2154 cat >conftest.$ac_ext <<_ACEOF
2155 #line $LINENO "configure"
2156 /* confdefs.h. */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2161 #include <sys/types.h>
2162 #include <sys/param.h>
2165 main ()
2167 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2168 bogus endian macros
2169 #endif
2172 return 0;
2174 _ACEOF
2175 rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177 (eval $ac_compile) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 # It does; now see whether it defined to BIG_ENDIAN or not.
2188 cat >conftest.$ac_ext <<_ACEOF
2189 #line $LINENO "configure"
2190 /* confdefs.h. */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2195 #include <sys/types.h>
2196 #include <sys/param.h>
2199 main ()
2201 #if BYTE_ORDER != BIG_ENDIAN
2202 not big endian
2203 #endif
2206 return 0;
2208 _ACEOF
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_c_bigendian=yes
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2226 ac_cv_c_bigendian=no
2228 rm -f conftest.$ac_objext conftest.$ac_ext
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 # It does not; compile a test program.
2234 if test "$cross_compiling" = yes; then
2235 # try to guess the endianness by grepping values into an object file
2236 ac_cv_c_bigendian=unknown
2237 cat >conftest.$ac_ext <<_ACEOF
2238 #line $LINENO "configure"
2239 /* confdefs.h. */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2244 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2245 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2246 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2247 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2248 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2249 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2251 main ()
2253 _ascii (); _ebcdic ();
2255 return 0;
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2271 ac_cv_c_bigendian=yes
2273 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2274 if test "$ac_cv_c_bigendian" = unknown; then
2275 ac_cv_c_bigendian=no
2276 else
2277 # finding both strings is unlikely to happen, but who knows?
2278 ac_cv_c_bigendian=unknown
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2287 else
2288 cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2290 /* confdefs.h. */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2296 main ()
2298 /* Are we little or big endian? From Harbison&Steele. */
2299 union
2301 long l;
2302 char c[sizeof (long)];
2303 } u;
2304 u.l = 1;
2305 exit (u.c[sizeof (long) - 1] == 1);
2307 _ACEOF
2308 rm -f conftest$ac_exeext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2310 (eval $ac_link) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 (eval $ac_try) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; }; then
2319 ac_cv_c_bigendian=no
2320 else
2321 echo "$as_me: program exited with status $ac_status" >&5
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2325 ( exit $ac_status )
2326 ac_cv_c_bigendian=yes
2328 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2331 rm -f conftest.$ac_objext conftest.$ac_ext
2333 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2334 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2335 case $ac_cv_c_bigendian in
2336 yes)
2338 cat >>confdefs.h <<\_ACEOF
2339 #define WORDS_BIGENDIAN 1
2340 _ACEOF
2345 { { echo "$as_me:$LINENO: error: unknown endianness
2346 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2347 echo "$as_me: error: unknown endianness
2348 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2349 { (exit 1); exit 1; }; } ;;
2350 esac
2352 if test ${ac_cv_c_bigendian} = yes ; then
2353 PBYTE_ORDER=PBIG_ENDIAN
2354 else
2355 PBYTE_ORDER=PLITTLE_ENDIAN
2359 cat >>confdefs.h <<_ACEOF
2360 #define PBYTE_ORDER $PBYTE_ORDER
2361 _ACEOF
2364 ac_ext=cc
2365 ac_cpp='$CXXCPP $CPPFLAGS'
2366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2371 echo "$as_me:$LINENO: checking if linker accepts -felide-constructors" >&5
2372 echo $ECHO_N "checking if linker accepts -felide-constructors... $ECHO_C" >&6
2373 cat >conftest.$ac_ext <<_ACEOF
2374 int main(int ac,char **av) { return 0; }
2375 _ACEOF
2376 $CXX $CXXFLAGS -felide-constructors conftest.cc > /dev/null 2>&1
2377 if test $? = 0 ; then
2378 echo "$as_me:$LINENO: result: yes" >&5
2379 echo "${ECHO_T}yes" >&6
2380 STDCXXFLAGS="$STDCXXFLAGS -felide-constructors"
2381 else
2382 echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2386 echo "$as_me:$LINENO: checking if linker accepts -Wreorder" >&5
2387 echo $ECHO_N "checking if linker accepts -Wreorder... $ECHO_C" >&6
2388 cat >conftest.$ac_ext <<_ACEOF
2389 int main(int ac,char **av) { return 0; }
2390 _ACEOF
2391 $STDCXX $CXXFLAGS -Wreorder conftest.cc > /dev/null 2>&1
2392 if test $? = 0 ; then
2393 echo "$as_me:$LINENO: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6
2395 STDCXXFLAGS="$STDCXXFLAGS -Wreorder"
2396 else
2397 echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2401 # AC_MSG_CHECKING(if linker accepts -Woverloaded-virtual)
2402 # AC_LANG_CONFTEST([[int main(int ac,char **av) { return 0; }]])
2403 # $CXX $CFLAGS -Woverloaded-virtual conftest.cc > /dev/null 2>&1
2404 # if test $? = 0 ; then
2405 # AC_MSG_RESULT(yes)
2406 # STDCCFLAGS="$STDCCFLAGS -Woverloaded-virtual"
2407 # else
2408 # AC_MSG_RESULT(no)
2409 # fi
2411 echo "$as_me:$LINENO: checking if compiler uses RTTI by default" >&5
2412 echo $ECHO_N "checking if compiler uses RTTI by default... $ECHO_C" >&6
2413 cat >conftest.$ac_ext <<_ACEOF
2415 #include <typeinfo>
2416 int main(int ac,char **av)
2418 class A
2420 public:
2421 virtual void fred() { }
2423 class B : public A
2425 public:
2426 void fred() { }
2428 B t;
2429 A * p = dynamic_cast<A *>(&t);
2430 return 0;
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2446 DEFAULT_RTTI=1
2447 else
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 DEFAULT_RTTI=0
2453 rm -f conftest.$ac_objext conftest.$ac_ext
2454 if test "$DEFAULT_RTTI" = "1" ; then
2455 echo "$as_me:$LINENO: result: yes" >&5
2456 echo "${ECHO_T}yes" >&6
2457 else
2458 echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2460 STDCXXFLAGS="$STDCCFLAGS -rtti"
2463 GCSECTIONS=0
2466 if test 0 = 1 ; then
2469 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2470 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2471 cat >conftest.$ac_ext <<_ACEOF
2472 int main(int ac,char **av) { return 0; }
2473 _ACEOF
2474 $CXX $CFLAGS -ffunction-sections -c conftest.cc > /dev/null 2>&1
2475 if test $? = 0 ; then
2476 echo "$as_me:$LINENO: result: yes" >&5
2477 echo "${ECHO_T}yes" >&6
2478 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
2479 GCSECTIONS=1
2480 else
2481 echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2487 if test $GCSECTIONS = 1; then
2488 if test "${OSTYPE}" != "Darwin" ; then
2489 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2495 ac_ext=cc
2496 ac_cpp='$CXXCPP $CPPFLAGS'
2497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2503 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
2504 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
2505 if test "${ac_cv_c_long_double+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2515 #include <float.h>
2516 long double foo = 0.0;
2518 main ()
2520 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
2521 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
2522 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
2523 test_array [0] = 0
2526 return 0;
2528 _ACEOF
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 ac_cv_c_long_double=yes
2542 else
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2546 ac_cv_c_long_double=no
2548 rm -f conftest.$ac_objext conftest.$ac_ext
2550 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
2551 echo "${ECHO_T}$ac_cv_c_long_double" >&6
2552 if test $ac_cv_c_long_double = yes; then
2554 cat >>confdefs.h <<\_ACEOF
2555 #define HAVE_LONG_DOUBLE 1
2556 _ACEOF
2560 if test $ac_cv_c_long_double != yes ; then
2562 cat >>confdefs.h <<\_ACEOF
2563 #define PNO_LONG_DOUBLE
2564 _ACEOF
2568 echo "$as_me:$LINENO: checking if readdir_r has 2 parms" >&5
2569 echo $ECHO_N "checking if readdir_r has 2 parms... $ECHO_C" >&6
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 /* confdefs.h. */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2577 #define _POSIX_PTHREAD_SEMANTICS
2578 #include <dirent.h>
2580 main ()
2582 DIR *s; struct dirent * e; readdir_r(s, e);
2584 return 0;
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 P_HAS_POSIX_READDIR_R=2
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 P_HAS_POSIX_READDIR_R=0
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607 if test ${P_HAS_POSIX_READDIR_R} = 2 ; then
2608 echo "$as_me:$LINENO: result: yes" >&5
2609 echo "${ECHO_T}yes" >&6
2610 else
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2613 echo "$as_me:$LINENO: checking if readdir_r has 3 parms" >&5
2614 echo $ECHO_N "checking if readdir_r has 3 parms... $ECHO_C" >&6
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2622 #include <dirent.h>
2624 main ()
2626 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
2628 return 0;
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 P_HAS_POSIX_READDIR_R=3
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 P_HAS_POSIX_READDIR_R=0
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651 if test ${P_HAS_POSIX_READDIR_R} = 3 ; then
2652 echo "$as_me:$LINENO: result: yes" >&5
2653 echo "${ECHO_T}yes" >&6
2654 else
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2659 cat >>confdefs.h <<_ACEOF
2660 #define P_HAS_POSIX_READDIR_R ${P_HAS_POSIX_READDIR_R}
2661 _ACEOF
2665 P_HAS_STL_STREAMS=0
2666 echo "$as_me:$LINENO: checking if using STL streams" >&5
2667 echo $ECHO_N "checking if using STL streams... $ECHO_C" >&6
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2675 #include <iostream>
2677 main ()
2679 int v = (int)std::ios_base::seekdir();
2681 return 0;
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 (eval $ac_compile) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -s conftest.$ac_objext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 P_HAS_STL_STREAMS=1
2697 else
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2702 rm -f conftest.$ac_objext conftest.$ac_ext
2703 if test ${P_HAS_STL_STREAMS} = 1 ; then
2704 echo "$as_me:$LINENO: result: yes" >&5
2705 echo "${ECHO_T}yes" >&6
2706 else
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2710 cat >>confdefs.h <<_ACEOF
2711 #define P_HAS_STL_STREAMS ${P_HAS_STL_STREAMS}
2712 _ACEOF
2716 P_HAS_ATOMIC_INT=0
2717 P_NEEDS_GNU_CXX_NAMESPACE=0
2718 echo "$as_me:$LINENO: checking if atomic integer available" >&5
2719 echo $ECHO_N "checking if atomic integer available... $ECHO_C" >&6
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2727 #include <bits/atomicity.h>
2729 main ()
2731 _Atomic_word val;
2733 return 0;
2735 _ACEOF
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -s conftest.$ac_objext'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; }; then
2748 P_HAS_ATOMIC_INT=1
2749 else
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2754 rm -f conftest.$ac_objext conftest.$ac_ext
2755 if test ${P_HAS_ATOMIC_INT} = 1 ; then
2756 echo "$as_me:$LINENO: result: yes" >&5
2757 echo "${ECHO_T}yes" >&6
2758 echo "$as_me:$LINENO: checking if __exchange_and_add is in __gnu_cxx namespace" >&5
2759 echo $ECHO_N "checking if __exchange_and_add is in __gnu_cxx namespace... $ECHO_C" >&6
2760 cat >conftest.$ac_ext <<_ACEOF
2761 #line $LINENO "configure"
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2767 #include <bits/atomicity.h>
2769 main ()
2771 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
2773 return 0;
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 P_NEEDS_GNU_CXX_NAMESPACE=1
2789 else
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2794 rm -f conftest.$ac_objext conftest.$ac_ext
2795 if test ${P_NEEDS_GNU_CXX_NAMESPACE} = 1 ; then
2796 echo "$as_me:$LINENO: result: yes" >&5
2797 echo "${ECHO_T}yes" >&6
2798 else
2799 echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6
2802 else
2803 echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6
2806 cat >>confdefs.h <<_ACEOF
2807 #define P_HAS_ATOMIC_INT ${P_HAS_ATOMIC_INT}
2808 _ACEOF
2810 cat >>confdefs.h <<_ACEOF
2811 #define P_NEEDS_GNU_CXX_NAMESPACE ${P_NEEDS_GNU_CXX_NAMESPACE}
2812 _ACEOF
2817 if test "${OSTYPE:-unknown}" = "solaris"; then
2818 echo "$as_me:$LINENO: checking checking for FD_SETSIZE" >&5
2819 echo $ECHO_N "checking checking for FD_SETSIZE... $ECHO_C" >&6
2820 _FD_SYSTEM_FILE=/etc/system
2821 _FD_SETSIZE=`cat $_FD_SYSTEM_FILE | grep rlim_fd_max | cut -c1`
2822 if test "$_FD_SETSIZE" = "#"; then
2823 _FD_SETSIZE=4098
2824 else
2825 _FD_SETSIZE=`cat $_FD_SYSTEM_FILE | grep rlim_fd_max | cut -f2 -d'='`
2826 if test "x$_FD_SETSIZE" = "x"; then
2827 _FD_SETSIZE=4098
2828 else
2829 STDCCFLAGS="$STDCCFLAGS -DFD_SETSIZE=$_FD_SETSIZE"
2832 echo "$as_me:$LINENO: result: $_FD_SETSIZE" >&5
2833 echo "${ECHO_T}$_FD_SETSIZE" >&6
2837 if test ${OSTYPE} != Darwin ; then
2838 cat >conftest.$ac_ext <<_ACEOF
2839 #line $LINENO "configure"
2840 /* confdefs.h. */
2841 _ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2845 #include <semaphore.h>
2847 main ()
2849 sem_t *s; sem_init(s, 0, 0);
2851 return 0;
2853 _ACEOF
2854 rm -f conftest.$ac_objext
2855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2856 (eval $ac_compile) 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 (eval $ac_try) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 P_HAS_SEMAPHORES=1
2867 else
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2872 rm -f conftest.$ac_objext conftest.$ac_ext
2873 echo "$as_me:$LINENO: checking if Unix semaphores are available" >&5
2874 echo $ECHO_N "checking if Unix semaphores are available... $ECHO_C" >&6
2875 if test "${P_HAS_SEMAPHORES}x" != "x" ; then
2876 cat >>confdefs.h <<\_ACEOF
2877 #define P_HAS_SEMAPHORES 1
2878 _ACEOF
2880 echo "$as_me:$LINENO: result: yes" >&5
2881 echo "${ECHO_T}yes" >&6
2882 else
2883 echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2885 { echo "$as_me:$LINENO: WARNING: This host does not support semaphores which are essential" >&5
2886 echo "$as_me: WARNING: This host does not support semaphores which are essential" >&2;}
2887 { echo "$as_me:$LINENO: WARNING: to implement 'critical sections'. This feature was added" >&5
2888 echo "$as_me: WARNING: to implement 'critical sections'. This feature was added" >&2;}
2889 { echo "$as_me:$LINENO: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&5
2890 echo "$as_me: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&2;}
2891 { echo "$as_me:$LINENO: WARNING: programs. This feature has been disabled for this host" >&5
2892 echo "$as_me: WARNING: programs. This feature has been disabled for this host" >&2;}
2899 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2900 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2901 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 ac_check_lib_save_LIBS=$LIBS
2905 LIBS="-lpthread $LIBS"
2906 cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2914 /* Override any gcc2 internal prototype to avoid an error. */
2915 #ifdef __cplusplus
2916 extern "C"
2917 #endif
2918 /* We use char because int might match the return type of a gcc2
2919 builtin and then its argument prototype would still apply. */
2920 char pthread_create ();
2922 main ()
2924 pthread_create ();
2926 return 0;
2928 _ACEOF
2929 rm -f conftest.$ac_objext conftest$ac_exeext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931 (eval $ac_link) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -s conftest$ac_exeext'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2941 ac_cv_lib_pthread_pthread_create=yes
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 ac_cv_lib_pthread_pthread_create=no
2948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2949 LIBS=$ac_check_lib_save_LIBS
2951 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2952 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2953 if test $ac_cv_lib_pthread_pthread_create = yes; then
2954 HAS_PTHREADS=yes
2955 else
2956 HAS_PTHREADS=no
2959 if test ${HAS_PTHREADS} = yes ; then
2960 ENDLDLIBS="$ENDLDLIBS -lpthread"
2961 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
2962 else
2963 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2964 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2965 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968 ac_check_lib_save_LIBS=$LIBS
2969 LIBS="-lc_r $LIBS"
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2978 /* Override any gcc2 internal prototype to avoid an error. */
2979 #ifdef __cplusplus
2980 extern "C"
2981 #endif
2982 /* We use char because int might match the return type of a gcc2
2983 builtin and then its argument prototype would still apply. */
2984 char pthread_create ();
2986 main ()
2988 pthread_create ();
2990 return 0;
2992 _ACEOF
2993 rm -f conftest.$ac_objext conftest$ac_exeext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2995 (eval $ac_link) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } &&
2999 { ac_try='test -s conftest$ac_exeext'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 (eval $ac_try) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3005 ac_cv_lib_c_r_pthread_create=yes
3006 else
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 ac_cv_lib_c_r_pthread_create=no
3012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3013 LIBS=$ac_check_lib_save_LIBS
3015 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
3016 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
3017 if test $ac_cv_lib_c_r_pthread_create = yes; then
3018 HAS_PTHREADS=yes
3019 else
3020 HAS_PTHREADS=no
3023 if test ${HAS_PTHREADS} = yes ; then
3024 ENDLDLIBS="$ENDLDLIBS -pthread"
3025 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
3030 if test ${HAS_PTHREADS} != yes ; then
3031 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
3032 echo "$as_me: error: must have pthreads!" >&2;}
3033 { (exit 1); exit 1; }; }
3037 if test ${HAS_PTHREADS} = yes ; then
3038 echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
3039 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6
3040 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043 ac_check_lib_save_LIBS=$LIBS
3044 LIBS="-lpthread $LIBS"
3045 cat >conftest.$ac_ext <<_ACEOF
3046 #line $LINENO "configure"
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3053 /* Override any gcc2 internal prototype to avoid an error. */
3054 #ifdef __cplusplus
3055 extern "C"
3056 #endif
3057 /* We use char because int might match the return type of a gcc2
3058 builtin and then its argument prototype would still apply. */
3059 char pthread_mutex_timedlock ();
3061 main ()
3063 pthread_mutex_timedlock ();
3065 return 0;
3067 _ACEOF
3068 rm -f conftest.$ac_objext conftest$ac_exeext
3069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3070 (eval $ac_link) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -s conftest$ac_exeext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 (eval $ac_try) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_lib_pthread_pthread_mutex_timedlock=yes
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 ac_cv_lib_pthread_pthread_mutex_timedlock=no
3087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3088 LIBS=$ac_check_lib_save_LIBS
3090 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
3091 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6
3092 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
3093 HAS_PTHREADS_XPG6=yes
3094 else
3095 HAS_PTHREADS_XPG6=no
3098 if test ${HAS_PTHREADS_XPG6} = yes ; then
3100 cat >>confdefs.h <<\_ACEOF
3101 #define P_PTHREADS_XPG6 1
3102 _ACEOF
3106 echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
3107 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6
3108 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 ac_check_lib_save_LIBS=$LIBS
3112 LIBS="-lpthread $LIBS"
3113 cat >conftest.$ac_ext <<_ACEOF
3114 #line $LINENO "configure"
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3121 /* Override any gcc2 internal prototype to avoid an error. */
3122 #ifdef __cplusplus
3123 extern "C"
3124 #endif
3125 /* We use char because int might match the return type of a gcc2
3126 builtin and then its argument prototype would still apply. */
3127 char sem_timedwait ();
3129 main ()
3131 sem_timedwait ();
3133 return 0;
3135 _ACEOF
3136 rm -f conftest.$ac_objext conftest$ac_exeext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -s conftest$ac_exeext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 (eval $ac_try) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_lib_pthread_sem_timedwait=yes
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 ac_cv_lib_pthread_sem_timedwait=no
3155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3156 LIBS=$ac_check_lib_save_LIBS
3158 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
3159 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6
3160 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
3161 HAS_SEMAPHORES_XPG6=yes
3162 else
3163 HAS_SEMAPHORES_XPG6=no
3166 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3167 echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
3168 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6
3169 cat >conftest.$ac_ext <<_ACEOF
3170 #line $LINENO "configure"
3171 /* confdefs.h. */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3176 #include <semaphore.h>
3178 main ()
3180 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
3182 return 0;
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 HAS_SEMAPHORES_XPG6=yes
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 HAS_SEMAPHORES_XPG6=no
3204 rm -f conftest.$ac_objext conftest.$ac_ext
3205 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3207 cat >>confdefs.h <<\_ACEOF
3208 #define P_HAS_SEMAPHORES_XPG6 1
3209 _ACEOF
3211 echo "$as_me:$LINENO: result: yes" >&5
3212 echo "${ECHO_T}yes" >&6
3213 else
3214 echo "$as_me:$LINENO: result: no" >&5
3215 echo "${ECHO_T}no" >&6
3220 P_HAS_RECURSIVE_MUTEX=0
3221 echo "$as_me:$LINENO: checking if recursive mutexes are available" >&5
3222 echo $ECHO_N "checking if recursive mutexes are available... $ECHO_C" >&6
3223 cat >conftest.$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 #include <pthread.h>
3232 main ()
3234 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
3236 return 0;
3238 _ACEOF
3239 rm -f conftest.$ac_objext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 P_HAS_RECURSIVE_MUTEX=1
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3257 rm -f conftest.$ac_objext conftest.$ac_ext
3258 if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260 echo "${ECHO_T}yes" >&6
3261 else
3262 echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6
3265 cat >>confdefs.h <<_ACEOF
3266 #define P_HAS_RECURSIVE_MUTEX ${P_HAS_RECURSIVE_MUTEX}
3267 _ACEOF
3272 ac_ext=cc
3273 ac_cpp='$CXXCPP $CPPFLAGS'
3274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3277 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3278 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3279 if test -z "$CXXCPP"; then
3280 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 # Double quotes because CXXCPP needs to be expanded
3284 for CXXCPP in "$CXX -E" "/lib/cpp"
3286 ac_preproc_ok=false
3287 for ac_cxx_preproc_warn_flag in '' yes
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat >conftest.$ac_ext <<_ACEOF
3296 #line $LINENO "configure"
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 #ifdef __STDC__
3303 # include <limits.h>
3304 #else
3305 # include <assert.h>
3306 #endif
3307 Syntax error
3308 _ACEOF
3309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3311 ac_status=$?
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } >/dev/null; then
3317 if test -s conftest.err; then
3318 ac_cpp_err=$ac_cxx_preproc_warn_flag
3319 else
3320 ac_cpp_err=
3322 else
3323 ac_cpp_err=yes
3325 if test -z "$ac_cpp_err"; then
3327 else
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Broken: fails on valid input.
3332 continue
3334 rm -f conftest.err conftest.$ac_ext
3336 # OK, works on sane cases. Now check whether non-existent headers
3337 # can be detected and how.
3338 cat >conftest.$ac_ext <<_ACEOF
3339 #line $LINENO "configure"
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 #include <ac_nonexistent.h>
3346 _ACEOF
3347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3349 ac_status=$?
3350 grep -v '^ *+' conftest.er1 >conftest.err
3351 rm -f conftest.er1
3352 cat conftest.err >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } >/dev/null; then
3355 if test -s conftest.err; then
3356 ac_cpp_err=$ac_cxx_preproc_warn_flag
3357 else
3358 ac_cpp_err=
3360 else
3361 ac_cpp_err=yes
3363 if test -z "$ac_cpp_err"; then
3364 # Broken: success on invalid input.
3365 continue
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 # Passes both tests.
3371 ac_preproc_ok=:
3372 break
3374 rm -f conftest.err conftest.$ac_ext
3376 done
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3380 break
3383 done
3384 ac_cv_prog_CXXCPP=$CXXCPP
3387 CXXCPP=$ac_cv_prog_CXXCPP
3388 else
3389 ac_cv_prog_CXXCPP=$CXXCPP
3391 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3392 echo "${ECHO_T}$CXXCPP" >&6
3393 ac_preproc_ok=false
3394 for ac_cxx_preproc_warn_flag in '' yes
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #ifdef __STDC__
3410 # include <limits.h>
3411 #else
3412 # include <assert.h>
3413 #endif
3414 Syntax error
3415 _ACEOF
3416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_cxx_preproc_warn_flag
3426 else
3427 ac_cpp_err=
3429 else
3430 ac_cpp_err=yes
3432 if test -z "$ac_cpp_err"; then
3434 else
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Broken: fails on valid input.
3439 continue
3441 rm -f conftest.err conftest.$ac_ext
3443 # OK, works on sane cases. Now check whether non-existent headers
3444 # can be detected and how.
3445 cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } >/dev/null; then
3462 if test -s conftest.err; then
3463 ac_cpp_err=$ac_cxx_preproc_warn_flag
3464 else
3465 ac_cpp_err=
3467 else
3468 ac_cpp_err=yes
3470 if test -z "$ac_cpp_err"; then
3471 # Broken: success on invalid input.
3472 continue
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 # Passes both tests.
3478 ac_preproc_ok=:
3479 break
3481 rm -f conftest.err conftest.$ac_ext
3483 done
3484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3485 rm -f conftest.err conftest.$ac_ext
3486 if $ac_preproc_ok; then
3488 else
3489 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3490 See \`config.log' for more details." >&5
3491 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3492 See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }
3496 ac_ext=cc
3497 ac_cpp='$CXXCPP $CPPFLAGS'
3498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3503 echo "$as_me:$LINENO: checking for egrep" >&5
3504 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3505 if test "${ac_cv_prog_egrep+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3509 then ac_cv_prog_egrep='grep -E'
3510 else ac_cv_prog_egrep='egrep'
3513 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3514 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3515 EGREP=$ac_cv_prog_egrep
3518 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3519 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3520 if test "${ac_cv_header_stdc+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523 cat >conftest.$ac_ext <<_ACEOF
3524 #line $LINENO "configure"
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <stdlib.h>
3531 #include <stdarg.h>
3532 #include <string.h>
3533 #include <float.h>
3536 main ()
3540 return 0;
3542 _ACEOF
3543 rm -f conftest.$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_cv_header_stdc=yes
3556 else
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 ac_cv_header_stdc=no
3562 rm -f conftest.$ac_objext conftest.$ac_ext
3564 if test $ac_cv_header_stdc = yes; then
3565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 #include <string.h>
3575 _ACEOF
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 $EGREP "memchr" >/dev/null 2>&1; then
3579 else
3580 ac_cv_header_stdc=no
3582 rm -f conftest*
3586 if test $ac_cv_header_stdc = yes; then
3587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3588 cat >conftest.$ac_ext <<_ACEOF
3589 #line $LINENO "configure"
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include <stdlib.h>
3597 _ACEOF
3598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3599 $EGREP "free" >/dev/null 2>&1; then
3601 else
3602 ac_cv_header_stdc=no
3604 rm -f conftest*
3608 if test $ac_cv_header_stdc = yes; then
3609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3610 if test "$cross_compiling" = yes; then
3612 else
3613 cat >conftest.$ac_ext <<_ACEOF
3614 #line $LINENO "configure"
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 #include <ctype.h>
3621 #if ((' ' & 0x0FF) == 0x020)
3622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3624 #else
3625 # define ISLOWER(c) \
3626 (('a' <= (c) && (c) <= 'i') \
3627 || ('j' <= (c) && (c) <= 'r') \
3628 || ('s' <= (c) && (c) <= 'z'))
3629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3630 #endif
3632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3634 main ()
3636 int i;
3637 for (i = 0; i < 256; i++)
3638 if (XOR (islower (i), ISLOWER (i))
3639 || toupper (i) != TOUPPER (i))
3640 exit(2);
3641 exit (0);
3643 _ACEOF
3644 rm -f conftest$ac_exeext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3646 (eval $ac_link) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 (eval $ac_try) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3656 else
3657 echo "$as_me: program exited with status $ac_status" >&5
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 ( exit $ac_status )
3662 ac_cv_header_stdc=no
3664 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3668 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3669 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3670 if test $ac_cv_header_stdc = yes; then
3672 cat >>confdefs.h <<\_ACEOF
3673 #define STDC_HEADERS 1
3674 _ACEOF
3678 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3688 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3689 inttypes.h stdint.h unistd.h
3691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3692 echo "$as_me:$LINENO: checking for $ac_header" >&5
3693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 cat >conftest.$ac_ext <<_ACEOF
3698 #line $LINENO "configure"
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 $ac_includes_default
3706 #include <$ac_header>
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 eval "$as_ac_Header=yes"
3721 else
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 eval "$as_ac_Header=no"
3727 rm -f conftest.$ac_objext conftest.$ac_ext
3729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3732 cat >>confdefs.h <<_ACEOF
3733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3734 _ACEOF
3738 done
3742 for ac_header in regex.h
3744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3753 else
3754 # Is the header compilable?
3755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3757 cat >conftest.$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3765 #include <$ac_header>
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 (eval $ac_try) 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 ac_header_compiler=yes
3780 else
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3784 ac_header_compiler=no
3786 rm -f conftest.$ac_objext conftest.$ac_ext
3787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3788 echo "${ECHO_T}$ac_header_compiler" >&6
3790 # Is the header present?
3791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3793 cat >conftest.$ac_ext <<_ACEOF
3794 #line $LINENO "configure"
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 #include <$ac_header>
3801 _ACEOF
3802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } >/dev/null; then
3810 if test -s conftest.err; then
3811 ac_cpp_err=$ac_cxx_preproc_warn_flag
3812 else
3813 ac_cpp_err=
3815 else
3816 ac_cpp_err=yes
3818 if test -z "$ac_cpp_err"; then
3819 ac_header_preproc=yes
3820 else
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 ac_header_preproc=no
3826 rm -f conftest.err conftest.$ac_ext
3827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3828 echo "${ECHO_T}$ac_header_preproc" >&6
3830 # So? What about this header?
3831 case $ac_header_compiler:$ac_header_preproc in
3832 yes:no )
3833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3838 cat <<\_ASBOX
3839 ## ------------------------------------ ##
3840 ## Report this to bug-autoconf@gnu.org. ##
3841 ## ------------------------------------ ##
3842 _ASBOX
3844 sed "s/^/$as_me: WARNING: /" >&2
3846 no:yes )
3847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3854 cat <<\_ASBOX
3855 ## ------------------------------------ ##
3856 ## Report this to bug-autoconf@gnu.org. ##
3857 ## ------------------------------------ ##
3858 _ASBOX
3860 sed "s/^/$as_me: WARNING: /" >&2
3862 esac
3863 echo "$as_me:$LINENO: checking for $ac_header" >&5
3864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 eval "$as_ac_Header=$ac_header_preproc"
3870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3875 cat >>confdefs.h <<_ACEOF
3876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3877 _ACEOF
3878 HAS_REGEX=yes
3881 done
3884 # Check whether --enable-internalregex or --disable-internalregex was given.
3885 if test "${enable_internalregex+set}" = set; then
3886 enableval="$enable_internalregex"
3887 internalregex=$enableval
3889 if test "$internalregex" = "yes" ; then
3890 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3891 echo "$as_me: Forcing use of internal regex library" >&6;}
3892 else
3893 if test "$HAS_REGEX" = "yes" ; then
3894 echo "$as_me:$LINENO: checking for regcomp" >&5
3895 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3896 if test "${ac_cv_func_regcomp+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 cat >conftest.$ac_ext <<_ACEOF
3900 #line $LINENO "configure"
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 /* System header to define __stub macros and hopefully few prototypes,
3907 which can conflict with char regcomp (); below.
3908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909 <limits.h> exists even on freestanding compilers. */
3910 #ifdef __STDC__
3911 # include <limits.h>
3912 #else
3913 # include <assert.h>
3914 #endif
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 #ifdef __cplusplus
3917 extern "C"
3919 #endif
3920 /* We use char because int might match the return type of a gcc2
3921 builtin and then its argument prototype would still apply. */
3922 char regcomp ();
3923 /* The GNU C library defines this for functions which it implements
3924 to always fail with ENOSYS. Some functions are actually named
3925 something starting with __ and the normal name is an alias. */
3926 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3927 choke me
3928 #else
3929 char (*f) () = regcomp;
3930 #endif
3931 #ifdef __cplusplus
3933 #endif
3936 main ()
3938 return f != regcomp;
3940 return 0;
3942 _ACEOF
3943 rm -f conftest.$ac_objext conftest$ac_exeext
3944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3945 (eval $ac_link) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try='test -s conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_func_regcomp=yes
3956 else
3957 echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 ac_cv_func_regcomp=no
3962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3964 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3965 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3966 if test $ac_cv_func_regcomp = yes; then
3967 HAS_REGEX=yes
3970 if test "$HAS_REGEX" = "yes" ; then
3971 HAS_REGEX=1
3974 cat >>confdefs.h <<\_ACEOF
3975 #define P_REGEX 1
3976 _ACEOF
3985 LIBS=""
3986 HAS_LIBDL=no
3987 P_DYNALINK=0
3988 if test ${OSTYPE} = beos ; then
3989 P_DYNALINK=1
3991 cat >>confdefs.h <<\_ACEOF
3992 #define P_DYNALINK 1
3993 _ACEOF
3995 elif test ${OSTYPE} = Darwin ; then
3996 P_DYNALINK=1
3998 cat >>confdefs.h <<\_ACEOF
3999 #define P_DYNALINK 1
4000 _ACEOF
4002 else
4004 for ac_header in dlfcn.h
4006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4008 echo "$as_me:$LINENO: checking for $ac_header" >&5
4009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4015 else
4016 # Is the header compilable?
4017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4019 cat >conftest.$ac_ext <<_ACEOF
4020 #line $LINENO "configure"
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 $ac_includes_default
4027 #include <$ac_header>
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_header_compiler=yes
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 ac_header_compiler=no
4048 rm -f conftest.$ac_objext conftest.$ac_ext
4049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4050 echo "${ECHO_T}$ac_header_compiler" >&6
4052 # Is the header present?
4053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4055 cat >conftest.$ac_ext <<_ACEOF
4056 #line $LINENO "configure"
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 #include <$ac_header>
4063 _ACEOF
4064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } >/dev/null; then
4072 if test -s conftest.err; then
4073 ac_cpp_err=$ac_cxx_preproc_warn_flag
4074 else
4075 ac_cpp_err=
4077 else
4078 ac_cpp_err=yes
4080 if test -z "$ac_cpp_err"; then
4081 ac_header_preproc=yes
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ac_header_preproc=no
4088 rm -f conftest.err conftest.$ac_ext
4089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4090 echo "${ECHO_T}$ac_header_preproc" >&6
4092 # So? What about this header?
4093 case $ac_header_compiler:$ac_header_preproc in
4094 yes:no )
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4100 cat <<\_ASBOX
4101 ## ------------------------------------ ##
4102 ## Report this to bug-autoconf@gnu.org. ##
4103 ## ------------------------------------ ##
4104 _ASBOX
4106 sed "s/^/$as_me: WARNING: /" >&2
4108 no:yes )
4109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4116 cat <<\_ASBOX
4117 ## ------------------------------------ ##
4118 ## Report this to bug-autoconf@gnu.org. ##
4119 ## ------------------------------------ ##
4120 _ASBOX
4122 sed "s/^/$as_me: WARNING: /" >&2
4124 esac
4125 echo "$as_me:$LINENO: checking for $ac_header" >&5
4126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 eval "$as_ac_Header=$ac_header_preproc"
4132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4137 cat >>confdefs.h <<_ACEOF
4138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4139 _ACEOF
4140 HAS_DLFCN=yes
4141 else
4142 HAS_DLFCN=no
4145 done
4147 if test "$HAS_DLFCN" = yes ; then
4148 echo "$as_me:$LINENO: checking if dlopen is available" >&5
4149 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
4150 cat >conftest.$ac_ext <<_ACEOF
4151 #line $LINENO "configure"
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <dlfcn.h>
4159 main ()
4161 void * p = dlopen("lib", 0);
4163 return 0;
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4168 (eval $ac_compile) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 HAS_DLOPEN=yes
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 HAS_DLOPEN=no
4185 rm -f conftest.$ac_objext conftest.$ac_ext
4186 if test "$HAS_DLOPEN" = no ; then
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4189 else
4190 echo "$as_me:$LINENO: result: yes" >&5
4191 echo "${ECHO_T}yes" >&6
4192 P_DYNALINK=1
4194 cat >>confdefs.h <<\_ACEOF
4195 #define P_DYNALINK 1
4196 _ACEOF
4198 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4199 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4200 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 ac_check_lib_save_LIBS=$LIBS
4204 LIBS="-ldl $LIBS"
4205 cat >conftest.$ac_ext <<_ACEOF
4206 #line $LINENO "configure"
4207 /* confdefs.h. */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4213 /* Override any gcc2 internal prototype to avoid an error. */
4214 #ifdef __cplusplus
4215 extern "C"
4216 #endif
4217 /* We use char because int might match the return type of a gcc2
4218 builtin and then its argument prototype would still apply. */
4219 char dlopen ();
4221 main ()
4223 dlopen ();
4225 return 0;
4227 _ACEOF
4228 rm -f conftest.$ac_objext conftest$ac_exeext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4230 (eval $ac_link) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -s conftest$ac_exeext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_cv_lib_dl_dlopen=yes
4241 else
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_cv_lib_dl_dlopen=no
4247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4248 LIBS=$ac_check_lib_save_LIBS
4250 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4251 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4252 if test $ac_cv_lib_dl_dlopen = yes; then
4253 HAS_LIBDL=yes
4254 else
4255 HAS_LIBDL=no
4262 plugins="no"
4263 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
4264 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
4265 # Check whether --enable-plugins or --disable-plugins was given.
4266 if test "${enable_plugins+set}" = set; then
4267 enableval="$enable_plugins"
4268 plugins=$enableval
4271 HAS_PLUGINS=0
4272 if test "${plugins}" = "no" ; then
4273 echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4275 elif test "${P_DYNALINK:-unset}" = "unset" ; then
4276 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
4277 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
4278 else
4279 echo "$as_me:$LINENO: result: plugins enabled" >&5
4280 echo "${ECHO_T}plugins enabled" >&6
4281 HAS_PLUGINS=1
4283 cat >>confdefs.h <<\_ACEOF
4284 #define P_HAS_PLUGINS 1
4285 _ACEOF
4291 if test "x$LIB64" != "x" ; then
4293 cat >>confdefs.h <<_ACEOF
4294 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
4295 _ACEOF
4297 else
4299 cat >>confdefs.h <<_ACEOF
4300 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
4301 _ACEOF
4307 # Check whether --enable-resolver or --disable-resolver was given.
4308 if test "${enable_resolver+set}" = set; then
4309 enableval="$enable_resolver"
4310 resolver=$enableval
4313 if test "$resolver" = "no" ; then
4314 cat >>confdefs.h <<\_ACEOF
4315 #define P_DNS 0
4316 _ACEOF
4318 else
4319 echo "$as_me:$LINENO: checking for res_search" >&5
4320 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4321 if test "${ac_cv_func_res_search+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324 cat >conftest.$ac_ext <<_ACEOF
4325 #line $LINENO "configure"
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 /* System header to define __stub macros and hopefully few prototypes,
4332 which can conflict with char res_search (); below.
4333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4334 <limits.h> exists even on freestanding compilers. */
4335 #ifdef __STDC__
4336 # include <limits.h>
4337 #else
4338 # include <assert.h>
4339 #endif
4340 /* Override any gcc2 internal prototype to avoid an error. */
4341 #ifdef __cplusplus
4342 extern "C"
4344 #endif
4345 /* We use char because int might match the return type of a gcc2
4346 builtin and then its argument prototype would still apply. */
4347 char res_search ();
4348 /* The GNU C library defines this for functions which it implements
4349 to always fail with ENOSYS. Some functions are actually named
4350 something starting with __ and the normal name is an alias. */
4351 #if defined (__stub_res_search) || defined (__stub___res_search)
4352 choke me
4353 #else
4354 char (*f) () = res_search;
4355 #endif
4356 #ifdef __cplusplus
4358 #endif
4361 main ()
4363 return f != res_search;
4365 return 0;
4367 _ACEOF
4368 rm -f conftest.$ac_objext conftest$ac_exeext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4370 (eval $ac_link) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try='test -s conftest$ac_exeext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_func_res_search=yes
4381 else
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 ac_cv_func_res_search=no
4387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4389 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4390 echo "${ECHO_T}$ac_cv_func_res_search" >&6
4391 if test $ac_cv_func_res_search = yes; then
4392 HAVE_RESOLVER=1
4395 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4396 RESOLVER_LIBS=""
4397 else
4398 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
4399 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
4400 LIBS="-lresolv"
4401 cat >conftest.$ac_ext <<_ACEOF
4403 #include <netinet/in.h>
4404 #include <resolv.h>
4405 int main(int argc,char **argv){
4406 res_search (NULL, 0, 0, NULL, 0);
4408 _ACEOF
4409 rm -f conftest.$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -s conftest.$ac_objext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 HAVE_RESOLVER=1
4422 else
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4427 rm -f conftest.$ac_objext conftest.$ac_ext
4428 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4429 echo "$as_me:$LINENO: result: yes" >&5
4430 echo "${ECHO_T}yes" >&6
4431 RESOLVER_LIBS="-lresolv"
4432 else
4433 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
4434 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
4435 if test "${ac_cv_search___res_search+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 ac_func_search_save_LIBS=$LIBS
4439 ac_cv_search___res_search=no
4440 cat >conftest.$ac_ext <<_ACEOF
4441 #line $LINENO "configure"
4442 /* confdefs.h. */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4448 /* Override any gcc2 internal prototype to avoid an error. */
4449 #ifdef __cplusplus
4450 extern "C"
4451 #endif
4452 /* We use char because int might match the return type of a gcc2
4453 builtin and then its argument prototype would still apply. */
4454 char __res_search ();
4456 main ()
4458 __res_search ();
4460 return 0;
4462 _ACEOF
4463 rm -f conftest.$ac_objext conftest$ac_exeext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -s conftest$ac_exeext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_cv_search___res_search="none required"
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4482 if test "$ac_cv_search___res_search" = no; then
4483 for ac_lib in resolv; do
4484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4485 cat >conftest.$ac_ext <<_ACEOF
4486 #line $LINENO "configure"
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4493 /* Override any gcc2 internal prototype to avoid an error. */
4494 #ifdef __cplusplus
4495 extern "C"
4496 #endif
4497 /* We use char because int might match the return type of a gcc2
4498 builtin and then its argument prototype would still apply. */
4499 char __res_search ();
4501 main ()
4503 __res_search ();
4505 return 0;
4507 _ACEOF
4508 rm -f conftest.$ac_objext conftest$ac_exeext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4510 (eval $ac_link) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -s conftest$ac_exeext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 ac_cv_search___res_search="-l$ac_lib"
4521 break
4522 else
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4528 done
4530 LIBS=$ac_func_search_save_LIBS
4532 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4533 echo "${ECHO_T}$ac_cv_search___res_search" >&6
4534 if test "$ac_cv_search___res_search" != no; then
4535 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
4536 HAVE_RESOLVER=1
4542 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4544 cat >>confdefs.h <<\_ACEOF
4545 #define P_DNS 1
4546 _ACEOF
4553 # Check whether --enable-sasl or --disable-sasl was given.
4554 if test "${enable_sasl+set}" = set; then
4555 enableval="$enable_sasl"
4556 sasl=$enableval
4559 if test "$sasl" = "no" ; then
4560 { echo "$as_me:$LINENO: SASL disabled" >&5
4561 echo "$as_me: SASL disabled" >&6;}
4562 else
4564 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4565 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4566 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 ac_check_lib_save_LIBS=$LIBS
4570 LIBS="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4579 /* Override any gcc2 internal prototype to avoid an error. */
4580 #ifdef __cplusplus
4581 extern "C"
4582 #endif
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4585 char sasl_version ();
4587 main ()
4589 sasl_version ();
4591 return 0;
4593 _ACEOF
4594 rm -f conftest.$ac_objext conftest$ac_exeext
4595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4596 (eval $ac_link) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -s conftest$ac_exeext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_lib_sasl2_sasl_version=yes
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 ac_cv_lib_sasl2_sasl_version=no
4613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4614 LIBS=$ac_check_lib_save_LIBS
4616 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4617 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4618 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4619 HAS_SASL2=1
4620 else
4621 HAS_SASL2=
4624 if test "${HAS_SASL2}x" = "x" ; then
4625 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4626 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4627 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 ac_check_lib_save_LIBS=$LIBS
4631 LIBS="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4632 cat >conftest.$ac_ext <<_ACEOF
4633 #line $LINENO "configure"
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4640 /* Override any gcc2 internal prototype to avoid an error. */
4641 #ifdef __cplusplus
4642 extern "C"
4643 #endif
4644 /* We use char because int might match the return type of a gcc2
4645 builtin and then its argument prototype would still apply. */
4646 char sasl_client_auth ();
4648 main ()
4650 sasl_client_auth ();
4652 return 0;
4654 _ACEOF
4655 rm -f conftest.$ac_objext conftest$ac_exeext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4657 (eval $ac_link) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -s conftest$ac_exeext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 ac_cv_lib_sasl_sasl_client_auth=yes
4668 else
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 ac_cv_lib_sasl_sasl_client_auth=no
4674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4675 LIBS=$ac_check_lib_save_LIBS
4677 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4678 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4679 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4680 HAS_SASL=1
4681 else
4682 HAS_SASL=
4687 echo "$as_me:$LINENO: checking if <sasl.h> works" >&5
4688 echo $ECHO_N "checking if <sasl.h> works... $ECHO_C" >&6
4689 cat >conftest.$ac_ext <<_ACEOF
4690 #include <sasl.h>
4691 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 HAS_INCLUDE_SASL_H=1
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4711 rm -f conftest.$ac_objext conftest.$ac_ext
4712 if test "${HAS_INCLUDE_SASL_H}x" != "x" ; then
4713 echo "$as_me:$LINENO: result: yes" >&5
4714 echo "${ECHO_T}yes" >&6
4715 SASL_INCLUDED=1
4716 else
4717 echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6
4719 echo "$as_me:$LINENO: checking if <sasl/sasl.h> works" >&5
4720 echo $ECHO_N "checking if <sasl/sasl.h> works... $ECHO_C" >&6
4721 cat >conftest.$ac_ext <<_ACEOF
4722 #include <sasl/sasl.h>
4723 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
4724 _ACEOF
4725 rm -f conftest.$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727 (eval $ac_compile) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -s conftest.$ac_objext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 P_HAS_SASL_SASL_H=1
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4743 rm -f conftest.$ac_objext conftest.$ac_ext
4744 if test "${P_HAS_SASL_SASL_H}x" != "x" ; then
4745 echo "$as_me:$LINENO: result: yes" >&5
4746 echo "${ECHO_T}yes" >&6
4747 SASL_INCLUDED=1
4748 cat >>confdefs.h <<\_ACEOF
4749 #define P_HAS_SASL_SASL_H 1
4750 _ACEOF
4752 else
4753 echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6
4758 if test "${HAS_SASL2}x" != "x" ; then
4759 HAS_SASL2=1
4760 ENDLDLIBS="$ENDLDLIBS -lsasl2"
4761 cat >>confdefs.h <<\_ACEOF
4762 #define P_SASL2 1
4763 _ACEOF
4765 HAS_SASL2=1
4767 elif test "${HAS_SASL}x" != "x" ; then
4768 HAS_SASL=1
4769 ENDLDLIBS="$ENDLDLIBS -lsasl"
4770 cat >>confdefs.h <<\_ACEOF
4771 #define P_SASL 1
4772 _ACEOF
4774 HAS_SASL=1
4776 else
4777 HAS_SASL=0
4783 # Check whether --enable-openldap or --disable-openldap was given.
4784 if test "${enable_openldap+set}" = set; then
4785 enableval="$enable_openldap"
4786 openldap=$enableval
4789 if test "$openldap" = "no" ; then
4790 HAS_OPENLDAP=0
4792 cat >>confdefs.h <<\_ACEOF
4793 #define P_LDAP 0
4794 _ACEOF
4796 else
4797 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4799 for ac_header in ldap.h
4801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4803 echo "$as_me:$LINENO: checking for $ac_header" >&5
4804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4810 else
4811 # Is the header compilable?
4812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4814 cat >conftest.$ac_ext <<_ACEOF
4815 #line $LINENO "configure"
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 $ac_includes_default
4822 #include <$ac_header>
4823 _ACEOF
4824 rm -f conftest.$ac_objext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826 (eval $ac_compile) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } &&
4830 { ac_try='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 ac_header_compiler=yes
4837 else
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4841 ac_header_compiler=no
4843 rm -f conftest.$ac_objext conftest.$ac_ext
4844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4845 echo "${ECHO_T}$ac_header_compiler" >&6
4847 # Is the header present?
4848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4850 cat >conftest.$ac_ext <<_ACEOF
4851 #line $LINENO "configure"
4852 /* confdefs.h. */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 #include <$ac_header>
4858 _ACEOF
4859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } >/dev/null; then
4867 if test -s conftest.err; then
4868 ac_cpp_err=$ac_cxx_preproc_warn_flag
4869 else
4870 ac_cpp_err=
4872 else
4873 ac_cpp_err=yes
4875 if test -z "$ac_cpp_err"; then
4876 ac_header_preproc=yes
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_header_preproc=no
4883 rm -f conftest.err conftest.$ac_ext
4884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4885 echo "${ECHO_T}$ac_header_preproc" >&6
4887 # So? What about this header?
4888 case $ac_header_compiler:$ac_header_preproc in
4889 yes:no )
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895 cat <<\_ASBOX
4896 ## ------------------------------------ ##
4897 ## Report this to bug-autoconf@gnu.org. ##
4898 ## ------------------------------------ ##
4899 _ASBOX
4901 sed "s/^/$as_me: WARNING: /" >&2
4903 no:yes )
4904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4911 cat <<\_ASBOX
4912 ## ------------------------------------ ##
4913 ## Report this to bug-autoconf@gnu.org. ##
4914 ## ------------------------------------ ##
4915 _ASBOX
4917 sed "s/^/$as_me: WARNING: /" >&2
4919 esac
4920 echo "$as_me:$LINENO: checking for $ac_header" >&5
4921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 eval "$as_ac_Header=$ac_header_preproc"
4927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4932 cat >>confdefs.h <<_ACEOF
4933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4934 _ACEOF
4935 HAS_OPENLDAP=1
4938 done
4941 if test "${OSTYPE:-unknown}" = "solaris"; then
4942 OPENLDAPSYSLIBS=-lposix4
4945 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4946 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4947 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4948 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 ac_check_lib_save_LIBS=$LIBS
4952 LIBS="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4953 cat >conftest.$ac_ext <<_ACEOF
4954 #line $LINENO "configure"
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4961 /* Override any gcc2 internal prototype to avoid an error. */
4962 #ifdef __cplusplus
4963 extern "C"
4964 #endif
4965 /* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */
4967 char ldap_open ();
4969 main ()
4971 ldap_open ();
4973 return 0;
4975 _ACEOF
4976 rm -f conftest.$ac_objext conftest$ac_exeext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4978 (eval $ac_link) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -s conftest$ac_exeext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_lib_ldap_ldap_open=yes
4989 else
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 ac_cv_lib_ldap_ldap_open=no
4995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4996 LIBS=$ac_check_lib_save_LIBS
4998 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4999 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
5000 if test $ac_cv_lib_ldap_ldap_open = yes; then
5001 HAS_OPENLDAP=1
5002 else
5003 HAS_OPENLDAP=
5006 else
5007 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
5008 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
5009 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 test "$cross_compiling" = yes &&
5013 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5014 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5015 { (exit 1); exit 1; }; }
5016 if test -r "/usr/local/include/ldap.h"; then
5017 ac_cv_file__usr_local_include_ldap_h=yes
5018 else
5019 ac_cv_file__usr_local_include_ldap_h=no
5022 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
5023 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
5024 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
5025 HAS_OPENLDAP=1
5028 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
5029 OPENLDAPINCLUDEDIR=/usr/local/include
5030 OPENLDAPLIBDIR=/usr/local/lib
5031 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
5032 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
5033 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 ac_check_lib_save_LIBS=$LIBS
5037 LIBS="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
5038 cat >conftest.$ac_ext <<_ACEOF
5039 #line $LINENO "configure"
5040 /* confdefs.h. */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5046 /* Override any gcc2 internal prototype to avoid an error. */
5047 #ifdef __cplusplus
5048 extern "C"
5049 #endif
5050 /* We use char because int might match the return type of a gcc2
5051 builtin and then its argument prototype would still apply. */
5052 char ldap_open ();
5054 main ()
5056 ldap_open ();
5058 return 0;
5060 _ACEOF
5061 rm -f conftest.$ac_objext conftest$ac_exeext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5063 (eval $ac_link) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -s conftest$ac_exeext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_cv_lib_ldap_ldap_open=yes
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 ac_cv_lib_ldap_ldap_open=no
5080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5081 LIBS=$ac_check_lib_save_LIBS
5083 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
5084 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
5085 if test $ac_cv_lib_ldap_ldap_open = yes; then
5086 HAS_OPENLDAP=1
5087 else
5088 HAS_OPENLDAP=
5095 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
5096 HAS_OPENLDAP=1
5099 cat >>confdefs.h <<\_ACEOF
5100 #define P_LDAP 1
5101 _ACEOF
5103 ENDLDLIBS="-lldap -lldap_r -llber $ENDLDLIBS"
5104 if test "${OPENLDAPINCLUDEDIR}unset" != "unset" ; then
5105 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
5107 if test "${OPENLDAPLIBDIR}unset" != "unset" ; then
5108 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
5116 # Check whether --enable-openssl or --disable-openssl was given.
5117 if test "${enable_openssl+set}" = set; then
5118 enableval="$enable_openssl"
5119 openssl=$enableval
5122 if test "$openssl" = "no" ; then
5123 cat >>confdefs.h <<\_ACEOF
5124 #define P_SSL 0
5125 _ACEOF
5127 HAS_OPENSSL=0
5129 else
5131 if test ${OPENSSLDIR:-unset} != "unset" ; then
5132 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
5133 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
5134 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
5135 echo "$as_me:$LINENO: result: yes" >&5
5136 echo "${ECHO_T}yes" >&6
5137 SSLHDR=1
5138 SSLINCLUDEDIR="${OPENSSLDIR}/include"
5139 SSLLIBDIR="${OPENSSLDIR}/lib"
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142 echo "${ECHO_T}no" >&6
5147 if test "${SSLHDR:-unset}" = "unset" ; then
5149 for ac_header in openssl/ssl.h
5151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5153 echo "$as_me:$LINENO: checking for $ac_header" >&5
5154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5160 else
5161 # Is the header compilable?
5162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5164 cat >conftest.$ac_ext <<_ACEOF
5165 #line $LINENO "configure"
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5172 #include <$ac_header>
5173 _ACEOF
5174 rm -f conftest.$ac_objext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176 (eval $ac_compile) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -s conftest.$ac_objext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 (eval $ac_try) 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_header_compiler=yes
5187 else
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5191 ac_header_compiler=no
5193 rm -f conftest.$ac_objext conftest.$ac_ext
5194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5195 echo "${ECHO_T}$ac_header_compiler" >&6
5197 # Is the header present?
5198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5200 cat >conftest.$ac_ext <<_ACEOF
5201 #line $LINENO "configure"
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 #include <$ac_header>
5208 _ACEOF
5209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } >/dev/null; then
5217 if test -s conftest.err; then
5218 ac_cpp_err=$ac_cxx_preproc_warn_flag
5219 else
5220 ac_cpp_err=
5222 else
5223 ac_cpp_err=yes
5225 if test -z "$ac_cpp_err"; then
5226 ac_header_preproc=yes
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 ac_header_preproc=no
5233 rm -f conftest.err conftest.$ac_ext
5234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5235 echo "${ECHO_T}$ac_header_preproc" >&6
5237 # So? What about this header?
5238 case $ac_header_compiler:$ac_header_preproc in
5239 yes:no )
5240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5245 cat <<\_ASBOX
5246 ## ------------------------------------ ##
5247 ## Report this to bug-autoconf@gnu.org. ##
5248 ## ------------------------------------ ##
5249 _ASBOX
5251 sed "s/^/$as_me: WARNING: /" >&2
5253 no:yes )
5254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5261 cat <<\_ASBOX
5262 ## ------------------------------------ ##
5263 ## Report this to bug-autoconf@gnu.org. ##
5264 ## ------------------------------------ ##
5265 _ASBOX
5267 sed "s/^/$as_me: WARNING: /" >&2
5269 esac
5270 echo "$as_me:$LINENO: checking for $ac_header" >&5
5271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 eval "$as_ac_Header=$ac_header_preproc"
5277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5282 cat >>confdefs.h <<_ACEOF
5283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5284 _ACEOF
5285 SSLHDR=1
5288 done
5290 if test "${SSLHDR:-unset}" != "unset" ; then
5291 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
5292 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
5293 cat >conftest.$ac_ext <<_ACEOF
5294 #define OPENSSL_NO_KRB5
5295 #include <openssl/ssl.h>
5296 int main(int argc,char **argv){}
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try='test -s conftest.$ac_objext'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 (eval $ac_try) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 SSLHDR=1
5311 else
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5316 rm -f conftest.$ac_objext conftest.$ac_ext
5317 if test ${SSLHDR:-unset} != "unset" ; then
5318 echo "$as_me:$LINENO: result: yes" >&5
5319 echo "${ECHO_T}yes" >&6
5320 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5321 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5322 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5323 else
5324 echo "$as_me:$LINENO: result: no" >&5
5325 echo "${ECHO_T}no" >&6
5330 if test "${SSLHDR:-unset}" = "unset" ; then
5332 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
5333 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
5334 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
5335 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
5336 echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6
5338 else
5339 cat >conftest.$ac_ext <<_ACEOF
5340 #include "${openssl_dir}/include/openssl/ssl.h"
5341 int main(int argc,char **argv){ return 0; }
5342 _ACEOF
5343 $CXX $CXXFLAGS -I${openssl_dir}/include -c conftest.cc > /dev/null 2>&1
5344 if test $? = 0 ; then
5345 echo "$as_me:$LINENO: result: yes" >&5
5346 echo "${ECHO_T}yes" >&6
5347 SSLHDR=1
5348 SSLCCFLAGS=""
5349 SSLINCLUDEDIR="${openssl_dir}/include"
5350 SSLLIBDIR="${openssl_dir}/lib"
5351 break
5352 else
5353 echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5355 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
5356 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5358 #define OPENSSL_NO_KRB5
5359 #include "${openssl_dir}/include/openssl/ssl.h"
5360 int main(int argc,char **argv){}
5361 _ACEOF
5362 $CXX $CXXFLAGS -I${openssl_dir}/openssl/include -c conftest.cc > /dev/null 2>&1
5363 if test $? = 0 ; then
5364 echo "$as_me:$LINENO: result: yes" >&5
5365 echo "${ECHO_T}yes" >&6
5366 SSLHDR=1
5367 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5368 SSLINCLUDEDIR="${openssl_dir}/include"
5369 SSLLIBDIR="${openssl_dir}/lib"
5370 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5371 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5372 break
5373 else
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5379 done
5382 if test ${SSLHDR:-unset} != "unset" ; then
5383 HAS_OPENSSL=1
5386 cat >>confdefs.h <<\_ACEOF
5387 #define P_SSL 1
5388 _ACEOF
5390 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
5391 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
5393 if test ${SSLLIBDIR:-unset} != "unset" ; then
5394 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
5396 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
5397 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
5406 # Check whether --enable-expat or --disable-expat was given.
5407 if test "${enable_expat+set}" = set; then
5408 enableval="$enable_expat"
5409 expat=$enableval
5412 if test "$expat" = "no" ; then
5413 HAS_EXPAT=0
5415 cat >>confdefs.h <<\_ACEOF
5416 #define P_EXPAT 0
5417 _ACEOF
5419 else
5422 for ac_header in expat.h
5424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo "$as_me:$LINENO: checking for $ac_header" >&5
5427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5433 else
5434 # Is the header compilable?
5435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5437 cat >conftest.$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 $ac_includes_default
5445 #include <$ac_header>
5446 _ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_header_compiler=yes
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 ac_header_compiler=no
5466 rm -f conftest.$ac_objext conftest.$ac_ext
5467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5468 echo "${ECHO_T}$ac_header_compiler" >&6
5470 # Is the header present?
5471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 #include <$ac_header>
5481 _ACEOF
5482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } >/dev/null; then
5490 if test -s conftest.err; then
5491 ac_cpp_err=$ac_cxx_preproc_warn_flag
5492 else
5493 ac_cpp_err=
5495 else
5496 ac_cpp_err=yes
5498 if test -z "$ac_cpp_err"; then
5499 ac_header_preproc=yes
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ac_header_preproc=no
5506 rm -f conftest.err conftest.$ac_ext
5507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5508 echo "${ECHO_T}$ac_header_preproc" >&6
5510 # So? What about this header?
5511 case $ac_header_compiler:$ac_header_preproc in
5512 yes:no )
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5518 cat <<\_ASBOX
5519 ## ------------------------------------ ##
5520 ## Report this to bug-autoconf@gnu.org. ##
5521 ## ------------------------------------ ##
5522 _ASBOX
5524 sed "s/^/$as_me: WARNING: /" >&2
5526 no:yes )
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5534 cat <<\_ASBOX
5535 ## ------------------------------------ ##
5536 ## Report this to bug-autoconf@gnu.org. ##
5537 ## ------------------------------------ ##
5538 _ASBOX
5540 sed "s/^/$as_me: WARNING: /" >&2
5542 esac
5543 echo "$as_me:$LINENO: checking for $ac_header" >&5
5544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548 eval "$as_ac_Header=$ac_header_preproc"
5550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5555 cat >>confdefs.h <<_ACEOF
5556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5557 _ACEOF
5558 HAS_EXPAT=1
5561 done
5563 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5564 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
5565 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
5566 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 ac_check_lib_save_LIBS=$LIBS
5570 LIBS="-lexpat $LIBS"
5571 cat >conftest.$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 /* Override any gcc2 internal prototype to avoid an error. */
5580 #ifdef __cplusplus
5581 extern "C"
5582 #endif
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5585 char XML_ParserCreate ();
5587 main ()
5589 XML_ParserCreate ();
5591 return 0;
5593 _ACEOF
5594 rm -f conftest.$ac_objext conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -s conftest$ac_exeext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_lib_expat_XML_ParserCreate=yes
5607 else
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5611 ac_cv_lib_expat_XML_ParserCreate=no
5613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5614 LIBS=$ac_check_lib_save_LIBS
5616 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5617 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
5618 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
5619 HAS_EXPAT=1
5620 else
5621 HAS_EXPAT=
5624 else
5625 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
5626 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
5627 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 test "$cross_compiling" = yes &&
5631 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5632 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5633 { (exit 1); exit 1; }; }
5634 if test -r "/usr/local/include/expat.h"; then
5635 ac_cv_file__usr_local_include_expat_h=yes
5636 else
5637 ac_cv_file__usr_local_include_expat_h=no
5640 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
5641 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
5642 if test $ac_cv_file__usr_local_include_expat_h = yes; then
5643 HAS_EXPAT=1
5646 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5647 EXPATINCLUDEDIR=/usr/local/include
5648 EXPATLIBDIR=/usr/local/lib
5652 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5653 HAS_EXPAT=1
5656 cat >>confdefs.h <<\_ACEOF
5657 #define P_EXPAT 1
5658 _ACEOF
5660 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
5661 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
5663 if test ${EXPATLIBDIR:-unset} != "unset" ; then
5664 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
5666 ENDLDLIBS="$ENDLDLIBS -lexpat"
5676 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5677 if test "${enable_ipv6+set}" = set; then
5678 enableval="$enable_ipv6"
5679 ipv6=$enableval
5682 if test "$ipv6" = "no" ; then
5683 cat >>confdefs.h <<\_ACEOF
5684 #define P_HAS_IPV6 0
5685 _ACEOF
5687 HAS_IPV6=0
5689 else
5690 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
5691 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
5692 if test "${HAS_IPV6+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695 cat >conftest.$ac_ext <<_ACEOF
5696 #line $LINENO "configure"
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <sys/types.h>
5703 #include <netinet/in.h>
5705 main ()
5707 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5709 return 0;
5711 _ACEOF
5712 rm -f conftest.$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try='test -s conftest.$ac_objext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 HAS_IPV6=yes
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 HAS_IPV6=no
5731 rm -f conftest.$ac_objext conftest.$ac_ext
5733 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
5734 echo "${ECHO_T}$HAS_IPV6" >&6
5736 if test $HAS_IPV6 = yes ; then
5738 cat >>confdefs.h <<\_ACEOF
5739 #define P_HAS_IPV6 1
5740 _ACEOF
5747 # Check whether --enable-qos or --disable-qos was given.
5748 if test "${enable_qos+set}" = set; then
5749 enableval="$enable_qos"
5750 qos=$enableval
5753 if test "$qos" = "no" ; then
5755 cat >>confdefs.h <<\_ACEOF
5756 #define P_HAS_QOS 0
5757 _ACEOF
5759 else
5761 cat >>confdefs.h <<\_ACEOF
5762 #define P_HAS_QOS 1
5763 _ACEOF
5770 # Check whether --enable-sdl or --disable-sdl was given.
5771 if test "${enable_sdl+set}" = set; then
5772 enableval="$enable_sdl"
5773 sdl=$enableval
5776 if test "$sdl" = "no" ; then
5777 HAS_SDL=0
5779 cat >>confdefs.h <<\_ACEOF
5780 #define P_SDL 0
5781 _ACEOF
5783 else
5784 if test "${SDLLIB:-unset}" = "unset" ; then
5785 SDLLIB=SDL
5789 for ac_header in SDL/SDL.h
5791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5793 echo "$as_me:$LINENO: checking for $ac_header" >&5
5794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5800 else
5801 # Is the header compilable?
5802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5804 cat >conftest.$ac_ext <<_ACEOF
5805 #line $LINENO "configure"
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 $ac_includes_default
5812 #include <$ac_header>
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816 (eval $ac_compile) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -s conftest.$ac_objext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_header_compiler=yes
5827 else
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 ac_header_compiler=no
5833 rm -f conftest.$ac_objext conftest.$ac_ext
5834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5835 echo "${ECHO_T}$ac_header_compiler" >&6
5837 # Is the header present?
5838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5840 cat >conftest.$ac_ext <<_ACEOF
5841 #line $LINENO "configure"
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 #include <$ac_header>
5848 _ACEOF
5849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } >/dev/null; then
5857 if test -s conftest.err; then
5858 ac_cpp_err=$ac_cxx_preproc_warn_flag
5859 else
5860 ac_cpp_err=
5862 else
5863 ac_cpp_err=yes
5865 if test -z "$ac_cpp_err"; then
5866 ac_header_preproc=yes
5867 else
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 ac_header_preproc=no
5873 rm -f conftest.err conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5875 echo "${ECHO_T}$ac_header_preproc" >&6
5877 # So? What about this header?
5878 case $ac_header_compiler:$ac_header_preproc in
5879 yes:no )
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5885 cat <<\_ASBOX
5886 ## ------------------------------------ ##
5887 ## Report this to bug-autoconf@gnu.org. ##
5888 ## ------------------------------------ ##
5889 _ASBOX
5891 sed "s/^/$as_me: WARNING: /" >&2
5893 no:yes )
5894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5901 cat <<\_ASBOX
5902 ## ------------------------------------ ##
5903 ## Report this to bug-autoconf@gnu.org. ##
5904 ## ------------------------------------ ##
5905 _ASBOX
5907 sed "s/^/$as_me: WARNING: /" >&2
5909 esac
5910 echo "$as_me:$LINENO: checking for $ac_header" >&5
5911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915 eval "$as_ac_Header=$ac_header_preproc"
5917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5922 cat >>confdefs.h <<_ACEOF
5923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5924 _ACEOF
5925 HAS_SDL=1
5928 done
5930 if test "${HAS_SDL:-unset}" != "unset" ; then
5931 if test "${X11LIBDIR:-unset}" == "unset" ; then
5932 X11LIBDIR=/usr/X11R6/lib
5934 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5935 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5936 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939 ac_check_lib_save_LIBS=$LIBS
5940 LIBS="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext -laa $LIBS"
5941 cat >conftest.$ac_ext <<_ACEOF
5942 #line $LINENO "configure"
5943 /* confdefs.h. */
5944 _ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5949 /* Override any gcc2 internal prototype to avoid an error. */
5950 #ifdef __cplusplus
5951 extern "C"
5952 #endif
5953 /* We use char because int might match the return type of a gcc2
5954 builtin and then its argument prototype would still apply. */
5955 char SDL_CreateYUVOverlay ();
5957 main ()
5959 SDL_CreateYUVOverlay ();
5961 return 0;
5963 _ACEOF
5964 rm -f conftest.$ac_objext conftest$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966 (eval $ac_link) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try='test -s conftest$ac_exeext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
5983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5984 LIBS=$ac_check_lib_save_LIBS
5986 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5987 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5988 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5989 HAS_SDL=1
5990 else
5991 HAS_SDL=
5996 if test "${HAS_SDL:-unset}" = "unset" ; then
5997 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5998 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5999 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 test "$cross_compiling" = yes &&
6003 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6004 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6005 { (exit 1); exit 1; }; }
6006 if test -r "/usr/local/include/SDL11/SDL.h"; then
6007 ac_cv_file__usr_local_include_SDL11_SDL_h=yes
6008 else
6009 ac_cv_file__usr_local_include_SDL11_SDL_h=no
6012 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
6013 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
6014 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
6015 HAS_SDL=1
6018 if test "${HAS_SDL:-unset}" != "unset" ; then
6019 SDLLIB=SDL-1.1
6023 if test "${HAS_SDL:-unset}" != "unset" ; then
6024 HAS_SDL=1
6027 cat >>confdefs.h <<\_ACEOF
6028 #define P_SDL 1
6029 _ACEOF
6031 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
6032 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
6034 if test ${SDLLIBDIR:-unset} != "unset" ; then
6035 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
6037 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
6043 # Check whether --enable-video or --disable-video was given.
6044 if test "${enable_video+set}" = set; then
6045 enableval="$enable_video"
6046 video=$enableval
6049 HAS_VIDEO_CAPTURE=0
6050 if test "$HAS_PLUGINS" = "0" ; then
6051 if test "$video" != "no" ; then
6052 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6053 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6054 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6055 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6059 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6060 else
6061 # Is the header compilable?
6062 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
6063 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
6064 cat >conftest.$ac_ext <<_ACEOF
6065 #line $LINENO "configure"
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 $ac_includes_default
6072 #include <linux/videodev.h>
6073 _ACEOF
6074 rm -f conftest.$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -s conftest.$ac_objext'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 (eval $ac_try) 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6086 ac_header_compiler=yes
6087 else
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 ac_header_compiler=no
6093 rm -f conftest.$ac_objext conftest.$ac_ext
6094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6095 echo "${ECHO_T}$ac_header_compiler" >&6
6097 # Is the header present?
6098 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
6099 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
6100 cat >conftest.$ac_ext <<_ACEOF
6101 #line $LINENO "configure"
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 #include <linux/videodev.h>
6108 _ACEOF
6109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } >/dev/null; then
6117 if test -s conftest.err; then
6118 ac_cpp_err=$ac_cxx_preproc_warn_flag
6119 else
6120 ac_cpp_err=
6122 else
6123 ac_cpp_err=yes
6125 if test -z "$ac_cpp_err"; then
6126 ac_header_preproc=yes
6127 else
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6131 ac_header_preproc=no
6133 rm -f conftest.err conftest.$ac_ext
6134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6135 echo "${ECHO_T}$ac_header_preproc" >&6
6137 # So? What about this header?
6138 case $ac_header_compiler:$ac_header_preproc in
6139 yes:no )
6140 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6141 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6143 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6145 cat <<\_ASBOX
6146 ## ------------------------------------ ##
6147 ## Report this to bug-autoconf@gnu.org. ##
6148 ## ------------------------------------ ##
6149 _ASBOX
6151 sed "s/^/$as_me: WARNING: /" >&2
6153 no:yes )
6154 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
6155 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
6156 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
6157 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
6158 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6159 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6161 cat <<\_ASBOX
6162 ## ------------------------------------ ##
6163 ## Report this to bug-autoconf@gnu.org. ##
6164 ## ------------------------------------ ##
6165 _ASBOX
6167 sed "s/^/$as_me: WARNING: /" >&2
6169 esac
6170 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6171 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6172 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175 ac_cv_header_linux_videodev_h=$ac_header_preproc
6177 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6178 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6181 if test $ac_cv_header_linux_videodev_h = yes; then
6182 HAS_VIDEO_CAPTURE=1
6186 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
6187 { echo "$as_me:$LINENO: No Video Capture support" >&5
6188 echo "$as_me: No Video Capture support" >&6;}
6190 cat >>confdefs.h <<\_ACEOF
6191 #define NO_VIDEO_CAPTURE
6192 _ACEOF
6199 # Check whether --enable-alsa or --disable-alsa was given.
6200 if test "${enable_alsa+set}" = set; then
6201 enableval="$enable_alsa"
6202 enable_alsa=$enableval
6205 HAS_ALSA=0
6206 if test "$HAS_PLUGINS" = "0" ; then
6207 if test "$enable_alsa" != "no" ; then
6208 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6209 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6210 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6211 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6215 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6216 else
6217 # Is the header compilable?
6218 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
6219 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
6220 cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 $ac_includes_default
6228 #include <alsa/asoundlib.h>
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>&5
6233 ac_status=$?
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try='test -s conftest.$ac_objext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_header_compiler=yes
6243 else
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_header_compiler=no
6249 rm -f conftest.$ac_objext conftest.$ac_ext
6250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6251 echo "${ECHO_T}$ac_header_compiler" >&6
6253 # Is the header present?
6254 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
6255 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
6256 cat >conftest.$ac_ext <<_ACEOF
6257 #line $LINENO "configure"
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <alsa/asoundlib.h>
6264 _ACEOF
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } >/dev/null; then
6273 if test -s conftest.err; then
6274 ac_cpp_err=$ac_cxx_preproc_warn_flag
6275 else
6276 ac_cpp_err=
6278 else
6279 ac_cpp_err=yes
6281 if test -z "$ac_cpp_err"; then
6282 ac_header_preproc=yes
6283 else
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6287 ac_header_preproc=no
6289 rm -f conftest.err conftest.$ac_ext
6290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6291 echo "${ECHO_T}$ac_header_preproc" >&6
6293 # So? What about this header?
6294 case $ac_header_compiler:$ac_header_preproc in
6295 yes:no )
6296 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6297 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6298 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6299 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6301 cat <<\_ASBOX
6302 ## ------------------------------------ ##
6303 ## Report this to bug-autoconf@gnu.org. ##
6304 ## ------------------------------------ ##
6305 _ASBOX
6307 sed "s/^/$as_me: WARNING: /" >&2
6309 no:yes )
6310 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
6311 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
6312 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6313 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6315 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6317 cat <<\_ASBOX
6318 ## ------------------------------------ ##
6319 ## Report this to bug-autoconf@gnu.org. ##
6320 ## ------------------------------------ ##
6321 _ASBOX
6323 sed "s/^/$as_me: WARNING: /" >&2
6325 esac
6326 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6327 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6328 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
6333 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6334 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6337 if test $ac_cv_header_alsa_asoundlib_h = yes; then
6338 HAS_ALSA=1
6342 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
6343 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
6344 if test "${HAS_ALSA}" = "1"; then
6345 echo "$as_me:$LINENO: result: yes" >&5
6346 echo "${ECHO_T}yes" >&6
6347 ENDLDLIBS="$ENDLDLIBS -lasound"
6348 else
6349 echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6
6356 if test "$OSTYPE" = "solaris" ; then
6357 USE_SYSTEM_SWAB=
6358 else
6359 echo "$as_me:$LINENO: checking for swab" >&5
6360 echo $ECHO_N "checking for swab... $ECHO_C" >&6
6361 if test "${ac_cv_func_swab+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 cat >conftest.$ac_ext <<_ACEOF
6365 #line $LINENO "configure"
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 /* System header to define __stub macros and hopefully few prototypes,
6372 which can conflict with char swab (); below.
6373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6374 <limits.h> exists even on freestanding compilers. */
6375 #ifdef __STDC__
6376 # include <limits.h>
6377 #else
6378 # include <assert.h>
6379 #endif
6380 /* Override any gcc2 internal prototype to avoid an error. */
6381 #ifdef __cplusplus
6382 extern "C"
6384 #endif
6385 /* We use char because int might match the return type of a gcc2
6386 builtin and then its argument prototype would still apply. */
6387 char swab ();
6388 /* The GNU C library defines this for functions which it implements
6389 to always fail with ENOSYS. Some functions are actually named
6390 something starting with __ and the normal name is an alias. */
6391 #if defined (__stub_swab) || defined (__stub___swab)
6392 choke me
6393 #else
6394 char (*f) () = swab;
6395 #endif
6396 #ifdef __cplusplus
6398 #endif
6401 main ()
6403 return f != swab;
6405 return 0;
6407 _ACEOF
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410 (eval $ac_link) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -s conftest$ac_exeext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_cv_func_swab=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 ac_cv_func_swab=no
6427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
6430 echo "${ECHO_T}$ac_cv_func_swab" >&6
6431 if test $ac_cv_func_swab = yes; then
6432 USE_SYSTEM_SWAB=1
6436 if test "x$ac_cv_func_swab" = "xyes" ; then
6438 cat >>confdefs.h <<\_ACEOF
6439 #define USE_SYSTEM_SWAB
6440 _ACEOF
6446 # Check whether --enable-memcheck or --disable-memcheck was given.
6447 if test "${enable_memcheck+set}" = set; then
6448 enableval="$enable_memcheck"
6449 memcheck=$enableval
6452 if test "$memcheck" = "yes" ; then
6453 cat >>confdefs.h <<\_ACEOF
6454 #define PMEMORY_CHECK 1
6455 _ACEOF
6457 { echo "$as_me:$LINENO: Memory checking enabled" >&5
6458 echo "$as_me: Memory checking enabled" >&6;}
6463 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
6464 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
6465 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
6469 if test "${OSTYPE}" != "Darwin" ; then
6470 if test ${HAS_LIBDL} = yes ; then
6471 ENDLDLIBS="$ENDLDLIBS -ldl"
6480 # Find a good install program. We prefer a C program (faster),
6481 # so one script is as good as another. But avoid the broken or
6482 # incompatible versions:
6483 # SysV /etc/install, /usr/sbin/install
6484 # SunOS /usr/etc/install
6485 # IRIX /sbin/install
6486 # AIX /bin/install
6487 # AmigaOS /C/install, which installs bootblocks on floppy discs
6488 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6491 # ./install, which can be erroneously created by make from ./install.sh.
6492 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6493 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6494 if test -z "$INSTALL"; then
6495 if test "${ac_cv_path_install+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 # Account for people who put trailing slashes in PATH elements.
6504 case $as_dir/ in
6505 ./ | .// | /cC/* | \
6506 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6507 /usr/ucb/* ) ;;
6509 # OSF1 and SCO ODT 3.0 have their own names for install.
6510 # Don't use installbsd from OSF since it installs stuff as root
6511 # by default.
6512 for ac_prog in ginstall scoinst install; do
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6515 if test $ac_prog = install &&
6516 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6517 # AIX install. It has an incompatible calling convention.
6519 elif test $ac_prog = install &&
6520 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6521 # program-specific install script used by HP pwplus--don't use.
6523 else
6524 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6525 break 3
6528 done
6529 done
6531 esac
6532 done
6536 if test "${ac_cv_path_install+set}" = set; then
6537 INSTALL=$ac_cv_path_install
6538 else
6539 # As a last resort, use the slow shell script. We don't cache a
6540 # path for INSTALL within a source directory, because that will
6541 # break other packages using the cache if that directory is
6542 # removed, or if the path is relative.
6543 INSTALL=$ac_install_sh
6546 echo "$as_me:$LINENO: result: $INSTALL" >&5
6547 echo "${ECHO_T}$INSTALL" >&6
6549 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6550 # It thinks the first close brace ends the variable substitution.
6551 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6553 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6555 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6558 ac_config_files="$ac_config_files make/ptbuildopts.mak"
6560 ac_config_files="$ac_config_files make/ptlib-config"
6562 ac_config_files="$ac_config_files Makefile"
6565 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
6566 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
6569 cat >confcache <<\_ACEOF
6570 # This file is a shell script that caches the results of configure
6571 # tests run on this system so they can be shared between configure
6572 # scripts and configure runs, see configure's option --config-cache.
6573 # It is not useful on other systems. If it contains results you don't
6574 # want to keep, you may remove or edit it.
6576 # config.status only pays attention to the cache file if you give it
6577 # the --recheck option to rerun configure.
6579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6581 # following values.
6583 _ACEOF
6585 # The following way of writing the cache mishandles newlines in values,
6586 # but we know of no workaround that is simple, portable, and efficient.
6587 # So, don't put newlines in cache variables' values.
6588 # Ultrix sh set writes to stderr and can't be redirected directly,
6589 # and sets the high bit in the cache file unless we assign to the vars.
6591 (set) 2>&1 |
6592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6593 *ac_space=\ *)
6594 # `set' does not quote correctly, so add quotes (double-quote
6595 # substitution turns \\\\ into \\, and sed turns \\ into \).
6596 sed -n \
6597 "s/'/'\\\\''/g;
6598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6601 # `set' quotes correctly as required by POSIX, so do not add quotes.
6602 sed -n \
6603 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6605 esac;
6607 sed '
6608 t clear
6609 : clear
6610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6611 t end
6612 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6613 : end' >>confcache
6614 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6615 if test -w $cache_file; then
6616 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6617 cat confcache >$cache_file
6618 else
6619 echo "not updating unwritable cache $cache_file"
6622 rm -f confcache
6624 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6625 # Let make expand exec_prefix.
6626 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6628 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6629 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6630 # trailing colons and then remove the whole line if VPATH becomes empty
6631 # (actually we leave an empty line to preserve line numbers).
6632 if test "x$srcdir" = x.; then
6633 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6634 s/:*\$(srcdir):*/:/;
6635 s/:*\${srcdir}:*/:/;
6636 s/:*@srcdir@:*/:/;
6637 s/^\([^=]*=[ ]*\):*/\1/;
6638 s/:*$//;
6639 s/^[^=]*=[ ]*$//;
6643 DEFS=-DHAVE_CONFIG_H
6645 ac_libobjs=
6646 ac_ltlibobjs=
6647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6648 # 1. Remove the extension, and $U if already installed.
6649 ac_i=`echo "$ac_i" |
6650 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6651 # 2. Add them.
6652 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6653 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6654 done
6655 LIBOBJS=$ac_libobjs
6657 LTLIBOBJS=$ac_ltlibobjs
6661 : ${CONFIG_STATUS=./config.status}
6662 ac_clean_files_save=$ac_clean_files
6663 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6664 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6665 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6666 cat >$CONFIG_STATUS <<_ACEOF
6667 #! $SHELL
6668 # Generated by $as_me.
6669 # Run this file to recreate the current configuration.
6670 # Compiler output produced by configure, useful for debugging
6671 # configure, is in config.log if it exists.
6673 debug=false
6674 ac_cs_recheck=false
6675 ac_cs_silent=false
6676 SHELL=\${CONFIG_SHELL-$SHELL}
6677 _ACEOF
6679 cat >>$CONFIG_STATUS <<\_ACEOF
6680 ## --------------------- ##
6681 ## M4sh Initialization. ##
6682 ## --------------------- ##
6684 # Be Bourne compatible
6685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6686 emulate sh
6687 NULLCMD=:
6688 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6689 # is contrary to our usage. Disable this feature.
6690 alias -g '${1+"$@"}'='"$@"'
6691 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6692 set -o posix
6695 # Support unset when possible.
6696 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6697 as_unset=unset
6698 else
6699 as_unset=false
6703 # Work around bugs in pre-3.0 UWIN ksh.
6704 $as_unset ENV MAIL MAILPATH
6705 PS1='$ '
6706 PS2='> '
6707 PS4='+ '
6709 # NLS nuisances.
6710 for as_var in \
6711 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6712 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6713 LC_TELEPHONE LC_TIME
6715 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6716 eval $as_var=C; export $as_var
6717 else
6718 $as_unset $as_var
6720 done
6722 # Required to use basename.
6723 if expr a : '\(a\)' >/dev/null 2>&1; then
6724 as_expr=expr
6725 else
6726 as_expr=false
6729 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6730 as_basename=basename
6731 else
6732 as_basename=false
6736 # Name of the executable.
6737 as_me=`$as_basename "$0" ||
6738 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6739 X"$0" : 'X\(//\)$' \| \
6740 X"$0" : 'X\(/\)$' \| \
6741 . : '\(.\)' 2>/dev/null ||
6742 echo X/"$0" |
6743 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6744 /^X\/\(\/\/\)$/{ s//\1/; q; }
6745 /^X\/\(\/\).*/{ s//\1/; q; }
6746 s/.*/./; q'`
6749 # PATH needs CR, and LINENO needs CR and PATH.
6750 # Avoid depending upon Character Ranges.
6751 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6752 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6753 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6754 as_cr_digits='0123456789'
6755 as_cr_alnum=$as_cr_Letters$as_cr_digits
6757 # The user is always right.
6758 if test "${PATH_SEPARATOR+set}" != set; then
6759 echo "#! /bin/sh" >conf$$.sh
6760 echo "exit 0" >>conf$$.sh
6761 chmod +x conf$$.sh
6762 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6763 PATH_SEPARATOR=';'
6764 else
6765 PATH_SEPARATOR=:
6767 rm -f conf$$.sh
6771 as_lineno_1=$LINENO
6772 as_lineno_2=$LINENO
6773 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6774 test "x$as_lineno_1" != "x$as_lineno_2" &&
6775 test "x$as_lineno_3" = "x$as_lineno_2" || {
6776 # Find who we are. Look in the path if we contain no path at all
6777 # relative or not.
6778 case $0 in
6779 *[\\/]* ) as_myself=$0 ;;
6780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6786 done
6789 esac
6790 # We did not find ourselves, most probably we were run as `sh COMMAND'
6791 # in which case we are not to be found in the path.
6792 if test "x$as_myself" = x; then
6793 as_myself=$0
6795 if test ! -f "$as_myself"; then
6796 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6797 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6798 { (exit 1); exit 1; }; }
6800 case $CONFIG_SHELL in
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for as_base in sh bash ksh sh5; do
6808 case $as_dir in
6810 if ("$as_dir/$as_base" -c '
6811 as_lineno_1=$LINENO
6812 as_lineno_2=$LINENO
6813 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6814 test "x$as_lineno_1" != "x$as_lineno_2" &&
6815 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6816 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6817 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6818 CONFIG_SHELL=$as_dir/$as_base
6819 export CONFIG_SHELL
6820 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6821 fi;;
6822 esac
6823 done
6824 done
6826 esac
6828 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6829 # uniformly replaced by the line number. The first 'sed' inserts a
6830 # line-number line before each line; the second 'sed' does the real
6831 # work. The second script uses 'N' to pair each line-number line
6832 # with the numbered line, and appends trailing '-' during
6833 # substitution so that $LINENO is not a special case at line end.
6834 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6835 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6836 sed '=' <$as_myself |
6837 sed '
6839 s,$,-,
6840 : loop
6841 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6842 t loop
6843 s,-$,,
6844 s,^['$as_cr_digits']*\n,,
6845 ' >$as_me.lineno &&
6846 chmod +x $as_me.lineno ||
6847 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6848 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6849 { (exit 1); exit 1; }; }
6851 # Don't try to exec as it changes $[0], causing all sort of problems
6852 # (the dirname of $[0] is not the place where we might find the
6853 # original and so on. Autoconf is especially sensible to this).
6854 . ./$as_me.lineno
6855 # Exit status is that of the last command.
6856 exit
6860 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6861 *c*,-n*) ECHO_N= ECHO_C='
6862 ' ECHO_T=' ' ;;
6863 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6864 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6865 esac
6867 if expr a : '\(a\)' >/dev/null 2>&1; then
6868 as_expr=expr
6869 else
6870 as_expr=false
6873 rm -f conf$$ conf$$.exe conf$$.file
6874 echo >conf$$.file
6875 if ln -s conf$$.file conf$$ 2>/dev/null; then
6876 # We could just check for DJGPP; but this test a) works b) is more generic
6877 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6878 if test -f conf$$.exe; then
6879 # Don't use ln at all; we don't have any links
6880 as_ln_s='cp -p'
6881 else
6882 as_ln_s='ln -s'
6884 elif ln conf$$.file conf$$ 2>/dev/null; then
6885 as_ln_s=ln
6886 else
6887 as_ln_s='cp -p'
6889 rm -f conf$$ conf$$.exe conf$$.file
6891 if mkdir -p . 2>/dev/null; then
6892 as_mkdir_p=:
6893 else
6894 as_mkdir_p=false
6897 as_executable_p="test -f"
6899 # Sed expression to map a string onto a valid CPP name.
6900 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6902 # Sed expression to map a string onto a valid variable name.
6903 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6906 # IFS
6907 # We need space, tab and new line, in precisely that order.
6908 as_nl='
6910 IFS=" $as_nl"
6912 # CDPATH.
6913 $as_unset CDPATH
6915 exec 6>&1
6917 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6918 # report actual input values of CONFIG_FILES etc. instead of their
6919 # values after options handling. Logging --version etc. is OK.
6920 exec 5>>config.log
6922 echo
6923 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6924 ## Running $as_me. ##
6925 _ASBOX
6926 } >&5
6927 cat >&5 <<_CSEOF
6929 This file was extended by $as_me, which was
6930 generated by GNU Autoconf 2.57. Invocation command line was
6932 CONFIG_FILES = $CONFIG_FILES
6933 CONFIG_HEADERS = $CONFIG_HEADERS
6934 CONFIG_LINKS = $CONFIG_LINKS
6935 CONFIG_COMMANDS = $CONFIG_COMMANDS
6936 $ $0 $@
6938 _CSEOF
6939 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6940 echo >&5
6941 _ACEOF
6943 # Files that config.status was made for.
6944 if test -n "$ac_config_files"; then
6945 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6948 if test -n "$ac_config_headers"; then
6949 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6952 if test -n "$ac_config_links"; then
6953 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6956 if test -n "$ac_config_commands"; then
6957 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6960 cat >>$CONFIG_STATUS <<\_ACEOF
6962 ac_cs_usage="\
6963 \`$as_me' instantiates files from templates according to the
6964 current configuration.
6966 Usage: $0 [OPTIONS] [FILE]...
6968 -h, --help print this help, then exit
6969 -V, --version print version number, then exit
6970 -q, --quiet do not print progress messages
6971 -d, --debug don't remove temporary files
6972 --recheck update $as_me by reconfiguring in the same conditions
6973 --file=FILE[:TEMPLATE]
6974 instantiate the configuration file FILE
6975 --header=FILE[:TEMPLATE]
6976 instantiate the configuration header FILE
6978 Configuration files:
6979 $config_files
6981 Configuration headers:
6982 $config_headers
6984 Report bugs to <bug-autoconf@gnu.org>."
6985 _ACEOF
6987 cat >>$CONFIG_STATUS <<_ACEOF
6988 ac_cs_version="\\
6989 config.status
6990 configured by $0, generated by GNU Autoconf 2.57,
6991 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6994 Free Software Foundation, Inc.
6995 This config.status script is free software; the Free Software Foundation
6996 gives unlimited permission to copy, distribute and modify it."
6997 srcdir=$srcdir
6998 INSTALL="$INSTALL"
6999 _ACEOF
7001 cat >>$CONFIG_STATUS <<\_ACEOF
7002 # If no file are specified by the user, then we need to provide default
7003 # value. By we need to know if files were specified by the user.
7004 ac_need_defaults=:
7005 while test $# != 0
7007 case $1 in
7008 --*=*)
7009 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7010 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7011 ac_shift=:
7014 ac_option=$1
7015 ac_optarg=$2
7016 ac_shift=shift
7018 *) # This is not an option, so the user has probably given explicit
7019 # arguments.
7020 ac_option=$1
7021 ac_need_defaults=false;;
7022 esac
7024 case $ac_option in
7025 # Handling of the options.
7026 _ACEOF
7027 cat >>$CONFIG_STATUS <<\_ACEOF
7028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7029 ac_cs_recheck=: ;;
7030 --version | --vers* | -V )
7031 echo "$ac_cs_version"; exit 0 ;;
7032 --he | --h)
7033 # Conflict between --help and --header
7034 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7035 Try \`$0 --help' for more information." >&5
7036 echo "$as_me: error: ambiguous option: $1
7037 Try \`$0 --help' for more information." >&2;}
7038 { (exit 1); exit 1; }; };;
7039 --help | --hel | -h )
7040 echo "$ac_cs_usage"; exit 0 ;;
7041 --debug | --d* | -d )
7042 debug=: ;;
7043 --file | --fil | --fi | --f )
7044 $ac_shift
7045 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7046 ac_need_defaults=false;;
7047 --header | --heade | --head | --hea )
7048 $ac_shift
7049 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7050 ac_need_defaults=false;;
7051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7052 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7053 ac_cs_silent=: ;;
7055 # This is an error.
7056 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7057 Try \`$0 --help' for more information." >&5
7058 echo "$as_me: error: unrecognized option: $1
7059 Try \`$0 --help' for more information." >&2;}
7060 { (exit 1); exit 1; }; } ;;
7062 *) ac_config_targets="$ac_config_targets $1" ;;
7064 esac
7065 shift
7066 done
7068 ac_configure_extra_args=
7070 if $ac_cs_silent; then
7071 exec 6>/dev/null
7072 ac_configure_extra_args="$ac_configure_extra_args --silent"
7075 _ACEOF
7076 cat >>$CONFIG_STATUS <<_ACEOF
7077 if \$ac_cs_recheck; then
7078 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7079 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7082 _ACEOF
7088 cat >>$CONFIG_STATUS <<\_ACEOF
7089 for ac_config_target in $ac_config_targets
7091 case "$ac_config_target" in
7092 # Handling of arguments.
7093 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
7094 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
7095 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7096 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
7097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7098 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7099 { (exit 1); exit 1; }; };;
7100 esac
7101 done
7103 # If the user did not use the arguments to specify the items to instantiate,
7104 # then the envvar interface is used. Set only those that are not.
7105 # We use the long form for the default assignment because of an extremely
7106 # bizarre bug on SunOS 4.1.3.
7107 if $ac_need_defaults; then
7108 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7109 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7112 # Have a temporary directory for convenience. Make it in the build tree
7113 # simply because there is no reason to put it here, and in addition,
7114 # creating and moving files from /tmp can sometimes cause problems.
7115 # Create a temporary directory, and hook for its removal unless debugging.
7116 $debug ||
7118 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7119 trap '{ (exit 1); exit 1; }' 1 2 13 15
7122 # Create a (secure) tmp directory for tmp files.
7125 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7126 test -n "$tmp" && test -d "$tmp"
7127 } ||
7129 tmp=./confstat$$-$RANDOM
7130 (umask 077 && mkdir $tmp)
7131 } ||
7133 echo "$me: cannot create a temporary directory in ." >&2
7134 { (exit 1); exit 1; }
7137 _ACEOF
7139 cat >>$CONFIG_STATUS <<_ACEOF
7142 # CONFIG_FILES section.
7145 # No need to generate the scripts if there are no CONFIG_FILES.
7146 # This happens for instance when ./config.status config.h
7147 if test -n "\$CONFIG_FILES"; then
7148 # Protect against being on the right side of a sed subst in config.status.
7149 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7150 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7151 s,@SHELL@,$SHELL,;t t
7152 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7153 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7154 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7155 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7156 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7157 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7158 s,@exec_prefix@,$exec_prefix,;t t
7159 s,@prefix@,$prefix,;t t
7160 s,@program_transform_name@,$program_transform_name,;t t
7161 s,@bindir@,$bindir,;t t
7162 s,@sbindir@,$sbindir,;t t
7163 s,@libexecdir@,$libexecdir,;t t
7164 s,@datadir@,$datadir,;t t
7165 s,@sysconfdir@,$sysconfdir,;t t
7166 s,@sharedstatedir@,$sharedstatedir,;t t
7167 s,@localstatedir@,$localstatedir,;t t
7168 s,@libdir@,$libdir,;t t
7169 s,@includedir@,$includedir,;t t
7170 s,@oldincludedir@,$oldincludedir,;t t
7171 s,@infodir@,$infodir,;t t
7172 s,@mandir@,$mandir,;t t
7173 s,@build_alias@,$build_alias,;t t
7174 s,@host_alias@,$host_alias,;t t
7175 s,@target_alias@,$target_alias,;t t
7176 s,@DEFS@,$DEFS,;t t
7177 s,@ECHO_C@,$ECHO_C,;t t
7178 s,@ECHO_N@,$ECHO_N,;t t
7179 s,@ECHO_T@,$ECHO_T,;t t
7180 s,@LIBS@,$LIBS,;t t
7181 s,@subdirs@,$subdirs,;t t
7182 s,@CXX@,$CXX,;t t
7183 s,@CXXFLAGS@,$CXXFLAGS,;t t
7184 s,@LDFLAGS@,$LDFLAGS,;t t
7185 s,@CPPFLAGS@,$CPPFLAGS,;t t
7186 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7187 s,@EXEEXT@,$EXEEXT,;t t
7188 s,@OBJEXT@,$OBJEXT,;t t
7189 s,@PWLIBDIR@,$PWLIBDIR,;t t
7190 s,@PWINSTDIR@,$PWINSTDIR,;t t
7191 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
7192 s,@LIBDIR@,$LIBDIR,;t t
7193 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
7194 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
7195 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
7196 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
7197 s,@build@,$build,;t t
7198 s,@build_cpu@,$build_cpu,;t t
7199 s,@build_vendor@,$build_vendor,;t t
7200 s,@build_os@,$build_os,;t t
7201 s,@host@,$host,;t t
7202 s,@host_cpu@,$host_cpu,;t t
7203 s,@host_vendor@,$host_vendor,;t t
7204 s,@host_os@,$host_os,;t t
7205 s,@target@,$target,;t t
7206 s,@target_cpu@,$target_cpu,;t t
7207 s,@target_vendor@,$target_vendor,;t t
7208 s,@target_os@,$target_os,;t t
7209 s,@MACHTYPE@,$MACHTYPE,;t t
7210 s,@OSTYPE@,$OSTYPE,;t t
7211 s,@OSRELEASE@,$OSRELEASE,;t t
7212 s,@TARGETDIR@,$TARGETDIR,;t t
7213 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
7214 s,@CXXCPP@,$CXXCPP,;t t
7215 s,@EGREP@,$EGREP,;t t
7216 s,@HAS_REGEX@,$HAS_REGEX,;t t
7217 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
7218 s,@HAS_SASL2@,$HAS_SASL2,;t t
7219 s,@HAS_SASL@,$HAS_SASL,;t t
7220 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
7221 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
7222 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
7223 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
7224 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
7225 s,@HAS_IPV6@,$HAS_IPV6,;t t
7226 s,@HAS_SDL@,$HAS_SDL,;t t
7227 s,@HAS_VIDEO_CAPTURE@,$HAS_VIDEO_CAPTURE,;t t
7228 s,@HAS_ALSA@,$HAS_ALSA,;t t
7229 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7230 s,@STDCXXFLAGS@,$STDCXXFLAGS,;t t
7231 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
7232 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7233 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7234 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7235 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7236 s,@LIBOBJS@,$LIBOBJS,;t t
7237 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7238 CEOF
7240 _ACEOF
7242 cat >>$CONFIG_STATUS <<\_ACEOF
7243 # Split the substitutions into bite-sized pieces for seds with
7244 # small command number limits, like on Digital OSF/1 and HP-UX.
7245 ac_max_sed_lines=48
7246 ac_sed_frag=1 # Number of current file.
7247 ac_beg=1 # First line for current file.
7248 ac_end=$ac_max_sed_lines # Line after last line for current file.
7249 ac_more_lines=:
7250 ac_sed_cmds=
7251 while $ac_more_lines; do
7252 if test $ac_beg -gt 1; then
7253 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7254 else
7255 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7257 if test ! -s $tmp/subs.frag; then
7258 ac_more_lines=false
7259 else
7260 # The purpose of the label and of the branching condition is to
7261 # speed up the sed processing (if there are no `@' at all, there
7262 # is no need to browse any of the substitutions).
7263 # These are the two extra sed commands mentioned above.
7264 (echo ':t
7265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7266 if test -z "$ac_sed_cmds"; then
7267 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7268 else
7269 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7271 ac_sed_frag=`expr $ac_sed_frag + 1`
7272 ac_beg=$ac_end
7273 ac_end=`expr $ac_end + $ac_max_sed_lines`
7275 done
7276 if test -z "$ac_sed_cmds"; then
7277 ac_sed_cmds=cat
7279 fi # test -n "$CONFIG_FILES"
7281 _ACEOF
7282 cat >>$CONFIG_STATUS <<\_ACEOF
7283 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7285 case $ac_file in
7286 - | *:- | *:-:* ) # input from stdin
7287 cat >$tmp/stdin
7288 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7289 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7290 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7291 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7292 * ) ac_file_in=$ac_file.in ;;
7293 esac
7295 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7296 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7298 X"$ac_file" : 'X\(//\)[^/]' \| \
7299 X"$ac_file" : 'X\(//\)$' \| \
7300 X"$ac_file" : 'X\(/\)' \| \
7301 . : '\(.\)' 2>/dev/null ||
7302 echo X"$ac_file" |
7303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7305 /^X\(\/\/\)$/{ s//\1/; q; }
7306 /^X\(\/\).*/{ s//\1/; q; }
7307 s/.*/./; q'`
7308 { if $as_mkdir_p; then
7309 mkdir -p "$ac_dir"
7310 else
7311 as_dir="$ac_dir"
7312 as_dirs=
7313 while test ! -d "$as_dir"; do
7314 as_dirs="$as_dir $as_dirs"
7315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7317 X"$as_dir" : 'X\(//\)[^/]' \| \
7318 X"$as_dir" : 'X\(//\)$' \| \
7319 X"$as_dir" : 'X\(/\)' \| \
7320 . : '\(.\)' 2>/dev/null ||
7321 echo X"$as_dir" |
7322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7324 /^X\(\/\/\)$/{ s//\1/; q; }
7325 /^X\(\/\).*/{ s//\1/; q; }
7326 s/.*/./; q'`
7327 done
7328 test ! -n "$as_dirs" || mkdir $as_dirs
7329 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7331 { (exit 1); exit 1; }; }; }
7333 ac_builddir=.
7335 if test "$ac_dir" != .; then
7336 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7337 # A "../" for each directory in $ac_dir_suffix.
7338 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7339 else
7340 ac_dir_suffix= ac_top_builddir=
7343 case $srcdir in
7344 .) # No --srcdir option. We are building in place.
7345 ac_srcdir=.
7346 if test -z "$ac_top_builddir"; then
7347 ac_top_srcdir=.
7348 else
7349 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7350 fi ;;
7351 [\\/]* | ?:[\\/]* ) # Absolute path.
7352 ac_srcdir=$srcdir$ac_dir_suffix;
7353 ac_top_srcdir=$srcdir ;;
7354 *) # Relative path.
7355 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7356 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7357 esac
7358 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7359 # absolute.
7360 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7361 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7362 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7363 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7366 case $INSTALL in
7367 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7368 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7369 esac
7371 if test x"$ac_file" != x-; then
7372 { echo "$as_me:$LINENO: creating $ac_file" >&5
7373 echo "$as_me: creating $ac_file" >&6;}
7374 rm -f "$ac_file"
7376 # Let's still pretend it is `configure' which instantiates (i.e., don't
7377 # use $as_me), people would be surprised to read:
7378 # /* config.h. Generated by config.status. */
7379 if test x"$ac_file" = x-; then
7380 configure_input=
7381 else
7382 configure_input="$ac_file. "
7384 configure_input=$configure_input"Generated from `echo $ac_file_in |
7385 sed 's,.*/,,'` by configure."
7387 # First look for the input files in the build tree, otherwise in the
7388 # src tree.
7389 ac_file_inputs=`IFS=:
7390 for f in $ac_file_in; do
7391 case $f in
7392 -) echo $tmp/stdin ;;
7393 [\\/$]*)
7394 # Absolute (can't be DOS-style, as IFS=:)
7395 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7396 echo "$as_me: error: cannot find input file: $f" >&2;}
7397 { (exit 1); exit 1; }; }
7398 echo $f;;
7399 *) # Relative
7400 if test -f "$f"; then
7401 # Build tree
7402 echo $f
7403 elif test -f "$srcdir/$f"; then
7404 # Source tree
7405 echo $srcdir/$f
7406 else
7407 # /dev/null tree
7408 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7409 echo "$as_me: error: cannot find input file: $f" >&2;}
7410 { (exit 1); exit 1; }; }
7411 fi;;
7412 esac
7413 done` || { (exit 1); exit 1; }
7414 _ACEOF
7415 cat >>$CONFIG_STATUS <<_ACEOF
7416 sed "$ac_vpsub
7417 $extrasub
7418 _ACEOF
7419 cat >>$CONFIG_STATUS <<\_ACEOF
7421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7422 s,@configure_input@,$configure_input,;t t
7423 s,@srcdir@,$ac_srcdir,;t t
7424 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7425 s,@top_srcdir@,$ac_top_srcdir,;t t
7426 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7427 s,@builddir@,$ac_builddir,;t t
7428 s,@abs_builddir@,$ac_abs_builddir,;t t
7429 s,@top_builddir@,$ac_top_builddir,;t t
7430 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7431 s,@INSTALL@,$ac_INSTALL,;t t
7432 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7433 rm -f $tmp/stdin
7434 if test x"$ac_file" != x-; then
7435 mv $tmp/out $ac_file
7436 else
7437 cat $tmp/out
7438 rm -f $tmp/out
7441 # Run the commands associated with the file.
7442 case $ac_file in
7443 make/ptlib-config ) chmod a+x make/ptlib-config ;;
7444 esac
7445 done
7446 _ACEOF
7447 cat >>$CONFIG_STATUS <<\_ACEOF
7450 # CONFIG_HEADER section.
7453 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7454 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7456 # ac_d sets the value in "#define NAME VALUE" lines.
7457 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7458 ac_dB='[ ].*$,\1#\2'
7459 ac_dC=' '
7460 ac_dD=',;t'
7461 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7462 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7463 ac_uB='$,\1#\2define\3'
7464 ac_uC=' '
7465 ac_uD=',;t'
7467 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7468 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7469 case $ac_file in
7470 - | *:- | *:-:* ) # input from stdin
7471 cat >$tmp/stdin
7472 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7473 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7474 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7476 * ) ac_file_in=$ac_file.in ;;
7477 esac
7479 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7480 echo "$as_me: creating $ac_file" >&6;}
7482 # First look for the input files in the build tree, otherwise in the
7483 # src tree.
7484 ac_file_inputs=`IFS=:
7485 for f in $ac_file_in; do
7486 case $f in
7487 -) echo $tmp/stdin ;;
7488 [\\/$]*)
7489 # Absolute (can't be DOS-style, as IFS=:)
7490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7491 echo "$as_me: error: cannot find input file: $f" >&2;}
7492 { (exit 1); exit 1; }; }
7493 echo $f;;
7494 *) # Relative
7495 if test -f "$f"; then
7496 # Build tree
7497 echo $f
7498 elif test -f "$srcdir/$f"; then
7499 # Source tree
7500 echo $srcdir/$f
7501 else
7502 # /dev/null tree
7503 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7504 echo "$as_me: error: cannot find input file: $f" >&2;}
7505 { (exit 1); exit 1; }; }
7506 fi;;
7507 esac
7508 done` || { (exit 1); exit 1; }
7509 # Remove the trailing spaces.
7510 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7512 _ACEOF
7514 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7515 # `conftest.undefs', that substitutes the proper values into
7516 # config.h.in to produce config.h. The first handles `#define'
7517 # templates, and the second `#undef' templates.
7518 # And first: Protect against being on the right side of a sed subst in
7519 # config.status. Protect against being in an unquoted here document
7520 # in config.status.
7521 rm -f conftest.defines conftest.undefs
7522 # Using a here document instead of a string reduces the quoting nightmare.
7523 # Putting comments in sed scripts is not portable.
7525 # `end' is used to avoid that the second main sed command (meant for
7526 # 0-ary CPP macros) applies to n-ary macro definitions.
7527 # See the Autoconf documentation for `clear'.
7528 cat >confdef2sed.sed <<\_ACEOF
7529 s/[\\&,]/\\&/g
7530 s,[\\$`],\\&,g
7531 t clear
7532 : clear
7533 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7534 t end
7535 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7536 : end
7537 _ACEOF
7538 # If some macros were called several times there might be several times
7539 # the same #defines, which is useless. Nevertheless, we may not want to
7540 # sort them, since we want the *last* AC-DEFINE to be honored.
7541 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7542 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7543 rm -f confdef2sed.sed
7545 # This sed command replaces #undef with comments. This is necessary, for
7546 # example, in the case of _POSIX_SOURCE, which is predefined and required
7547 # on some systems where configure will not decide to define it.
7548 cat >>conftest.undefs <<\_ACEOF
7549 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7550 _ACEOF
7552 # Break up conftest.defines because some shells have a limit on the size
7553 # of here documents, and old seds have small limits too (100 cmds).
7554 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7555 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7556 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7557 echo ' :' >>$CONFIG_STATUS
7558 rm -f conftest.tail
7559 while grep . conftest.defines >/dev/null
7561 # Write a limited-size here document to $tmp/defines.sed.
7562 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7563 # Speed up: don't consider the non `#define' lines.
7564 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7565 # Work around the forget-to-reset-the-flag bug.
7566 echo 't clr' >>$CONFIG_STATUS
7567 echo ': clr' >>$CONFIG_STATUS
7568 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7569 echo 'CEOF
7570 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7571 rm -f $tmp/in
7572 mv $tmp/out $tmp/in
7573 ' >>$CONFIG_STATUS
7574 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7575 rm -f conftest.defines
7576 mv conftest.tail conftest.defines
7577 done
7578 rm -f conftest.defines
7579 echo ' fi # grep' >>$CONFIG_STATUS
7580 echo >>$CONFIG_STATUS
7582 # Break up conftest.undefs because some shells have a limit on the size
7583 # of here documents, and old seds have small limits too (100 cmds).
7584 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7585 rm -f conftest.tail
7586 while grep . conftest.undefs >/dev/null
7588 # Write a limited-size here document to $tmp/undefs.sed.
7589 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7590 # Speed up: don't consider the non `#undef'
7591 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7592 # Work around the forget-to-reset-the-flag bug.
7593 echo 't clr' >>$CONFIG_STATUS
7594 echo ': clr' >>$CONFIG_STATUS
7595 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7596 echo 'CEOF
7597 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7598 rm -f $tmp/in
7599 mv $tmp/out $tmp/in
7600 ' >>$CONFIG_STATUS
7601 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7602 rm -f conftest.undefs
7603 mv conftest.tail conftest.undefs
7604 done
7605 rm -f conftest.undefs
7607 cat >>$CONFIG_STATUS <<\_ACEOF
7608 # Let's still pretend it is `configure' which instantiates (i.e., don't
7609 # use $as_me), people would be surprised to read:
7610 # /* config.h. Generated by config.status. */
7611 if test x"$ac_file" = x-; then
7612 echo "/* Generated by configure. */" >$tmp/config.h
7613 else
7614 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7616 cat $tmp/in >>$tmp/config.h
7617 rm -f $tmp/in
7618 if test x"$ac_file" != x-; then
7619 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7620 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7621 echo "$as_me: $ac_file is unchanged" >&6;}
7622 else
7623 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7624 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7625 X"$ac_file" : 'X\(//\)[^/]' \| \
7626 X"$ac_file" : 'X\(//\)$' \| \
7627 X"$ac_file" : 'X\(/\)' \| \
7628 . : '\(.\)' 2>/dev/null ||
7629 echo X"$ac_file" |
7630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7632 /^X\(\/\/\)$/{ s//\1/; q; }
7633 /^X\(\/\).*/{ s//\1/; q; }
7634 s/.*/./; q'`
7635 { if $as_mkdir_p; then
7636 mkdir -p "$ac_dir"
7637 else
7638 as_dir="$ac_dir"
7639 as_dirs=
7640 while test ! -d "$as_dir"; do
7641 as_dirs="$as_dir $as_dirs"
7642 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7644 X"$as_dir" : 'X\(//\)[^/]' \| \
7645 X"$as_dir" : 'X\(//\)$' \| \
7646 X"$as_dir" : 'X\(/\)' \| \
7647 . : '\(.\)' 2>/dev/null ||
7648 echo X"$as_dir" |
7649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7651 /^X\(\/\/\)$/{ s//\1/; q; }
7652 /^X\(\/\).*/{ s//\1/; q; }
7653 s/.*/./; q'`
7654 done
7655 test ! -n "$as_dirs" || mkdir $as_dirs
7656 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7657 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7658 { (exit 1); exit 1; }; }; }
7660 rm -f $ac_file
7661 mv $tmp/config.h $ac_file
7663 else
7664 cat $tmp/config.h
7665 rm -f $tmp/config.h
7667 done
7668 _ACEOF
7670 cat >>$CONFIG_STATUS <<\_ACEOF
7672 { (exit 0); exit 0; }
7673 _ACEOF
7674 chmod +x $CONFIG_STATUS
7675 ac_clean_files=$ac_clean_files_save
7678 # configure is writing to config.log, and then calls config.status.
7679 # config.status does its own redirection, appending to config.log.
7680 # Unfortunately, on DOS this fails, as config.log is still kept open
7681 # by configure, so config.status won't be able to write to it; its
7682 # output is simply discarded. So we exec the FD to /dev/null,
7683 # effectively closing config.log, so it can be properly (re)opened and
7684 # appended to by config.status. When coming back to configure, we
7685 # need to make the FD available again.
7686 if test "$no_create" != yes; then
7687 ac_cs_success=:
7688 ac_config_status_args=
7689 test "$silent" = yes &&
7690 ac_config_status_args="$ac_config_status_args --quiet"
7691 exec 5>/dev/null
7692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7693 exec 5>>config.log
7694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7695 # would make configure fail if this is the last instruction.
7696 $ac_cs_success || { (exit 1); exit 1; }
7700 # CONFIG_SUBDIRS section.
7702 if test "$no_recursion" != yes; then
7704 # Remove --cache-file and --srcdir arguments so they do not pile up.
7705 ac_sub_configure_args=
7706 ac_prev=
7707 for ac_arg in $ac_configure_args; do
7708 if test -n "$ac_prev"; then
7709 ac_prev=
7710 continue
7712 case $ac_arg in
7713 -cache-file | --cache-file | --cache-fil | --cache-fi \
7714 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7715 ac_prev=cache_file ;;
7716 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7717 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7718 | --c=*)
7720 --config-cache | -C)
7722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7723 ac_prev=srcdir ;;
7724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7726 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7727 ac_prev=prefix ;;
7728 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7730 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7731 esac
7732 done
7734 # Always prepend --prefix to ensure using the same prefix
7735 # in subdir configurations.
7736 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7738 ac_popdir=`pwd`
7739 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7741 # Do not complain, so a configure script can configure whichever
7742 # parts of a large source tree are present.
7743 test -d $srcdir/$ac_dir || continue
7745 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7746 echo "$as_me: configuring in $ac_dir" >&6;}
7747 { if $as_mkdir_p; then
7748 mkdir -p "$ac_dir"
7749 else
7750 as_dir="$ac_dir"
7751 as_dirs=
7752 while test ! -d "$as_dir"; do
7753 as_dirs="$as_dir $as_dirs"
7754 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7756 X"$as_dir" : 'X\(//\)[^/]' \| \
7757 X"$as_dir" : 'X\(//\)$' \| \
7758 X"$as_dir" : 'X\(/\)' \| \
7759 . : '\(.\)' 2>/dev/null ||
7760 echo X"$as_dir" |
7761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7763 /^X\(\/\/\)$/{ s//\1/; q; }
7764 /^X\(\/\).*/{ s//\1/; q; }
7765 s/.*/./; q'`
7766 done
7767 test ! -n "$as_dirs" || mkdir $as_dirs
7768 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7769 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7770 { (exit 1); exit 1; }; }; }
7772 ac_builddir=.
7774 if test "$ac_dir" != .; then
7775 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7776 # A "../" for each directory in $ac_dir_suffix.
7777 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7778 else
7779 ac_dir_suffix= ac_top_builddir=
7782 case $srcdir in
7783 .) # No --srcdir option. We are building in place.
7784 ac_srcdir=.
7785 if test -z "$ac_top_builddir"; then
7786 ac_top_srcdir=.
7787 else
7788 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7789 fi ;;
7790 [\\/]* | ?:[\\/]* ) # Absolute path.
7791 ac_srcdir=$srcdir$ac_dir_suffix;
7792 ac_top_srcdir=$srcdir ;;
7793 *) # Relative path.
7794 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7795 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7796 esac
7797 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7798 # absolute.
7799 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7800 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7801 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7802 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7805 cd $ac_dir
7807 # Check for guested configure; otherwise get Cygnus style configure.
7808 if test -f $ac_srcdir/configure.gnu; then
7809 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7810 elif test -f $ac_srcdir/configure; then
7811 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7812 elif test -f $ac_srcdir/configure.in; then
7813 ac_sub_configure=$ac_configure
7814 else
7815 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7816 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7817 ac_sub_configure=
7820 # The recursion is here.
7821 if test -n "$ac_sub_configure"; then
7822 # Make the cache file name correct relative to the subdirectory.
7823 case $cache_file in
7824 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7825 *) # Relative path.
7826 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7827 esac
7829 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7830 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7831 # The eval makes quoting arguments work.
7832 eval $ac_sub_configure $ac_sub_configure_args \
7833 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7834 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7835 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7836 { (exit 1); exit 1; }; }
7839 cd $ac_popdir
7840 done