Changes to compile with new factory code (still has warnings under linux)
[pwlib.git] / configure
blobf562c1f6dd5dcc2d353850b7737edc64a766456a
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
2566 elif test ${OSTYPE} = Darwin ; then
2567 STDCCFLAGS="$STDCCFLAGS -Wno-long-double"
2570 echo "$as_me:$LINENO: checking if readdir_r has 2 parms" >&5
2571 echo $ECHO_N "checking if readdir_r has 2 parms... $ECHO_C" >&6
2572 cat >conftest.$ac_ext <<_ACEOF
2573 #line $LINENO "configure"
2574 /* confdefs.h. */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2579 #define _POSIX_PTHREAD_SEMANTICS
2580 #include <dirent.h>
2582 main ()
2584 DIR *s; struct dirent * e; readdir_r(s, e);
2586 return 0;
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 P_HAS_POSIX_READDIR_R=2
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2606 P_HAS_POSIX_READDIR_R=0
2608 rm -f conftest.$ac_objext conftest.$ac_ext
2609 if test ${P_HAS_POSIX_READDIR_R} = 2 ; then
2610 echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6
2612 else
2613 echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6
2615 echo "$as_me:$LINENO: checking if readdir_r has 3 parms" >&5
2616 echo $ECHO_N "checking if readdir_r has 3 parms... $ECHO_C" >&6
2617 cat >conftest.$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2619 /* confdefs.h. */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2624 #include <dirent.h>
2626 main ()
2628 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
2630 return 0;
2632 _ACEOF
2633 rm -f conftest.$ac_objext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635 (eval $ac_compile) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } &&
2639 { ac_try='test -s conftest.$ac_objext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 P_HAS_POSIX_READDIR_R=3
2646 else
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2650 P_HAS_POSIX_READDIR_R=0
2652 rm -f conftest.$ac_objext conftest.$ac_ext
2653 if test ${P_HAS_POSIX_READDIR_R} = 3 ; then
2654 echo "$as_me:$LINENO: result: yes" >&5
2655 echo "${ECHO_T}yes" >&6
2656 else
2657 echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6
2661 cat >>confdefs.h <<_ACEOF
2662 #define P_HAS_POSIX_READDIR_R ${P_HAS_POSIX_READDIR_R}
2663 _ACEOF
2667 P_HAS_STL_STREAMS=0
2668 echo "$as_me:$LINENO: checking if using STL streams" >&5
2669 echo $ECHO_N "checking if using STL streams... $ECHO_C" >&6
2670 cat >conftest.$ac_ext <<_ACEOF
2671 #line $LINENO "configure"
2672 /* confdefs.h. */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2677 #include <iostream>
2679 main ()
2681 int v = (int)std::ios_base::seekdir();
2683 return 0;
2685 _ACEOF
2686 rm -f conftest.$ac_objext
2687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688 (eval $ac_compile) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
2692 { ac_try='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 P_HAS_STL_STREAMS=1
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2704 rm -f conftest.$ac_objext conftest.$ac_ext
2705 if test ${P_HAS_STL_STREAMS} = 1 ; then
2706 echo "$as_me:$LINENO: result: yes" >&5
2707 echo "${ECHO_T}yes" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2712 cat >>confdefs.h <<_ACEOF
2713 #define P_HAS_STL_STREAMS ${P_HAS_STL_STREAMS}
2714 _ACEOF
2718 P_HAS_ATOMIC_INT=0
2719 P_NEEDS_GNU_CXX_NAMESPACE=0
2720 echo "$as_me:$LINENO: checking if atomic integer available" >&5
2721 echo $ECHO_N "checking if atomic integer available... $ECHO_C" >&6
2722 cat >conftest.$ac_ext <<_ACEOF
2723 #line $LINENO "configure"
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2729 #include <bits/atomicity.h>
2731 main ()
2733 _Atomic_word val;
2735 return 0;
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 P_HAS_ATOMIC_INT=1
2751 else
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f conftest.$ac_objext conftest.$ac_ext
2757 if test ${P_HAS_ATOMIC_INT} = 1 ; then
2758 echo "$as_me:$LINENO: result: yes" >&5
2759 echo "${ECHO_T}yes" >&6
2760 echo "$as_me:$LINENO: checking if __exchange_and_add is in __gnu_cxx namespace" >&5
2761 echo $ECHO_N "checking if __exchange_and_add is in __gnu_cxx namespace... $ECHO_C" >&6
2762 cat >conftest.$ac_ext <<_ACEOF
2763 #line $LINENO "configure"
2764 /* confdefs.h. */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2769 #include <bits/atomicity.h>
2771 main ()
2773 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
2775 return 0;
2777 _ACEOF
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 P_NEEDS_GNU_CXX_NAMESPACE=1
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f conftest.$ac_objext conftest.$ac_ext
2797 if test ${P_NEEDS_GNU_CXX_NAMESPACE} = 1 ; then
2798 echo "$as_me:$LINENO: result: yes" >&5
2799 echo "${ECHO_T}yes" >&6
2800 else
2801 echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6
2804 else
2805 echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2808 cat >>confdefs.h <<_ACEOF
2809 #define P_HAS_ATOMIC_INT ${P_HAS_ATOMIC_INT}
2810 _ACEOF
2812 cat >>confdefs.h <<_ACEOF
2813 #define P_NEEDS_GNU_CXX_NAMESPACE ${P_NEEDS_GNU_CXX_NAMESPACE}
2814 _ACEOF
2819 if test "${OSTYPE:-unknown}" = "solaris"; then
2820 echo "$as_me:$LINENO: checking checking for FD_SETSIZE" >&5
2821 echo $ECHO_N "checking checking for FD_SETSIZE... $ECHO_C" >&6
2822 _FD_SYSTEM_FILE=/etc/system
2823 _FD_SETSIZE=`cat $_FD_SYSTEM_FILE | grep rlim_fd_max | cut -c1`
2824 if test "$_FD_SETSIZE" = "#"; then
2825 _FD_SETSIZE=4098
2826 else
2827 _FD_SETSIZE=`cat $_FD_SYSTEM_FILE | grep rlim_fd_max | cut -f2 -d'='`
2828 if test "x$_FD_SETSIZE" = "x"; then
2829 _FD_SETSIZE=4098
2830 else
2831 STDCCFLAGS="$STDCCFLAGS -DFD_SETSIZE=$_FD_SETSIZE"
2834 echo "$as_me:$LINENO: result: $_FD_SETSIZE" >&5
2835 echo "${ECHO_T}$_FD_SETSIZE" >&6
2839 if test ${OSTYPE} != Darwin ; then
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2842 /* confdefs.h. */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847 #include <semaphore.h>
2849 main ()
2851 sem_t *s; sem_init(s, 0, 0);
2853 return 0;
2855 _ACEOF
2856 rm -f conftest.$ac_objext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -s conftest.$ac_objext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 P_HAS_SEMAPHORES=1
2869 else
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2874 rm -f conftest.$ac_objext conftest.$ac_ext
2875 echo "$as_me:$LINENO: checking if Unix semaphores are available" >&5
2876 echo $ECHO_N "checking if Unix semaphores are available... $ECHO_C" >&6
2877 if test "${P_HAS_SEMAPHORES}x" != "x" ; then
2878 cat >>confdefs.h <<\_ACEOF
2879 #define P_HAS_SEMAPHORES 1
2880 _ACEOF
2882 echo "$as_me:$LINENO: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6
2884 else
2885 echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2887 { echo "$as_me:$LINENO: WARNING: This host does not support semaphores which are essential" >&5
2888 echo "$as_me: WARNING: This host does not support semaphores which are essential" >&2;}
2889 { echo "$as_me:$LINENO: WARNING: to implement 'critical sections'. This feature was added" >&5
2890 echo "$as_me: WARNING: to implement 'critical sections'. This feature was added" >&2;}
2891 { echo "$as_me:$LINENO: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&5
2892 echo "$as_me: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&2;}
2893 { echo "$as_me:$LINENO: WARNING: programs. This feature has been disabled for this host" >&5
2894 echo "$as_me: WARNING: programs. This feature has been disabled for this host" >&2;}
2901 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2902 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2903 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 ac_check_lib_save_LIBS=$LIBS
2907 LIBS="-lpthread $LIBS"
2908 cat >conftest.$ac_ext <<_ACEOF
2909 #line $LINENO "configure"
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 #ifdef __cplusplus
2918 extern "C"
2919 #endif
2920 /* We use char because int might match the return type of a gcc2
2921 builtin and then its argument prototype would still apply. */
2922 char pthread_create ();
2924 main ()
2926 pthread_create ();
2928 return 0;
2930 _ACEOF
2931 rm -f conftest.$ac_objext conftest$ac_exeext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933 (eval $ac_link) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } &&
2937 { ac_try='test -s conftest$ac_exeext'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 ac_cv_lib_pthread_pthread_create=yes
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 ac_cv_lib_pthread_pthread_create=no
2950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2951 LIBS=$ac_check_lib_save_LIBS
2953 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2954 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2955 if test $ac_cv_lib_pthread_pthread_create = yes; then
2956 HAS_PTHREADS=yes
2957 else
2958 HAS_PTHREADS=no
2961 if test ${HAS_PTHREADS} = yes ; then
2962 ENDLDLIBS="$ENDLDLIBS -lpthread"
2963 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
2964 else
2965 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2966 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2967 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 ac_check_lib_save_LIBS=$LIBS
2971 LIBS="-lc_r $LIBS"
2972 cat >conftest.$ac_ext <<_ACEOF
2973 #line $LINENO "configure"
2974 /* confdefs.h. */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2980 /* Override any gcc2 internal prototype to avoid an error. */
2981 #ifdef __cplusplus
2982 extern "C"
2983 #endif
2984 /* We use char because int might match the return type of a gcc2
2985 builtin and then its argument prototype would still apply. */
2986 char pthread_create ();
2988 main ()
2990 pthread_create ();
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext conftest$ac_exeext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2997 (eval $ac_link) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -s conftest$ac_exeext'
3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 (eval $ac_try) 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
3007 ac_cv_lib_c_r_pthread_create=yes
3008 else
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3012 ac_cv_lib_c_r_pthread_create=no
3014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3015 LIBS=$ac_check_lib_save_LIBS
3017 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
3018 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
3019 if test $ac_cv_lib_c_r_pthread_create = yes; then
3020 HAS_PTHREADS=yes
3021 else
3022 HAS_PTHREADS=no
3025 if test ${HAS_PTHREADS} = yes ; then
3026 ENDLDLIBS="$ENDLDLIBS -pthread"
3027 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
3032 if test ${HAS_PTHREADS} != yes ; then
3033 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
3034 echo "$as_me: error: must have pthreads!" >&2;}
3035 { (exit 1); exit 1; }; }
3039 if test ${HAS_PTHREADS} = yes ; then
3040 echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
3041 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6
3042 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045 ac_check_lib_save_LIBS=$LIBS
3046 LIBS="-lpthread $LIBS"
3047 cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3055 /* Override any gcc2 internal prototype to avoid an error. */
3056 #ifdef __cplusplus
3057 extern "C"
3058 #endif
3059 /* We use char because int might match the return type of a gcc2
3060 builtin and then its argument prototype would still apply. */
3061 char pthread_mutex_timedlock ();
3063 main ()
3065 pthread_mutex_timedlock ();
3067 return 0;
3069 _ACEOF
3070 rm -f conftest.$ac_objext conftest$ac_exeext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3072 (eval $ac_link) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -s conftest$ac_exeext'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3082 ac_cv_lib_pthread_pthread_mutex_timedlock=yes
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 ac_cv_lib_pthread_pthread_mutex_timedlock=no
3089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3090 LIBS=$ac_check_lib_save_LIBS
3092 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
3093 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6
3094 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
3095 HAS_PTHREADS_XPG6=yes
3096 else
3097 HAS_PTHREADS_XPG6=no
3100 if test ${HAS_PTHREADS_XPG6} = yes ; then
3102 cat >>confdefs.h <<\_ACEOF
3103 #define P_PTHREADS_XPG6 1
3104 _ACEOF
3108 echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
3109 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6
3110 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 ac_check_lib_save_LIBS=$LIBS
3114 LIBS="-lpthread $LIBS"
3115 cat >conftest.$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3123 /* Override any gcc2 internal prototype to avoid an error. */
3124 #ifdef __cplusplus
3125 extern "C"
3126 #endif
3127 /* We use char because int might match the return type of a gcc2
3128 builtin and then its argument prototype would still apply. */
3129 char sem_timedwait ();
3131 main ()
3133 sem_timedwait ();
3135 return 0;
3137 _ACEOF
3138 rm -f conftest.$ac_objext conftest$ac_exeext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3140 (eval $ac_link) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -s conftest$ac_exeext'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_lib_pthread_sem_timedwait=yes
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 ac_cv_lib_pthread_sem_timedwait=no
3157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3158 LIBS=$ac_check_lib_save_LIBS
3160 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
3161 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6
3162 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
3163 HAS_SEMAPHORES_XPG6=yes
3164 else
3165 HAS_SEMAPHORES_XPG6=no
3168 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3169 echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
3170 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6
3171 cat >conftest.$ac_ext <<_ACEOF
3172 #line $LINENO "configure"
3173 /* confdefs.h. */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3178 #include <semaphore.h>
3180 main ()
3182 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
3184 return 0;
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -s conftest.$ac_objext'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 (eval $ac_try) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 HAS_SEMAPHORES_XPG6=yes
3200 else
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 HAS_SEMAPHORES_XPG6=no
3206 rm -f conftest.$ac_objext conftest.$ac_ext
3207 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3209 cat >>confdefs.h <<\_ACEOF
3210 #define P_HAS_SEMAPHORES_XPG6 1
3211 _ACEOF
3213 echo "$as_me:$LINENO: result: yes" >&5
3214 echo "${ECHO_T}yes" >&6
3215 else
3216 echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3222 P_HAS_RECURSIVE_MUTEX=0
3223 echo "$as_me:$LINENO: checking if recursive mutexes are available" >&5
3224 echo $ECHO_N "checking if recursive mutexes are available... $ECHO_C" >&6
3225 cat >conftest.$ac_ext <<_ACEOF
3226 #line $LINENO "configure"
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232 #include <pthread.h>
3234 main ()
3236 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
3238 return 0;
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 P_HAS_RECURSIVE_MUTEX=1
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3259 rm -f conftest.$ac_objext conftest.$ac_ext
3260 if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then
3261 echo "$as_me:$LINENO: result: yes" >&5
3262 echo "${ECHO_T}yes" >&6
3263 else
3264 echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3267 cat >>confdefs.h <<_ACEOF
3268 #define P_HAS_RECURSIVE_MUTEX ${P_HAS_RECURSIVE_MUTEX}
3269 _ACEOF
3274 ac_ext=cc
3275 ac_cpp='$CXXCPP $CPPFLAGS'
3276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3279 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3280 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3281 if test -z "$CXXCPP"; then
3282 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 # Double quotes because CXXCPP needs to be expanded
3286 for CXXCPP in "$CXX -E" "/lib/cpp"
3288 ac_preproc_ok=false
3289 for ac_cxx_preproc_warn_flag in '' yes
3291 # Use a header file that comes with gcc, so configuring glibc
3292 # with a fresh cross-compiler works.
3293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3294 # <limits.h> exists even on freestanding compilers.
3295 # On the NeXT, cc -E runs the code through the compiler's parser,
3296 # not just through cpp. "Syntax error" is here to catch this case.
3297 cat >conftest.$ac_ext <<_ACEOF
3298 #line $LINENO "configure"
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 #ifdef __STDC__
3305 # include <limits.h>
3306 #else
3307 # include <assert.h>
3308 #endif
3309 Syntax error
3310 _ACEOF
3311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } >/dev/null; then
3319 if test -s conftest.err; then
3320 ac_cpp_err=$ac_cxx_preproc_warn_flag
3321 else
3322 ac_cpp_err=
3324 else
3325 ac_cpp_err=yes
3327 if test -z "$ac_cpp_err"; then
3329 else
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 # Broken: fails on valid input.
3334 continue
3336 rm -f conftest.err conftest.$ac_ext
3338 # OK, works on sane cases. Now check whether non-existent headers
3339 # can be detected and how.
3340 cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #include <ac_nonexistent.h>
3348 _ACEOF
3349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } >/dev/null; then
3357 if test -s conftest.err; then
3358 ac_cpp_err=$ac_cxx_preproc_warn_flag
3359 else
3360 ac_cpp_err=
3362 else
3363 ac_cpp_err=yes
3365 if test -z "$ac_cpp_err"; then
3366 # Broken: success on invalid input.
3367 continue
3368 else
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 # Passes both tests.
3373 ac_preproc_ok=:
3374 break
3376 rm -f conftest.err conftest.$ac_ext
3378 done
3379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3380 rm -f conftest.err conftest.$ac_ext
3381 if $ac_preproc_ok; then
3382 break
3385 done
3386 ac_cv_prog_CXXCPP=$CXXCPP
3389 CXXCPP=$ac_cv_prog_CXXCPP
3390 else
3391 ac_cv_prog_CXXCPP=$CXXCPP
3393 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3394 echo "${ECHO_T}$CXXCPP" >&6
3395 ac_preproc_ok=false
3396 for ac_cxx_preproc_warn_flag in '' yes
3398 # Use a header file that comes with gcc, so configuring glibc
3399 # with a fresh cross-compiler works.
3400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3401 # <limits.h> exists even on freestanding compilers.
3402 # On the NeXT, cc -E runs the code through the compiler's parser,
3403 # not just through cpp. "Syntax error" is here to catch this case.
3404 cat >conftest.$ac_ext <<_ACEOF
3405 #line $LINENO "configure"
3406 /* confdefs.h. */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #ifdef __STDC__
3412 # include <limits.h>
3413 #else
3414 # include <assert.h>
3415 #endif
3416 Syntax error
3417 _ACEOF
3418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_cxx_preproc_warn_flag
3428 else
3429 ac_cpp_err=
3431 else
3432 ac_cpp_err=yes
3434 if test -z "$ac_cpp_err"; then
3436 else
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 # Broken: fails on valid input.
3441 continue
3443 rm -f conftest.err conftest.$ac_ext
3445 # OK, works on sane cases. Now check whether non-existent headers
3446 # can be detected and how.
3447 cat >conftest.$ac_ext <<_ACEOF
3448 #line $LINENO "configure"
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #include <ac_nonexistent.h>
3455 _ACEOF
3456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } >/dev/null; then
3464 if test -s conftest.err; then
3465 ac_cpp_err=$ac_cxx_preproc_warn_flag
3466 else
3467 ac_cpp_err=
3469 else
3470 ac_cpp_err=yes
3472 if test -z "$ac_cpp_err"; then
3473 # Broken: success on invalid input.
3474 continue
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 # Passes both tests.
3480 ac_preproc_ok=:
3481 break
3483 rm -f conftest.err conftest.$ac_ext
3485 done
3486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3487 rm -f conftest.err conftest.$ac_ext
3488 if $ac_preproc_ok; then
3490 else
3491 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3492 See \`config.log' for more details." >&5
3493 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3494 See \`config.log' for more details." >&2;}
3495 { (exit 1); exit 1; }; }
3498 ac_ext=cc
3499 ac_cpp='$CXXCPP $CPPFLAGS'
3500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3505 echo "$as_me:$LINENO: checking for egrep" >&5
3506 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3507 if test "${ac_cv_prog_egrep+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3511 then ac_cv_prog_egrep='grep -E'
3512 else ac_cv_prog_egrep='egrep'
3515 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3516 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3517 EGREP=$ac_cv_prog_egrep
3520 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3521 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3522 if test "${ac_cv_header_stdc+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 cat >conftest.$ac_ext <<_ACEOF
3526 #line $LINENO "configure"
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3532 #include <stdlib.h>
3533 #include <stdarg.h>
3534 #include <string.h>
3535 #include <float.h>
3538 main ()
3542 return 0;
3544 _ACEOF
3545 rm -f conftest.$ac_objext
3546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547 (eval $ac_compile) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_cv_header_stdc=yes
3558 else
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 ac_cv_header_stdc=no
3564 rm -f conftest.$ac_objext conftest.$ac_ext
3566 if test $ac_cv_header_stdc = yes; then
3567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3568 cat >conftest.$ac_ext <<_ACEOF
3569 #line $LINENO "configure"
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 #include <string.h>
3577 _ACEOF
3578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579 $EGREP "memchr" >/dev/null 2>&1; then
3581 else
3582 ac_cv_header_stdc=no
3584 rm -f conftest*
3588 if test $ac_cv_header_stdc = yes; then
3589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3590 cat >conftest.$ac_ext <<_ACEOF
3591 #line $LINENO "configure"
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <stdlib.h>
3599 _ACEOF
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 $EGREP "free" >/dev/null 2>&1; then
3603 else
3604 ac_cv_header_stdc=no
3606 rm -f conftest*
3610 if test $ac_cv_header_stdc = yes; then
3611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3612 if test "$cross_compiling" = yes; then
3614 else
3615 cat >conftest.$ac_ext <<_ACEOF
3616 #line $LINENO "configure"
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <ctype.h>
3623 #if ((' ' & 0x0FF) == 0x020)
3624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3626 #else
3627 # define ISLOWER(c) \
3628 (('a' <= (c) && (c) <= 'i') \
3629 || ('j' <= (c) && (c) <= 'r') \
3630 || ('s' <= (c) && (c) <= 'z'))
3631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3632 #endif
3634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3636 main ()
3638 int i;
3639 for (i = 0; i < 256; i++)
3640 if (XOR (islower (i), ISLOWER (i))
3641 || toupper (i) != TOUPPER (i))
3642 exit(2);
3643 exit (0);
3645 _ACEOF
3646 rm -f conftest$ac_exeext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3648 (eval $ac_link) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3658 else
3659 echo "$as_me: program exited with status $ac_status" >&5
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 ( exit $ac_status )
3664 ac_cv_header_stdc=no
3666 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3670 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3671 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3672 if test $ac_cv_header_stdc = yes; then
3674 cat >>confdefs.h <<\_ACEOF
3675 #define STDC_HEADERS 1
3676 _ACEOF
3680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3690 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3691 inttypes.h stdint.h unistd.h
3693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3694 echo "$as_me:$LINENO: checking for $ac_header" >&5
3695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 cat >conftest.$ac_ext <<_ACEOF
3700 #line $LINENO "configure"
3701 /* confdefs.h. */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 $ac_includes_default
3708 #include <$ac_header>
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 eval "$as_ac_Header=yes"
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 eval "$as_ac_Header=no"
3729 rm -f conftest.$ac_objext conftest.$ac_ext
3731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3734 cat >>confdefs.h <<_ACEOF
3735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3736 _ACEOF
3740 done
3744 for ac_header in regex.h
3746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3748 echo "$as_me:$LINENO: checking for $ac_header" >&5
3749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3755 else
3756 # Is the header compilable?
3757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3760 #line $LINENO "configure"
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 $ac_includes_default
3767 #include <$ac_header>
3768 _ACEOF
3769 rm -f conftest.$ac_objext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3771 (eval $ac_compile) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -s conftest.$ac_objext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 ac_header_compiler=yes
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 ac_header_compiler=no
3788 rm -f conftest.$ac_objext conftest.$ac_ext
3789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3790 echo "${ECHO_T}$ac_header_compiler" >&6
3792 # Is the header present?
3793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3795 cat >conftest.$ac_ext <<_ACEOF
3796 #line $LINENO "configure"
3797 /* confdefs.h. */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <$ac_header>
3803 _ACEOF
3804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3806 ac_status=$?
3807 grep -v '^ *+' conftest.er1 >conftest.err
3808 rm -f conftest.er1
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } >/dev/null; then
3812 if test -s conftest.err; then
3813 ac_cpp_err=$ac_cxx_preproc_warn_flag
3814 else
3815 ac_cpp_err=
3817 else
3818 ac_cpp_err=yes
3820 if test -z "$ac_cpp_err"; then
3821 ac_header_preproc=yes
3822 else
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 ac_header_preproc=no
3828 rm -f conftest.err conftest.$ac_ext
3829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3830 echo "${ECHO_T}$ac_header_preproc" >&6
3832 # So? What about this header?
3833 case $ac_header_compiler:$ac_header_preproc in
3834 yes:no )
3835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3840 cat <<\_ASBOX
3841 ## ------------------------------------ ##
3842 ## Report this to bug-autoconf@gnu.org. ##
3843 ## ------------------------------------ ##
3844 _ASBOX
3846 sed "s/^/$as_me: WARNING: /" >&2
3848 no:yes )
3849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3856 cat <<\_ASBOX
3857 ## ------------------------------------ ##
3858 ## Report this to bug-autoconf@gnu.org. ##
3859 ## ------------------------------------ ##
3860 _ASBOX
3862 sed "s/^/$as_me: WARNING: /" >&2
3864 esac
3865 echo "$as_me:$LINENO: checking for $ac_header" >&5
3866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 eval "$as_ac_Header=$ac_header_preproc"
3872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3877 cat >>confdefs.h <<_ACEOF
3878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3879 _ACEOF
3880 HAS_REGEX=yes
3883 done
3886 # Check whether --enable-internalregex or --disable-internalregex was given.
3887 if test "${enable_internalregex+set}" = set; then
3888 enableval="$enable_internalregex"
3889 internalregex=$enableval
3891 if test "$internalregex" = "yes" ; then
3892 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3893 echo "$as_me: Forcing use of internal regex library" >&6;}
3894 else
3895 if test "$HAS_REGEX" = "yes" ; then
3896 echo "$as_me:$LINENO: checking for regcomp" >&5
3897 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3898 if test "${ac_cv_func_regcomp+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line $LINENO "configure"
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 /* System header to define __stub macros and hopefully few prototypes,
3909 which can conflict with char regcomp (); below.
3910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 <limits.h> exists even on freestanding compilers. */
3912 #ifdef __STDC__
3913 # include <limits.h>
3914 #else
3915 # include <assert.h>
3916 #endif
3917 /* Override any gcc2 internal prototype to avoid an error. */
3918 #ifdef __cplusplus
3919 extern "C"
3921 #endif
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3924 char regcomp ();
3925 /* The GNU C library defines this for functions which it implements
3926 to always fail with ENOSYS. Some functions are actually named
3927 something starting with __ and the normal name is an alias. */
3928 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3929 choke me
3930 #else
3931 char (*f) () = regcomp;
3932 #endif
3933 #ifdef __cplusplus
3935 #endif
3938 main ()
3940 return f != regcomp;
3942 return 0;
3944 _ACEOF
3945 rm -f conftest.$ac_objext conftest$ac_exeext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3947 (eval $ac_link) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
3951 { ac_try='test -s conftest$ac_exeext'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3957 ac_cv_func_regcomp=yes
3958 else
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 ac_cv_func_regcomp=no
3964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3966 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3967 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3968 if test $ac_cv_func_regcomp = yes; then
3969 HAS_REGEX=yes
3972 if test "$HAS_REGEX" = "yes" ; then
3973 HAS_REGEX=1
3976 cat >>confdefs.h <<\_ACEOF
3977 #define P_REGEX 1
3978 _ACEOF
3987 LIBS=""
3988 HAS_LIBDL=no
3989 P_DYNALINK=0
3990 if test ${OSTYPE} = beos ; then
3991 P_DYNALINK=1
3993 cat >>confdefs.h <<\_ACEOF
3994 #define P_DYNALINK 1
3995 _ACEOF
3997 elif test ${OSTYPE} = Darwin ; then
3998 P_DYNALINK=1
4000 cat >>confdefs.h <<\_ACEOF
4001 #define P_DYNALINK 1
4002 _ACEOF
4004 else
4006 for ac_header in dlfcn.h
4008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4010 echo "$as_me:$LINENO: checking for $ac_header" >&5
4011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4017 else
4018 # Is the header compilable?
4019 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4021 cat >conftest.$ac_ext <<_ACEOF
4022 #line $LINENO "configure"
4023 /* confdefs.h. */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 $ac_includes_default
4029 #include <$ac_header>
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 ac_header_compiler=yes
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 ac_header_compiler=no
4050 rm -f conftest.$ac_objext conftest.$ac_ext
4051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4052 echo "${ECHO_T}$ac_header_compiler" >&6
4054 # Is the header present?
4055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4057 cat >conftest.$ac_ext <<_ACEOF
4058 #line $LINENO "configure"
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 #include <$ac_header>
4065 _ACEOF
4066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } >/dev/null; then
4074 if test -s conftest.err; then
4075 ac_cpp_err=$ac_cxx_preproc_warn_flag
4076 else
4077 ac_cpp_err=
4079 else
4080 ac_cpp_err=yes
4082 if test -z "$ac_cpp_err"; then
4083 ac_header_preproc=yes
4084 else
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 ac_header_preproc=no
4090 rm -f conftest.err conftest.$ac_ext
4091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4092 echo "${ECHO_T}$ac_header_preproc" >&6
4094 # So? What about this header?
4095 case $ac_header_compiler:$ac_header_preproc in
4096 yes:no )
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4102 cat <<\_ASBOX
4103 ## ------------------------------------ ##
4104 ## Report this to bug-autoconf@gnu.org. ##
4105 ## ------------------------------------ ##
4106 _ASBOX
4108 sed "s/^/$as_me: WARNING: /" >&2
4110 no:yes )
4111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4118 cat <<\_ASBOX
4119 ## ------------------------------------ ##
4120 ## Report this to bug-autoconf@gnu.org. ##
4121 ## ------------------------------------ ##
4122 _ASBOX
4124 sed "s/^/$as_me: WARNING: /" >&2
4126 esac
4127 echo "$as_me:$LINENO: checking for $ac_header" >&5
4128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 eval "$as_ac_Header=$ac_header_preproc"
4134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4139 cat >>confdefs.h <<_ACEOF
4140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141 _ACEOF
4142 HAS_DLFCN=yes
4143 else
4144 HAS_DLFCN=no
4147 done
4149 if test "$HAS_DLFCN" = yes ; then
4150 echo "$as_me:$LINENO: checking if dlopen is available" >&5
4151 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
4152 cat >conftest.$ac_ext <<_ACEOF
4153 #line $LINENO "configure"
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 #include <dlfcn.h>
4161 main ()
4163 void * p = dlopen("lib", 0);
4165 return 0;
4167 _ACEOF
4168 rm -f conftest.$ac_objext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170 (eval $ac_compile) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 HAS_DLOPEN=yes
4181 else
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 HAS_DLOPEN=no
4187 rm -f conftest.$ac_objext conftest.$ac_ext
4188 if test "$HAS_DLOPEN" = no ; then
4189 echo "$as_me:$LINENO: result: no" >&5
4190 echo "${ECHO_T}no" >&6
4191 else
4192 echo "$as_me:$LINENO: result: yes" >&5
4193 echo "${ECHO_T}yes" >&6
4194 P_DYNALINK=1
4196 cat >>confdefs.h <<\_ACEOF
4197 #define P_DYNALINK 1
4198 _ACEOF
4200 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4201 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4202 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 ac_check_lib_save_LIBS=$LIBS
4206 LIBS="-ldl $LIBS"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 /* confdefs.h. */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4215 /* Override any gcc2 internal prototype to avoid an error. */
4216 #ifdef __cplusplus
4217 extern "C"
4218 #endif
4219 /* We use char because int might match the return type of a gcc2
4220 builtin and then its argument prototype would still apply. */
4221 char dlopen ();
4223 main ()
4225 dlopen ();
4227 return 0;
4229 _ACEOF
4230 rm -f conftest.$ac_objext conftest$ac_exeext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4232 (eval $ac_link) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -s conftest$ac_exeext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_lib_dl_dlopen=yes
4243 else
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 ac_cv_lib_dl_dlopen=no
4249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4250 LIBS=$ac_check_lib_save_LIBS
4252 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4253 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4254 if test $ac_cv_lib_dl_dlopen = yes; then
4255 HAS_LIBDL=yes
4256 else
4257 HAS_LIBDL=no
4264 plugins="no"
4265 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
4266 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
4267 # Check whether --enable-plugins or --disable-plugins was given.
4268 if test "${enable_plugins+set}" = set; then
4269 enableval="$enable_plugins"
4270 plugins=$enableval
4273 HAS_PLUGINS=0
4274 if test "${plugins}" = "no" ; then
4275 echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6
4277 elif test "${P_DYNALINK:-unset}" = "unset" ; then
4278 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
4279 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
4280 else
4281 echo "$as_me:$LINENO: result: plugins enabled" >&5
4282 echo "${ECHO_T}plugins enabled" >&6
4283 HAS_PLUGINS=1
4285 cat >>confdefs.h <<\_ACEOF
4286 #define P_HAS_PLUGINS 1
4287 _ACEOF
4293 if test "x$LIB64" != "x" ; then
4295 cat >>confdefs.h <<_ACEOF
4296 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
4297 _ACEOF
4299 else
4301 cat >>confdefs.h <<_ACEOF
4302 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
4303 _ACEOF
4309 # Check whether --enable-resolver or --disable-resolver was given.
4310 if test "${enable_resolver+set}" = set; then
4311 enableval="$enable_resolver"
4312 resolver=$enableval
4315 if test "$resolver" = "no" ; then
4316 cat >>confdefs.h <<\_ACEOF
4317 #define P_DNS 0
4318 _ACEOF
4320 else
4321 echo "$as_me:$LINENO: checking for res_search" >&5
4322 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4323 if test "${ac_cv_func_res_search+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 cat >conftest.$ac_ext <<_ACEOF
4327 #line $LINENO "configure"
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 /* System header to define __stub macros and hopefully few prototypes,
4334 which can conflict with char res_search (); below.
4335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 <limits.h> exists even on freestanding compilers. */
4337 #ifdef __STDC__
4338 # include <limits.h>
4339 #else
4340 # include <assert.h>
4341 #endif
4342 /* Override any gcc2 internal prototype to avoid an error. */
4343 #ifdef __cplusplus
4344 extern "C"
4346 #endif
4347 /* We use char because int might match the return type of a gcc2
4348 builtin and then its argument prototype would still apply. */
4349 char res_search ();
4350 /* The GNU C library defines this for functions which it implements
4351 to always fail with ENOSYS. Some functions are actually named
4352 something starting with __ and the normal name is an alias. */
4353 #if defined (__stub_res_search) || defined (__stub___res_search)
4354 choke me
4355 #else
4356 char (*f) () = res_search;
4357 #endif
4358 #ifdef __cplusplus
4360 #endif
4363 main ()
4365 return f != res_search;
4367 return 0;
4369 _ACEOF
4370 rm -f conftest.$ac_objext conftest$ac_exeext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4372 (eval $ac_link) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try='test -s conftest$ac_exeext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_func_res_search=yes
4383 else
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_cv_func_res_search=no
4389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4392 echo "${ECHO_T}$ac_cv_func_res_search" >&6
4393 if test $ac_cv_func_res_search = yes; then
4394 HAVE_RESOLVER=1
4397 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4398 RESOLVER_LIBS=""
4399 else
4400 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
4401 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
4402 LIBS="-lresolv"
4403 cat >conftest.$ac_ext <<_ACEOF
4405 #include <netinet/in.h>
4406 #include <resolv.h>
4407 int main(int argc,char **argv){
4408 res_search (NULL, 0, 0, NULL, 0);
4410 _ACEOF
4411 rm -f conftest.$ac_objext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413 (eval $ac_compile) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4423 HAVE_RESOLVER=1
4424 else
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4429 rm -f conftest.$ac_objext conftest.$ac_ext
4430 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4431 echo "$as_me:$LINENO: result: yes" >&5
4432 echo "${ECHO_T}yes" >&6
4433 RESOLVER_LIBS="-lresolv"
4434 else
4435 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
4436 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
4437 if test "${ac_cv_search___res_search+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 ac_func_search_save_LIBS=$LIBS
4441 ac_cv_search___res_search=no
4442 cat >conftest.$ac_ext <<_ACEOF
4443 #line $LINENO "configure"
4444 /* confdefs.h. */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4450 /* Override any gcc2 internal prototype to avoid an error. */
4451 #ifdef __cplusplus
4452 extern "C"
4453 #endif
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4456 char __res_search ();
4458 main ()
4460 __res_search ();
4462 return 0;
4464 _ACEOF
4465 rm -f conftest.$ac_objext conftest$ac_exeext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467 (eval $ac_link) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -s conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_search___res_search="none required"
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4484 if test "$ac_cv_search___res_search" = no; then
4485 for ac_lib in resolv; do
4486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4487 cat >conftest.$ac_ext <<_ACEOF
4488 #line $LINENO "configure"
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4495 /* Override any gcc2 internal prototype to avoid an error. */
4496 #ifdef __cplusplus
4497 extern "C"
4498 #endif
4499 /* We use char because int might match the return type of a gcc2
4500 builtin and then its argument prototype would still apply. */
4501 char __res_search ();
4503 main ()
4505 __res_search ();
4507 return 0;
4509 _ACEOF
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -s conftest$ac_exeext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 ac_cv_search___res_search="-l$ac_lib"
4523 break
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4530 done
4532 LIBS=$ac_func_search_save_LIBS
4534 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4535 echo "${ECHO_T}$ac_cv_search___res_search" >&6
4536 if test "$ac_cv_search___res_search" != no; then
4537 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
4538 HAVE_RESOLVER=1
4544 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4546 cat >>confdefs.h <<\_ACEOF
4547 #define P_DNS 1
4548 _ACEOF
4555 # Check whether --enable-sasl or --disable-sasl was given.
4556 if test "${enable_sasl+set}" = set; then
4557 enableval="$enable_sasl"
4558 sasl=$enableval
4561 if test "$sasl" = "no" ; then
4562 { echo "$as_me:$LINENO: SASL disabled" >&5
4563 echo "$as_me: SASL disabled" >&6;}
4564 else
4566 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4567 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4568 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 ac_check_lib_save_LIBS=$LIBS
4572 LIBS="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4573 cat >conftest.$ac_ext <<_ACEOF
4574 #line $LINENO "configure"
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 #ifdef __cplusplus
4583 extern "C"
4584 #endif
4585 /* We use char because int might match the return type of a gcc2
4586 builtin and then its argument prototype would still apply. */
4587 char sasl_version ();
4589 main ()
4591 sasl_version ();
4593 return 0;
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598 (eval $ac_link) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -s conftest$ac_exeext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 ac_cv_lib_sasl2_sasl_version=yes
4609 else
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4613 ac_cv_lib_sasl2_sasl_version=no
4615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4616 LIBS=$ac_check_lib_save_LIBS
4618 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4619 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4620 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4621 HAS_SASL2=1
4622 else
4623 HAS_SASL2=
4626 if test "${HAS_SASL2}x" = "x" ; then
4627 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4628 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4629 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 ac_check_lib_save_LIBS=$LIBS
4633 LIBS="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4634 cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4642 /* Override any gcc2 internal prototype to avoid an error. */
4643 #ifdef __cplusplus
4644 extern "C"
4645 #endif
4646 /* We use char because int might match the return type of a gcc2
4647 builtin and then its argument prototype would still apply. */
4648 char sasl_client_auth ();
4650 main ()
4652 sasl_client_auth ();
4654 return 0;
4656 _ACEOF
4657 rm -f conftest.$ac_objext conftest$ac_exeext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659 (eval $ac_link) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -s conftest$ac_exeext'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4669 ac_cv_lib_sasl_sasl_client_auth=yes
4670 else
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 ac_cv_lib_sasl_sasl_client_auth=no
4676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4677 LIBS=$ac_check_lib_save_LIBS
4679 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4680 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4681 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4682 HAS_SASL=1
4683 else
4684 HAS_SASL=
4689 echo "$as_me:$LINENO: checking if <sasl.h> works" >&5
4690 echo $ECHO_N "checking if <sasl.h> works... $ECHO_C" >&6
4691 cat >conftest.$ac_ext <<_ACEOF
4692 #include <sasl.h>
4693 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
4694 _ACEOF
4695 rm -f conftest.$ac_objext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -s conftest.$ac_objext'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 HAS_INCLUDE_SASL_H=1
4708 else
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4713 rm -f conftest.$ac_objext conftest.$ac_ext
4714 if test "${HAS_INCLUDE_SASL_H}x" != "x" ; then
4715 echo "$as_me:$LINENO: result: yes" >&5
4716 echo "${ECHO_T}yes" >&6
4717 SASL_INCLUDED=1
4718 else
4719 echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6
4721 echo "$as_me:$LINENO: checking if <sasl/sasl.h> works" >&5
4722 echo $ECHO_N "checking if <sasl/sasl.h> works... $ECHO_C" >&6
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #include <sasl/sasl.h>
4725 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
4726 _ACEOF
4727 rm -f conftest.$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 P_HAS_SASL_SASL_H=1
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4745 rm -f conftest.$ac_objext conftest.$ac_ext
4746 if test "${P_HAS_SASL_SASL_H}x" != "x" ; then
4747 echo "$as_me:$LINENO: result: yes" >&5
4748 echo "${ECHO_T}yes" >&6
4749 SASL_INCLUDED=1
4750 cat >>confdefs.h <<\_ACEOF
4751 #define P_HAS_SASL_SASL_H 1
4752 _ACEOF
4754 else
4755 echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6
4760 if test "${HAS_SASL2}x" != "x" ; then
4761 HAS_SASL2=1
4762 ENDLDLIBS="$ENDLDLIBS -lsasl2"
4763 cat >>confdefs.h <<\_ACEOF
4764 #define P_SASL2 1
4765 _ACEOF
4767 HAS_SASL2=1
4769 elif test "${HAS_SASL}x" != "x" ; then
4770 HAS_SASL=1
4771 ENDLDLIBS="$ENDLDLIBS -lsasl"
4772 cat >>confdefs.h <<\_ACEOF
4773 #define P_SASL 1
4774 _ACEOF
4776 HAS_SASL=1
4778 else
4779 HAS_SASL=0
4785 # Check whether --enable-openldap or --disable-openldap was given.
4786 if test "${enable_openldap+set}" = set; then
4787 enableval="$enable_openldap"
4788 openldap=$enableval
4791 if test "$openldap" = "no" ; then
4792 HAS_OPENLDAP=0
4794 cat >>confdefs.h <<\_ACEOF
4795 #define P_LDAP 0
4796 _ACEOF
4798 else
4799 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4801 for ac_header in ldap.h
4803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4805 echo "$as_me:$LINENO: checking for $ac_header" >&5
4806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4812 else
4813 # Is the header compilable?
4814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4817 #line $LINENO "configure"
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 $ac_includes_default
4824 #include <$ac_header>
4825 _ACEOF
4826 rm -f conftest.$ac_objext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828 (eval $ac_compile) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -s conftest.$ac_objext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_header_compiler=yes
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4843 ac_header_compiler=no
4845 rm -f conftest.$ac_objext conftest.$ac_ext
4846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4847 echo "${ECHO_T}$ac_header_compiler" >&6
4849 # Is the header present?
4850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4852 cat >conftest.$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include <$ac_header>
4860 _ACEOF
4861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } >/dev/null; then
4869 if test -s conftest.err; then
4870 ac_cpp_err=$ac_cxx_preproc_warn_flag
4871 else
4872 ac_cpp_err=
4874 else
4875 ac_cpp_err=yes
4877 if test -z "$ac_cpp_err"; then
4878 ac_header_preproc=yes
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 ac_header_preproc=no
4885 rm -f conftest.err conftest.$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4887 echo "${ECHO_T}$ac_header_preproc" >&6
4889 # So? What about this header?
4890 case $ac_header_compiler:$ac_header_preproc in
4891 yes:no )
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4897 cat <<\_ASBOX
4898 ## ------------------------------------ ##
4899 ## Report this to bug-autoconf@gnu.org. ##
4900 ## ------------------------------------ ##
4901 _ASBOX
4903 sed "s/^/$as_me: WARNING: /" >&2
4905 no:yes )
4906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4913 cat <<\_ASBOX
4914 ## ------------------------------------ ##
4915 ## Report this to bug-autoconf@gnu.org. ##
4916 ## ------------------------------------ ##
4917 _ASBOX
4919 sed "s/^/$as_me: WARNING: /" >&2
4921 esac
4922 echo "$as_me:$LINENO: checking for $ac_header" >&5
4923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927 eval "$as_ac_Header=$ac_header_preproc"
4929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4934 cat >>confdefs.h <<_ACEOF
4935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4936 _ACEOF
4937 HAS_OPENLDAP=1
4940 done
4943 if test "${OSTYPE:-unknown}" = "solaris"; then
4944 OPENLDAPSYSLIBS=-lposix4
4947 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4948 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4949 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4950 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953 ac_check_lib_save_LIBS=$LIBS
4954 LIBS="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4955 cat >conftest.$ac_ext <<_ACEOF
4956 #line $LINENO "configure"
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4963 /* Override any gcc2 internal prototype to avoid an error. */
4964 #ifdef __cplusplus
4965 extern "C"
4966 #endif
4967 /* We use char because int might match the return type of a gcc2
4968 builtin and then its argument prototype would still apply. */
4969 char ldap_open ();
4971 main ()
4973 ldap_open ();
4975 return 0;
4977 _ACEOF
4978 rm -f conftest.$ac_objext conftest$ac_exeext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4980 (eval $ac_link) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -s conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_cv_lib_ldap_ldap_open=yes
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 ac_cv_lib_ldap_ldap_open=no
4997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4998 LIBS=$ac_check_lib_save_LIBS
5000 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
5001 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
5002 if test $ac_cv_lib_ldap_ldap_open = yes; then
5003 HAS_OPENLDAP=1
5004 else
5005 HAS_OPENLDAP=
5008 else
5009 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
5010 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
5011 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014 test "$cross_compiling" = yes &&
5015 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5016 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5017 { (exit 1); exit 1; }; }
5018 if test -r "/usr/local/include/ldap.h"; then
5019 ac_cv_file__usr_local_include_ldap_h=yes
5020 else
5021 ac_cv_file__usr_local_include_ldap_h=no
5024 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
5025 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
5026 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
5027 HAS_OPENLDAP=1
5030 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
5031 OPENLDAPINCLUDEDIR=/usr/local/include
5032 OPENLDAPLIBDIR=/usr/local/lib
5033 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
5034 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
5035 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038 ac_check_lib_save_LIBS=$LIBS
5039 LIBS="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
5040 cat >conftest.$ac_ext <<_ACEOF
5041 #line $LINENO "configure"
5042 /* confdefs.h. */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5048 /* Override any gcc2 internal prototype to avoid an error. */
5049 #ifdef __cplusplus
5050 extern "C"
5051 #endif
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5054 char ldap_open ();
5056 main ()
5058 ldap_open ();
5060 return 0;
5062 _ACEOF
5063 rm -f conftest.$ac_objext conftest$ac_exeext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065 (eval $ac_link) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -s conftest$ac_exeext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5075 ac_cv_lib_ldap_ldap_open=yes
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 ac_cv_lib_ldap_ldap_open=no
5082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5083 LIBS=$ac_check_lib_save_LIBS
5085 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
5086 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
5087 if test $ac_cv_lib_ldap_ldap_open = yes; then
5088 HAS_OPENLDAP=1
5089 else
5090 HAS_OPENLDAP=
5097 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
5098 HAS_OPENLDAP=1
5101 cat >>confdefs.h <<\_ACEOF
5102 #define P_LDAP 1
5103 _ACEOF
5105 ENDLDLIBS="-lldap -lldap_r -llber $ENDLDLIBS"
5106 if test "${OPENLDAPINCLUDEDIR}unset" != "unset" ; then
5107 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
5109 if test "${OPENLDAPLIBDIR}unset" != "unset" ; then
5110 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
5118 # Check whether --enable-openssl or --disable-openssl was given.
5119 if test "${enable_openssl+set}" = set; then
5120 enableval="$enable_openssl"
5121 openssl=$enableval
5124 if test "$openssl" = "no" ; then
5125 cat >>confdefs.h <<\_ACEOF
5126 #define P_SSL 0
5127 _ACEOF
5129 HAS_OPENSSL=0
5131 else
5133 if test ${OPENSSLDIR:-unset} != "unset" ; then
5134 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
5135 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
5136 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
5137 echo "$as_me:$LINENO: result: yes" >&5
5138 echo "${ECHO_T}yes" >&6
5139 SSLHDR=1
5140 SSLINCLUDEDIR="${OPENSSLDIR}/include"
5141 SSLLIBDIR="${OPENSSLDIR}/lib"
5142 else
5143 echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6
5149 if test "${SSLHDR:-unset}" = "unset" ; then
5151 for ac_header in openssl/ssl.h
5153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5155 echo "$as_me:$LINENO: checking for $ac_header" >&5
5156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5162 else
5163 # Is the header compilable?
5164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5166 cat >conftest.$ac_ext <<_ACEOF
5167 #line $LINENO "configure"
5168 /* confdefs.h. */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 $ac_includes_default
5174 #include <$ac_header>
5175 _ACEOF
5176 rm -f conftest.$ac_objext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5178 (eval $ac_compile) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try='test -s conftest.$ac_objext'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 (eval $ac_try) 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 ac_header_compiler=yes
5189 else
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5193 ac_header_compiler=no
5195 rm -f conftest.$ac_objext conftest.$ac_ext
5196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5197 echo "${ECHO_T}$ac_header_compiler" >&6
5199 # Is the header present?
5200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5202 cat >conftest.$ac_ext <<_ACEOF
5203 #line $LINENO "configure"
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <$ac_header>
5210 _ACEOF
5211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } >/dev/null; then
5219 if test -s conftest.err; then
5220 ac_cpp_err=$ac_cxx_preproc_warn_flag
5221 else
5222 ac_cpp_err=
5224 else
5225 ac_cpp_err=yes
5227 if test -z "$ac_cpp_err"; then
5228 ac_header_preproc=yes
5229 else
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 ac_header_preproc=no
5235 rm -f conftest.err conftest.$ac_ext
5236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5237 echo "${ECHO_T}$ac_header_preproc" >&6
5239 # So? What about this header?
5240 case $ac_header_compiler:$ac_header_preproc in
5241 yes:no )
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5247 cat <<\_ASBOX
5248 ## ------------------------------------ ##
5249 ## Report this to bug-autoconf@gnu.org. ##
5250 ## ------------------------------------ ##
5251 _ASBOX
5253 sed "s/^/$as_me: WARNING: /" >&2
5255 no:yes )
5256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5263 cat <<\_ASBOX
5264 ## ------------------------------------ ##
5265 ## Report this to bug-autoconf@gnu.org. ##
5266 ## ------------------------------------ ##
5267 _ASBOX
5269 sed "s/^/$as_me: WARNING: /" >&2
5271 esac
5272 echo "$as_me:$LINENO: checking for $ac_header" >&5
5273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277 eval "$as_ac_Header=$ac_header_preproc"
5279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5284 cat >>confdefs.h <<_ACEOF
5285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5286 _ACEOF
5287 SSLHDR=1
5290 done
5292 if test "${SSLHDR:-unset}" != "unset" ; then
5293 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
5294 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
5295 cat >conftest.$ac_ext <<_ACEOF
5296 #define OPENSSL_NO_KRB5
5297 #include <openssl/ssl.h>
5298 int main(int argc,char **argv){}
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 SSLHDR=1
5313 else
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5318 rm -f conftest.$ac_objext conftest.$ac_ext
5319 if test ${SSLHDR:-unset} != "unset" ; then
5320 echo "$as_me:$LINENO: result: yes" >&5
5321 echo "${ECHO_T}yes" >&6
5322 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5323 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5324 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5332 if test "${SSLHDR:-unset}" = "unset" ; then
5334 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
5335 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
5336 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
5337 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
5338 echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5340 else
5341 cat >conftest.$ac_ext <<_ACEOF
5342 #include "${openssl_dir}/include/openssl/ssl.h"
5343 int main(int argc,char **argv){ return 0; }
5344 _ACEOF
5345 $CXX $CXXFLAGS -I${openssl_dir}/include -c conftest.cc > /dev/null 2>&1
5346 if test $? = 0 ; then
5347 echo "$as_me:$LINENO: result: yes" >&5
5348 echo "${ECHO_T}yes" >&6
5349 SSLHDR=1
5350 SSLCCFLAGS=""
5351 SSLINCLUDEDIR="${openssl_dir}/include"
5352 SSLLIBDIR="${openssl_dir}/lib"
5353 break
5354 else
5355 echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6
5357 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
5358 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #define OPENSSL_NO_KRB5
5361 #include "${openssl_dir}/include/openssl/ssl.h"
5362 int main(int argc,char **argv){}
5363 _ACEOF
5364 $CXX $CXXFLAGS -I${openssl_dir}/openssl/include -c conftest.cc > /dev/null 2>&1
5365 if test $? = 0 ; then
5366 echo "$as_me:$LINENO: result: yes" >&5
5367 echo "${ECHO_T}yes" >&6
5368 SSLHDR=1
5369 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5370 SSLINCLUDEDIR="${openssl_dir}/include"
5371 SSLLIBDIR="${openssl_dir}/lib"
5372 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5373 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5374 break
5375 else
5376 echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6
5381 done
5384 if test ${SSLHDR:-unset} != "unset" ; then
5385 HAS_OPENSSL=1
5388 cat >>confdefs.h <<\_ACEOF
5389 #define P_SSL 1
5390 _ACEOF
5392 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
5393 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
5395 if test ${SSLLIBDIR:-unset} != "unset" ; then
5396 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
5398 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
5399 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
5408 # Check whether --enable-expat or --disable-expat was given.
5409 if test "${enable_expat+set}" = set; then
5410 enableval="$enable_expat"
5411 expat=$enableval
5414 if test "$expat" = "no" ; then
5415 HAS_EXPAT=0
5417 cat >>confdefs.h <<\_ACEOF
5418 #define P_EXPAT 0
5419 _ACEOF
5421 else
5424 for ac_header in expat.h
5426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5428 echo "$as_me:$LINENO: checking for $ac_header" >&5
5429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5435 else
5436 # Is the header compilable?
5437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5439 cat >conftest.$ac_ext <<_ACEOF
5440 #line $LINENO "configure"
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 $ac_includes_default
5447 #include <$ac_header>
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } &&
5455 { ac_try='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 (eval $ac_try) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 ac_header_compiler=yes
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 ac_header_compiler=no
5468 rm -f conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5470 echo "${ECHO_T}$ac_header_compiler" >&6
5472 # Is the header present?
5473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5475 cat >conftest.$ac_ext <<_ACEOF
5476 #line $LINENO "configure"
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 #include <$ac_header>
5483 _ACEOF
5484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } >/dev/null; then
5492 if test -s conftest.err; then
5493 ac_cpp_err=$ac_cxx_preproc_warn_flag
5494 else
5495 ac_cpp_err=
5497 else
5498 ac_cpp_err=yes
5500 if test -z "$ac_cpp_err"; then
5501 ac_header_preproc=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_header_preproc=no
5508 rm -f conftest.err conftest.$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5510 echo "${ECHO_T}$ac_header_preproc" >&6
5512 # So? What about this header?
5513 case $ac_header_compiler:$ac_header_preproc in
5514 yes:no )
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5520 cat <<\_ASBOX
5521 ## ------------------------------------ ##
5522 ## Report this to bug-autoconf@gnu.org. ##
5523 ## ------------------------------------ ##
5524 _ASBOX
5526 sed "s/^/$as_me: WARNING: /" >&2
5528 no:yes )
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5536 cat <<\_ASBOX
5537 ## ------------------------------------ ##
5538 ## Report this to bug-autoconf@gnu.org. ##
5539 ## ------------------------------------ ##
5540 _ASBOX
5542 sed "s/^/$as_me: WARNING: /" >&2
5544 esac
5545 echo "$as_me:$LINENO: checking for $ac_header" >&5
5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 eval "$as_ac_Header=$ac_header_preproc"
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5557 cat >>confdefs.h <<_ACEOF
5558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559 _ACEOF
5560 HAS_EXPAT=1
5563 done
5565 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5566 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
5567 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
5568 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 ac_check_lib_save_LIBS=$LIBS
5572 LIBS="-lexpat $LIBS"
5573 cat >conftest.$ac_ext <<_ACEOF
5574 #line $LINENO "configure"
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5581 /* Override any gcc2 internal prototype to avoid an error. */
5582 #ifdef __cplusplus
5583 extern "C"
5584 #endif
5585 /* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
5587 char XML_ParserCreate ();
5589 main ()
5591 XML_ParserCreate ();
5593 return 0;
5595 _ACEOF
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -s conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_lib_expat_XML_ParserCreate=yes
5609 else
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 ac_cv_lib_expat_XML_ParserCreate=no
5615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5618 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5619 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
5620 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
5621 HAS_EXPAT=1
5622 else
5623 HAS_EXPAT=
5626 else
5627 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
5628 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
5629 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632 test "$cross_compiling" = yes &&
5633 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5634 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5635 { (exit 1); exit 1; }; }
5636 if test -r "/usr/local/include/expat.h"; then
5637 ac_cv_file__usr_local_include_expat_h=yes
5638 else
5639 ac_cv_file__usr_local_include_expat_h=no
5642 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
5643 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
5644 if test $ac_cv_file__usr_local_include_expat_h = yes; then
5645 HAS_EXPAT=1
5648 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5649 EXPATINCLUDEDIR=/usr/local/include
5650 EXPATLIBDIR=/usr/local/lib
5654 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5655 HAS_EXPAT=1
5658 cat >>confdefs.h <<\_ACEOF
5659 #define P_EXPAT 1
5660 _ACEOF
5662 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
5663 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
5665 if test ${EXPATLIBDIR:-unset} != "unset" ; then
5666 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
5668 ENDLDLIBS="$ENDLDLIBS -lexpat"
5678 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5679 if test "${enable_ipv6+set}" = set; then
5680 enableval="$enable_ipv6"
5681 ipv6=$enableval
5684 if test "$ipv6" = "no" ; then
5685 cat >>confdefs.h <<\_ACEOF
5686 #define P_HAS_IPV6 0
5687 _ACEOF
5689 HAS_IPV6=0
5691 else
5692 echo "$as_me:$LINENO: checking for IPv6 support" >&5
5693 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
5694 cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #include <sys/types.h>
5702 #include <netinet/in.h>
5704 main ()
5706 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5708 return 0;
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 HAS_IPV6=yes
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 HAS_IPV6=no
5730 rm -f conftest.$ac_objext conftest.$ac_ext
5731 if test $HAS_IPV6 = no ; then
5732 echo "$as_me:$LINENO: result: no" >&5
5733 echo "${ECHO_T}no" >&6
5734 else
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5737 /* confdefs.h. */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 #include <sys/socket.h>
5743 #include <netdb.h>
5745 main ()
5747 getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0);
5749 return 0;
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 HAS_IPV6=yes
5765 else
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 HAS_IPV6=no
5771 rm -f conftest.$ac_objext conftest.$ac_ext
5772 if test $HAS_IPV6 = no ; then
5773 echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6
5775 else
5776 echo "$as_me:$LINENO: result: yes" >&5
5777 echo "${ECHO_T}yes" >&6
5779 cat >>confdefs.h <<\_ACEOF
5780 #define P_HAS_IPV6 1
5781 _ACEOF
5789 # Check whether --enable-qos or --disable-qos was given.
5790 if test "${enable_qos+set}" = set; then
5791 enableval="$enable_qos"
5792 qos=$enableval
5795 if test "$qos" = "no" ; then
5797 cat >>confdefs.h <<\_ACEOF
5798 #define P_HAS_QOS 0
5799 _ACEOF
5801 else
5803 cat >>confdefs.h <<\_ACEOF
5804 #define P_HAS_QOS 1
5805 _ACEOF
5812 # Check whether --enable-sdl or --disable-sdl was given.
5813 if test "${enable_sdl+set}" = set; then
5814 enableval="$enable_sdl"
5815 sdl=$enableval
5818 if test "$sdl" = "no" ; then
5819 HAS_SDL=0
5821 cat >>confdefs.h <<\_ACEOF
5822 #define P_SDL 0
5823 _ACEOF
5825 else
5826 if test "${SDLLIB:-unset}" = "unset" ; then
5827 SDLLIB=SDL
5831 for ac_header in SDL/SDL.h
5833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5835 echo "$as_me:$LINENO: checking for $ac_header" >&5
5836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5842 else
5843 # Is the header compilable?
5844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5846 cat >conftest.$ac_ext <<_ACEOF
5847 #line $LINENO "configure"
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5854 #include <$ac_header>
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_header_compiler=yes
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873 ac_header_compiler=no
5875 rm -f conftest.$ac_objext conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5877 echo "${ECHO_T}$ac_header_compiler" >&6
5879 # Is the header present?
5880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5882 cat >conftest.$ac_ext <<_ACEOF
5883 #line $LINENO "configure"
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 #include <$ac_header>
5890 _ACEOF
5891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } >/dev/null; then
5899 if test -s conftest.err; then
5900 ac_cpp_err=$ac_cxx_preproc_warn_flag
5901 else
5902 ac_cpp_err=
5904 else
5905 ac_cpp_err=yes
5907 if test -z "$ac_cpp_err"; then
5908 ac_header_preproc=yes
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 ac_header_preproc=no
5915 rm -f conftest.err conftest.$ac_ext
5916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5917 echo "${ECHO_T}$ac_header_preproc" >&6
5919 # So? What about this header?
5920 case $ac_header_compiler:$ac_header_preproc in
5921 yes:no )
5922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5927 cat <<\_ASBOX
5928 ## ------------------------------------ ##
5929 ## Report this to bug-autoconf@gnu.org. ##
5930 ## ------------------------------------ ##
5931 _ASBOX
5933 sed "s/^/$as_me: WARNING: /" >&2
5935 no:yes )
5936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5943 cat <<\_ASBOX
5944 ## ------------------------------------ ##
5945 ## Report this to bug-autoconf@gnu.org. ##
5946 ## ------------------------------------ ##
5947 _ASBOX
5949 sed "s/^/$as_me: WARNING: /" >&2
5951 esac
5952 echo "$as_me:$LINENO: checking for $ac_header" >&5
5953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 eval "$as_ac_Header=$ac_header_preproc"
5959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5964 cat >>confdefs.h <<_ACEOF
5965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5966 _ACEOF
5967 HAS_SDL=1
5970 done
5972 if test "${HAS_SDL:-unset}" != "unset" ; then
5973 if test "${X11LIBDIR:-unset}" == "unset" ; then
5974 X11LIBDIR=/usr/X11R6/lib
5976 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5977 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5978 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 ac_check_lib_save_LIBS=$LIBS
5982 LIBS="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext -laa $LIBS"
5983 cat >conftest.$ac_ext <<_ACEOF
5984 #line $LINENO "configure"
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5991 /* Override any gcc2 internal prototype to avoid an error. */
5992 #ifdef __cplusplus
5993 extern "C"
5994 #endif
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
5997 char SDL_CreateYUVOverlay ();
5999 main ()
6001 SDL_CreateYUVOverlay ();
6003 return 0;
6005 _ACEOF
6006 rm -f conftest.$ac_objext conftest$ac_exeext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6008 (eval $ac_link) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -s conftest$ac_exeext'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 (eval $ac_try) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
6018 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6023 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
6025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6026 LIBS=$ac_check_lib_save_LIBS
6028 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
6029 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
6030 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
6031 HAS_SDL=1
6032 else
6033 HAS_SDL=
6038 if test "${HAS_SDL:-unset}" = "unset" ; then
6039 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
6040 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
6041 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044 test "$cross_compiling" = yes &&
6045 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6046 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6047 { (exit 1); exit 1; }; }
6048 if test -r "/usr/local/include/SDL11/SDL.h"; then
6049 ac_cv_file__usr_local_include_SDL11_SDL_h=yes
6050 else
6051 ac_cv_file__usr_local_include_SDL11_SDL_h=no
6054 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
6055 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
6056 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
6057 HAS_SDL=1
6060 if test "${HAS_SDL:-unset}" != "unset" ; then
6061 SDLLIB=SDL-1.1
6065 if test "${HAS_SDL:-unset}" != "unset" ; then
6066 HAS_SDL=1
6069 cat >>confdefs.h <<\_ACEOF
6070 #define P_SDL 1
6071 _ACEOF
6073 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
6074 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
6076 if test ${SDLLIBDIR:-unset} != "unset" ; then
6077 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
6079 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
6085 # Check whether --enable-video or --disable-video was given.
6086 if test "${enable_video+set}" = set; then
6087 enableval="$enable_video"
6088 video=$enableval
6091 HAS_VIDEO_CAPTURE=0
6092 if test "$HAS_PLUGINS" = "0" ; then
6093 if test "$video" != "no" ; then
6094 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6095 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6096 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6097 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6101 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6102 else
6103 # Is the header compilable?
6104 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
6105 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
6106 cat >conftest.$ac_ext <<_ACEOF
6107 #line $LINENO "configure"
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 $ac_includes_default
6114 #include <linux/videodev.h>
6115 _ACEOF
6116 rm -f conftest.$ac_objext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } &&
6122 { ac_try='test -s conftest.$ac_objext'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; }; then
6128 ac_header_compiler=yes
6129 else
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6133 ac_header_compiler=no
6135 rm -f conftest.$ac_objext conftest.$ac_ext
6136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6137 echo "${ECHO_T}$ac_header_compiler" >&6
6139 # Is the header present?
6140 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
6141 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
6142 cat >conftest.$ac_ext <<_ACEOF
6143 #line $LINENO "configure"
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <linux/videodev.h>
6150 _ACEOF
6151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null; then
6159 if test -s conftest.err; then
6160 ac_cpp_err=$ac_cxx_preproc_warn_flag
6161 else
6162 ac_cpp_err=
6164 else
6165 ac_cpp_err=yes
6167 if test -z "$ac_cpp_err"; then
6168 ac_header_preproc=yes
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_header_preproc=no
6175 rm -f conftest.err conftest.$ac_ext
6176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6177 echo "${ECHO_T}$ac_header_preproc" >&6
6179 # So? What about this header?
6180 case $ac_header_compiler:$ac_header_preproc in
6181 yes:no )
6182 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6183 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6185 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6187 cat <<\_ASBOX
6188 ## ------------------------------------ ##
6189 ## Report this to bug-autoconf@gnu.org. ##
6190 ## ------------------------------------ ##
6191 _ASBOX
6193 sed "s/^/$as_me: WARNING: /" >&2
6195 no:yes )
6196 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
6197 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
6199 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6201 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6203 cat <<\_ASBOX
6204 ## ------------------------------------ ##
6205 ## Report this to bug-autoconf@gnu.org. ##
6206 ## ------------------------------------ ##
6207 _ASBOX
6209 sed "s/^/$as_me: WARNING: /" >&2
6211 esac
6212 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6213 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6214 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 ac_cv_header_linux_videodev_h=$ac_header_preproc
6219 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6220 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6223 if test $ac_cv_header_linux_videodev_h = yes; then
6224 HAS_VIDEO_CAPTURE=1
6228 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
6229 { echo "$as_me:$LINENO: No Video Capture support" >&5
6230 echo "$as_me: No Video Capture support" >&6;}
6232 cat >>confdefs.h <<\_ACEOF
6233 #define NO_VIDEO_CAPTURE
6234 _ACEOF
6241 # Check whether --enable-alsa or --disable-alsa was given.
6242 if test "${enable_alsa+set}" = set; then
6243 enableval="$enable_alsa"
6244 enable_alsa=$enableval
6247 HAS_ALSA=0
6248 if test "$HAS_PLUGINS" = "0" ; then
6249 if test "$enable_alsa" != "no" ; then
6250 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6251 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6252 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6253 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6257 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6258 else
6259 # Is the header compilable?
6260 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
6261 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
6262 cat >conftest.$ac_ext <<_ACEOF
6263 #line $LINENO "configure"
6264 /* confdefs.h. */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 $ac_includes_default
6270 #include <alsa/asoundlib.h>
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>&5
6275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -s conftest.$ac_objext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 (eval $ac_try) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 ac_header_compiler=yes
6285 else
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6289 ac_header_compiler=no
6291 rm -f conftest.$ac_objext conftest.$ac_ext
6292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6293 echo "${ECHO_T}$ac_header_compiler" >&6
6295 # Is the header present?
6296 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
6297 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
6298 cat >conftest.$ac_ext <<_ACEOF
6299 #line $LINENO "configure"
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <alsa/asoundlib.h>
6306 _ACEOF
6307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null; then
6315 if test -s conftest.err; then
6316 ac_cpp_err=$ac_cxx_preproc_warn_flag
6317 else
6318 ac_cpp_err=
6320 else
6321 ac_cpp_err=yes
6323 if test -z "$ac_cpp_err"; then
6324 ac_header_preproc=yes
6325 else
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6329 ac_header_preproc=no
6331 rm -f conftest.err conftest.$ac_ext
6332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6333 echo "${ECHO_T}$ac_header_preproc" >&6
6335 # So? What about this header?
6336 case $ac_header_compiler:$ac_header_preproc in
6337 yes:no )
6338 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6339 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6341 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6343 cat <<\_ASBOX
6344 ## ------------------------------------ ##
6345 ## Report this to bug-autoconf@gnu.org. ##
6346 ## ------------------------------------ ##
6347 _ASBOX
6349 sed "s/^/$as_me: WARNING: /" >&2
6351 no:yes )
6352 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
6353 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6355 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6357 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6359 cat <<\_ASBOX
6360 ## ------------------------------------ ##
6361 ## Report this to bug-autoconf@gnu.org. ##
6362 ## ------------------------------------ ##
6363 _ASBOX
6365 sed "s/^/$as_me: WARNING: /" >&2
6367 esac
6368 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6369 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6370 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
6375 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6376 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6379 if test $ac_cv_header_alsa_asoundlib_h = yes; then
6380 HAS_ALSA=1
6384 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
6385 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
6386 if test "${HAS_ALSA}" = "1"; then
6387 echo "$as_me:$LINENO: result: yes" >&5
6388 echo "${ECHO_T}yes" >&6
6389 ENDLDLIBS="$ENDLDLIBS -lasound"
6390 else
6391 echo "$as_me:$LINENO: result: no" >&5
6392 echo "${ECHO_T}no" >&6
6398 if test "$OSTYPE" = "solaris" ; then
6399 USE_SYSTEM_SWAB=
6400 else
6401 echo "$as_me:$LINENO: checking for swab" >&5
6402 echo $ECHO_N "checking for swab... $ECHO_C" >&6
6403 if test "${ac_cv_func_swab+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 cat >conftest.$ac_ext <<_ACEOF
6407 #line $LINENO "configure"
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 /* System header to define __stub macros and hopefully few prototypes,
6414 which can conflict with char swab (); below.
6415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6416 <limits.h> exists even on freestanding compilers. */
6417 #ifdef __STDC__
6418 # include <limits.h>
6419 #else
6420 # include <assert.h>
6421 #endif
6422 /* Override any gcc2 internal prototype to avoid an error. */
6423 #ifdef __cplusplus
6424 extern "C"
6426 #endif
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char swab ();
6430 /* The GNU C library defines this for functions which it implements
6431 to always fail with ENOSYS. Some functions are actually named
6432 something starting with __ and the normal name is an alias. */
6433 #if defined (__stub_swab) || defined (__stub___swab)
6434 choke me
6435 #else
6436 char (*f) () = swab;
6437 #endif
6438 #ifdef __cplusplus
6440 #endif
6443 main ()
6445 return f != swab;
6447 return 0;
6449 _ACEOF
6450 rm -f conftest.$ac_objext conftest$ac_exeext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452 (eval $ac_link) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -s conftest$ac_exeext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_cv_func_swab=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 ac_cv_func_swab=no
6469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6471 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
6472 echo "${ECHO_T}$ac_cv_func_swab" >&6
6473 if test $ac_cv_func_swab = yes; then
6474 USE_SYSTEM_SWAB=1
6478 if test "x$ac_cv_func_swab" = "xyes" ; then
6480 cat >>confdefs.h <<\_ACEOF
6481 #define USE_SYSTEM_SWAB
6482 _ACEOF
6488 # Check whether --enable-memcheck or --disable-memcheck was given.
6489 if test "${enable_memcheck+set}" = set; then
6490 enableval="$enable_memcheck"
6491 memcheck=$enableval
6494 if test "$memcheck" = "yes" ; then
6495 cat >>confdefs.h <<\_ACEOF
6496 #define PMEMORY_CHECK 1
6497 _ACEOF
6499 { echo "$as_me:$LINENO: Memory checking enabled" >&5
6500 echo "$as_me: Memory checking enabled" >&6;}
6505 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
6506 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
6507 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
6511 if test "${OSTYPE}" != "Darwin" ; then
6512 if test ${HAS_LIBDL} = yes ; then
6513 ENDLDLIBS="$ENDLDLIBS -ldl"
6522 # Find a good install program. We prefer a C program (faster),
6523 # so one script is as good as another. But avoid the broken or
6524 # incompatible versions:
6525 # SysV /etc/install, /usr/sbin/install
6526 # SunOS /usr/etc/install
6527 # IRIX /sbin/install
6528 # AIX /bin/install
6529 # AmigaOS /C/install, which installs bootblocks on floppy discs
6530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6533 # ./install, which can be erroneously created by make from ./install.sh.
6534 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6535 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6536 if test -z "$INSTALL"; then
6537 if test "${ac_cv_path_install+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 # Account for people who put trailing slashes in PATH elements.
6546 case $as_dir/ in
6547 ./ | .// | /cC/* | \
6548 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6549 /usr/ucb/* ) ;;
6551 # OSF1 and SCO ODT 3.0 have their own names for install.
6552 # Don't use installbsd from OSF since it installs stuff as root
6553 # by default.
6554 for ac_prog in ginstall scoinst install; do
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6557 if test $ac_prog = install &&
6558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6559 # AIX install. It has an incompatible calling convention.
6561 elif test $ac_prog = install &&
6562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6563 # program-specific install script used by HP pwplus--don't use.
6565 else
6566 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6567 break 3
6570 done
6571 done
6573 esac
6574 done
6578 if test "${ac_cv_path_install+set}" = set; then
6579 INSTALL=$ac_cv_path_install
6580 else
6581 # As a last resort, use the slow shell script. We don't cache a
6582 # path for INSTALL within a source directory, because that will
6583 # break other packages using the cache if that directory is
6584 # removed, or if the path is relative.
6585 INSTALL=$ac_install_sh
6588 echo "$as_me:$LINENO: result: $INSTALL" >&5
6589 echo "${ECHO_T}$INSTALL" >&6
6591 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6592 # It thinks the first close brace ends the variable substitution.
6593 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6595 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6597 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6600 ac_config_files="$ac_config_files make/ptbuildopts.mak"
6602 ac_config_files="$ac_config_files make/ptlib-config"
6604 ac_config_files="$ac_config_files Makefile"
6607 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
6608 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
6611 cat >confcache <<\_ACEOF
6612 # This file is a shell script that caches the results of configure
6613 # tests run on this system so they can be shared between configure
6614 # scripts and configure runs, see configure's option --config-cache.
6615 # It is not useful on other systems. If it contains results you don't
6616 # want to keep, you may remove or edit it.
6618 # config.status only pays attention to the cache file if you give it
6619 # the --recheck option to rerun configure.
6621 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6622 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6623 # following values.
6625 _ACEOF
6627 # The following way of writing the cache mishandles newlines in values,
6628 # but we know of no workaround that is simple, portable, and efficient.
6629 # So, don't put newlines in cache variables' values.
6630 # Ultrix sh set writes to stderr and can't be redirected directly,
6631 # and sets the high bit in the cache file unless we assign to the vars.
6633 (set) 2>&1 |
6634 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6635 *ac_space=\ *)
6636 # `set' does not quote correctly, so add quotes (double-quote
6637 # substitution turns \\\\ into \\, and sed turns \\ into \).
6638 sed -n \
6639 "s/'/'\\\\''/g;
6640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6643 # `set' quotes correctly as required by POSIX, so do not add quotes.
6644 sed -n \
6645 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6647 esac;
6649 sed '
6650 t clear
6651 : clear
6652 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6653 t end
6654 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6655 : end' >>confcache
6656 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6657 if test -w $cache_file; then
6658 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6659 cat confcache >$cache_file
6660 else
6661 echo "not updating unwritable cache $cache_file"
6664 rm -f confcache
6666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6667 # Let make expand exec_prefix.
6668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6670 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6671 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6672 # trailing colons and then remove the whole line if VPATH becomes empty
6673 # (actually we leave an empty line to preserve line numbers).
6674 if test "x$srcdir" = x.; then
6675 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6676 s/:*\$(srcdir):*/:/;
6677 s/:*\${srcdir}:*/:/;
6678 s/:*@srcdir@:*/:/;
6679 s/^\([^=]*=[ ]*\):*/\1/;
6680 s/:*$//;
6681 s/^[^=]*=[ ]*$//;
6685 DEFS=-DHAVE_CONFIG_H
6687 ac_libobjs=
6688 ac_ltlibobjs=
6689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6690 # 1. Remove the extension, and $U if already installed.
6691 ac_i=`echo "$ac_i" |
6692 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6693 # 2. Add them.
6694 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6695 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6696 done
6697 LIBOBJS=$ac_libobjs
6699 LTLIBOBJS=$ac_ltlibobjs
6703 : ${CONFIG_STATUS=./config.status}
6704 ac_clean_files_save=$ac_clean_files
6705 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6706 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6707 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6708 cat >$CONFIG_STATUS <<_ACEOF
6709 #! $SHELL
6710 # Generated by $as_me.
6711 # Run this file to recreate the current configuration.
6712 # Compiler output produced by configure, useful for debugging
6713 # configure, is in config.log if it exists.
6715 debug=false
6716 ac_cs_recheck=false
6717 ac_cs_silent=false
6718 SHELL=\${CONFIG_SHELL-$SHELL}
6719 _ACEOF
6721 cat >>$CONFIG_STATUS <<\_ACEOF
6722 ## --------------------- ##
6723 ## M4sh Initialization. ##
6724 ## --------------------- ##
6726 # Be Bourne compatible
6727 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6728 emulate sh
6729 NULLCMD=:
6730 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6731 # is contrary to our usage. Disable this feature.
6732 alias -g '${1+"$@"}'='"$@"'
6733 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6734 set -o posix
6737 # Support unset when possible.
6738 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6739 as_unset=unset
6740 else
6741 as_unset=false
6745 # Work around bugs in pre-3.0 UWIN ksh.
6746 $as_unset ENV MAIL MAILPATH
6747 PS1='$ '
6748 PS2='> '
6749 PS4='+ '
6751 # NLS nuisances.
6752 for as_var in \
6753 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6754 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6755 LC_TELEPHONE LC_TIME
6757 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6758 eval $as_var=C; export $as_var
6759 else
6760 $as_unset $as_var
6762 done
6764 # Required to use basename.
6765 if expr a : '\(a\)' >/dev/null 2>&1; then
6766 as_expr=expr
6767 else
6768 as_expr=false
6771 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6772 as_basename=basename
6773 else
6774 as_basename=false
6778 # Name of the executable.
6779 as_me=`$as_basename "$0" ||
6780 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6781 X"$0" : 'X\(//\)$' \| \
6782 X"$0" : 'X\(/\)$' \| \
6783 . : '\(.\)' 2>/dev/null ||
6784 echo X/"$0" |
6785 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6786 /^X\/\(\/\/\)$/{ s//\1/; q; }
6787 /^X\/\(\/\).*/{ s//\1/; q; }
6788 s/.*/./; q'`
6791 # PATH needs CR, and LINENO needs CR and PATH.
6792 # Avoid depending upon Character Ranges.
6793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6796 as_cr_digits='0123456789'
6797 as_cr_alnum=$as_cr_Letters$as_cr_digits
6799 # The user is always right.
6800 if test "${PATH_SEPARATOR+set}" != set; then
6801 echo "#! /bin/sh" >conf$$.sh
6802 echo "exit 0" >>conf$$.sh
6803 chmod +x conf$$.sh
6804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6805 PATH_SEPARATOR=';'
6806 else
6807 PATH_SEPARATOR=:
6809 rm -f conf$$.sh
6813 as_lineno_1=$LINENO
6814 as_lineno_2=$LINENO
6815 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6816 test "x$as_lineno_1" != "x$as_lineno_2" &&
6817 test "x$as_lineno_3" = "x$as_lineno_2" || {
6818 # Find who we are. Look in the path if we contain no path at all
6819 # relative or not.
6820 case $0 in
6821 *[\\/]* ) as_myself=$0 ;;
6822 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6828 done
6831 esac
6832 # We did not find ourselves, most probably we were run as `sh COMMAND'
6833 # in which case we are not to be found in the path.
6834 if test "x$as_myself" = x; then
6835 as_myself=$0
6837 if test ! -f "$as_myself"; then
6838 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6839 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6840 { (exit 1); exit 1; }; }
6842 case $CONFIG_SHELL in
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for as_base in sh bash ksh sh5; do
6850 case $as_dir in
6852 if ("$as_dir/$as_base" -c '
6853 as_lineno_1=$LINENO
6854 as_lineno_2=$LINENO
6855 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6856 test "x$as_lineno_1" != "x$as_lineno_2" &&
6857 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6858 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6859 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6860 CONFIG_SHELL=$as_dir/$as_base
6861 export CONFIG_SHELL
6862 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6863 fi;;
6864 esac
6865 done
6866 done
6868 esac
6870 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6871 # uniformly replaced by the line number. The first 'sed' inserts a
6872 # line-number line before each line; the second 'sed' does the real
6873 # work. The second script uses 'N' to pair each line-number line
6874 # with the numbered line, and appends trailing '-' during
6875 # substitution so that $LINENO is not a special case at line end.
6876 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6877 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6878 sed '=' <$as_myself |
6879 sed '
6881 s,$,-,
6882 : loop
6883 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6884 t loop
6885 s,-$,,
6886 s,^['$as_cr_digits']*\n,,
6887 ' >$as_me.lineno &&
6888 chmod +x $as_me.lineno ||
6889 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6890 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6891 { (exit 1); exit 1; }; }
6893 # Don't try to exec as it changes $[0], causing all sort of problems
6894 # (the dirname of $[0] is not the place where we might find the
6895 # original and so on. Autoconf is especially sensible to this).
6896 . ./$as_me.lineno
6897 # Exit status is that of the last command.
6898 exit
6902 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6903 *c*,-n*) ECHO_N= ECHO_C='
6904 ' ECHO_T=' ' ;;
6905 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6906 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6907 esac
6909 if expr a : '\(a\)' >/dev/null 2>&1; then
6910 as_expr=expr
6911 else
6912 as_expr=false
6915 rm -f conf$$ conf$$.exe conf$$.file
6916 echo >conf$$.file
6917 if ln -s conf$$.file conf$$ 2>/dev/null; then
6918 # We could just check for DJGPP; but this test a) works b) is more generic
6919 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6920 if test -f conf$$.exe; then
6921 # Don't use ln at all; we don't have any links
6922 as_ln_s='cp -p'
6923 else
6924 as_ln_s='ln -s'
6926 elif ln conf$$.file conf$$ 2>/dev/null; then
6927 as_ln_s=ln
6928 else
6929 as_ln_s='cp -p'
6931 rm -f conf$$ conf$$.exe conf$$.file
6933 if mkdir -p . 2>/dev/null; then
6934 as_mkdir_p=:
6935 else
6936 as_mkdir_p=false
6939 as_executable_p="test -f"
6941 # Sed expression to map a string onto a valid CPP name.
6942 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6944 # Sed expression to map a string onto a valid variable name.
6945 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6948 # IFS
6949 # We need space, tab and new line, in precisely that order.
6950 as_nl='
6952 IFS=" $as_nl"
6954 # CDPATH.
6955 $as_unset CDPATH
6957 exec 6>&1
6959 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6960 # report actual input values of CONFIG_FILES etc. instead of their
6961 # values after options handling. Logging --version etc. is OK.
6962 exec 5>>config.log
6964 echo
6965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6966 ## Running $as_me. ##
6967 _ASBOX
6968 } >&5
6969 cat >&5 <<_CSEOF
6971 This file was extended by $as_me, which was
6972 generated by GNU Autoconf 2.57. Invocation command line was
6974 CONFIG_FILES = $CONFIG_FILES
6975 CONFIG_HEADERS = $CONFIG_HEADERS
6976 CONFIG_LINKS = $CONFIG_LINKS
6977 CONFIG_COMMANDS = $CONFIG_COMMANDS
6978 $ $0 $@
6980 _CSEOF
6981 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6982 echo >&5
6983 _ACEOF
6985 # Files that config.status was made for.
6986 if test -n "$ac_config_files"; then
6987 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6990 if test -n "$ac_config_headers"; then
6991 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6994 if test -n "$ac_config_links"; then
6995 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6998 if test -n "$ac_config_commands"; then
6999 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7002 cat >>$CONFIG_STATUS <<\_ACEOF
7004 ac_cs_usage="\
7005 \`$as_me' instantiates files from templates according to the
7006 current configuration.
7008 Usage: $0 [OPTIONS] [FILE]...
7010 -h, --help print this help, then exit
7011 -V, --version print version number, then exit
7012 -q, --quiet do not print progress messages
7013 -d, --debug don't remove temporary files
7014 --recheck update $as_me by reconfiguring in the same conditions
7015 --file=FILE[:TEMPLATE]
7016 instantiate the configuration file FILE
7017 --header=FILE[:TEMPLATE]
7018 instantiate the configuration header FILE
7020 Configuration files:
7021 $config_files
7023 Configuration headers:
7024 $config_headers
7026 Report bugs to <bug-autoconf@gnu.org>."
7027 _ACEOF
7029 cat >>$CONFIG_STATUS <<_ACEOF
7030 ac_cs_version="\\
7031 config.status
7032 configured by $0, generated by GNU Autoconf 2.57,
7033 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7035 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7036 Free Software Foundation, Inc.
7037 This config.status script is free software; the Free Software Foundation
7038 gives unlimited permission to copy, distribute and modify it."
7039 srcdir=$srcdir
7040 INSTALL="$INSTALL"
7041 _ACEOF
7043 cat >>$CONFIG_STATUS <<\_ACEOF
7044 # If no file are specified by the user, then we need to provide default
7045 # value. By we need to know if files were specified by the user.
7046 ac_need_defaults=:
7047 while test $# != 0
7049 case $1 in
7050 --*=*)
7051 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7052 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7053 ac_shift=:
7056 ac_option=$1
7057 ac_optarg=$2
7058 ac_shift=shift
7060 *) # This is not an option, so the user has probably given explicit
7061 # arguments.
7062 ac_option=$1
7063 ac_need_defaults=false;;
7064 esac
7066 case $ac_option in
7067 # Handling of the options.
7068 _ACEOF
7069 cat >>$CONFIG_STATUS <<\_ACEOF
7070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7071 ac_cs_recheck=: ;;
7072 --version | --vers* | -V )
7073 echo "$ac_cs_version"; exit 0 ;;
7074 --he | --h)
7075 # Conflict between --help and --header
7076 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7077 Try \`$0 --help' for more information." >&5
7078 echo "$as_me: error: ambiguous option: $1
7079 Try \`$0 --help' for more information." >&2;}
7080 { (exit 1); exit 1; }; };;
7081 --help | --hel | -h )
7082 echo "$ac_cs_usage"; exit 0 ;;
7083 --debug | --d* | -d )
7084 debug=: ;;
7085 --file | --fil | --fi | --f )
7086 $ac_shift
7087 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7088 ac_need_defaults=false;;
7089 --header | --heade | --head | --hea )
7090 $ac_shift
7091 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7092 ac_need_defaults=false;;
7093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7095 ac_cs_silent=: ;;
7097 # This is an error.
7098 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7099 Try \`$0 --help' for more information." >&5
7100 echo "$as_me: error: unrecognized option: $1
7101 Try \`$0 --help' for more information." >&2;}
7102 { (exit 1); exit 1; }; } ;;
7104 *) ac_config_targets="$ac_config_targets $1" ;;
7106 esac
7107 shift
7108 done
7110 ac_configure_extra_args=
7112 if $ac_cs_silent; then
7113 exec 6>/dev/null
7114 ac_configure_extra_args="$ac_configure_extra_args --silent"
7117 _ACEOF
7118 cat >>$CONFIG_STATUS <<_ACEOF
7119 if \$ac_cs_recheck; then
7120 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7121 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7124 _ACEOF
7130 cat >>$CONFIG_STATUS <<\_ACEOF
7131 for ac_config_target in $ac_config_targets
7133 case "$ac_config_target" in
7134 # Handling of arguments.
7135 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
7136 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
7137 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7138 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
7139 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7140 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7141 { (exit 1); exit 1; }; };;
7142 esac
7143 done
7145 # If the user did not use the arguments to specify the items to instantiate,
7146 # then the envvar interface is used. Set only those that are not.
7147 # We use the long form for the default assignment because of an extremely
7148 # bizarre bug on SunOS 4.1.3.
7149 if $ac_need_defaults; then
7150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7154 # Have a temporary directory for convenience. Make it in the build tree
7155 # simply because there is no reason to put it here, and in addition,
7156 # creating and moving files from /tmp can sometimes cause problems.
7157 # Create a temporary directory, and hook for its removal unless debugging.
7158 $debug ||
7160 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7161 trap '{ (exit 1); exit 1; }' 1 2 13 15
7164 # Create a (secure) tmp directory for tmp files.
7167 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7168 test -n "$tmp" && test -d "$tmp"
7169 } ||
7171 tmp=./confstat$$-$RANDOM
7172 (umask 077 && mkdir $tmp)
7173 } ||
7175 echo "$me: cannot create a temporary directory in ." >&2
7176 { (exit 1); exit 1; }
7179 _ACEOF
7181 cat >>$CONFIG_STATUS <<_ACEOF
7184 # CONFIG_FILES section.
7187 # No need to generate the scripts if there are no CONFIG_FILES.
7188 # This happens for instance when ./config.status config.h
7189 if test -n "\$CONFIG_FILES"; then
7190 # Protect against being on the right side of a sed subst in config.status.
7191 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7192 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7193 s,@SHELL@,$SHELL,;t t
7194 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7195 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7196 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7197 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7198 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7199 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7200 s,@exec_prefix@,$exec_prefix,;t t
7201 s,@prefix@,$prefix,;t t
7202 s,@program_transform_name@,$program_transform_name,;t t
7203 s,@bindir@,$bindir,;t t
7204 s,@sbindir@,$sbindir,;t t
7205 s,@libexecdir@,$libexecdir,;t t
7206 s,@datadir@,$datadir,;t t
7207 s,@sysconfdir@,$sysconfdir,;t t
7208 s,@sharedstatedir@,$sharedstatedir,;t t
7209 s,@localstatedir@,$localstatedir,;t t
7210 s,@libdir@,$libdir,;t t
7211 s,@includedir@,$includedir,;t t
7212 s,@oldincludedir@,$oldincludedir,;t t
7213 s,@infodir@,$infodir,;t t
7214 s,@mandir@,$mandir,;t t
7215 s,@build_alias@,$build_alias,;t t
7216 s,@host_alias@,$host_alias,;t t
7217 s,@target_alias@,$target_alias,;t t
7218 s,@DEFS@,$DEFS,;t t
7219 s,@ECHO_C@,$ECHO_C,;t t
7220 s,@ECHO_N@,$ECHO_N,;t t
7221 s,@ECHO_T@,$ECHO_T,;t t
7222 s,@LIBS@,$LIBS,;t t
7223 s,@subdirs@,$subdirs,;t t
7224 s,@CXX@,$CXX,;t t
7225 s,@CXXFLAGS@,$CXXFLAGS,;t t
7226 s,@LDFLAGS@,$LDFLAGS,;t t
7227 s,@CPPFLAGS@,$CPPFLAGS,;t t
7228 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7229 s,@EXEEXT@,$EXEEXT,;t t
7230 s,@OBJEXT@,$OBJEXT,;t t
7231 s,@PWLIBDIR@,$PWLIBDIR,;t t
7232 s,@PWINSTDIR@,$PWINSTDIR,;t t
7233 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
7234 s,@LIBDIR@,$LIBDIR,;t t
7235 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
7236 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
7237 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
7238 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
7239 s,@build@,$build,;t t
7240 s,@build_cpu@,$build_cpu,;t t
7241 s,@build_vendor@,$build_vendor,;t t
7242 s,@build_os@,$build_os,;t t
7243 s,@host@,$host,;t t
7244 s,@host_cpu@,$host_cpu,;t t
7245 s,@host_vendor@,$host_vendor,;t t
7246 s,@host_os@,$host_os,;t t
7247 s,@target@,$target,;t t
7248 s,@target_cpu@,$target_cpu,;t t
7249 s,@target_vendor@,$target_vendor,;t t
7250 s,@target_os@,$target_os,;t t
7251 s,@MACHTYPE@,$MACHTYPE,;t t
7252 s,@OSTYPE@,$OSTYPE,;t t
7253 s,@OSRELEASE@,$OSRELEASE,;t t
7254 s,@TARGETDIR@,$TARGETDIR,;t t
7255 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
7256 s,@CXXCPP@,$CXXCPP,;t t
7257 s,@EGREP@,$EGREP,;t t
7258 s,@HAS_REGEX@,$HAS_REGEX,;t t
7259 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
7260 s,@HAS_SASL2@,$HAS_SASL2,;t t
7261 s,@HAS_SASL@,$HAS_SASL,;t t
7262 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
7263 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
7264 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
7265 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
7266 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
7267 s,@HAS_IPV6@,$HAS_IPV6,;t t
7268 s,@HAS_SDL@,$HAS_SDL,;t t
7269 s,@HAS_VIDEO_CAPTURE@,$HAS_VIDEO_CAPTURE,;t t
7270 s,@HAS_ALSA@,$HAS_ALSA,;t t
7271 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7272 s,@STDCXXFLAGS@,$STDCXXFLAGS,;t t
7273 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
7274 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7275 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7276 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7277 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7278 s,@LIBOBJS@,$LIBOBJS,;t t
7279 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7280 CEOF
7282 _ACEOF
7284 cat >>$CONFIG_STATUS <<\_ACEOF
7285 # Split the substitutions into bite-sized pieces for seds with
7286 # small command number limits, like on Digital OSF/1 and HP-UX.
7287 ac_max_sed_lines=48
7288 ac_sed_frag=1 # Number of current file.
7289 ac_beg=1 # First line for current file.
7290 ac_end=$ac_max_sed_lines # Line after last line for current file.
7291 ac_more_lines=:
7292 ac_sed_cmds=
7293 while $ac_more_lines; do
7294 if test $ac_beg -gt 1; then
7295 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7296 else
7297 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7299 if test ! -s $tmp/subs.frag; then
7300 ac_more_lines=false
7301 else
7302 # The purpose of the label and of the branching condition is to
7303 # speed up the sed processing (if there are no `@' at all, there
7304 # is no need to browse any of the substitutions).
7305 # These are the two extra sed commands mentioned above.
7306 (echo ':t
7307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7308 if test -z "$ac_sed_cmds"; then
7309 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7310 else
7311 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7313 ac_sed_frag=`expr $ac_sed_frag + 1`
7314 ac_beg=$ac_end
7315 ac_end=`expr $ac_end + $ac_max_sed_lines`
7317 done
7318 if test -z "$ac_sed_cmds"; then
7319 ac_sed_cmds=cat
7321 fi # test -n "$CONFIG_FILES"
7323 _ACEOF
7324 cat >>$CONFIG_STATUS <<\_ACEOF
7325 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7326 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7327 case $ac_file in
7328 - | *:- | *:-:* ) # input from stdin
7329 cat >$tmp/stdin
7330 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7331 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7332 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7333 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7334 * ) ac_file_in=$ac_file.in ;;
7335 esac
7337 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7338 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7340 X"$ac_file" : 'X\(//\)[^/]' \| \
7341 X"$ac_file" : 'X\(//\)$' \| \
7342 X"$ac_file" : 'X\(/\)' \| \
7343 . : '\(.\)' 2>/dev/null ||
7344 echo X"$ac_file" |
7345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7347 /^X\(\/\/\)$/{ s//\1/; q; }
7348 /^X\(\/\).*/{ s//\1/; q; }
7349 s/.*/./; q'`
7350 { if $as_mkdir_p; then
7351 mkdir -p "$ac_dir"
7352 else
7353 as_dir="$ac_dir"
7354 as_dirs=
7355 while test ! -d "$as_dir"; do
7356 as_dirs="$as_dir $as_dirs"
7357 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7359 X"$as_dir" : 'X\(//\)[^/]' \| \
7360 X"$as_dir" : 'X\(//\)$' \| \
7361 X"$as_dir" : 'X\(/\)' \| \
7362 . : '\(.\)' 2>/dev/null ||
7363 echo X"$as_dir" |
7364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7366 /^X\(\/\/\)$/{ s//\1/; q; }
7367 /^X\(\/\).*/{ s//\1/; q; }
7368 s/.*/./; q'`
7369 done
7370 test ! -n "$as_dirs" || mkdir $as_dirs
7371 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7372 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7373 { (exit 1); exit 1; }; }; }
7375 ac_builddir=.
7377 if test "$ac_dir" != .; then
7378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7379 # A "../" for each directory in $ac_dir_suffix.
7380 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7381 else
7382 ac_dir_suffix= ac_top_builddir=
7385 case $srcdir in
7386 .) # No --srcdir option. We are building in place.
7387 ac_srcdir=.
7388 if test -z "$ac_top_builddir"; then
7389 ac_top_srcdir=.
7390 else
7391 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7392 fi ;;
7393 [\\/]* | ?:[\\/]* ) # Absolute path.
7394 ac_srcdir=$srcdir$ac_dir_suffix;
7395 ac_top_srcdir=$srcdir ;;
7396 *) # Relative path.
7397 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7398 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7399 esac
7400 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7401 # absolute.
7402 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7403 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7404 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7405 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7408 case $INSTALL in
7409 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7410 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7411 esac
7413 if test x"$ac_file" != x-; then
7414 { echo "$as_me:$LINENO: creating $ac_file" >&5
7415 echo "$as_me: creating $ac_file" >&6;}
7416 rm -f "$ac_file"
7418 # Let's still pretend it is `configure' which instantiates (i.e., don't
7419 # use $as_me), people would be surprised to read:
7420 # /* config.h. Generated by config.status. */
7421 if test x"$ac_file" = x-; then
7422 configure_input=
7423 else
7424 configure_input="$ac_file. "
7426 configure_input=$configure_input"Generated from `echo $ac_file_in |
7427 sed 's,.*/,,'` by configure."
7429 # First look for the input files in the build tree, otherwise in the
7430 # src tree.
7431 ac_file_inputs=`IFS=:
7432 for f in $ac_file_in; do
7433 case $f in
7434 -) echo $tmp/stdin ;;
7435 [\\/$]*)
7436 # Absolute (can't be DOS-style, as IFS=:)
7437 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7438 echo "$as_me: error: cannot find input file: $f" >&2;}
7439 { (exit 1); exit 1; }; }
7440 echo $f;;
7441 *) # Relative
7442 if test -f "$f"; then
7443 # Build tree
7444 echo $f
7445 elif test -f "$srcdir/$f"; then
7446 # Source tree
7447 echo $srcdir/$f
7448 else
7449 # /dev/null tree
7450 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7451 echo "$as_me: error: cannot find input file: $f" >&2;}
7452 { (exit 1); exit 1; }; }
7453 fi;;
7454 esac
7455 done` || { (exit 1); exit 1; }
7456 _ACEOF
7457 cat >>$CONFIG_STATUS <<_ACEOF
7458 sed "$ac_vpsub
7459 $extrasub
7460 _ACEOF
7461 cat >>$CONFIG_STATUS <<\_ACEOF
7463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7464 s,@configure_input@,$configure_input,;t t
7465 s,@srcdir@,$ac_srcdir,;t t
7466 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7467 s,@top_srcdir@,$ac_top_srcdir,;t t
7468 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7469 s,@builddir@,$ac_builddir,;t t
7470 s,@abs_builddir@,$ac_abs_builddir,;t t
7471 s,@top_builddir@,$ac_top_builddir,;t t
7472 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7473 s,@INSTALL@,$ac_INSTALL,;t t
7474 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7475 rm -f $tmp/stdin
7476 if test x"$ac_file" != x-; then
7477 mv $tmp/out $ac_file
7478 else
7479 cat $tmp/out
7480 rm -f $tmp/out
7483 # Run the commands associated with the file.
7484 case $ac_file in
7485 make/ptlib-config ) chmod a+x make/ptlib-config ;;
7486 esac
7487 done
7488 _ACEOF
7489 cat >>$CONFIG_STATUS <<\_ACEOF
7492 # CONFIG_HEADER section.
7495 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7496 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7498 # ac_d sets the value in "#define NAME VALUE" lines.
7499 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7500 ac_dB='[ ].*$,\1#\2'
7501 ac_dC=' '
7502 ac_dD=',;t'
7503 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7504 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7505 ac_uB='$,\1#\2define\3'
7506 ac_uC=' '
7507 ac_uD=',;t'
7509 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7510 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7511 case $ac_file in
7512 - | *:- | *:-:* ) # input from stdin
7513 cat >$tmp/stdin
7514 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7516 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7518 * ) ac_file_in=$ac_file.in ;;
7519 esac
7521 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7522 echo "$as_me: creating $ac_file" >&6;}
7524 # First look for the input files in the build tree, otherwise in the
7525 # src tree.
7526 ac_file_inputs=`IFS=:
7527 for f in $ac_file_in; do
7528 case $f in
7529 -) echo $tmp/stdin ;;
7530 [\\/$]*)
7531 # Absolute (can't be DOS-style, as IFS=:)
7532 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7533 echo "$as_me: error: cannot find input file: $f" >&2;}
7534 { (exit 1); exit 1; }; }
7535 echo $f;;
7536 *) # Relative
7537 if test -f "$f"; then
7538 # Build tree
7539 echo $f
7540 elif test -f "$srcdir/$f"; then
7541 # Source tree
7542 echo $srcdir/$f
7543 else
7544 # /dev/null tree
7545 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7546 echo "$as_me: error: cannot find input file: $f" >&2;}
7547 { (exit 1); exit 1; }; }
7548 fi;;
7549 esac
7550 done` || { (exit 1); exit 1; }
7551 # Remove the trailing spaces.
7552 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7554 _ACEOF
7556 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7557 # `conftest.undefs', that substitutes the proper values into
7558 # config.h.in to produce config.h. The first handles `#define'
7559 # templates, and the second `#undef' templates.
7560 # And first: Protect against being on the right side of a sed subst in
7561 # config.status. Protect against being in an unquoted here document
7562 # in config.status.
7563 rm -f conftest.defines conftest.undefs
7564 # Using a here document instead of a string reduces the quoting nightmare.
7565 # Putting comments in sed scripts is not portable.
7567 # `end' is used to avoid that the second main sed command (meant for
7568 # 0-ary CPP macros) applies to n-ary macro definitions.
7569 # See the Autoconf documentation for `clear'.
7570 cat >confdef2sed.sed <<\_ACEOF
7571 s/[\\&,]/\\&/g
7572 s,[\\$`],\\&,g
7573 t clear
7574 : clear
7575 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7576 t end
7577 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7578 : end
7579 _ACEOF
7580 # If some macros were called several times there might be several times
7581 # the same #defines, which is useless. Nevertheless, we may not want to
7582 # sort them, since we want the *last* AC-DEFINE to be honored.
7583 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7584 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7585 rm -f confdef2sed.sed
7587 # This sed command replaces #undef with comments. This is necessary, for
7588 # example, in the case of _POSIX_SOURCE, which is predefined and required
7589 # on some systems where configure will not decide to define it.
7590 cat >>conftest.undefs <<\_ACEOF
7591 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7592 _ACEOF
7594 # Break up conftest.defines because some shells have a limit on the size
7595 # of here documents, and old seds have small limits too (100 cmds).
7596 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7597 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7598 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7599 echo ' :' >>$CONFIG_STATUS
7600 rm -f conftest.tail
7601 while grep . conftest.defines >/dev/null
7603 # Write a limited-size here document to $tmp/defines.sed.
7604 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7605 # Speed up: don't consider the non `#define' lines.
7606 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7607 # Work around the forget-to-reset-the-flag bug.
7608 echo 't clr' >>$CONFIG_STATUS
7609 echo ': clr' >>$CONFIG_STATUS
7610 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7611 echo 'CEOF
7612 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7613 rm -f $tmp/in
7614 mv $tmp/out $tmp/in
7615 ' >>$CONFIG_STATUS
7616 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7617 rm -f conftest.defines
7618 mv conftest.tail conftest.defines
7619 done
7620 rm -f conftest.defines
7621 echo ' fi # grep' >>$CONFIG_STATUS
7622 echo >>$CONFIG_STATUS
7624 # Break up conftest.undefs because some shells have a limit on the size
7625 # of here documents, and old seds have small limits too (100 cmds).
7626 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7627 rm -f conftest.tail
7628 while grep . conftest.undefs >/dev/null
7630 # Write a limited-size here document to $tmp/undefs.sed.
7631 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7632 # Speed up: don't consider the non `#undef'
7633 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7634 # Work around the forget-to-reset-the-flag bug.
7635 echo 't clr' >>$CONFIG_STATUS
7636 echo ': clr' >>$CONFIG_STATUS
7637 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7638 echo 'CEOF
7639 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7640 rm -f $tmp/in
7641 mv $tmp/out $tmp/in
7642 ' >>$CONFIG_STATUS
7643 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7644 rm -f conftest.undefs
7645 mv conftest.tail conftest.undefs
7646 done
7647 rm -f conftest.undefs
7649 cat >>$CONFIG_STATUS <<\_ACEOF
7650 # Let's still pretend it is `configure' which instantiates (i.e., don't
7651 # use $as_me), people would be surprised to read:
7652 # /* config.h. Generated by config.status. */
7653 if test x"$ac_file" = x-; then
7654 echo "/* Generated by configure. */" >$tmp/config.h
7655 else
7656 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7658 cat $tmp/in >>$tmp/config.h
7659 rm -f $tmp/in
7660 if test x"$ac_file" != x-; then
7661 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7662 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7663 echo "$as_me: $ac_file is unchanged" >&6;}
7664 else
7665 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7666 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7667 X"$ac_file" : 'X\(//\)[^/]' \| \
7668 X"$ac_file" : 'X\(//\)$' \| \
7669 X"$ac_file" : 'X\(/\)' \| \
7670 . : '\(.\)' 2>/dev/null ||
7671 echo X"$ac_file" |
7672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7674 /^X\(\/\/\)$/{ s//\1/; q; }
7675 /^X\(\/\).*/{ s//\1/; q; }
7676 s/.*/./; q'`
7677 { if $as_mkdir_p; then
7678 mkdir -p "$ac_dir"
7679 else
7680 as_dir="$ac_dir"
7681 as_dirs=
7682 while test ! -d "$as_dir"; do
7683 as_dirs="$as_dir $as_dirs"
7684 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7686 X"$as_dir" : 'X\(//\)[^/]' \| \
7687 X"$as_dir" : 'X\(//\)$' \| \
7688 X"$as_dir" : 'X\(/\)' \| \
7689 . : '\(.\)' 2>/dev/null ||
7690 echo X"$as_dir" |
7691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7693 /^X\(\/\/\)$/{ s//\1/; q; }
7694 /^X\(\/\).*/{ s//\1/; q; }
7695 s/.*/./; q'`
7696 done
7697 test ! -n "$as_dirs" || mkdir $as_dirs
7698 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7699 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7700 { (exit 1); exit 1; }; }; }
7702 rm -f $ac_file
7703 mv $tmp/config.h $ac_file
7705 else
7706 cat $tmp/config.h
7707 rm -f $tmp/config.h
7709 done
7710 _ACEOF
7712 cat >>$CONFIG_STATUS <<\_ACEOF
7714 { (exit 0); exit 0; }
7715 _ACEOF
7716 chmod +x $CONFIG_STATUS
7717 ac_clean_files=$ac_clean_files_save
7720 # configure is writing to config.log, and then calls config.status.
7721 # config.status does its own redirection, appending to config.log.
7722 # Unfortunately, on DOS this fails, as config.log is still kept open
7723 # by configure, so config.status won't be able to write to it; its
7724 # output is simply discarded. So we exec the FD to /dev/null,
7725 # effectively closing config.log, so it can be properly (re)opened and
7726 # appended to by config.status. When coming back to configure, we
7727 # need to make the FD available again.
7728 if test "$no_create" != yes; then
7729 ac_cs_success=:
7730 ac_config_status_args=
7731 test "$silent" = yes &&
7732 ac_config_status_args="$ac_config_status_args --quiet"
7733 exec 5>/dev/null
7734 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7735 exec 5>>config.log
7736 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7737 # would make configure fail if this is the last instruction.
7738 $ac_cs_success || { (exit 1); exit 1; }
7742 # CONFIG_SUBDIRS section.
7744 if test "$no_recursion" != yes; then
7746 # Remove --cache-file and --srcdir arguments so they do not pile up.
7747 ac_sub_configure_args=
7748 ac_prev=
7749 for ac_arg in $ac_configure_args; do
7750 if test -n "$ac_prev"; then
7751 ac_prev=
7752 continue
7754 case $ac_arg in
7755 -cache-file | --cache-file | --cache-fil | --cache-fi \
7756 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7757 ac_prev=cache_file ;;
7758 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7759 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7760 | --c=*)
7762 --config-cache | -C)
7764 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7765 ac_prev=srcdir ;;
7766 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7768 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7769 ac_prev=prefix ;;
7770 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7772 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7773 esac
7774 done
7776 # Always prepend --prefix to ensure using the same prefix
7777 # in subdir configurations.
7778 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7780 ac_popdir=`pwd`
7781 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7783 # Do not complain, so a configure script can configure whichever
7784 # parts of a large source tree are present.
7785 test -d $srcdir/$ac_dir || continue
7787 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7788 echo "$as_me: configuring in $ac_dir" >&6;}
7789 { if $as_mkdir_p; then
7790 mkdir -p "$ac_dir"
7791 else
7792 as_dir="$ac_dir"
7793 as_dirs=
7794 while test ! -d "$as_dir"; do
7795 as_dirs="$as_dir $as_dirs"
7796 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7798 X"$as_dir" : 'X\(//\)[^/]' \| \
7799 X"$as_dir" : 'X\(//\)$' \| \
7800 X"$as_dir" : 'X\(/\)' \| \
7801 . : '\(.\)' 2>/dev/null ||
7802 echo X"$as_dir" |
7803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7805 /^X\(\/\/\)$/{ s//\1/; q; }
7806 /^X\(\/\).*/{ s//\1/; q; }
7807 s/.*/./; q'`
7808 done
7809 test ! -n "$as_dirs" || mkdir $as_dirs
7810 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7811 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7812 { (exit 1); exit 1; }; }; }
7814 ac_builddir=.
7816 if test "$ac_dir" != .; then
7817 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7818 # A "../" for each directory in $ac_dir_suffix.
7819 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7820 else
7821 ac_dir_suffix= ac_top_builddir=
7824 case $srcdir in
7825 .) # No --srcdir option. We are building in place.
7826 ac_srcdir=.
7827 if test -z "$ac_top_builddir"; then
7828 ac_top_srcdir=.
7829 else
7830 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7831 fi ;;
7832 [\\/]* | ?:[\\/]* ) # Absolute path.
7833 ac_srcdir=$srcdir$ac_dir_suffix;
7834 ac_top_srcdir=$srcdir ;;
7835 *) # Relative path.
7836 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7837 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7838 esac
7839 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7840 # absolute.
7841 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7842 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7843 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7844 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7847 cd $ac_dir
7849 # Check for guested configure; otherwise get Cygnus style configure.
7850 if test -f $ac_srcdir/configure.gnu; then
7851 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7852 elif test -f $ac_srcdir/configure; then
7853 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7854 elif test -f $ac_srcdir/configure.in; then
7855 ac_sub_configure=$ac_configure
7856 else
7857 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7858 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7859 ac_sub_configure=
7862 # The recursion is here.
7863 if test -n "$ac_sub_configure"; then
7864 # Make the cache file name correct relative to the subdirectory.
7865 case $cache_file in
7866 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7867 *) # Relative path.
7868 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7869 esac
7871 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7872 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7873 # The eval makes quoting arguments work.
7874 eval $ac_sub_configure $ac_sub_configure_args \
7875 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7876 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7877 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7878 { (exit 1); exit 1; }; }
7881 cd $ac_popdir
7882 done