Change nofier list to be able to used in containers, thanks Federico Pinna, Reitek...
[pwlib.git] / configure
blob66e02367cd19de9417f22ea96231262154f7e111
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_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 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-openldap disable OpenLDAP support in PWLIB
852 --disable-openssl disable OpenSSL support in PWLIB
853 --disable-expat disable XML support in PWLIB
854 --disable-ipv6 disable IPV6 support in PWLIB
855 --disable-qos disable QOS support in PWLIB
856 --disable-sdl disable SDL support in PWLIB
857 --disable-video disable non-plugin video device support in PWLIB
858 --enable-alsa disable non-plugin ALSA audio support
860 Some influential environment variables:
861 CXX C++ compiler command
862 CXXFLAGS C++ compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CXXCPP C++ preprocessor
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
872 _ACEOF
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 # absolute.
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912 cd $ac_dir
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
915 echo
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
918 echo
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
922 echo
923 $ac_configure --help
924 else
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927 cd $ac_popdir
928 done
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
933 cat <<\_ACEOF
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
939 _ACEOF
940 exit 0
942 exec 5>config.log
943 cat >&5 <<_ACEOF
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
950 $ $0 $@
952 _ACEOF
954 cat <<_ASUNAME
955 ## --------- ##
956 ## Platform. ##
957 ## --------- ##
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
976 _ASUNAME
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 for as_dir in $PATH
981 IFS=$as_save_IFS
982 test -z "$as_dir" && as_dir=.
983 echo "PATH: $as_dir"
984 done
986 } >&5
988 cat >&5 <<_ACEOF
991 ## ----------- ##
992 ## Core tests. ##
993 ## ----------- ##
995 _ACEOF
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1003 ac_configure_args=
1004 ac_configure_args0=
1005 ac_configure_args1=
1006 ac_sep=
1007 ac_must_keep_next=false
1008 for ac_pass in 1 2
1010 for ac_arg
1012 case $ac_arg in
1013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 continue ;;
1017 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019 esac
1020 case $ac_pass in
1021 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1023 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true; then
1025 ac_must_keep_next=false # Got value, back to normal.
1026 else
1027 case $ac_arg in
1028 *=* | --config-cache | -C | -disable-* | --disable-* \
1029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1031 | -with-* | --with-* | -without-* | --without-* | --x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034 esac
1036 -* ) ac_must_keep_next=true ;;
1037 esac
1039 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1041 ac_sep=" "
1043 esac
1044 done
1045 done
1046 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1047 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1057 echo
1059 cat <<\_ASBOX
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1063 _ASBOX
1064 echo
1065 # The following way of writing the cache mishandles newlines in values,
1067 (set) 2>&1 |
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 *ac_space=\ *)
1070 sed -n \
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075 sed -n \
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1078 esac;
1080 echo
1082 cat <<\_ASBOX
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1086 _ASBOX
1087 echo
1088 for ac_var in $ac_subst_vars
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1092 done | sort
1093 echo
1095 if test -n "$ac_subst_files"; then
1096 cat <<\_ASBOX
1097 ## ------------- ##
1098 ## Output files. ##
1099 ## ------------- ##
1100 _ASBOX
1101 echo
1102 for ac_var in $ac_subst_files
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1106 done | sort
1107 echo
1110 if test -s confdefs.h; then
1111 cat <<\_ASBOX
1112 ## ----------- ##
1113 ## confdefs.h. ##
1114 ## ----------- ##
1115 _ASBOX
1116 echo
1117 sed "/^$/d" confdefs.h | sort
1118 echo
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1123 } >&5
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126 exit $exit_status
1128 for ac_signal in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 done
1131 ac_signal=0
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 echo >confdefs.h
1138 # Predefined preprocessor variables.
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 _ACEOF
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 _ACEOF
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 _ACEOF
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 _ACEOF
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 _ACEOF
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE; then
1169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 else
1171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174 for ac_site_file in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1179 . "$ac_site_file"
1181 done
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1189 case $cache_file in
1190 [\\/]* | ?:[\\/]* ) . $cache_file;;
1191 *) . ./$cache_file;;
1192 esac
1194 else
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1197 >$cache_file
1200 # Check that the precious variables saved in the cache have kept the same
1201 # value.
1202 ac_cache_corrupted=false
1203 for ac_var in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1206 eval ac_new_set=\$ac_env_${ac_var}_set
1207 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1210 set,)
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted=: ;;
1214 ,set)
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted=: ;;
1218 ,);;
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted=:
1228 fi;;
1229 esac
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1232 case $ac_new_val in
1233 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg=$ac_var=$ac_new_val ;;
1236 esac
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 esac
1242 done
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1251 ac_ext=c
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276 ac_aux_dir=
1277 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278 if test -f $ac_dir/install-sh; then
1279 ac_aux_dir=$ac_dir
1280 ac_install_sh="$ac_aux_dir/install-sh -c"
1281 break
1282 elif test -f $ac_dir/install.sh; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/install.sh -c"
1285 break
1286 elif test -f $ac_dir/shtool; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 break
1291 done
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1303 subdirs="$subdirs plugins"
1306 ac_ext=cc
1307 ac_cpp='$CXXCPP $CPPFLAGS'
1308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1311 if test -n "$ac_tool_prefix"; then
1312 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1316 echo "$as_me:$LINENO: checking for $ac_word" >&5
1317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318 if test "${ac_cv_prog_CXX+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 else
1321 if test -n "$CXX"; then
1322 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1323 else
1324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325 for as_dir in $PATH
1327 IFS=$as_save_IFS
1328 test -z "$as_dir" && as_dir=.
1329 for ac_exec_ext in '' $ac_executable_extensions; do
1330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1331 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1333 break 2
1335 done
1336 done
1340 CXX=$ac_cv_prog_CXX
1341 if test -n "$CXX"; then
1342 echo "$as_me:$LINENO: result: $CXX" >&5
1343 echo "${ECHO_T}$CXX" >&6
1344 else
1345 echo "$as_me:$LINENO: result: no" >&5
1346 echo "${ECHO_T}no" >&6
1349 test -n "$CXX" && break
1350 done
1352 if test -z "$CXX"; then
1353 ac_ct_CXX=$CXX
1354 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy $ac_prog; ac_word=$2
1358 echo "$as_me:$LINENO: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 if test -n "$ac_ct_CXX"; then
1364 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1365 else
1366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 for as_dir in $PATH
1369 IFS=$as_save_IFS
1370 test -z "$as_dir" && as_dir=.
1371 for ac_exec_ext in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373 ac_cv_prog_ac_ct_CXX="$ac_prog"
1374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1375 break 2
1377 done
1378 done
1382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1383 if test -n "$ac_ct_CXX"; then
1384 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1385 echo "${ECHO_T}$ac_ct_CXX" >&6
1386 else
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1391 test -n "$ac_ct_CXX" && break
1392 done
1393 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1395 CXX=$ac_ct_CXX
1399 # Provide some information about the compiler.
1400 echo "$as_me:$LINENO:" \
1401 "checking for C++ compiler version" >&5
1402 ac_compiler=`set X $ac_compile; echo $2`
1403 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1404 (eval $ac_compiler --version </dev/null >&5) 2>&5
1405 ac_status=$?
1406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1407 (exit $ac_status); }
1408 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1409 (eval $ac_compiler -v </dev/null >&5) 2>&5
1410 ac_status=$?
1411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1412 (exit $ac_status); }
1413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1414 (eval $ac_compiler -V </dev/null >&5) 2>&5
1415 ac_status=$?
1416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1417 (exit $ac_status); }
1419 cat >conftest.$ac_ext <<_ACEOF
1420 #line $LINENO "configure"
1421 /* confdefs.h. */
1422 _ACEOF
1423 cat confdefs.h >>conftest.$ac_ext
1424 cat >>conftest.$ac_ext <<_ACEOF
1425 /* end confdefs.h. */
1428 main ()
1432 return 0;
1434 _ACEOF
1435 ac_clean_files_save=$ac_clean_files
1436 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1437 # Try to create an executable without -o first, disregard a.out.
1438 # It will help us diagnose broken compilers, and finding out an intuition
1439 # of exeext.
1440 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1441 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1442 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1443 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1444 (eval $ac_link_default) 2>&5
1445 ac_status=$?
1446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1447 (exit $ac_status); }; then
1448 # Find the output, starting from the most likely. This scheme is
1449 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1450 # resort.
1452 # Be careful to initialize this variable, since it used to be cached.
1453 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1454 ac_cv_exeext=
1455 # b.out is created by i960 compilers.
1456 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1458 test -f "$ac_file" || continue
1459 case $ac_file in
1460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1462 conftest.$ac_ext )
1463 # This is the source file.
1465 [ab].out )
1466 # We found the default executable, but exeext='' is most
1467 # certainly right.
1468 break;;
1469 *.* )
1470 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1471 # FIXME: I believe we export ac_cv_exeext for Libtool,
1472 # but it would be cool to find out if it's true. Does anybody
1473 # maintain Libtool? --akim.
1474 export ac_cv_exeext
1475 break;;
1477 break;;
1478 esac
1479 done
1480 else
1481 echo "$as_me: failed program was:" >&5
1482 sed 's/^/| /' conftest.$ac_ext >&5
1484 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1485 See \`config.log' for more details." >&5
1486 echo "$as_me: error: C++ compiler cannot create executables
1487 See \`config.log' for more details." >&2;}
1488 { (exit 77); exit 77; }; }
1491 ac_exeext=$ac_cv_exeext
1492 echo "$as_me:$LINENO: result: $ac_file" >&5
1493 echo "${ECHO_T}$ac_file" >&6
1495 # Check the compiler produces executables we can run. If not, either
1496 # the compiler is broken, or we cross compile.
1497 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1498 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1499 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1500 # If not cross compiling, check that we can run a simple program.
1501 if test "$cross_compiling" != yes; then
1502 if { ac_try='./$ac_file'
1503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1504 (eval $ac_try) 2>&5
1505 ac_status=$?
1506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1507 (exit $ac_status); }; }; then
1508 cross_compiling=no
1509 else
1510 if test "$cross_compiling" = maybe; then
1511 cross_compiling=yes
1512 else
1513 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1514 If you meant to cross compile, use \`--host'.
1515 See \`config.log' for more details." >&5
1516 echo "$as_me: error: cannot run C++ compiled programs.
1517 If you meant to cross compile, use \`--host'.
1518 See \`config.log' for more details." >&2;}
1519 { (exit 1); exit 1; }; }
1523 echo "$as_me:$LINENO: result: yes" >&5
1524 echo "${ECHO_T}yes" >&6
1526 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1527 ac_clean_files=$ac_clean_files_save
1528 # Check the compiler produces executables we can run. If not, either
1529 # the compiler is broken, or we cross compile.
1530 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1531 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1532 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1533 echo "${ECHO_T}$cross_compiling" >&6
1535 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1536 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1538 (eval $ac_link) 2>&5
1539 ac_status=$?
1540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1541 (exit $ac_status); }; then
1542 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1543 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1544 # work properly (i.e., refer to `conftest.exe'), while it won't with
1545 # `rm'.
1546 for ac_file in conftest.exe conftest conftest.*; do
1547 test -f "$ac_file" || continue
1548 case $ac_file in
1549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1550 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1551 export ac_cv_exeext
1552 break;;
1553 * ) break;;
1554 esac
1555 done
1556 else
1557 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1558 See \`config.log' for more details." >&5
1559 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1560 See \`config.log' for more details." >&2;}
1561 { (exit 1); exit 1; }; }
1564 rm -f conftest$ac_cv_exeext
1565 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1566 echo "${ECHO_T}$ac_cv_exeext" >&6
1568 rm -f conftest.$ac_ext
1569 EXEEXT=$ac_cv_exeext
1570 ac_exeext=$EXEEXT
1571 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1572 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1573 if test "${ac_cv_objext+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 cat >conftest.$ac_ext <<_ACEOF
1577 #line $LINENO "configure"
1578 /* confdefs.h. */
1579 _ACEOF
1580 cat confdefs.h >>conftest.$ac_ext
1581 cat >>conftest.$ac_ext <<_ACEOF
1582 /* end confdefs.h. */
1585 main ()
1589 return 0;
1591 _ACEOF
1592 rm -f conftest.o conftest.obj
1593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1594 (eval $ac_compile) 2>&5
1595 ac_status=$?
1596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1597 (exit $ac_status); }; then
1598 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1599 case $ac_file in
1600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1602 break;;
1603 esac
1604 done
1605 else
1606 echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1609 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1610 See \`config.log' for more details." >&5
1611 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1612 See \`config.log' for more details." >&2;}
1613 { (exit 1); exit 1; }; }
1616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1618 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1619 echo "${ECHO_T}$ac_cv_objext" >&6
1620 OBJEXT=$ac_cv_objext
1621 ac_objext=$OBJEXT
1622 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1623 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1624 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 cat >conftest.$ac_ext <<_ACEOF
1628 #line $LINENO "configure"
1629 /* confdefs.h. */
1630 _ACEOF
1631 cat confdefs.h >>conftest.$ac_ext
1632 cat >>conftest.$ac_ext <<_ACEOF
1633 /* end confdefs.h. */
1636 main ()
1638 #ifndef __GNUC__
1639 choke me
1640 #endif
1643 return 0;
1645 _ACEOF
1646 rm -f conftest.$ac_objext
1647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1648 (eval $ac_compile) 2>&5
1649 ac_status=$?
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); } &&
1652 { ac_try='test -s conftest.$ac_objext'
1653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1654 (eval $ac_try) 2>&5
1655 ac_status=$?
1656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1657 (exit $ac_status); }; }; then
1658 ac_compiler_gnu=yes
1659 else
1660 echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_compiler_gnu=no
1665 rm -f conftest.$ac_objext conftest.$ac_ext
1666 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1669 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1670 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1671 GXX=`test $ac_compiler_gnu = yes && echo yes`
1672 ac_test_CXXFLAGS=${CXXFLAGS+set}
1673 ac_save_CXXFLAGS=$CXXFLAGS
1674 CXXFLAGS="-g"
1675 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1676 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1677 if test "${ac_cv_prog_cxx_g+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 cat >conftest.$ac_ext <<_ACEOF
1681 #line $LINENO "configure"
1682 /* confdefs.h. */
1683 _ACEOF
1684 cat confdefs.h >>conftest.$ac_ext
1685 cat >>conftest.$ac_ext <<_ACEOF
1686 /* end confdefs.h. */
1689 main ()
1693 return 0;
1695 _ACEOF
1696 rm -f conftest.$ac_objext
1697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1698 (eval $ac_compile) 2>&5
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); } &&
1702 { ac_try='test -s conftest.$ac_objext'
1703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1704 (eval $ac_try) 2>&5
1705 ac_status=$?
1706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707 (exit $ac_status); }; }; then
1708 ac_cv_prog_cxx_g=yes
1709 else
1710 echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_cv_prog_cxx_g=no
1715 rm -f conftest.$ac_objext conftest.$ac_ext
1717 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1718 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1719 if test "$ac_test_CXXFLAGS" = set; then
1720 CXXFLAGS=$ac_save_CXXFLAGS
1721 elif test $ac_cv_prog_cxx_g = yes; then
1722 if test "$GXX" = yes; then
1723 CXXFLAGS="-g -O2"
1724 else
1725 CXXFLAGS="-g"
1727 else
1728 if test "$GXX" = yes; then
1729 CXXFLAGS="-O2"
1730 else
1731 CXXFLAGS=
1734 for ac_declaration in \
1736 '#include <stdlib.h>' \
1737 'extern "C" void std::exit (int) throw (); using std::exit;' \
1738 'extern "C" void std::exit (int); using std::exit;' \
1739 'extern "C" void exit (int) throw ();' \
1740 'extern "C" void exit (int);' \
1741 'void exit (int);'
1743 cat >conftest.$ac_ext <<_ACEOF
1744 #line $LINENO "configure"
1745 /* confdefs.h. */
1746 _ACEOF
1747 cat confdefs.h >>conftest.$ac_ext
1748 cat >>conftest.$ac_ext <<_ACEOF
1749 /* end confdefs.h. */
1750 #include <stdlib.h>
1751 $ac_declaration
1753 main ()
1755 exit (42);
1757 return 0;
1759 _ACEOF
1760 rm -f conftest.$ac_objext
1761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1762 (eval $ac_compile) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); } &&
1766 { ac_try='test -s conftest.$ac_objext'
1767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1768 (eval $ac_try) 2>&5
1769 ac_status=$?
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; }; then
1773 else
1774 echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 continue
1779 rm -f conftest.$ac_objext conftest.$ac_ext
1780 cat >conftest.$ac_ext <<_ACEOF
1781 #line $LINENO "configure"
1782 /* confdefs.h. */
1783 _ACEOF
1784 cat confdefs.h >>conftest.$ac_ext
1785 cat >>conftest.$ac_ext <<_ACEOF
1786 /* end confdefs.h. */
1787 $ac_declaration
1789 main ()
1791 exit (42);
1793 return 0;
1795 _ACEOF
1796 rm -f conftest.$ac_objext
1797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1798 (eval $ac_compile) 2>&5
1799 ac_status=$?
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); } &&
1802 { ac_try='test -s conftest.$ac_objext'
1803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1804 (eval $ac_try) 2>&5
1805 ac_status=$?
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }; }; then
1808 break
1809 else
1810 echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1814 rm -f conftest.$ac_objext conftest.$ac_ext
1815 done
1816 rm -f conftest*
1817 if test -n "$ac_declaration"; then
1818 echo '#ifdef __cplusplus' >>confdefs.h
1819 echo $ac_declaration >>confdefs.h
1820 echo '#endif' >>confdefs.h
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830 ac_ext=cc
1831 ac_cpp='$CXXCPP $CPPFLAGS'
1832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1838 PWLIBDIR=`pwd`
1842 if test "x$prefix" = "xNONE"; then
1843 INSTALLPREFIX="/usr/local"
1844 else
1845 INSTALLPREFIX="${prefix}"
1851 LIBDIR="${libdir}"
1855 MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1856 MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1857 BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1858 PWLIB_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1863 MAJOR_VERSION=$MAJOR_VERSION
1865 MINOR_VERSION=$MINOR_VERSION
1867 BUILD_NUMBER=$BUILD_NUMBER
1870 { echo "$as_me:$LINENO: PTLib version is ${PWLIB_VERSION}" >&5
1871 echo "$as_me: PTLib version is ${PWLIB_VERSION}" >&6;};
1874 cat >>confdefs.h <<_ACEOF
1875 #define PWLIB_MAJOR $MAJOR_VERSION
1876 _ACEOF
1879 cat >>confdefs.h <<_ACEOF
1880 #define PWLIB_MINOR $MINOR_VERSION
1881 _ACEOF
1884 cat >>confdefs.h <<_ACEOF
1885 #define PWLIB_BUILD $BUILD_NUMBER
1886 _ACEOF
1889 cat >>confdefs.h <<_ACEOF
1890 #define PWLIB_VERSION "$PWLIB_VERSION"
1891 _ACEOF
1895 # Make sure we can run config.sub.
1896 $ac_config_sub sun4 >/dev/null 2>&1 ||
1897 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1898 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1899 { (exit 1); exit 1; }; }
1901 echo "$as_me:$LINENO: checking build system type" >&5
1902 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1903 if test "${ac_cv_build+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 ac_cv_build_alias=$build_alias
1907 test -z "$ac_cv_build_alias" &&
1908 ac_cv_build_alias=`$ac_config_guess`
1909 test -z "$ac_cv_build_alias" &&
1910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1911 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1912 { (exit 1); exit 1; }; }
1913 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1915 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1919 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1920 echo "${ECHO_T}$ac_cv_build" >&6
1921 build=$ac_cv_build
1922 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1923 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1924 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927 echo "$as_me:$LINENO: checking host system type" >&5
1928 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1929 if test "${ac_cv_host+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 ac_cv_host_alias=$host_alias
1933 test -z "$ac_cv_host_alias" &&
1934 ac_cv_host_alias=$ac_cv_build_alias
1935 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1936 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1937 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1941 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1942 echo "${ECHO_T}$ac_cv_host" >&6
1943 host=$ac_cv_host
1944 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1945 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1946 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1949 echo "$as_me:$LINENO: checking target system type" >&5
1950 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1951 if test "${ac_cv_target+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 ac_cv_target_alias=$target_alias
1955 test "x$ac_cv_target_alias" = "x" &&
1956 ac_cv_target_alias=$ac_cv_host_alias
1957 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1958 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1959 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1960 { (exit 1); exit 1; }; }
1963 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1964 echo "${ECHO_T}$ac_cv_target" >&6
1965 target=$ac_cv_target
1966 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1967 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1968 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1971 # The aliases save the names the user supplied, while $host etc.
1972 # will get canonicalized.
1973 test -n "$target_alias" &&
1974 test "$program_prefix$program_suffix$program_transform_name" = \
1975 NONENONEs,x,x, &&
1976 program_prefix=${target_alias}-
1978 TARGETDIR=unix
1979 OSTYPE=
1981 case "$target_os" in
1982 linux*) OSTYPE=linux ;
1983 OSRELEASE="\"`uname -r`\"";
1984 OS_TAG="P_LINUX" ;
1985 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1988 freebsd* ) OSTYPE=FreeBSD ;
1989 OS_TAG="P_FREEBSD" ;
1990 if test "x$OSRELEASE" = "x"; then
1991 OSRELEASE="`sysctl -n kern.osreldate`" ;
1993 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1996 openbsd* ) OSTYPE=OpenBSD ;
1997 OS_TAG="P_OPENBSD" ;
1998 OSRELEASE="`sysctl -n kern.osrevision`" ;
1999 ENDLDLIBS="-lossaudio" ;
2000 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2003 netbsd* ) OSTYPE=NetBSD ;
2004 OS_TAG="P_NETBSD" ;
2005 OSRELEASE="`/sbin/sysctl -n kern.osrevision`" ;
2006 ENDLDLIBS="-lossaudio" ;
2007 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2010 solaris* | sunos* ) OSTYPE=solaris ;
2011 OS_TAG="P_SOLARIS" ;
2012 OSRELEASE=`uname -r | sed "s/5\.//g"` ;
2013 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2016 darwin* ) OSTYPE=Darwin ;
2017 OS_TAG="P_MACOSX" ;
2018 OSRELEASE="`uname -r | sed 's/\.//g'`" ;
2019 SHAREDLIBEXT="dylib";
2020 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2023 beos*) OSTYPE=beos ;
2024 OS_TAG="P_BEOS" ;
2025 OSRELEASE=`uname -r` ;
2026 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
2029 * ) OSTYPE="$target_os" ;
2030 OS_TAG="P_UNKNOWN_OS" ;
2031 OSRELEASE="\"${OSTYPE}_`uname -r`\"" ;
2032 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2033 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2035 esac
2037 MACHTYPE=
2039 case "$target_cpu" in
2040 x86 | i686 | i586 | i486 | i386 ) MACHTYPE=x86
2043 x86_64) MACHTYPE=x86_64 ;
2044 P_64BIT=1 ;
2045 LIB64=1 ;
2048 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) MACHTYPE=alpha ;
2049 P_64BIT=1 ;
2052 sparc ) MACHTYPE=sparc ;
2055 powerpc ) MACHTYPE=ppc ;
2058 ppc ) MACHTYPE=ppc ;
2061 powerpc64 ) MACHTYPE=ppc64 ;
2062 P_64BIT=1 ;
2063 LIB64=1 ;
2066 ppc64 ) MACHTYPE=ppc64 ;
2067 P_64BIT=1 ;
2068 LIB64=1 ;
2071 ia64) MACHTYPE=ia64 ;
2072 P_64BIT=1 ;
2075 s390x) MACHTYPE=s390x ;
2076 P_64BIT=1 ;
2077 LIB64=1 ;
2080 s390) MACHTYPE=s390 ;
2083 * ) MACHTYPE=$target_cpu ;
2084 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2085 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2086 esac
2088 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2089 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2090 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2091 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2092 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2093 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2095 MACHTYPE=$MACHTYPE
2097 OSTYPE=$OSTYPE
2099 OSRELEASE=$OSRELEASE
2101 TARGETDIR=$TARGETDIR
2104 cat >>confdefs.h <<_ACEOF
2105 #define $OS_TAG $OSRELEASE
2106 _ACEOF
2110 cat >>confdefs.h <<\_ACEOF
2111 #define PHAS_TEMPLATES 1
2112 _ACEOF
2115 if test "x$P_64BIT" != "x" ; then
2117 cat >>confdefs.h <<\_ACEOF
2118 #define P_64BIT 1
2119 _ACEOF
2123 if test ${OSTYPE} != beos ; then
2125 cat >>confdefs.h <<\_ACEOF
2126 #define P_PTHREADS 1
2127 _ACEOF
2132 if test "x${SHAREDLIBEXT}" = "x" ; then
2133 SHAREDLIBEXT="so"
2135 SHAREDLIBEXT=$SHAREDLIBEXT
2138 cat >>confdefs.h <<\_ACEOF
2139 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2140 _ACEOF
2146 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2147 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2148 if test "${ac_cv_c_bigendian+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 # See if sys/param.h defines the BYTE_ORDER macro.
2152 cat >conftest.$ac_ext <<_ACEOF
2153 #line $LINENO "configure"
2154 /* confdefs.h. */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2159 #include <sys/types.h>
2160 #include <sys/param.h>
2163 main ()
2165 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2166 bogus endian macros
2167 #endif
2170 return 0;
2172 _ACEOF
2173 rm -f conftest.$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 # It does; now see whether it defined to BIG_ENDIAN or not.
2186 cat >conftest.$ac_ext <<_ACEOF
2187 #line $LINENO "configure"
2188 /* confdefs.h. */
2189 _ACEOF
2190 cat confdefs.h >>conftest.$ac_ext
2191 cat >>conftest.$ac_ext <<_ACEOF
2192 /* end confdefs.h. */
2193 #include <sys/types.h>
2194 #include <sys/param.h>
2197 main ()
2199 #if BYTE_ORDER != BIG_ENDIAN
2200 not big endian
2201 #endif
2204 return 0;
2206 _ACEOF
2207 rm -f conftest.$ac_objext
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 ac_cv_c_bigendian=yes
2220 else
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2224 ac_cv_c_bigendian=no
2226 rm -f conftest.$ac_objext conftest.$ac_ext
2227 else
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2231 # It does not; compile a test program.
2232 if test "$cross_compiling" = yes; then
2233 # try to guess the endianness by grepping values into an object file
2234 ac_cv_c_bigendian=unknown
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2237 /* confdefs.h. */
2238 _ACEOF
2239 cat confdefs.h >>conftest.$ac_ext
2240 cat >>conftest.$ac_ext <<_ACEOF
2241 /* end confdefs.h. */
2242 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2243 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2244 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2245 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2246 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2247 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2249 main ()
2251 _ascii (); _ebcdic ();
2253 return 0;
2255 _ACEOF
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -s conftest.$ac_objext'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; }; then
2268 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2269 ac_cv_c_bigendian=yes
2271 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2272 if test "$ac_cv_c_bigendian" = unknown; then
2273 ac_cv_c_bigendian=no
2274 else
2275 # finding both strings is unlikely to happen, but who knows?
2276 ac_cv_c_bigendian=unknown
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285 else
2286 cat >conftest.$ac_ext <<_ACEOF
2287 #line $LINENO "configure"
2288 /* confdefs.h. */
2289 _ACEOF
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2294 main ()
2296 /* Are we little or big endian? From Harbison&Steele. */
2297 union
2299 long l;
2300 char c[sizeof (long)];
2301 } u;
2302 u.l = 1;
2303 exit (u.c[sizeof (long) - 1] == 1);
2305 _ACEOF
2306 rm -f conftest$ac_exeext
2307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2308 (eval $ac_link) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2317 ac_cv_c_bigendian=no
2318 else
2319 echo "$as_me: program exited with status $ac_status" >&5
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2323 ( exit $ac_status )
2324 ac_cv_c_bigendian=yes
2326 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2331 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2332 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2333 case $ac_cv_c_bigendian in
2334 yes)
2336 cat >>confdefs.h <<\_ACEOF
2337 #define WORDS_BIGENDIAN 1
2338 _ACEOF
2343 { { echo "$as_me:$LINENO: error: unknown endianness
2344 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2345 echo "$as_me: error: unknown endianness
2346 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2347 { (exit 1); exit 1; }; } ;;
2348 esac
2350 if test ${ac_cv_c_bigendian} = yes ; then
2351 PBYTE_ORDER=PBIG_ENDIAN
2352 else
2353 PBYTE_ORDER=PLITTLE_ENDIAN
2357 cat >>confdefs.h <<_ACEOF
2358 #define PBYTE_ORDER $PBYTE_ORDER
2359 _ACEOF
2362 ac_ext=cc
2363 ac_cpp='$CXXCPP $CPPFLAGS'
2364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2369 echo "$as_me:$LINENO: checking if linker accepts -felide-constructors" >&5
2370 echo $ECHO_N "checking if linker accepts -felide-constructors... $ECHO_C" >&6
2371 cat >conftest.$ac_ext <<_ACEOF
2372 int main(int ac,char **av) { return 0; }
2373 _ACEOF
2374 $CXX $CXXFLAGS -felide-constructors conftest.cc > /dev/null 2>&1
2375 if test $? = 0 ; then
2376 echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6
2378 STDCXXFLAGS="$STDCXXFLAGS -felide-constructors"
2379 else
2380 echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6
2384 echo "$as_me:$LINENO: checking if linker accepts -Wreorder" >&5
2385 echo $ECHO_N "checking if linker accepts -Wreorder... $ECHO_C" >&6
2386 cat >conftest.$ac_ext <<_ACEOF
2387 int main(int ac,char **av) { return 0; }
2388 _ACEOF
2389 $STDCXX $CXXFLAGS -Wreorder conftest.cc > /dev/null 2>&1
2390 if test $? = 0 ; then
2391 echo "$as_me:$LINENO: result: yes" >&5
2392 echo "${ECHO_T}yes" >&6
2393 STDCXXFLAGS="$STDCXXFLAGS -Wreorder"
2394 else
2395 echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2399 # AC_MSG_CHECKING(if linker accepts -Woverloaded-virtual)
2400 # AC_LANG_CONFTEST([[int main(int ac,char **av) { return 0; }]])
2401 # $CXX $CFLAGS -Woverloaded-virtual conftest.cc > /dev/null 2>&1
2402 # if test $? = 0 ; then
2403 # AC_MSG_RESULT(yes)
2404 # STDCCFLAGS="$STDCCFLAGS -Woverloaded-virtual"
2405 # else
2406 # AC_MSG_RESULT(no)
2407 # fi
2409 GCSECTIONS=0
2411 echo "$as_me:$LINENO: checking if linker accepts --gc-sections" >&5
2412 echo $ECHO_N "checking if linker accepts --gc-sections... $ECHO_C" >&6
2413 cat >conftest.$ac_ext <<_ACEOF
2414 int main(int ac,char **av) { return 0; }
2415 _ACEOF
2416 $CXX $CFLAGS -Wl,--gc-sections conftest.cc > /dev/null 2>&1
2417 if test $? = 0 ; then
2418 echo "$as_me:$LINENO: result: yes" >&5
2419 echo "${ECHO_T}yes" >&6
2421 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2422 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2423 cat >conftest.$ac_ext <<_ACEOF
2424 int main(int ac,char **av) { return 0; }
2425 _ACEOF
2426 $CXX $CFLAGS -ffunction-sections -c conftest.cc > /dev/null 2>&1
2427 if test $? = 0 ; then
2428 echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6
2430 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
2431 GCSECTIONS=1
2432 else
2433 echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6
2437 echo "$as_me:$LINENO: checking if compiler accepts -fdata-sections" >&5
2438 echo $ECHO_N "checking if compiler accepts -fdata-sections... $ECHO_C" >&6
2439 cat >conftest.$ac_ext <<_ACEOF
2440 int main(int ac,char **av) { return 0; }
2441 _ACEOF
2442 $CXX $CFLAGS -fdata-sections -c conftest.cc > /dev/null 2>&1
2443 if test $? = 0 ; then
2444 echo "$as_me:$LINENO: result: yes" >&5
2445 echo "${ECHO_T}yes" >&6
2446 STDCCFLAGS="$STDCCFLAGS -fdata-sections"
2447 GCSECTIONS=1
2448 else
2449 echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6
2454 if test $GCSECTIONS = 1; then
2455 if test "${OSTYPE}" != "Darwin" ; then
2456 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2460 else
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 ac_ext=cc
2466 ac_cpp='$CXXCPP $CPPFLAGS'
2467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2473 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
2474 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
2475 if test "${ac_cv_c_long_double+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 cat >conftest.$ac_ext <<_ACEOF
2479 #line $LINENO "configure"
2480 /* confdefs.h. */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2485 #include <float.h>
2486 long double foo = 0.0;
2488 main ()
2490 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
2491 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
2492 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
2493 test_array [0] = 0
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 ac_cv_c_long_double=yes
2512 else
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2516 ac_cv_c_long_double=no
2518 rm -f conftest.$ac_objext conftest.$ac_ext
2520 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
2521 echo "${ECHO_T}$ac_cv_c_long_double" >&6
2522 if test $ac_cv_c_long_double = yes; then
2524 cat >>confdefs.h <<\_ACEOF
2525 #define HAVE_LONG_DOUBLE 1
2526 _ACEOF
2530 if test $ac_cv_c_long_double != yes ; then
2532 cat >>confdefs.h <<\_ACEOF
2533 #define PNO_LONG_DOUBLE
2534 _ACEOF
2538 echo "$as_me:$LINENO: checking if readdir_r has 2 parms" >&5
2539 echo $ECHO_N "checking if readdir_r has 2 parms... $ECHO_C" >&6
2540 cat >conftest.$ac_ext <<_ACEOF
2541 #line $LINENO "configure"
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2547 #define _POSIX_PTHREAD_SEMANTICS
2548 #include <dirent.h>
2550 main ()
2552 DIR *s; struct dirent * e; readdir_r(s, e);
2554 return 0;
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 P_HAS_POSIX_READDIR_R=2
2570 else
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 P_HAS_POSIX_READDIR_R=0
2576 rm -f conftest.$ac_objext conftest.$ac_ext
2577 if test ${P_HAS_POSIX_READDIR_R} = 2 ; then
2578 echo "$as_me:$LINENO: result: yes" >&5
2579 echo "${ECHO_T}yes" >&6
2580 else
2581 echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6
2583 echo "$as_me:$LINENO: checking if readdir_r has 3 parms" >&5
2584 echo $ECHO_N "checking if readdir_r has 3 parms... $ECHO_C" >&6
2585 cat >conftest.$ac_ext <<_ACEOF
2586 #line $LINENO "configure"
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592 #include <dirent.h>
2594 main ()
2596 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
2598 return 0;
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 P_HAS_POSIX_READDIR_R=3
2614 else
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2618 P_HAS_POSIX_READDIR_R=0
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2621 if test ${P_HAS_POSIX_READDIR_R} = 3 ; then
2622 echo "$as_me:$LINENO: result: yes" >&5
2623 echo "${ECHO_T}yes" >&6
2624 else
2625 echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6
2629 cat >>confdefs.h <<_ACEOF
2630 #define P_HAS_POSIX_READDIR_R ${P_HAS_POSIX_READDIR_R}
2631 _ACEOF
2635 P_HAS_STL_STREAMS=0
2636 echo "$as_me:$LINENO: checking if using STL streams" >&5
2637 echo $ECHO_N "checking if using STL streams... $ECHO_C" >&6
2638 cat >conftest.$ac_ext <<_ACEOF
2639 #line $LINENO "configure"
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2645 #include <iostream>
2647 main ()
2649 int v = (int)std::ios_base::seekdir();
2651 return 0;
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 P_HAS_STL_STREAMS=1
2667 else
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.$ac_objext conftest.$ac_ext
2673 if test ${P_HAS_STL_STREAMS} = 1 ; then
2674 echo "$as_me:$LINENO: result: yes" >&5
2675 echo "${ECHO_T}yes" >&6
2676 else
2677 echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2680 cat >>confdefs.h <<_ACEOF
2681 #define P_HAS_STL_STREAMS ${P_HAS_STL_STREAMS}
2682 _ACEOF
2686 P_HAS_ATOMIC_INT=0
2687 P_NEEDS_GNU_CXX_NAMESPACE=0
2688 echo "$as_me:$LINENO: checking if atomic integer available" >&5
2689 echo $ECHO_N "checking if atomic integer available... $ECHO_C" >&6
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2692 /* confdefs.h. */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2697 #include <bits/atomicity.h>
2699 main ()
2701 _Atomic_word val;
2703 return 0;
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 P_HAS_ATOMIC_INT=1
2719 else
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2724 rm -f conftest.$ac_objext conftest.$ac_ext
2725 if test ${P_HAS_ATOMIC_INT} = 1 ; then
2726 echo "$as_me:$LINENO: result: yes" >&5
2727 echo "${ECHO_T}yes" >&6
2728 echo "$as_me:$LINENO: checking if __exchange_and_add is in __gnu_cxx namespace" >&5
2729 echo $ECHO_N "checking if __exchange_and_add is in __gnu_cxx namespace... $ECHO_C" >&6
2730 cat >conftest.$ac_ext <<_ACEOF
2731 #line $LINENO "configure"
2732 /* confdefs.h. */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2737 #include <bits/atomicity.h>
2739 main ()
2741 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
2743 return 0;
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748 (eval $ac_compile) 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2758 P_NEEDS_GNU_CXX_NAMESPACE=1
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f conftest.$ac_objext conftest.$ac_ext
2765 if test ${P_NEEDS_GNU_CXX_NAMESPACE} = 1 ; then
2766 echo "$as_me:$LINENO: result: yes" >&5
2767 echo "${ECHO_T}yes" >&6
2768 else
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2776 cat >>confdefs.h <<_ACEOF
2777 #define P_HAS_ATOMIC_INT ${P_HAS_ATOMIC_INT}
2778 _ACEOF
2780 cat >>confdefs.h <<_ACEOF
2781 #define P_NEEDS_GNU_CXX_NAMESPACE ${P_NEEDS_GNU_CXX_NAMESPACE}
2782 _ACEOF
2787 if test ${OSTYPE} != Darwin ; then
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 #include <semaphore.h>
2797 main ()
2799 sem_t *s; sem_init(s, 0, 0);
2801 return 0;
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 (eval $ac_try) 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 P_HAS_SEMAPHORES=1
2817 else
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2822 rm -f conftest.$ac_objext conftest.$ac_ext
2823 echo "$as_me:$LINENO: checking if Unix semaphores are available" >&5
2824 echo $ECHO_N "checking if Unix semaphores are available... $ECHO_C" >&6
2825 if test "${P_HAS_SEMAPHORES}x" != "x" ; then
2826 cat >>confdefs.h <<\_ACEOF
2827 #define P_HAS_SEMAPHORES 1
2828 _ACEOF
2830 echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2832 else
2833 echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2835 { echo "$as_me:$LINENO: WARNING: This host does not support semaphores which are essential" >&5
2836 echo "$as_me: WARNING: This host does not support semaphores which are essential" >&2;}
2837 { echo "$as_me:$LINENO: WARNING: to implement 'critical sections'. This feature was added" >&5
2838 echo "$as_me: WARNING: to implement 'critical sections'. This feature was added" >&2;}
2839 { echo "$as_me:$LINENO: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&5
2840 echo "$as_me: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&2;}
2841 { echo "$as_me:$LINENO: WARNING: programs. This feature has been disabled for this host" >&5
2842 echo "$as_me: WARNING: programs. This feature has been disabled for this host" >&2;}
2849 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2850 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2851 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 ac_check_lib_save_LIBS=$LIBS
2855 LIBS="-lpthread $LIBS"
2856 cat >conftest.$ac_ext <<_ACEOF
2857 #line $LINENO "configure"
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2864 /* Override any gcc2 internal prototype to avoid an error. */
2865 #ifdef __cplusplus
2866 extern "C"
2867 #endif
2868 /* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2870 char pthread_create ();
2872 main ()
2874 pthread_create ();
2876 return 0;
2878 _ACEOF
2879 rm -f conftest.$ac_objext conftest$ac_exeext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881 (eval $ac_link) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -s conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_lib_pthread_pthread_create=yes
2892 else
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2896 ac_cv_lib_pthread_pthread_create=no
2898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2899 LIBS=$ac_check_lib_save_LIBS
2901 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2902 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2903 if test $ac_cv_lib_pthread_pthread_create = yes; then
2904 HAS_PTHREADS=yes
2905 else
2906 HAS_PTHREADS=no
2909 if test ${HAS_PTHREADS} = yes ; then
2910 ENDLDLIBS="$ENDLDLIBS -lpthread"
2911 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
2912 else
2913 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2914 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2915 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 ac_check_lib_save_LIBS=$LIBS
2919 LIBS="-lc_r $LIBS"
2920 cat >conftest.$ac_ext <<_ACEOF
2921 #line $LINENO "configure"
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2928 /* Override any gcc2 internal prototype to avoid an error. */
2929 #ifdef __cplusplus
2930 extern "C"
2931 #endif
2932 /* We use char because int might match the return type of a gcc2
2933 builtin and then its argument prototype would still apply. */
2934 char pthread_create ();
2936 main ()
2938 pthread_create ();
2940 return 0;
2942 _ACEOF
2943 rm -f conftest.$ac_objext conftest$ac_exeext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945 (eval $ac_link) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -s conftest$ac_exeext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 ac_cv_lib_c_r_pthread_create=yes
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 ac_cv_lib_c_r_pthread_create=no
2962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2963 LIBS=$ac_check_lib_save_LIBS
2965 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2966 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2967 if test $ac_cv_lib_c_r_pthread_create = yes; then
2968 HAS_PTHREADS=yes
2969 else
2970 HAS_PTHREADS=no
2973 if test ${HAS_PTHREADS} = yes ; then
2974 ENDLDLIBS="$ENDLDLIBS -pthread"
2975 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
2980 if test ${HAS_PTHREADS} != yes ; then
2981 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
2982 echo "$as_me: error: must have pthreads!" >&2;}
2983 { (exit 1); exit 1; }; }
2987 if test ${HAS_PTHREADS} = yes ; then
2988 echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
2989 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6
2990 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993 ac_check_lib_save_LIBS=$LIBS
2994 LIBS="-lpthread $LIBS"
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3003 /* Override any gcc2 internal prototype to avoid an error. */
3004 #ifdef __cplusplus
3005 extern "C"
3006 #endif
3007 /* We use char because int might match the return type of a gcc2
3008 builtin and then its argument prototype would still apply. */
3009 char pthread_mutex_timedlock ();
3011 main ()
3013 pthread_mutex_timedlock ();
3015 return 0;
3017 _ACEOF
3018 rm -f conftest.$ac_objext conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020 (eval $ac_link) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -s conftest$ac_exeext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 ac_cv_lib_pthread_pthread_mutex_timedlock=yes
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 ac_cv_lib_pthread_pthread_mutex_timedlock=no
3037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3038 LIBS=$ac_check_lib_save_LIBS
3040 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
3041 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6
3042 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
3043 HAS_PTHREADS_XPG6=yes
3044 else
3045 HAS_PTHREADS_XPG6=no
3048 if test ${HAS_PTHREADS_XPG6} = yes ; then
3050 cat >>confdefs.h <<\_ACEOF
3051 #define P_PTHREADS_XPG6 1
3052 _ACEOF
3056 echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
3057 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6
3058 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061 ac_check_lib_save_LIBS=$LIBS
3062 LIBS="-lpthread $LIBS"
3063 cat >conftest.$ac_ext <<_ACEOF
3064 #line $LINENO "configure"
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3071 /* Override any gcc2 internal prototype to avoid an error. */
3072 #ifdef __cplusplus
3073 extern "C"
3074 #endif
3075 /* We use char because int might match the return type of a gcc2
3076 builtin and then its argument prototype would still apply. */
3077 char sem_timedwait ();
3079 main ()
3081 sem_timedwait ();
3083 return 0;
3085 _ACEOF
3086 rm -f conftest.$ac_objext conftest$ac_exeext
3087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3088 (eval $ac_link) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -s conftest$ac_exeext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_lib_pthread_sem_timedwait=yes
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 ac_cv_lib_pthread_sem_timedwait=no
3105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3106 LIBS=$ac_check_lib_save_LIBS
3108 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
3109 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6
3110 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
3111 HAS_SEMAPHORES_XPG6=yes
3112 else
3113 HAS_SEMAPHORES_XPG6=no
3116 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3117 echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
3118 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6
3119 cat >conftest.$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <semaphore.h>
3128 main ()
3130 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
3132 return 0;
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 (eval $ac_try) 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 HAS_SEMAPHORES_XPG6=yes
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 HAS_SEMAPHORES_XPG6=no
3154 rm -f conftest.$ac_objext conftest.$ac_ext
3155 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3157 cat >>confdefs.h <<\_ACEOF
3158 #define P_HAS_SEMAPHORES_XPG6 1
3159 _ACEOF
3161 echo "$as_me:$LINENO: result: yes" >&5
3162 echo "${ECHO_T}yes" >&6
3163 else
3164 echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3170 P_HAS_RECURSIVE_MUTEX=0
3171 echo "$as_me:$LINENO: checking if recursive mutexes are available" >&5
3172 echo $ECHO_N "checking if recursive mutexes are available... $ECHO_C" >&6
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3175 /* confdefs.h. */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180 #include <pthread.h>
3182 main ()
3184 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
3186 return 0;
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 P_HAS_RECURSIVE_MUTEX=1
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f conftest.$ac_objext conftest.$ac_ext
3208 if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then
3209 echo "$as_me:$LINENO: result: yes" >&5
3210 echo "${ECHO_T}yes" >&6
3211 else
3212 echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6
3215 cat >>confdefs.h <<_ACEOF
3216 #define P_HAS_RECURSIVE_MUTEX ${P_HAS_RECURSIVE_MUTEX}
3217 _ACEOF
3222 ac_ext=cc
3223 ac_cpp='$CXXCPP $CPPFLAGS'
3224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3227 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3228 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3229 if test -z "$CXXCPP"; then
3230 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 # Double quotes because CXXCPP needs to be expanded
3234 for CXXCPP in "$CXX -E" "/lib/cpp"
3236 ac_preproc_ok=false
3237 for ac_cxx_preproc_warn_flag in '' yes
3239 # Use a header file that comes with gcc, so configuring glibc
3240 # with a fresh cross-compiler works.
3241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3242 # <limits.h> exists even on freestanding compilers.
3243 # On the NeXT, cc -E runs the code through the compiler's parser,
3244 # not just through cpp. "Syntax error" is here to catch this case.
3245 cat >conftest.$ac_ext <<_ACEOF
3246 #line $LINENO "configure"
3247 /* confdefs.h. */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3252 #ifdef __STDC__
3253 # include <limits.h>
3254 #else
3255 # include <assert.h>
3256 #endif
3257 Syntax error
3258 _ACEOF
3259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev/null; then
3267 if test -s conftest.err; then
3268 ac_cpp_err=$ac_cxx_preproc_warn_flag
3269 else
3270 ac_cpp_err=
3272 else
3273 ac_cpp_err=yes
3275 if test -z "$ac_cpp_err"; then
3277 else
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 # Broken: fails on valid input.
3282 continue
3284 rm -f conftest.err conftest.$ac_ext
3286 # OK, works on sane cases. Now check whether non-existent headers
3287 # can be detected and how.
3288 cat >conftest.$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <ac_nonexistent.h>
3296 _ACEOF
3297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev/null; then
3305 if test -s conftest.err; then
3306 ac_cpp_err=$ac_cxx_preproc_warn_flag
3307 else
3308 ac_cpp_err=
3310 else
3311 ac_cpp_err=yes
3313 if test -z "$ac_cpp_err"; then
3314 # Broken: success on invalid input.
3315 continue
3316 else
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 # Passes both tests.
3321 ac_preproc_ok=:
3322 break
3324 rm -f conftest.err conftest.$ac_ext
3326 done
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3330 break
3333 done
3334 ac_cv_prog_CXXCPP=$CXXCPP
3337 CXXCPP=$ac_cv_prog_CXXCPP
3338 else
3339 ac_cv_prog_CXXCPP=$CXXCPP
3341 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3342 echo "${ECHO_T}$CXXCPP" >&6
3343 ac_preproc_ok=false
3344 for ac_cxx_preproc_warn_flag in '' yes
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3353 #line $LINENO "configure"
3354 /* confdefs.h. */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359 #ifdef __STDC__
3360 # include <limits.h>
3361 #else
3362 # include <assert.h>
3363 #endif
3364 Syntax error
3365 _ACEOF
3366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null; then
3374 if test -s conftest.err; then
3375 ac_cpp_err=$ac_cxx_preproc_warn_flag
3376 else
3377 ac_cpp_err=
3379 else
3380 ac_cpp_err=yes
3382 if test -z "$ac_cpp_err"; then
3384 else
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 # Broken: fails on valid input.
3389 continue
3391 rm -f conftest.err conftest.$ac_ext
3393 # OK, works on sane cases. Now check whether non-existent headers
3394 # can be detected and how.
3395 cat >conftest.$ac_ext <<_ACEOF
3396 #line $LINENO "configure"
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #include <ac_nonexistent.h>
3403 _ACEOF
3404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null; then
3412 if test -s conftest.err; then
3413 ac_cpp_err=$ac_cxx_preproc_warn_flag
3414 else
3415 ac_cpp_err=
3417 else
3418 ac_cpp_err=yes
3420 if test -z "$ac_cpp_err"; then
3421 # Broken: success on invalid input.
3422 continue
3423 else
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3427 # Passes both tests.
3428 ac_preproc_ok=:
3429 break
3431 rm -f conftest.err conftest.$ac_ext
3433 done
3434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3435 rm -f conftest.err conftest.$ac_ext
3436 if $ac_preproc_ok; then
3438 else
3439 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3440 See \`config.log' for more details." >&5
3441 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3442 See \`config.log' for more details." >&2;}
3443 { (exit 1); exit 1; }; }
3446 ac_ext=cc
3447 ac_cpp='$CXXCPP $CPPFLAGS'
3448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3453 echo "$as_me:$LINENO: checking for egrep" >&5
3454 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3455 if test "${ac_cv_prog_egrep+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3459 then ac_cv_prog_egrep='grep -E'
3460 else ac_cv_prog_egrep='egrep'
3463 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3464 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3465 EGREP=$ac_cv_prog_egrep
3468 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3469 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3470 if test "${ac_cv_header_stdc+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #line $LINENO "configure"
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include <stdlib.h>
3481 #include <stdarg.h>
3482 #include <string.h>
3483 #include <float.h>
3486 main ()
3490 return 0;
3492 _ACEOF
3493 rm -f conftest.$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -s conftest.$ac_objext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_cv_header_stdc=yes
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 ac_cv_header_stdc=no
3512 rm -f conftest.$ac_objext conftest.$ac_ext
3514 if test $ac_cv_header_stdc = yes; then
3515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3516 cat >conftest.$ac_ext <<_ACEOF
3517 #line $LINENO "configure"
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include <string.h>
3525 _ACEOF
3526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527 $EGREP "memchr" >/dev/null 2>&1; then
3529 else
3530 ac_cv_header_stdc=no
3532 rm -f conftest*
3536 if test $ac_cv_header_stdc = yes; then
3537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3538 cat >conftest.$ac_ext <<_ACEOF
3539 #line $LINENO "configure"
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #include <stdlib.h>
3547 _ACEOF
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "free" >/dev/null 2>&1; then
3551 else
3552 ac_cv_header_stdc=no
3554 rm -f conftest*
3558 if test $ac_cv_header_stdc = yes; then
3559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3560 if test "$cross_compiling" = yes; then
3562 else
3563 cat >conftest.$ac_ext <<_ACEOF
3564 #line $LINENO "configure"
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 #include <ctype.h>
3571 #if ((' ' & 0x0FF) == 0x020)
3572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3574 #else
3575 # define ISLOWER(c) \
3576 (('a' <= (c) && (c) <= 'i') \
3577 || ('j' <= (c) && (c) <= 'r') \
3578 || ('s' <= (c) && (c) <= 'z'))
3579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3580 #endif
3582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3584 main ()
3586 int i;
3587 for (i = 0; i < 256; i++)
3588 if (XOR (islower (i), ISLOWER (i))
3589 || toupper (i) != TOUPPER (i))
3590 exit(2);
3591 exit (0);
3593 _ACEOF
3594 rm -f conftest$ac_exeext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596 (eval $ac_link) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3606 else
3607 echo "$as_me: program exited with status $ac_status" >&5
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 ( exit $ac_status )
3612 ac_cv_header_stdc=no
3614 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3618 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3619 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3620 if test $ac_cv_header_stdc = yes; then
3622 cat >>confdefs.h <<\_ACEOF
3623 #define STDC_HEADERS 1
3624 _ACEOF
3628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3638 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3639 inttypes.h stdint.h unistd.h
3641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3642 echo "$as_me:$LINENO: checking for $ac_header" >&5
3643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 cat >conftest.$ac_ext <<_ACEOF
3648 #line $LINENO "configure"
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 $ac_includes_default
3656 #include <$ac_header>
3657 _ACEOF
3658 rm -f conftest.$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -s conftest.$ac_objext'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 eval "$as_ac_Header=yes"
3671 else
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 eval "$as_ac_Header=no"
3677 rm -f conftest.$ac_objext conftest.$ac_ext
3679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3682 cat >>confdefs.h <<_ACEOF
3683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3684 _ACEOF
3688 done
3692 for ac_header in regex.h
3694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3696 echo "$as_me:$LINENO: checking for $ac_header" >&5
3697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3703 else
3704 # Is the header compilable?
3705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3707 cat >conftest.$ac_ext <<_ACEOF
3708 #line $LINENO "configure"
3709 /* confdefs.h. */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 $ac_includes_default
3715 #include <$ac_header>
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 (eval $ac_try) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_header_compiler=yes
3730 else
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 ac_header_compiler=no
3736 rm -f conftest.$ac_objext conftest.$ac_ext
3737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3738 echo "${ECHO_T}$ac_header_compiler" >&6
3740 # Is the header present?
3741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3743 cat >conftest.$ac_ext <<_ACEOF
3744 #line $LINENO "configure"
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <$ac_header>
3751 _ACEOF
3752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } >/dev/null; then
3760 if test -s conftest.err; then
3761 ac_cpp_err=$ac_cxx_preproc_warn_flag
3762 else
3763 ac_cpp_err=
3765 else
3766 ac_cpp_err=yes
3768 if test -z "$ac_cpp_err"; then
3769 ac_header_preproc=yes
3770 else
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 ac_header_preproc=no
3776 rm -f conftest.err conftest.$ac_ext
3777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3778 echo "${ECHO_T}$ac_header_preproc" >&6
3780 # So? What about this header?
3781 case $ac_header_compiler:$ac_header_preproc in
3782 yes:no )
3783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3788 cat <<\_ASBOX
3789 ## ------------------------------------ ##
3790 ## Report this to bug-autoconf@gnu.org. ##
3791 ## ------------------------------------ ##
3792 _ASBOX
3794 sed "s/^/$as_me: WARNING: /" >&2
3796 no:yes )
3797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3804 cat <<\_ASBOX
3805 ## ------------------------------------ ##
3806 ## Report this to bug-autoconf@gnu.org. ##
3807 ## ------------------------------------ ##
3808 _ASBOX
3810 sed "s/^/$as_me: WARNING: /" >&2
3812 esac
3813 echo "$as_me:$LINENO: checking for $ac_header" >&5
3814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 eval "$as_ac_Header=$ac_header_preproc"
3820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3825 cat >>confdefs.h <<_ACEOF
3826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3827 _ACEOF
3828 HAS_REGEX=yes
3831 done
3834 # Check whether --enable-internalregex or --disable-internalregex was given.
3835 if test "${enable_internalregex+set}" = set; then
3836 enableval="$enable_internalregex"
3837 internalregex=$enableval
3839 if test "$internalregex" = "yes" ; then
3840 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3841 echo "$as_me: Forcing use of internal regex library" >&6;}
3842 else
3843 if test "$HAS_REGEX" = "yes" ; then
3844 echo "$as_me:$LINENO: checking for regcomp" >&5
3845 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3846 if test "${ac_cv_func_regcomp+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 cat >conftest.$ac_ext <<_ACEOF
3850 #line $LINENO "configure"
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 /* System header to define __stub macros and hopefully few prototypes,
3857 which can conflict with char regcomp (); below.
3858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859 <limits.h> exists even on freestanding compilers. */
3860 #ifdef __STDC__
3861 # include <limits.h>
3862 #else
3863 # include <assert.h>
3864 #endif
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 #ifdef __cplusplus
3867 extern "C"
3869 #endif
3870 /* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3872 char regcomp ();
3873 /* The GNU C library defines this for functions which it implements
3874 to always fail with ENOSYS. Some functions are actually named
3875 something starting with __ and the normal name is an alias. */
3876 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3877 choke me
3878 #else
3879 char (*f) () = regcomp;
3880 #endif
3881 #ifdef __cplusplus
3883 #endif
3886 main ()
3888 return f != regcomp;
3890 return 0;
3892 _ACEOF
3893 rm -f conftest.$ac_objext conftest$ac_exeext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3895 (eval $ac_link) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try='test -s conftest$ac_exeext'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 (eval $ac_try) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
3905 ac_cv_func_regcomp=yes
3906 else
3907 echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 ac_cv_func_regcomp=no
3912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3914 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3915 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3916 if test $ac_cv_func_regcomp = yes; then
3917 HAS_REGEX=yes
3920 if test "$HAS_REGEX" = "yes" ; then
3921 HAS_REGEX=1
3924 cat >>confdefs.h <<\_ACEOF
3925 #define P_REGEX 1
3926 _ACEOF
3935 LIBS=""
3936 HAS_LIBDL=no
3937 P_DYNALINK=0
3938 if test ${OSTYPE} = beos ; then
3939 P_DYNALINK=1
3941 cat >>confdefs.h <<\_ACEOF
3942 #define P_DYNALINK 1
3943 _ACEOF
3945 elif test ${OSTYPE} = Darwin ; then
3946 P_DYNALINK=1
3948 cat >>confdefs.h <<\_ACEOF
3949 #define P_DYNALINK 1
3950 _ACEOF
3952 else
3954 for ac_header in dlfcn.h
3956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3958 echo "$as_me:$LINENO: checking for $ac_header" >&5
3959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3965 else
3966 # Is the header compilable?
3967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3969 cat >conftest.$ac_ext <<_ACEOF
3970 #line $LINENO "configure"
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 $ac_includes_default
3977 #include <$ac_header>
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -s conftest.$ac_objext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 ac_header_compiler=yes
3992 else
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3996 ac_header_compiler=no
3998 rm -f conftest.$ac_objext conftest.$ac_ext
3999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4000 echo "${ECHO_T}$ac_header_compiler" >&6
4002 # Is the header present?
4003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4005 cat >conftest.$ac_ext <<_ACEOF
4006 #line $LINENO "configure"
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <$ac_header>
4013 _ACEOF
4014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev/null; then
4022 if test -s conftest.err; then
4023 ac_cpp_err=$ac_cxx_preproc_warn_flag
4024 else
4025 ac_cpp_err=
4027 else
4028 ac_cpp_err=yes
4030 if test -z "$ac_cpp_err"; then
4031 ac_header_preproc=yes
4032 else
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 ac_header_preproc=no
4038 rm -f conftest.err conftest.$ac_ext
4039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4040 echo "${ECHO_T}$ac_header_preproc" >&6
4042 # So? What about this header?
4043 case $ac_header_compiler:$ac_header_preproc in
4044 yes:no )
4045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4050 cat <<\_ASBOX
4051 ## ------------------------------------ ##
4052 ## Report this to bug-autoconf@gnu.org. ##
4053 ## ------------------------------------ ##
4054 _ASBOX
4056 sed "s/^/$as_me: WARNING: /" >&2
4058 no:yes )
4059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4066 cat <<\_ASBOX
4067 ## ------------------------------------ ##
4068 ## Report this to bug-autoconf@gnu.org. ##
4069 ## ------------------------------------ ##
4070 _ASBOX
4072 sed "s/^/$as_me: WARNING: /" >&2
4074 esac
4075 echo "$as_me:$LINENO: checking for $ac_header" >&5
4076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 eval "$as_ac_Header=$ac_header_preproc"
4082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4087 cat >>confdefs.h <<_ACEOF
4088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4089 _ACEOF
4090 HAS_DLFCN=yes
4091 else
4092 HAS_DLFCN=no
4095 done
4097 if test "$HAS_DLFCN" = yes ; then
4098 echo "$as_me:$LINENO: checking if dlopen is available" >&5
4099 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
4100 cat >conftest.$ac_ext <<_ACEOF
4101 #line $LINENO "configure"
4102 /* confdefs.h. */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107 #include <dlfcn.h>
4109 main ()
4111 void * p = dlopen("lib", 0);
4113 return 0;
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 HAS_DLOPEN=yes
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 HAS_DLOPEN=no
4135 rm -f conftest.$ac_objext conftest.$ac_ext
4136 if test "$HAS_DLOPEN" = no ; then
4137 echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4139 else
4140 echo "$as_me:$LINENO: result: yes" >&5
4141 echo "${ECHO_T}yes" >&6
4142 P_DYNALINK=1
4144 cat >>confdefs.h <<\_ACEOF
4145 #define P_DYNALINK 1
4146 _ACEOF
4148 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4149 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 ac_check_lib_save_LIBS=$LIBS
4154 LIBS="-ldl $LIBS"
4155 cat >conftest.$ac_ext <<_ACEOF
4156 #line $LINENO "configure"
4157 /* confdefs.h. */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4163 /* Override any gcc2 internal prototype to avoid an error. */
4164 #ifdef __cplusplus
4165 extern "C"
4166 #endif
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4169 char dlopen ();
4171 main ()
4173 dlopen ();
4175 return 0;
4177 _ACEOF
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 ac_cv_lib_dl_dlopen=yes
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_cv_lib_dl_dlopen=no
4197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4198 LIBS=$ac_check_lib_save_LIBS
4200 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4201 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4202 if test $ac_cv_lib_dl_dlopen = yes; then
4203 HAS_LIBDL=yes
4204 else
4205 HAS_LIBDL=no
4212 plugins="no"
4213 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
4214 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
4215 # Check whether --enable-plugins or --disable-plugins was given.
4216 if test "${enable_plugins+set}" = set; then
4217 enableval="$enable_plugins"
4218 plugins=$enableval
4221 HAS_PLUGINS=0
4222 if test "${plugins}" = "no" ; then
4223 echo "$as_me:$LINENO: result: no" >&5
4224 echo "${ECHO_T}no" >&6
4225 elif test "${P_DYNALINK:-unset}" = "unset" ; then
4226 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
4227 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
4228 else
4229 echo "$as_me:$LINENO: result: plugins enabled" >&5
4230 echo "${ECHO_T}plugins enabled" >&6
4231 HAS_PLUGINS=1
4233 cat >>confdefs.h <<\_ACEOF
4234 #define P_HAS_PLUGINS 1
4235 _ACEOF
4241 if test "x$LIB64" != "x" ; then
4243 cat >>confdefs.h <<_ACEOF
4244 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
4245 _ACEOF
4247 else
4249 cat >>confdefs.h <<_ACEOF
4250 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
4251 _ACEOF
4257 # Check whether --enable-resolver or --disable-resolver was given.
4258 if test "${enable_resolver+set}" = set; then
4259 enableval="$enable_resolver"
4260 resolver=$enableval
4263 if test "$resolver" = "no" ; then
4264 cat >>confdefs.h <<\_ACEOF
4265 #define P_DNS 0
4266 _ACEOF
4268 else
4269 echo "$as_me:$LINENO: checking for res_search" >&5
4270 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4271 if test "${ac_cv_func_res_search+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 cat >conftest.$ac_ext <<_ACEOF
4275 #line $LINENO "configure"
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 /* System header to define __stub macros and hopefully few prototypes,
4282 which can conflict with char res_search (); below.
4283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 <limits.h> exists even on freestanding compilers. */
4285 #ifdef __STDC__
4286 # include <limits.h>
4287 #else
4288 # include <assert.h>
4289 #endif
4290 /* Override any gcc2 internal prototype to avoid an error. */
4291 #ifdef __cplusplus
4292 extern "C"
4294 #endif
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4297 char res_search ();
4298 /* The GNU C library defines this for functions which it implements
4299 to always fail with ENOSYS. Some functions are actually named
4300 something starting with __ and the normal name is an alias. */
4301 #if defined (__stub_res_search) || defined (__stub___res_search)
4302 choke me
4303 #else
4304 char (*f) () = res_search;
4305 #endif
4306 #ifdef __cplusplus
4308 #endif
4311 main ()
4313 return f != res_search;
4315 return 0;
4317 _ACEOF
4318 rm -f conftest.$ac_objext conftest$ac_exeext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320 (eval $ac_link) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -s conftest$ac_exeext'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 (eval $ac_try) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_cv_func_res_search=yes
4331 else
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 ac_cv_func_res_search=no
4337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4339 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4340 echo "${ECHO_T}$ac_cv_func_res_search" >&6
4341 if test $ac_cv_func_res_search = yes; then
4342 HAVE_RESOLVER=1
4345 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4346 RESOLVER_LIBS=""
4347 else
4348 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
4349 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
4350 LIBS="-lresolv"
4351 cat >conftest.$ac_ext <<_ACEOF
4353 #include <netinet/in.h>
4354 #include <resolv.h>
4355 int main(int argc,char **argv){
4356 res_search (NULL, 0, 0, NULL, 0);
4358 _ACEOF
4359 rm -f conftest.$ac_objext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 HAVE_RESOLVER=1
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4377 rm -f conftest.$ac_objext conftest.$ac_ext
4378 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4379 echo "$as_me:$LINENO: result: yes" >&5
4380 echo "${ECHO_T}yes" >&6
4381 RESOLVER_LIBS="-lresolv"
4382 else
4383 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
4384 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
4385 if test "${ac_cv_search___res_search+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 ac_func_search_save_LIBS=$LIBS
4389 ac_cv_search___res_search=no
4390 cat >conftest.$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4398 /* Override any gcc2 internal prototype to avoid an error. */
4399 #ifdef __cplusplus
4400 extern "C"
4401 #endif
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4404 char __res_search ();
4406 main ()
4408 __res_search ();
4410 return 0;
4412 _ACEOF
4413 rm -f conftest.$ac_objext conftest$ac_exeext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415 (eval $ac_link) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } &&
4419 { ac_try='test -s conftest$ac_exeext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 ac_cv_search___res_search="none required"
4426 else
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4432 if test "$ac_cv_search___res_search" = no; then
4433 for ac_lib in resolv; do
4434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4435 cat >conftest.$ac_ext <<_ACEOF
4436 #line $LINENO "configure"
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 /* Override any gcc2 internal prototype to avoid an error. */
4444 #ifdef __cplusplus
4445 extern "C"
4446 #endif
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4449 char __res_search ();
4451 main ()
4453 __res_search ();
4455 return 0;
4457 _ACEOF
4458 rm -f conftest.$ac_objext conftest$ac_exeext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4460 (eval $ac_link) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try='test -s conftest$ac_exeext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 ac_cv_search___res_search="-l$ac_lib"
4471 break
4472 else
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4478 done
4480 LIBS=$ac_func_search_save_LIBS
4482 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4483 echo "${ECHO_T}$ac_cv_search___res_search" >&6
4484 if test "$ac_cv_search___res_search" != no; then
4485 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
4486 HAVE_RESOLVER=1
4492 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4494 cat >>confdefs.h <<\_ACEOF
4495 #define P_DNS 1
4496 _ACEOF
4503 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4504 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4505 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 ac_check_lib_save_LIBS=$LIBS
4509 LIBS="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4510 cat >conftest.$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4512 /* confdefs.h. */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4518 /* Override any gcc2 internal prototype to avoid an error. */
4519 #ifdef __cplusplus
4520 extern "C"
4521 #endif
4522 /* We use char because int might match the return type of a gcc2
4523 builtin and then its argument prototype would still apply. */
4524 char sasl_client_auth ();
4526 main ()
4528 sasl_client_auth ();
4530 return 0;
4532 _ACEOF
4533 rm -f conftest.$ac_objext conftest$ac_exeext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4535 (eval $ac_link) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } &&
4539 { ac_try='test -s conftest$ac_exeext'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
4545 ac_cv_lib_sasl_sasl_client_auth=yes
4546 else
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 ac_cv_lib_sasl_sasl_client_auth=no
4552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4553 LIBS=$ac_check_lib_save_LIBS
4555 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4556 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4557 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4558 HAS_SASL=1
4559 else
4560 HAS_SASL=
4563 if test ${HAS_SASL:-unset} = "unset" ; then
4564 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4565 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4566 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 ac_check_lib_save_LIBS=$LIBS
4570 LIBS="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4579 /* Override any gcc2 internal prototype to avoid an error. */
4580 #ifdef __cplusplus
4581 extern "C"
4582 #endif
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4585 char sasl_version ();
4587 main ()
4589 sasl_version ();
4591 return 0;
4593 _ACEOF
4594 rm -f conftest.$ac_objext conftest$ac_exeext
4595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4596 (eval $ac_link) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -s conftest$ac_exeext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_lib_sasl2_sasl_version=yes
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 ac_cv_lib_sasl2_sasl_version=no
4613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4614 LIBS=$ac_check_lib_save_LIBS
4616 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4617 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4618 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4619 HAS_SASL2=1
4620 else
4621 HAS_SASL2=
4626 if test ${HAS_SASL:-unset} != "unset" ; then
4627 HAS_SASL=1
4628 ENDLDLIBS="$ENDLDLIBS -lsasl"
4629 cat >>confdefs.h <<\_ACEOF
4630 #define P_SASL 1
4631 _ACEOF
4633 HAS_SASL=1
4635 elif test ${HAS_SASL2:-unset} != "unset" ; then
4636 HAS_SASL=1
4637 ENDLDLIBS="$ENDLDLIBS -lsasl2"
4638 cat >>confdefs.h <<\_ACEOF
4639 #define P_SASL 1
4640 _ACEOF
4642 HAS_SASL=1
4644 else
4645 HAS_SASL=0
4650 # Check whether --enable-openldap or --disable-openldap was given.
4651 if test "${enable_openldap+set}" = set; then
4652 enableval="$enable_openldap"
4653 openldap=$enableval
4656 if test "$openldap" = "no" ; then
4657 HAS_OPENLDAP=0
4659 cat >>confdefs.h <<\_ACEOF
4660 #define P_LDAP 0
4661 _ACEOF
4663 elif test $HAS_SASL = 0 ; then
4664 { echo "$as_me:$LINENO: OpenLDAP disabled as SASL is not available" >&5
4665 echo "$as_me: OpenLDAP disabled as SASL is not available" >&6;}
4666 else
4667 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4669 for ac_header in ldap.h
4671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4673 echo "$as_me:$LINENO: checking for $ac_header" >&5
4674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4680 else
4681 # Is the header compilable?
4682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4684 cat >conftest.$ac_ext <<_ACEOF
4685 #line $LINENO "configure"
4686 /* confdefs.h. */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 $ac_includes_default
4692 #include <$ac_header>
4693 _ACEOF
4694 rm -f conftest.$ac_objext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_header_compiler=yes
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4711 ac_header_compiler=no
4713 rm -f conftest.$ac_objext conftest.$ac_ext
4714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4715 echo "${ECHO_T}$ac_header_compiler" >&6
4717 # Is the header present?
4718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4720 cat >conftest.$ac_ext <<_ACEOF
4721 #line $LINENO "configure"
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 #include <$ac_header>
4728 _ACEOF
4729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } >/dev/null; then
4737 if test -s conftest.err; then
4738 ac_cpp_err=$ac_cxx_preproc_warn_flag
4739 else
4740 ac_cpp_err=
4742 else
4743 ac_cpp_err=yes
4745 if test -z "$ac_cpp_err"; then
4746 ac_header_preproc=yes
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 ac_header_preproc=no
4753 rm -f conftest.err conftest.$ac_ext
4754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4755 echo "${ECHO_T}$ac_header_preproc" >&6
4757 # So? What about this header?
4758 case $ac_header_compiler:$ac_header_preproc in
4759 yes:no )
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4765 cat <<\_ASBOX
4766 ## ------------------------------------ ##
4767 ## Report this to bug-autoconf@gnu.org. ##
4768 ## ------------------------------------ ##
4769 _ASBOX
4771 sed "s/^/$as_me: WARNING: /" >&2
4773 no:yes )
4774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4781 cat <<\_ASBOX
4782 ## ------------------------------------ ##
4783 ## Report this to bug-autoconf@gnu.org. ##
4784 ## ------------------------------------ ##
4785 _ASBOX
4787 sed "s/^/$as_me: WARNING: /" >&2
4789 esac
4790 echo "$as_me:$LINENO: checking for $ac_header" >&5
4791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795 eval "$as_ac_Header=$ac_header_preproc"
4797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4802 cat >>confdefs.h <<_ACEOF
4803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4804 _ACEOF
4805 HAS_OPENLDAP=1
4808 done
4811 if test "${OSTYPE:-unknown}" = "solaris"; then
4812 OPENLDAPSYSLIBS=-lposix4
4815 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4816 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4817 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4818 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821 ac_check_lib_save_LIBS=$LIBS
4822 LIBS="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4823 cat >conftest.$ac_ext <<_ACEOF
4824 #line $LINENO "configure"
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4831 /* Override any gcc2 internal prototype to avoid an error. */
4832 #ifdef __cplusplus
4833 extern "C"
4834 #endif
4835 /* We use char because int might match the return type of a gcc2
4836 builtin and then its argument prototype would still apply. */
4837 char ldap_open ();
4839 main ()
4841 ldap_open ();
4843 return 0;
4845 _ACEOF
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848 (eval $ac_link) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
4852 { ac_try='test -s conftest$ac_exeext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_lib_ldap_ldap_open=yes
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 ac_cv_lib_ldap_ldap_open=no
4865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4866 LIBS=$ac_check_lib_save_LIBS
4868 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4869 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4870 if test $ac_cv_lib_ldap_ldap_open = yes; then
4871 HAS_OPENLDAP=1
4872 else
4873 HAS_OPENLDAP=
4876 else
4877 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
4878 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
4879 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 test "$cross_compiling" = yes &&
4883 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4884 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4885 { (exit 1); exit 1; }; }
4886 if test -r "/usr/local/include/ldap.h"; then
4887 ac_cv_file__usr_local_include_ldap_h=yes
4888 else
4889 ac_cv_file__usr_local_include_ldap_h=no
4892 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
4893 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
4894 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
4895 HAS_OPENLDAP=1
4898 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4899 OPENLDAPINCLUDEDIR=/usr/local/include
4900 OPENLDAPLIBDIR=/usr/local/lib
4901 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4902 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4903 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 ac_check_lib_save_LIBS=$LIBS
4907 LIBS="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4908 cat >conftest.$ac_ext <<_ACEOF
4909 #line $LINENO "configure"
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 #ifdef __cplusplus
4918 extern "C"
4919 #endif
4920 /* We use char because int might match the return type of a gcc2
4921 builtin and then its argument prototype would still apply. */
4922 char ldap_open ();
4924 main ()
4926 ldap_open ();
4928 return 0;
4930 _ACEOF
4931 rm -f conftest.$ac_objext conftest$ac_exeext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933 (eval $ac_link) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } &&
4937 { ac_try='test -s conftest$ac_exeext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 (eval $ac_try) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 ac_cv_lib_ldap_ldap_open=yes
4944 else
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4948 ac_cv_lib_ldap_ldap_open=no
4950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4951 LIBS=$ac_check_lib_save_LIBS
4953 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4954 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4955 if test $ac_cv_lib_ldap_ldap_open = yes; then
4956 HAS_OPENLDAP=1
4957 else
4958 HAS_OPENLDAP=
4965 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4966 HAS_OPENLDAP=1
4969 cat >>confdefs.h <<\_ACEOF
4970 #define P_LDAP 1
4971 _ACEOF
4973 ENDLDLIBS="-lldap -lldap_r -llber $ENDLDLIBS"
4974 if test "${OPENLDAPINCLUDEDIR}unset" != "unset" ; then
4975 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
4977 if test "${OPENLDAPLIBDIR}unset" != "unset" ; then
4978 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
4986 # Check whether --enable-openssl or --disable-openssl was given.
4987 if test "${enable_openssl+set}" = set; then
4988 enableval="$enable_openssl"
4989 openssl=$enableval
4992 if test "$openssl" = "no" ; then
4993 cat >>confdefs.h <<\_ACEOF
4994 #define P_SSL 0
4995 _ACEOF
4997 HAS_OPENSSL=0
4999 else
5001 if test ${OPENSSLDIR:-unset} != "unset" ; then
5002 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
5003 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
5004 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
5005 echo "$as_me:$LINENO: result: yes" >&5
5006 echo "${ECHO_T}yes" >&6
5007 SSLHDR=1
5008 SSLINCLUDEDIR="${OPENSSLDIR}/include"
5009 SSLLIBDIR="${OPENSSLDIR}/lib"
5010 else
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5017 if test "${SSLHDR:-unset}" = "unset" ; then
5019 for ac_header in openssl/ssl.h
5021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5023 echo "$as_me:$LINENO: checking for $ac_header" >&5
5024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5030 else
5031 # Is the header compilable?
5032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5034 cat >conftest.$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_includes_default
5042 #include <$ac_header>
5043 _ACEOF
5044 rm -f conftest.$ac_objext
5045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5046 (eval $ac_compile) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
5050 { ac_try='test -s conftest.$ac_objext'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 (eval $ac_try) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; }; then
5056 ac_header_compiler=yes
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 ac_header_compiler=no
5063 rm -f conftest.$ac_objext conftest.$ac_ext
5064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5065 echo "${ECHO_T}$ac_header_compiler" >&6
5067 # Is the header present?
5068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5070 cat >conftest.$ac_ext <<_ACEOF
5071 #line $LINENO "configure"
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <$ac_header>
5078 _ACEOF
5079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev/null; then
5087 if test -s conftest.err; then
5088 ac_cpp_err=$ac_cxx_preproc_warn_flag
5089 else
5090 ac_cpp_err=
5092 else
5093 ac_cpp_err=yes
5095 if test -z "$ac_cpp_err"; then
5096 ac_header_preproc=yes
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 ac_header_preproc=no
5103 rm -f conftest.err conftest.$ac_ext
5104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5105 echo "${ECHO_T}$ac_header_preproc" >&6
5107 # So? What about this header?
5108 case $ac_header_compiler:$ac_header_preproc in
5109 yes:no )
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5115 cat <<\_ASBOX
5116 ## ------------------------------------ ##
5117 ## Report this to bug-autoconf@gnu.org. ##
5118 ## ------------------------------------ ##
5119 _ASBOX
5121 sed "s/^/$as_me: WARNING: /" >&2
5123 no:yes )
5124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5131 cat <<\_ASBOX
5132 ## ------------------------------------ ##
5133 ## Report this to bug-autoconf@gnu.org. ##
5134 ## ------------------------------------ ##
5135 _ASBOX
5137 sed "s/^/$as_me: WARNING: /" >&2
5139 esac
5140 echo "$as_me:$LINENO: checking for $ac_header" >&5
5141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 eval "$as_ac_Header=$ac_header_preproc"
5147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5152 cat >>confdefs.h <<_ACEOF
5153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5154 _ACEOF
5155 SSLHDR=1
5158 done
5160 if test "${SSLHDR:-unset}" = "unset" ; then
5161 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
5162 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
5163 cat >conftest.$ac_ext <<_ACEOF
5164 #define OPENSSL_NO_KRB5
5165 #include <openssl/ssl.h>
5166 int main(int argc,char **argv){}
5167 _ACEOF
5168 rm -f conftest.$ac_objext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170 (eval $ac_compile) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -s conftest.$ac_objext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 SSLHDR=1
5181 else
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5186 rm -f conftest.$ac_objext conftest.$ac_ext
5187 if test ${SSLHDR:-unset} != "unset" ; then
5188 echo "$as_me:$LINENO: result: yes" >&5
5189 echo "${ECHO_T}yes" >&6
5190 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5191 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5192 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5200 if test "${SSLHDR:-unset}" = "unset" ; then
5202 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
5203 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
5204 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
5205 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
5206 echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5208 else
5209 cat >conftest.$ac_ext <<_ACEOF
5210 #include "${openssl_dir}/include/openssl/ssl.h"
5211 int main(int argc,char **argv){ return 0; }
5212 _ACEOF
5213 $CXX $CXXFLAGS -I${openssl_dir}/include -c conftest.cc > /dev/null 2>&1
5214 if test $? = 0 ; then
5215 echo "$as_me:$LINENO: result: yes" >&5
5216 echo "${ECHO_T}yes" >&6
5217 SSLHDR=1
5218 SSLCCFLAGS=""
5219 SSLINCLUDEDIR="${openssl_dir}/include"
5220 SSLLIBDIR="${openssl_dir}/lib"
5221 break
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5225 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
5226 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
5227 cat >conftest.$ac_ext <<_ACEOF
5228 #define OPENSSL_NO_KRB5
5229 #include "${openssl_dir}/include/openssl/ssl.h"
5230 int main(int argc,char **argv){}
5231 _ACEOF
5232 $CXX $CXXFLAGS -I${openssl_dir}/openssl/include -c conftest.cc > /dev/null 2>&1
5233 if test $? = 0 ; then
5234 echo "$as_me:$LINENO: result: yes" >&5
5235 echo "${ECHO_T}yes" >&6
5236 SSLHDR=1
5237 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5238 SSLINCLUDEDIR="${openssl_dir}/include"
5239 SSLLIBDIR="${openssl_dir}/lib"
5240 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5241 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5242 break
5243 else
5244 echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5249 done
5252 if test ${SSLHDR:-unset} != "unset" ; then
5253 HAS_OPENSSL=1
5256 cat >>confdefs.h <<\_ACEOF
5257 #define P_SSL 1
5258 _ACEOF
5260 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
5261 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
5263 if test ${SSLLIBDIR:-unset} != "unset" ; then
5264 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
5266 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
5267 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
5276 # Check whether --enable-expat or --disable-expat was given.
5277 if test "${enable_expat+set}" = set; then
5278 enableval="$enable_expat"
5279 expat=$enableval
5282 if test "$expat" = "no" ; then
5283 HAS_EXPAT=0
5285 cat >>confdefs.h <<\_ACEOF
5286 #define P_EXPAT 0
5287 _ACEOF
5289 else
5292 for ac_header in expat.h
5294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5296 echo "$as_me:$LINENO: checking for $ac_header" >&5
5297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5303 else
5304 # Is the header compilable?
5305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5308 #line $LINENO "configure"
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 #include <$ac_header>
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try='test -s conftest.$ac_objext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_header_compiler=yes
5330 else
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 ac_header_compiler=no
5336 rm -f conftest.$ac_objext conftest.$ac_ext
5337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5338 echo "${ECHO_T}$ac_header_compiler" >&6
5340 # Is the header present?
5341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5343 cat >conftest.$ac_ext <<_ACEOF
5344 #line $LINENO "configure"
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 #include <$ac_header>
5351 _ACEOF
5352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } >/dev/null; then
5360 if test -s conftest.err; then
5361 ac_cpp_err=$ac_cxx_preproc_warn_flag
5362 else
5363 ac_cpp_err=
5365 else
5366 ac_cpp_err=yes
5368 if test -z "$ac_cpp_err"; then
5369 ac_header_preproc=yes
5370 else
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5374 ac_header_preproc=no
5376 rm -f conftest.err conftest.$ac_ext
5377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5378 echo "${ECHO_T}$ac_header_preproc" >&6
5380 # So? What about this header?
5381 case $ac_header_compiler:$ac_header_preproc in
5382 yes:no )
5383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5388 cat <<\_ASBOX
5389 ## ------------------------------------ ##
5390 ## Report this to bug-autoconf@gnu.org. ##
5391 ## ------------------------------------ ##
5392 _ASBOX
5394 sed "s/^/$as_me: WARNING: /" >&2
5396 no:yes )
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5404 cat <<\_ASBOX
5405 ## ------------------------------------ ##
5406 ## Report this to bug-autoconf@gnu.org. ##
5407 ## ------------------------------------ ##
5408 _ASBOX
5410 sed "s/^/$as_me: WARNING: /" >&2
5412 esac
5413 echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418 eval "$as_ac_Header=$ac_header_preproc"
5420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5425 cat >>confdefs.h <<_ACEOF
5426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5427 _ACEOF
5428 HAS_EXPAT=1
5431 done
5433 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5434 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
5435 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
5436 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439 ac_check_lib_save_LIBS=$LIBS
5440 LIBS="-lexpat $LIBS"
5441 cat >conftest.$ac_ext <<_ACEOF
5442 #line $LINENO "configure"
5443 /* confdefs.h. */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5449 /* Override any gcc2 internal prototype to avoid an error. */
5450 #ifdef __cplusplus
5451 extern "C"
5452 #endif
5453 /* We use char because int might match the return type of a gcc2
5454 builtin and then its argument prototype would still apply. */
5455 char XML_ParserCreate ();
5457 main ()
5459 XML_ParserCreate ();
5461 return 0;
5463 _ACEOF
5464 rm -f conftest.$ac_objext conftest$ac_exeext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -s conftest$ac_exeext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_lib_expat_XML_ParserCreate=yes
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cv_lib_expat_XML_ParserCreate=no
5483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5484 LIBS=$ac_check_lib_save_LIBS
5486 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5487 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
5488 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
5489 HAS_EXPAT=1
5490 else
5491 HAS_EXPAT=
5494 else
5495 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
5496 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
5497 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500 test "$cross_compiling" = yes &&
5501 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5502 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5503 { (exit 1); exit 1; }; }
5504 if test -r "/usr/local/include/expat.h"; then
5505 ac_cv_file__usr_local_include_expat_h=yes
5506 else
5507 ac_cv_file__usr_local_include_expat_h=no
5510 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
5511 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
5512 if test $ac_cv_file__usr_local_include_expat_h = yes; then
5513 HAS_EXPAT=1
5516 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5517 EXPATINCLUDEDIR=/usr/local/include
5518 EXPATLIBDIR=/usr/local/lib
5522 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5523 HAS_EXPAT=1
5526 cat >>confdefs.h <<\_ACEOF
5527 #define P_EXPAT 1
5528 _ACEOF
5530 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
5531 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
5533 if test ${EXPATLIBDIR:-unset} != "unset" ; then
5534 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
5536 ENDLDLIBS="$ENDLDLIBS -lexpat"
5546 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5547 if test "${enable_ipv6+set}" = set; then
5548 enableval="$enable_ipv6"
5549 ipv6=$enableval
5552 if test "$ipv6" = "no" ; then
5553 cat >>confdefs.h <<\_ACEOF
5554 #define P_HAS_IPV6 0
5555 _ACEOF
5557 HAS_IPV6=0
5559 else
5560 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
5561 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
5562 if test "${HAS_IPV6+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 cat >conftest.$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5567 /* confdefs.h. */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 #include <sys/types.h>
5573 #include <netinet/in.h>
5575 main ()
5577 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5579 return 0;
5581 _ACEOF
5582 rm -f conftest.$ac_objext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584 (eval $ac_compile) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try='test -s conftest.$ac_objext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 HAS_IPV6=yes
5595 else
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 HAS_IPV6=no
5601 rm -f conftest.$ac_objext conftest.$ac_ext
5603 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
5604 echo "${ECHO_T}$HAS_IPV6" >&6
5606 if test $HAS_IPV6 = yes ; then
5608 cat >>confdefs.h <<\_ACEOF
5609 #define P_HAS_IPV6 1
5610 _ACEOF
5617 # Check whether --enable-qos or --disable-qos was given.
5618 if test "${enable_qos+set}" = set; then
5619 enableval="$enable_qos"
5620 qos=$enableval
5623 if test "$qos" = "no" ; then
5625 cat >>confdefs.h <<\_ACEOF
5626 #define P_HAS_QOS 0
5627 _ACEOF
5629 else
5631 cat >>confdefs.h <<\_ACEOF
5632 #define P_HAS_QOS 1
5633 _ACEOF
5640 # Check whether --enable-sdl or --disable-sdl was given.
5641 if test "${enable_sdl+set}" = set; then
5642 enableval="$enable_sdl"
5643 sdl=$enableval
5646 if test "$sdl" = "no" ; then
5647 HAS_SDL=0
5649 cat >>confdefs.h <<\_ACEOF
5650 #define P_SDL 0
5651 _ACEOF
5653 else
5654 if test "${SDLLIB:-unset}" = "unset" ; then
5655 SDLLIB=SDL
5659 for ac_header in SDL/SDL.h
5661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5663 echo "$as_me:$LINENO: checking for $ac_header" >&5
5664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5670 else
5671 # Is the header compilable?
5672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
5682 #include <$ac_header>
5683 _ACEOF
5684 rm -f conftest.$ac_objext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -s conftest.$ac_objext'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 (eval $ac_try) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
5696 ac_header_compiler=yes
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5701 ac_header_compiler=no
5703 rm -f conftest.$ac_objext conftest.$ac_ext
5704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5705 echo "${ECHO_T}$ac_header_compiler" >&6
5707 # Is the header present?
5708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5710 cat >conftest.$ac_ext <<_ACEOF
5711 #line $LINENO "configure"
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <$ac_header>
5718 _ACEOF
5719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } >/dev/null; then
5727 if test -s conftest.err; then
5728 ac_cpp_err=$ac_cxx_preproc_warn_flag
5729 else
5730 ac_cpp_err=
5732 else
5733 ac_cpp_err=yes
5735 if test -z "$ac_cpp_err"; then
5736 ac_header_preproc=yes
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 ac_header_preproc=no
5743 rm -f conftest.err conftest.$ac_ext
5744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5745 echo "${ECHO_T}$ac_header_preproc" >&6
5747 # So? What about this header?
5748 case $ac_header_compiler:$ac_header_preproc in
5749 yes:no )
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5755 cat <<\_ASBOX
5756 ## ------------------------------------ ##
5757 ## Report this to bug-autoconf@gnu.org. ##
5758 ## ------------------------------------ ##
5759 _ASBOX
5761 sed "s/^/$as_me: WARNING: /" >&2
5763 no:yes )
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5771 cat <<\_ASBOX
5772 ## ------------------------------------ ##
5773 ## Report this to bug-autoconf@gnu.org. ##
5774 ## ------------------------------------ ##
5775 _ASBOX
5777 sed "s/^/$as_me: WARNING: /" >&2
5779 esac
5780 echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785 eval "$as_ac_Header=$ac_header_preproc"
5787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5792 cat >>confdefs.h <<_ACEOF
5793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5794 _ACEOF
5795 HAS_SDL=1
5798 done
5800 if test "${HAS_SDL:-unset}" != "unset" ; then
5801 if test "${X11LIBDIR:-unset}" == "unset" ; then
5802 X11LIBDIR=/usr/X11R6/lib
5804 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5805 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5806 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 ac_check_lib_save_LIBS=$LIBS
5810 LIBS="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext -laa $LIBS"
5811 cat >conftest.$ac_ext <<_ACEOF
5812 #line $LINENO "configure"
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5819 /* Override any gcc2 internal prototype to avoid an error. */
5820 #ifdef __cplusplus
5821 extern "C"
5822 #endif
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5825 char SDL_CreateYUVOverlay ();
5827 main ()
5829 SDL_CreateYUVOverlay ();
5831 return 0;
5833 _ACEOF
5834 rm -f conftest.$ac_objext conftest$ac_exeext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5836 (eval $ac_link) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try='test -s conftest$ac_exeext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 (eval $ac_try) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
5853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5854 LIBS=$ac_check_lib_save_LIBS
5856 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5857 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5858 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5859 HAS_SDL=1
5860 else
5861 HAS_SDL=
5866 if test "${HAS_SDL:-unset}" = "unset" ; then
5867 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5868 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5869 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872 test "$cross_compiling" = yes &&
5873 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5874 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5875 { (exit 1); exit 1; }; }
5876 if test -r "/usr/local/include/SDL11/SDL.h"; then
5877 ac_cv_file__usr_local_include_SDL11_SDL_h=yes
5878 else
5879 ac_cv_file__usr_local_include_SDL11_SDL_h=no
5882 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
5883 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
5884 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
5885 HAS_SDL=1
5888 if test "${HAS_SDL:-unset}" != "unset" ; then
5889 SDLLIB=SDL-1.1
5893 if test "${HAS_SDL:-unset}" != "unset" ; then
5894 HAS_SDL=1
5897 cat >>confdefs.h <<\_ACEOF
5898 #define P_SDL 1
5899 _ACEOF
5901 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
5902 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
5904 if test ${SDLLIBDIR:-unset} != "unset" ; then
5905 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
5907 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
5913 # Check whether --enable-video or --disable-video was given.
5914 if test "${enable_video+set}" = set; then
5915 enableval="$enable_video"
5916 video=$enableval
5919 HAS_VIDEO_CAPTURE=0
5920 if test "$HAS_PLUGINS" = "0" ; then
5921 if test "$video" != "no" ; then
5922 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5923 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5924 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5925 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5929 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5930 else
5931 # Is the header compilable?
5932 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
5933 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
5934 cat >conftest.$ac_ext <<_ACEOF
5935 #line $LINENO "configure"
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 $ac_includes_default
5942 #include <linux/videodev.h>
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5946 (eval $ac_compile) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 ac_header_compiler=yes
5957 else
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 ac_header_compiler=no
5963 rm -f conftest.$ac_objext conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5965 echo "${ECHO_T}$ac_header_compiler" >&6
5967 # Is the header present?
5968 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
5969 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
5970 cat >conftest.$ac_ext <<_ACEOF
5971 #line $LINENO "configure"
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <linux/videodev.h>
5978 _ACEOF
5979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } >/dev/null; then
5987 if test -s conftest.err; then
5988 ac_cpp_err=$ac_cxx_preproc_warn_flag
5989 else
5990 ac_cpp_err=
5992 else
5993 ac_cpp_err=yes
5995 if test -z "$ac_cpp_err"; then
5996 ac_header_preproc=yes
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_header_preproc=no
6003 rm -f conftest.err conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6005 echo "${ECHO_T}$ac_header_preproc" >&6
6007 # So? What about this header?
6008 case $ac_header_compiler:$ac_header_preproc in
6009 yes:no )
6010 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6011 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6013 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6015 cat <<\_ASBOX
6016 ## ------------------------------------ ##
6017 ## Report this to bug-autoconf@gnu.org. ##
6018 ## ------------------------------------ ##
6019 _ASBOX
6021 sed "s/^/$as_me: WARNING: /" >&2
6023 no:yes )
6024 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
6025 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
6027 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6029 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6031 cat <<\_ASBOX
6032 ## ------------------------------------ ##
6033 ## Report this to bug-autoconf@gnu.org. ##
6034 ## ------------------------------------ ##
6035 _ASBOX
6037 sed "s/^/$as_me: WARNING: /" >&2
6039 esac
6040 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6041 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6042 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 ac_cv_header_linux_videodev_h=$ac_header_preproc
6047 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6048 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6051 if test $ac_cv_header_linux_videodev_h = yes; then
6052 HAS_VIDEO_CAPTURE=1
6056 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
6057 { echo "$as_me:$LINENO: No Video Capture support" >&5
6058 echo "$as_me: No Video Capture support" >&6;}
6060 cat >>confdefs.h <<\_ACEOF
6061 #define NO_VIDEO_CAPTURE
6062 _ACEOF
6069 # Check whether --enable-alsa or --disable-alsa was given.
6070 if test "${enable_alsa+set}" = set; then
6071 enableval="$enable_alsa"
6072 enable_alsa=$enableval
6075 HAS_ALSA=0
6076 if test "$HAS_PLUGINS" = "0" ; then
6077 if test "$enable_alsa" != "no" ; then
6078 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6079 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6080 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6081 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6085 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6086 else
6087 # Is the header compilable?
6088 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
6089 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
6090 cat >conftest.$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 $ac_includes_default
6098 #include <alsa/asoundlib.h>
6099 _ACEOF
6100 rm -f conftest.$ac_objext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_header_compiler=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 ac_header_compiler=no
6119 rm -f conftest.$ac_objext conftest.$ac_ext
6120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6121 echo "${ECHO_T}$ac_header_compiler" >&6
6123 # Is the header present?
6124 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
6125 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <alsa/asoundlib.h>
6134 _ACEOF
6135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev/null; then
6143 if test -s conftest.err; then
6144 ac_cpp_err=$ac_cxx_preproc_warn_flag
6145 else
6146 ac_cpp_err=
6148 else
6149 ac_cpp_err=yes
6151 if test -z "$ac_cpp_err"; then
6152 ac_header_preproc=yes
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 ac_header_preproc=no
6159 rm -f conftest.err conftest.$ac_ext
6160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6161 echo "${ECHO_T}$ac_header_preproc" >&6
6163 # So? What about this header?
6164 case $ac_header_compiler:$ac_header_preproc in
6165 yes:no )
6166 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6167 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6169 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6171 cat <<\_ASBOX
6172 ## ------------------------------------ ##
6173 ## Report this to bug-autoconf@gnu.org. ##
6174 ## ------------------------------------ ##
6175 _ASBOX
6177 sed "s/^/$as_me: WARNING: /" >&2
6179 no:yes )
6180 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
6181 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6183 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6185 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6187 cat <<\_ASBOX
6188 ## ------------------------------------ ##
6189 ## Report this to bug-autoconf@gnu.org. ##
6190 ## ------------------------------------ ##
6191 _ASBOX
6193 sed "s/^/$as_me: WARNING: /" >&2
6195 esac
6196 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6197 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6198 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
6203 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6204 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6207 if test $ac_cv_header_alsa_asoundlib_h = yes; then
6208 HAS_ALSA=1
6212 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
6213 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
6214 if test "${HAS_ALSA}" = "1"; then
6215 echo "$as_me:$LINENO: result: yes" >&5
6216 echo "${ECHO_T}yes" >&6
6217 ENDLDLIBS="$ENDLDLIBS -lasound"
6218 else
6219 echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6226 if test "$OSTYPE" = "solaris" ; then
6227 USE_SYSTEM_SWAB=
6228 else
6229 echo "$as_me:$LINENO: checking for swab" >&5
6230 echo $ECHO_N "checking for swab... $ECHO_C" >&6
6231 if test "${ac_cv_func_swab+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 #line $LINENO "configure"
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 /* System header to define __stub macros and hopefully few prototypes,
6242 which can conflict with char swab (); below.
6243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6244 <limits.h> exists even on freestanding compilers. */
6245 #ifdef __STDC__
6246 # include <limits.h>
6247 #else
6248 # include <assert.h>
6249 #endif
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 #ifdef __cplusplus
6252 extern "C"
6254 #endif
6255 /* We use char because int might match the return type of a gcc2
6256 builtin and then its argument prototype would still apply. */
6257 char swab ();
6258 /* The GNU C library defines this for functions which it implements
6259 to always fail with ENOSYS. Some functions are actually named
6260 something starting with __ and the normal name is an alias. */
6261 #if defined (__stub_swab) || defined (__stub___swab)
6262 choke me
6263 #else
6264 char (*f) () = swab;
6265 #endif
6266 #ifdef __cplusplus
6268 #endif
6271 main ()
6273 return f != swab;
6275 return 0;
6277 _ACEOF
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -s conftest$ac_exeext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 ac_cv_func_swab=yes
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_cv_func_swab=no
6297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6299 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
6300 echo "${ECHO_T}$ac_cv_func_swab" >&6
6301 if test $ac_cv_func_swab = yes; then
6302 USE_SYSTEM_SWAB=1
6306 if test "x$ac_cv_func_swab" = "xyes" ; then
6308 cat >>confdefs.h <<\_ACEOF
6309 #define USE_SYSTEM_SWAB
6310 _ACEOF
6315 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
6316 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
6317 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
6321 if test "${OSTYPE}" != "Darwin" ; then
6322 if test ${HAS_LIBDL} = yes ; then
6323 ENDLDLIBS="$ENDLDLIBS -ldl"
6333 ac_config_files="$ac_config_files make/ptbuildopts.mak"
6335 ac_config_files="$ac_config_files make/ptlib-config"
6337 ac_config_files="$ac_config_files Makefile"
6340 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
6341 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
6344 cat >confcache <<\_ACEOF
6345 # This file is a shell script that caches the results of configure
6346 # tests run on this system so they can be shared between configure
6347 # scripts and configure runs, see configure's option --config-cache.
6348 # It is not useful on other systems. If it contains results you don't
6349 # want to keep, you may remove or edit it.
6351 # config.status only pays attention to the cache file if you give it
6352 # the --recheck option to rerun configure.
6354 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6355 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6356 # following values.
6358 _ACEOF
6360 # The following way of writing the cache mishandles newlines in values,
6361 # but we know of no workaround that is simple, portable, and efficient.
6362 # So, don't put newlines in cache variables' values.
6363 # Ultrix sh set writes to stderr and can't be redirected directly,
6364 # and sets the high bit in the cache file unless we assign to the vars.
6366 (set) 2>&1 |
6367 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6368 *ac_space=\ *)
6369 # `set' does not quote correctly, so add quotes (double-quote
6370 # substitution turns \\\\ into \\, and sed turns \\ into \).
6371 sed -n \
6372 "s/'/'\\\\''/g;
6373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6376 # `set' quotes correctly as required by POSIX, so do not add quotes.
6377 sed -n \
6378 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6380 esac;
6382 sed '
6383 t clear
6384 : clear
6385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6386 t end
6387 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6388 : end' >>confcache
6389 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6390 if test -w $cache_file; then
6391 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6392 cat confcache >$cache_file
6393 else
6394 echo "not updating unwritable cache $cache_file"
6397 rm -f confcache
6399 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6400 # Let make expand exec_prefix.
6401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6403 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6404 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6405 # trailing colons and then remove the whole line if VPATH becomes empty
6406 # (actually we leave an empty line to preserve line numbers).
6407 if test "x$srcdir" = x.; then
6408 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6409 s/:*\$(srcdir):*/:/;
6410 s/:*\${srcdir}:*/:/;
6411 s/:*@srcdir@:*/:/;
6412 s/^\([^=]*=[ ]*\):*/\1/;
6413 s/:*$//;
6414 s/^[^=]*=[ ]*$//;
6418 DEFS=-DHAVE_CONFIG_H
6420 ac_libobjs=
6421 ac_ltlibobjs=
6422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6423 # 1. Remove the extension, and $U if already installed.
6424 ac_i=`echo "$ac_i" |
6425 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6426 # 2. Add them.
6427 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6428 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6429 done
6430 LIBOBJS=$ac_libobjs
6432 LTLIBOBJS=$ac_ltlibobjs
6436 : ${CONFIG_STATUS=./config.status}
6437 ac_clean_files_save=$ac_clean_files
6438 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6439 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6440 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6441 cat >$CONFIG_STATUS <<_ACEOF
6442 #! $SHELL
6443 # Generated by $as_me.
6444 # Run this file to recreate the current configuration.
6445 # Compiler output produced by configure, useful for debugging
6446 # configure, is in config.log if it exists.
6448 debug=false
6449 ac_cs_recheck=false
6450 ac_cs_silent=false
6451 SHELL=\${CONFIG_SHELL-$SHELL}
6452 _ACEOF
6454 cat >>$CONFIG_STATUS <<\_ACEOF
6455 ## --------------------- ##
6456 ## M4sh Initialization. ##
6457 ## --------------------- ##
6459 # Be Bourne compatible
6460 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6461 emulate sh
6462 NULLCMD=:
6463 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6464 # is contrary to our usage. Disable this feature.
6465 alias -g '${1+"$@"}'='"$@"'
6466 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6467 set -o posix
6470 # Support unset when possible.
6471 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6472 as_unset=unset
6473 else
6474 as_unset=false
6478 # Work around bugs in pre-3.0 UWIN ksh.
6479 $as_unset ENV MAIL MAILPATH
6480 PS1='$ '
6481 PS2='> '
6482 PS4='+ '
6484 # NLS nuisances.
6485 for as_var in \
6486 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6487 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6488 LC_TELEPHONE LC_TIME
6490 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6491 eval $as_var=C; export $as_var
6492 else
6493 $as_unset $as_var
6495 done
6497 # Required to use basename.
6498 if expr a : '\(a\)' >/dev/null 2>&1; then
6499 as_expr=expr
6500 else
6501 as_expr=false
6504 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6505 as_basename=basename
6506 else
6507 as_basename=false
6511 # Name of the executable.
6512 as_me=`$as_basename "$0" ||
6513 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6514 X"$0" : 'X\(//\)$' \| \
6515 X"$0" : 'X\(/\)$' \| \
6516 . : '\(.\)' 2>/dev/null ||
6517 echo X/"$0" |
6518 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6519 /^X\/\(\/\/\)$/{ s//\1/; q; }
6520 /^X\/\(\/\).*/{ s//\1/; q; }
6521 s/.*/./; q'`
6524 # PATH needs CR, and LINENO needs CR and PATH.
6525 # Avoid depending upon Character Ranges.
6526 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6527 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6528 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6529 as_cr_digits='0123456789'
6530 as_cr_alnum=$as_cr_Letters$as_cr_digits
6532 # The user is always right.
6533 if test "${PATH_SEPARATOR+set}" != set; then
6534 echo "#! /bin/sh" >conf$$.sh
6535 echo "exit 0" >>conf$$.sh
6536 chmod +x conf$$.sh
6537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6538 PATH_SEPARATOR=';'
6539 else
6540 PATH_SEPARATOR=:
6542 rm -f conf$$.sh
6546 as_lineno_1=$LINENO
6547 as_lineno_2=$LINENO
6548 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6549 test "x$as_lineno_1" != "x$as_lineno_2" &&
6550 test "x$as_lineno_3" = "x$as_lineno_2" || {
6551 # Find who we are. Look in the path if we contain no path at all
6552 # relative or not.
6553 case $0 in
6554 *[\\/]* ) as_myself=$0 ;;
6555 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6561 done
6564 esac
6565 # We did not find ourselves, most probably we were run as `sh COMMAND'
6566 # in which case we are not to be found in the path.
6567 if test "x$as_myself" = x; then
6568 as_myself=$0
6570 if test ! -f "$as_myself"; then
6571 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6572 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6573 { (exit 1); exit 1; }; }
6575 case $CONFIG_SHELL in
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
6582 for as_base in sh bash ksh sh5; do
6583 case $as_dir in
6585 if ("$as_dir/$as_base" -c '
6586 as_lineno_1=$LINENO
6587 as_lineno_2=$LINENO
6588 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6589 test "x$as_lineno_1" != "x$as_lineno_2" &&
6590 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6591 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6592 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6593 CONFIG_SHELL=$as_dir/$as_base
6594 export CONFIG_SHELL
6595 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6596 fi;;
6597 esac
6598 done
6599 done
6601 esac
6603 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6604 # uniformly replaced by the line number. The first 'sed' inserts a
6605 # line-number line before each line; the second 'sed' does the real
6606 # work. The second script uses 'N' to pair each line-number line
6607 # with the numbered line, and appends trailing '-' during
6608 # substitution so that $LINENO is not a special case at line end.
6609 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6610 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6611 sed '=' <$as_myself |
6612 sed '
6614 s,$,-,
6615 : loop
6616 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6617 t loop
6618 s,-$,,
6619 s,^['$as_cr_digits']*\n,,
6620 ' >$as_me.lineno &&
6621 chmod +x $as_me.lineno ||
6622 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6623 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6624 { (exit 1); exit 1; }; }
6626 # Don't try to exec as it changes $[0], causing all sort of problems
6627 # (the dirname of $[0] is not the place where we might find the
6628 # original and so on. Autoconf is especially sensible to this).
6629 . ./$as_me.lineno
6630 # Exit status is that of the last command.
6631 exit
6635 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6636 *c*,-n*) ECHO_N= ECHO_C='
6637 ' ECHO_T=' ' ;;
6638 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6639 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6640 esac
6642 if expr a : '\(a\)' >/dev/null 2>&1; then
6643 as_expr=expr
6644 else
6645 as_expr=false
6648 rm -f conf$$ conf$$.exe conf$$.file
6649 echo >conf$$.file
6650 if ln -s conf$$.file conf$$ 2>/dev/null; then
6651 # We could just check for DJGPP; but this test a) works b) is more generic
6652 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6653 if test -f conf$$.exe; then
6654 # Don't use ln at all; we don't have any links
6655 as_ln_s='cp -p'
6656 else
6657 as_ln_s='ln -s'
6659 elif ln conf$$.file conf$$ 2>/dev/null; then
6660 as_ln_s=ln
6661 else
6662 as_ln_s='cp -p'
6664 rm -f conf$$ conf$$.exe conf$$.file
6666 if mkdir -p . 2>/dev/null; then
6667 as_mkdir_p=:
6668 else
6669 as_mkdir_p=false
6672 as_executable_p="test -f"
6674 # Sed expression to map a string onto a valid CPP name.
6675 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6677 # Sed expression to map a string onto a valid variable name.
6678 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6681 # IFS
6682 # We need space, tab and new line, in precisely that order.
6683 as_nl='
6685 IFS=" $as_nl"
6687 # CDPATH.
6688 $as_unset CDPATH
6690 exec 6>&1
6692 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6693 # report actual input values of CONFIG_FILES etc. instead of their
6694 # values after options handling. Logging --version etc. is OK.
6695 exec 5>>config.log
6697 echo
6698 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6699 ## Running $as_me. ##
6700 _ASBOX
6701 } >&5
6702 cat >&5 <<_CSEOF
6704 This file was extended by $as_me, which was
6705 generated by GNU Autoconf 2.57. Invocation command line was
6707 CONFIG_FILES = $CONFIG_FILES
6708 CONFIG_HEADERS = $CONFIG_HEADERS
6709 CONFIG_LINKS = $CONFIG_LINKS
6710 CONFIG_COMMANDS = $CONFIG_COMMANDS
6711 $ $0 $@
6713 _CSEOF
6714 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6715 echo >&5
6716 _ACEOF
6718 # Files that config.status was made for.
6719 if test -n "$ac_config_files"; then
6720 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6723 if test -n "$ac_config_headers"; then
6724 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6727 if test -n "$ac_config_links"; then
6728 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6731 if test -n "$ac_config_commands"; then
6732 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6735 cat >>$CONFIG_STATUS <<\_ACEOF
6737 ac_cs_usage="\
6738 \`$as_me' instantiates files from templates according to the
6739 current configuration.
6741 Usage: $0 [OPTIONS] [FILE]...
6743 -h, --help print this help, then exit
6744 -V, --version print version number, then exit
6745 -q, --quiet do not print progress messages
6746 -d, --debug don't remove temporary files
6747 --recheck update $as_me by reconfiguring in the same conditions
6748 --file=FILE[:TEMPLATE]
6749 instantiate the configuration file FILE
6750 --header=FILE[:TEMPLATE]
6751 instantiate the configuration header FILE
6753 Configuration files:
6754 $config_files
6756 Configuration headers:
6757 $config_headers
6759 Report bugs to <bug-autoconf@gnu.org>."
6760 _ACEOF
6762 cat >>$CONFIG_STATUS <<_ACEOF
6763 ac_cs_version="\\
6764 config.status
6765 configured by $0, generated by GNU Autoconf 2.57,
6766 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6768 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6769 Free Software Foundation, Inc.
6770 This config.status script is free software; the Free Software Foundation
6771 gives unlimited permission to copy, distribute and modify it."
6772 srcdir=$srcdir
6773 _ACEOF
6775 cat >>$CONFIG_STATUS <<\_ACEOF
6776 # If no file are specified by the user, then we need to provide default
6777 # value. By we need to know if files were specified by the user.
6778 ac_need_defaults=:
6779 while test $# != 0
6781 case $1 in
6782 --*=*)
6783 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6784 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6785 ac_shift=:
6788 ac_option=$1
6789 ac_optarg=$2
6790 ac_shift=shift
6792 *) # This is not an option, so the user has probably given explicit
6793 # arguments.
6794 ac_option=$1
6795 ac_need_defaults=false;;
6796 esac
6798 case $ac_option in
6799 # Handling of the options.
6800 _ACEOF
6801 cat >>$CONFIG_STATUS <<\_ACEOF
6802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6803 ac_cs_recheck=: ;;
6804 --version | --vers* | -V )
6805 echo "$ac_cs_version"; exit 0 ;;
6806 --he | --h)
6807 # Conflict between --help and --header
6808 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6809 Try \`$0 --help' for more information." >&5
6810 echo "$as_me: error: ambiguous option: $1
6811 Try \`$0 --help' for more information." >&2;}
6812 { (exit 1); exit 1; }; };;
6813 --help | --hel | -h )
6814 echo "$ac_cs_usage"; exit 0 ;;
6815 --debug | --d* | -d )
6816 debug=: ;;
6817 --file | --fil | --fi | --f )
6818 $ac_shift
6819 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6820 ac_need_defaults=false;;
6821 --header | --heade | --head | --hea )
6822 $ac_shift
6823 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6824 ac_need_defaults=false;;
6825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6826 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6827 ac_cs_silent=: ;;
6829 # This is an error.
6830 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6831 Try \`$0 --help' for more information." >&5
6832 echo "$as_me: error: unrecognized option: $1
6833 Try \`$0 --help' for more information." >&2;}
6834 { (exit 1); exit 1; }; } ;;
6836 *) ac_config_targets="$ac_config_targets $1" ;;
6838 esac
6839 shift
6840 done
6842 ac_configure_extra_args=
6844 if $ac_cs_silent; then
6845 exec 6>/dev/null
6846 ac_configure_extra_args="$ac_configure_extra_args --silent"
6849 _ACEOF
6850 cat >>$CONFIG_STATUS <<_ACEOF
6851 if \$ac_cs_recheck; then
6852 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6853 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6856 _ACEOF
6862 cat >>$CONFIG_STATUS <<\_ACEOF
6863 for ac_config_target in $ac_config_targets
6865 case "$ac_config_target" in
6866 # Handling of arguments.
6867 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
6868 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
6869 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6870 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
6871 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6872 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6873 { (exit 1); exit 1; }; };;
6874 esac
6875 done
6877 # If the user did not use the arguments to specify the items to instantiate,
6878 # then the envvar interface is used. Set only those that are not.
6879 # We use the long form for the default assignment because of an extremely
6880 # bizarre bug on SunOS 4.1.3.
6881 if $ac_need_defaults; then
6882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6886 # Have a temporary directory for convenience. Make it in the build tree
6887 # simply because there is no reason to put it here, and in addition,
6888 # creating and moving files from /tmp can sometimes cause problems.
6889 # Create a temporary directory, and hook for its removal unless debugging.
6890 $debug ||
6892 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6893 trap '{ (exit 1); exit 1; }' 1 2 13 15
6896 # Create a (secure) tmp directory for tmp files.
6899 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6900 test -n "$tmp" && test -d "$tmp"
6901 } ||
6903 tmp=./confstat$$-$RANDOM
6904 (umask 077 && mkdir $tmp)
6905 } ||
6907 echo "$me: cannot create a temporary directory in ." >&2
6908 { (exit 1); exit 1; }
6911 _ACEOF
6913 cat >>$CONFIG_STATUS <<_ACEOF
6916 # CONFIG_FILES section.
6919 # No need to generate the scripts if there are no CONFIG_FILES.
6920 # This happens for instance when ./config.status config.h
6921 if test -n "\$CONFIG_FILES"; then
6922 # Protect against being on the right side of a sed subst in config.status.
6923 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6924 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6925 s,@SHELL@,$SHELL,;t t
6926 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6927 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6928 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6929 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6930 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6931 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6932 s,@exec_prefix@,$exec_prefix,;t t
6933 s,@prefix@,$prefix,;t t
6934 s,@program_transform_name@,$program_transform_name,;t t
6935 s,@bindir@,$bindir,;t t
6936 s,@sbindir@,$sbindir,;t t
6937 s,@libexecdir@,$libexecdir,;t t
6938 s,@datadir@,$datadir,;t t
6939 s,@sysconfdir@,$sysconfdir,;t t
6940 s,@sharedstatedir@,$sharedstatedir,;t t
6941 s,@localstatedir@,$localstatedir,;t t
6942 s,@libdir@,$libdir,;t t
6943 s,@includedir@,$includedir,;t t
6944 s,@oldincludedir@,$oldincludedir,;t t
6945 s,@infodir@,$infodir,;t t
6946 s,@mandir@,$mandir,;t t
6947 s,@build_alias@,$build_alias,;t t
6948 s,@host_alias@,$host_alias,;t t
6949 s,@target_alias@,$target_alias,;t t
6950 s,@DEFS@,$DEFS,;t t
6951 s,@ECHO_C@,$ECHO_C,;t t
6952 s,@ECHO_N@,$ECHO_N,;t t
6953 s,@ECHO_T@,$ECHO_T,;t t
6954 s,@LIBS@,$LIBS,;t t
6955 s,@subdirs@,$subdirs,;t t
6956 s,@CXX@,$CXX,;t t
6957 s,@CXXFLAGS@,$CXXFLAGS,;t t
6958 s,@LDFLAGS@,$LDFLAGS,;t t
6959 s,@CPPFLAGS@,$CPPFLAGS,;t t
6960 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6961 s,@EXEEXT@,$EXEEXT,;t t
6962 s,@OBJEXT@,$OBJEXT,;t t
6963 s,@PWLIBDIR@,$PWLIBDIR,;t t
6964 s,@PWINSTDIR@,$PWINSTDIR,;t t
6965 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6966 s,@LIBDIR@,$LIBDIR,;t t
6967 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
6968 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
6969 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
6970 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
6971 s,@build@,$build,;t t
6972 s,@build_cpu@,$build_cpu,;t t
6973 s,@build_vendor@,$build_vendor,;t t
6974 s,@build_os@,$build_os,;t t
6975 s,@host@,$host,;t t
6976 s,@host_cpu@,$host_cpu,;t t
6977 s,@host_vendor@,$host_vendor,;t t
6978 s,@host_os@,$host_os,;t t
6979 s,@target@,$target,;t t
6980 s,@target_cpu@,$target_cpu,;t t
6981 s,@target_vendor@,$target_vendor,;t t
6982 s,@target_os@,$target_os,;t t
6983 s,@MACHTYPE@,$MACHTYPE,;t t
6984 s,@OSTYPE@,$OSTYPE,;t t
6985 s,@OSRELEASE@,$OSRELEASE,;t t
6986 s,@TARGETDIR@,$TARGETDIR,;t t
6987 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
6988 s,@CXXCPP@,$CXXCPP,;t t
6989 s,@EGREP@,$EGREP,;t t
6990 s,@HAS_REGEX@,$HAS_REGEX,;t t
6991 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
6992 s,@HAS_SASL@,$HAS_SASL,;t t
6993 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
6994 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
6995 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
6996 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
6997 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
6998 s,@HAS_IPV6@,$HAS_IPV6,;t t
6999 s,@HAS_SDL@,$HAS_SDL,;t t
7000 s,@HAS_VIDEO_CAPTURE@,$HAS_VIDEO_CAPTURE,;t t
7001 s,@HAS_ALSA@,$HAS_ALSA,;t t
7002 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7003 s,@STDCXXFLAGS@,$STDCXXFLAGS,;t t
7004 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
7005 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7006 s,@LIBOBJS@,$LIBOBJS,;t t
7007 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7008 CEOF
7010 _ACEOF
7012 cat >>$CONFIG_STATUS <<\_ACEOF
7013 # Split the substitutions into bite-sized pieces for seds with
7014 # small command number limits, like on Digital OSF/1 and HP-UX.
7015 ac_max_sed_lines=48
7016 ac_sed_frag=1 # Number of current file.
7017 ac_beg=1 # First line for current file.
7018 ac_end=$ac_max_sed_lines # Line after last line for current file.
7019 ac_more_lines=:
7020 ac_sed_cmds=
7021 while $ac_more_lines; do
7022 if test $ac_beg -gt 1; then
7023 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7024 else
7025 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7027 if test ! -s $tmp/subs.frag; then
7028 ac_more_lines=false
7029 else
7030 # The purpose of the label and of the branching condition is to
7031 # speed up the sed processing (if there are no `@' at all, there
7032 # is no need to browse any of the substitutions).
7033 # These are the two extra sed commands mentioned above.
7034 (echo ':t
7035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7036 if test -z "$ac_sed_cmds"; then
7037 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7038 else
7039 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7041 ac_sed_frag=`expr $ac_sed_frag + 1`
7042 ac_beg=$ac_end
7043 ac_end=`expr $ac_end + $ac_max_sed_lines`
7045 done
7046 if test -z "$ac_sed_cmds"; then
7047 ac_sed_cmds=cat
7049 fi # test -n "$CONFIG_FILES"
7051 _ACEOF
7052 cat >>$CONFIG_STATUS <<\_ACEOF
7053 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7055 case $ac_file in
7056 - | *:- | *:-:* ) # input from stdin
7057 cat >$tmp/stdin
7058 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7059 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7060 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7061 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7062 * ) ac_file_in=$ac_file.in ;;
7063 esac
7065 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7066 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7068 X"$ac_file" : 'X\(//\)[^/]' \| \
7069 X"$ac_file" : 'X\(//\)$' \| \
7070 X"$ac_file" : 'X\(/\)' \| \
7071 . : '\(.\)' 2>/dev/null ||
7072 echo X"$ac_file" |
7073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7075 /^X\(\/\/\)$/{ s//\1/; q; }
7076 /^X\(\/\).*/{ s//\1/; q; }
7077 s/.*/./; q'`
7078 { if $as_mkdir_p; then
7079 mkdir -p "$ac_dir"
7080 else
7081 as_dir="$ac_dir"
7082 as_dirs=
7083 while test ! -d "$as_dir"; do
7084 as_dirs="$as_dir $as_dirs"
7085 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7087 X"$as_dir" : 'X\(//\)[^/]' \| \
7088 X"$as_dir" : 'X\(//\)$' \| \
7089 X"$as_dir" : 'X\(/\)' \| \
7090 . : '\(.\)' 2>/dev/null ||
7091 echo X"$as_dir" |
7092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7094 /^X\(\/\/\)$/{ s//\1/; q; }
7095 /^X\(\/\).*/{ s//\1/; q; }
7096 s/.*/./; q'`
7097 done
7098 test ! -n "$as_dirs" || mkdir $as_dirs
7099 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7100 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7101 { (exit 1); exit 1; }; }; }
7103 ac_builddir=.
7105 if test "$ac_dir" != .; then
7106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7107 # A "../" for each directory in $ac_dir_suffix.
7108 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7109 else
7110 ac_dir_suffix= ac_top_builddir=
7113 case $srcdir in
7114 .) # No --srcdir option. We are building in place.
7115 ac_srcdir=.
7116 if test -z "$ac_top_builddir"; then
7117 ac_top_srcdir=.
7118 else
7119 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7120 fi ;;
7121 [\\/]* | ?:[\\/]* ) # Absolute path.
7122 ac_srcdir=$srcdir$ac_dir_suffix;
7123 ac_top_srcdir=$srcdir ;;
7124 *) # Relative path.
7125 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7126 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7127 esac
7128 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7129 # absolute.
7130 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7131 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7132 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7133 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7137 if test x"$ac_file" != x-; then
7138 { echo "$as_me:$LINENO: creating $ac_file" >&5
7139 echo "$as_me: creating $ac_file" >&6;}
7140 rm -f "$ac_file"
7142 # Let's still pretend it is `configure' which instantiates (i.e., don't
7143 # use $as_me), people would be surprised to read:
7144 # /* config.h. Generated by config.status. */
7145 if test x"$ac_file" = x-; then
7146 configure_input=
7147 else
7148 configure_input="$ac_file. "
7150 configure_input=$configure_input"Generated from `echo $ac_file_in |
7151 sed 's,.*/,,'` by configure."
7153 # First look for the input files in the build tree, otherwise in the
7154 # src tree.
7155 ac_file_inputs=`IFS=:
7156 for f in $ac_file_in; do
7157 case $f in
7158 -) echo $tmp/stdin ;;
7159 [\\/$]*)
7160 # Absolute (can't be DOS-style, as IFS=:)
7161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7162 echo "$as_me: error: cannot find input file: $f" >&2;}
7163 { (exit 1); exit 1; }; }
7164 echo $f;;
7165 *) # Relative
7166 if test -f "$f"; then
7167 # Build tree
7168 echo $f
7169 elif test -f "$srcdir/$f"; then
7170 # Source tree
7171 echo $srcdir/$f
7172 else
7173 # /dev/null tree
7174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7175 echo "$as_me: error: cannot find input file: $f" >&2;}
7176 { (exit 1); exit 1; }; }
7177 fi;;
7178 esac
7179 done` || { (exit 1); exit 1; }
7180 _ACEOF
7181 cat >>$CONFIG_STATUS <<_ACEOF
7182 sed "$ac_vpsub
7183 $extrasub
7184 _ACEOF
7185 cat >>$CONFIG_STATUS <<\_ACEOF
7187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7188 s,@configure_input@,$configure_input,;t t
7189 s,@srcdir@,$ac_srcdir,;t t
7190 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7191 s,@top_srcdir@,$ac_top_srcdir,;t t
7192 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7193 s,@builddir@,$ac_builddir,;t t
7194 s,@abs_builddir@,$ac_abs_builddir,;t t
7195 s,@top_builddir@,$ac_top_builddir,;t t
7196 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7197 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7198 rm -f $tmp/stdin
7199 if test x"$ac_file" != x-; then
7200 mv $tmp/out $ac_file
7201 else
7202 cat $tmp/out
7203 rm -f $tmp/out
7206 # Run the commands associated with the file.
7207 case $ac_file in
7208 make/ptlib-config ) chmod a+x make/ptlib-config ;;
7209 esac
7210 done
7211 _ACEOF
7212 cat >>$CONFIG_STATUS <<\_ACEOF
7215 # CONFIG_HEADER section.
7218 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7219 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7221 # ac_d sets the value in "#define NAME VALUE" lines.
7222 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7223 ac_dB='[ ].*$,\1#\2'
7224 ac_dC=' '
7225 ac_dD=',;t'
7226 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7227 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7228 ac_uB='$,\1#\2define\3'
7229 ac_uC=' '
7230 ac_uD=',;t'
7232 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7234 case $ac_file in
7235 - | *:- | *:-:* ) # input from stdin
7236 cat >$tmp/stdin
7237 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7239 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7240 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7241 * ) ac_file_in=$ac_file.in ;;
7242 esac
7244 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7245 echo "$as_me: creating $ac_file" >&6;}
7247 # First look for the input files in the build tree, otherwise in the
7248 # src tree.
7249 ac_file_inputs=`IFS=:
7250 for f in $ac_file_in; do
7251 case $f in
7252 -) echo $tmp/stdin ;;
7253 [\\/$]*)
7254 # Absolute (can't be DOS-style, as IFS=:)
7255 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7256 echo "$as_me: error: cannot find input file: $f" >&2;}
7257 { (exit 1); exit 1; }; }
7258 echo $f;;
7259 *) # Relative
7260 if test -f "$f"; then
7261 # Build tree
7262 echo $f
7263 elif test -f "$srcdir/$f"; then
7264 # Source tree
7265 echo $srcdir/$f
7266 else
7267 # /dev/null tree
7268 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7269 echo "$as_me: error: cannot find input file: $f" >&2;}
7270 { (exit 1); exit 1; }; }
7271 fi;;
7272 esac
7273 done` || { (exit 1); exit 1; }
7274 # Remove the trailing spaces.
7275 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7277 _ACEOF
7279 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7280 # `conftest.undefs', that substitutes the proper values into
7281 # config.h.in to produce config.h. The first handles `#define'
7282 # templates, and the second `#undef' templates.
7283 # And first: Protect against being on the right side of a sed subst in
7284 # config.status. Protect against being in an unquoted here document
7285 # in config.status.
7286 rm -f conftest.defines conftest.undefs
7287 # Using a here document instead of a string reduces the quoting nightmare.
7288 # Putting comments in sed scripts is not portable.
7290 # `end' is used to avoid that the second main sed command (meant for
7291 # 0-ary CPP macros) applies to n-ary macro definitions.
7292 # See the Autoconf documentation for `clear'.
7293 cat >confdef2sed.sed <<\_ACEOF
7294 s/[\\&,]/\\&/g
7295 s,[\\$`],\\&,g
7296 t clear
7297 : clear
7298 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7299 t end
7300 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7301 : end
7302 _ACEOF
7303 # If some macros were called several times there might be several times
7304 # the same #defines, which is useless. Nevertheless, we may not want to
7305 # sort them, since we want the *last* AC-DEFINE to be honored.
7306 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7307 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7308 rm -f confdef2sed.sed
7310 # This sed command replaces #undef with comments. This is necessary, for
7311 # example, in the case of _POSIX_SOURCE, which is predefined and required
7312 # on some systems where configure will not decide to define it.
7313 cat >>conftest.undefs <<\_ACEOF
7314 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7315 _ACEOF
7317 # Break up conftest.defines because some shells have a limit on the size
7318 # of here documents, and old seds have small limits too (100 cmds).
7319 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7320 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7321 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7322 echo ' :' >>$CONFIG_STATUS
7323 rm -f conftest.tail
7324 while grep . conftest.defines >/dev/null
7326 # Write a limited-size here document to $tmp/defines.sed.
7327 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7328 # Speed up: don't consider the non `#define' lines.
7329 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7330 # Work around the forget-to-reset-the-flag bug.
7331 echo 't clr' >>$CONFIG_STATUS
7332 echo ': clr' >>$CONFIG_STATUS
7333 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7334 echo 'CEOF
7335 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7336 rm -f $tmp/in
7337 mv $tmp/out $tmp/in
7338 ' >>$CONFIG_STATUS
7339 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7340 rm -f conftest.defines
7341 mv conftest.tail conftest.defines
7342 done
7343 rm -f conftest.defines
7344 echo ' fi # grep' >>$CONFIG_STATUS
7345 echo >>$CONFIG_STATUS
7347 # Break up conftest.undefs because some shells have a limit on the size
7348 # of here documents, and old seds have small limits too (100 cmds).
7349 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7350 rm -f conftest.tail
7351 while grep . conftest.undefs >/dev/null
7353 # Write a limited-size here document to $tmp/undefs.sed.
7354 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7355 # Speed up: don't consider the non `#undef'
7356 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7357 # Work around the forget-to-reset-the-flag bug.
7358 echo 't clr' >>$CONFIG_STATUS
7359 echo ': clr' >>$CONFIG_STATUS
7360 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7361 echo 'CEOF
7362 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7363 rm -f $tmp/in
7364 mv $tmp/out $tmp/in
7365 ' >>$CONFIG_STATUS
7366 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7367 rm -f conftest.undefs
7368 mv conftest.tail conftest.undefs
7369 done
7370 rm -f conftest.undefs
7372 cat >>$CONFIG_STATUS <<\_ACEOF
7373 # Let's still pretend it is `configure' which instantiates (i.e., don't
7374 # use $as_me), people would be surprised to read:
7375 # /* config.h. Generated by config.status. */
7376 if test x"$ac_file" = x-; then
7377 echo "/* Generated by configure. */" >$tmp/config.h
7378 else
7379 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7381 cat $tmp/in >>$tmp/config.h
7382 rm -f $tmp/in
7383 if test x"$ac_file" != x-; then
7384 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7385 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7386 echo "$as_me: $ac_file is unchanged" >&6;}
7387 else
7388 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7389 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7390 X"$ac_file" : 'X\(//\)[^/]' \| \
7391 X"$ac_file" : 'X\(//\)$' \| \
7392 X"$ac_file" : 'X\(/\)' \| \
7393 . : '\(.\)' 2>/dev/null ||
7394 echo X"$ac_file" |
7395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7397 /^X\(\/\/\)$/{ s//\1/; q; }
7398 /^X\(\/\).*/{ s//\1/; q; }
7399 s/.*/./; q'`
7400 { if $as_mkdir_p; then
7401 mkdir -p "$ac_dir"
7402 else
7403 as_dir="$ac_dir"
7404 as_dirs=
7405 while test ! -d "$as_dir"; do
7406 as_dirs="$as_dir $as_dirs"
7407 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7409 X"$as_dir" : 'X\(//\)[^/]' \| \
7410 X"$as_dir" : 'X\(//\)$' \| \
7411 X"$as_dir" : 'X\(/\)' \| \
7412 . : '\(.\)' 2>/dev/null ||
7413 echo X"$as_dir" |
7414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7416 /^X\(\/\/\)$/{ s//\1/; q; }
7417 /^X\(\/\).*/{ s//\1/; q; }
7418 s/.*/./; q'`
7419 done
7420 test ! -n "$as_dirs" || mkdir $as_dirs
7421 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7422 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7423 { (exit 1); exit 1; }; }; }
7425 rm -f $ac_file
7426 mv $tmp/config.h $ac_file
7428 else
7429 cat $tmp/config.h
7430 rm -f $tmp/config.h
7432 done
7433 _ACEOF
7435 cat >>$CONFIG_STATUS <<\_ACEOF
7437 { (exit 0); exit 0; }
7438 _ACEOF
7439 chmod +x $CONFIG_STATUS
7440 ac_clean_files=$ac_clean_files_save
7443 # configure is writing to config.log, and then calls config.status.
7444 # config.status does its own redirection, appending to config.log.
7445 # Unfortunately, on DOS this fails, as config.log is still kept open
7446 # by configure, so config.status won't be able to write to it; its
7447 # output is simply discarded. So we exec the FD to /dev/null,
7448 # effectively closing config.log, so it can be properly (re)opened and
7449 # appended to by config.status. When coming back to configure, we
7450 # need to make the FD available again.
7451 if test "$no_create" != yes; then
7452 ac_cs_success=:
7453 ac_config_status_args=
7454 test "$silent" = yes &&
7455 ac_config_status_args="$ac_config_status_args --quiet"
7456 exec 5>/dev/null
7457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7458 exec 5>>config.log
7459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7460 # would make configure fail if this is the last instruction.
7461 $ac_cs_success || { (exit 1); exit 1; }
7465 # CONFIG_SUBDIRS section.
7467 if test "$no_recursion" != yes; then
7469 # Remove --cache-file and --srcdir arguments so they do not pile up.
7470 ac_sub_configure_args=
7471 ac_prev=
7472 for ac_arg in $ac_configure_args; do
7473 if test -n "$ac_prev"; then
7474 ac_prev=
7475 continue
7477 case $ac_arg in
7478 -cache-file | --cache-file | --cache-fil | --cache-fi \
7479 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7480 ac_prev=cache_file ;;
7481 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7482 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7483 | --c=*)
7485 --config-cache | -C)
7487 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7488 ac_prev=srcdir ;;
7489 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7492 ac_prev=prefix ;;
7493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7495 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7496 esac
7497 done
7499 # Always prepend --prefix to ensure using the same prefix
7500 # in subdir configurations.
7501 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7503 ac_popdir=`pwd`
7504 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7506 # Do not complain, so a configure script can configure whichever
7507 # parts of a large source tree are present.
7508 test -d $srcdir/$ac_dir || continue
7510 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7511 echo "$as_me: configuring in $ac_dir" >&6;}
7512 { if $as_mkdir_p; then
7513 mkdir -p "$ac_dir"
7514 else
7515 as_dir="$ac_dir"
7516 as_dirs=
7517 while test ! -d "$as_dir"; do
7518 as_dirs="$as_dir $as_dirs"
7519 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7521 X"$as_dir" : 'X\(//\)[^/]' \| \
7522 X"$as_dir" : 'X\(//\)$' \| \
7523 X"$as_dir" : 'X\(/\)' \| \
7524 . : '\(.\)' 2>/dev/null ||
7525 echo X"$as_dir" |
7526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7528 /^X\(\/\/\)$/{ s//\1/; q; }
7529 /^X\(\/\).*/{ s//\1/; q; }
7530 s/.*/./; q'`
7531 done
7532 test ! -n "$as_dirs" || mkdir $as_dirs
7533 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7534 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7535 { (exit 1); exit 1; }; }; }
7537 ac_builddir=.
7539 if test "$ac_dir" != .; then
7540 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7541 # A "../" for each directory in $ac_dir_suffix.
7542 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7543 else
7544 ac_dir_suffix= ac_top_builddir=
7547 case $srcdir in
7548 .) # No --srcdir option. We are building in place.
7549 ac_srcdir=.
7550 if test -z "$ac_top_builddir"; then
7551 ac_top_srcdir=.
7552 else
7553 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7554 fi ;;
7555 [\\/]* | ?:[\\/]* ) # Absolute path.
7556 ac_srcdir=$srcdir$ac_dir_suffix;
7557 ac_top_srcdir=$srcdir ;;
7558 *) # Relative path.
7559 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7560 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7561 esac
7562 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7563 # absolute.
7564 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7565 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7566 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7567 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7570 cd $ac_dir
7572 # Check for guested configure; otherwise get Cygnus style configure.
7573 if test -f $ac_srcdir/configure.gnu; then
7574 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7575 elif test -f $ac_srcdir/configure; then
7576 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7577 elif test -f $ac_srcdir/configure.in; then
7578 ac_sub_configure=$ac_configure
7579 else
7580 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7581 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7582 ac_sub_configure=
7585 # The recursion is here.
7586 if test -n "$ac_sub_configure"; then
7587 # Make the cache file name correct relative to the subdirectory.
7588 case $cache_file in
7589 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7590 *) # Relative path.
7591 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7592 esac
7594 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7595 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7596 # The eval makes quoting arguments work.
7597 eval $ac_sub_configure $ac_sub_configure_args \
7598 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7599 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7600 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7601 { (exit 1); exit 1; }; }
7604 cd $ac_popdir
7605 done