Fixed missing namespace selector on function definition.
[pwlib.git] / configure
blobfd70289727a2414ed295540820d61b7e2afc0a3a
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
861 Some influential environment variables:
862 CXX C++ compiler command
863 CXXFLAGS C++ compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CXXCPP C++ preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 # absolute.
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 cd $ac_dir
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
916 echo
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
919 echo
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
923 echo
924 $ac_configure --help
925 else
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 cd $ac_popdir
929 done
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
934 cat <<\_ACEOF
936 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
937 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
940 _ACEOF
941 exit 0
943 exec 5>config.log
944 cat >&5 <<_ACEOF
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.57. Invocation command line was
951 $ $0 $@
953 _ACEOF
955 cat <<_ASUNAME
956 ## --------- ##
957 ## Platform. ##
958 ## --------- ##
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977 _ASUNAME
979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
980 for as_dir in $PATH
982 IFS=$as_save_IFS
983 test -z "$as_dir" && as_dir=.
984 echo "PATH: $as_dir"
985 done
987 } >&5
989 cat >&5 <<_ACEOF
992 ## ----------- ##
993 ## Core tests. ##
994 ## ----------- ##
996 _ACEOF
999 # Keep a trace of the command line.
1000 # Strip out --no-create and --no-recursion so they do not pile up.
1001 # Strip out --silent because we don't want to record it for future runs.
1002 # Also quote any args containing shell meta-characters.
1003 # Make two passes to allow for proper duplicate-argument suppression.
1004 ac_configure_args=
1005 ac_configure_args0=
1006 ac_configure_args1=
1007 ac_sep=
1008 ac_must_keep_next=false
1009 for ac_pass in 1 2
1011 for ac_arg
1013 case $ac_arg in
1014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1017 continue ;;
1018 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1019 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1020 esac
1021 case $ac_pass in
1022 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1025 if test $ac_must_keep_next = true; then
1026 ac_must_keep_next=false # Got value, back to normal.
1027 else
1028 case $ac_arg in
1029 *=* | --config-cache | -C | -disable-* | --disable-* \
1030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1032 | -with-* | --with-* | -without-* | --without-* | --x)
1033 case "$ac_configure_args0 " in
1034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1035 esac
1037 -* ) ac_must_keep_next=true ;;
1038 esac
1040 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1042 ac_sep=" "
1044 esac
1045 done
1046 done
1047 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1048 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log. We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056 # Save into config.log some information that might help in debugging.
1058 echo
1060 cat <<\_ASBOX
1061 ## ---------------- ##
1062 ## Cache variables. ##
1063 ## ---------------- ##
1064 _ASBOX
1065 echo
1066 # The following way of writing the cache mishandles newlines in values,
1068 (set) 2>&1 |
1069 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070 *ac_space=\ *)
1071 sed -n \
1072 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 sed -n \
1077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079 esac;
1081 echo
1083 cat <<\_ASBOX
1084 ## ----------------- ##
1085 ## Output variables. ##
1086 ## ----------------- ##
1087 _ASBOX
1088 echo
1089 for ac_var in $ac_subst_vars
1091 eval ac_val=$`echo $ac_var`
1092 echo "$ac_var='"'"'$ac_val'"'"'"
1093 done | sort
1094 echo
1096 if test -n "$ac_subst_files"; then
1097 cat <<\_ASBOX
1098 ## ------------- ##
1099 ## Output files. ##
1100 ## ------------- ##
1101 _ASBOX
1102 echo
1103 for ac_var in $ac_subst_files
1105 eval ac_val=$`echo $ac_var`
1106 echo "$ac_var='"'"'$ac_val'"'"'"
1107 done | sort
1108 echo
1111 if test -s confdefs.h; then
1112 cat <<\_ASBOX
1113 ## ----------- ##
1114 ## confdefs.h. ##
1115 ## ----------- ##
1116 _ASBOX
1117 echo
1118 sed "/^$/d" confdefs.h | sort
1119 echo
1121 test "$ac_signal" != 0 &&
1122 echo "$as_me: caught signal $ac_signal"
1123 echo "$as_me: exit $exit_status"
1124 } >&5
1125 rm -f core core.* *.core &&
1126 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127 exit $exit_status
1129 for ac_signal in 1 2 13 15; do
1130 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131 done
1132 ac_signal=0
1134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1135 rm -rf conftest* confdefs.h
1136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 echo >confdefs.h
1139 # Predefined preprocessor variables.
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_NAME "$PACKAGE_NAME"
1143 _ACEOF
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148 _ACEOF
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1153 _ACEOF
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_STRING "$PACKAGE_STRING"
1158 _ACEOF
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163 _ACEOF
1166 # Let the site file select an alternate cache file if it wants to.
1167 # Prefer explicitly selected file to automatically selected ones.
1168 if test -z "$CONFIG_SITE"; then
1169 if test "x$prefix" != xNONE; then
1170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1171 else
1172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1175 for ac_site_file in $CONFIG_SITE; do
1176 if test -r "$ac_site_file"; then
1177 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1178 echo "$as_me: loading site script $ac_site_file" >&6;}
1179 sed 's/^/| /' "$ac_site_file" >&5
1180 . "$ac_site_file"
1182 done
1184 if test -r "$cache_file"; then
1185 # Some versions of bash will fail to source /dev/null (special
1186 # files actually), so we avoid doing that.
1187 if test -f "$cache_file"; then
1188 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1189 echo "$as_me: loading cache $cache_file" >&6;}
1190 case $cache_file in
1191 [\\/]* | ?:[\\/]* ) . $cache_file;;
1192 *) . ./$cache_file;;
1193 esac
1195 else
1196 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1197 echo "$as_me: creating cache $cache_file" >&6;}
1198 >$cache_file
1201 # Check that the precious variables saved in the cache have kept the same
1202 # value.
1203 ac_cache_corrupted=false
1204 for ac_var in `(set) 2>&1 |
1205 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1207 eval ac_new_set=\$ac_env_${ac_var}_set
1208 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1209 eval ac_new_val="\$ac_env_${ac_var}_value"
1210 case $ac_old_set,$ac_new_set in
1211 set,)
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1215 ,set)
1216 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1218 ac_cache_corrupted=: ;;
1219 ,);;
1221 if test "x$ac_old_val" != "x$ac_new_val"; then
1222 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1223 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1224 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1225 echo "$as_me: former value: $ac_old_val" >&2;}
1226 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1227 echo "$as_me: current value: $ac_new_val" >&2;}
1228 ac_cache_corrupted=:
1229 fi;;
1230 esac
1231 # Pass precious variables to config.status.
1232 if test "$ac_new_set" = set; then
1233 case $ac_new_val in
1234 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1236 *) ac_arg=$ac_var=$ac_new_val ;;
1237 esac
1238 case " $ac_configure_args " in
1239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1240 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1241 esac
1243 done
1244 if $ac_cache_corrupted; then
1245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249 { (exit 1); exit 1; }; }
1252 ac_ext=c
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1277 ac_aux_dir=
1278 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1279 if test -f $ac_dir/install-sh; then
1280 ac_aux_dir=$ac_dir
1281 ac_install_sh="$ac_aux_dir/install-sh -c"
1282 break
1283 elif test -f $ac_dir/install.sh; then
1284 ac_aux_dir=$ac_dir
1285 ac_install_sh="$ac_aux_dir/install.sh -c"
1286 break
1287 elif test -f $ac_dir/shtool; then
1288 ac_aux_dir=$ac_dir
1289 ac_install_sh="$ac_aux_dir/shtool install -c"
1290 break
1292 done
1293 if test -z "$ac_aux_dir"; then
1294 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1295 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1296 { (exit 1); exit 1; }; }
1298 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1299 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1300 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1304 subdirs="$subdirs plugins"
1307 ac_ext=cc
1308 ac_cpp='$CXXCPP $CPPFLAGS'
1309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1312 if test -n "$ac_tool_prefix"; then
1313 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1317 echo "$as_me:$LINENO: checking for $ac_word" >&5
1318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1319 if test "${ac_cv_prog_CXX+set}" = set; then
1320 echo $ECHO_N "(cached) $ECHO_C" >&6
1321 else
1322 if test -n "$CXX"; then
1323 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1324 else
1325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1326 for as_dir in $PATH
1328 IFS=$as_save_IFS
1329 test -z "$as_dir" && as_dir=.
1330 for ac_exec_ext in '' $ac_executable_extensions; do
1331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1332 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1334 break 2
1336 done
1337 done
1341 CXX=$ac_cv_prog_CXX
1342 if test -n "$CXX"; then
1343 echo "$as_me:$LINENO: result: $CXX" >&5
1344 echo "${ECHO_T}$CXX" >&6
1345 else
1346 echo "$as_me:$LINENO: result: no" >&5
1347 echo "${ECHO_T}no" >&6
1350 test -n "$CXX" && break
1351 done
1353 if test -z "$CXX"; then
1354 ac_ct_CXX=$CXX
1355 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1357 # Extract the first word of "$ac_prog", so it can be a program name with args.
1358 set dummy $ac_prog; ac_word=$2
1359 echo "$as_me:$LINENO: checking for $ac_word" >&5
1360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1361 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 if test -n "$ac_ct_CXX"; then
1365 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1366 else
1367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 for as_dir in $PATH
1370 IFS=$as_save_IFS
1371 test -z "$as_dir" && as_dir=.
1372 for ac_exec_ext in '' $ac_executable_extensions; do
1373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1374 ac_cv_prog_ac_ct_CXX="$ac_prog"
1375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1376 break 2
1378 done
1379 done
1383 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1384 if test -n "$ac_ct_CXX"; then
1385 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1386 echo "${ECHO_T}$ac_ct_CXX" >&6
1387 else
1388 echo "$as_me:$LINENO: result: no" >&5
1389 echo "${ECHO_T}no" >&6
1392 test -n "$ac_ct_CXX" && break
1393 done
1394 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1396 CXX=$ac_ct_CXX
1400 # Provide some information about the compiler.
1401 echo "$as_me:$LINENO:" \
1402 "checking for C++ compiler version" >&5
1403 ac_compiler=`set X $ac_compile; echo $2`
1404 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1405 (eval $ac_compiler --version </dev/null >&5) 2>&5
1406 ac_status=$?
1407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1408 (exit $ac_status); }
1409 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1410 (eval $ac_compiler -v </dev/null >&5) 2>&5
1411 ac_status=$?
1412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1413 (exit $ac_status); }
1414 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1415 (eval $ac_compiler -V </dev/null >&5) 2>&5
1416 ac_status=$?
1417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1418 (exit $ac_status); }
1420 cat >conftest.$ac_ext <<_ACEOF
1421 #line $LINENO "configure"
1422 /* confdefs.h. */
1423 _ACEOF
1424 cat confdefs.h >>conftest.$ac_ext
1425 cat >>conftest.$ac_ext <<_ACEOF
1426 /* end confdefs.h. */
1429 main ()
1433 return 0;
1435 _ACEOF
1436 ac_clean_files_save=$ac_clean_files
1437 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1438 # Try to create an executable without -o first, disregard a.out.
1439 # It will help us diagnose broken compilers, and finding out an intuition
1440 # of exeext.
1441 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1442 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1443 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1444 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1445 (eval $ac_link_default) 2>&5
1446 ac_status=$?
1447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1448 (exit $ac_status); }; then
1449 # Find the output, starting from the most likely. This scheme is
1450 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1451 # resort.
1453 # Be careful to initialize this variable, since it used to be cached.
1454 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1455 ac_cv_exeext=
1456 # b.out is created by i960 compilers.
1457 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1459 test -f "$ac_file" || continue
1460 case $ac_file in
1461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1463 conftest.$ac_ext )
1464 # This is the source file.
1466 [ab].out )
1467 # We found the default executable, but exeext='' is most
1468 # certainly right.
1469 break;;
1470 *.* )
1471 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1472 # FIXME: I believe we export ac_cv_exeext for Libtool,
1473 # but it would be cool to find out if it's true. Does anybody
1474 # maintain Libtool? --akim.
1475 export ac_cv_exeext
1476 break;;
1478 break;;
1479 esac
1480 done
1481 else
1482 echo "$as_me: failed program was:" >&5
1483 sed 's/^/| /' conftest.$ac_ext >&5
1485 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1486 See \`config.log' for more details." >&5
1487 echo "$as_me: error: C++ compiler cannot create executables
1488 See \`config.log' for more details." >&2;}
1489 { (exit 77); exit 77; }; }
1492 ac_exeext=$ac_cv_exeext
1493 echo "$as_me:$LINENO: result: $ac_file" >&5
1494 echo "${ECHO_T}$ac_file" >&6
1496 # Check the compiler produces executables we can run. If not, either
1497 # the compiler is broken, or we cross compile.
1498 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1499 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1500 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1501 # If not cross compiling, check that we can run a simple program.
1502 if test "$cross_compiling" != yes; then
1503 if { ac_try='./$ac_file'
1504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1505 (eval $ac_try) 2>&5
1506 ac_status=$?
1507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1508 (exit $ac_status); }; }; then
1509 cross_compiling=no
1510 else
1511 if test "$cross_compiling" = maybe; then
1512 cross_compiling=yes
1513 else
1514 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1515 If you meant to cross compile, use \`--host'.
1516 See \`config.log' for more details." >&5
1517 echo "$as_me: error: cannot run C++ compiled programs.
1518 If you meant to cross compile, use \`--host'.
1519 See \`config.log' for more details." >&2;}
1520 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: result: yes" >&5
1525 echo "${ECHO_T}yes" >&6
1527 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1528 ac_clean_files=$ac_clean_files_save
1529 # Check the compiler produces executables we can run. If not, either
1530 # the compiler is broken, or we cross compile.
1531 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1532 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1533 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1534 echo "${ECHO_T}$cross_compiling" >&6
1536 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1537 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1539 (eval $ac_link) 2>&5
1540 ac_status=$?
1541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1542 (exit $ac_status); }; then
1543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1544 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1545 # work properly (i.e., refer to `conftest.exe'), while it won't with
1546 # `rm'.
1547 for ac_file in conftest.exe conftest conftest.*; do
1548 test -f "$ac_file" || continue
1549 case $ac_file in
1550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1552 export ac_cv_exeext
1553 break;;
1554 * ) break;;
1555 esac
1556 done
1557 else
1558 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1559 See \`config.log' for more details." >&5
1560 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1561 See \`config.log' for more details." >&2;}
1562 { (exit 1); exit 1; }; }
1565 rm -f conftest$ac_cv_exeext
1566 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1567 echo "${ECHO_T}$ac_cv_exeext" >&6
1569 rm -f conftest.$ac_ext
1570 EXEEXT=$ac_cv_exeext
1571 ac_exeext=$EXEEXT
1572 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1573 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1574 if test "${ac_cv_objext+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 cat >conftest.$ac_ext <<_ACEOF
1578 #line $LINENO "configure"
1579 /* confdefs.h. */
1580 _ACEOF
1581 cat confdefs.h >>conftest.$ac_ext
1582 cat >>conftest.$ac_ext <<_ACEOF
1583 /* end confdefs.h. */
1586 main ()
1590 return 0;
1592 _ACEOF
1593 rm -f conftest.o conftest.obj
1594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1595 (eval $ac_compile) 2>&5
1596 ac_status=$?
1597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1598 (exit $ac_status); }; then
1599 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1600 case $ac_file in
1601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1603 break;;
1604 esac
1605 done
1606 else
1607 echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1611 See \`config.log' for more details." >&5
1612 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1613 See \`config.log' for more details." >&2;}
1614 { (exit 1); exit 1; }; }
1617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1619 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1620 echo "${ECHO_T}$ac_cv_objext" >&6
1621 OBJEXT=$ac_cv_objext
1622 ac_objext=$OBJEXT
1623 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1624 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1625 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 cat >conftest.$ac_ext <<_ACEOF
1629 #line $LINENO "configure"
1630 /* confdefs.h. */
1631 _ACEOF
1632 cat confdefs.h >>conftest.$ac_ext
1633 cat >>conftest.$ac_ext <<_ACEOF
1634 /* end confdefs.h. */
1637 main ()
1639 #ifndef __GNUC__
1640 choke me
1641 #endif
1644 return 0;
1646 _ACEOF
1647 rm -f conftest.$ac_objext
1648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1649 (eval $ac_compile) 2>&5
1650 ac_status=$?
1651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1652 (exit $ac_status); } &&
1653 { ac_try='test -s conftest.$ac_objext'
1654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1655 (eval $ac_try) 2>&5
1656 ac_status=$?
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }; }; then
1659 ac_compiler_gnu=yes
1660 else
1661 echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_compiler_gnu=no
1666 rm -f conftest.$ac_objext conftest.$ac_ext
1667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1670 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1671 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1672 GXX=`test $ac_compiler_gnu = yes && echo yes`
1673 ac_test_CXXFLAGS=${CXXFLAGS+set}
1674 ac_save_CXXFLAGS=$CXXFLAGS
1675 CXXFLAGS="-g"
1676 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1677 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1678 if test "${ac_cv_prog_cxx_g+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681 cat >conftest.$ac_ext <<_ACEOF
1682 #line $LINENO "configure"
1683 /* confdefs.h. */
1684 _ACEOF
1685 cat confdefs.h >>conftest.$ac_ext
1686 cat >>conftest.$ac_ext <<_ACEOF
1687 /* end confdefs.h. */
1690 main ()
1694 return 0;
1696 _ACEOF
1697 rm -f conftest.$ac_objext
1698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1699 (eval $ac_compile) 2>&5
1700 ac_status=$?
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); } &&
1703 { ac_try='test -s conftest.$ac_objext'
1704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1705 (eval $ac_try) 2>&5
1706 ac_status=$?
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }; }; then
1709 ac_cv_prog_cxx_g=yes
1710 else
1711 echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_cv_prog_cxx_g=no
1716 rm -f conftest.$ac_objext conftest.$ac_ext
1718 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1719 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1720 if test "$ac_test_CXXFLAGS" = set; then
1721 CXXFLAGS=$ac_save_CXXFLAGS
1722 elif test $ac_cv_prog_cxx_g = yes; then
1723 if test "$GXX" = yes; then
1724 CXXFLAGS="-g -O2"
1725 else
1726 CXXFLAGS="-g"
1728 else
1729 if test "$GXX" = yes; then
1730 CXXFLAGS="-O2"
1731 else
1732 CXXFLAGS=
1735 for ac_declaration in \
1737 '#include <stdlib.h>' \
1738 'extern "C" void std::exit (int) throw (); using std::exit;' \
1739 'extern "C" void std::exit (int); using std::exit;' \
1740 'extern "C" void exit (int) throw ();' \
1741 'extern "C" void exit (int);' \
1742 'void exit (int);'
1744 cat >conftest.$ac_ext <<_ACEOF
1745 #line $LINENO "configure"
1746 /* confdefs.h. */
1747 _ACEOF
1748 cat confdefs.h >>conftest.$ac_ext
1749 cat >>conftest.$ac_ext <<_ACEOF
1750 /* end confdefs.h. */
1751 #include <stdlib.h>
1752 $ac_declaration
1754 main ()
1756 exit (42);
1758 return 0;
1760 _ACEOF
1761 rm -f conftest.$ac_objext
1762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1763 (eval $ac_compile) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); } &&
1767 { ac_try='test -s conftest.$ac_objext'
1768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1769 (eval $ac_try) 2>&5
1770 ac_status=$?
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1774 else
1775 echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 continue
1780 rm -f conftest.$ac_objext conftest.$ac_ext
1781 cat >conftest.$ac_ext <<_ACEOF
1782 #line $LINENO "configure"
1783 /* confdefs.h. */
1784 _ACEOF
1785 cat confdefs.h >>conftest.$ac_ext
1786 cat >>conftest.$ac_ext <<_ACEOF
1787 /* end confdefs.h. */
1788 $ac_declaration
1790 main ()
1792 exit (42);
1794 return 0;
1796 _ACEOF
1797 rm -f conftest.$ac_objext
1798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1799 (eval $ac_compile) 2>&5
1800 ac_status=$?
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); } &&
1803 { ac_try='test -s conftest.$ac_objext'
1804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1805 (eval $ac_try) 2>&5
1806 ac_status=$?
1807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808 (exit $ac_status); }; }; then
1809 break
1810 else
1811 echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1815 rm -f conftest.$ac_objext conftest.$ac_ext
1816 done
1817 rm -f conftest*
1818 if test -n "$ac_declaration"; then
1819 echo '#ifdef __cplusplus' >>confdefs.h
1820 echo $ac_declaration >>confdefs.h
1821 echo '#endif' >>confdefs.h
1824 ac_ext=c
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 ac_ext=cc
1832 ac_cpp='$CXXCPP $CPPFLAGS'
1833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1839 PWLIBDIR=`pwd`
1843 if test "x$prefix" = "xNONE"; then
1844 INSTALLPREFIX="/usr/local"
1845 else
1846 INSTALLPREFIX="${prefix}"
1852 LIBDIR=${libdir}
1856 MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1857 MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1858 BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1859 PWLIB_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1864 MAJOR_VERSION=$MAJOR_VERSION
1866 MINOR_VERSION=$MINOR_VERSION
1868 BUILD_NUMBER=$BUILD_NUMBER
1871 { echo "$as_me:$LINENO: PTLib version is ${PWLIB_VERSION}" >&5
1872 echo "$as_me: PTLib version is ${PWLIB_VERSION}" >&6;};
1875 cat >>confdefs.h <<_ACEOF
1876 #define PWLIB_MAJOR $MAJOR_VERSION
1877 _ACEOF
1880 cat >>confdefs.h <<_ACEOF
1881 #define PWLIB_MINOR $MINOR_VERSION
1882 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PWLIB_BUILD $BUILD_NUMBER
1887 _ACEOF
1890 cat >>confdefs.h <<_ACEOF
1891 #define PWLIB_VERSION "$PWLIB_VERSION"
1892 _ACEOF
1896 # Make sure we can run config.sub.
1897 $ac_config_sub sun4 >/dev/null 2>&1 ||
1898 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1899 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1900 { (exit 1); exit 1; }; }
1902 echo "$as_me:$LINENO: checking build system type" >&5
1903 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1904 if test "${ac_cv_build+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 ac_cv_build_alias=$build_alias
1908 test -z "$ac_cv_build_alias" &&
1909 ac_cv_build_alias=`$ac_config_guess`
1910 test -z "$ac_cv_build_alias" &&
1911 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1912 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1913 { (exit 1); exit 1; }; }
1914 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1915 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1916 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1917 { (exit 1); exit 1; }; }
1920 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1921 echo "${ECHO_T}$ac_cv_build" >&6
1922 build=$ac_cv_build
1923 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1924 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1925 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1928 echo "$as_me:$LINENO: checking host system type" >&5
1929 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1930 if test "${ac_cv_host+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 ac_cv_host_alias=$host_alias
1934 test -z "$ac_cv_host_alias" &&
1935 ac_cv_host_alias=$ac_cv_build_alias
1936 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1937 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1938 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1939 { (exit 1); exit 1; }; }
1942 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1943 echo "${ECHO_T}$ac_cv_host" >&6
1944 host=$ac_cv_host
1945 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1946 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1947 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1950 echo "$as_me:$LINENO: checking target system type" >&5
1951 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1952 if test "${ac_cv_target+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955 ac_cv_target_alias=$target_alias
1956 test "x$ac_cv_target_alias" = "x" &&
1957 ac_cv_target_alias=$ac_cv_host_alias
1958 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1959 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1960 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1961 { (exit 1); exit 1; }; }
1964 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1965 echo "${ECHO_T}$ac_cv_target" >&6
1966 target=$ac_cv_target
1967 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1968 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1969 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1972 # The aliases save the names the user supplied, while $host etc.
1973 # will get canonicalized.
1974 test -n "$target_alias" &&
1975 test "$program_prefix$program_suffix$program_transform_name" = \
1976 NONENONEs,x,x, &&
1977 program_prefix=${target_alias}-
1979 TARGETDIR=unix
1980 OSTYPE=
1982 case "$target_os" in
1983 linux*) OSTYPE=linux ;
1984 OSRELEASE="\"`uname -r`\"";
1985 OS_TAG="P_LINUX" ;
1986 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1989 freebsd* ) OSTYPE=FreeBSD ;
1990 OS_TAG="P_FREEBSD" ;
1991 if test "x$OSRELEASE" = "x"; then
1992 OSRELEASE="`sysctl -n kern.osreldate`" ;
1994 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1997 openbsd* ) OSTYPE=OpenBSD ;
1998 OS_TAG="P_OPENBSD" ;
1999 OSRELEASE="`sysctl -n kern.osrevision`" ;
2000 ENDLDLIBS="-lossaudio" ;
2001 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2004 netbsd* ) OSTYPE=NetBSD ;
2005 OS_TAG="P_NETBSD" ;
2006 OSRELEASE="`/sbin/sysctl -n kern.osrevision`" ;
2007 ENDLDLIBS="-lossaudio" ;
2008 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2011 solaris* | sunos* ) OSTYPE=solaris ;
2012 OS_TAG="P_SOLARIS" ;
2013 OSRELEASE=`uname -r | sed "s/5\.//g"` ;
2014 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2017 darwin* ) OSTYPE=Darwin ;
2018 OS_TAG="P_MACOSX" ;
2019 OSRELEASE="`uname -r | sed 's/\.//g'`" ;
2020 SHAREDLIBEXT="dylib";
2021 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2024 beos*) OSTYPE=beos ;
2025 OS_TAG="P_BEOS" ;
2026 OSRELEASE=`uname -r` ;
2027 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
2030 * ) OSTYPE="$target_os" ;
2031 OS_TAG="P_UNKNOWN_OS" ;
2032 OSRELEASE="\"${OSTYPE}_`uname -r`\"" ;
2033 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2034 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2036 esac
2038 MACHTYPE=
2040 case "$target_cpu" in
2041 x86 | i686 | i586 | i486 | i386 ) MACHTYPE=x86
2044 x86_64) MACHTYPE=x86_64 ;
2045 P_64BIT=1 ;
2046 LIB64=1 ;
2049 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) MACHTYPE=alpha ;
2050 P_64BIT=1 ;
2053 sparc ) MACHTYPE=sparc ;
2056 powerpc ) MACHTYPE=ppc ;
2059 ppc ) MACHTYPE=ppc ;
2062 powerpc64 ) MACHTYPE=ppc64 ;
2063 P_64BIT=1 ;
2064 LIB64=1 ;
2067 ppc64 ) MACHTYPE=ppc64 ;
2068 P_64BIT=1 ;
2069 LIB64=1 ;
2072 ia64) MACHTYPE=ia64 ;
2073 P_64BIT=1 ;
2076 s390x) MACHTYPE=s390x ;
2077 P_64BIT=1 ;
2078 LIB64=1 ;
2081 s390) MACHTYPE=s390 ;
2084 * ) MACHTYPE=$target_cpu ;
2085 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2086 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2087 esac
2089 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2090 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2091 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2092 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2093 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2094 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2096 MACHTYPE=$MACHTYPE
2098 OSTYPE=$OSTYPE
2100 OSRELEASE=$OSRELEASE
2102 TARGETDIR=$TARGETDIR
2105 cat >>confdefs.h <<_ACEOF
2106 #define $OS_TAG $OSRELEASE
2107 _ACEOF
2111 cat >>confdefs.h <<\_ACEOF
2112 #define PHAS_TEMPLATES 1
2113 _ACEOF
2116 if test "x$P_64BIT" != "x" ; then
2118 cat >>confdefs.h <<\_ACEOF
2119 #define P_64BIT 1
2120 _ACEOF
2124 if test ${OSTYPE} != beos ; then
2126 cat >>confdefs.h <<\_ACEOF
2127 #define P_PTHREADS 1
2128 _ACEOF
2133 if test "x${SHAREDLIBEXT}" = "x" ; then
2134 SHAREDLIBEXT="so"
2136 SHAREDLIBEXT=$SHAREDLIBEXT
2139 cat >>confdefs.h <<\_ACEOF
2140 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2141 _ACEOF
2147 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2148 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2149 if test "${ac_cv_c_bigendian+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 # See if sys/param.h defines the BYTE_ORDER macro.
2153 cat >conftest.$ac_ext <<_ACEOF
2154 #line $LINENO "configure"
2155 /* confdefs.h. */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2160 #include <sys/types.h>
2161 #include <sys/param.h>
2164 main ()
2166 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2167 bogus endian macros
2168 #endif
2171 return 0;
2173 _ACEOF
2174 rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 # It does; now see whether it defined to BIG_ENDIAN or not.
2187 cat >conftest.$ac_ext <<_ACEOF
2188 #line $LINENO "configure"
2189 /* confdefs.h. */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2194 #include <sys/types.h>
2195 #include <sys/param.h>
2198 main ()
2200 #if BYTE_ORDER != BIG_ENDIAN
2201 not big endian
2202 #endif
2205 return 0;
2207 _ACEOF
2208 rm -f conftest.$ac_objext
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 ac_cv_c_bigendian=yes
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 ac_cv_c_bigendian=no
2227 rm -f conftest.$ac_objext conftest.$ac_ext
2228 else
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2232 # It does not; compile a test program.
2233 if test "$cross_compiling" = yes; then
2234 # try to guess the endianness by grepping values into an object file
2235 ac_cv_c_bigendian=unknown
2236 cat >conftest.$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2238 /* confdefs.h. */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2243 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2244 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2245 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2246 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2247 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2248 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2250 main ()
2252 _ascii (); _ebcdic ();
2254 return 0;
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2269 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2270 ac_cv_c_bigendian=yes
2272 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2273 if test "$ac_cv_c_bigendian" = unknown; then
2274 ac_cv_c_bigendian=no
2275 else
2276 # finding both strings is unlikely to happen, but who knows?
2277 ac_cv_c_bigendian=unknown
2280 else
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2285 rm -f conftest.$ac_objext conftest.$ac_ext
2286 else
2287 cat >conftest.$ac_ext <<_ACEOF
2288 #line $LINENO "configure"
2289 /* confdefs.h. */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2295 main ()
2297 /* Are we little or big endian? From Harbison&Steele. */
2298 union
2300 long l;
2301 char c[sizeof (long)];
2302 } u;
2303 u.l = 1;
2304 exit (u.c[sizeof (long) - 1] == 1);
2306 _ACEOF
2307 rm -f conftest$ac_exeext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2309 (eval $ac_link) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 ac_cv_c_bigendian=no
2319 else
2320 echo "$as_me: program exited with status $ac_status" >&5
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2324 ( exit $ac_status )
2325 ac_cv_c_bigendian=yes
2327 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2332 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2333 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2334 case $ac_cv_c_bigendian in
2335 yes)
2337 cat >>confdefs.h <<\_ACEOF
2338 #define WORDS_BIGENDIAN 1
2339 _ACEOF
2344 { { echo "$as_me:$LINENO: error: unknown endianness
2345 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2346 echo "$as_me: error: unknown endianness
2347 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2348 { (exit 1); exit 1; }; } ;;
2349 esac
2351 if test ${ac_cv_c_bigendian} = yes ; then
2352 PBYTE_ORDER=PBIG_ENDIAN
2353 else
2354 PBYTE_ORDER=PLITTLE_ENDIAN
2358 cat >>confdefs.h <<_ACEOF
2359 #define PBYTE_ORDER $PBYTE_ORDER
2360 _ACEOF
2363 ac_ext=cc
2364 ac_cpp='$CXXCPP $CPPFLAGS'
2365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2370 echo "$as_me:$LINENO: checking if linker accepts -felide-constructors" >&5
2371 echo $ECHO_N "checking if linker accepts -felide-constructors... $ECHO_C" >&6
2372 cat >conftest.$ac_ext <<_ACEOF
2373 int main(int ac,char **av) { return 0; }
2374 _ACEOF
2375 $CXX $CXXFLAGS -felide-constructors conftest.cc > /dev/null 2>&1
2376 if test $? = 0 ; then
2377 echo "$as_me:$LINENO: result: yes" >&5
2378 echo "${ECHO_T}yes" >&6
2379 STDCXXFLAGS="$STDCXXFLAGS -felide-constructors"
2380 else
2381 echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6
2385 echo "$as_me:$LINENO: checking if linker accepts -Wreorder" >&5
2386 echo $ECHO_N "checking if linker accepts -Wreorder... $ECHO_C" >&6
2387 cat >conftest.$ac_ext <<_ACEOF
2388 int main(int ac,char **av) { return 0; }
2389 _ACEOF
2390 $STDCXX $CXXFLAGS -Wreorder conftest.cc > /dev/null 2>&1
2391 if test $? = 0 ; then
2392 echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6
2394 STDCXXFLAGS="$STDCXXFLAGS -Wreorder"
2395 else
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 # AC_MSG_CHECKING(if linker accepts -Woverloaded-virtual)
2401 # AC_LANG_CONFTEST([[int main(int ac,char **av) { return 0; }]])
2402 # $CXX $CFLAGS -Woverloaded-virtual conftest.cc > /dev/null 2>&1
2403 # if test $? = 0 ; then
2404 # AC_MSG_RESULT(yes)
2405 # STDCCFLAGS="$STDCCFLAGS -Woverloaded-virtual"
2406 # else
2407 # AC_MSG_RESULT(no)
2408 # fi
2410 echo "$as_me:$LINENO: checking if compiler uses RTTI by default" >&5
2411 echo $ECHO_N "checking if compiler uses RTTI by default... $ECHO_C" >&6
2412 cat >conftest.$ac_ext <<_ACEOF
2414 #include <typeinfo>
2415 int main(int ac,char **av)
2417 class A
2419 public:
2420 virtual void fred() { }
2422 class B : public A
2424 public:
2425 void fred() { }
2427 B t;
2428 A * p = dynamic_cast<A *>(&t);
2429 return 0;
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2445 DEFAULT_RTTI=1
2446 else
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2450 DEFAULT_RTTI=0
2452 rm -f conftest.$ac_objext conftest.$ac_ext
2453 if test "$DEFAULT_RTTI" = "1" ; then
2454 echo "$as_me:$LINENO: result: yes" >&5
2455 echo "${ECHO_T}yes" >&6
2456 else
2457 echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2459 STDCXXFLAGS="$STDCCFLAGS -rtti"
2462 GCSECTIONS=0
2465 if test 0 = 1 ; then
2468 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2469 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2470 cat >conftest.$ac_ext <<_ACEOF
2471 int main(int ac,char **av) { return 0; }
2472 _ACEOF
2473 $CXX $CFLAGS -ffunction-sections -c conftest.cc > /dev/null 2>&1
2474 if test $? = 0 ; then
2475 echo "$as_me:$LINENO: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6
2477 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
2478 GCSECTIONS=1
2479 else
2480 echo "$as_me:$LINENO: result: no" >&5
2481 echo "${ECHO_T}no" >&6
2486 if test $GCSECTIONS = 1; then
2487 if test "${OSTYPE}" != "Darwin" ; then
2488 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2494 ac_ext=cc
2495 ac_cpp='$CXXCPP $CPPFLAGS'
2496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2502 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
2503 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
2504 if test "${ac_cv_c_long_double+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h. */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2514 #include <float.h>
2515 long double foo = 0.0;
2517 main ()
2519 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
2520 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
2521 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
2522 test_array [0] = 0
2525 return 0;
2527 _ACEOF
2528 rm -f conftest.$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 ac_cv_c_long_double=yes
2541 else
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 ac_cv_c_long_double=no
2547 rm -f conftest.$ac_objext conftest.$ac_ext
2549 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
2550 echo "${ECHO_T}$ac_cv_c_long_double" >&6
2551 if test $ac_cv_c_long_double = yes; then
2553 cat >>confdefs.h <<\_ACEOF
2554 #define HAVE_LONG_DOUBLE 1
2555 _ACEOF
2559 if test $ac_cv_c_long_double != yes ; then
2561 cat >>confdefs.h <<\_ACEOF
2562 #define PNO_LONG_DOUBLE
2563 _ACEOF
2567 echo "$as_me:$LINENO: checking if readdir_r has 2 parms" >&5
2568 echo $ECHO_N "checking if readdir_r has 2 parms... $ECHO_C" >&6
2569 cat >conftest.$ac_ext <<_ACEOF
2570 #line $LINENO "configure"
2571 /* confdefs.h. */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2576 #define _POSIX_PTHREAD_SEMANTICS
2577 #include <dirent.h>
2579 main ()
2581 DIR *s; struct dirent * e; readdir_r(s, e);
2583 return 0;
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 P_HAS_POSIX_READDIR_R=2
2599 else
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2603 P_HAS_POSIX_READDIR_R=0
2605 rm -f conftest.$ac_objext conftest.$ac_ext
2606 if test ${P_HAS_POSIX_READDIR_R} = 2 ; then
2607 echo "$as_me:$LINENO: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6
2609 else
2610 echo "$as_me:$LINENO: result: no" >&5
2611 echo "${ECHO_T}no" >&6
2612 echo "$as_me:$LINENO: checking if readdir_r has 3 parms" >&5
2613 echo $ECHO_N "checking if readdir_r has 3 parms... $ECHO_C" >&6
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2616 /* confdefs.h. */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2621 #include <dirent.h>
2623 main ()
2625 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
2627 return 0;
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632 (eval $ac_compile) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -s conftest.$ac_objext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 P_HAS_POSIX_READDIR_R=3
2643 else
2644 echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2647 P_HAS_POSIX_READDIR_R=0
2649 rm -f conftest.$ac_objext conftest.$ac_ext
2650 if test ${P_HAS_POSIX_READDIR_R} = 3 ; then
2651 echo "$as_me:$LINENO: result: yes" >&5
2652 echo "${ECHO_T}yes" >&6
2653 else
2654 echo "$as_me:$LINENO: result: no" >&5
2655 echo "${ECHO_T}no" >&6
2658 cat >>confdefs.h <<_ACEOF
2659 #define P_HAS_POSIX_READDIR_R ${P_HAS_POSIX_READDIR_R}
2660 _ACEOF
2664 P_HAS_STL_STREAMS=0
2665 echo "$as_me:$LINENO: checking if using STL streams" >&5
2666 echo $ECHO_N "checking if using STL streams... $ECHO_C" >&6
2667 cat >conftest.$ac_ext <<_ACEOF
2668 #line $LINENO "configure"
2669 /* confdefs.h. */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2674 #include <iostream>
2676 main ()
2678 int v = (int)std::ios_base::seekdir();
2680 return 0;
2682 _ACEOF
2683 rm -f conftest.$ac_objext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685 (eval $ac_compile) 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -s conftest.$ac_objext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 P_HAS_STL_STREAMS=1
2696 else
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f conftest.$ac_objext conftest.$ac_ext
2702 if test ${P_HAS_STL_STREAMS} = 1 ; then
2703 echo "$as_me:$LINENO: result: yes" >&5
2704 echo "${ECHO_T}yes" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2709 cat >>confdefs.h <<_ACEOF
2710 #define P_HAS_STL_STREAMS ${P_HAS_STL_STREAMS}
2711 _ACEOF
2715 P_HAS_ATOMIC_INT=0
2716 P_NEEDS_GNU_CXX_NAMESPACE=0
2717 echo "$as_me:$LINENO: checking if atomic integer available" >&5
2718 echo $ECHO_N "checking if atomic integer available... $ECHO_C" >&6
2719 cat >conftest.$ac_ext <<_ACEOF
2720 #line $LINENO "configure"
2721 /* confdefs.h. */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2726 #include <bits/atomicity.h>
2728 main ()
2730 _Atomic_word val;
2732 return 0;
2734 _ACEOF
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 P_HAS_ATOMIC_INT=1
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f conftest.$ac_objext conftest.$ac_ext
2754 if test ${P_HAS_ATOMIC_INT} = 1 ; then
2755 echo "$as_me:$LINENO: result: yes" >&5
2756 echo "${ECHO_T}yes" >&6
2757 echo "$as_me:$LINENO: checking if __exchange_and_add is in __gnu_cxx namespace" >&5
2758 echo $ECHO_N "checking if __exchange_and_add is in __gnu_cxx namespace... $ECHO_C" >&6
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 /* confdefs.h. */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2766 #include <bits/atomicity.h>
2768 main ()
2770 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
2772 return 0;
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 P_NEEDS_GNU_CXX_NAMESPACE=1
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2793 rm -f conftest.$ac_objext conftest.$ac_ext
2794 if test ${P_NEEDS_GNU_CXX_NAMESPACE} = 1 ; then
2795 echo "$as_me:$LINENO: result: yes" >&5
2796 echo "${ECHO_T}yes" >&6
2797 else
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2801 else
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2805 cat >>confdefs.h <<_ACEOF
2806 #define P_HAS_ATOMIC_INT ${P_HAS_ATOMIC_INT}
2807 _ACEOF
2809 cat >>confdefs.h <<_ACEOF
2810 #define P_NEEDS_GNU_CXX_NAMESPACE ${P_NEEDS_GNU_CXX_NAMESPACE}
2811 _ACEOF
2816 if test ${OSTYPE} != Darwin ; then
2817 cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824 #include <semaphore.h>
2826 main ()
2828 sem_t *s; sem_init(s, 0, 0);
2830 return 0;
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 P_HAS_SEMAPHORES=1
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2851 rm -f conftest.$ac_objext conftest.$ac_ext
2852 echo "$as_me:$LINENO: checking if Unix semaphores are available" >&5
2853 echo $ECHO_N "checking if Unix semaphores are available... $ECHO_C" >&6
2854 if test "${P_HAS_SEMAPHORES}x" != "x" ; then
2855 cat >>confdefs.h <<\_ACEOF
2856 #define P_HAS_SEMAPHORES 1
2857 _ACEOF
2859 echo "$as_me:$LINENO: result: yes" >&5
2860 echo "${ECHO_T}yes" >&6
2861 else
2862 echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6
2864 { echo "$as_me:$LINENO: WARNING: This host does not support semaphores which are essential" >&5
2865 echo "$as_me: WARNING: This host does not support semaphores which are essential" >&2;}
2866 { echo "$as_me:$LINENO: WARNING: to implement 'critical sections'. This feature was added" >&5
2867 echo "$as_me: WARNING: to implement 'critical sections'. This feature was added" >&2;}
2868 { echo "$as_me:$LINENO: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&5
2869 echo "$as_me: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&2;}
2870 { echo "$as_me:$LINENO: WARNING: programs. This feature has been disabled for this host" >&5
2871 echo "$as_me: WARNING: programs. This feature has been disabled for this host" >&2;}
2878 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2879 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2880 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 ac_check_lib_save_LIBS=$LIBS
2884 LIBS="-lpthread $LIBS"
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2893 /* Override any gcc2 internal prototype to avoid an error. */
2894 #ifdef __cplusplus
2895 extern "C"
2896 #endif
2897 /* We use char because int might match the return type of a gcc2
2898 builtin and then its argument prototype would still apply. */
2899 char pthread_create ();
2901 main ()
2903 pthread_create ();
2905 return 0;
2907 _ACEOF
2908 rm -f conftest.$ac_objext conftest$ac_exeext
2909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2910 (eval $ac_link) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -s conftest$ac_exeext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 ac_cv_lib_pthread_pthread_create=yes
2921 else
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 ac_cv_lib_pthread_pthread_create=no
2927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2928 LIBS=$ac_check_lib_save_LIBS
2930 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2931 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2932 if test $ac_cv_lib_pthread_pthread_create = yes; then
2933 HAS_PTHREADS=yes
2934 else
2935 HAS_PTHREADS=no
2938 if test ${HAS_PTHREADS} = yes ; then
2939 ENDLDLIBS="$ENDLDLIBS -lpthread"
2940 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
2941 else
2942 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2943 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2944 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947 ac_check_lib_save_LIBS=$LIBS
2948 LIBS="-lc_r $LIBS"
2949 cat >conftest.$ac_ext <<_ACEOF
2950 #line $LINENO "configure"
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2957 /* Override any gcc2 internal prototype to avoid an error. */
2958 #ifdef __cplusplus
2959 extern "C"
2960 #endif
2961 /* We use char because int might match the return type of a gcc2
2962 builtin and then its argument prototype would still apply. */
2963 char pthread_create ();
2965 main ()
2967 pthread_create ();
2969 return 0;
2971 _ACEOF
2972 rm -f conftest.$ac_objext conftest$ac_exeext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2974 (eval $ac_link) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -s conftest$ac_exeext'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 (eval $ac_try) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_cv_lib_c_r_pthread_create=yes
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 ac_cv_lib_c_r_pthread_create=no
2991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2992 LIBS=$ac_check_lib_save_LIBS
2994 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2995 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2996 if test $ac_cv_lib_c_r_pthread_create = yes; then
2997 HAS_PTHREADS=yes
2998 else
2999 HAS_PTHREADS=no
3002 if test ${HAS_PTHREADS} = yes ; then
3003 ENDLDLIBS="$ENDLDLIBS -pthread"
3004 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
3009 if test ${HAS_PTHREADS} != yes ; then
3010 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
3011 echo "$as_me: error: must have pthreads!" >&2;}
3012 { (exit 1); exit 1; }; }
3016 if test ${HAS_PTHREADS} = yes ; then
3017 echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
3018 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6
3019 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022 ac_check_lib_save_LIBS=$LIBS
3023 LIBS="-lpthread $LIBS"
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h. */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3032 /* Override any gcc2 internal prototype to avoid an error. */
3033 #ifdef __cplusplus
3034 extern "C"
3035 #endif
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3038 char pthread_mutex_timedlock ();
3040 main ()
3042 pthread_mutex_timedlock ();
3044 return 0;
3046 _ACEOF
3047 rm -f conftest.$ac_objext conftest$ac_exeext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049 (eval $ac_link) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -s conftest$ac_exeext'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_lib_pthread_pthread_mutex_timedlock=yes
3060 else
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 ac_cv_lib_pthread_pthread_mutex_timedlock=no
3066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3067 LIBS=$ac_check_lib_save_LIBS
3069 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
3070 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6
3071 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
3072 HAS_PTHREADS_XPG6=yes
3073 else
3074 HAS_PTHREADS_XPG6=no
3077 if test ${HAS_PTHREADS_XPG6} = yes ; then
3079 cat >>confdefs.h <<\_ACEOF
3080 #define P_PTHREADS_XPG6 1
3081 _ACEOF
3085 echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
3086 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6
3087 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090 ac_check_lib_save_LIBS=$LIBS
3091 LIBS="-lpthread $LIBS"
3092 cat >conftest.$ac_ext <<_ACEOF
3093 #line $LINENO "configure"
3094 /* confdefs.h. */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3100 /* Override any gcc2 internal prototype to avoid an error. */
3101 #ifdef __cplusplus
3102 extern "C"
3103 #endif
3104 /* We use char because int might match the return type of a gcc2
3105 builtin and then its argument prototype would still apply. */
3106 char sem_timedwait ();
3108 main ()
3110 sem_timedwait ();
3112 return 0;
3114 _ACEOF
3115 rm -f conftest.$ac_objext conftest$ac_exeext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3117 (eval $ac_link) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -s conftest$ac_exeext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 (eval $ac_try) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 ac_cv_lib_pthread_sem_timedwait=yes
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 ac_cv_lib_pthread_sem_timedwait=no
3134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3135 LIBS=$ac_check_lib_save_LIBS
3137 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
3138 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6
3139 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
3140 HAS_SEMAPHORES_XPG6=yes
3141 else
3142 HAS_SEMAPHORES_XPG6=no
3145 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3146 echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
3147 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6
3148 cat >conftest.$ac_ext <<_ACEOF
3149 #line $LINENO "configure"
3150 /* confdefs.h. */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3155 #include <semaphore.h>
3157 main ()
3159 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
3161 return 0;
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166 (eval $ac_compile) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
3176 HAS_SEMAPHORES_XPG6=yes
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 HAS_SEMAPHORES_XPG6=no
3183 rm -f conftest.$ac_objext conftest.$ac_ext
3184 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3186 cat >>confdefs.h <<\_ACEOF
3187 #define P_HAS_SEMAPHORES_XPG6 1
3188 _ACEOF
3190 echo "$as_me:$LINENO: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6
3192 else
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3199 P_HAS_RECURSIVE_MUTEX=0
3200 echo "$as_me:$LINENO: checking if recursive mutexes are available" >&5
3201 echo $ECHO_N "checking if recursive mutexes are available... $ECHO_C" >&6
3202 cat >conftest.$ac_ext <<_ACEOF
3203 #line $LINENO "configure"
3204 /* confdefs.h. */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209 #include <pthread.h>
3211 main ()
3213 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
3215 return 0;
3217 _ACEOF
3218 rm -f conftest.$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220 (eval $ac_compile) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -s conftest.$ac_objext'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 (eval $ac_try) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3230 P_HAS_RECURSIVE_MUTEX=1
3231 else
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3236 rm -f conftest.$ac_objext conftest.$ac_ext
3237 if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then
3238 echo "$as_me:$LINENO: result: yes" >&5
3239 echo "${ECHO_T}yes" >&6
3240 else
3241 echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3244 cat >>confdefs.h <<_ACEOF
3245 #define P_HAS_RECURSIVE_MUTEX ${P_HAS_RECURSIVE_MUTEX}
3246 _ACEOF
3251 ac_ext=cc
3252 ac_cpp='$CXXCPP $CPPFLAGS'
3253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3256 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3257 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3258 if test -z "$CXXCPP"; then
3259 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 # Double quotes because CXXCPP needs to be expanded
3263 for CXXCPP in "$CXX -E" "/lib/cpp"
3265 ac_preproc_ok=false
3266 for ac_cxx_preproc_warn_flag in '' yes
3268 # Use a header file that comes with gcc, so configuring glibc
3269 # with a fresh cross-compiler works.
3270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3271 # <limits.h> exists even on freestanding compilers.
3272 # On the NeXT, cc -E runs the code through the compiler's parser,
3273 # not just through cpp. "Syntax error" is here to catch this case.
3274 cat >conftest.$ac_ext <<_ACEOF
3275 #line $LINENO "configure"
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 #ifdef __STDC__
3282 # include <limits.h>
3283 #else
3284 # include <assert.h>
3285 #endif
3286 Syntax error
3287 _ACEOF
3288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } >/dev/null; then
3296 if test -s conftest.err; then
3297 ac_cpp_err=$ac_cxx_preproc_warn_flag
3298 else
3299 ac_cpp_err=
3301 else
3302 ac_cpp_err=yes
3304 if test -z "$ac_cpp_err"; then
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 # Broken: fails on valid input.
3311 continue
3313 rm -f conftest.err conftest.$ac_ext
3315 # OK, works on sane cases. Now check whether non-existent headers
3316 # can be detected and how.
3317 cat >conftest.$ac_ext <<_ACEOF
3318 #line $LINENO "configure"
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3324 #include <ac_nonexistent.h>
3325 _ACEOF
3326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3328 ac_status=$?
3329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } >/dev/null; then
3334 if test -s conftest.err; then
3335 ac_cpp_err=$ac_cxx_preproc_warn_flag
3336 else
3337 ac_cpp_err=
3339 else
3340 ac_cpp_err=yes
3342 if test -z "$ac_cpp_err"; then
3343 # Broken: success on invalid input.
3344 continue
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 # Passes both tests.
3350 ac_preproc_ok=:
3351 break
3353 rm -f conftest.err conftest.$ac_ext
3355 done
3356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3357 rm -f conftest.err conftest.$ac_ext
3358 if $ac_preproc_ok; then
3359 break
3362 done
3363 ac_cv_prog_CXXCPP=$CXXCPP
3366 CXXCPP=$ac_cv_prog_CXXCPP
3367 else
3368 ac_cv_prog_CXXCPP=$CXXCPP
3370 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3371 echo "${ECHO_T}$CXXCPP" >&6
3372 ac_preproc_ok=false
3373 for ac_cxx_preproc_warn_flag in '' yes
3375 # Use a header file that comes with gcc, so configuring glibc
3376 # with a fresh cross-compiler works.
3377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3378 # <limits.h> exists even on freestanding compilers.
3379 # On the NeXT, cc -E runs the code through the compiler's parser,
3380 # not just through cpp. "Syntax error" is here to catch this case.
3381 cat >conftest.$ac_ext <<_ACEOF
3382 #line $LINENO "configure"
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #ifdef __STDC__
3389 # include <limits.h>
3390 #else
3391 # include <assert.h>
3392 #endif
3393 Syntax error
3394 _ACEOF
3395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_cxx_preproc_warn_flag
3405 else
3406 ac_cpp_err=
3408 else
3409 ac_cpp_err=yes
3411 if test -z "$ac_cpp_err"; then
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 # Broken: fails on valid input.
3418 continue
3420 rm -f conftest.err conftest.$ac_ext
3422 # OK, works on sane cases. Now check whether non-existent headers
3423 # can be detected and how.
3424 cat >conftest.$ac_ext <<_ACEOF
3425 #line $LINENO "configure"
3426 /* confdefs.h. */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #include <ac_nonexistent.h>
3432 _ACEOF
3433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_cxx_preproc_warn_flag
3443 else
3444 ac_cpp_err=
3446 else
3447 ac_cpp_err=yes
3449 if test -z "$ac_cpp_err"; then
3450 # Broken: success on invalid input.
3451 continue
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Passes both tests.
3457 ac_preproc_ok=:
3458 break
3460 rm -f conftest.err conftest.$ac_ext
3462 done
3463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464 rm -f conftest.err conftest.$ac_ext
3465 if $ac_preproc_ok; then
3467 else
3468 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3469 See \`config.log' for more details." >&5
3470 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3471 See \`config.log' for more details." >&2;}
3472 { (exit 1); exit 1; }; }
3475 ac_ext=cc
3476 ac_cpp='$CXXCPP $CPPFLAGS'
3477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3482 echo "$as_me:$LINENO: checking for egrep" >&5
3483 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3484 if test "${ac_cv_prog_egrep+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3488 then ac_cv_prog_egrep='grep -E'
3489 else ac_cv_prog_egrep='egrep'
3492 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3493 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3494 EGREP=$ac_cv_prog_egrep
3497 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3498 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3499 if test "${ac_cv_header_stdc+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 cat >conftest.$ac_ext <<_ACEOF
3503 #line $LINENO "configure"
3504 /* confdefs.h. */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509 #include <stdlib.h>
3510 #include <stdarg.h>
3511 #include <string.h>
3512 #include <float.h>
3515 main ()
3519 return 0;
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524 (eval $ac_compile) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_header_stdc=yes
3535 else
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 ac_cv_header_stdc=no
3541 rm -f conftest.$ac_objext conftest.$ac_ext
3543 if test $ac_cv_header_stdc = yes; then
3544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3545 cat >conftest.$ac_ext <<_ACEOF
3546 #line $LINENO "configure"
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 #include <string.h>
3554 _ACEOF
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 $EGREP "memchr" >/dev/null 2>&1; then
3558 else
3559 ac_cv_header_stdc=no
3561 rm -f conftest*
3565 if test $ac_cv_header_stdc = yes; then
3566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3567 cat >conftest.$ac_ext <<_ACEOF
3568 #line $LINENO "configure"
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #include <stdlib.h>
3576 _ACEOF
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 $EGREP "free" >/dev/null 2>&1; then
3580 else
3581 ac_cv_header_stdc=no
3583 rm -f conftest*
3587 if test $ac_cv_header_stdc = yes; then
3588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3589 if test "$cross_compiling" = yes; then
3591 else
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <ctype.h>
3600 #if ((' ' & 0x0FF) == 0x020)
3601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3603 #else
3604 # define ISLOWER(c) \
3605 (('a' <= (c) && (c) <= 'i') \
3606 || ('j' <= (c) && (c) <= 'r') \
3607 || ('s' <= (c) && (c) <= 'z'))
3608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3609 #endif
3611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3613 main ()
3615 int i;
3616 for (i = 0; i < 256; i++)
3617 if (XOR (islower (i), ISLOWER (i))
3618 || toupper (i) != TOUPPER (i))
3619 exit(2);
3620 exit (0);
3622 _ACEOF
3623 rm -f conftest$ac_exeext
3624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3625 (eval $ac_link) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3635 else
3636 echo "$as_me: program exited with status $ac_status" >&5
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 ( exit $ac_status )
3641 ac_cv_header_stdc=no
3643 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3647 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3648 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3649 if test $ac_cv_header_stdc = yes; then
3651 cat >>confdefs.h <<\_ACEOF
3652 #define STDC_HEADERS 1
3653 _ACEOF
3657 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3667 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3668 inttypes.h stdint.h unistd.h
3670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3671 echo "$as_me:$LINENO: checking for $ac_header" >&5
3672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 cat >conftest.$ac_ext <<_ACEOF
3677 #line $LINENO "configure"
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683 $ac_includes_default
3685 #include <$ac_header>
3686 _ACEOF
3687 rm -f conftest.$ac_objext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -s conftest.$ac_objext'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 (eval $ac_try) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; }; then
3699 eval "$as_ac_Header=yes"
3700 else
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3704 eval "$as_ac_Header=no"
3706 rm -f conftest.$ac_objext conftest.$ac_ext
3708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3711 cat >>confdefs.h <<_ACEOF
3712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3713 _ACEOF
3717 done
3721 for ac_header in regex.h
3723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3725 echo "$as_me:$LINENO: checking for $ac_header" >&5
3726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3732 else
3733 # Is the header compilable?
3734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3736 cat >conftest.$ac_ext <<_ACEOF
3737 #line $LINENO "configure"
3738 /* confdefs.h. */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 $ac_includes_default
3744 #include <$ac_header>
3745 _ACEOF
3746 rm -f conftest.$ac_objext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3748 (eval $ac_compile) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -s conftest.$ac_objext'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 ac_header_compiler=yes
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 ac_header_compiler=no
3765 rm -f conftest.$ac_objext conftest.$ac_ext
3766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3767 echo "${ECHO_T}$ac_header_compiler" >&6
3769 # Is the header present?
3770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3772 cat >conftest.$ac_ext <<_ACEOF
3773 #line $LINENO "configure"
3774 /* confdefs.h. */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 #include <$ac_header>
3780 _ACEOF
3781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3783 ac_status=$?
3784 grep -v '^ *+' conftest.er1 >conftest.err
3785 rm -f conftest.er1
3786 cat conftest.err >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } >/dev/null; then
3789 if test -s conftest.err; then
3790 ac_cpp_err=$ac_cxx_preproc_warn_flag
3791 else
3792 ac_cpp_err=
3794 else
3795 ac_cpp_err=yes
3797 if test -z "$ac_cpp_err"; then
3798 ac_header_preproc=yes
3799 else
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 ac_header_preproc=no
3805 rm -f conftest.err conftest.$ac_ext
3806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3807 echo "${ECHO_T}$ac_header_preproc" >&6
3809 # So? What about this header?
3810 case $ac_header_compiler:$ac_header_preproc in
3811 yes:no )
3812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3817 cat <<\_ASBOX
3818 ## ------------------------------------ ##
3819 ## Report this to bug-autoconf@gnu.org. ##
3820 ## ------------------------------------ ##
3821 _ASBOX
3823 sed "s/^/$as_me: WARNING: /" >&2
3825 no:yes )
3826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3833 cat <<\_ASBOX
3834 ## ------------------------------------ ##
3835 ## Report this to bug-autoconf@gnu.org. ##
3836 ## ------------------------------------ ##
3837 _ASBOX
3839 sed "s/^/$as_me: WARNING: /" >&2
3841 esac
3842 echo "$as_me:$LINENO: checking for $ac_header" >&5
3843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 eval "$as_ac_Header=$ac_header_preproc"
3849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3854 cat >>confdefs.h <<_ACEOF
3855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3856 _ACEOF
3857 HAS_REGEX=yes
3860 done
3863 # Check whether --enable-internalregex or --disable-internalregex was given.
3864 if test "${enable_internalregex+set}" = set; then
3865 enableval="$enable_internalregex"
3866 internalregex=$enableval
3868 if test "$internalregex" = "yes" ; then
3869 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3870 echo "$as_me: Forcing use of internal regex library" >&6;}
3871 else
3872 if test "$HAS_REGEX" = "yes" ; then
3873 echo "$as_me:$LINENO: checking for regcomp" >&5
3874 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3875 if test "${ac_cv_func_regcomp+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 cat >conftest.$ac_ext <<_ACEOF
3879 #line $LINENO "configure"
3880 /* confdefs.h. */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 /* System header to define __stub macros and hopefully few prototypes,
3886 which can conflict with char regcomp (); below.
3887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 <limits.h> exists even on freestanding compilers. */
3889 #ifdef __STDC__
3890 # include <limits.h>
3891 #else
3892 # include <assert.h>
3893 #endif
3894 /* Override any gcc2 internal prototype to avoid an error. */
3895 #ifdef __cplusplus
3896 extern "C"
3898 #endif
3899 /* We use char because int might match the return type of a gcc2
3900 builtin and then its argument prototype would still apply. */
3901 char regcomp ();
3902 /* The GNU C library defines this for functions which it implements
3903 to always fail with ENOSYS. Some functions are actually named
3904 something starting with __ and the normal name is an alias. */
3905 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3906 choke me
3907 #else
3908 char (*f) () = regcomp;
3909 #endif
3910 #ifdef __cplusplus
3912 #endif
3915 main ()
3917 return f != regcomp;
3919 return 0;
3921 _ACEOF
3922 rm -f conftest.$ac_objext conftest$ac_exeext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924 (eval $ac_link) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try='test -s conftest$ac_exeext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_func_regcomp=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_cv_func_regcomp=no
3941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3943 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3944 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3945 if test $ac_cv_func_regcomp = yes; then
3946 HAS_REGEX=yes
3949 if test "$HAS_REGEX" = "yes" ; then
3950 HAS_REGEX=1
3953 cat >>confdefs.h <<\_ACEOF
3954 #define P_REGEX 1
3955 _ACEOF
3964 LIBS=""
3965 HAS_LIBDL=no
3966 P_DYNALINK=0
3967 if test ${OSTYPE} = beos ; then
3968 P_DYNALINK=1
3970 cat >>confdefs.h <<\_ACEOF
3971 #define P_DYNALINK 1
3972 _ACEOF
3974 elif test ${OSTYPE} = Darwin ; then
3975 P_DYNALINK=1
3977 cat >>confdefs.h <<\_ACEOF
3978 #define P_DYNALINK 1
3979 _ACEOF
3981 else
3983 for ac_header in dlfcn.h
3985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3987 echo "$as_me:$LINENO: checking for $ac_header" >&5
3988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3994 else
3995 # Is the header compilable?
3996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 $ac_includes_default
4006 #include <$ac_header>
4007 _ACEOF
4008 rm -f conftest.$ac_objext
4009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4010 (eval $ac_compile) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } &&
4014 { ac_try='test -s conftest.$ac_objext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 ac_header_compiler=yes
4021 else
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_header_compiler=no
4027 rm -f conftest.$ac_objext conftest.$ac_ext
4028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4029 echo "${ECHO_T}$ac_header_compiler" >&6
4031 # Is the header present?
4032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4034 cat >conftest.$ac_ext <<_ACEOF
4035 #line $LINENO "configure"
4036 /* confdefs.h. */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4041 #include <$ac_header>
4042 _ACEOF
4043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } >/dev/null; then
4051 if test -s conftest.err; then
4052 ac_cpp_err=$ac_cxx_preproc_warn_flag
4053 else
4054 ac_cpp_err=
4056 else
4057 ac_cpp_err=yes
4059 if test -z "$ac_cpp_err"; then
4060 ac_header_preproc=yes
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 ac_header_preproc=no
4067 rm -f conftest.err conftest.$ac_ext
4068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4069 echo "${ECHO_T}$ac_header_preproc" >&6
4071 # So? What about this header?
4072 case $ac_header_compiler:$ac_header_preproc in
4073 yes:no )
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4079 cat <<\_ASBOX
4080 ## ------------------------------------ ##
4081 ## Report this to bug-autoconf@gnu.org. ##
4082 ## ------------------------------------ ##
4083 _ASBOX
4085 sed "s/^/$as_me: WARNING: /" >&2
4087 no:yes )
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4095 cat <<\_ASBOX
4096 ## ------------------------------------ ##
4097 ## Report this to bug-autoconf@gnu.org. ##
4098 ## ------------------------------------ ##
4099 _ASBOX
4101 sed "s/^/$as_me: WARNING: /" >&2
4103 esac
4104 echo "$as_me:$LINENO: checking for $ac_header" >&5
4105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 eval "$as_ac_Header=$ac_header_preproc"
4111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4116 cat >>confdefs.h <<_ACEOF
4117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4118 _ACEOF
4119 HAS_DLFCN=yes
4120 else
4121 HAS_DLFCN=no
4124 done
4126 if test "$HAS_DLFCN" = yes ; then
4127 echo "$as_me:$LINENO: checking if dlopen is available" >&5
4128 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
4129 cat >conftest.$ac_ext <<_ACEOF
4130 #line $LINENO "configure"
4131 /* confdefs.h. */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 #include <dlfcn.h>
4138 main ()
4140 void * p = dlopen("lib", 0);
4142 return 0;
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 HAS_DLOPEN=yes
4158 else
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 HAS_DLOPEN=no
4164 rm -f conftest.$ac_objext conftest.$ac_ext
4165 if test "$HAS_DLOPEN" = no ; then
4166 echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6
4168 else
4169 echo "$as_me:$LINENO: result: yes" >&5
4170 echo "${ECHO_T}yes" >&6
4171 P_DYNALINK=1
4173 cat >>confdefs.h <<\_ACEOF
4174 #define P_DYNALINK 1
4175 _ACEOF
4177 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4178 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4179 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 ac_check_lib_save_LIBS=$LIBS
4183 LIBS="-ldl $LIBS"
4184 cat >conftest.$ac_ext <<_ACEOF
4185 #line $LINENO "configure"
4186 /* confdefs.h. */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4192 /* Override any gcc2 internal prototype to avoid an error. */
4193 #ifdef __cplusplus
4194 extern "C"
4195 #endif
4196 /* We use char because int might match the return type of a gcc2
4197 builtin and then its argument prototype would still apply. */
4198 char dlopen ();
4200 main ()
4202 dlopen ();
4204 return 0;
4206 _ACEOF
4207 rm -f conftest.$ac_objext conftest$ac_exeext
4208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4209 (eval $ac_link) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -s conftest$ac_exeext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 (eval $ac_try) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 ac_cv_lib_dl_dlopen=yes
4220 else
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_cv_lib_dl_dlopen=no
4226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4227 LIBS=$ac_check_lib_save_LIBS
4229 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4230 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4231 if test $ac_cv_lib_dl_dlopen = yes; then
4232 HAS_LIBDL=yes
4233 else
4234 HAS_LIBDL=no
4241 plugins="no"
4242 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
4243 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
4244 # Check whether --enable-plugins or --disable-plugins was given.
4245 if test "${enable_plugins+set}" = set; then
4246 enableval="$enable_plugins"
4247 plugins=$enableval
4250 HAS_PLUGINS=0
4251 if test "${plugins}" = "no" ; then
4252 echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4254 elif test "${P_DYNALINK:-unset}" = "unset" ; then
4255 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
4256 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
4257 else
4258 echo "$as_me:$LINENO: result: plugins enabled" >&5
4259 echo "${ECHO_T}plugins enabled" >&6
4260 HAS_PLUGINS=1
4262 cat >>confdefs.h <<\_ACEOF
4263 #define P_HAS_PLUGINS 1
4264 _ACEOF
4270 if test "x$LIB64" != "x" ; then
4272 cat >>confdefs.h <<_ACEOF
4273 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
4274 _ACEOF
4276 else
4278 cat >>confdefs.h <<_ACEOF
4279 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
4280 _ACEOF
4286 # Check whether --enable-resolver or --disable-resolver was given.
4287 if test "${enable_resolver+set}" = set; then
4288 enableval="$enable_resolver"
4289 resolver=$enableval
4292 if test "$resolver" = "no" ; then
4293 cat >>confdefs.h <<\_ACEOF
4294 #define P_DNS 0
4295 _ACEOF
4297 else
4298 echo "$as_me:$LINENO: checking for res_search" >&5
4299 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4300 if test "${ac_cv_func_res_search+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 cat >conftest.$ac_ext <<_ACEOF
4304 #line $LINENO "configure"
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 /* System header to define __stub macros and hopefully few prototypes,
4311 which can conflict with char res_search (); below.
4312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4313 <limits.h> exists even on freestanding compilers. */
4314 #ifdef __STDC__
4315 # include <limits.h>
4316 #else
4317 # include <assert.h>
4318 #endif
4319 /* Override any gcc2 internal prototype to avoid an error. */
4320 #ifdef __cplusplus
4321 extern "C"
4323 #endif
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4326 char res_search ();
4327 /* The GNU C library defines this for functions which it implements
4328 to always fail with ENOSYS. Some functions are actually named
4329 something starting with __ and the normal name is an alias. */
4330 #if defined (__stub_res_search) || defined (__stub___res_search)
4331 choke me
4332 #else
4333 char (*f) () = res_search;
4334 #endif
4335 #ifdef __cplusplus
4337 #endif
4340 main ()
4342 return f != res_search;
4344 return 0;
4346 _ACEOF
4347 rm -f conftest.$ac_objext conftest$ac_exeext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4349 (eval $ac_link) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -s conftest$ac_exeext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_func_res_search=yes
4360 else
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 ac_cv_func_res_search=no
4366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4368 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4369 echo "${ECHO_T}$ac_cv_func_res_search" >&6
4370 if test $ac_cv_func_res_search = yes; then
4371 HAVE_RESOLVER=1
4374 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4375 RESOLVER_LIBS=""
4376 else
4377 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
4378 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
4379 LIBS="-lresolv"
4380 cat >conftest.$ac_ext <<_ACEOF
4382 #include <netinet/in.h>
4383 #include <resolv.h>
4384 int main(int argc,char **argv){
4385 res_search (NULL, 0, 0, NULL, 0);
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 HAVE_RESOLVER=1
4401 else
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4406 rm -f conftest.$ac_objext conftest.$ac_ext
4407 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4408 echo "$as_me:$LINENO: result: yes" >&5
4409 echo "${ECHO_T}yes" >&6
4410 RESOLVER_LIBS="-lresolv"
4411 else
4412 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
4413 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
4414 if test "${ac_cv_search___res_search+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 ac_func_search_save_LIBS=$LIBS
4418 ac_cv_search___res_search=no
4419 cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4427 /* Override any gcc2 internal prototype to avoid an error. */
4428 #ifdef __cplusplus
4429 extern "C"
4430 #endif
4431 /* We use char because int might match the return type of a gcc2
4432 builtin and then its argument prototype would still apply. */
4433 char __res_search ();
4435 main ()
4437 __res_search ();
4439 return 0;
4441 _ACEOF
4442 rm -f conftest.$ac_objext conftest$ac_exeext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4444 (eval $ac_link) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -s conftest$ac_exeext'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_search___res_search="none required"
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4461 if test "$ac_cv_search___res_search" = no; then
4462 for ac_lib in resolv; do
4463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4464 cat >conftest.$ac_ext <<_ACEOF
4465 #line $LINENO "configure"
4466 /* confdefs.h. */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4472 /* Override any gcc2 internal prototype to avoid an error. */
4473 #ifdef __cplusplus
4474 extern "C"
4475 #endif
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4478 char __res_search ();
4480 main ()
4482 __res_search ();
4484 return 0;
4486 _ACEOF
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489 (eval $ac_link) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -s conftest$ac_exeext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_cv_search___res_search="-l$ac_lib"
4500 break
4501 else
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4507 done
4509 LIBS=$ac_func_search_save_LIBS
4511 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4512 echo "${ECHO_T}$ac_cv_search___res_search" >&6
4513 if test "$ac_cv_search___res_search" != no; then
4514 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
4515 HAVE_RESOLVER=1
4521 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4523 cat >>confdefs.h <<\_ACEOF
4524 #define P_DNS 1
4525 _ACEOF
4532 # Check whether --enable-sasl or --disable-sasl was given.
4533 if test "${enable_sasl+set}" = set; then
4534 enableval="$enable_sasl"
4535 sasl=$enableval
4538 if test "$sasl" = "no" ; then
4539 { echo "$as_me:$LINENO: SASL disabled" >&5
4540 echo "$as_me: SASL disabled" >&6;}
4541 else
4543 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4544 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4545 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 ac_check_lib_save_LIBS=$LIBS
4549 LIBS="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4550 cat >conftest.$ac_ext <<_ACEOF
4551 #line $LINENO "configure"
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4558 /* Override any gcc2 internal prototype to avoid an error. */
4559 #ifdef __cplusplus
4560 extern "C"
4561 #endif
4562 /* We use char because int might match the return type of a gcc2
4563 builtin and then its argument prototype would still apply. */
4564 char sasl_version ();
4566 main ()
4568 sasl_version ();
4570 return 0;
4572 _ACEOF
4573 rm -f conftest.$ac_objext conftest$ac_exeext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575 (eval $ac_link) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_lib_sasl2_sasl_version=yes
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 ac_cv_lib_sasl2_sasl_version=no
4592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593 LIBS=$ac_check_lib_save_LIBS
4595 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4596 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4597 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4598 HAS_SASL2=1
4599 else
4600 HAS_SASL2=
4603 if test "${HAS_SASL2}x" = "x" ; then
4604 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4605 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4606 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 ac_check_lib_save_LIBS=$LIBS
4610 LIBS="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4611 cat >conftest.$ac_ext <<_ACEOF
4612 #line $LINENO "configure"
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4619 /* Override any gcc2 internal prototype to avoid an error. */
4620 #ifdef __cplusplus
4621 extern "C"
4622 #endif
4623 /* We use char because int might match the return type of a gcc2
4624 builtin and then its argument prototype would still apply. */
4625 char sasl_client_auth ();
4627 main ()
4629 sasl_client_auth ();
4631 return 0;
4633 _ACEOF
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4636 (eval $ac_link) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -s conftest$ac_exeext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_lib_sasl_sasl_client_auth=yes
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 ac_cv_lib_sasl_sasl_client_auth=no
4653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4654 LIBS=$ac_check_lib_save_LIBS
4656 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4657 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4658 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4659 HAS_SASL=1
4660 else
4661 HAS_SASL=
4666 echo "$as_me:$LINENO: checking if <sasl.h> works" >&5
4667 echo $ECHO_N "checking if <sasl.h> works... $ECHO_C" >&6
4668 cat >conftest.$ac_ext <<_ACEOF
4669 #include <sasl.h>
4670 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
4671 _ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674 (eval $ac_compile) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -s conftest.$ac_objext'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4684 HAS_INCLUDE_SASL_H=1
4685 else
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4690 rm -f conftest.$ac_objext conftest.$ac_ext
4691 if test "${HAS_INCLUDE_SASL_H}x" != "x" ; then
4692 echo "$as_me:$LINENO: result: yes" >&5
4693 echo "${ECHO_T}yes" >&6
4694 SASL_INCLUDED=1
4695 else
4696 echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4698 echo "$as_me:$LINENO: checking if <sasl/sasl.h> works" >&5
4699 echo $ECHO_N "checking if <sasl/sasl.h> works... $ECHO_C" >&6
4700 cat >conftest.$ac_ext <<_ACEOF
4701 #include <sasl/sasl.h>
4702 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -s conftest.$ac_objext'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4716 P_HAS_SASL_SASL_H=1
4717 else
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4722 rm -f conftest.$ac_objext conftest.$ac_ext
4723 if test "${P_HAS_SASL_SASL_H}x" != "x" ; then
4724 echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6
4726 SASL_INCLUDED=1
4727 cat >>confdefs.h <<\_ACEOF
4728 #define P_HAS_SASL_SASL_H 1
4729 _ACEOF
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4737 if test "${HAS_SASL2}x" != "x" ; then
4738 HAS_SASL2=1
4739 ENDLDLIBS="$ENDLDLIBS -lsasl2"
4740 cat >>confdefs.h <<\_ACEOF
4741 #define P_SASL2 1
4742 _ACEOF
4744 HAS_SASL2=1
4746 elif test "${HAS_SASL}x" != "x" ; then
4747 HAS_SASL=1
4748 ENDLDLIBS="$ENDLDLIBS -lsasl"
4749 cat >>confdefs.h <<\_ACEOF
4750 #define P_SASL 1
4751 _ACEOF
4753 HAS_SASL=1
4755 else
4756 HAS_SASL=0
4762 # Check whether --enable-openldap or --disable-openldap was given.
4763 if test "${enable_openldap+set}" = set; then
4764 enableval="$enable_openldap"
4765 openldap=$enableval
4768 if test "$openldap" = "no" ; then
4769 HAS_OPENLDAP=0
4771 cat >>confdefs.h <<\_ACEOF
4772 #define P_LDAP 0
4773 _ACEOF
4775 else
4776 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4778 for ac_header in ldap.h
4780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4789 else
4790 # Is the header compilable?
4791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4793 cat >conftest.$ac_ext <<_ACEOF
4794 #line $LINENO "configure"
4795 /* confdefs.h. */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 $ac_includes_default
4801 #include <$ac_header>
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_header_compiler=yes
4816 else
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 ac_header_compiler=no
4822 rm -f conftest.$ac_objext conftest.$ac_ext
4823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4824 echo "${ECHO_T}$ac_header_compiler" >&6
4826 # Is the header present?
4827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4829 cat >conftest.$ac_ext <<_ACEOF
4830 #line $LINENO "configure"
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 #include <$ac_header>
4837 _ACEOF
4838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null; then
4846 if test -s conftest.err; then
4847 ac_cpp_err=$ac_cxx_preproc_warn_flag
4848 else
4849 ac_cpp_err=
4851 else
4852 ac_cpp_err=yes
4854 if test -z "$ac_cpp_err"; then
4855 ac_header_preproc=yes
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 ac_header_preproc=no
4862 rm -f conftest.err conftest.$ac_ext
4863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4864 echo "${ECHO_T}$ac_header_preproc" >&6
4866 # So? What about this header?
4867 case $ac_header_compiler:$ac_header_preproc in
4868 yes:no )
4869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4874 cat <<\_ASBOX
4875 ## ------------------------------------ ##
4876 ## Report this to bug-autoconf@gnu.org. ##
4877 ## ------------------------------------ ##
4878 _ASBOX
4880 sed "s/^/$as_me: WARNING: /" >&2
4882 no:yes )
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4890 cat <<\_ASBOX
4891 ## ------------------------------------ ##
4892 ## Report this to bug-autoconf@gnu.org. ##
4893 ## ------------------------------------ ##
4894 _ASBOX
4896 sed "s/^/$as_me: WARNING: /" >&2
4898 esac
4899 echo "$as_me:$LINENO: checking for $ac_header" >&5
4900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 eval "$as_ac_Header=$ac_header_preproc"
4906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4911 cat >>confdefs.h <<_ACEOF
4912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4913 _ACEOF
4914 HAS_OPENLDAP=1
4917 done
4920 if test "${OSTYPE:-unknown}" = "solaris"; then
4921 OPENLDAPSYSLIBS=-lposix4
4924 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4925 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4926 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4927 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930 ac_check_lib_save_LIBS=$LIBS
4931 LIBS="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4934 /* confdefs.h. */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4940 /* Override any gcc2 internal prototype to avoid an error. */
4941 #ifdef __cplusplus
4942 extern "C"
4943 #endif
4944 /* We use char because int might match the return type of a gcc2
4945 builtin and then its argument prototype would still apply. */
4946 char ldap_open ();
4948 main ()
4950 ldap_open ();
4952 return 0;
4954 _ACEOF
4955 rm -f conftest.$ac_objext conftest$ac_exeext
4956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4957 (eval $ac_link) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -s conftest$ac_exeext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_cv_lib_ldap_ldap_open=yes
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 ac_cv_lib_ldap_ldap_open=no
4974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4975 LIBS=$ac_check_lib_save_LIBS
4977 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4978 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4979 if test $ac_cv_lib_ldap_ldap_open = yes; then
4980 HAS_OPENLDAP=1
4981 else
4982 HAS_OPENLDAP=
4985 else
4986 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
4987 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
4988 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 test "$cross_compiling" = yes &&
4992 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4993 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4994 { (exit 1); exit 1; }; }
4995 if test -r "/usr/local/include/ldap.h"; then
4996 ac_cv_file__usr_local_include_ldap_h=yes
4997 else
4998 ac_cv_file__usr_local_include_ldap_h=no
5001 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
5002 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
5003 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
5004 HAS_OPENLDAP=1
5007 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
5008 OPENLDAPINCLUDEDIR=/usr/local/include
5009 OPENLDAPLIBDIR=/usr/local/lib
5010 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
5011 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
5012 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 ac_check_lib_save_LIBS=$LIBS
5016 LIBS="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
5017 cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5025 /* Override any gcc2 internal prototype to avoid an error. */
5026 #ifdef __cplusplus
5027 extern "C"
5028 #endif
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5031 char ldap_open ();
5033 main ()
5035 ldap_open ();
5037 return 0;
5039 _ACEOF
5040 rm -f conftest.$ac_objext conftest$ac_exeext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5042 (eval $ac_link) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -s conftest$ac_exeext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_lib_ldap_ldap_open=yes
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 ac_cv_lib_ldap_ldap_open=no
5059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5060 LIBS=$ac_check_lib_save_LIBS
5062 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
5063 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
5064 if test $ac_cv_lib_ldap_ldap_open = yes; then
5065 HAS_OPENLDAP=1
5066 else
5067 HAS_OPENLDAP=
5074 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
5075 HAS_OPENLDAP=1
5078 cat >>confdefs.h <<\_ACEOF
5079 #define P_LDAP 1
5080 _ACEOF
5082 ENDLDLIBS="-lldap -lldap_r -llber $ENDLDLIBS"
5083 if test "${OPENLDAPINCLUDEDIR}unset" != "unset" ; then
5084 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
5086 if test "${OPENLDAPLIBDIR}unset" != "unset" ; then
5087 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
5095 # Check whether --enable-openssl or --disable-openssl was given.
5096 if test "${enable_openssl+set}" = set; then
5097 enableval="$enable_openssl"
5098 openssl=$enableval
5101 if test "$openssl" = "no" ; then
5102 cat >>confdefs.h <<\_ACEOF
5103 #define P_SSL 0
5104 _ACEOF
5106 HAS_OPENSSL=0
5108 else
5110 if test ${OPENSSLDIR:-unset} != "unset" ; then
5111 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
5112 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
5113 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
5114 echo "$as_me:$LINENO: result: yes" >&5
5115 echo "${ECHO_T}yes" >&6
5116 SSLHDR=1
5117 SSLINCLUDEDIR="${OPENSSLDIR}/include"
5118 SSLLIBDIR="${OPENSSLDIR}/lib"
5119 else
5120 echo "$as_me:$LINENO: result: no" >&5
5121 echo "${ECHO_T}no" >&6
5126 if test "${SSLHDR:-unset}" = "unset" ; then
5128 for ac_header in openssl/ssl.h
5130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5132 echo "$as_me:$LINENO: checking for $ac_header" >&5
5133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5139 else
5140 # Is the header compilable?
5141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5143 cat >conftest.$ac_ext <<_ACEOF
5144 #line $LINENO "configure"
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 $ac_includes_default
5151 #include <$ac_header>
5152 _ACEOF
5153 rm -f conftest.$ac_objext
5154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5155 (eval $ac_compile) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try='test -s conftest.$ac_objext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_header_compiler=yes
5166 else
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5170 ac_header_compiler=no
5172 rm -f conftest.$ac_objext conftest.$ac_ext
5173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5174 echo "${ECHO_T}$ac_header_compiler" >&6
5176 # Is the header present?
5177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5179 cat >conftest.$ac_ext <<_ACEOF
5180 #line $LINENO "configure"
5181 /* confdefs.h. */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 #include <$ac_header>
5187 _ACEOF
5188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } >/dev/null; then
5196 if test -s conftest.err; then
5197 ac_cpp_err=$ac_cxx_preproc_warn_flag
5198 else
5199 ac_cpp_err=
5201 else
5202 ac_cpp_err=yes
5204 if test -z "$ac_cpp_err"; then
5205 ac_header_preproc=yes
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 ac_header_preproc=no
5212 rm -f conftest.err conftest.$ac_ext
5213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5214 echo "${ECHO_T}$ac_header_preproc" >&6
5216 # So? What about this header?
5217 case $ac_header_compiler:$ac_header_preproc in
5218 yes:no )
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5224 cat <<\_ASBOX
5225 ## ------------------------------------ ##
5226 ## Report this to bug-autoconf@gnu.org. ##
5227 ## ------------------------------------ ##
5228 _ASBOX
5230 sed "s/^/$as_me: WARNING: /" >&2
5232 no:yes )
5233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5240 cat <<\_ASBOX
5241 ## ------------------------------------ ##
5242 ## Report this to bug-autoconf@gnu.org. ##
5243 ## ------------------------------------ ##
5244 _ASBOX
5246 sed "s/^/$as_me: WARNING: /" >&2
5248 esac
5249 echo "$as_me:$LINENO: checking for $ac_header" >&5
5250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254 eval "$as_ac_Header=$ac_header_preproc"
5256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5261 cat >>confdefs.h <<_ACEOF
5262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5263 _ACEOF
5264 SSLHDR=1
5267 done
5269 if test "${SSLHDR:-unset}" = "unset" ; then
5270 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
5271 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
5272 cat >conftest.$ac_ext <<_ACEOF
5273 #define OPENSSL_NO_KRB5
5274 #include <openssl/ssl.h>
5275 int main(int argc,char **argv){}
5276 _ACEOF
5277 rm -f conftest.$ac_objext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279 (eval $ac_compile) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 SSLHDR=1
5290 else
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5295 rm -f conftest.$ac_objext conftest.$ac_ext
5296 if test ${SSLHDR:-unset} != "unset" ; then
5297 echo "$as_me:$LINENO: result: yes" >&5
5298 echo "${ECHO_T}yes" >&6
5299 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5300 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5301 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5309 if test "${SSLHDR:-unset}" = "unset" ; then
5311 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
5312 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
5313 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
5314 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
5315 echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5317 else
5318 cat >conftest.$ac_ext <<_ACEOF
5319 #include "${openssl_dir}/include/openssl/ssl.h"
5320 int main(int argc,char **argv){ return 0; }
5321 _ACEOF
5322 $CXX $CXXFLAGS -I${openssl_dir}/include -c conftest.cc > /dev/null 2>&1
5323 if test $? = 0 ; then
5324 echo "$as_me:$LINENO: result: yes" >&5
5325 echo "${ECHO_T}yes" >&6
5326 SSLHDR=1
5327 SSLCCFLAGS=""
5328 SSLINCLUDEDIR="${openssl_dir}/include"
5329 SSLLIBDIR="${openssl_dir}/lib"
5330 break
5331 else
5332 echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6
5334 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
5335 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
5336 cat >conftest.$ac_ext <<_ACEOF
5337 #define OPENSSL_NO_KRB5
5338 #include "${openssl_dir}/include/openssl/ssl.h"
5339 int main(int argc,char **argv){}
5340 _ACEOF
5341 $CXX $CXXFLAGS -I${openssl_dir}/openssl/include -c conftest.cc > /dev/null 2>&1
5342 if test $? = 0 ; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344 echo "${ECHO_T}yes" >&6
5345 SSLHDR=1
5346 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5347 SSLINCLUDEDIR="${openssl_dir}/include"
5348 SSLLIBDIR="${openssl_dir}/lib"
5349 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5350 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5351 break
5352 else
5353 echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5358 done
5361 if test ${SSLHDR:-unset} != "unset" ; then
5362 HAS_OPENSSL=1
5365 cat >>confdefs.h <<\_ACEOF
5366 #define P_SSL 1
5367 _ACEOF
5369 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
5370 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
5372 if test ${SSLLIBDIR:-unset} != "unset" ; then
5373 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
5375 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
5376 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
5385 # Check whether --enable-expat or --disable-expat was given.
5386 if test "${enable_expat+set}" = set; then
5387 enableval="$enable_expat"
5388 expat=$enableval
5391 if test "$expat" = "no" ; then
5392 HAS_EXPAT=0
5394 cat >>confdefs.h <<\_ACEOF
5395 #define P_EXPAT 0
5396 _ACEOF
5398 else
5401 for ac_header in expat.h
5403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5405 echo "$as_me:$LINENO: checking for $ac_header" >&5
5406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5412 else
5413 # Is the header compilable?
5414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5416 cat >conftest.$ac_ext <<_ACEOF
5417 #line $LINENO "configure"
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5424 #include <$ac_header>
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5428 (eval $ac_compile) 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -s conftest.$ac_objext'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 (eval $ac_try) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_header_compiler=yes
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 ac_header_compiler=no
5445 rm -f conftest.$ac_objext conftest.$ac_ext
5446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5447 echo "${ECHO_T}$ac_header_compiler" >&6
5449 # Is the header present?
5450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5452 cat >conftest.$ac_ext <<_ACEOF
5453 #line $LINENO "configure"
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <$ac_header>
5460 _ACEOF
5461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } >/dev/null; then
5469 if test -s conftest.err; then
5470 ac_cpp_err=$ac_cxx_preproc_warn_flag
5471 else
5472 ac_cpp_err=
5474 else
5475 ac_cpp_err=yes
5477 if test -z "$ac_cpp_err"; then
5478 ac_header_preproc=yes
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_header_preproc=no
5485 rm -f conftest.err conftest.$ac_ext
5486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5487 echo "${ECHO_T}$ac_header_preproc" >&6
5489 # So? What about this header?
5490 case $ac_header_compiler:$ac_header_preproc in
5491 yes:no )
5492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5497 cat <<\_ASBOX
5498 ## ------------------------------------ ##
5499 ## Report this to bug-autoconf@gnu.org. ##
5500 ## ------------------------------------ ##
5501 _ASBOX
5503 sed "s/^/$as_me: WARNING: /" >&2
5505 no:yes )
5506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5513 cat <<\_ASBOX
5514 ## ------------------------------------ ##
5515 ## Report this to bug-autoconf@gnu.org. ##
5516 ## ------------------------------------ ##
5517 _ASBOX
5519 sed "s/^/$as_me: WARNING: /" >&2
5521 esac
5522 echo "$as_me:$LINENO: checking for $ac_header" >&5
5523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 eval "$as_ac_Header=$ac_header_preproc"
5529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536 _ACEOF
5537 HAS_EXPAT=1
5540 done
5542 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5543 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
5544 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
5545 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548 ac_check_lib_save_LIBS=$LIBS
5549 LIBS="-lexpat $LIBS"
5550 cat >conftest.$ac_ext <<_ACEOF
5551 #line $LINENO "configure"
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5558 /* Override any gcc2 internal prototype to avoid an error. */
5559 #ifdef __cplusplus
5560 extern "C"
5561 #endif
5562 /* We use char because int might match the return type of a gcc2
5563 builtin and then its argument prototype would still apply. */
5564 char XML_ParserCreate ();
5566 main ()
5568 XML_ParserCreate ();
5570 return 0;
5572 _ACEOF
5573 rm -f conftest.$ac_objext conftest$ac_exeext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575 (eval $ac_link) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try='test -s conftest$ac_exeext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_lib_expat_XML_ParserCreate=yes
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 ac_cv_lib_expat_XML_ParserCreate=no
5592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5593 LIBS=$ac_check_lib_save_LIBS
5595 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5596 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
5597 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
5598 HAS_EXPAT=1
5599 else
5600 HAS_EXPAT=
5603 else
5604 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
5605 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
5606 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609 test "$cross_compiling" = yes &&
5610 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5611 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5612 { (exit 1); exit 1; }; }
5613 if test -r "/usr/local/include/expat.h"; then
5614 ac_cv_file__usr_local_include_expat_h=yes
5615 else
5616 ac_cv_file__usr_local_include_expat_h=no
5619 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
5620 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
5621 if test $ac_cv_file__usr_local_include_expat_h = yes; then
5622 HAS_EXPAT=1
5625 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5626 EXPATINCLUDEDIR=/usr/local/include
5627 EXPATLIBDIR=/usr/local/lib
5631 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5632 HAS_EXPAT=1
5635 cat >>confdefs.h <<\_ACEOF
5636 #define P_EXPAT 1
5637 _ACEOF
5639 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
5640 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
5642 if test ${EXPATLIBDIR:-unset} != "unset" ; then
5643 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
5645 ENDLDLIBS="$ENDLDLIBS -lexpat"
5655 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5656 if test "${enable_ipv6+set}" = set; then
5657 enableval="$enable_ipv6"
5658 ipv6=$enableval
5661 if test "$ipv6" = "no" ; then
5662 cat >>confdefs.h <<\_ACEOF
5663 #define P_HAS_IPV6 0
5664 _ACEOF
5666 HAS_IPV6=0
5668 else
5669 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
5670 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
5671 if test "${HAS_IPV6+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 cat >conftest.$ac_ext <<_ACEOF
5675 #line $LINENO "configure"
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 #include <sys/types.h>
5682 #include <netinet/in.h>
5684 main ()
5686 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5688 return 0;
5690 _ACEOF
5691 rm -f conftest.$ac_objext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693 (eval $ac_compile) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -s conftest.$ac_objext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 HAS_IPV6=yes
5704 else
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 HAS_IPV6=no
5710 rm -f conftest.$ac_objext conftest.$ac_ext
5712 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
5713 echo "${ECHO_T}$HAS_IPV6" >&6
5715 if test $HAS_IPV6 = yes ; then
5717 cat >>confdefs.h <<\_ACEOF
5718 #define P_HAS_IPV6 1
5719 _ACEOF
5726 # Check whether --enable-qos or --disable-qos was given.
5727 if test "${enable_qos+set}" = set; then
5728 enableval="$enable_qos"
5729 qos=$enableval
5732 if test "$qos" = "no" ; then
5734 cat >>confdefs.h <<\_ACEOF
5735 #define P_HAS_QOS 0
5736 _ACEOF
5738 else
5740 cat >>confdefs.h <<\_ACEOF
5741 #define P_HAS_QOS 1
5742 _ACEOF
5749 # Check whether --enable-sdl or --disable-sdl was given.
5750 if test "${enable_sdl+set}" = set; then
5751 enableval="$enable_sdl"
5752 sdl=$enableval
5755 if test "$sdl" = "no" ; then
5756 HAS_SDL=0
5758 cat >>confdefs.h <<\_ACEOF
5759 #define P_SDL 0
5760 _ACEOF
5762 else
5763 if test "${SDLLIB:-unset}" = "unset" ; then
5764 SDLLIB=SDL
5768 for ac_header in SDL/SDL.h
5770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5772 echo "$as_me:$LINENO: checking for $ac_header" >&5
5773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5779 else
5780 # Is the header compilable?
5781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5784 #line $LINENO "configure"
5785 /* confdefs.h. */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 $ac_includes_default
5791 #include <$ac_header>
5792 _ACEOF
5793 rm -f conftest.$ac_objext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_header_compiler=yes
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 ac_header_compiler=no
5812 rm -f conftest.$ac_objext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5814 echo "${ECHO_T}$ac_header_compiler" >&6
5816 # Is the header present?
5817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5819 cat >conftest.$ac_ext <<_ACEOF
5820 #line $LINENO "configure"
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #include <$ac_header>
5827 _ACEOF
5828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null; then
5836 if test -s conftest.err; then
5837 ac_cpp_err=$ac_cxx_preproc_warn_flag
5838 else
5839 ac_cpp_err=
5841 else
5842 ac_cpp_err=yes
5844 if test -z "$ac_cpp_err"; then
5845 ac_header_preproc=yes
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 ac_header_preproc=no
5852 rm -f conftest.err conftest.$ac_ext
5853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5854 echo "${ECHO_T}$ac_header_preproc" >&6
5856 # So? What about this header?
5857 case $ac_header_compiler:$ac_header_preproc in
5858 yes:no )
5859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5864 cat <<\_ASBOX
5865 ## ------------------------------------ ##
5866 ## Report this to bug-autoconf@gnu.org. ##
5867 ## ------------------------------------ ##
5868 _ASBOX
5870 sed "s/^/$as_me: WARNING: /" >&2
5872 no:yes )
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5880 cat <<\_ASBOX
5881 ## ------------------------------------ ##
5882 ## Report this to bug-autoconf@gnu.org. ##
5883 ## ------------------------------------ ##
5884 _ASBOX
5886 sed "s/^/$as_me: WARNING: /" >&2
5888 esac
5889 echo "$as_me:$LINENO: checking for $ac_header" >&5
5890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 eval "$as_ac_Header=$ac_header_preproc"
5896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5901 cat >>confdefs.h <<_ACEOF
5902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903 _ACEOF
5904 HAS_SDL=1
5907 done
5909 if test "${HAS_SDL:-unset}" != "unset" ; then
5910 if test "${X11LIBDIR:-unset}" == "unset" ; then
5911 X11LIBDIR=/usr/X11R6/lib
5913 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5914 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5915 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 ac_check_lib_save_LIBS=$LIBS
5919 LIBS="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext -laa $LIBS"
5920 cat >conftest.$ac_ext <<_ACEOF
5921 #line $LINENO "configure"
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5928 /* Override any gcc2 internal prototype to avoid an error. */
5929 #ifdef __cplusplus
5930 extern "C"
5931 #endif
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5934 char SDL_CreateYUVOverlay ();
5936 main ()
5938 SDL_CreateYUVOverlay ();
5940 return 0;
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try='test -s conftest$ac_exeext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 (eval $ac_try) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
5956 else
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
5962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5963 LIBS=$ac_check_lib_save_LIBS
5965 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5966 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5967 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5968 HAS_SDL=1
5969 else
5970 HAS_SDL=
5975 if test "${HAS_SDL:-unset}" = "unset" ; then
5976 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5977 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5978 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 test "$cross_compiling" = yes &&
5982 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5983 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5984 { (exit 1); exit 1; }; }
5985 if test -r "/usr/local/include/SDL11/SDL.h"; then
5986 ac_cv_file__usr_local_include_SDL11_SDL_h=yes
5987 else
5988 ac_cv_file__usr_local_include_SDL11_SDL_h=no
5991 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
5992 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
5993 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
5994 HAS_SDL=1
5997 if test "${HAS_SDL:-unset}" != "unset" ; then
5998 SDLLIB=SDL-1.1
6002 if test "${HAS_SDL:-unset}" != "unset" ; then
6003 HAS_SDL=1
6006 cat >>confdefs.h <<\_ACEOF
6007 #define P_SDL 1
6008 _ACEOF
6010 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
6011 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
6013 if test ${SDLLIBDIR:-unset} != "unset" ; then
6014 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
6016 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
6022 # Check whether --enable-video or --disable-video was given.
6023 if test "${enable_video+set}" = set; then
6024 enableval="$enable_video"
6025 video=$enableval
6028 HAS_VIDEO_CAPTURE=0
6029 if test "$HAS_PLUGINS" = "0" ; then
6030 if test "$video" != "no" ; then
6031 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6032 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6033 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6034 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6038 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6039 else
6040 # Is the header compilable?
6041 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
6042 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
6043 cat >conftest.$ac_ext <<_ACEOF
6044 #line $LINENO "configure"
6045 /* confdefs.h. */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 $ac_includes_default
6051 #include <linux/videodev.h>
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_header_compiler=yes
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 ac_header_compiler=no
6072 rm -f conftest.$ac_objext conftest.$ac_ext
6073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6074 echo "${ECHO_T}$ac_header_compiler" >&6
6076 # Is the header present?
6077 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
6078 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line $LINENO "configure"
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <linux/videodev.h>
6087 _ACEOF
6088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } >/dev/null; then
6096 if test -s conftest.err; then
6097 ac_cpp_err=$ac_cxx_preproc_warn_flag
6098 else
6099 ac_cpp_err=
6101 else
6102 ac_cpp_err=yes
6104 if test -z "$ac_cpp_err"; then
6105 ac_header_preproc=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 ac_header_preproc=no
6112 rm -f conftest.err conftest.$ac_ext
6113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6114 echo "${ECHO_T}$ac_header_preproc" >&6
6116 # So? What about this header?
6117 case $ac_header_compiler:$ac_header_preproc in
6118 yes:no )
6119 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6120 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6122 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6124 cat <<\_ASBOX
6125 ## ------------------------------------ ##
6126 ## Report this to bug-autoconf@gnu.org. ##
6127 ## ------------------------------------ ##
6128 _ASBOX
6130 sed "s/^/$as_me: WARNING: /" >&2
6132 no:yes )
6133 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
6134 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
6136 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
6137 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6138 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6140 cat <<\_ASBOX
6141 ## ------------------------------------ ##
6142 ## Report this to bug-autoconf@gnu.org. ##
6143 ## ------------------------------------ ##
6144 _ASBOX
6146 sed "s/^/$as_me: WARNING: /" >&2
6148 esac
6149 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6150 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6151 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 ac_cv_header_linux_videodev_h=$ac_header_preproc
6156 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6157 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6160 if test $ac_cv_header_linux_videodev_h = yes; then
6161 HAS_VIDEO_CAPTURE=1
6165 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
6166 { echo "$as_me:$LINENO: No Video Capture support" >&5
6167 echo "$as_me: No Video Capture support" >&6;}
6169 cat >>confdefs.h <<\_ACEOF
6170 #define NO_VIDEO_CAPTURE
6171 _ACEOF
6178 # Check whether --enable-alsa or --disable-alsa was given.
6179 if test "${enable_alsa+set}" = set; then
6180 enableval="$enable_alsa"
6181 enable_alsa=$enableval
6184 HAS_ALSA=0
6185 if test "$HAS_PLUGINS" = "0" ; then
6186 if test "$enable_alsa" != "no" ; then
6187 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6188 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6189 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6190 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6194 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6195 else
6196 # Is the header compilable?
6197 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
6198 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
6199 cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 $ac_includes_default
6207 #include <alsa/asoundlib.h>
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_header_compiler=yes
6222 else
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_header_compiler=no
6228 rm -f conftest.$ac_objext conftest.$ac_ext
6229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6230 echo "${ECHO_T}$ac_header_compiler" >&6
6232 # Is the header present?
6233 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
6234 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
6235 cat >conftest.$ac_ext <<_ACEOF
6236 #line $LINENO "configure"
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 #include <alsa/asoundlib.h>
6243 _ACEOF
6244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } >/dev/null; then
6252 if test -s conftest.err; then
6253 ac_cpp_err=$ac_cxx_preproc_warn_flag
6254 else
6255 ac_cpp_err=
6257 else
6258 ac_cpp_err=yes
6260 if test -z "$ac_cpp_err"; then
6261 ac_header_preproc=yes
6262 else
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6266 ac_header_preproc=no
6268 rm -f conftest.err conftest.$ac_ext
6269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6270 echo "${ECHO_T}$ac_header_preproc" >&6
6272 # So? What about this header?
6273 case $ac_header_compiler:$ac_header_preproc in
6274 yes:no )
6275 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6276 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6278 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6280 cat <<\_ASBOX
6281 ## ------------------------------------ ##
6282 ## Report this to bug-autoconf@gnu.org. ##
6283 ## ------------------------------------ ##
6284 _ASBOX
6286 sed "s/^/$as_me: WARNING: /" >&2
6288 no:yes )
6289 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
6290 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6292 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6294 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6296 cat <<\_ASBOX
6297 ## ------------------------------------ ##
6298 ## Report this to bug-autoconf@gnu.org. ##
6299 ## ------------------------------------ ##
6300 _ASBOX
6302 sed "s/^/$as_me: WARNING: /" >&2
6304 esac
6305 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6306 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6307 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
6312 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6313 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6316 if test $ac_cv_header_alsa_asoundlib_h = yes; then
6317 HAS_ALSA=1
6321 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
6322 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
6323 if test "${HAS_ALSA}" = "1"; then
6324 echo "$as_me:$LINENO: result: yes" >&5
6325 echo "${ECHO_T}yes" >&6
6326 ENDLDLIBS="$ENDLDLIBS -lasound"
6327 else
6328 echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6
6335 if test "$OSTYPE" = "solaris" ; then
6336 USE_SYSTEM_SWAB=
6337 else
6338 echo "$as_me:$LINENO: checking for swab" >&5
6339 echo $ECHO_N "checking for swab... $ECHO_C" >&6
6340 if test "${ac_cv_func_swab+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343 cat >conftest.$ac_ext <<_ACEOF
6344 #line $LINENO "configure"
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 /* System header to define __stub macros and hopefully few prototypes,
6351 which can conflict with char swab (); below.
6352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6353 <limits.h> exists even on freestanding compilers. */
6354 #ifdef __STDC__
6355 # include <limits.h>
6356 #else
6357 # include <assert.h>
6358 #endif
6359 /* Override any gcc2 internal prototype to avoid an error. */
6360 #ifdef __cplusplus
6361 extern "C"
6363 #endif
6364 /* We use char because int might match the return type of a gcc2
6365 builtin and then its argument prototype would still apply. */
6366 char swab ();
6367 /* The GNU C library defines this for functions which it implements
6368 to always fail with ENOSYS. Some functions are actually named
6369 something starting with __ and the normal name is an alias. */
6370 #if defined (__stub_swab) || defined (__stub___swab)
6371 choke me
6372 #else
6373 char (*f) () = swab;
6374 #endif
6375 #ifdef __cplusplus
6377 #endif
6380 main ()
6382 return f != swab;
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext conftest$ac_exeext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389 (eval $ac_link) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -s conftest$ac_exeext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 ac_cv_func_swab=yes
6400 else
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 ac_cv_func_swab=no
6406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6408 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
6409 echo "${ECHO_T}$ac_cv_func_swab" >&6
6410 if test $ac_cv_func_swab = yes; then
6411 USE_SYSTEM_SWAB=1
6415 if test "x$ac_cv_func_swab" = "xyes" ; then
6417 cat >>confdefs.h <<\_ACEOF
6418 #define USE_SYSTEM_SWAB
6419 _ACEOF
6424 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
6425 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
6426 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
6430 if test "${OSTYPE}" != "Darwin" ; then
6431 if test ${HAS_LIBDL} = yes ; then
6432 ENDLDLIBS="$ENDLDLIBS -ldl"
6441 # Find a good install program. We prefer a C program (faster),
6442 # so one script is as good as another. But avoid the broken or
6443 # incompatible versions:
6444 # SysV /etc/install, /usr/sbin/install
6445 # SunOS /usr/etc/install
6446 # IRIX /sbin/install
6447 # AIX /bin/install
6448 # AmigaOS /C/install, which installs bootblocks on floppy discs
6449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6452 # ./install, which can be erroneously created by make from ./install.sh.
6453 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6454 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6455 if test -z "$INSTALL"; then
6456 if test "${ac_cv_path_install+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
6464 # Account for people who put trailing slashes in PATH elements.
6465 case $as_dir/ in
6466 ./ | .// | /cC/* | \
6467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6468 /usr/ucb/* ) ;;
6470 # OSF1 and SCO ODT 3.0 have their own names for install.
6471 # Don't use installbsd from OSF since it installs stuff as root
6472 # by default.
6473 for ac_prog in ginstall scoinst install; do
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6476 if test $ac_prog = install &&
6477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6478 # AIX install. It has an incompatible calling convention.
6480 elif test $ac_prog = install &&
6481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6482 # program-specific install script used by HP pwplus--don't use.
6484 else
6485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6486 break 3
6489 done
6490 done
6492 esac
6493 done
6497 if test "${ac_cv_path_install+set}" = set; then
6498 INSTALL=$ac_cv_path_install
6499 else
6500 # As a last resort, use the slow shell script. We don't cache a
6501 # path for INSTALL within a source directory, because that will
6502 # break other packages using the cache if that directory is
6503 # removed, or if the path is relative.
6504 INSTALL=$ac_install_sh
6507 echo "$as_me:$LINENO: result: $INSTALL" >&5
6508 echo "${ECHO_T}$INSTALL" >&6
6510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6511 # It thinks the first close brace ends the variable substitution.
6512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6519 ac_config_files="$ac_config_files make/ptbuildopts.mak"
6521 ac_config_files="$ac_config_files make/ptlib-config"
6523 ac_config_files="$ac_config_files Makefile"
6526 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
6527 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
6530 cat >confcache <<\_ACEOF
6531 # This file is a shell script that caches the results of configure
6532 # tests run on this system so they can be shared between configure
6533 # scripts and configure runs, see configure's option --config-cache.
6534 # It is not useful on other systems. If it contains results you don't
6535 # want to keep, you may remove or edit it.
6537 # config.status only pays attention to the cache file if you give it
6538 # the --recheck option to rerun configure.
6540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6542 # following values.
6544 _ACEOF
6546 # The following way of writing the cache mishandles newlines in values,
6547 # but we know of no workaround that is simple, portable, and efficient.
6548 # So, don't put newlines in cache variables' values.
6549 # Ultrix sh set writes to stderr and can't be redirected directly,
6550 # and sets the high bit in the cache file unless we assign to the vars.
6552 (set) 2>&1 |
6553 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6554 *ac_space=\ *)
6555 # `set' does not quote correctly, so add quotes (double-quote
6556 # substitution turns \\\\ into \\, and sed turns \\ into \).
6557 sed -n \
6558 "s/'/'\\\\''/g;
6559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6562 # `set' quotes correctly as required by POSIX, so do not add quotes.
6563 sed -n \
6564 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6566 esac;
6568 sed '
6569 t clear
6570 : clear
6571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6572 t end
6573 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6574 : end' >>confcache
6575 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6576 if test -w $cache_file; then
6577 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6578 cat confcache >$cache_file
6579 else
6580 echo "not updating unwritable cache $cache_file"
6583 rm -f confcache
6585 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6586 # Let make expand exec_prefix.
6587 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6589 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6590 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6591 # trailing colons and then remove the whole line if VPATH becomes empty
6592 # (actually we leave an empty line to preserve line numbers).
6593 if test "x$srcdir" = x.; then
6594 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6595 s/:*\$(srcdir):*/:/;
6596 s/:*\${srcdir}:*/:/;
6597 s/:*@srcdir@:*/:/;
6598 s/^\([^=]*=[ ]*\):*/\1/;
6599 s/:*$//;
6600 s/^[^=]*=[ ]*$//;
6604 DEFS=-DHAVE_CONFIG_H
6606 ac_libobjs=
6607 ac_ltlibobjs=
6608 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6609 # 1. Remove the extension, and $U if already installed.
6610 ac_i=`echo "$ac_i" |
6611 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6612 # 2. Add them.
6613 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6614 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6615 done
6616 LIBOBJS=$ac_libobjs
6618 LTLIBOBJS=$ac_ltlibobjs
6622 : ${CONFIG_STATUS=./config.status}
6623 ac_clean_files_save=$ac_clean_files
6624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6625 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6626 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6627 cat >$CONFIG_STATUS <<_ACEOF
6628 #! $SHELL
6629 # Generated by $as_me.
6630 # Run this file to recreate the current configuration.
6631 # Compiler output produced by configure, useful for debugging
6632 # configure, is in config.log if it exists.
6634 debug=false
6635 ac_cs_recheck=false
6636 ac_cs_silent=false
6637 SHELL=\${CONFIG_SHELL-$SHELL}
6638 _ACEOF
6640 cat >>$CONFIG_STATUS <<\_ACEOF
6641 ## --------------------- ##
6642 ## M4sh Initialization. ##
6643 ## --------------------- ##
6645 # Be Bourne compatible
6646 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6647 emulate sh
6648 NULLCMD=:
6649 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6650 # is contrary to our usage. Disable this feature.
6651 alias -g '${1+"$@"}'='"$@"'
6652 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6653 set -o posix
6656 # Support unset when possible.
6657 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6658 as_unset=unset
6659 else
6660 as_unset=false
6664 # Work around bugs in pre-3.0 UWIN ksh.
6665 $as_unset ENV MAIL MAILPATH
6666 PS1='$ '
6667 PS2='> '
6668 PS4='+ '
6670 # NLS nuisances.
6671 for as_var in \
6672 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6673 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6674 LC_TELEPHONE LC_TIME
6676 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6677 eval $as_var=C; export $as_var
6678 else
6679 $as_unset $as_var
6681 done
6683 # Required to use basename.
6684 if expr a : '\(a\)' >/dev/null 2>&1; then
6685 as_expr=expr
6686 else
6687 as_expr=false
6690 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6691 as_basename=basename
6692 else
6693 as_basename=false
6697 # Name of the executable.
6698 as_me=`$as_basename "$0" ||
6699 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6700 X"$0" : 'X\(//\)$' \| \
6701 X"$0" : 'X\(/\)$' \| \
6702 . : '\(.\)' 2>/dev/null ||
6703 echo X/"$0" |
6704 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6705 /^X\/\(\/\/\)$/{ s//\1/; q; }
6706 /^X\/\(\/\).*/{ s//\1/; q; }
6707 s/.*/./; q'`
6710 # PATH needs CR, and LINENO needs CR and PATH.
6711 # Avoid depending upon Character Ranges.
6712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6715 as_cr_digits='0123456789'
6716 as_cr_alnum=$as_cr_Letters$as_cr_digits
6718 # The user is always right.
6719 if test "${PATH_SEPARATOR+set}" != set; then
6720 echo "#! /bin/sh" >conf$$.sh
6721 echo "exit 0" >>conf$$.sh
6722 chmod +x conf$$.sh
6723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6724 PATH_SEPARATOR=';'
6725 else
6726 PATH_SEPARATOR=:
6728 rm -f conf$$.sh
6732 as_lineno_1=$LINENO
6733 as_lineno_2=$LINENO
6734 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6735 test "x$as_lineno_1" != "x$as_lineno_2" &&
6736 test "x$as_lineno_3" = "x$as_lineno_2" || {
6737 # Find who we are. Look in the path if we contain no path at all
6738 # relative or not.
6739 case $0 in
6740 *[\\/]* ) as_myself=$0 ;;
6741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6747 done
6750 esac
6751 # We did not find ourselves, most probably we were run as `sh COMMAND'
6752 # in which case we are not to be found in the path.
6753 if test "x$as_myself" = x; then
6754 as_myself=$0
6756 if test ! -f "$as_myself"; then
6757 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6758 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6759 { (exit 1); exit 1; }; }
6761 case $CONFIG_SHELL in
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for as_base in sh bash ksh sh5; do
6769 case $as_dir in
6771 if ("$as_dir/$as_base" -c '
6772 as_lineno_1=$LINENO
6773 as_lineno_2=$LINENO
6774 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6775 test "x$as_lineno_1" != "x$as_lineno_2" &&
6776 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6777 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6778 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6779 CONFIG_SHELL=$as_dir/$as_base
6780 export CONFIG_SHELL
6781 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6782 fi;;
6783 esac
6784 done
6785 done
6787 esac
6789 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6790 # uniformly replaced by the line number. The first 'sed' inserts a
6791 # line-number line before each line; the second 'sed' does the real
6792 # work. The second script uses 'N' to pair each line-number line
6793 # with the numbered line, and appends trailing '-' during
6794 # substitution so that $LINENO is not a special case at line end.
6795 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6796 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6797 sed '=' <$as_myself |
6798 sed '
6800 s,$,-,
6801 : loop
6802 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6803 t loop
6804 s,-$,,
6805 s,^['$as_cr_digits']*\n,,
6806 ' >$as_me.lineno &&
6807 chmod +x $as_me.lineno ||
6808 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6809 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6810 { (exit 1); exit 1; }; }
6812 # Don't try to exec as it changes $[0], causing all sort of problems
6813 # (the dirname of $[0] is not the place where we might find the
6814 # original and so on. Autoconf is especially sensible to this).
6815 . ./$as_me.lineno
6816 # Exit status is that of the last command.
6817 exit
6821 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6822 *c*,-n*) ECHO_N= ECHO_C='
6823 ' ECHO_T=' ' ;;
6824 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6825 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6826 esac
6828 if expr a : '\(a\)' >/dev/null 2>&1; then
6829 as_expr=expr
6830 else
6831 as_expr=false
6834 rm -f conf$$ conf$$.exe conf$$.file
6835 echo >conf$$.file
6836 if ln -s conf$$.file conf$$ 2>/dev/null; then
6837 # We could just check for DJGPP; but this test a) works b) is more generic
6838 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6839 if test -f conf$$.exe; then
6840 # Don't use ln at all; we don't have any links
6841 as_ln_s='cp -p'
6842 else
6843 as_ln_s='ln -s'
6845 elif ln conf$$.file conf$$ 2>/dev/null; then
6846 as_ln_s=ln
6847 else
6848 as_ln_s='cp -p'
6850 rm -f conf$$ conf$$.exe conf$$.file
6852 if mkdir -p . 2>/dev/null; then
6853 as_mkdir_p=:
6854 else
6855 as_mkdir_p=false
6858 as_executable_p="test -f"
6860 # Sed expression to map a string onto a valid CPP name.
6861 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6863 # Sed expression to map a string onto a valid variable name.
6864 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6867 # IFS
6868 # We need space, tab and new line, in precisely that order.
6869 as_nl='
6871 IFS=" $as_nl"
6873 # CDPATH.
6874 $as_unset CDPATH
6876 exec 6>&1
6878 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6879 # report actual input values of CONFIG_FILES etc. instead of their
6880 # values after options handling. Logging --version etc. is OK.
6881 exec 5>>config.log
6883 echo
6884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6885 ## Running $as_me. ##
6886 _ASBOX
6887 } >&5
6888 cat >&5 <<_CSEOF
6890 This file was extended by $as_me, which was
6891 generated by GNU Autoconf 2.57. Invocation command line was
6893 CONFIG_FILES = $CONFIG_FILES
6894 CONFIG_HEADERS = $CONFIG_HEADERS
6895 CONFIG_LINKS = $CONFIG_LINKS
6896 CONFIG_COMMANDS = $CONFIG_COMMANDS
6897 $ $0 $@
6899 _CSEOF
6900 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6901 echo >&5
6902 _ACEOF
6904 # Files that config.status was made for.
6905 if test -n "$ac_config_files"; then
6906 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6909 if test -n "$ac_config_headers"; then
6910 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6913 if test -n "$ac_config_links"; then
6914 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6917 if test -n "$ac_config_commands"; then
6918 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6921 cat >>$CONFIG_STATUS <<\_ACEOF
6923 ac_cs_usage="\
6924 \`$as_me' instantiates files from templates according to the
6925 current configuration.
6927 Usage: $0 [OPTIONS] [FILE]...
6929 -h, --help print this help, then exit
6930 -V, --version print version number, then exit
6931 -q, --quiet do not print progress messages
6932 -d, --debug don't remove temporary files
6933 --recheck update $as_me by reconfiguring in the same conditions
6934 --file=FILE[:TEMPLATE]
6935 instantiate the configuration file FILE
6936 --header=FILE[:TEMPLATE]
6937 instantiate the configuration header FILE
6939 Configuration files:
6940 $config_files
6942 Configuration headers:
6943 $config_headers
6945 Report bugs to <bug-autoconf@gnu.org>."
6946 _ACEOF
6948 cat >>$CONFIG_STATUS <<_ACEOF
6949 ac_cs_version="\\
6950 config.status
6951 configured by $0, generated by GNU Autoconf 2.57,
6952 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6954 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6955 Free Software Foundation, Inc.
6956 This config.status script is free software; the Free Software Foundation
6957 gives unlimited permission to copy, distribute and modify it."
6958 srcdir=$srcdir
6959 INSTALL="$INSTALL"
6960 _ACEOF
6962 cat >>$CONFIG_STATUS <<\_ACEOF
6963 # If no file are specified by the user, then we need to provide default
6964 # value. By we need to know if files were specified by the user.
6965 ac_need_defaults=:
6966 while test $# != 0
6968 case $1 in
6969 --*=*)
6970 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6971 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6972 ac_shift=:
6975 ac_option=$1
6976 ac_optarg=$2
6977 ac_shift=shift
6979 *) # This is not an option, so the user has probably given explicit
6980 # arguments.
6981 ac_option=$1
6982 ac_need_defaults=false;;
6983 esac
6985 case $ac_option in
6986 # Handling of the options.
6987 _ACEOF
6988 cat >>$CONFIG_STATUS <<\_ACEOF
6989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6990 ac_cs_recheck=: ;;
6991 --version | --vers* | -V )
6992 echo "$ac_cs_version"; exit 0 ;;
6993 --he | --h)
6994 # Conflict between --help and --header
6995 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6996 Try \`$0 --help' for more information." >&5
6997 echo "$as_me: error: ambiguous option: $1
6998 Try \`$0 --help' for more information." >&2;}
6999 { (exit 1); exit 1; }; };;
7000 --help | --hel | -h )
7001 echo "$ac_cs_usage"; exit 0 ;;
7002 --debug | --d* | -d )
7003 debug=: ;;
7004 --file | --fil | --fi | --f )
7005 $ac_shift
7006 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7007 ac_need_defaults=false;;
7008 --header | --heade | --head | --hea )
7009 $ac_shift
7010 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7011 ac_need_defaults=false;;
7012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7014 ac_cs_silent=: ;;
7016 # This is an error.
7017 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7018 Try \`$0 --help' for more information." >&5
7019 echo "$as_me: error: unrecognized option: $1
7020 Try \`$0 --help' for more information." >&2;}
7021 { (exit 1); exit 1; }; } ;;
7023 *) ac_config_targets="$ac_config_targets $1" ;;
7025 esac
7026 shift
7027 done
7029 ac_configure_extra_args=
7031 if $ac_cs_silent; then
7032 exec 6>/dev/null
7033 ac_configure_extra_args="$ac_configure_extra_args --silent"
7036 _ACEOF
7037 cat >>$CONFIG_STATUS <<_ACEOF
7038 if \$ac_cs_recheck; then
7039 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7040 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7043 _ACEOF
7049 cat >>$CONFIG_STATUS <<\_ACEOF
7050 for ac_config_target in $ac_config_targets
7052 case "$ac_config_target" in
7053 # Handling of arguments.
7054 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
7055 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
7056 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7057 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
7058 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7059 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7060 { (exit 1); exit 1; }; };;
7061 esac
7062 done
7064 # If the user did not use the arguments to specify the items to instantiate,
7065 # then the envvar interface is used. Set only those that are not.
7066 # We use the long form for the default assignment because of an extremely
7067 # bizarre bug on SunOS 4.1.3.
7068 if $ac_need_defaults; then
7069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7073 # Have a temporary directory for convenience. Make it in the build tree
7074 # simply because there is no reason to put it here, and in addition,
7075 # creating and moving files from /tmp can sometimes cause problems.
7076 # Create a temporary directory, and hook for its removal unless debugging.
7077 $debug ||
7079 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7080 trap '{ (exit 1); exit 1; }' 1 2 13 15
7083 # Create a (secure) tmp directory for tmp files.
7086 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7087 test -n "$tmp" && test -d "$tmp"
7088 } ||
7090 tmp=./confstat$$-$RANDOM
7091 (umask 077 && mkdir $tmp)
7092 } ||
7094 echo "$me: cannot create a temporary directory in ." >&2
7095 { (exit 1); exit 1; }
7098 _ACEOF
7100 cat >>$CONFIG_STATUS <<_ACEOF
7103 # CONFIG_FILES section.
7106 # No need to generate the scripts if there are no CONFIG_FILES.
7107 # This happens for instance when ./config.status config.h
7108 if test -n "\$CONFIG_FILES"; then
7109 # Protect against being on the right side of a sed subst in config.status.
7110 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7111 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7112 s,@SHELL@,$SHELL,;t t
7113 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7114 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7115 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7116 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7117 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7118 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7119 s,@exec_prefix@,$exec_prefix,;t t
7120 s,@prefix@,$prefix,;t t
7121 s,@program_transform_name@,$program_transform_name,;t t
7122 s,@bindir@,$bindir,;t t
7123 s,@sbindir@,$sbindir,;t t
7124 s,@libexecdir@,$libexecdir,;t t
7125 s,@datadir@,$datadir,;t t
7126 s,@sysconfdir@,$sysconfdir,;t t
7127 s,@sharedstatedir@,$sharedstatedir,;t t
7128 s,@localstatedir@,$localstatedir,;t t
7129 s,@libdir@,$libdir,;t t
7130 s,@includedir@,$includedir,;t t
7131 s,@oldincludedir@,$oldincludedir,;t t
7132 s,@infodir@,$infodir,;t t
7133 s,@mandir@,$mandir,;t t
7134 s,@build_alias@,$build_alias,;t t
7135 s,@host_alias@,$host_alias,;t t
7136 s,@target_alias@,$target_alias,;t t
7137 s,@DEFS@,$DEFS,;t t
7138 s,@ECHO_C@,$ECHO_C,;t t
7139 s,@ECHO_N@,$ECHO_N,;t t
7140 s,@ECHO_T@,$ECHO_T,;t t
7141 s,@LIBS@,$LIBS,;t t
7142 s,@subdirs@,$subdirs,;t t
7143 s,@CXX@,$CXX,;t t
7144 s,@CXXFLAGS@,$CXXFLAGS,;t t
7145 s,@LDFLAGS@,$LDFLAGS,;t t
7146 s,@CPPFLAGS@,$CPPFLAGS,;t t
7147 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7148 s,@EXEEXT@,$EXEEXT,;t t
7149 s,@OBJEXT@,$OBJEXT,;t t
7150 s,@PWLIBDIR@,$PWLIBDIR,;t t
7151 s,@PWINSTDIR@,$PWINSTDIR,;t t
7152 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
7153 s,@LIBDIR@,$LIBDIR,;t t
7154 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
7155 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
7156 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
7157 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
7158 s,@build@,$build,;t t
7159 s,@build_cpu@,$build_cpu,;t t
7160 s,@build_vendor@,$build_vendor,;t t
7161 s,@build_os@,$build_os,;t t
7162 s,@host@,$host,;t t
7163 s,@host_cpu@,$host_cpu,;t t
7164 s,@host_vendor@,$host_vendor,;t t
7165 s,@host_os@,$host_os,;t t
7166 s,@target@,$target,;t t
7167 s,@target_cpu@,$target_cpu,;t t
7168 s,@target_vendor@,$target_vendor,;t t
7169 s,@target_os@,$target_os,;t t
7170 s,@MACHTYPE@,$MACHTYPE,;t t
7171 s,@OSTYPE@,$OSTYPE,;t t
7172 s,@OSRELEASE@,$OSRELEASE,;t t
7173 s,@TARGETDIR@,$TARGETDIR,;t t
7174 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
7175 s,@CXXCPP@,$CXXCPP,;t t
7176 s,@EGREP@,$EGREP,;t t
7177 s,@HAS_REGEX@,$HAS_REGEX,;t t
7178 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
7179 s,@HAS_SASL2@,$HAS_SASL2,;t t
7180 s,@HAS_SASL@,$HAS_SASL,;t t
7181 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
7182 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
7183 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
7184 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
7185 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
7186 s,@HAS_IPV6@,$HAS_IPV6,;t t
7187 s,@HAS_SDL@,$HAS_SDL,;t t
7188 s,@HAS_VIDEO_CAPTURE@,$HAS_VIDEO_CAPTURE,;t t
7189 s,@HAS_ALSA@,$HAS_ALSA,;t t
7190 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7191 s,@STDCXXFLAGS@,$STDCXXFLAGS,;t t
7192 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
7193 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7194 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7195 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7196 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7197 s,@LIBOBJS@,$LIBOBJS,;t t
7198 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7199 CEOF
7201 _ACEOF
7203 cat >>$CONFIG_STATUS <<\_ACEOF
7204 # Split the substitutions into bite-sized pieces for seds with
7205 # small command number limits, like on Digital OSF/1 and HP-UX.
7206 ac_max_sed_lines=48
7207 ac_sed_frag=1 # Number of current file.
7208 ac_beg=1 # First line for current file.
7209 ac_end=$ac_max_sed_lines # Line after last line for current file.
7210 ac_more_lines=:
7211 ac_sed_cmds=
7212 while $ac_more_lines; do
7213 if test $ac_beg -gt 1; then
7214 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7215 else
7216 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7218 if test ! -s $tmp/subs.frag; then
7219 ac_more_lines=false
7220 else
7221 # The purpose of the label and of the branching condition is to
7222 # speed up the sed processing (if there are no `@' at all, there
7223 # is no need to browse any of the substitutions).
7224 # These are the two extra sed commands mentioned above.
7225 (echo ':t
7226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7227 if test -z "$ac_sed_cmds"; then
7228 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7229 else
7230 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7232 ac_sed_frag=`expr $ac_sed_frag + 1`
7233 ac_beg=$ac_end
7234 ac_end=`expr $ac_end + $ac_max_sed_lines`
7236 done
7237 if test -z "$ac_sed_cmds"; then
7238 ac_sed_cmds=cat
7240 fi # test -n "$CONFIG_FILES"
7242 _ACEOF
7243 cat >>$CONFIG_STATUS <<\_ACEOF
7244 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7246 case $ac_file in
7247 - | *:- | *:-:* ) # input from stdin
7248 cat >$tmp/stdin
7249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7253 * ) ac_file_in=$ac_file.in ;;
7254 esac
7256 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7257 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7259 X"$ac_file" : 'X\(//\)[^/]' \| \
7260 X"$ac_file" : 'X\(//\)$' \| \
7261 X"$ac_file" : 'X\(/\)' \| \
7262 . : '\(.\)' 2>/dev/null ||
7263 echo X"$ac_file" |
7264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7266 /^X\(\/\/\)$/{ s//\1/; q; }
7267 /^X\(\/\).*/{ s//\1/; q; }
7268 s/.*/./; q'`
7269 { if $as_mkdir_p; then
7270 mkdir -p "$ac_dir"
7271 else
7272 as_dir="$ac_dir"
7273 as_dirs=
7274 while test ! -d "$as_dir"; do
7275 as_dirs="$as_dir $as_dirs"
7276 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7278 X"$as_dir" : 'X\(//\)[^/]' \| \
7279 X"$as_dir" : 'X\(//\)$' \| \
7280 X"$as_dir" : 'X\(/\)' \| \
7281 . : '\(.\)' 2>/dev/null ||
7282 echo X"$as_dir" |
7283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7285 /^X\(\/\/\)$/{ s//\1/; q; }
7286 /^X\(\/\).*/{ s//\1/; q; }
7287 s/.*/./; q'`
7288 done
7289 test ! -n "$as_dirs" || mkdir $as_dirs
7290 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7291 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7292 { (exit 1); exit 1; }; }; }
7294 ac_builddir=.
7296 if test "$ac_dir" != .; then
7297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7298 # A "../" for each directory in $ac_dir_suffix.
7299 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7300 else
7301 ac_dir_suffix= ac_top_builddir=
7304 case $srcdir in
7305 .) # No --srcdir option. We are building in place.
7306 ac_srcdir=.
7307 if test -z "$ac_top_builddir"; then
7308 ac_top_srcdir=.
7309 else
7310 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7311 fi ;;
7312 [\\/]* | ?:[\\/]* ) # Absolute path.
7313 ac_srcdir=$srcdir$ac_dir_suffix;
7314 ac_top_srcdir=$srcdir ;;
7315 *) # Relative path.
7316 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7317 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7318 esac
7319 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7320 # absolute.
7321 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7322 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7323 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7324 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7327 case $INSTALL in
7328 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7329 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7330 esac
7332 if test x"$ac_file" != x-; then
7333 { echo "$as_me:$LINENO: creating $ac_file" >&5
7334 echo "$as_me: creating $ac_file" >&6;}
7335 rm -f "$ac_file"
7337 # Let's still pretend it is `configure' which instantiates (i.e., don't
7338 # use $as_me), people would be surprised to read:
7339 # /* config.h. Generated by config.status. */
7340 if test x"$ac_file" = x-; then
7341 configure_input=
7342 else
7343 configure_input="$ac_file. "
7345 configure_input=$configure_input"Generated from `echo $ac_file_in |
7346 sed 's,.*/,,'` by configure."
7348 # First look for the input files in the build tree, otherwise in the
7349 # src tree.
7350 ac_file_inputs=`IFS=:
7351 for f in $ac_file_in; do
7352 case $f in
7353 -) echo $tmp/stdin ;;
7354 [\\/$]*)
7355 # Absolute (can't be DOS-style, as IFS=:)
7356 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7357 echo "$as_me: error: cannot find input file: $f" >&2;}
7358 { (exit 1); exit 1; }; }
7359 echo $f;;
7360 *) # Relative
7361 if test -f "$f"; then
7362 # Build tree
7363 echo $f
7364 elif test -f "$srcdir/$f"; then
7365 # Source tree
7366 echo $srcdir/$f
7367 else
7368 # /dev/null tree
7369 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7370 echo "$as_me: error: cannot find input file: $f" >&2;}
7371 { (exit 1); exit 1; }; }
7372 fi;;
7373 esac
7374 done` || { (exit 1); exit 1; }
7375 _ACEOF
7376 cat >>$CONFIG_STATUS <<_ACEOF
7377 sed "$ac_vpsub
7378 $extrasub
7379 _ACEOF
7380 cat >>$CONFIG_STATUS <<\_ACEOF
7382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7383 s,@configure_input@,$configure_input,;t t
7384 s,@srcdir@,$ac_srcdir,;t t
7385 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7386 s,@top_srcdir@,$ac_top_srcdir,;t t
7387 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7388 s,@builddir@,$ac_builddir,;t t
7389 s,@abs_builddir@,$ac_abs_builddir,;t t
7390 s,@top_builddir@,$ac_top_builddir,;t t
7391 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7392 s,@INSTALL@,$ac_INSTALL,;t t
7393 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7394 rm -f $tmp/stdin
7395 if test x"$ac_file" != x-; then
7396 mv $tmp/out $ac_file
7397 else
7398 cat $tmp/out
7399 rm -f $tmp/out
7402 # Run the commands associated with the file.
7403 case $ac_file in
7404 make/ptlib-config ) chmod a+x make/ptlib-config ;;
7405 esac
7406 done
7407 _ACEOF
7408 cat >>$CONFIG_STATUS <<\_ACEOF
7411 # CONFIG_HEADER section.
7414 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7415 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7417 # ac_d sets the value in "#define NAME VALUE" lines.
7418 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7419 ac_dB='[ ].*$,\1#\2'
7420 ac_dC=' '
7421 ac_dD=',;t'
7422 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7423 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7424 ac_uB='$,\1#\2define\3'
7425 ac_uC=' '
7426 ac_uD=',;t'
7428 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7429 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7430 case $ac_file in
7431 - | *:- | *:-:* ) # input from stdin
7432 cat >$tmp/stdin
7433 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7434 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7435 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7437 * ) ac_file_in=$ac_file.in ;;
7438 esac
7440 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7441 echo "$as_me: creating $ac_file" >&6;}
7443 # First look for the input files in the build tree, otherwise in the
7444 # src tree.
7445 ac_file_inputs=`IFS=:
7446 for f in $ac_file_in; do
7447 case $f in
7448 -) echo $tmp/stdin ;;
7449 [\\/$]*)
7450 # Absolute (can't be DOS-style, as IFS=:)
7451 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7452 echo "$as_me: error: cannot find input file: $f" >&2;}
7453 { (exit 1); exit 1; }; }
7454 echo $f;;
7455 *) # Relative
7456 if test -f "$f"; then
7457 # Build tree
7458 echo $f
7459 elif test -f "$srcdir/$f"; then
7460 # Source tree
7461 echo $srcdir/$f
7462 else
7463 # /dev/null tree
7464 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7465 echo "$as_me: error: cannot find input file: $f" >&2;}
7466 { (exit 1); exit 1; }; }
7467 fi;;
7468 esac
7469 done` || { (exit 1); exit 1; }
7470 # Remove the trailing spaces.
7471 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7473 _ACEOF
7475 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7476 # `conftest.undefs', that substitutes the proper values into
7477 # config.h.in to produce config.h. The first handles `#define'
7478 # templates, and the second `#undef' templates.
7479 # And first: Protect against being on the right side of a sed subst in
7480 # config.status. Protect against being in an unquoted here document
7481 # in config.status.
7482 rm -f conftest.defines conftest.undefs
7483 # Using a here document instead of a string reduces the quoting nightmare.
7484 # Putting comments in sed scripts is not portable.
7486 # `end' is used to avoid that the second main sed command (meant for
7487 # 0-ary CPP macros) applies to n-ary macro definitions.
7488 # See the Autoconf documentation for `clear'.
7489 cat >confdef2sed.sed <<\_ACEOF
7490 s/[\\&,]/\\&/g
7491 s,[\\$`],\\&,g
7492 t clear
7493 : clear
7494 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7495 t end
7496 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7497 : end
7498 _ACEOF
7499 # If some macros were called several times there might be several times
7500 # the same #defines, which is useless. Nevertheless, we may not want to
7501 # sort them, since we want the *last* AC-DEFINE to be honored.
7502 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7503 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7504 rm -f confdef2sed.sed
7506 # This sed command replaces #undef with comments. This is necessary, for
7507 # example, in the case of _POSIX_SOURCE, which is predefined and required
7508 # on some systems where configure will not decide to define it.
7509 cat >>conftest.undefs <<\_ACEOF
7510 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7511 _ACEOF
7513 # Break up conftest.defines because some shells have a limit on the size
7514 # of here documents, and old seds have small limits too (100 cmds).
7515 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7516 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7517 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7518 echo ' :' >>$CONFIG_STATUS
7519 rm -f conftest.tail
7520 while grep . conftest.defines >/dev/null
7522 # Write a limited-size here document to $tmp/defines.sed.
7523 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7524 # Speed up: don't consider the non `#define' lines.
7525 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7526 # Work around the forget-to-reset-the-flag bug.
7527 echo 't clr' >>$CONFIG_STATUS
7528 echo ': clr' >>$CONFIG_STATUS
7529 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7530 echo 'CEOF
7531 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7532 rm -f $tmp/in
7533 mv $tmp/out $tmp/in
7534 ' >>$CONFIG_STATUS
7535 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7536 rm -f conftest.defines
7537 mv conftest.tail conftest.defines
7538 done
7539 rm -f conftest.defines
7540 echo ' fi # grep' >>$CONFIG_STATUS
7541 echo >>$CONFIG_STATUS
7543 # Break up conftest.undefs because some shells have a limit on the size
7544 # of here documents, and old seds have small limits too (100 cmds).
7545 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7546 rm -f conftest.tail
7547 while grep . conftest.undefs >/dev/null
7549 # Write a limited-size here document to $tmp/undefs.sed.
7550 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7551 # Speed up: don't consider the non `#undef'
7552 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7553 # Work around the forget-to-reset-the-flag bug.
7554 echo 't clr' >>$CONFIG_STATUS
7555 echo ': clr' >>$CONFIG_STATUS
7556 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7557 echo 'CEOF
7558 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7559 rm -f $tmp/in
7560 mv $tmp/out $tmp/in
7561 ' >>$CONFIG_STATUS
7562 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7563 rm -f conftest.undefs
7564 mv conftest.tail conftest.undefs
7565 done
7566 rm -f conftest.undefs
7568 cat >>$CONFIG_STATUS <<\_ACEOF
7569 # Let's still pretend it is `configure' which instantiates (i.e., don't
7570 # use $as_me), people would be surprised to read:
7571 # /* config.h. Generated by config.status. */
7572 if test x"$ac_file" = x-; then
7573 echo "/* Generated by configure. */" >$tmp/config.h
7574 else
7575 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7577 cat $tmp/in >>$tmp/config.h
7578 rm -f $tmp/in
7579 if test x"$ac_file" != x-; then
7580 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7581 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7582 echo "$as_me: $ac_file is unchanged" >&6;}
7583 else
7584 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7586 X"$ac_file" : 'X\(//\)[^/]' \| \
7587 X"$ac_file" : 'X\(//\)$' \| \
7588 X"$ac_file" : 'X\(/\)' \| \
7589 . : '\(.\)' 2>/dev/null ||
7590 echo X"$ac_file" |
7591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7593 /^X\(\/\/\)$/{ s//\1/; q; }
7594 /^X\(\/\).*/{ s//\1/; q; }
7595 s/.*/./; q'`
7596 { if $as_mkdir_p; then
7597 mkdir -p "$ac_dir"
7598 else
7599 as_dir="$ac_dir"
7600 as_dirs=
7601 while test ! -d "$as_dir"; do
7602 as_dirs="$as_dir $as_dirs"
7603 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7605 X"$as_dir" : 'X\(//\)[^/]' \| \
7606 X"$as_dir" : 'X\(//\)$' \| \
7607 X"$as_dir" : 'X\(/\)' \| \
7608 . : '\(.\)' 2>/dev/null ||
7609 echo X"$as_dir" |
7610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7612 /^X\(\/\/\)$/{ s//\1/; q; }
7613 /^X\(\/\).*/{ s//\1/; q; }
7614 s/.*/./; q'`
7615 done
7616 test ! -n "$as_dirs" || mkdir $as_dirs
7617 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7619 { (exit 1); exit 1; }; }; }
7621 rm -f $ac_file
7622 mv $tmp/config.h $ac_file
7624 else
7625 cat $tmp/config.h
7626 rm -f $tmp/config.h
7628 done
7629 _ACEOF
7631 cat >>$CONFIG_STATUS <<\_ACEOF
7633 { (exit 0); exit 0; }
7634 _ACEOF
7635 chmod +x $CONFIG_STATUS
7636 ac_clean_files=$ac_clean_files_save
7639 # configure is writing to config.log, and then calls config.status.
7640 # config.status does its own redirection, appending to config.log.
7641 # Unfortunately, on DOS this fails, as config.log is still kept open
7642 # by configure, so config.status won't be able to write to it; its
7643 # output is simply discarded. So we exec the FD to /dev/null,
7644 # effectively closing config.log, so it can be properly (re)opened and
7645 # appended to by config.status. When coming back to configure, we
7646 # need to make the FD available again.
7647 if test "$no_create" != yes; then
7648 ac_cs_success=:
7649 ac_config_status_args=
7650 test "$silent" = yes &&
7651 ac_config_status_args="$ac_config_status_args --quiet"
7652 exec 5>/dev/null
7653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7654 exec 5>>config.log
7655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7656 # would make configure fail if this is the last instruction.
7657 $ac_cs_success || { (exit 1); exit 1; }
7661 # CONFIG_SUBDIRS section.
7663 if test "$no_recursion" != yes; then
7665 # Remove --cache-file and --srcdir arguments so they do not pile up.
7666 ac_sub_configure_args=
7667 ac_prev=
7668 for ac_arg in $ac_configure_args; do
7669 if test -n "$ac_prev"; then
7670 ac_prev=
7671 continue
7673 case $ac_arg in
7674 -cache-file | --cache-file | --cache-fil | --cache-fi \
7675 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7676 ac_prev=cache_file ;;
7677 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7678 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7679 | --c=*)
7681 --config-cache | -C)
7683 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7684 ac_prev=srcdir ;;
7685 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7687 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7688 ac_prev=prefix ;;
7689 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7691 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7692 esac
7693 done
7695 # Always prepend --prefix to ensure using the same prefix
7696 # in subdir configurations.
7697 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7699 ac_popdir=`pwd`
7700 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7702 # Do not complain, so a configure script can configure whichever
7703 # parts of a large source tree are present.
7704 test -d $srcdir/$ac_dir || continue
7706 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7707 echo "$as_me: configuring in $ac_dir" >&6;}
7708 { if $as_mkdir_p; then
7709 mkdir -p "$ac_dir"
7710 else
7711 as_dir="$ac_dir"
7712 as_dirs=
7713 while test ! -d "$as_dir"; do
7714 as_dirs="$as_dir $as_dirs"
7715 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7717 X"$as_dir" : 'X\(//\)[^/]' \| \
7718 X"$as_dir" : 'X\(//\)$' \| \
7719 X"$as_dir" : 'X\(/\)' \| \
7720 . : '\(.\)' 2>/dev/null ||
7721 echo X"$as_dir" |
7722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7724 /^X\(\/\/\)$/{ s//\1/; q; }
7725 /^X\(\/\).*/{ s//\1/; q; }
7726 s/.*/./; q'`
7727 done
7728 test ! -n "$as_dirs" || mkdir $as_dirs
7729 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7730 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7731 { (exit 1); exit 1; }; }; }
7733 ac_builddir=.
7735 if test "$ac_dir" != .; then
7736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7737 # A "../" for each directory in $ac_dir_suffix.
7738 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7739 else
7740 ac_dir_suffix= ac_top_builddir=
7743 case $srcdir in
7744 .) # No --srcdir option. We are building in place.
7745 ac_srcdir=.
7746 if test -z "$ac_top_builddir"; then
7747 ac_top_srcdir=.
7748 else
7749 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7750 fi ;;
7751 [\\/]* | ?:[\\/]* ) # Absolute path.
7752 ac_srcdir=$srcdir$ac_dir_suffix;
7753 ac_top_srcdir=$srcdir ;;
7754 *) # Relative path.
7755 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7756 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7757 esac
7758 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7759 # absolute.
7760 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7761 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7762 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7763 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7766 cd $ac_dir
7768 # Check for guested configure; otherwise get Cygnus style configure.
7769 if test -f $ac_srcdir/configure.gnu; then
7770 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7771 elif test -f $ac_srcdir/configure; then
7772 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7773 elif test -f $ac_srcdir/configure.in; then
7774 ac_sub_configure=$ac_configure
7775 else
7776 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7777 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7778 ac_sub_configure=
7781 # The recursion is here.
7782 if test -n "$ac_sub_configure"; then
7783 # Make the cache file name correct relative to the subdirectory.
7784 case $cache_file in
7785 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7786 *) # Relative path.
7787 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7788 esac
7790 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7791 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7792 # The eval makes quoting arguments work.
7793 eval $ac_sub_configure $ac_sub_configure_args \
7794 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7795 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7796 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7797 { (exit 1); exit 1; }; }
7800 cd $ac_popdir
7801 done