Changes to support native C++ Run Time Type Information
[pwlib.git] / configure
blob229ff5b498ee4c0920e8ef4ad05b1205777ca526
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_OPENLDAP HAS_OPENSSL P_STATIC_ENDLDLIBS P_STATIC_LDFLAGS HAS_EXPAT HAS_IPV6 HAS_SDL HAS_VIDEO_CAPTURE HAS_ALSA STDCCFLAGS 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
2131 if test ${OSTYPE} != Darwin ; then
2133 cat >>confdefs.h <<\_ACEOF
2134 #define P_HAS_SEMAPHORES 1
2135 _ACEOF
2140 if test "x${SHAREDLIBEXT}" = "x" ; then
2141 SHAREDLIBEXT="so"
2143 SHAREDLIBEXT=$SHAREDLIBEXT
2146 cat >>confdefs.h <<\_ACEOF
2147 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2148 _ACEOF
2154 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2155 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2156 if test "${ac_cv_c_bigendian+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159 # See if sys/param.h defines the BYTE_ORDER macro.
2160 cat >conftest.$ac_ext <<_ACEOF
2161 #line $LINENO "configure"
2162 /* confdefs.h. */
2163 _ACEOF
2164 cat confdefs.h >>conftest.$ac_ext
2165 cat >>conftest.$ac_ext <<_ACEOF
2166 /* end confdefs.h. */
2167 #include <sys/types.h>
2168 #include <sys/param.h>
2171 main ()
2173 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2174 bogus endian macros
2175 #endif
2178 return 0;
2180 _ACEOF
2181 rm -f conftest.$ac_objext
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 # It does; now see whether it defined to BIG_ENDIAN or not.
2194 cat >conftest.$ac_ext <<_ACEOF
2195 #line $LINENO "configure"
2196 /* confdefs.h. */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2201 #include <sys/types.h>
2202 #include <sys/param.h>
2205 main ()
2207 #if BYTE_ORDER != BIG_ENDIAN
2208 not big endian
2209 #endif
2212 return 0;
2214 _ACEOF
2215 rm -f conftest.$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217 (eval $ac_compile) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 ac_cv_c_bigendian=yes
2228 else
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2232 ac_cv_c_bigendian=no
2234 rm -f conftest.$ac_objext conftest.$ac_ext
2235 else
2236 echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2239 # It does not; compile a test program.
2240 if test "$cross_compiling" = yes; then
2241 # try to guess the endianness by grepping values into an object file
2242 ac_cv_c_bigendian=unknown
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #line $LINENO "configure"
2245 /* confdefs.h. */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2250 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2251 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2252 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2253 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2254 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2255 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2257 main ()
2259 _ascii (); _ebcdic ();
2261 return 0;
2263 _ACEOF
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2277 ac_cv_c_bigendian=yes
2279 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2280 if test "$ac_cv_c_bigendian" = unknown; then
2281 ac_cv_c_bigendian=no
2282 else
2283 # finding both strings is unlikely to happen, but who knows?
2284 ac_cv_c_bigendian=unknown
2287 else
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2293 else
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2296 /* confdefs.h. */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2302 main ()
2304 /* Are we little or big endian? From Harbison&Steele. */
2305 union
2307 long l;
2308 char c[sizeof (long)];
2309 } u;
2310 u.l = 1;
2311 exit (u.c[sizeof (long) - 1] == 1);
2313 _ACEOF
2314 rm -f conftest$ac_exeext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2316 (eval $ac_link) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2325 ac_cv_c_bigendian=no
2326 else
2327 echo "$as_me: program exited with status $ac_status" >&5
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2331 ( exit $ac_status )
2332 ac_cv_c_bigendian=yes
2334 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2339 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2340 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2341 case $ac_cv_c_bigendian in
2342 yes)
2344 cat >>confdefs.h <<\_ACEOF
2345 #define WORDS_BIGENDIAN 1
2346 _ACEOF
2351 { { echo "$as_me:$LINENO: error: unknown endianness
2352 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2353 echo "$as_me: error: unknown endianness
2354 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2355 { (exit 1); exit 1; }; } ;;
2356 esac
2358 if test ${ac_cv_c_bigendian} = yes ; then
2359 PBYTE_ORDER=PBIG_ENDIAN
2360 else
2361 PBYTE_ORDER=PLITTLE_ENDIAN
2365 cat >>confdefs.h <<_ACEOF
2366 #define PBYTE_ORDER $PBYTE_ORDER
2367 _ACEOF
2370 ac_ext=cc
2371 ac_cpp='$CXXCPP $CPPFLAGS'
2372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2377 GCSECTIONS=0
2379 echo "$as_me:$LINENO: checking if linker accepts --gc-sections" >&5
2380 echo $ECHO_N "checking if linker accepts --gc-sections... $ECHO_C" >&6
2381 cat >conftest.$ac_ext <<_ACEOF
2382 int main(int ac,char **av) { return 0; }
2383 _ACEOF
2384 $CXX $CFLAGS -Wl,--gc-sections conftest.cc > /dev/null 2>&1
2385 if test $? = 0 ; then
2386 echo "$as_me:$LINENO: result: yes" >&5
2387 echo "${ECHO_T}yes" >&6
2389 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2390 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2391 cat >conftest.$ac_ext <<_ACEOF
2392 int main(int ac,char **av) { return 0; }
2393 _ACEOF
2394 $CXX $CFLAGS -ffunction-sections -c conftest.cc > /dev/null 2>&1
2395 if test $? = 0 ; then
2396 echo "$as_me:$LINENO: result: yes" >&5
2397 echo "${ECHO_T}yes" >&6
2398 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
2399 GCSECTIONS=1
2400 else
2401 echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6
2405 echo "$as_me:$LINENO: checking if compiler accepts -fdata-sections" >&5
2406 echo $ECHO_N "checking if compiler accepts -fdata-sections... $ECHO_C" >&6
2407 cat >conftest.$ac_ext <<_ACEOF
2408 int main(int ac,char **av) { return 0; }
2409 _ACEOF
2410 $CXX $CFLAGS -fdata-sections -c conftest.cc > /dev/null 2>&1
2411 if test $? = 0 ; then
2412 echo "$as_me:$LINENO: result: yes" >&5
2413 echo "${ECHO_T}yes" >&6
2414 STDCCFLAGS="$STDCCFLAGS -fdata-sections"
2415 GCSECTIONS=1
2416 else
2417 echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2422 if test $GCSECTIONS = 1; then
2423 if test "${OSTYPE}" != "Darwin" ; then
2424 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2428 else
2429 echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2433 ac_ext=cc
2434 ac_cpp='$CXXCPP $CPPFLAGS'
2435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2441 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
2442 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
2443 if test "${ac_cv_c_long_double+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 /* confdefs.h. */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2453 #include <float.h>
2454 long double foo = 0.0;
2456 main ()
2458 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
2459 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
2460 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
2461 test_array [0] = 0
2464 return 0;
2466 _ACEOF
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 ac_cv_c_long_double=yes
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 ac_cv_c_long_double=no
2486 rm -f conftest.$ac_objext conftest.$ac_ext
2488 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
2489 echo "${ECHO_T}$ac_cv_c_long_double" >&6
2490 if test $ac_cv_c_long_double = yes; then
2492 cat >>confdefs.h <<\_ACEOF
2493 #define HAVE_LONG_DOUBLE 1
2494 _ACEOF
2498 if test $ac_cv_c_long_double != yes ; then
2500 cat >>confdefs.h <<\_ACEOF
2501 #define PNO_LONG_DOUBLE
2502 _ACEOF
2506 echo "$as_me:$LINENO: checking if readdir_r has 2 parms" >&5
2507 echo $ECHO_N "checking if readdir_r has 2 parms... $ECHO_C" >&6
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2515 #include <dirent.h>
2517 main ()
2519 DIR *s; struct dirent * e; readdir_r(s, e);
2521 return 0;
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 P_HAS_POSIX_READDIR_R=2
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 P_HAS_POSIX_READDIR_R=0
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 if test ${P_HAS_POSIX_READDIR_R} = 2 ; then
2545 echo "$as_me:$LINENO: result: yes" >&5
2546 echo "${ECHO_T}yes" >&6
2547 else
2548 echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2550 echo "$as_me:$LINENO: checking if readdir_r has 3 parms" >&5
2551 echo $ECHO_N "checking if readdir_r has 3 parms... $ECHO_C" >&6
2552 cat >conftest.$ac_ext <<_ACEOF
2553 #line $LINENO "configure"
2554 /* confdefs.h. */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2559 #include <dirent.h>
2561 main ()
2563 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
2565 return 0;
2567 _ACEOF
2568 rm -f conftest.$ac_objext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2580 P_HAS_POSIX_READDIR_R=3
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 P_HAS_POSIX_READDIR_R=0
2587 rm -f conftest.$ac_objext conftest.$ac_ext
2588 if test ${P_HAS_POSIX_READDIR_R} = 3 ; then
2589 echo "$as_me:$LINENO: result: yes" >&5
2590 echo "${ECHO_T}yes" >&6
2591 else
2592 echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2597 cat >>confdefs.h <<_ACEOF
2598 #define P_HAS_POSIX_READDIR_R ${P_HAS_POSIX_READDIR_R}
2599 _ACEOF
2606 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2607 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2608 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611 ac_check_lib_save_LIBS=$LIBS
2612 LIBS="-lpthread $LIBS"
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #line $LINENO "configure"
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2621 /* Override any gcc2 internal prototype to avoid an error. */
2622 #ifdef __cplusplus
2623 extern "C"
2624 #endif
2625 /* We use char because int might match the return type of a gcc2
2626 builtin and then its argument prototype would still apply. */
2627 char pthread_create ();
2629 main ()
2631 pthread_create ();
2633 return 0;
2635 _ACEOF
2636 rm -f conftest.$ac_objext conftest$ac_exeext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -s conftest$ac_exeext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_lib_pthread_pthread_create=yes
2649 else
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2653 ac_cv_lib_pthread_pthread_create=no
2655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2656 LIBS=$ac_check_lib_save_LIBS
2658 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2659 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2660 if test $ac_cv_lib_pthread_pthread_create = yes; then
2661 HAS_PTHREADS=yes
2662 else
2663 HAS_PTHREADS=no
2666 if test ${HAS_PTHREADS} = yes ; then
2667 ENDLDLIBS="$ENDLDLIBS -lpthread"
2668 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
2669 else
2670 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2671 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2672 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675 ac_check_lib_save_LIBS=$LIBS
2676 LIBS="-lc_r $LIBS"
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2685 /* Override any gcc2 internal prototype to avoid an error. */
2686 #ifdef __cplusplus
2687 extern "C"
2688 #endif
2689 /* We use char because int might match the return type of a gcc2
2690 builtin and then its argument prototype would still apply. */
2691 char pthread_create ();
2693 main ()
2695 pthread_create ();
2697 return 0;
2699 _ACEOF
2700 rm -f conftest.$ac_objext conftest$ac_exeext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2702 (eval $ac_link) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -s conftest$ac_exeext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_cv_lib_c_r_pthread_create=yes
2713 else
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2717 ac_cv_lib_c_r_pthread_create=no
2719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2720 LIBS=$ac_check_lib_save_LIBS
2722 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2723 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2724 if test $ac_cv_lib_c_r_pthread_create = yes; then
2725 HAS_PTHREADS=yes
2726 else
2727 HAS_PTHREADS=no
2730 if test ${HAS_PTHREADS} = yes ; then
2731 ENDLDLIBS="$ENDLDLIBS -pthread"
2732 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
2737 if test ${HAS_PTHREADS} != yes ; then
2738 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
2739 echo "$as_me: error: must have pthreads!" >&2;}
2740 { (exit 1); exit 1; }; }
2744 if test ${HAS_PTHREADS} = yes ; then
2745 echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
2746 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6
2747 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750 ac_check_lib_save_LIBS=$LIBS
2751 LIBS="-lpthread $LIBS"
2752 cat >conftest.$ac_ext <<_ACEOF
2753 #line $LINENO "configure"
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2760 /* Override any gcc2 internal prototype to avoid an error. */
2761 #ifdef __cplusplus
2762 extern "C"
2763 #endif
2764 /* We use char because int might match the return type of a gcc2
2765 builtin and then its argument prototype would still apply. */
2766 char pthread_mutex_timedlock ();
2768 main ()
2770 pthread_mutex_timedlock ();
2772 return 0;
2774 _ACEOF
2775 rm -f conftest.$ac_objext conftest$ac_exeext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2777 (eval $ac_link) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -s conftest$ac_exeext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 ac_cv_lib_pthread_pthread_mutex_timedlock=yes
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 ac_cv_lib_pthread_pthread_mutex_timedlock=no
2794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2795 LIBS=$ac_check_lib_save_LIBS
2797 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
2798 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6
2799 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
2800 HAS_PTHREADS_XPG6=yes
2801 else
2802 HAS_PTHREADS_XPG6=no
2805 if test ${HAS_PTHREADS_XPG6} = yes ; then
2807 cat >>confdefs.h <<\_ACEOF
2808 #define P_PTHREADS_XPG6 1
2809 _ACEOF
2813 echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
2814 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6
2815 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 ac_check_lib_save_LIBS=$LIBS
2819 LIBS="-lpthread $LIBS"
2820 cat >conftest.$ac_ext <<_ACEOF
2821 #line $LINENO "configure"
2822 /* confdefs.h. */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2828 /* Override any gcc2 internal prototype to avoid an error. */
2829 #ifdef __cplusplus
2830 extern "C"
2831 #endif
2832 /* We use char because int might match the return type of a gcc2
2833 builtin and then its argument prototype would still apply. */
2834 char sem_timedwait ();
2836 main ()
2838 sem_timedwait ();
2840 return 0;
2842 _ACEOF
2843 rm -f conftest.$ac_objext conftest$ac_exeext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2845 (eval $ac_link) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try='test -s conftest$ac_exeext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 ac_cv_lib_pthread_sem_timedwait=yes
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2860 ac_cv_lib_pthread_sem_timedwait=no
2862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2863 LIBS=$ac_check_lib_save_LIBS
2865 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
2866 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6
2867 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
2868 HAS_SEMAPHORES_XPG6=yes
2869 else
2870 HAS_SEMAPHORES_XPG6=no
2873 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
2874 echo "$as_me:$LINENO: checking if sem_timedwait will compile" >&5
2875 echo $ECHO_N "checking if sem_timedwait will compile... $ECHO_C" >&6
2876 cat >conftest.$ac_ext <<_ACEOF
2877 #line $LINENO "configure"
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <semaphore.h>
2885 main ()
2887 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
2889 return 0;
2891 _ACEOF
2892 rm -f conftest.$ac_objext
2893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894 (eval $ac_compile) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } &&
2898 { ac_try='test -s conftest.$ac_objext'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 (eval $ac_try) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2904 HAS_SEMAPHORES_XPG6=yes
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 HAS_SEMAPHORES_XPG6=no
2911 rm -f conftest.$ac_objext conftest.$ac_ext
2912 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
2914 cat >>confdefs.h <<\_ACEOF
2915 #define P_HAS_SEMAPHORES_XPG6 1
2916 _ACEOF
2918 echo "$as_me:$LINENO: result: yes" >&5
2919 echo "${ECHO_T}yes" >&6
2920 else
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2928 ac_ext=cc
2929 ac_cpp='$CXXCPP $CPPFLAGS'
2930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2933 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2934 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2935 if test -z "$CXXCPP"; then
2936 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939 # Double quotes because CXXCPP needs to be expanded
2940 for CXXCPP in "$CXX -E" "/lib/cpp"
2942 ac_preproc_ok=false
2943 for ac_cxx_preproc_warn_flag in '' yes
2945 # Use a header file that comes with gcc, so configuring glibc
2946 # with a fresh cross-compiler works.
2947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2948 # <limits.h> exists even on freestanding compilers.
2949 # On the NeXT, cc -E runs the code through the compiler's parser,
2950 # not just through cpp. "Syntax error" is here to catch this case.
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958 #ifdef __STDC__
2959 # include <limits.h>
2960 #else
2961 # include <assert.h>
2962 #endif
2963 Syntax error
2964 _ACEOF
2965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2967 ac_status=$?
2968 grep -v '^ *+' conftest.er1 >conftest.err
2969 rm -f conftest.er1
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } >/dev/null; then
2973 if test -s conftest.err; then
2974 ac_cpp_err=$ac_cxx_preproc_warn_flag
2975 else
2976 ac_cpp_err=
2978 else
2979 ac_cpp_err=yes
2981 if test -z "$ac_cpp_err"; then
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 # Broken: fails on valid input.
2988 continue
2990 rm -f conftest.err conftest.$ac_ext
2992 # OK, works on sane cases. Now check whether non-existent headers
2993 # can be detected and how.
2994 cat >conftest.$ac_ext <<_ACEOF
2995 #line $LINENO "configure"
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 #include <ac_nonexistent.h>
3002 _ACEOF
3003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } >/dev/null; then
3011 if test -s conftest.err; then
3012 ac_cpp_err=$ac_cxx_preproc_warn_flag
3013 else
3014 ac_cpp_err=
3016 else
3017 ac_cpp_err=yes
3019 if test -z "$ac_cpp_err"; then
3020 # Broken: success on invalid input.
3021 continue
3022 else
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 # Passes both tests.
3027 ac_preproc_ok=:
3028 break
3030 rm -f conftest.err conftest.$ac_ext
3032 done
3033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3034 rm -f conftest.err conftest.$ac_ext
3035 if $ac_preproc_ok; then
3036 break
3039 done
3040 ac_cv_prog_CXXCPP=$CXXCPP
3043 CXXCPP=$ac_cv_prog_CXXCPP
3044 else
3045 ac_cv_prog_CXXCPP=$CXXCPP
3047 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3048 echo "${ECHO_T}$CXXCPP" >&6
3049 ac_preproc_ok=false
3050 for ac_cxx_preproc_warn_flag in '' yes
3052 # Use a header file that comes with gcc, so configuring glibc
3053 # with a fresh cross-compiler works.
3054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3055 # <limits.h> exists even on freestanding compilers.
3056 # On the NeXT, cc -E runs the code through the compiler's parser,
3057 # not just through cpp. "Syntax error" is here to catch this case.
3058 cat >conftest.$ac_ext <<_ACEOF
3059 #line $LINENO "configure"
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3065 #ifdef __STDC__
3066 # include <limits.h>
3067 #else
3068 # include <assert.h>
3069 #endif
3070 Syntax error
3071 _ACEOF
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null; then
3080 if test -s conftest.err; then
3081 ac_cpp_err=$ac_cxx_preproc_warn_flag
3082 else
3083 ac_cpp_err=
3085 else
3086 ac_cpp_err=yes
3088 if test -z "$ac_cpp_err"; then
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 # Broken: fails on valid input.
3095 continue
3097 rm -f conftest.err conftest.$ac_ext
3099 # OK, works on sane cases. Now check whether non-existent headers
3100 # can be detected and how.
3101 cat >conftest.$ac_ext <<_ACEOF
3102 #line $LINENO "configure"
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3108 #include <ac_nonexistent.h>
3109 _ACEOF
3110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } >/dev/null; then
3118 if test -s conftest.err; then
3119 ac_cpp_err=$ac_cxx_preproc_warn_flag
3120 else
3121 ac_cpp_err=
3123 else
3124 ac_cpp_err=yes
3126 if test -z "$ac_cpp_err"; then
3127 # Broken: success on invalid input.
3128 continue
3129 else
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 # Passes both tests.
3134 ac_preproc_ok=:
3135 break
3137 rm -f conftest.err conftest.$ac_ext
3139 done
3140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3141 rm -f conftest.err conftest.$ac_ext
3142 if $ac_preproc_ok; then
3144 else
3145 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3146 See \`config.log' for more details." >&5
3147 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3148 See \`config.log' for more details." >&2;}
3149 { (exit 1); exit 1; }; }
3152 ac_ext=cc
3153 ac_cpp='$CXXCPP $CPPFLAGS'
3154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3159 echo "$as_me:$LINENO: checking for egrep" >&5
3160 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3161 if test "${ac_cv_prog_egrep+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3165 then ac_cv_prog_egrep='grep -E'
3166 else ac_cv_prog_egrep='egrep'
3169 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3170 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3171 EGREP=$ac_cv_prog_egrep
3174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3176 if test "${ac_cv_header_stdc+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179 cat >conftest.$ac_ext <<_ACEOF
3180 #line $LINENO "configure"
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #include <stdlib.h>
3187 #include <stdarg.h>
3188 #include <string.h>
3189 #include <float.h>
3192 main ()
3196 return 0;
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 (eval $ac_try) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 ac_cv_header_stdc=yes
3212 else
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3216 ac_cv_header_stdc=no
3218 rm -f conftest.$ac_objext conftest.$ac_ext
3220 if test $ac_cv_header_stdc = yes; then
3221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #line $LINENO "configure"
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229 #include <string.h>
3231 _ACEOF
3232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3233 $EGREP "memchr" >/dev/null 2>&1; then
3235 else
3236 ac_cv_header_stdc=no
3238 rm -f conftest*
3242 if test $ac_cv_header_stdc = yes; then
3243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3244 cat >conftest.$ac_ext <<_ACEOF
3245 #line $LINENO "configure"
3246 /* confdefs.h. */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3251 #include <stdlib.h>
3253 _ACEOF
3254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3255 $EGREP "free" >/dev/null 2>&1; then
3257 else
3258 ac_cv_header_stdc=no
3260 rm -f conftest*
3264 if test $ac_cv_header_stdc = yes; then
3265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3266 if test "$cross_compiling" = yes; then
3268 else
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line $LINENO "configure"
3271 /* confdefs.h. */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276 #include <ctype.h>
3277 #if ((' ' & 0x0FF) == 0x020)
3278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3280 #else
3281 # define ISLOWER(c) \
3282 (('a' <= (c) && (c) <= 'i') \
3283 || ('j' <= (c) && (c) <= 'r') \
3284 || ('s' <= (c) && (c) <= 'z'))
3285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3286 #endif
3288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3290 main ()
3292 int i;
3293 for (i = 0; i < 256; i++)
3294 if (XOR (islower (i), ISLOWER (i))
3295 || toupper (i) != TOUPPER (i))
3296 exit(2);
3297 exit (0);
3299 _ACEOF
3300 rm -f conftest$ac_exeext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3302 (eval $ac_link) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3312 else
3313 echo "$as_me: program exited with status $ac_status" >&5
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 ( exit $ac_status )
3318 ac_cv_header_stdc=no
3320 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3324 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3325 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3326 if test $ac_cv_header_stdc = yes; then
3328 cat >>confdefs.h <<\_ACEOF
3329 #define STDC_HEADERS 1
3330 _ACEOF
3334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3345 inttypes.h stdint.h unistd.h
3347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3348 echo "$as_me:$LINENO: checking for $ac_header" >&5
3349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 $ac_includes_default
3362 #include <$ac_header>
3363 _ACEOF
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 (eval $ac_try) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; }; then
3376 eval "$as_ac_Header=yes"
3377 else
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 eval "$as_ac_Header=no"
3383 rm -f conftest.$ac_objext conftest.$ac_ext
3385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3388 cat >>confdefs.h <<_ACEOF
3389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3390 _ACEOF
3394 done
3398 for ac_header in regex.h
3400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3402 echo "$as_me:$LINENO: checking for $ac_header" >&5
3403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3409 else
3410 # Is the header compilable?
3411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3413 cat >conftest.$ac_ext <<_ACEOF
3414 #line $LINENO "configure"
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 $ac_includes_default
3421 #include <$ac_header>
3422 _ACEOF
3423 rm -f conftest.$ac_objext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425 (eval $ac_compile) 2>&5
3426 ac_status=$?
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -s conftest.$ac_objext'
3430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 (eval $ac_try) 2>&5
3432 ac_status=$?
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3435 ac_header_compiler=yes
3436 else
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 ac_header_compiler=no
3442 rm -f conftest.$ac_objext conftest.$ac_ext
3443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3444 echo "${ECHO_T}$ac_header_compiler" >&6
3446 # Is the header present?
3447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3449 cat >conftest.$ac_ext <<_ACEOF
3450 #line $LINENO "configure"
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 #include <$ac_header>
3457 _ACEOF
3458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } >/dev/null; then
3466 if test -s conftest.err; then
3467 ac_cpp_err=$ac_cxx_preproc_warn_flag
3468 else
3469 ac_cpp_err=
3471 else
3472 ac_cpp_err=yes
3474 if test -z "$ac_cpp_err"; then
3475 ac_header_preproc=yes
3476 else
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 ac_header_preproc=no
3482 rm -f conftest.err conftest.$ac_ext
3483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3484 echo "${ECHO_T}$ac_header_preproc" >&6
3486 # So? What about this header?
3487 case $ac_header_compiler:$ac_header_preproc in
3488 yes:no )
3489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3494 cat <<\_ASBOX
3495 ## ------------------------------------ ##
3496 ## Report this to bug-autoconf@gnu.org. ##
3497 ## ------------------------------------ ##
3498 _ASBOX
3500 sed "s/^/$as_me: WARNING: /" >&2
3502 no:yes )
3503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3510 cat <<\_ASBOX
3511 ## ------------------------------------ ##
3512 ## Report this to bug-autoconf@gnu.org. ##
3513 ## ------------------------------------ ##
3514 _ASBOX
3516 sed "s/^/$as_me: WARNING: /" >&2
3518 esac
3519 echo "$as_me:$LINENO: checking for $ac_header" >&5
3520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524 eval "$as_ac_Header=$ac_header_preproc"
3526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3531 cat >>confdefs.h <<_ACEOF
3532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3533 _ACEOF
3534 HAS_REGEX=yes
3537 done
3540 # Check whether --enable-internalregex or --disable-internalregex was given.
3541 if test "${enable_internalregex+set}" = set; then
3542 enableval="$enable_internalregex"
3543 internalregex=$enableval
3545 if test "$internalregex" = "yes" ; then
3546 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3547 echo "$as_me: Forcing use of internal regex library" >&6;}
3548 else
3549 if test "$HAS_REGEX" = "yes" ; then
3550 echo "$as_me:$LINENO: checking for regcomp" >&5
3551 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3552 if test "${ac_cv_func_regcomp+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555 cat >conftest.$ac_ext <<_ACEOF
3556 #line $LINENO "configure"
3557 /* confdefs.h. */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 /* System header to define __stub macros and hopefully few prototypes,
3563 which can conflict with char regcomp (); below.
3564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 <limits.h> exists even on freestanding compilers. */
3566 #ifdef __STDC__
3567 # include <limits.h>
3568 #else
3569 # include <assert.h>
3570 #endif
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 #ifdef __cplusplus
3573 extern "C"
3575 #endif
3576 /* We use char because int might match the return type of a gcc2
3577 builtin and then its argument prototype would still apply. */
3578 char regcomp ();
3579 /* The GNU C library defines this for functions which it implements
3580 to always fail with ENOSYS. Some functions are actually named
3581 something starting with __ and the normal name is an alias. */
3582 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3583 choke me
3584 #else
3585 char (*f) () = regcomp;
3586 #endif
3587 #ifdef __cplusplus
3589 #endif
3592 main ()
3594 return f != regcomp;
3596 return 0;
3598 _ACEOF
3599 rm -f conftest.$ac_objext conftest$ac_exeext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601 (eval $ac_link) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -s conftest$ac_exeext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_func_regcomp=yes
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 ac_cv_func_regcomp=no
3618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3620 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3621 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3622 if test $ac_cv_func_regcomp = yes; then
3623 HAS_REGEX=yes
3626 if test "$HAS_REGEX" = "yes" ; then
3627 HAS_REGEX=1
3630 cat >>confdefs.h <<\_ACEOF
3631 #define P_REGEX 1
3632 _ACEOF
3641 LIBS=""
3642 HAS_LIBDL=no
3643 P_DYNALINK=0
3644 if test ${OSTYPE} = beos ; then
3645 P_DYNALINK=1
3647 cat >>confdefs.h <<\_ACEOF
3648 #define P_DYNALINK 1
3649 _ACEOF
3651 elif test ${OSTYPE} = Darwin ; then
3652 P_DYNALINK=1
3654 cat >>confdefs.h <<\_ACEOF
3655 #define P_DYNALINK 1
3656 _ACEOF
3658 else
3660 for ac_header in dlfcn.h
3662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3664 echo "$as_me:$LINENO: checking for $ac_header" >&5
3665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3671 else
3672 # Is the header compilable?
3673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3675 cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 /* confdefs.h. */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3682 $ac_includes_default
3683 #include <$ac_header>
3684 _ACEOF
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_header_compiler=yes
3698 else
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 ac_header_compiler=no
3704 rm -f conftest.$ac_objext conftest.$ac_ext
3705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3706 echo "${ECHO_T}$ac_header_compiler" >&6
3708 # Is the header present?
3709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3711 cat >conftest.$ac_ext <<_ACEOF
3712 #line $LINENO "configure"
3713 /* confdefs.h. */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3718 #include <$ac_header>
3719 _ACEOF
3720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3722 ac_status=$?
3723 grep -v '^ *+' conftest.er1 >conftest.err
3724 rm -f conftest.er1
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } >/dev/null; then
3728 if test -s conftest.err; then
3729 ac_cpp_err=$ac_cxx_preproc_warn_flag
3730 else
3731 ac_cpp_err=
3733 else
3734 ac_cpp_err=yes
3736 if test -z "$ac_cpp_err"; then
3737 ac_header_preproc=yes
3738 else
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_header_preproc=no
3744 rm -f conftest.err conftest.$ac_ext
3745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3746 echo "${ECHO_T}$ac_header_preproc" >&6
3748 # So? What about this header?
3749 case $ac_header_compiler:$ac_header_preproc in
3750 yes:no )
3751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3756 cat <<\_ASBOX
3757 ## ------------------------------------ ##
3758 ## Report this to bug-autoconf@gnu.org. ##
3759 ## ------------------------------------ ##
3760 _ASBOX
3762 sed "s/^/$as_me: WARNING: /" >&2
3764 no:yes )
3765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3772 cat <<\_ASBOX
3773 ## ------------------------------------ ##
3774 ## Report this to bug-autoconf@gnu.org. ##
3775 ## ------------------------------------ ##
3776 _ASBOX
3778 sed "s/^/$as_me: WARNING: /" >&2
3780 esac
3781 echo "$as_me:$LINENO: checking for $ac_header" >&5
3782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786 eval "$as_ac_Header=$ac_header_preproc"
3788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3793 cat >>confdefs.h <<_ACEOF
3794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3795 _ACEOF
3796 HAS_DLFCN=yes
3797 else
3798 HAS_DLFCN=no
3801 done
3803 if test "$HAS_DLFCN" = yes ; then
3804 echo "$as_me:$LINENO: checking if dlopen is available" >&5
3805 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3807 #line $LINENO "configure"
3808 /* confdefs.h. */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3813 #include <dlfcn.h>
3815 main ()
3817 void * p = dlopen("lib", 0);
3819 return 0;
3821 _ACEOF
3822 rm -f conftest.$ac_objext
3823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3824 (eval $ac_compile) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try='test -s conftest.$ac_objext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 HAS_DLOPEN=yes
3835 else
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 HAS_DLOPEN=no
3841 rm -f conftest.$ac_objext conftest.$ac_ext
3842 if test "$HAS_DLOPEN" = no ; then
3843 echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3845 else
3846 echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6
3848 P_DYNALINK=1
3850 cat >>confdefs.h <<\_ACEOF
3851 #define P_DYNALINK 1
3852 _ACEOF
3854 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3855 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3856 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 ac_check_lib_save_LIBS=$LIBS
3860 LIBS="-ldl $LIBS"
3861 cat >conftest.$ac_ext <<_ACEOF
3862 #line $LINENO "configure"
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3869 /* Override any gcc2 internal prototype to avoid an error. */
3870 #ifdef __cplusplus
3871 extern "C"
3872 #endif
3873 /* We use char because int might match the return type of a gcc2
3874 builtin and then its argument prototype would still apply. */
3875 char dlopen ();
3877 main ()
3879 dlopen ();
3881 return 0;
3883 _ACEOF
3884 rm -f conftest.$ac_objext conftest$ac_exeext
3885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3886 (eval $ac_link) 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -s conftest$ac_exeext'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 ac_cv_lib_dl_dlopen=yes
3897 else
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_cv_lib_dl_dlopen=no
3903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3904 LIBS=$ac_check_lib_save_LIBS
3906 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3907 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3908 if test $ac_cv_lib_dl_dlopen = yes; then
3909 HAS_LIBDL=yes
3910 else
3911 HAS_LIBDL=no
3918 plugins="no"
3919 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
3920 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
3921 # Check whether --enable-plugins or --disable-plugins was given.
3922 if test "${enable_plugins+set}" = set; then
3923 enableval="$enable_plugins"
3924 plugins=$enableval
3927 HAS_PLUGINS=0
3928 if test "${plugins}" = "no" ; then
3929 echo "$as_me:$LINENO: result: no" >&5
3930 echo "${ECHO_T}no" >&6
3931 elif test "${P_DYNALINK:-unset}" = "unset" ; then
3932 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
3933 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
3934 else
3935 echo "$as_me:$LINENO: result: plugins enabled" >&5
3936 echo "${ECHO_T}plugins enabled" >&6
3937 HAS_PLUGINS=1
3939 cat >>confdefs.h <<\_ACEOF
3940 #define P_HAS_PLUGINS 1
3941 _ACEOF
3947 if test "x$LIB64" != "x" ; then
3949 cat >>confdefs.h <<_ACEOF
3950 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
3951 _ACEOF
3953 else
3955 cat >>confdefs.h <<_ACEOF
3956 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
3957 _ACEOF
3963 # Check whether --enable-resolver or --disable-resolver was given.
3964 if test "${enable_resolver+set}" = set; then
3965 enableval="$enable_resolver"
3966 resolver=$enableval
3969 if test "$resolver" = "no" ; then
3970 cat >>confdefs.h <<\_ACEOF
3971 #define P_DNS 0
3972 _ACEOF
3974 else
3975 echo "$as_me:$LINENO: checking for res_search" >&5
3976 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
3977 if test "${ac_cv_func_res_search+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 cat >conftest.$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3982 /* confdefs.h. */
3983 _ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3987 /* System header to define __stub macros and hopefully few prototypes,
3988 which can conflict with char res_search (); below.
3989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3990 <limits.h> exists even on freestanding compilers. */
3991 #ifdef __STDC__
3992 # include <limits.h>
3993 #else
3994 # include <assert.h>
3995 #endif
3996 /* Override any gcc2 internal prototype to avoid an error. */
3997 #ifdef __cplusplus
3998 extern "C"
4000 #endif
4001 /* We use char because int might match the return type of a gcc2
4002 builtin and then its argument prototype would still apply. */
4003 char res_search ();
4004 /* The GNU C library defines this for functions which it implements
4005 to always fail with ENOSYS. Some functions are actually named
4006 something starting with __ and the normal name is an alias. */
4007 #if defined (__stub_res_search) || defined (__stub___res_search)
4008 choke me
4009 #else
4010 char (*f) () = res_search;
4011 #endif
4012 #ifdef __cplusplus
4014 #endif
4017 main ()
4019 return f != res_search;
4021 return 0;
4023 _ACEOF
4024 rm -f conftest.$ac_objext conftest$ac_exeext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4026 (eval $ac_link) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -s conftest$ac_exeext'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 ac_cv_func_res_search=yes
4037 else
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4041 ac_cv_func_res_search=no
4043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4045 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4046 echo "${ECHO_T}$ac_cv_func_res_search" >&6
4047 if test $ac_cv_func_res_search = yes; then
4048 HAVE_RESOLVER=1
4051 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4052 RESOLVER_LIBS=""
4053 else
4054 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
4055 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
4056 LIBS="-lresolv"
4057 cat >conftest.$ac_ext <<_ACEOF
4059 #include <netinet/in.h>
4060 #include <resolv.h>
4061 int main(int argc,char **argv){
4062 res_search (NULL, 0, 0, NULL, 0);
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 HAVE_RESOLVER=1
4078 else
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4083 rm -f conftest.$ac_objext conftest.$ac_ext
4084 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4085 echo "$as_me:$LINENO: result: yes" >&5
4086 echo "${ECHO_T}yes" >&6
4087 RESOLVER_LIBS="-lresolv"
4088 else
4089 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
4090 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
4091 if test "${ac_cv_search___res_search+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 ac_func_search_save_LIBS=$LIBS
4095 ac_cv_search___res_search=no
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4104 /* Override any gcc2 internal prototype to avoid an error. */
4105 #ifdef __cplusplus
4106 extern "C"
4107 #endif
4108 /* We use char because int might match the return type of a gcc2
4109 builtin and then its argument prototype would still apply. */
4110 char __res_search ();
4112 main ()
4114 __res_search ();
4116 return 0;
4118 _ACEOF
4119 rm -f conftest.$ac_objext conftest$ac_exeext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4121 (eval $ac_link) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -s conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_search___res_search="none required"
4132 else
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4138 if test "$ac_cv_search___res_search" = no; then
4139 for ac_lib in resolv; do
4140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4141 cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4149 /* Override any gcc2 internal prototype to avoid an error. */
4150 #ifdef __cplusplus
4151 extern "C"
4152 #endif
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4155 char __res_search ();
4157 main ()
4159 __res_search ();
4161 return 0;
4163 _ACEOF
4164 rm -f conftest.$ac_objext conftest$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166 (eval $ac_link) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -s conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 ac_cv_search___res_search="-l$ac_lib"
4177 break
4178 else
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4184 done
4186 LIBS=$ac_func_search_save_LIBS
4188 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4189 echo "${ECHO_T}$ac_cv_search___res_search" >&6
4190 if test "$ac_cv_search___res_search" != no; then
4191 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
4192 HAVE_RESOLVER=1
4198 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4200 cat >>confdefs.h <<\_ACEOF
4201 #define P_DNS 1
4202 _ACEOF
4209 # Check whether --enable-openldap or --disable-openldap was given.
4210 if test "${enable_openldap+set}" = set; then
4211 enableval="$enable_openldap"
4212 openldap=$enableval
4215 if test "$openldap" = "no" ; then
4216 HAS_OPENLDAP=0
4218 cat >>confdefs.h <<\_ACEOF
4219 #define P_LDAP 0
4220 _ACEOF
4222 else
4223 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4225 for ac_header in ldap.h
4227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4229 echo "$as_me:$LINENO: checking for $ac_header" >&5
4230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4236 else
4237 # Is the header compilable?
4238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4240 cat >conftest.$ac_ext <<_ACEOF
4241 #line $LINENO "configure"
4242 /* confdefs.h. */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 $ac_includes_default
4248 #include <$ac_header>
4249 _ACEOF
4250 rm -f conftest.$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 (eval $ac_compile) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_header_compiler=yes
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 ac_header_compiler=no
4269 rm -f conftest.$ac_objext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4271 echo "${ECHO_T}$ac_header_compiler" >&6
4273 # Is the header present?
4274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4276 cat >conftest.$ac_ext <<_ACEOF
4277 #line $LINENO "configure"
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 #include <$ac_header>
4284 _ACEOF
4285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } >/dev/null; then
4293 if test -s conftest.err; then
4294 ac_cpp_err=$ac_cxx_preproc_warn_flag
4295 else
4296 ac_cpp_err=
4298 else
4299 ac_cpp_err=yes
4301 if test -z "$ac_cpp_err"; then
4302 ac_header_preproc=yes
4303 else
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4307 ac_header_preproc=no
4309 rm -f conftest.err conftest.$ac_ext
4310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4311 echo "${ECHO_T}$ac_header_preproc" >&6
4313 # So? What about this header?
4314 case $ac_header_compiler:$ac_header_preproc in
4315 yes:no )
4316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4321 cat <<\_ASBOX
4322 ## ------------------------------------ ##
4323 ## Report this to bug-autoconf@gnu.org. ##
4324 ## ------------------------------------ ##
4325 _ASBOX
4327 sed "s/^/$as_me: WARNING: /" >&2
4329 no:yes )
4330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4337 cat <<\_ASBOX
4338 ## ------------------------------------ ##
4339 ## Report this to bug-autoconf@gnu.org. ##
4340 ## ------------------------------------ ##
4341 _ASBOX
4343 sed "s/^/$as_me: WARNING: /" >&2
4345 esac
4346 echo "$as_me:$LINENO: checking for $ac_header" >&5
4347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 eval "$as_ac_Header=$ac_header_preproc"
4353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4358 cat >>confdefs.h <<_ACEOF
4359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4360 _ACEOF
4361 HAS_OPENLDAP=1
4364 done
4367 if test "${OSTYPE:-unknown}" = "solaris"; then
4368 OPENLDAPSYSLIBS=-lposix4
4371 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4372 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4373 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4374 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377 ac_check_lib_save_LIBS=$LIBS
4378 LIBS="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4379 cat >conftest.$ac_ext <<_ACEOF
4380 #line $LINENO "configure"
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4387 /* Override any gcc2 internal prototype to avoid an error. */
4388 #ifdef __cplusplus
4389 extern "C"
4390 #endif
4391 /* We use char because int might match the return type of a gcc2
4392 builtin and then its argument prototype would still apply. */
4393 char ldap_open ();
4395 main ()
4397 ldap_open ();
4399 return 0;
4401 _ACEOF
4402 rm -f conftest.$ac_objext conftest$ac_exeext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4404 (eval $ac_link) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -s conftest$ac_exeext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_lib_ldap_ldap_open=yes
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 ac_cv_lib_ldap_ldap_open=no
4421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4422 LIBS=$ac_check_lib_save_LIBS
4424 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4425 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4426 if test $ac_cv_lib_ldap_ldap_open = yes; then
4427 HAS_OPENLDAP=1
4428 else
4429 HAS_OPENLDAP=
4432 else
4433 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
4434 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
4435 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 test "$cross_compiling" = yes &&
4439 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4440 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4441 { (exit 1); exit 1; }; }
4442 if test -r "/usr/local/include/ldap.h"; then
4443 ac_cv_file__usr_local_include_ldap_h=yes
4444 else
4445 ac_cv_file__usr_local_include_ldap_h=no
4448 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
4449 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
4450 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
4451 HAS_OPENLDAP=1
4454 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4455 OPENLDAPINCLUDEDIR=/usr/local/include
4456 OPENLDAPLIBDIR=/usr/local/lib
4457 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4458 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4459 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 ac_check_lib_save_LIBS=$LIBS
4463 LIBS="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4464 cat >conftest.$ac_ext <<_ACEOF
4465 #line $LINENO "configure"
4466 /* confdefs.h. */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4472 /* Override any gcc2 internal prototype to avoid an error. */
4473 #ifdef __cplusplus
4474 extern "C"
4475 #endif
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4478 char ldap_open ();
4480 main ()
4482 ldap_open ();
4484 return 0;
4486 _ACEOF
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489 (eval $ac_link) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -s conftest$ac_exeext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_cv_lib_ldap_ldap_open=yes
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 ac_cv_lib_ldap_ldap_open=no
4506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4507 LIBS=$ac_check_lib_save_LIBS
4509 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4510 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4511 if test $ac_cv_lib_ldap_ldap_open = yes; then
4512 HAS_OPENLDAP=1
4513 else
4514 HAS_OPENLDAP=
4521 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4522 HAS_OPENLDAP=1
4525 cat >>confdefs.h <<\_ACEOF
4526 #define P_LDAP 1
4527 _ACEOF
4529 if test ${OPENLDAPINCLUDEDIR:-unset} != "unset" ; then
4530 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
4532 if test ${OPENLDAPLIBDIR:-unset} != "unset" ; then
4533 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
4536 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4537 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4538 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 ac_check_lib_save_LIBS=$LIBS
4542 LIBS="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4543 cat >conftest.$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4551 /* Override any gcc2 internal prototype to avoid an error. */
4552 #ifdef __cplusplus
4553 extern "C"
4554 #endif
4555 /* We use char because int might match the return type of a gcc2
4556 builtin and then its argument prototype would still apply. */
4557 char sasl_client_auth ();
4559 main ()
4561 sasl_client_auth ();
4563 return 0;
4565 _ACEOF
4566 rm -f conftest.$ac_objext conftest$ac_exeext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4568 (eval $ac_link) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -s conftest$ac_exeext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_cv_lib_sasl_sasl_client_auth=yes
4579 else
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 ac_cv_lib_sasl_sasl_client_auth=no
4585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4586 LIBS=$ac_check_lib_save_LIBS
4588 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4589 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4590 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4591 HAS_SASL=1
4592 else
4593 HAS_SASL=
4596 if test ${HAS_SASL:-unset} = "unset" ; then
4597 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4598 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4599 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 ac_check_lib_save_LIBS=$LIBS
4603 LIBS="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4604 cat >conftest.$ac_ext <<_ACEOF
4605 #line $LINENO "configure"
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 #ifdef __cplusplus
4614 extern "C"
4615 #endif
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4618 char sasl_version ();
4620 main ()
4622 sasl_version ();
4624 return 0;
4626 _ACEOF
4627 rm -f conftest.$ac_objext conftest$ac_exeext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629 (eval $ac_link) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_lib_sasl2_sasl_version=yes
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4644 ac_cv_lib_sasl2_sasl_version=no
4646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4647 LIBS=$ac_check_lib_save_LIBS
4649 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4650 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4651 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4652 HAS_SASL2=1
4653 else
4654 HAS_SASL2=
4658 if test ${HAS_SASL:-unset} != "unset" ; then
4659 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber -lsasl"
4660 elif test ${HAS_SASL2:-unset} != "unset" ; then
4661 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber -lsasl2"
4662 else
4663 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber"
4670 # Check whether --enable-openssl or --disable-openssl was given.
4671 if test "${enable_openssl+set}" = set; then
4672 enableval="$enable_openssl"
4673 openssl=$enableval
4676 if test "$openssl" = "no" ; then
4677 cat >>confdefs.h <<\_ACEOF
4678 #define P_SSL 0
4679 _ACEOF
4681 HAS_OPENSSL=0
4683 else
4685 if test ${OPENSSLDIR:-unset} != "unset" ; then
4686 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
4687 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
4688 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
4689 echo "$as_me:$LINENO: result: yes" >&5
4690 echo "${ECHO_T}yes" >&6
4691 SSLHDR=1
4692 SSLINCLUDEDIR="${OPENSSLDIR}/include"
4693 SSLLIBDIR="${OPENSSLDIR}/lib"
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6
4701 if test "${SSLHDR:-unset}" = "unset" ; then
4703 for ac_header in openssl/ssl.h
4705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4707 echo "$as_me:$LINENO: checking for $ac_header" >&5
4708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4714 else
4715 # Is the header compilable?
4716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4718 cat >conftest.$ac_ext <<_ACEOF
4719 #line $LINENO "configure"
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4726 #include <$ac_header>
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } &&
4734 { ac_try='test -s conftest.$ac_objext'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 (eval $ac_try) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4740 ac_header_compiler=yes
4741 else
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 ac_header_compiler=no
4747 rm -f conftest.$ac_objext conftest.$ac_ext
4748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4749 echo "${ECHO_T}$ac_header_compiler" >&6
4751 # Is the header present?
4752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4754 cat >conftest.$ac_ext <<_ACEOF
4755 #line $LINENO "configure"
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <$ac_header>
4762 _ACEOF
4763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } >/dev/null; then
4771 if test -s conftest.err; then
4772 ac_cpp_err=$ac_cxx_preproc_warn_flag
4773 else
4774 ac_cpp_err=
4776 else
4777 ac_cpp_err=yes
4779 if test -z "$ac_cpp_err"; then
4780 ac_header_preproc=yes
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 ac_header_preproc=no
4787 rm -f conftest.err conftest.$ac_ext
4788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4789 echo "${ECHO_T}$ac_header_preproc" >&6
4791 # So? What about this header?
4792 case $ac_header_compiler:$ac_header_preproc in
4793 yes:no )
4794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4799 cat <<\_ASBOX
4800 ## ------------------------------------ ##
4801 ## Report this to bug-autoconf@gnu.org. ##
4802 ## ------------------------------------ ##
4803 _ASBOX
4805 sed "s/^/$as_me: WARNING: /" >&2
4807 no:yes )
4808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4815 cat <<\_ASBOX
4816 ## ------------------------------------ ##
4817 ## Report this to bug-autoconf@gnu.org. ##
4818 ## ------------------------------------ ##
4819 _ASBOX
4821 sed "s/^/$as_me: WARNING: /" >&2
4823 esac
4824 echo "$as_me:$LINENO: checking for $ac_header" >&5
4825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 eval "$as_ac_Header=$ac_header_preproc"
4831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4836 cat >>confdefs.h <<_ACEOF
4837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838 _ACEOF
4839 SSLHDR=1
4842 done
4844 if test "${SSLHDR:-unset}" = "unset" ; then
4845 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
4846 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
4847 cat >conftest.$ac_ext <<_ACEOF
4848 #define OPENSSL_NO_KRB5
4849 #include <openssl/ssl.h>
4850 int main(int argc,char **argv){}
4851 _ACEOF
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -s conftest.$ac_objext'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4864 SSLHDR=1
4865 else
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4870 rm -f conftest.$ac_objext conftest.$ac_ext
4871 if test ${SSLHDR:-unset} != "unset" ; then
4872 echo "$as_me:$LINENO: result: yes" >&5
4873 echo "${ECHO_T}yes" >&6
4874 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
4875 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
4876 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
4877 else
4878 echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6
4884 if test "${SSLHDR:-unset}" = "unset" ; then
4886 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
4887 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
4888 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
4889 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
4890 echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6
4892 else
4893 cat >conftest.$ac_ext <<_ACEOF
4894 #include "${openssl_dir}/include/openssl/ssl.h"
4895 int main(int argc,char **argv){ return 0; }
4896 _ACEOF
4897 $CXX $CXXFLAGS -I${openssl_dir}/include -c conftest.cc > /dev/null 2>&1
4898 if test $? = 0 ; then
4899 echo "$as_me:$LINENO: result: yes" >&5
4900 echo "${ECHO_T}yes" >&6
4901 SSLHDR=1
4902 SSLCCFLAGS=""
4903 SSLINCLUDEDIR="${openssl_dir}/include"
4904 SSLLIBDIR="${openssl_dir}/lib"
4905 break
4906 else
4907 echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6
4909 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
4910 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
4911 cat >conftest.$ac_ext <<_ACEOF
4912 #define OPENSSL_NO_KRB5
4913 #include "${openssl_dir}/include/openssl/ssl.h"
4914 int main(int argc,char **argv){}
4915 _ACEOF
4916 $CXX $CXXFLAGS -I${openssl_dir}/openssl/include -c conftest.cc > /dev/null 2>&1
4917 if test $? = 0 ; then
4918 echo "$as_me:$LINENO: result: yes" >&5
4919 echo "${ECHO_T}yes" >&6
4920 SSLHDR=1
4921 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
4922 SSLINCLUDEDIR="${openssl_dir}/include"
4923 SSLLIBDIR="${openssl_dir}/lib"
4924 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
4925 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
4926 break
4927 else
4928 echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4933 done
4936 if test ${SSLHDR:-unset} != "unset" ; then
4937 HAS_OPENSSL=1
4940 cat >>confdefs.h <<\_ACEOF
4941 #define P_SSL 1
4942 _ACEOF
4944 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
4945 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
4947 if test ${SSLLIBDIR:-unset} != "unset" ; then
4948 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
4950 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
4951 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
4960 # Check whether --enable-expat or --disable-expat was given.
4961 if test "${enable_expat+set}" = set; then
4962 enableval="$enable_expat"
4963 expat=$enableval
4966 if test "$expat" = "no" ; then
4967 HAS_EXPAT=0
4969 cat >>confdefs.h <<\_ACEOF
4970 #define P_EXPAT 0
4971 _ACEOF
4973 else
4976 for ac_header in expat.h
4978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4980 echo "$as_me:$LINENO: checking for $ac_header" >&5
4981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4987 else
4988 # Is the header compilable?
4989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4991 cat >conftest.$ac_ext <<_ACEOF
4992 #line $LINENO "configure"
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 $ac_includes_default
4999 #include <$ac_header>
5000 _ACEOF
5001 rm -f conftest.$ac_objext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003 (eval $ac_compile) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -s conftest.$ac_objext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_header_compiler=yes
5014 else
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5018 ac_header_compiler=no
5020 rm -f conftest.$ac_objext conftest.$ac_ext
5021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5022 echo "${ECHO_T}$ac_header_compiler" >&6
5024 # Is the header present?
5025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5027 cat >conftest.$ac_ext <<_ACEOF
5028 #line $LINENO "configure"
5029 /* confdefs.h. */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 #include <$ac_header>
5035 _ACEOF
5036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } >/dev/null; then
5044 if test -s conftest.err; then
5045 ac_cpp_err=$ac_cxx_preproc_warn_flag
5046 else
5047 ac_cpp_err=
5049 else
5050 ac_cpp_err=yes
5052 if test -z "$ac_cpp_err"; then
5053 ac_header_preproc=yes
5054 else
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5058 ac_header_preproc=no
5060 rm -f conftest.err conftest.$ac_ext
5061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5062 echo "${ECHO_T}$ac_header_preproc" >&6
5064 # So? What about this header?
5065 case $ac_header_compiler:$ac_header_preproc in
5066 yes:no )
5067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5072 cat <<\_ASBOX
5073 ## ------------------------------------ ##
5074 ## Report this to bug-autoconf@gnu.org. ##
5075 ## ------------------------------------ ##
5076 _ASBOX
5078 sed "s/^/$as_me: WARNING: /" >&2
5080 no:yes )
5081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5088 cat <<\_ASBOX
5089 ## ------------------------------------ ##
5090 ## Report this to bug-autoconf@gnu.org. ##
5091 ## ------------------------------------ ##
5092 _ASBOX
5094 sed "s/^/$as_me: WARNING: /" >&2
5096 esac
5097 echo "$as_me:$LINENO: checking for $ac_header" >&5
5098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 eval "$as_ac_Header=$ac_header_preproc"
5104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5109 cat >>confdefs.h <<_ACEOF
5110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5111 _ACEOF
5112 HAS_EXPAT=1
5115 done
5117 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5118 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
5119 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
5120 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123 ac_check_lib_save_LIBS=$LIBS
5124 LIBS="-lexpat $LIBS"
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 /* confdefs.h. */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5133 /* Override any gcc2 internal prototype to avoid an error. */
5134 #ifdef __cplusplus
5135 extern "C"
5136 #endif
5137 /* We use char because int might match the return type of a gcc2
5138 builtin and then its argument prototype would still apply. */
5139 char XML_ParserCreate ();
5141 main ()
5143 XML_ParserCreate ();
5145 return 0;
5147 _ACEOF
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } &&
5154 { ac_try='test -s conftest$ac_exeext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 (eval $ac_try) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 ac_cv_lib_expat_XML_ParserCreate=yes
5161 else
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5165 ac_cv_lib_expat_XML_ParserCreate=no
5167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5168 LIBS=$ac_check_lib_save_LIBS
5170 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5171 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
5172 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
5173 HAS_EXPAT=1
5174 else
5175 HAS_EXPAT=
5178 else
5179 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
5180 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
5181 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184 test "$cross_compiling" = yes &&
5185 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5186 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5187 { (exit 1); exit 1; }; }
5188 if test -r "/usr/local/include/expat.h"; then
5189 ac_cv_file__usr_local_include_expat_h=yes
5190 else
5191 ac_cv_file__usr_local_include_expat_h=no
5194 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
5195 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
5196 if test $ac_cv_file__usr_local_include_expat_h = yes; then
5197 HAS_EXPAT=1
5200 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5201 EXPATINCLUDEDIR=/usr/local/include
5202 EXPATLIBDIR=/usr/local/lib
5206 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5207 HAS_EXPAT=1
5210 cat >>confdefs.h <<\_ACEOF
5211 #define P_EXPAT 1
5212 _ACEOF
5214 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
5215 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
5217 if test ${EXPATLIBDIR:-unset} != "unset" ; then
5218 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
5220 ENDLDLIBS="$ENDLDLIBS -lexpat"
5229 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5230 if test "${enable_ipv6+set}" = set; then
5231 enableval="$enable_ipv6"
5232 ipv6=$enableval
5235 if test "$ipv6" = "no" ; then
5236 cat >>confdefs.h <<\_ACEOF
5237 #define P_HAS_IPV6 0
5238 _ACEOF
5240 HAS_IPV6=0
5242 else
5243 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
5244 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
5245 if test "${HAS_IPV6+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5250 /* confdefs.h. */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 #include <sys/types.h>
5256 #include <netinet/in.h>
5258 main ()
5260 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5262 return 0;
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -s conftest.$ac_objext'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 HAS_IPV6=yes
5278 else
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 HAS_IPV6=no
5284 rm -f conftest.$ac_objext conftest.$ac_ext
5286 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
5287 echo "${ECHO_T}$HAS_IPV6" >&6
5289 if test $HAS_IPV6 = yes ; then
5291 cat >>confdefs.h <<\_ACEOF
5292 #define P_HAS_IPV6 1
5293 _ACEOF
5300 # Check whether --enable-qos or --disable-qos was given.
5301 if test "${enable_qos+set}" = set; then
5302 enableval="$enable_qos"
5303 qos=$enableval
5306 if test "$qos" = "no" ; then
5308 cat >>confdefs.h <<\_ACEOF
5309 #define P_HAS_QOS 0
5310 _ACEOF
5312 else
5314 cat >>confdefs.h <<\_ACEOF
5315 #define P_HAS_QOS 1
5316 _ACEOF
5323 # Check whether --enable-sdl or --disable-sdl was given.
5324 if test "${enable_sdl+set}" = set; then
5325 enableval="$enable_sdl"
5326 sdl=$enableval
5329 if test "$sdl" = "no" ; then
5330 HAS_SDL=0
5332 cat >>confdefs.h <<\_ACEOF
5333 #define P_SDL 0
5334 _ACEOF
5336 else
5337 if test "${SDLLIB:-unset}" = "unset" ; then
5338 SDLLIB=SDL
5342 for ac_header in SDL/SDL.h
5344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5346 echo "$as_me:$LINENO: checking for $ac_header" >&5
5347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5353 else
5354 # Is the header compilable?
5355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5358 #line $LINENO "configure"
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 $ac_includes_default
5365 #include <$ac_header>
5366 _ACEOF
5367 rm -f conftest.$ac_objext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369 (eval $ac_compile) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -s conftest.$ac_objext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_header_compiler=yes
5380 else
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 ac_header_compiler=no
5386 rm -f conftest.$ac_objext conftest.$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5388 echo "${ECHO_T}$ac_header_compiler" >&6
5390 # Is the header present?
5391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5393 cat >conftest.$ac_ext <<_ACEOF
5394 #line $LINENO "configure"
5395 /* confdefs.h. */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5400 #include <$ac_header>
5401 _ACEOF
5402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } >/dev/null; then
5410 if test -s conftest.err; then
5411 ac_cpp_err=$ac_cxx_preproc_warn_flag
5412 else
5413 ac_cpp_err=
5415 else
5416 ac_cpp_err=yes
5418 if test -z "$ac_cpp_err"; then
5419 ac_header_preproc=yes
5420 else
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 ac_header_preproc=no
5426 rm -f conftest.err conftest.$ac_ext
5427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5428 echo "${ECHO_T}$ac_header_preproc" >&6
5430 # So? What about this header?
5431 case $ac_header_compiler:$ac_header_preproc in
5432 yes:no )
5433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5438 cat <<\_ASBOX
5439 ## ------------------------------------ ##
5440 ## Report this to bug-autoconf@gnu.org. ##
5441 ## ------------------------------------ ##
5442 _ASBOX
5444 sed "s/^/$as_me: WARNING: /" >&2
5446 no:yes )
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5454 cat <<\_ASBOX
5455 ## ------------------------------------ ##
5456 ## Report this to bug-autoconf@gnu.org. ##
5457 ## ------------------------------------ ##
5458 _ASBOX
5460 sed "s/^/$as_me: WARNING: /" >&2
5462 esac
5463 echo "$as_me:$LINENO: checking for $ac_header" >&5
5464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 eval "$as_ac_Header=$ac_header_preproc"
5470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5475 cat >>confdefs.h <<_ACEOF
5476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 _ACEOF
5478 HAS_SDL=1
5481 done
5483 if test "${HAS_SDL:-unset}" != "unset" ; then
5484 if test "${X11LIBDIR:-unset}" == "unset" ; then
5485 X11LIBDIR=/usr/lib/X11R6
5487 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5488 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5489 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492 ac_check_lib_save_LIBS=$LIBS
5493 LIBS="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext -laa $LIBS"
5494 cat >conftest.$ac_ext <<_ACEOF
5495 #line $LINENO "configure"
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5502 /* Override any gcc2 internal prototype to avoid an error. */
5503 #ifdef __cplusplus
5504 extern "C"
5505 #endif
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5508 char SDL_CreateYUVOverlay ();
5510 main ()
5512 SDL_CreateYUVOverlay ();
5514 return 0;
5516 _ACEOF
5517 rm -f conftest.$ac_objext conftest$ac_exeext
5518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5519 (eval $ac_link) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } &&
5523 { ac_try='test -s conftest$ac_exeext'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 (eval $ac_try) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5529 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
5530 else
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
5536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5537 LIBS=$ac_check_lib_save_LIBS
5539 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5540 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5541 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5542 HAS_SDL=1
5543 else
5544 HAS_SDL=
5549 if test "${HAS_SDL:-unset}" = "unset" ; then
5550 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5551 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5552 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 test "$cross_compiling" = yes &&
5556 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5557 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5558 { (exit 1); exit 1; }; }
5559 if test -r "/usr/local/include/SDL11/SDL.h"; then
5560 ac_cv_file__usr_local_include_SDL11_SDL_h=yes
5561 else
5562 ac_cv_file__usr_local_include_SDL11_SDL_h=no
5565 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
5566 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
5567 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
5568 HAS_SDL=1
5571 if test "${HAS_SDL:-unset}" != "unset" ; then
5572 SDLLIB=SDL-1.1
5576 if test "${HAS_SDL:-unset}" != "unset" ; then
5577 HAS_SDL=1
5580 cat >>confdefs.h <<\_ACEOF
5581 #define P_SDL 1
5582 _ACEOF
5584 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
5585 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
5587 if test ${SDLLIBDIR:-unset} != "unset" ; then
5588 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
5590 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
5596 # Check whether --enable-video or --disable-video was given.
5597 if test "${enable_video+set}" = set; then
5598 enableval="$enable_video"
5599 video=$enableval
5602 HAS_VIDEO_CAPTURE=0
5603 if test "$HAS_PLUGINS" = "0" ; then
5604 if test "$video" != "no" ; then
5605 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5606 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5607 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5608 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5612 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5613 else
5614 # Is the header compilable?
5615 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
5616 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 $ac_includes_default
5625 #include <linux/videodev.h>
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
5633 { ac_try='test -s conftest.$ac_objext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_header_compiler=yes
5640 else
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 ac_header_compiler=no
5646 rm -f conftest.$ac_objext conftest.$ac_ext
5647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5648 echo "${ECHO_T}$ac_header_compiler" >&6
5650 # Is the header present?
5651 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
5652 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <linux/videodev.h>
5661 _ACEOF
5662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null; then
5670 if test -s conftest.err; then
5671 ac_cpp_err=$ac_cxx_preproc_warn_flag
5672 else
5673 ac_cpp_err=
5675 else
5676 ac_cpp_err=yes
5678 if test -z "$ac_cpp_err"; then
5679 ac_header_preproc=yes
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_header_preproc=no
5686 rm -f conftest.err conftest.$ac_ext
5687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5688 echo "${ECHO_T}$ac_header_preproc" >&6
5690 # So? What about this header?
5691 case $ac_header_compiler:$ac_header_preproc in
5692 yes:no )
5693 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5694 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
5696 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
5698 cat <<\_ASBOX
5699 ## ------------------------------------ ##
5700 ## Report this to bug-autoconf@gnu.org. ##
5701 ## ------------------------------------ ##
5702 _ASBOX
5704 sed "s/^/$as_me: WARNING: /" >&2
5706 no:yes )
5707 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
5708 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
5710 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
5712 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
5714 cat <<\_ASBOX
5715 ## ------------------------------------ ##
5716 ## Report this to bug-autoconf@gnu.org. ##
5717 ## ------------------------------------ ##
5718 _ASBOX
5720 sed "s/^/$as_me: WARNING: /" >&2
5722 esac
5723 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5724 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5725 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 ac_cv_header_linux_videodev_h=$ac_header_preproc
5730 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5731 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5734 if test $ac_cv_header_linux_videodev_h = yes; then
5735 HAS_VIDEO_CAPTURE=1
5739 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
5740 { echo "$as_me:$LINENO: No Video Capture support" >&5
5741 echo "$as_me: No Video Capture support" >&6;}
5743 cat >>confdefs.h <<\_ACEOF
5744 #define NO_VIDEO_CAPTURE
5745 _ACEOF
5752 # Check whether --enable-alsa or --disable-alsa was given.
5753 if test "${enable_alsa+set}" = set; then
5754 enableval="$enable_alsa"
5755 enable_alsa=$enableval
5758 HAS_ALSA=0
5759 if test "$HAS_PLUGINS" = "0" ; then
5760 if test "$enable_alsa" != "no" ; then
5761 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5762 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
5763 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
5764 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
5768 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
5769 else
5770 # Is the header compilable?
5771 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
5772 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
5773 cat >conftest.$ac_ext <<_ACEOF
5774 #line $LINENO "configure"
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 $ac_includes_default
5781 #include <alsa/asoundlib.h>
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -s conftest.$ac_objext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_header_compiler=yes
5796 else
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 ac_header_compiler=no
5802 rm -f conftest.$ac_objext conftest.$ac_ext
5803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5804 echo "${ECHO_T}$ac_header_compiler" >&6
5806 # Is the header present?
5807 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
5808 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
5809 cat >conftest.$ac_ext <<_ACEOF
5810 #line $LINENO "configure"
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 #include <alsa/asoundlib.h>
5817 _ACEOF
5818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null; then
5826 if test -s conftest.err; then
5827 ac_cpp_err=$ac_cxx_preproc_warn_flag
5828 else
5829 ac_cpp_err=
5831 else
5832 ac_cpp_err=yes
5834 if test -z "$ac_cpp_err"; then
5835 ac_header_preproc=yes
5836 else
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5840 ac_header_preproc=no
5842 rm -f conftest.err conftest.$ac_ext
5843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5844 echo "${ECHO_T}$ac_header_preproc" >&6
5846 # So? What about this header?
5847 case $ac_header_compiler:$ac_header_preproc in
5848 yes:no )
5849 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5850 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5851 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
5852 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
5854 cat <<\_ASBOX
5855 ## ------------------------------------ ##
5856 ## Report this to bug-autoconf@gnu.org. ##
5857 ## ------------------------------------ ##
5858 _ASBOX
5860 sed "s/^/$as_me: WARNING: /" >&2
5862 no:yes )
5863 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
5864 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
5865 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
5866 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
5867 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
5868 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
5870 cat <<\_ASBOX
5871 ## ------------------------------------ ##
5872 ## Report this to bug-autoconf@gnu.org. ##
5873 ## ------------------------------------ ##
5874 _ASBOX
5876 sed "s/^/$as_me: WARNING: /" >&2
5878 esac
5879 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
5880 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
5881 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
5886 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
5887 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
5890 if test $ac_cv_header_alsa_asoundlib_h = yes; then
5891 HAS_ALSA=1
5895 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
5896 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
5897 if test "${HAS_ALSA}" = "1"; then
5898 echo "$as_me:$LINENO: result: yes" >&5
5899 echo "${ECHO_T}yes" >&6
5900 ENDLDLIBS="$ENDLDLIBS -lasound"
5901 else
5902 echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5909 if test "$OSTYPE" = "solaris" ; then
5910 USE_SYSTEM_SWAB=
5911 else
5912 echo "$as_me:$LINENO: checking for swab" >&5
5913 echo $ECHO_N "checking for swab... $ECHO_C" >&6
5914 if test "${ac_cv_func_swab+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917 cat >conftest.$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 /* System header to define __stub macros and hopefully few prototypes,
5925 which can conflict with char swab (); below.
5926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5927 <limits.h> exists even on freestanding compilers. */
5928 #ifdef __STDC__
5929 # include <limits.h>
5930 #else
5931 # include <assert.h>
5932 #endif
5933 /* Override any gcc2 internal prototype to avoid an error. */
5934 #ifdef __cplusplus
5935 extern "C"
5937 #endif
5938 /* We use char because int might match the return type of a gcc2
5939 builtin and then its argument prototype would still apply. */
5940 char swab ();
5941 /* The GNU C library defines this for functions which it implements
5942 to always fail with ENOSYS. Some functions are actually named
5943 something starting with __ and the normal name is an alias. */
5944 #if defined (__stub_swab) || defined (__stub___swab)
5945 choke me
5946 #else
5947 char (*f) () = swab;
5948 #endif
5949 #ifdef __cplusplus
5951 #endif
5954 main ()
5956 return f != swab;
5958 return 0;
5960 _ACEOF
5961 rm -f conftest.$ac_objext conftest$ac_exeext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -s conftest$ac_exeext'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 (eval $ac_try) 2>&5
5970 ac_status=$?
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5973 ac_cv_func_swab=yes
5974 else
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 ac_cv_func_swab=no
5980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5982 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
5983 echo "${ECHO_T}$ac_cv_func_swab" >&6
5984 if test $ac_cv_func_swab = yes; then
5985 USE_SYSTEM_SWAB=1
5989 if test "x$ac_cv_func_swab" = "xyes" ; then
5991 cat >>confdefs.h <<\_ACEOF
5992 #define USE_SYSTEM_SWAB
5993 _ACEOF
5998 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
5999 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
6000 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
6004 if test "${OSTYPE}" != "Darwin" ; then
6005 if test ${HAS_LIBDL} = yes ; then
6006 ENDLDLIBS="$ENDLDLIBS -ldl"
6015 ac_config_files="$ac_config_files make/ptbuildopts.mak"
6017 ac_config_files="$ac_config_files make/ptlib-config"
6019 ac_config_files="$ac_config_files Makefile"
6022 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
6023 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
6026 cat >confcache <<\_ACEOF
6027 # This file is a shell script that caches the results of configure
6028 # tests run on this system so they can be shared between configure
6029 # scripts and configure runs, see configure's option --config-cache.
6030 # It is not useful on other systems. If it contains results you don't
6031 # want to keep, you may remove or edit it.
6033 # config.status only pays attention to the cache file if you give it
6034 # the --recheck option to rerun configure.
6036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6038 # following values.
6040 _ACEOF
6042 # The following way of writing the cache mishandles newlines in values,
6043 # but we know of no workaround that is simple, portable, and efficient.
6044 # So, don't put newlines in cache variables' values.
6045 # Ultrix sh set writes to stderr and can't be redirected directly,
6046 # and sets the high bit in the cache file unless we assign to the vars.
6048 (set) 2>&1 |
6049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6050 *ac_space=\ *)
6051 # `set' does not quote correctly, so add quotes (double-quote
6052 # substitution turns \\\\ into \\, and sed turns \\ into \).
6053 sed -n \
6054 "s/'/'\\\\''/g;
6055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6058 # `set' quotes correctly as required by POSIX, so do not add quotes.
6059 sed -n \
6060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6062 esac;
6064 sed '
6065 t clear
6066 : clear
6067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6068 t end
6069 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6070 : end' >>confcache
6071 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6072 if test -w $cache_file; then
6073 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6074 cat confcache >$cache_file
6075 else
6076 echo "not updating unwritable cache $cache_file"
6079 rm -f confcache
6081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6082 # Let make expand exec_prefix.
6083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6085 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6086 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6087 # trailing colons and then remove the whole line if VPATH becomes empty
6088 # (actually we leave an empty line to preserve line numbers).
6089 if test "x$srcdir" = x.; then
6090 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6091 s/:*\$(srcdir):*/:/;
6092 s/:*\${srcdir}:*/:/;
6093 s/:*@srcdir@:*/:/;
6094 s/^\([^=]*=[ ]*\):*/\1/;
6095 s/:*$//;
6096 s/^[^=]*=[ ]*$//;
6100 DEFS=-DHAVE_CONFIG_H
6102 ac_libobjs=
6103 ac_ltlibobjs=
6104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6105 # 1. Remove the extension, and $U if already installed.
6106 ac_i=`echo "$ac_i" |
6107 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6108 # 2. Add them.
6109 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6110 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6111 done
6112 LIBOBJS=$ac_libobjs
6114 LTLIBOBJS=$ac_ltlibobjs
6118 : ${CONFIG_STATUS=./config.status}
6119 ac_clean_files_save=$ac_clean_files
6120 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6121 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6122 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6123 cat >$CONFIG_STATUS <<_ACEOF
6124 #! $SHELL
6125 # Generated by $as_me.
6126 # Run this file to recreate the current configuration.
6127 # Compiler output produced by configure, useful for debugging
6128 # configure, is in config.log if it exists.
6130 debug=false
6131 ac_cs_recheck=false
6132 ac_cs_silent=false
6133 SHELL=\${CONFIG_SHELL-$SHELL}
6134 _ACEOF
6136 cat >>$CONFIG_STATUS <<\_ACEOF
6137 ## --------------------- ##
6138 ## M4sh Initialization. ##
6139 ## --------------------- ##
6141 # Be Bourne compatible
6142 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6143 emulate sh
6144 NULLCMD=:
6145 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6146 # is contrary to our usage. Disable this feature.
6147 alias -g '${1+"$@"}'='"$@"'
6148 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6149 set -o posix
6152 # Support unset when possible.
6153 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6154 as_unset=unset
6155 else
6156 as_unset=false
6160 # Work around bugs in pre-3.0 UWIN ksh.
6161 $as_unset ENV MAIL MAILPATH
6162 PS1='$ '
6163 PS2='> '
6164 PS4='+ '
6166 # NLS nuisances.
6167 for as_var in \
6168 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6169 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6170 LC_TELEPHONE LC_TIME
6172 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6173 eval $as_var=C; export $as_var
6174 else
6175 $as_unset $as_var
6177 done
6179 # Required to use basename.
6180 if expr a : '\(a\)' >/dev/null 2>&1; then
6181 as_expr=expr
6182 else
6183 as_expr=false
6186 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6187 as_basename=basename
6188 else
6189 as_basename=false
6193 # Name of the executable.
6194 as_me=`$as_basename "$0" ||
6195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6196 X"$0" : 'X\(//\)$' \| \
6197 X"$0" : 'X\(/\)$' \| \
6198 . : '\(.\)' 2>/dev/null ||
6199 echo X/"$0" |
6200 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6201 /^X\/\(\/\/\)$/{ s//\1/; q; }
6202 /^X\/\(\/\).*/{ s//\1/; q; }
6203 s/.*/./; q'`
6206 # PATH needs CR, and LINENO needs CR and PATH.
6207 # Avoid depending upon Character Ranges.
6208 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6209 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6210 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6211 as_cr_digits='0123456789'
6212 as_cr_alnum=$as_cr_Letters$as_cr_digits
6214 # The user is always right.
6215 if test "${PATH_SEPARATOR+set}" != set; then
6216 echo "#! /bin/sh" >conf$$.sh
6217 echo "exit 0" >>conf$$.sh
6218 chmod +x conf$$.sh
6219 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6220 PATH_SEPARATOR=';'
6221 else
6222 PATH_SEPARATOR=:
6224 rm -f conf$$.sh
6228 as_lineno_1=$LINENO
6229 as_lineno_2=$LINENO
6230 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6231 test "x$as_lineno_1" != "x$as_lineno_2" &&
6232 test "x$as_lineno_3" = "x$as_lineno_2" || {
6233 # Find who we are. Look in the path if we contain no path at all
6234 # relative or not.
6235 case $0 in
6236 *[\\/]* ) as_myself=$0 ;;
6237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6243 done
6246 esac
6247 # We did not find ourselves, most probably we were run as `sh COMMAND'
6248 # in which case we are not to be found in the path.
6249 if test "x$as_myself" = x; then
6250 as_myself=$0
6252 if test ! -f "$as_myself"; then
6253 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6254 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6255 { (exit 1); exit 1; }; }
6257 case $CONFIG_SHELL in
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for as_base in sh bash ksh sh5; do
6265 case $as_dir in
6267 if ("$as_dir/$as_base" -c '
6268 as_lineno_1=$LINENO
6269 as_lineno_2=$LINENO
6270 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6271 test "x$as_lineno_1" != "x$as_lineno_2" &&
6272 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6273 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6274 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6275 CONFIG_SHELL=$as_dir/$as_base
6276 export CONFIG_SHELL
6277 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6278 fi;;
6279 esac
6280 done
6281 done
6283 esac
6285 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6286 # uniformly replaced by the line number. The first 'sed' inserts a
6287 # line-number line before each line; the second 'sed' does the real
6288 # work. The second script uses 'N' to pair each line-number line
6289 # with the numbered line, and appends trailing '-' during
6290 # substitution so that $LINENO is not a special case at line end.
6291 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6292 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6293 sed '=' <$as_myself |
6294 sed '
6296 s,$,-,
6297 : loop
6298 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6299 t loop
6300 s,-$,,
6301 s,^['$as_cr_digits']*\n,,
6302 ' >$as_me.lineno &&
6303 chmod +x $as_me.lineno ||
6304 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6305 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6306 { (exit 1); exit 1; }; }
6308 # Don't try to exec as it changes $[0], causing all sort of problems
6309 # (the dirname of $[0] is not the place where we might find the
6310 # original and so on. Autoconf is especially sensible to this).
6311 . ./$as_me.lineno
6312 # Exit status is that of the last command.
6313 exit
6317 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6318 *c*,-n*) ECHO_N= ECHO_C='
6319 ' ECHO_T=' ' ;;
6320 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6321 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6322 esac
6324 if expr a : '\(a\)' >/dev/null 2>&1; then
6325 as_expr=expr
6326 else
6327 as_expr=false
6330 rm -f conf$$ conf$$.exe conf$$.file
6331 echo >conf$$.file
6332 if ln -s conf$$.file conf$$ 2>/dev/null; then
6333 # We could just check for DJGPP; but this test a) works b) is more generic
6334 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6335 if test -f conf$$.exe; then
6336 # Don't use ln at all; we don't have any links
6337 as_ln_s='cp -p'
6338 else
6339 as_ln_s='ln -s'
6341 elif ln conf$$.file conf$$ 2>/dev/null; then
6342 as_ln_s=ln
6343 else
6344 as_ln_s='cp -p'
6346 rm -f conf$$ conf$$.exe conf$$.file
6348 if mkdir -p . 2>/dev/null; then
6349 as_mkdir_p=:
6350 else
6351 as_mkdir_p=false
6354 as_executable_p="test -f"
6356 # Sed expression to map a string onto a valid CPP name.
6357 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6359 # Sed expression to map a string onto a valid variable name.
6360 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6363 # IFS
6364 # We need space, tab and new line, in precisely that order.
6365 as_nl='
6367 IFS=" $as_nl"
6369 # CDPATH.
6370 $as_unset CDPATH
6372 exec 6>&1
6374 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6375 # report actual input values of CONFIG_FILES etc. instead of their
6376 # values after options handling. Logging --version etc. is OK.
6377 exec 5>>config.log
6379 echo
6380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6381 ## Running $as_me. ##
6382 _ASBOX
6383 } >&5
6384 cat >&5 <<_CSEOF
6386 This file was extended by $as_me, which was
6387 generated by GNU Autoconf 2.57. Invocation command line was
6389 CONFIG_FILES = $CONFIG_FILES
6390 CONFIG_HEADERS = $CONFIG_HEADERS
6391 CONFIG_LINKS = $CONFIG_LINKS
6392 CONFIG_COMMANDS = $CONFIG_COMMANDS
6393 $ $0 $@
6395 _CSEOF
6396 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6397 echo >&5
6398 _ACEOF
6400 # Files that config.status was made for.
6401 if test -n "$ac_config_files"; then
6402 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6405 if test -n "$ac_config_headers"; then
6406 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6409 if test -n "$ac_config_links"; then
6410 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6413 if test -n "$ac_config_commands"; then
6414 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6417 cat >>$CONFIG_STATUS <<\_ACEOF
6419 ac_cs_usage="\
6420 \`$as_me' instantiates files from templates according to the
6421 current configuration.
6423 Usage: $0 [OPTIONS] [FILE]...
6425 -h, --help print this help, then exit
6426 -V, --version print version number, then exit
6427 -q, --quiet do not print progress messages
6428 -d, --debug don't remove temporary files
6429 --recheck update $as_me by reconfiguring in the same conditions
6430 --file=FILE[:TEMPLATE]
6431 instantiate the configuration file FILE
6432 --header=FILE[:TEMPLATE]
6433 instantiate the configuration header FILE
6435 Configuration files:
6436 $config_files
6438 Configuration headers:
6439 $config_headers
6441 Report bugs to <bug-autoconf@gnu.org>."
6442 _ACEOF
6444 cat >>$CONFIG_STATUS <<_ACEOF
6445 ac_cs_version="\\
6446 config.status
6447 configured by $0, generated by GNU Autoconf 2.57,
6448 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6450 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6451 Free Software Foundation, Inc.
6452 This config.status script is free software; the Free Software Foundation
6453 gives unlimited permission to copy, distribute and modify it."
6454 srcdir=$srcdir
6455 _ACEOF
6457 cat >>$CONFIG_STATUS <<\_ACEOF
6458 # If no file are specified by the user, then we need to provide default
6459 # value. By we need to know if files were specified by the user.
6460 ac_need_defaults=:
6461 while test $# != 0
6463 case $1 in
6464 --*=*)
6465 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6466 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6467 ac_shift=:
6470 ac_option=$1
6471 ac_optarg=$2
6472 ac_shift=shift
6474 *) # This is not an option, so the user has probably given explicit
6475 # arguments.
6476 ac_option=$1
6477 ac_need_defaults=false;;
6478 esac
6480 case $ac_option in
6481 # Handling of the options.
6482 _ACEOF
6483 cat >>$CONFIG_STATUS <<\_ACEOF
6484 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6485 ac_cs_recheck=: ;;
6486 --version | --vers* | -V )
6487 echo "$ac_cs_version"; exit 0 ;;
6488 --he | --h)
6489 # Conflict between --help and --header
6490 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6491 Try \`$0 --help' for more information." >&5
6492 echo "$as_me: error: ambiguous option: $1
6493 Try \`$0 --help' for more information." >&2;}
6494 { (exit 1); exit 1; }; };;
6495 --help | --hel | -h )
6496 echo "$ac_cs_usage"; exit 0 ;;
6497 --debug | --d* | -d )
6498 debug=: ;;
6499 --file | --fil | --fi | --f )
6500 $ac_shift
6501 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6502 ac_need_defaults=false;;
6503 --header | --heade | --head | --hea )
6504 $ac_shift
6505 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6506 ac_need_defaults=false;;
6507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6508 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6509 ac_cs_silent=: ;;
6511 # This is an error.
6512 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6513 Try \`$0 --help' for more information." >&5
6514 echo "$as_me: error: unrecognized option: $1
6515 Try \`$0 --help' for more information." >&2;}
6516 { (exit 1); exit 1; }; } ;;
6518 *) ac_config_targets="$ac_config_targets $1" ;;
6520 esac
6521 shift
6522 done
6524 ac_configure_extra_args=
6526 if $ac_cs_silent; then
6527 exec 6>/dev/null
6528 ac_configure_extra_args="$ac_configure_extra_args --silent"
6531 _ACEOF
6532 cat >>$CONFIG_STATUS <<_ACEOF
6533 if \$ac_cs_recheck; then
6534 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6535 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6538 _ACEOF
6544 cat >>$CONFIG_STATUS <<\_ACEOF
6545 for ac_config_target in $ac_config_targets
6547 case "$ac_config_target" in
6548 # Handling of arguments.
6549 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
6550 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
6551 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6552 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
6553 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6554 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6555 { (exit 1); exit 1; }; };;
6556 esac
6557 done
6559 # If the user did not use the arguments to specify the items to instantiate,
6560 # then the envvar interface is used. Set only those that are not.
6561 # We use the long form for the default assignment because of an extremely
6562 # bizarre bug on SunOS 4.1.3.
6563 if $ac_need_defaults; then
6564 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6565 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6568 # Have a temporary directory for convenience. Make it in the build tree
6569 # simply because there is no reason to put it here, and in addition,
6570 # creating and moving files from /tmp can sometimes cause problems.
6571 # Create a temporary directory, and hook for its removal unless debugging.
6572 $debug ||
6574 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6575 trap '{ (exit 1); exit 1; }' 1 2 13 15
6578 # Create a (secure) tmp directory for tmp files.
6581 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6582 test -n "$tmp" && test -d "$tmp"
6583 } ||
6585 tmp=./confstat$$-$RANDOM
6586 (umask 077 && mkdir $tmp)
6587 } ||
6589 echo "$me: cannot create a temporary directory in ." >&2
6590 { (exit 1); exit 1; }
6593 _ACEOF
6595 cat >>$CONFIG_STATUS <<_ACEOF
6598 # CONFIG_FILES section.
6601 # No need to generate the scripts if there are no CONFIG_FILES.
6602 # This happens for instance when ./config.status config.h
6603 if test -n "\$CONFIG_FILES"; then
6604 # Protect against being on the right side of a sed subst in config.status.
6605 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6606 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6607 s,@SHELL@,$SHELL,;t t
6608 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6609 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6610 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6611 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6612 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6613 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6614 s,@exec_prefix@,$exec_prefix,;t t
6615 s,@prefix@,$prefix,;t t
6616 s,@program_transform_name@,$program_transform_name,;t t
6617 s,@bindir@,$bindir,;t t
6618 s,@sbindir@,$sbindir,;t t
6619 s,@libexecdir@,$libexecdir,;t t
6620 s,@datadir@,$datadir,;t t
6621 s,@sysconfdir@,$sysconfdir,;t t
6622 s,@sharedstatedir@,$sharedstatedir,;t t
6623 s,@localstatedir@,$localstatedir,;t t
6624 s,@libdir@,$libdir,;t t
6625 s,@includedir@,$includedir,;t t
6626 s,@oldincludedir@,$oldincludedir,;t t
6627 s,@infodir@,$infodir,;t t
6628 s,@mandir@,$mandir,;t t
6629 s,@build_alias@,$build_alias,;t t
6630 s,@host_alias@,$host_alias,;t t
6631 s,@target_alias@,$target_alias,;t t
6632 s,@DEFS@,$DEFS,;t t
6633 s,@ECHO_C@,$ECHO_C,;t t
6634 s,@ECHO_N@,$ECHO_N,;t t
6635 s,@ECHO_T@,$ECHO_T,;t t
6636 s,@LIBS@,$LIBS,;t t
6637 s,@subdirs@,$subdirs,;t t
6638 s,@CXX@,$CXX,;t t
6639 s,@CXXFLAGS@,$CXXFLAGS,;t t
6640 s,@LDFLAGS@,$LDFLAGS,;t t
6641 s,@CPPFLAGS@,$CPPFLAGS,;t t
6642 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6643 s,@EXEEXT@,$EXEEXT,;t t
6644 s,@OBJEXT@,$OBJEXT,;t t
6645 s,@PWLIBDIR@,$PWLIBDIR,;t t
6646 s,@PWINSTDIR@,$PWINSTDIR,;t t
6647 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6648 s,@LIBDIR@,$LIBDIR,;t t
6649 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
6650 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
6651 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
6652 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
6653 s,@build@,$build,;t t
6654 s,@build_cpu@,$build_cpu,;t t
6655 s,@build_vendor@,$build_vendor,;t t
6656 s,@build_os@,$build_os,;t t
6657 s,@host@,$host,;t t
6658 s,@host_cpu@,$host_cpu,;t t
6659 s,@host_vendor@,$host_vendor,;t t
6660 s,@host_os@,$host_os,;t t
6661 s,@target@,$target,;t t
6662 s,@target_cpu@,$target_cpu,;t t
6663 s,@target_vendor@,$target_vendor,;t t
6664 s,@target_os@,$target_os,;t t
6665 s,@MACHTYPE@,$MACHTYPE,;t t
6666 s,@OSTYPE@,$OSTYPE,;t t
6667 s,@OSRELEASE@,$OSRELEASE,;t t
6668 s,@TARGETDIR@,$TARGETDIR,;t t
6669 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
6670 s,@CXXCPP@,$CXXCPP,;t t
6671 s,@EGREP@,$EGREP,;t t
6672 s,@HAS_REGEX@,$HAS_REGEX,;t t
6673 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
6674 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
6675 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
6676 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
6677 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
6678 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
6679 s,@HAS_IPV6@,$HAS_IPV6,;t t
6680 s,@HAS_SDL@,$HAS_SDL,;t t
6681 s,@HAS_VIDEO_CAPTURE@,$HAS_VIDEO_CAPTURE,;t t
6682 s,@HAS_ALSA@,$HAS_ALSA,;t t
6683 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
6684 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
6685 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
6686 s,@LIBOBJS@,$LIBOBJS,;t t
6687 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6688 CEOF
6690 _ACEOF
6692 cat >>$CONFIG_STATUS <<\_ACEOF
6693 # Split the substitutions into bite-sized pieces for seds with
6694 # small command number limits, like on Digital OSF/1 and HP-UX.
6695 ac_max_sed_lines=48
6696 ac_sed_frag=1 # Number of current file.
6697 ac_beg=1 # First line for current file.
6698 ac_end=$ac_max_sed_lines # Line after last line for current file.
6699 ac_more_lines=:
6700 ac_sed_cmds=
6701 while $ac_more_lines; do
6702 if test $ac_beg -gt 1; then
6703 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6704 else
6705 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6707 if test ! -s $tmp/subs.frag; then
6708 ac_more_lines=false
6709 else
6710 # The purpose of the label and of the branching condition is to
6711 # speed up the sed processing (if there are no `@' at all, there
6712 # is no need to browse any of the substitutions).
6713 # These are the two extra sed commands mentioned above.
6714 (echo ':t
6715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6716 if test -z "$ac_sed_cmds"; then
6717 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6718 else
6719 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6721 ac_sed_frag=`expr $ac_sed_frag + 1`
6722 ac_beg=$ac_end
6723 ac_end=`expr $ac_end + $ac_max_sed_lines`
6725 done
6726 if test -z "$ac_sed_cmds"; then
6727 ac_sed_cmds=cat
6729 fi # test -n "$CONFIG_FILES"
6731 _ACEOF
6732 cat >>$CONFIG_STATUS <<\_ACEOF
6733 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6734 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6735 case $ac_file in
6736 - | *:- | *:-:* ) # input from stdin
6737 cat >$tmp/stdin
6738 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6740 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6742 * ) ac_file_in=$ac_file.in ;;
6743 esac
6745 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6746 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6748 X"$ac_file" : 'X\(//\)[^/]' \| \
6749 X"$ac_file" : 'X\(//\)$' \| \
6750 X"$ac_file" : 'X\(/\)' \| \
6751 . : '\(.\)' 2>/dev/null ||
6752 echo X"$ac_file" |
6753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6755 /^X\(\/\/\)$/{ s//\1/; q; }
6756 /^X\(\/\).*/{ s//\1/; q; }
6757 s/.*/./; q'`
6758 { if $as_mkdir_p; then
6759 mkdir -p "$ac_dir"
6760 else
6761 as_dir="$ac_dir"
6762 as_dirs=
6763 while test ! -d "$as_dir"; do
6764 as_dirs="$as_dir $as_dirs"
6765 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6767 X"$as_dir" : 'X\(//\)[^/]' \| \
6768 X"$as_dir" : 'X\(//\)$' \| \
6769 X"$as_dir" : 'X\(/\)' \| \
6770 . : '\(.\)' 2>/dev/null ||
6771 echo X"$as_dir" |
6772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6774 /^X\(\/\/\)$/{ s//\1/; q; }
6775 /^X\(\/\).*/{ s//\1/; q; }
6776 s/.*/./; q'`
6777 done
6778 test ! -n "$as_dirs" || mkdir $as_dirs
6779 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6780 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6781 { (exit 1); exit 1; }; }; }
6783 ac_builddir=.
6785 if test "$ac_dir" != .; then
6786 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6787 # A "../" for each directory in $ac_dir_suffix.
6788 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6789 else
6790 ac_dir_suffix= ac_top_builddir=
6793 case $srcdir in
6794 .) # No --srcdir option. We are building in place.
6795 ac_srcdir=.
6796 if test -z "$ac_top_builddir"; then
6797 ac_top_srcdir=.
6798 else
6799 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6800 fi ;;
6801 [\\/]* | ?:[\\/]* ) # Absolute path.
6802 ac_srcdir=$srcdir$ac_dir_suffix;
6803 ac_top_srcdir=$srcdir ;;
6804 *) # Relative path.
6805 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6806 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6807 esac
6808 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6809 # absolute.
6810 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6811 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6812 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6813 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6817 if test x"$ac_file" != x-; then
6818 { echo "$as_me:$LINENO: creating $ac_file" >&5
6819 echo "$as_me: creating $ac_file" >&6;}
6820 rm -f "$ac_file"
6822 # Let's still pretend it is `configure' which instantiates (i.e., don't
6823 # use $as_me), people would be surprised to read:
6824 # /* config.h. Generated by config.status. */
6825 if test x"$ac_file" = x-; then
6826 configure_input=
6827 else
6828 configure_input="$ac_file. "
6830 configure_input=$configure_input"Generated from `echo $ac_file_in |
6831 sed 's,.*/,,'` by configure."
6833 # First look for the input files in the build tree, otherwise in the
6834 # src tree.
6835 ac_file_inputs=`IFS=:
6836 for f in $ac_file_in; do
6837 case $f in
6838 -) echo $tmp/stdin ;;
6839 [\\/$]*)
6840 # Absolute (can't be DOS-style, as IFS=:)
6841 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6842 echo "$as_me: error: cannot find input file: $f" >&2;}
6843 { (exit 1); exit 1; }; }
6844 echo $f;;
6845 *) # Relative
6846 if test -f "$f"; then
6847 # Build tree
6848 echo $f
6849 elif test -f "$srcdir/$f"; then
6850 # Source tree
6851 echo $srcdir/$f
6852 else
6853 # /dev/null tree
6854 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6855 echo "$as_me: error: cannot find input file: $f" >&2;}
6856 { (exit 1); exit 1; }; }
6857 fi;;
6858 esac
6859 done` || { (exit 1); exit 1; }
6860 _ACEOF
6861 cat >>$CONFIG_STATUS <<_ACEOF
6862 sed "$ac_vpsub
6863 $extrasub
6864 _ACEOF
6865 cat >>$CONFIG_STATUS <<\_ACEOF
6867 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6868 s,@configure_input@,$configure_input,;t t
6869 s,@srcdir@,$ac_srcdir,;t t
6870 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6871 s,@top_srcdir@,$ac_top_srcdir,;t t
6872 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6873 s,@builddir@,$ac_builddir,;t t
6874 s,@abs_builddir@,$ac_abs_builddir,;t t
6875 s,@top_builddir@,$ac_top_builddir,;t t
6876 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6877 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6878 rm -f $tmp/stdin
6879 if test x"$ac_file" != x-; then
6880 mv $tmp/out $ac_file
6881 else
6882 cat $tmp/out
6883 rm -f $tmp/out
6886 # Run the commands associated with the file.
6887 case $ac_file in
6888 make/ptlib-config ) chmod a+x make/ptlib-config ;;
6889 esac
6890 done
6891 _ACEOF
6892 cat >>$CONFIG_STATUS <<\_ACEOF
6895 # CONFIG_HEADER section.
6898 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6899 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6901 # ac_d sets the value in "#define NAME VALUE" lines.
6902 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6903 ac_dB='[ ].*$,\1#\2'
6904 ac_dC=' '
6905 ac_dD=',;t'
6906 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6907 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6908 ac_uB='$,\1#\2define\3'
6909 ac_uC=' '
6910 ac_uD=',;t'
6912 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6914 case $ac_file in
6915 - | *:- | *:-:* ) # input from stdin
6916 cat >$tmp/stdin
6917 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6919 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6920 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6921 * ) ac_file_in=$ac_file.in ;;
6922 esac
6924 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6925 echo "$as_me: creating $ac_file" >&6;}
6927 # First look for the input files in the build tree, otherwise in the
6928 # src tree.
6929 ac_file_inputs=`IFS=:
6930 for f in $ac_file_in; do
6931 case $f in
6932 -) echo $tmp/stdin ;;
6933 [\\/$]*)
6934 # Absolute (can't be DOS-style, as IFS=:)
6935 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6936 echo "$as_me: error: cannot find input file: $f" >&2;}
6937 { (exit 1); exit 1; }; }
6938 echo $f;;
6939 *) # Relative
6940 if test -f "$f"; then
6941 # Build tree
6942 echo $f
6943 elif test -f "$srcdir/$f"; then
6944 # Source tree
6945 echo $srcdir/$f
6946 else
6947 # /dev/null tree
6948 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6949 echo "$as_me: error: cannot find input file: $f" >&2;}
6950 { (exit 1); exit 1; }; }
6951 fi;;
6952 esac
6953 done` || { (exit 1); exit 1; }
6954 # Remove the trailing spaces.
6955 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6957 _ACEOF
6959 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6960 # `conftest.undefs', that substitutes the proper values into
6961 # config.h.in to produce config.h. The first handles `#define'
6962 # templates, and the second `#undef' templates.
6963 # And first: Protect against being on the right side of a sed subst in
6964 # config.status. Protect against being in an unquoted here document
6965 # in config.status.
6966 rm -f conftest.defines conftest.undefs
6967 # Using a here document instead of a string reduces the quoting nightmare.
6968 # Putting comments in sed scripts is not portable.
6970 # `end' is used to avoid that the second main sed command (meant for
6971 # 0-ary CPP macros) applies to n-ary macro definitions.
6972 # See the Autoconf documentation for `clear'.
6973 cat >confdef2sed.sed <<\_ACEOF
6974 s/[\\&,]/\\&/g
6975 s,[\\$`],\\&,g
6976 t clear
6977 : clear
6978 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6979 t end
6980 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6981 : end
6982 _ACEOF
6983 # If some macros were called several times there might be several times
6984 # the same #defines, which is useless. Nevertheless, we may not want to
6985 # sort them, since we want the *last* AC-DEFINE to be honored.
6986 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6987 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6988 rm -f confdef2sed.sed
6990 # This sed command replaces #undef with comments. This is necessary, for
6991 # example, in the case of _POSIX_SOURCE, which is predefined and required
6992 # on some systems where configure will not decide to define it.
6993 cat >>conftest.undefs <<\_ACEOF
6994 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6995 _ACEOF
6997 # Break up conftest.defines because some shells have a limit on the size
6998 # of here documents, and old seds have small limits too (100 cmds).
6999 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7000 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7001 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7002 echo ' :' >>$CONFIG_STATUS
7003 rm -f conftest.tail
7004 while grep . conftest.defines >/dev/null
7006 # Write a limited-size here document to $tmp/defines.sed.
7007 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7008 # Speed up: don't consider the non `#define' lines.
7009 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7010 # Work around the forget-to-reset-the-flag bug.
7011 echo 't clr' >>$CONFIG_STATUS
7012 echo ': clr' >>$CONFIG_STATUS
7013 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7014 echo 'CEOF
7015 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7016 rm -f $tmp/in
7017 mv $tmp/out $tmp/in
7018 ' >>$CONFIG_STATUS
7019 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7020 rm -f conftest.defines
7021 mv conftest.tail conftest.defines
7022 done
7023 rm -f conftest.defines
7024 echo ' fi # grep' >>$CONFIG_STATUS
7025 echo >>$CONFIG_STATUS
7027 # Break up conftest.undefs because some shells have a limit on the size
7028 # of here documents, and old seds have small limits too (100 cmds).
7029 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7030 rm -f conftest.tail
7031 while grep . conftest.undefs >/dev/null
7033 # Write a limited-size here document to $tmp/undefs.sed.
7034 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7035 # Speed up: don't consider the non `#undef'
7036 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7037 # Work around the forget-to-reset-the-flag bug.
7038 echo 't clr' >>$CONFIG_STATUS
7039 echo ': clr' >>$CONFIG_STATUS
7040 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7041 echo 'CEOF
7042 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7043 rm -f $tmp/in
7044 mv $tmp/out $tmp/in
7045 ' >>$CONFIG_STATUS
7046 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7047 rm -f conftest.undefs
7048 mv conftest.tail conftest.undefs
7049 done
7050 rm -f conftest.undefs
7052 cat >>$CONFIG_STATUS <<\_ACEOF
7053 # Let's still pretend it is `configure' which instantiates (i.e., don't
7054 # use $as_me), people would be surprised to read:
7055 # /* config.h. Generated by config.status. */
7056 if test x"$ac_file" = x-; then
7057 echo "/* Generated by configure. */" >$tmp/config.h
7058 else
7059 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7061 cat $tmp/in >>$tmp/config.h
7062 rm -f $tmp/in
7063 if test x"$ac_file" != x-; then
7064 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7065 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7066 echo "$as_me: $ac_file is unchanged" >&6;}
7067 else
7068 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7070 X"$ac_file" : 'X\(//\)[^/]' \| \
7071 X"$ac_file" : 'X\(//\)$' \| \
7072 X"$ac_file" : 'X\(/\)' \| \
7073 . : '\(.\)' 2>/dev/null ||
7074 echo X"$ac_file" |
7075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7077 /^X\(\/\/\)$/{ s//\1/; q; }
7078 /^X\(\/\).*/{ s//\1/; q; }
7079 s/.*/./; q'`
7080 { if $as_mkdir_p; then
7081 mkdir -p "$ac_dir"
7082 else
7083 as_dir="$ac_dir"
7084 as_dirs=
7085 while test ! -d "$as_dir"; do
7086 as_dirs="$as_dir $as_dirs"
7087 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7089 X"$as_dir" : 'X\(//\)[^/]' \| \
7090 X"$as_dir" : 'X\(//\)$' \| \
7091 X"$as_dir" : 'X\(/\)' \| \
7092 . : '\(.\)' 2>/dev/null ||
7093 echo X"$as_dir" |
7094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7096 /^X\(\/\/\)$/{ s//\1/; q; }
7097 /^X\(\/\).*/{ s//\1/; q; }
7098 s/.*/./; q'`
7099 done
7100 test ! -n "$as_dirs" || mkdir $as_dirs
7101 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7102 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7103 { (exit 1); exit 1; }; }; }
7105 rm -f $ac_file
7106 mv $tmp/config.h $ac_file
7108 else
7109 cat $tmp/config.h
7110 rm -f $tmp/config.h
7112 done
7113 _ACEOF
7115 cat >>$CONFIG_STATUS <<\_ACEOF
7117 { (exit 0); exit 0; }
7118 _ACEOF
7119 chmod +x $CONFIG_STATUS
7120 ac_clean_files=$ac_clean_files_save
7123 # configure is writing to config.log, and then calls config.status.
7124 # config.status does its own redirection, appending to config.log.
7125 # Unfortunately, on DOS this fails, as config.log is still kept open
7126 # by configure, so config.status won't be able to write to it; its
7127 # output is simply discarded. So we exec the FD to /dev/null,
7128 # effectively closing config.log, so it can be properly (re)opened and
7129 # appended to by config.status. When coming back to configure, we
7130 # need to make the FD available again.
7131 if test "$no_create" != yes; then
7132 ac_cs_success=:
7133 ac_config_status_args=
7134 test "$silent" = yes &&
7135 ac_config_status_args="$ac_config_status_args --quiet"
7136 exec 5>/dev/null
7137 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7138 exec 5>>config.log
7139 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7140 # would make configure fail if this is the last instruction.
7141 $ac_cs_success || { (exit 1); exit 1; }
7145 # CONFIG_SUBDIRS section.
7147 if test "$no_recursion" != yes; then
7149 # Remove --cache-file and --srcdir arguments so they do not pile up.
7150 ac_sub_configure_args=
7151 ac_prev=
7152 for ac_arg in $ac_configure_args; do
7153 if test -n "$ac_prev"; then
7154 ac_prev=
7155 continue
7157 case $ac_arg in
7158 -cache-file | --cache-file | --cache-fil | --cache-fi \
7159 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7160 ac_prev=cache_file ;;
7161 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7162 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7163 | --c=*)
7165 --config-cache | -C)
7167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7168 ac_prev=srcdir ;;
7169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7172 ac_prev=prefix ;;
7173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7175 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7176 esac
7177 done
7179 # Always prepend --prefix to ensure using the same prefix
7180 # in subdir configurations.
7181 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7183 ac_popdir=`pwd`
7184 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7186 # Do not complain, so a configure script can configure whichever
7187 # parts of a large source tree are present.
7188 test -d $srcdir/$ac_dir || continue
7190 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7191 echo "$as_me: configuring in $ac_dir" >&6;}
7192 { if $as_mkdir_p; then
7193 mkdir -p "$ac_dir"
7194 else
7195 as_dir="$ac_dir"
7196 as_dirs=
7197 while test ! -d "$as_dir"; do
7198 as_dirs="$as_dir $as_dirs"
7199 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7201 X"$as_dir" : 'X\(//\)[^/]' \| \
7202 X"$as_dir" : 'X\(//\)$' \| \
7203 X"$as_dir" : 'X\(/\)' \| \
7204 . : '\(.\)' 2>/dev/null ||
7205 echo X"$as_dir" |
7206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7208 /^X\(\/\/\)$/{ s//\1/; q; }
7209 /^X\(\/\).*/{ s//\1/; q; }
7210 s/.*/./; q'`
7211 done
7212 test ! -n "$as_dirs" || mkdir $as_dirs
7213 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7214 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7215 { (exit 1); exit 1; }; }; }
7217 ac_builddir=.
7219 if test "$ac_dir" != .; then
7220 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7221 # A "../" for each directory in $ac_dir_suffix.
7222 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7223 else
7224 ac_dir_suffix= ac_top_builddir=
7227 case $srcdir in
7228 .) # No --srcdir option. We are building in place.
7229 ac_srcdir=.
7230 if test -z "$ac_top_builddir"; then
7231 ac_top_srcdir=.
7232 else
7233 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7234 fi ;;
7235 [\\/]* | ?:[\\/]* ) # Absolute path.
7236 ac_srcdir=$srcdir$ac_dir_suffix;
7237 ac_top_srcdir=$srcdir ;;
7238 *) # Relative path.
7239 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7240 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7241 esac
7242 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7243 # absolute.
7244 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7245 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7246 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7247 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7250 cd $ac_dir
7252 # Check for guested configure; otherwise get Cygnus style configure.
7253 if test -f $ac_srcdir/configure.gnu; then
7254 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7255 elif test -f $ac_srcdir/configure; then
7256 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7257 elif test -f $ac_srcdir/configure.in; then
7258 ac_sub_configure=$ac_configure
7259 else
7260 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7261 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7262 ac_sub_configure=
7265 # The recursion is here.
7266 if test -n "$ac_sub_configure"; then
7267 # Make the cache file name correct relative to the subdirectory.
7268 case $cache_file in
7269 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7270 *) # Relative path.
7271 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7272 esac
7274 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7275 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7276 # The eval makes quoting arguments work.
7277 eval $ac_sub_configure $ac_sub_configure_args \
7278 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7279 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7280 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7281 { (exit 1); exit 1; }; }
7284 cd $ac_popdir
7285 done