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
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
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
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"
234 # We need space, tab and new line, in precisely that order.
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`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
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.
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
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
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'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
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'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
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'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
430 -help |
--help |
--hel |
--he |
-h)
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)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
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)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
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'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
609 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
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`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
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.
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
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 ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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.
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.
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 \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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]
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
]
841 if test -n "$ac_init_help"; then
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.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
879 test -d $ac_dir ||
continue
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'`
887 ac_dir_suffix
= ac_top_builddir
=
891 .
) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?
:[\\/]* ) # Absolute path.
899 ac_srcdir
=$srcdir$ac_dir_suffix;
900 ac_top_srcdir
=$srcdir ;;
902 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu
; then
916 $SHELL $ac_srcdir/configure.gnu
--help=recursive
917 elif test -f $ac_srcdir/configure
; then
919 $SHELL $ac_srcdir/configure
--help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.
in; then
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
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.
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
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`
978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
982 test -z "$as_dir" && as_dir
=.
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.
1007 ac_must_keep_next
=false
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)
1017 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
1036 -* ) ac_must_keep_next
=true
;;
1039 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
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.
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1065 # The following way of writing the cache mishandles newlines in values,
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1088 for ac_var in $ac_subst_vars
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1095 if test -n "$ac_subst_files"; then
1102 for ac_var in $ac_subst_files
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1110 if test -s confdefs.h; then
1117 sed "/^$/d" confdefs.h | sort
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128 for ac_signal
in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1138 # Predefined preprocessor variables.
1140 cat >>confdefs.h
<<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1145 cat >>confdefs.h
<<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1150 cat >>confdefs.h
<<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1155 cat >>confdefs.h
<<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1160 cat >>confdefs.h
<<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
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
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;}
1190 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1191 *) . .
/$cache_file;;
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1200 # Check that the precious variables saved in the cache have kept the same
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
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
=: ;;
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
=: ;;
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
=:
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1233 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg
=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1277 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1278 if test -f $ac_dir/install-sh
; then
1280 ac_install_sh
="$ac_aux_dir/install-sh -c"
1282 elif test -f $ac_dir/install.sh
; then
1284 ac_install_sh
="$ac_aux_dir/install.sh -c"
1286 elif test -f $ac_dir/shtool
; then
1288 ac_install_sh
="$ac_aux_dir/shtool install -c"
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"
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
1321 if test -n "$CXX"; then
1322 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1341 if test -n "$CXX"; then
1342 echo "$as_me:$LINENO: result: $CXX" >&5
1343 echo "${ECHO_T}$CXX" >&6
1345 echo "$as_me:$LINENO: result: no" >&5
1346 echo "${ECHO_T}no" >&6
1349 test -n "$CXX" && break
1352 if test -z "$CXX"; then
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
1363 if test -n "$ac_ct_CXX"; then
1364 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
1366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1391 test -n "$ac_ct_CXX" && break
1393 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
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
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
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
1416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1417 (exit $ac_status); }
1419 cat >conftest.
$ac_ext <<_ACEOF
1420 #line $LINENO "configure"
1423 cat confdefs.h
>>conftest.
$ac_ext
1424 cat >>conftest.
$ac_ext <<_ACEOF
1425 /* end confdefs.h. */
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
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
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
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.
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
1460 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1463 # This is the source file.
1466 # We found the default executable, but exeext='' is most
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.
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
1506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1507 (exit $ac_status); }; }; then
1510 if test "$cross_compiling" = maybe
; then
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
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
1546 for ac_file
in conftest.exe conftest conftest.
*; do
1547 test -f "$ac_file" ||
continue
1549 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1550 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
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
1576 cat >conftest.
$ac_ext <<_ACEOF
1577 #line $LINENO "configure"
1580 cat confdefs.h
>>conftest.
$ac_ext
1581 cat >>conftest.
$ac_ext <<_ACEOF
1582 /* end confdefs.h. */
1592 rm -f conftest.o conftest.obj
1593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1594 (eval $ac_compile) 2>&5
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
1600 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1601 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
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
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
1627 cat >conftest.
$ac_ext <<_ACEOF
1628 #line $LINENO "configure"
1631 cat confdefs.h
>>conftest.
$ac_ext
1632 cat >>conftest.
$ac_ext <<_ACEOF
1633 /* end confdefs.h. */
1646 rm -f conftest.
$ac_objext
1647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1648 (eval $ac_compile) 2>&5
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
1656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1657 (exit $ac_status); }; }; then
1660 echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.
$ac_ext >&5
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
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
1680 cat >conftest.
$ac_ext <<_ACEOF
1681 #line $LINENO "configure"
1684 cat confdefs.h
>>conftest.
$ac_ext
1685 cat >>conftest.
$ac_ext <<_ACEOF
1686 /* end confdefs.h. */
1696 rm -f conftest.
$ac_objext
1697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1698 (eval $ac_compile) 2>&5
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
1706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707 (exit $ac_status); }; }; then
1708 ac_cv_prog_cxx_g
=yes
1710 echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.
$ac_ext >&5
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
1728 if test "$GXX" = yes; then
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);' \
1743 cat >conftest.
$ac_ext <<_ACEOF
1744 #line $LINENO "configure"
1747 cat confdefs.h
>>conftest.
$ac_ext
1748 cat >>conftest.
$ac_ext <<_ACEOF
1749 /* end confdefs.h. */
1760 rm -f conftest.
$ac_objext
1761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1762 (eval $ac_compile) 2>&5
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
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; }; then
1774 echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.
$ac_ext >&5
1779 rm -f conftest.
$ac_objext conftest.
$ac_ext
1780 cat >conftest.
$ac_ext <<_ACEOF
1781 #line $LINENO "configure"
1784 cat confdefs.h
>>conftest.
$ac_ext
1785 cat >>conftest.
$ac_ext <<_ACEOF
1786 /* end confdefs.h. */
1796 rm -f conftest.
$ac_objext
1797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1798 (eval $ac_compile) 2>&5
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
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }; }; then
1810 echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.
$ac_ext >&5
1814 rm -f conftest.
$ac_objext conftest.
$ac_ext
1817 if test -n "$ac_declaration"; then
1818 echo '#ifdef __cplusplus' >>confdefs.h
1819 echo $ac_declaration >>confdefs.h
1820 echo '#endif' >>confdefs.h
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
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
1842 if test "x$prefix" = "xNONE"; then
1843 INSTALLPREFIX
="/usr/local"
1845 INSTALLPREFIX
="${prefix}"
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
1879 cat >>confdefs.h
<<_ACEOF
1880 #define PWLIB_MINOR $MINOR_VERSION
1884 cat >>confdefs.h
<<_ACEOF
1885 #define PWLIB_BUILD $BUILD_NUMBER
1889 cat >>confdefs.h
<<_ACEOF
1890 #define PWLIB_VERSION "$PWLIB_VERSION"
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
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
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
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
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
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" = \
1976 program_prefix
=${target_alias}-
1981 case "$target_os" in
1982 linux
*) OSTYPE
=linux
;
1983 OSRELEASE
="\"`uname -r`\"";
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
;
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
;
2018 OSRELEASE
="`uname -r | sed 's/\.//g'`" ;
2019 SHAREDLIBEXT
="dylib";
2020 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
2023 beos
*) OSTYPE
=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;} ;
2039 case "$target_cpu" in
2040 x86 | i686 | i586 | i486 | i386
) MACHTYPE
=x86
2043 x86_64
) MACHTYPE
=x86_64
;
2048 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) MACHTYPE
=alpha
;
2052 sparc
) MACHTYPE
=sparc
;
2055 powerpc
) MACHTYPE
=ppc
;
2058 ppc
) MACHTYPE
=ppc
;
2061 powerpc64
) MACHTYPE
=ppc64
;
2066 ppc64
) MACHTYPE
=ppc64
;
2071 ia64
) MACHTYPE
=ia64
;
2075 s390x
) MACHTYPE
=s390x
;
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;} ;;
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;};
2099 OSRELEASE
=$OSRELEASE
2101 TARGETDIR
=$TARGETDIR
2104 cat >>confdefs.h
<<_ACEOF
2105 #define $OS_TAG $OSRELEASE
2110 cat >>confdefs.h
<<\_ACEOF
2111 #define PHAS_TEMPLATES 1
2115 if test "x$P_64BIT" != "x" ; then
2117 cat >>confdefs.h
<<\_ACEOF
2123 if test ${OSTYPE} != beos
; then
2125 cat >>confdefs.h
<<\_ACEOF
2126 #define P_PTHREADS 1
2131 if test ${OSTYPE} != Darwin
; then
2133 cat >>confdefs.h
<<\_ACEOF
2134 #define P_HAS_SEMAPHORES 1
2140 if test "x${SHAREDLIBEXT}" = "x" ; then
2143 SHAREDLIBEXT
=$SHAREDLIBEXT
2146 cat >>confdefs.h
<<\_ACEOF
2147 #define P_SHAREDLIBEXT $SHAREDLIBEXT
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
2159 # See if sys/param.h defines the BYTE_ORDER macro.
2160 cat >conftest.
$ac_ext <<_ACEOF
2161 #line $LINENO "configure"
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>
2173 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2181 rm -f conftest.
$ac_objext
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>&5
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
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"
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>
2207 #if BYTE_ORDER != BIG_ENDIAN
2215 rm -f conftest.
$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217 (eval $ac_compile) 2>&5
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
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 ac_cv_c_bigendian
=yes
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
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"
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; }
2259 _ascii (); _ebcdic ();
2264 rm -f conftest.
$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>&5
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
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
2283 # finding both strings is unlikely to happen, but who knows?
2284 ac_cv_c_bigendian
=unknown
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.
$ac_ext >&5
2292 rm -f conftest.
$ac_objext conftest.
$ac_ext
2294 cat >conftest.
$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2298 cat confdefs.h
>>conftest.
$ac_ext
2299 cat >>conftest.
$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2304 /* Are we little or big endian? From Harbison&Steele. */
2308 char c[sizeof (long)];
2311 exit (u.c[sizeof (long) - 1] == 1);
2314 rm -f conftest
$ac_exeext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2316 (eval $ac_link) 2>&5
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
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2325 ac_cv_c_bigendian
=no
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
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
2344 cat >>confdefs.h
<<\_ACEOF
2345 #define WORDS_BIGENDIAN 1
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; }; } ;;
2358 if test ${ac_cv_c_bigendian} = yes ; then
2359 PBYTE_ORDER
=PBIG_ENDIAN
2361 PBYTE_ORDER
=PLITTLE_ENDIAN
2365 cat >>confdefs.h
<<_ACEOF
2366 #define PBYTE_ORDER $PBYTE_ORDER
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
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; }
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; }
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"
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; }
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"
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"
2429 echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
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
2446 cat >conftest.
$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2450 cat confdefs.h
>>conftest.
$ac_ext
2451 cat >>conftest.
$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2454 long double foo = 0.0;
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))];
2467 rm -f conftest.
$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
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
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 ac_cv_c_long_double
=yes
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
2498 if test $ac_cv_c_long_double != yes ; then
2500 cat >>confdefs.h
<<\_ACEOF
2501 #define PNO_LONG_DOUBLE
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"
2512 cat confdefs.h
>>conftest.
$ac_ext
2513 cat >>conftest.
$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2519 DIR *s; struct dirent * e; readdir_r(s, e);
2524 rm -f conftest.
$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>&5
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
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 P_HAS_POSIX_READDIR_R
=2
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
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"
2556 cat confdefs.h
>>conftest.
$ac_ext
2557 cat >>conftest.
$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2563 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
2568 rm -f conftest.
$ac_objext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>&5
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
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2580 P_HAS_POSIX_READDIR_R
=3
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
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}
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
2611 ac_check_lib_save_LIBS
=$LIBS
2612 LIBS
="-lpthread $LIBS"
2613 cat >conftest.
$ac_ext <<_ACEOF
2614 #line $LINENO "configure"
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. */
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 ();
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
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
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_lib_pthread_pthread_create
=yes
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
2666 if test ${HAS_PTHREADS} = yes ; then
2667 ENDLDLIBS
="$ENDLDLIBS -lpthread"
2668 STDCCFLAGS
="$STDCCFLAGS -D_REENTRANT"
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
2675 ac_check_lib_save_LIBS
=$LIBS
2677 cat >conftest.
$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
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. */
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 ();
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
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
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_cv_lib_c_r_pthread_create
=yes
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
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
2750 ac_check_lib_save_LIBS
=$LIBS
2751 LIBS
="-lpthread $LIBS"
2752 cat >conftest.
$ac_ext <<_ACEOF
2753 #line $LINENO "configure"
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. */
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 ();
2770 pthread_mutex_timedlock ();
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
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
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 ac_cv_lib_pthread_pthread_mutex_timedlock
=yes
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
2802 HAS_PTHREADS_XPG6
=no
2805 if test ${HAS_PTHREADS_XPG6} = yes ; then
2807 cat >>confdefs.h
<<\_ACEOF
2808 #define P_PTHREADS_XPG6 1
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
2818 ac_check_lib_save_LIBS
=$LIBS
2819 LIBS
="-lpthread $LIBS"
2820 cat >conftest.
$ac_ext <<_ACEOF
2821 #line $LINENO "configure"
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. */
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 ();
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
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
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 ac_cv_lib_pthread_sem_timedwait
=yes
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
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"
2880 cat confdefs.h
>>conftest.
$ac_ext
2881 cat >>conftest.
$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <semaphore.h>
2887 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
2892 rm -f conftest.
$ac_objext
2893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894 (eval $ac_compile) 2>&5
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
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2904 HAS_SEMAPHORES_XPG6
=yes
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
2918 echo "$as_me:$LINENO: result: yes" >&5
2919 echo "${ECHO_T}yes" >&6
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
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
2939 # Double quotes because CXXCPP needs to be expanded
2940 for CXXCPP
in "$CXX -E" "/lib/cpp"
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"
2955 cat confdefs.h
>>conftest.
$ac_ext
2956 cat >>conftest.
$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2959 # include <limits.h>
2961 # include <assert.h>
2965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2968 grep -v '^ *+' conftest.er1
>conftest.err
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
2981 if test -z "$ac_cpp_err"; then
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.
$ac_ext >&5
2987 # Broken: fails on valid input.
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"
2998 cat confdefs.h
>>conftest.
$ac_ext
2999 cat >>conftest.
$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 #include <ac_nonexistent.h>
3003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3004 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3006 grep -v '^ *+' conftest.er1
>conftest.err
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
3019 if test -z "$ac_cpp_err"; then
3020 # Broken: success on invalid input.
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.
$ac_ext >&5
3026 # Passes both tests.
3030 rm -f conftest.err conftest.
$ac_ext
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
3040 ac_cv_prog_CXXCPP
=$CXXCPP
3043 CXXCPP
=$ac_cv_prog_CXXCPP
3045 ac_cv_prog_CXXCPP
=$CXXCPP
3047 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3048 echo "${ECHO_T}$CXXCPP" >&6
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"
3062 cat confdefs.h
>>conftest.
$ac_ext
3063 cat >>conftest.
$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3066 # include <limits.h>
3068 # include <assert.h>
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3075 grep -v '^ *+' conftest.er1
>conftest.err
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
3088 if test -z "$ac_cpp_err"; then
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.
$ac_ext >&5
3094 # Broken: fails on valid input.
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"
3105 cat confdefs.h
>>conftest.
$ac_ext
3106 cat >>conftest.
$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3108 #include <ac_nonexistent.h>
3110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3111 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3113 grep -v '^ *+' conftest.er1
>conftest.err
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
3126 if test -z "$ac_cpp_err"; then
3127 # Broken: success on invalid input.
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.
$ac_ext >&5
3133 # Passes both tests.
3137 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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
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
3179 cat >conftest.
$ac_ext <<_ACEOF
3180 #line $LINENO "configure"
3183 cat confdefs.h
>>conftest.
$ac_ext
3184 cat >>conftest.
$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3199 rm -f conftest.
$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>&5
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
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 ac_cv_header_stdc
=yes
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"
3226 cat confdefs.h
>>conftest.
$ac_ext
3227 cat >>conftest.
$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3233 $EGREP "memchr" >/dev
/null
2>&1; then
3236 ac_cv_header_stdc
=no
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"
3248 cat confdefs.h
>>conftest.
$ac_ext
3249 cat >>conftest.
$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3255 $EGREP "free" >/dev
/null
2>&1; then
3258 ac_cv_header_stdc
=no
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
3269 cat >conftest.
$ac_ext <<_ACEOF
3270 #line $LINENO "configure"
3273 cat confdefs.h
>>conftest.
$ac_ext
3274 cat >>conftest.
$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3277 #if ((' ' & 0x0FF) == 0x020)
3278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
3288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3293 for (i = 0; i < 256; i++)
3294 if (XOR (islower (i), ISLOWER (i))
3295 || toupper (i) != TOUPPER (i))
3300 rm -f conftest
$ac_exeext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3302 (eval $ac_link) 2>&5
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
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
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
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
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
3353 cat >conftest.
$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
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>
3364 rm -f conftest.
$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>&5
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
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; }; then
3376 eval "$as_ac_Header=yes"
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
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
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"
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>
3423 rm -f conftest.
$ac_objext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425 (eval $ac_compile) 2>&5
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
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3435 ac_header_compiler
=yes
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"
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 #include <$ac_header>
3458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3459 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3461 grep -v '^ *+' conftest.er1
>conftest.err
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
3474 if test -z "$ac_cpp_err"; then
3475 ac_header_preproc
=yes
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
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;}
3495 ## ------------------------------------ ##
3496 ## Report this to bug-autoconf@gnu.org. ##
3497 ## ------------------------------------ ##
3500 sed "s/^/$as_me: WARNING: /" >&2
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;}
3511 ## ------------------------------------ ##
3512 ## Report this to bug-autoconf@gnu.org. ##
3513 ## ------------------------------------ ##
3516 sed "s/^/$as_me: WARNING: /" >&2
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
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
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;}
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
3555 cat >conftest.
$ac_ext <<_ACEOF
3556 #line $LINENO "configure"
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. */
3567 # include <limits.h>
3569 # include <assert.h>
3571 /* Override any gcc2 internal prototype to avoid an error. */
3576 /* We use char because int might match the return type of a gcc2
3577 builtin and then its argument prototype would still apply. */
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)
3585 char (*f) () = regcomp;
3594 return f != regcomp;
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
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
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_func_regcomp
=yes
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
3626 if test "$HAS_REGEX" = "yes" ; then
3630 cat >>confdefs.h
<<\_ACEOF
3644 if test ${OSTYPE} = beos
; then
3647 cat >>confdefs.h
<<\_ACEOF
3648 #define P_DYNALINK 1
3651 elif test ${OSTYPE} = Darwin
; then
3654 cat >>confdefs.h
<<\_ACEOF
3655 #define P_DYNALINK 1
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
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"
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>
3685 rm -f conftest.
$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
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
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_header_compiler
=yes
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"
3715 cat confdefs.h
>>conftest.
$ac_ext
3716 cat >>conftest.
$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3718 #include <$ac_header>
3720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3721 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3723 grep -v '^ *+' conftest.er1
>conftest.err
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
3736 if test -z "$ac_cpp_err"; then
3737 ac_header_preproc
=yes
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
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;}
3757 ## ------------------------------------ ##
3758 ## Report this to bug-autoconf@gnu.org. ##
3759 ## ------------------------------------ ##
3762 sed "s/^/$as_me: WARNING: /" >&2
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;}
3773 ## ------------------------------------ ##
3774 ## Report this to bug-autoconf@gnu.org. ##
3775 ## ------------------------------------ ##
3778 sed "s/^/$as_me: WARNING: /" >&2
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
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
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"
3810 cat confdefs.h
>>conftest.
$ac_ext
3811 cat >>conftest.
$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3817 void * p = dlopen("lib", 0);
3822 rm -f conftest.
$ac_objext
3823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3824 (eval $ac_compile) 2>&5
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
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.
$ac_ext >&5
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
3846 echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6
3850 cat >>confdefs.h
<<\_ACEOF
3851 #define P_DYNALINK 1
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
3859 ac_check_lib_save_LIBS
=$LIBS
3861 cat >conftest.
$ac_ext <<_ACEOF
3862 #line $LINENO "configure"
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. */
3873 /* We use char because int might match the return type of a gcc2
3874 builtin and then its argument prototype would still apply. */
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
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
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 ac_cv_lib_dl_dlopen
=yes
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
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"
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
3935 echo "$as_me:$LINENO: result: plugins enabled" >&5
3936 echo "${ECHO_T}plugins enabled" >&6
3939 cat >>confdefs.h
<<\_ACEOF
3940 #define P_HAS_PLUGINS 1
3947 if test "x$LIB64" != "x" ; then
3949 cat >>confdefs.h
<<_ACEOF
3950 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
3955 cat >>confdefs.h
<<_ACEOF
3956 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
3963 # Check whether --enable-resolver or --disable-resolver was given.
3964 if test "${enable_resolver+set}" = set; then
3965 enableval
="$enable_resolver"
3969 if test "$resolver" = "no" ; then
3970 cat >>confdefs.h
<<\_ACEOF
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
3980 cat >conftest.
$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
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. */
3992 # include <limits.h>
3994 # include <assert.h>
3996 /* Override any gcc2 internal prototype to avoid an error. */
4001 /* We use char because int might match the return type of a gcc2
4002 builtin and then its argument prototype would still apply. */
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)
4010 char (*f) () = res_search;
4019 return f != res_search;
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
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
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 ac_cv_func_res_search
=yes
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
4051 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
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
4057 cat >conftest.
$ac_ext <<_ACEOF
4059 #include <netinet/in.h>
4061 int main(int argc,char **argv){
4062 res_search (NULL, 0, 0, NULL, 0);
4065 rm -f conftest.
$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>&5
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
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
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"
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
4094 ac_func_search_save_LIBS
=$LIBS
4095 ac_cv_search___res_search
=no
4096 cat >conftest.
$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
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. */
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 ();
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
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
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_search___res_search
="none required"
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"
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. */
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 ();
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
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
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 ac_cv_search___res_search
="-l$ac_lib"
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
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"
4198 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4200 cat >>confdefs.h
<<\_ACEOF
4209 # Check whether --enable-openldap or --disable-openldap was given.
4210 if test "${enable_openldap+set}" = set; then
4211 enableval
="$enable_openldap"
4215 if test "$openldap" = "no" ; then
4218 cat >>confdefs.h
<<\_ACEOF
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
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"
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>
4250 rm -f conftest.
$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 (eval $ac_compile) 2>&5
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
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_header_compiler
=yes
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"
4280 cat confdefs.h
>>conftest.
$ac_ext
4281 cat >>conftest.
$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 #include <$ac_header>
4285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4286 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4288 grep -v '^ *+' conftest.er1
>conftest.err
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
4301 if test -z "$ac_cpp_err"; then
4302 ac_header_preproc
=yes
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
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;}
4322 ## ------------------------------------ ##
4323 ## Report this to bug-autoconf@gnu.org. ##
4324 ## ------------------------------------ ##
4327 sed "s/^/$as_me: WARNING: /" >&2
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;}
4338 ## ------------------------------------ ##
4339 ## Report this to bug-autoconf@gnu.org. ##
4340 ## ------------------------------------ ##
4343 sed "s/^/$as_me: WARNING: /" >&2
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
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
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
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"
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. */
4391 /* We use char because int might match the return type of a gcc2
4392 builtin and then its argument prototype would still apply. */
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
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
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_lib_ldap_ldap_open
=yes
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
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
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
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
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
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"
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. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
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
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
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_cv_lib_ldap_ldap_open
=yes
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
4521 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4525 cat >>confdefs.h
<<\_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
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"
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. */
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 ();
4561 sasl_client_auth ();
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
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
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_cv_lib_sasl_sasl_client_auth
=yes
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
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
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"
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. */
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 ();
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
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
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_lib_sasl2_sasl_version
=yes
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
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"
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"
4676 if test "$openssl" = "no" ; then
4677 cat >>confdefs.h
<<\_ACEOF
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
4692 SSLINCLUDEDIR
="${OPENSSLDIR}/include"
4693 SSLLIBDIR
="${OPENSSLDIR}/lib"
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
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"
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>
4728 rm -f conftest.
$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>&5
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
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4740 ac_header_compiler
=yes
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"
4758 cat confdefs.h
>>conftest.
$ac_ext
4759 cat >>conftest.
$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <$ac_header>
4763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4764 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4766 grep -v '^ *+' conftest.er1
>conftest.err
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
4779 if test -z "$ac_cpp_err"; then
4780 ac_header_preproc
=yes
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
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;}
4800 ## ------------------------------------ ##
4801 ## Report this to bug-autoconf@gnu.org. ##
4802 ## ------------------------------------ ##
4805 sed "s/^/$as_me: WARNING: /" >&2
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;}
4816 ## ------------------------------------ ##
4817 ## Report this to bug-autoconf@gnu.org. ##
4818 ## ------------------------------------ ##
4821 sed "s/^/$as_me: WARNING: /" >&2
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
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
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){}
4852 rm -f conftest.
$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>&5
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
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
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"
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
4893 cat >conftest.
$ac_ext <<_ACEOF
4894 #include "${openssl_dir}/include/openssl/ssl.h"
4895 int main(int argc,char **argv){ return 0; }
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
4903 SSLINCLUDEDIR
="${openssl_dir}/include"
4904 SSLLIBDIR
="${openssl_dir}/lib"
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){}
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
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"
4928 echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4936 if test ${SSLHDR:-unset} != "unset" ; then
4940 cat >>confdefs.h
<<\_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"
4966 if test "$expat" = "no" ; then
4969 cat >>confdefs.h
<<\_ACEOF
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
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"
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>
5001 rm -f conftest.
$ac_objext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003 (eval $ac_compile) 2>&5
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
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_header_compiler
=yes
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"
5031 cat confdefs.h
>>conftest.
$ac_ext
5032 cat >>conftest.
$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 #include <$ac_header>
5036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5037 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5039 grep -v '^ *+' conftest.er1
>conftest.err
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
5052 if test -z "$ac_cpp_err"; then
5053 ac_header_preproc
=yes
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
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;}
5073 ## ------------------------------------ ##
5074 ## Report this to bug-autoconf@gnu.org. ##
5075 ## ------------------------------------ ##
5078 sed "s/^/$as_me: WARNING: /" >&2
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;}
5089 ## ------------------------------------ ##
5090 ## Report this to bug-autoconf@gnu.org. ##
5091 ## ------------------------------------ ##
5094 sed "s/^/$as_me: WARNING: /" >&2
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
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
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
5123 ac_check_lib_save_LIBS
=$LIBS
5124 LIBS
="-lexpat $LIBS"
5125 cat >conftest.
$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
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. */
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 ();
5143 XML_ParserCreate ();
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
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
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 ac_cv_lib_expat_XML_ParserCreate
=yes
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
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
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
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
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
5210 cat >>confdefs.h
<<\_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"
5235 if test "$ipv6" = "no" ; then
5236 cat >>confdefs.h
<<\_ACEOF
5237 #define P_HAS_IPV6 0
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
5248 cat >conftest.
$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
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>
5260 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5265 rm -f conftest.
$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
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
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.
$ac_ext >&5
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
5300 # Check whether --enable-qos or --disable-qos was given.
5301 if test "${enable_qos+set}" = set; then
5302 enableval
="$enable_qos"
5306 if test "$qos" = "no" ; then
5308 cat >>confdefs.h
<<\_ACEOF
5314 cat >>confdefs.h
<<\_ACEOF
5323 # Check whether --enable-sdl or --disable-sdl was given.
5324 if test "${enable_sdl+set}" = set; then
5325 enableval
="$enable_sdl"
5329 if test "$sdl" = "no" ; then
5332 cat >>confdefs.h
<<\_ACEOF
5337 if test "${SDLLIB:-unset}" = "unset" ; then
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
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"
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>
5367 rm -f conftest.
$ac_objext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369 (eval $ac_compile) 2>&5
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
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_header_compiler
=yes
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"
5397 cat confdefs.h
>>conftest.
$ac_ext
5398 cat >>conftest.
$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5400 #include <$ac_header>
5402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5403 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5405 grep -v '^ *+' conftest.er1
>conftest.err
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
5418 if test -z "$ac_cpp_err"; then
5419 ac_header_preproc
=yes
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
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;}
5439 ## ------------------------------------ ##
5440 ## Report this to bug-autoconf@gnu.org. ##
5441 ## ------------------------------------ ##
5444 sed "s/^/$as_me: WARNING: /" >&2
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;}
5455 ## ------------------------------------ ##
5456 ## Report this to bug-autoconf@gnu.org. ##
5457 ## ------------------------------------ ##
5460 sed "s/^/$as_me: WARNING: /" >&2
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
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
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
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"
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. */
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 ();
5512 SDL_CreateYUVOverlay ();
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
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
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5529 ac_cv_lib_SDL_SDL_CreateYUVOverlay
=yes
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
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
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
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
5571 if test "${HAS_SDL:-unset}" != "unset" ; then
5576 if test "${HAS_SDL:-unset}" != "unset" ; then
5580 cat >>confdefs.h
<<\_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"
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
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"
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>
5627 rm -f conftest.
$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>&5
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
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_header_compiler
=yes
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"
5657 cat confdefs.h
>>conftest.
$ac_ext
5658 cat >>conftest.
$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <linux/videodev.h>
5662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5665 grep -v '^ *+' conftest.er1
>conftest.err
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
5678 if test -z "$ac_cpp_err"; then
5679 ac_header_preproc
=yes
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
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;}
5699 ## ------------------------------------ ##
5700 ## Report this to bug-autoconf@gnu.org. ##
5701 ## ------------------------------------ ##
5704 sed "s/^/$as_me: WARNING: /" >&2
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;}
5715 ## ------------------------------------ ##
5716 ## Report this to bug-autoconf@gnu.org. ##
5717 ## ------------------------------------ ##
5720 sed "s/^/$as_me: WARNING: /" >&2
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
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
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
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
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
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"
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>
5783 rm -f conftest.
$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>&5
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
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_header_compiler
=yes
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"
5813 cat confdefs.h
>>conftest.
$ac_ext
5814 cat >>conftest.
$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 #include <alsa/asoundlib.h>
5818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5819 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5821 grep -v '^ *+' conftest.er1
>conftest.err
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
5834 if test -z "$ac_cpp_err"; then
5835 ac_header_preproc
=yes
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
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;}
5855 ## ------------------------------------ ##
5856 ## Report this to bug-autoconf@gnu.org. ##
5857 ## ------------------------------------ ##
5860 sed "s/^/$as_me: WARNING: /" >&2
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;}
5871 ## ------------------------------------ ##
5872 ## Report this to bug-autoconf@gnu.org. ##
5873 ## ------------------------------------ ##
5876 sed "s/^/$as_me: WARNING: /" >&2
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
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
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"
5902 echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5909 if test "$OSTYPE" = "solaris" ; then
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
5917 cat >conftest.
$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
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. */
5929 # include <limits.h>
5931 # include <assert.h>
5933 /* Override any gcc2 internal prototype to avoid an error. */
5938 /* We use char because int might match the return type of a gcc2
5939 builtin and then its argument prototype would still apply. */
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)
5947 char (*f) () = swab;
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
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
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.
$ac_ext >&5
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
5989 if test "x$ac_cv_func_swab" = "xyes" ; then
5991 cat >>confdefs.h
<<\_ACEOF
5992 #define USE_SYSTEM_SWAB
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
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.
6049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6051 # `set' does not quote correctly, so add quotes (double-quote
6052 # substitution turns \\\\ into \\, and sed turns \\ into \).
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.
6060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6069 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
6076 echo "not updating unwritable cache $cache_file"
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}:*/:/;
6094 s/^\([^=]*=[ ]*\):*/\1/;
6100 DEFS
=-DHAVE_CONFIG_H
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$//'`
6109 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6110 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
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
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.
6133 SHELL=\${CONFIG_SHELL-$SHELL}
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
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
6152 # Support unset when possible.
6153 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
6160 # Work around bugs in pre-3.0 UWIN ksh.
6161 $as_unset ENV MAIL MAILPATH
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
6179 # Required to use basename.
6180 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6186 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6187 as_basename
=basename
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 ||
6200 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6201 /^X\/\(\/\/\)$/{ s//\1/; q; }
6202 /^X\/\(\/\).*/{ s//\1/; 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
6219 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
6236 *[\\/]* ) as_myself
=$0 ;;
6237 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir
=.
6242 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
6263 test -z "$as_dir" && as_dir
=.
6264 for as_base
in sh bash ksh sh5
; do
6267 if ("$as_dir/$as_base" -c '
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
6277 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
6298 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6301 s,^['$as_cr_digits']*\n,,
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).
6312 # Exit status is that of the last command.
6317 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6318 *c
*,-n*) ECHO_N
= ECHO_C
='
6320 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6321 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6324 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6330 rm -f conf$$ conf$$.exe 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
6341 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6346 rm -f conf$$ conf$$.exe conf$$.
file
6348 if mkdir
-p .
2>/dev
/null
; then
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"
6364 # We need space, tab and new line, in precisely that order.
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.
6380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6381 ## Running $as_me. ##
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
6396 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
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
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:
6438 Configuration headers:
6441 Report bugs to <bug-autoconf@gnu.org>."
6444 cat >>$CONFIG_STATUS <<_ACEOF
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."
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.
6465 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6466 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6474 *) # This is not an option, so the user has probably given explicit
6477 ac_need_defaults
=false
;;
6481 # Handling of the options.
6483 cat >>$CONFIG_STATUS <<\_ACEOF
6484 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6486 --version |
--vers* |
-V )
6487 echo "$ac_cs_version"; exit 0 ;;
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 )
6499 --file |
--fil |
--fi |
--f )
6501 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
6502 ac_need_defaults
=false
;;
6503 --header |
--heade |
--head |
--hea )
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)
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" ;;
6524 ac_configure_extra_args
=
6526 if $ac_cs_silent; then
6528 ac_configure_extra_args
="$ac_configure_extra_args --silent"
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
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; }; };;
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.
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"
6585 tmp
=.
/confstat$$
-$RANDOM
6586 (umask 077 && mkdir
$tmp)
6589 echo "$me: cannot create a temporary directory in ." >&2
6590 { (exit 1); exit 1; }
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
6633 s,@ECHO_C@,$ECHO_C,;t t
6634 s,@ECHO_N@,$ECHO_N,;t t
6635 s,@ECHO_T@,$ECHO_T,;t t
6637 s,@subdirs@,$subdirs,;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
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
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.
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.
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
6705 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6707 if test ! -s $tmp/subs.frag
; then
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.
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"
6719 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6721 ac_sed_frag
=`expr $ac_sed_frag + 1`
6723 ac_end
=`expr $ac_end + $ac_max_sed_lines`
6726 if test -z "$ac_sed_cmds"; then
6729 fi # test -n "$CONFIG_FILES"
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".
6736 - |
*:- |
*:-:* ) # input from 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 ;;
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 ||
6753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6755 /^X\(\/\/\)$/{ s//\1/; q; }
6756 /^X\(\/\).*/{ s//\1/; q; }
6758 { if $as_mkdir_p; then
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 ||
6772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6774 /^X\(\/\/\)$/{ s//\1/; q; }
6775 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
6790 ac_dir_suffix
= ac_top_builddir
=
6794 .
) # No --srcdir option. We are building in place.
6796 if test -z "$ac_top_builddir"; then
6799 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6801 [\\/]* | ?
:[\\/]* ) # Absolute path.
6802 ac_srcdir
=$srcdir$ac_dir_suffix;
6803 ac_top_srcdir
=$srcdir ;;
6805 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6806 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6808 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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;}
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
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
6835 ac_file_inputs
=`IFS=:
6836 for f in $ac_file_in; do
6838 -) echo $tmp/stdin ;;
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; }; }
6846 if test -f "$f"; then
6849 elif test -f "$srcdir/$f"; then
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; }; }
6859 done` ||
{ (exit 1); exit 1; }
6861 cat >>$CONFIG_STATUS <<_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
6879 if test x"$ac_file" != x-; then
6880 mv $tmp/out $ac_file
6886 # Run the commands associated with the file.
6888 make/ptlib-config ) chmod a+x make/ptlib-config ;;
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'
6906 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6907 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6908 ac_uB
='$,\1#\2define\3'
6912 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6915 - |
*:- |
*:-:* ) # input from 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 ;;
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
6929 ac_file_inputs
=`IFS=:
6930 for f in $ac_file_in; do
6932 -) echo $tmp/stdin ;;
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; }; }
6940 if test -f "$f"; then
6943 elif test -f "$srcdir/$f"; then
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; }; }
6953 done` ||
{ (exit 1); exit 1; }
6954 # Remove the trailing spaces.
6955 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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
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
6978 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6980 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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]*,/* & */,
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
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
7015 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7019 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7020 rm -f conftest.defines
7021 mv conftest.
tail conftest.defines
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
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
7042 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7046 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7047 rm -f conftest.undefs
7048 mv conftest.tail conftest.undefs
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
7059 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7061 cat $tmp/in >>$tmp/config.h
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;}
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 ||
7075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7077 /^X\(\/\/\)$/{ s//\1/; q; }
7078 /^X\(\/\).*/{ s//\1/; q; }
7080 { if $as_mkdir_p; then
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 ||
7094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7096 /^X\(\/\/\)$/{ s//\1/; q; }
7097 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
7106 mv $tmp/config.h
$ac_file
7115 cat >>$CONFIG_STATUS <<\_ACEOF
7117 { (exit 0); exit 0; }
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
7133 ac_config_status_args
=
7134 test "$silent" = yes &&
7135 ac_config_status_args
="$ac_config_status_args --quiet"
7137 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
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
=
7152 for ac_arg
in $ac_configure_args; do
7153 if test -n "$ac_prev"; then
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=* \
7165 --config-cache |
-C)
7167 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
7169 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
7171 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
7173 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
7175 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
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"
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
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 ||
7206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7208 /^X\(\/\/\)$/{ s//\1/; q; }
7209 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
7224 ac_dir_suffix
= ac_top_builddir
=
7228 .
) # No --srcdir option. We are building in place.
7230 if test -z "$ac_top_builddir"; then
7233 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7235 [\\/]* | ?
:[\\/]* ) # Absolute path.
7236 ac_srcdir
=$srcdir$ac_dir_suffix;
7237 ac_top_srcdir
=$srcdir ;;
7239 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7240 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7242 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
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
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;}
7265 # The recursion is here.
7266 if test -n "$ac_sub_configure"; then
7267 # Make the cache file name correct relative to the subdirectory.
7269 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
7271 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
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; }; }