Made unblock pipe public for BeOS
[pwlib.git] / configure
blob519949e0a6f6a9929e8dfc39a6944afed967eaac
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="include/ptlib.h"
274 ac_subdirs_all="$ac_subdirs_all plugins"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT PWLIBDIR PWINSTDIR INSTALLPREFIX LIBDIR MAJOR_VERSION MINOR_VERSION BUILD_NUMBER PWLIB_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MACHTYPE OSTYPE OSRELEASE TARGETDIR SHAREDLIBEXT CXXCPP EGREP HAS_REGEX HAS_PLUGINS HAS_SASL2 HAS_SASL HAS_OPENLDAP HAS_OPENSSL P_STATIC_ENDLDLIBS P_STATIC_LDFLAGS HAS_EXPAT HAS_IPV6 HAS_SDL HAS_VIDEO_CAPTURE HAS_ALSA STDCCFLAGS STDCXXFLAGS OPTSTDCCFLAGS ENDLDLIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXX_set=${CXX+set}
754 ac_env_CXX_value=$CXX
755 ac_cv_env_CXX_set=${CXX+set}
756 ac_cv_env_CXX_value=$CXX
757 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_env_CXXFLAGS_value=$CXXFLAGS
759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXXCPP_set=${CXXCPP+set}
770 ac_env_CXXCPP_value=$CXXCPP
771 ac_cv_env_CXXCPP_set=${CXXCPP+set}
772 ac_cv_env_CXXCPP_value=$CXXCPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838 _ACEOF
841 if test -n "$ac_init_help"; then
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-internalregex force internal regex library
849 --enable-plugins enable plugins' support in PWLIB
850 --disable-resolver disable DNS resolver support in PWLIB
851 --disable-sasl disable SASL support in PWLIB
852 --disable-openldap disable OpenLDAP support in PWLIB
853 --disable-openssl disable OpenSSL support in PWLIB
854 --disable-expat disable XML support in PWLIB
855 --disable-ipv6 disable IPV6 support in PWLIB
856 --disable-qos disable QOS support in PWLIB
857 --disable-sdl disable SDL support in PWLIB
858 --disable-video disable non-plugin video device support in PWLIB
859 --enable-alsa disable non-plugin ALSA audio support
861 Some influential environment variables:
862 CXX C++ compiler command
863 CXXFLAGS C++ compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CXXCPP C++ preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 # absolute.
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 cd $ac_dir
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
916 echo
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
919 echo
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
923 echo
924 $ac_configure --help
925 else
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 cd $ac_popdir
929 done
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
934 cat <<\_ACEOF
936 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
937 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
940 _ACEOF
941 exit 0
943 exec 5>config.log
944 cat >&5 <<_ACEOF
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.57. Invocation command line was
951 $ $0 $@
953 _ACEOF
955 cat <<_ASUNAME
956 ## --------- ##
957 ## Platform. ##
958 ## --------- ##
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977 _ASUNAME
979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
980 for as_dir in $PATH
982 IFS=$as_save_IFS
983 test -z "$as_dir" && as_dir=.
984 echo "PATH: $as_dir"
985 done
987 } >&5
989 cat >&5 <<_ACEOF
992 ## ----------- ##
993 ## Core tests. ##
994 ## ----------- ##
996 _ACEOF
999 # Keep a trace of the command line.
1000 # Strip out --no-create and --no-recursion so they do not pile up.
1001 # Strip out --silent because we don't want to record it for future runs.
1002 # Also quote any args containing shell meta-characters.
1003 # Make two passes to allow for proper duplicate-argument suppression.
1004 ac_configure_args=
1005 ac_configure_args0=
1006 ac_configure_args1=
1007 ac_sep=
1008 ac_must_keep_next=false
1009 for ac_pass in 1 2
1011 for ac_arg
1013 case $ac_arg in
1014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1017 continue ;;
1018 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1019 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1020 esac
1021 case $ac_pass in
1022 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1025 if test $ac_must_keep_next = true; then
1026 ac_must_keep_next=false # Got value, back to normal.
1027 else
1028 case $ac_arg in
1029 *=* | --config-cache | -C | -disable-* | --disable-* \
1030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1032 | -with-* | --with-* | -without-* | --without-* | --x)
1033 case "$ac_configure_args0 " in
1034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1035 esac
1037 -* ) ac_must_keep_next=true ;;
1038 esac
1040 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1042 ac_sep=" "
1044 esac
1045 done
1046 done
1047 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1048 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log. We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056 # Save into config.log some information that might help in debugging.
1058 echo
1060 cat <<\_ASBOX
1061 ## ---------------- ##
1062 ## Cache variables. ##
1063 ## ---------------- ##
1064 _ASBOX
1065 echo
1066 # The following way of writing the cache mishandles newlines in values,
1068 (set) 2>&1 |
1069 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070 *ac_space=\ *)
1071 sed -n \
1072 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 sed -n \
1077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079 esac;
1081 echo
1083 cat <<\_ASBOX
1084 ## ----------------- ##
1085 ## Output variables. ##
1086 ## ----------------- ##
1087 _ASBOX
1088 echo
1089 for ac_var in $ac_subst_vars
1091 eval ac_val=$`echo $ac_var`
1092 echo "$ac_var='"'"'$ac_val'"'"'"
1093 done | sort
1094 echo
1096 if test -n "$ac_subst_files"; then
1097 cat <<\_ASBOX
1098 ## ------------- ##
1099 ## Output files. ##
1100 ## ------------- ##
1101 _ASBOX
1102 echo
1103 for ac_var in $ac_subst_files
1105 eval ac_val=$`echo $ac_var`
1106 echo "$ac_var='"'"'$ac_val'"'"'"
1107 done | sort
1108 echo
1111 if test -s confdefs.h; then
1112 cat <<\_ASBOX
1113 ## ----------- ##
1114 ## confdefs.h. ##
1115 ## ----------- ##
1116 _ASBOX
1117 echo
1118 sed "/^$/d" confdefs.h | sort
1119 echo
1121 test "$ac_signal" != 0 &&
1122 echo "$as_me: caught signal $ac_signal"
1123 echo "$as_me: exit $exit_status"
1124 } >&5
1125 rm -f core core.* *.core &&
1126 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127 exit $exit_status
1129 for ac_signal in 1 2 13 15; do
1130 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131 done
1132 ac_signal=0
1134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1135 rm -rf conftest* confdefs.h
1136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 echo >confdefs.h
1139 # Predefined preprocessor variables.
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_NAME "$PACKAGE_NAME"
1143 _ACEOF
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148 _ACEOF
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1153 _ACEOF
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_STRING "$PACKAGE_STRING"
1158 _ACEOF
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163 _ACEOF
1166 # Let the site file select an alternate cache file if it wants to.
1167 # Prefer explicitly selected file to automatically selected ones.
1168 if test -z "$CONFIG_SITE"; then
1169 if test "x$prefix" != xNONE; then
1170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1171 else
1172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1175 for ac_site_file in $CONFIG_SITE; do
1176 if test -r "$ac_site_file"; then
1177 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1178 echo "$as_me: loading site script $ac_site_file" >&6;}
1179 sed 's/^/| /' "$ac_site_file" >&5
1180 . "$ac_site_file"
1182 done
1184 if test -r "$cache_file"; then
1185 # Some versions of bash will fail to source /dev/null (special
1186 # files actually), so we avoid doing that.
1187 if test -f "$cache_file"; then
1188 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1189 echo "$as_me: loading cache $cache_file" >&6;}
1190 case $cache_file in
1191 [\\/]* | ?:[\\/]* ) . $cache_file;;
1192 *) . ./$cache_file;;
1193 esac
1195 else
1196 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1197 echo "$as_me: creating cache $cache_file" >&6;}
1198 >$cache_file
1201 # Check that the precious variables saved in the cache have kept the same
1202 # value.
1203 ac_cache_corrupted=false
1204 for ac_var in `(set) 2>&1 |
1205 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1207 eval ac_new_set=\$ac_env_${ac_var}_set
1208 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1209 eval ac_new_val="\$ac_env_${ac_var}_value"
1210 case $ac_old_set,$ac_new_set in
1211 set,)
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1215 ,set)
1216 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1218 ac_cache_corrupted=: ;;
1219 ,);;
1221 if test "x$ac_old_val" != "x$ac_new_val"; then
1222 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1223 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1224 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1225 echo "$as_me: former value: $ac_old_val" >&2;}
1226 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1227 echo "$as_me: current value: $ac_new_val" >&2;}
1228 ac_cache_corrupted=:
1229 fi;;
1230 esac
1231 # Pass precious variables to config.status.
1232 if test "$ac_new_set" = set; then
1233 case $ac_new_val in
1234 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1236 *) ac_arg=$ac_var=$ac_new_val ;;
1237 esac
1238 case " $ac_configure_args " in
1239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1240 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1241 esac
1243 done
1244 if $ac_cache_corrupted; then
1245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249 { (exit 1); exit 1; }; }
1252 ac_ext=c
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1277 ac_aux_dir=
1278 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1279 if test -f $ac_dir/install-sh; then
1280 ac_aux_dir=$ac_dir
1281 ac_install_sh="$ac_aux_dir/install-sh -c"
1282 break
1283 elif test -f $ac_dir/install.sh; then
1284 ac_aux_dir=$ac_dir
1285 ac_install_sh="$ac_aux_dir/install.sh -c"
1286 break
1287 elif test -f $ac_dir/shtool; then
1288 ac_aux_dir=$ac_dir
1289 ac_install_sh="$ac_aux_dir/shtool install -c"
1290 break
1292 done
1293 if test -z "$ac_aux_dir"; then
1294 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1295 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1296 { (exit 1); exit 1; }; }
1298 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1299 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1300 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1304 subdirs="$subdirs plugins"
1307 ac_ext=cc
1308 ac_cpp='$CXXCPP $CPPFLAGS'
1309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1312 if test -n "$ac_tool_prefix"; then
1313 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1317 echo "$as_me:$LINENO: checking for $ac_word" >&5
1318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1319 if test "${ac_cv_prog_CXX+set}" = set; then
1320 echo $ECHO_N "(cached) $ECHO_C" >&6
1321 else
1322 if test -n "$CXX"; then
1323 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1324 else
1325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1326 for as_dir in $PATH
1328 IFS=$as_save_IFS
1329 test -z "$as_dir" && as_dir=.
1330 for ac_exec_ext in '' $ac_executable_extensions; do
1331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1332 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1334 break 2
1336 done
1337 done
1341 CXX=$ac_cv_prog_CXX
1342 if test -n "$CXX"; then
1343 echo "$as_me:$LINENO: result: $CXX" >&5
1344 echo "${ECHO_T}$CXX" >&6
1345 else
1346 echo "$as_me:$LINENO: result: no" >&5
1347 echo "${ECHO_T}no" >&6
1350 test -n "$CXX" && break
1351 done
1353 if test -z "$CXX"; then
1354 ac_ct_CXX=$CXX
1355 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1357 # Extract the first word of "$ac_prog", so it can be a program name with args.
1358 set dummy $ac_prog; ac_word=$2
1359 echo "$as_me:$LINENO: checking for $ac_word" >&5
1360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1361 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 if test -n "$ac_ct_CXX"; then
1365 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1366 else
1367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 for as_dir in $PATH
1370 IFS=$as_save_IFS
1371 test -z "$as_dir" && as_dir=.
1372 for ac_exec_ext in '' $ac_executable_extensions; do
1373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1374 ac_cv_prog_ac_ct_CXX="$ac_prog"
1375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1376 break 2
1378 done
1379 done
1383 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1384 if test -n "$ac_ct_CXX"; then
1385 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1386 echo "${ECHO_T}$ac_ct_CXX" >&6
1387 else
1388 echo "$as_me:$LINENO: result: no" >&5
1389 echo "${ECHO_T}no" >&6
1392 test -n "$ac_ct_CXX" && break
1393 done
1394 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1396 CXX=$ac_ct_CXX
1400 # Provide some information about the compiler.
1401 echo "$as_me:$LINENO:" \
1402 "checking for C++ compiler version" >&5
1403 ac_compiler=`set X $ac_compile; echo $2`
1404 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1405 (eval $ac_compiler --version </dev/null >&5) 2>&5
1406 ac_status=$?
1407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1408 (exit $ac_status); }
1409 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1410 (eval $ac_compiler -v </dev/null >&5) 2>&5
1411 ac_status=$?
1412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1413 (exit $ac_status); }
1414 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1415 (eval $ac_compiler -V </dev/null >&5) 2>&5
1416 ac_status=$?
1417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1418 (exit $ac_status); }
1420 cat >conftest.$ac_ext <<_ACEOF
1421 #line $LINENO "configure"
1422 /* confdefs.h. */
1423 _ACEOF
1424 cat confdefs.h >>conftest.$ac_ext
1425 cat >>conftest.$ac_ext <<_ACEOF
1426 /* end confdefs.h. */
1429 main ()
1433 return 0;
1435 _ACEOF
1436 ac_clean_files_save=$ac_clean_files
1437 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1438 # Try to create an executable without -o first, disregard a.out.
1439 # It will help us diagnose broken compilers, and finding out an intuition
1440 # of exeext.
1441 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1442 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1443 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1444 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1445 (eval $ac_link_default) 2>&5
1446 ac_status=$?
1447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1448 (exit $ac_status); }; then
1449 # Find the output, starting from the most likely. This scheme is
1450 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1451 # resort.
1453 # Be careful to initialize this variable, since it used to be cached.
1454 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1455 ac_cv_exeext=
1456 # b.out is created by i960 compilers.
1457 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1459 test -f "$ac_file" || continue
1460 case $ac_file in
1461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1463 conftest.$ac_ext )
1464 # This is the source file.
1466 [ab].out )
1467 # We found the default executable, but exeext='' is most
1468 # certainly right.
1469 break;;
1470 *.* )
1471 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1472 # FIXME: I believe we export ac_cv_exeext for Libtool,
1473 # but it would be cool to find out if it's true. Does anybody
1474 # maintain Libtool? --akim.
1475 export ac_cv_exeext
1476 break;;
1478 break;;
1479 esac
1480 done
1481 else
1482 echo "$as_me: failed program was:" >&5
1483 sed 's/^/| /' conftest.$ac_ext >&5
1485 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1486 See \`config.log' for more details." >&5
1487 echo "$as_me: error: C++ compiler cannot create executables
1488 See \`config.log' for more details." >&2;}
1489 { (exit 77); exit 77; }; }
1492 ac_exeext=$ac_cv_exeext
1493 echo "$as_me:$LINENO: result: $ac_file" >&5
1494 echo "${ECHO_T}$ac_file" >&6
1496 # Check the compiler produces executables we can run. If not, either
1497 # the compiler is broken, or we cross compile.
1498 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1499 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1500 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1501 # If not cross compiling, check that we can run a simple program.
1502 if test "$cross_compiling" != yes; then
1503 if { ac_try='./$ac_file'
1504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1505 (eval $ac_try) 2>&5
1506 ac_status=$?
1507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1508 (exit $ac_status); }; }; then
1509 cross_compiling=no
1510 else
1511 if test "$cross_compiling" = maybe; then
1512 cross_compiling=yes
1513 else
1514 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1515 If you meant to cross compile, use \`--host'.
1516 See \`config.log' for more details." >&5
1517 echo "$as_me: error: cannot run C++ compiled programs.
1518 If you meant to cross compile, use \`--host'.
1519 See \`config.log' for more details." >&2;}
1520 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: result: yes" >&5
1525 echo "${ECHO_T}yes" >&6
1527 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1528 ac_clean_files=$ac_clean_files_save
1529 # Check the compiler produces executables we can run. If not, either
1530 # the compiler is broken, or we cross compile.
1531 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1532 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1533 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1534 echo "${ECHO_T}$cross_compiling" >&6
1536 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1537 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1539 (eval $ac_link) 2>&5
1540 ac_status=$?
1541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1542 (exit $ac_status); }; then
1543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1544 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1545 # work properly (i.e., refer to `conftest.exe'), while it won't with
1546 # `rm'.
1547 for ac_file in conftest.exe conftest conftest.*; do
1548 test -f "$ac_file" || continue
1549 case $ac_file in
1550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1552 export ac_cv_exeext
1553 break;;
1554 * ) break;;
1555 esac
1556 done
1557 else
1558 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1559 See \`config.log' for more details." >&5
1560 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1561 See \`config.log' for more details." >&2;}
1562 { (exit 1); exit 1; }; }
1565 rm -f conftest$ac_cv_exeext
1566 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1567 echo "${ECHO_T}$ac_cv_exeext" >&6
1569 rm -f conftest.$ac_ext
1570 EXEEXT=$ac_cv_exeext
1571 ac_exeext=$EXEEXT
1572 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1573 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1574 if test "${ac_cv_objext+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 cat >conftest.$ac_ext <<_ACEOF
1578 #line $LINENO "configure"
1579 /* confdefs.h. */
1580 _ACEOF
1581 cat confdefs.h >>conftest.$ac_ext
1582 cat >>conftest.$ac_ext <<_ACEOF
1583 /* end confdefs.h. */
1586 main ()
1590 return 0;
1592 _ACEOF
1593 rm -f conftest.o conftest.obj
1594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1595 (eval $ac_compile) 2>&5
1596 ac_status=$?
1597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1598 (exit $ac_status); }; then
1599 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1600 case $ac_file in
1601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1603 break;;
1604 esac
1605 done
1606 else
1607 echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1611 See \`config.log' for more details." >&5
1612 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1613 See \`config.log' for more details." >&2;}
1614 { (exit 1); exit 1; }; }
1617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1619 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1620 echo "${ECHO_T}$ac_cv_objext" >&6
1621 OBJEXT=$ac_cv_objext
1622 ac_objext=$OBJEXT
1623 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1624 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1625 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 cat >conftest.$ac_ext <<_ACEOF
1629 #line $LINENO "configure"
1630 /* confdefs.h. */
1631 _ACEOF
1632 cat confdefs.h >>conftest.$ac_ext
1633 cat >>conftest.$ac_ext <<_ACEOF
1634 /* end confdefs.h. */
1637 main ()
1639 #ifndef __GNUC__
1640 choke me
1641 #endif
1644 return 0;
1646 _ACEOF
1647 rm -f conftest.$ac_objext
1648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1649 (eval $ac_compile) 2>&5
1650 ac_status=$?
1651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1652 (exit $ac_status); } &&
1653 { ac_try='test -s conftest.$ac_objext'
1654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1655 (eval $ac_try) 2>&5
1656 ac_status=$?
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }; }; then
1659 ac_compiler_gnu=yes
1660 else
1661 echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_compiler_gnu=no
1666 rm -f conftest.$ac_objext conftest.$ac_ext
1667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1670 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1671 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1672 GXX=`test $ac_compiler_gnu = yes && echo yes`
1673 ac_test_CXXFLAGS=${CXXFLAGS+set}
1674 ac_save_CXXFLAGS=$CXXFLAGS
1675 CXXFLAGS="-g"
1676 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1677 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1678 if test "${ac_cv_prog_cxx_g+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681 cat >conftest.$ac_ext <<_ACEOF
1682 #line $LINENO "configure"
1683 /* confdefs.h. */
1684 _ACEOF
1685 cat confdefs.h >>conftest.$ac_ext
1686 cat >>conftest.$ac_ext <<_ACEOF
1687 /* end confdefs.h. */
1690 main ()
1694 return 0;
1696 _ACEOF
1697 rm -f conftest.$ac_objext
1698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1699 (eval $ac_compile) 2>&5
1700 ac_status=$?
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); } &&
1703 { ac_try='test -s conftest.$ac_objext'
1704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1705 (eval $ac_try) 2>&5
1706 ac_status=$?
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }; }; then
1709 ac_cv_prog_cxx_g=yes
1710 else
1711 echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_cv_prog_cxx_g=no
1716 rm -f conftest.$ac_objext conftest.$ac_ext
1718 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1719 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1720 if test "$ac_test_CXXFLAGS" = set; then
1721 CXXFLAGS=$ac_save_CXXFLAGS
1722 elif test $ac_cv_prog_cxx_g = yes; then
1723 if test "$GXX" = yes; then
1724 CXXFLAGS="-g -O2"
1725 else
1726 CXXFLAGS="-g"
1728 else
1729 if test "$GXX" = yes; then
1730 CXXFLAGS="-O2"
1731 else
1732 CXXFLAGS=
1735 for ac_declaration in \
1737 '#include <stdlib.h>' \
1738 'extern "C" void std::exit (int) throw (); using std::exit;' \
1739 'extern "C" void std::exit (int); using std::exit;' \
1740 'extern "C" void exit (int) throw ();' \
1741 'extern "C" void exit (int);' \
1742 'void exit (int);'
1744 cat >conftest.$ac_ext <<_ACEOF
1745 #line $LINENO "configure"
1746 /* confdefs.h. */
1747 _ACEOF
1748 cat confdefs.h >>conftest.$ac_ext
1749 cat >>conftest.$ac_ext <<_ACEOF
1750 /* end confdefs.h. */
1751 #include <stdlib.h>
1752 $ac_declaration
1754 main ()
1756 exit (42);
1758 return 0;
1760 _ACEOF
1761 rm -f conftest.$ac_objext
1762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1763 (eval $ac_compile) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); } &&
1767 { ac_try='test -s conftest.$ac_objext'
1768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1769 (eval $ac_try) 2>&5
1770 ac_status=$?
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1774 else
1775 echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 continue
1780 rm -f conftest.$ac_objext conftest.$ac_ext
1781 cat >conftest.$ac_ext <<_ACEOF
1782 #line $LINENO "configure"
1783 /* confdefs.h. */
1784 _ACEOF
1785 cat confdefs.h >>conftest.$ac_ext
1786 cat >>conftest.$ac_ext <<_ACEOF
1787 /* end confdefs.h. */
1788 $ac_declaration
1790 main ()
1792 exit (42);
1794 return 0;
1796 _ACEOF
1797 rm -f conftest.$ac_objext
1798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1799 (eval $ac_compile) 2>&5
1800 ac_status=$?
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); } &&
1803 { ac_try='test -s conftest.$ac_objext'
1804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1805 (eval $ac_try) 2>&5
1806 ac_status=$?
1807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808 (exit $ac_status); }; }; then
1809 break
1810 else
1811 echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1815 rm -f conftest.$ac_objext conftest.$ac_ext
1816 done
1817 rm -f conftest*
1818 if test -n "$ac_declaration"; then
1819 echo '#ifdef __cplusplus' >>confdefs.h
1820 echo $ac_declaration >>confdefs.h
1821 echo '#endif' >>confdefs.h
1824 ac_ext=c
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 ac_ext=cc
1832 ac_cpp='$CXXCPP $CPPFLAGS'
1833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1839 PWLIBDIR=`pwd`
1843 if test "x$prefix" = "xNONE"; then
1844 INSTALLPREFIX="/usr/local"
1845 else
1846 INSTALLPREFIX="${prefix}"
1852 LIBDIR=${libdir}
1856 MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1857 MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1858 BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1859 PWLIB_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1864 MAJOR_VERSION=$MAJOR_VERSION
1866 MINOR_VERSION=$MINOR_VERSION
1868 BUILD_NUMBER=$BUILD_NUMBER
1871 { echo "$as_me:$LINENO: PTLib version is ${PWLIB_VERSION}" >&5
1872 echo "$as_me: PTLib version is ${PWLIB_VERSION}" >&6;};
1875 cat >>confdefs.h <<_ACEOF
1876 #define PWLIB_MAJOR $MAJOR_VERSION
1877 _ACEOF
1880 cat >>confdefs.h <<_ACEOF
1881 #define PWLIB_MINOR $MINOR_VERSION
1882 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PWLIB_BUILD $BUILD_NUMBER
1887 _ACEOF
1890 cat >>confdefs.h <<_ACEOF
1891 #define PWLIB_VERSION "$PWLIB_VERSION"
1892 _ACEOF
1896 # Make sure we can run config.sub.
1897 $ac_config_sub sun4 >/dev/null 2>&1 ||
1898 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1899 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1900 { (exit 1); exit 1; }; }
1902 echo "$as_me:$LINENO: checking build system type" >&5
1903 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1904 if test "${ac_cv_build+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 ac_cv_build_alias=$build_alias
1908 test -z "$ac_cv_build_alias" &&
1909 ac_cv_build_alias=`$ac_config_guess`
1910 test -z "$ac_cv_build_alias" &&
1911 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1912 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1913 { (exit 1); exit 1; }; }
1914 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1915 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1916 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1917 { (exit 1); exit 1; }; }
1920 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1921 echo "${ECHO_T}$ac_cv_build" >&6
1922 build=$ac_cv_build
1923 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1924 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1925 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1928 echo "$as_me:$LINENO: checking host system type" >&5
1929 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1930 if test "${ac_cv_host+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 ac_cv_host_alias=$host_alias
1934 test -z "$ac_cv_host_alias" &&
1935 ac_cv_host_alias=$ac_cv_build_alias
1936 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1937 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1938 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1939 { (exit 1); exit 1; }; }
1942 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1943 echo "${ECHO_T}$ac_cv_host" >&6
1944 host=$ac_cv_host
1945 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1946 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1947 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1950 echo "$as_me:$LINENO: checking target system type" >&5
1951 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1952 if test "${ac_cv_target+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955 ac_cv_target_alias=$target_alias
1956 test "x$ac_cv_target_alias" = "x" &&
1957 ac_cv_target_alias=$ac_cv_host_alias
1958 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1959 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1960 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1961 { (exit 1); exit 1; }; }
1964 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1965 echo "${ECHO_T}$ac_cv_target" >&6
1966 target=$ac_cv_target
1967 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1968 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1969 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1972 # The aliases save the names the user supplied, while $host etc.
1973 # will get canonicalized.
1974 test -n "$target_alias" &&
1975 test "$program_prefix$program_suffix$program_transform_name" = \
1976 NONENONEs,x,x, &&
1977 program_prefix=${target_alias}-
1979 TARGETDIR=unix
1980 OSTYPE=
1982 case "$target_os" in
1983 linux*) OSTYPE=linux ;
1984 OSRELEASE="\"`uname -r`\"";
1985 OS_TAG="P_LINUX" ;
1986 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1989 freebsd* ) OSTYPE=FreeBSD ;
1990 OS_TAG="P_FREEBSD" ;
1991 if test "x$OSRELEASE" = "x"; then
1992 OSRELEASE="`sysctl -n kern.osreldate`" ;
1994 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1997 openbsd* ) OSTYPE=OpenBSD ;
1998 OS_TAG="P_OPENBSD" ;
1999 OSRELEASE="`sysctl -n kern.osrevision`" ;
2000 ENDLDLIBS="-lossaudio" ;
2001 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2004 netbsd* ) OSTYPE=NetBSD ;
2005 OS_TAG="P_NETBSD" ;
2006 OSRELEASE="`/sbin/sysctl -n kern.osrevision`" ;
2007 ENDLDLIBS="-lossaudio" ;
2008 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2011 solaris* | sunos* ) OSTYPE=solaris ;
2012 OS_TAG="P_SOLARIS" ;
2013 OSRELEASE=`uname -r | sed "s/5\.//g"` ;
2014 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2017 darwin* ) OSTYPE=Darwin ;
2018 OS_TAG="P_MACOSX" ;
2019 OSRELEASE="`uname -r | sed 's/\.//g'`" ;
2020 SHAREDLIBEXT="dylib";
2021 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2024 beos*) OSTYPE=beos ;
2025 OS_TAG="P_BEOS" ;
2026 OSRELEASE=`uname -r` ;
2027 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
2030 * ) OSTYPE="$target_os" ;
2031 OS_TAG="P_UNKNOWN_OS" ;
2032 OSRELEASE="\"${OSTYPE}_`uname -r`\"" ;
2033 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2034 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2036 esac
2038 MACHTYPE=
2040 case "$target_cpu" in
2041 x86 | i686 | i586 | i486 | i386 ) MACHTYPE=x86
2044 x86_64) MACHTYPE=x86_64 ;
2045 P_64BIT=1 ;
2046 LIB64=1 ;
2049 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) MACHTYPE=alpha ;
2050 P_64BIT=1 ;
2053 sparc ) MACHTYPE=sparc ;
2056 powerpc ) MACHTYPE=ppc ;
2059 ppc ) MACHTYPE=ppc ;
2062 powerpc64 ) MACHTYPE=ppc64 ;
2063 P_64BIT=1 ;
2064 LIB64=1 ;
2067 ppc64 ) MACHTYPE=ppc64 ;
2068 P_64BIT=1 ;
2069 LIB64=1 ;
2072 ia64) MACHTYPE=ia64 ;
2073 P_64BIT=1 ;
2076 s390x) MACHTYPE=s390x ;
2077 P_64BIT=1 ;
2078 LIB64=1 ;
2081 s390) MACHTYPE=s390 ;
2084 * ) MACHTYPE=$target_cpu ;
2085 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2086 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2087 esac
2089 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2090 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2091 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2092 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2093 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2094 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2096 MACHTYPE=$MACHTYPE
2098 OSTYPE=$OSTYPE
2100 OSRELEASE=$OSRELEASE
2102 TARGETDIR=$TARGETDIR
2105 cat >>confdefs.h <<_ACEOF
2106 #define $OS_TAG $OSRELEASE
2107 _ACEOF
2111 cat >>confdefs.h <<\_ACEOF
2112 #define PHAS_TEMPLATES 1
2113 _ACEOF
2116 if test "x$P_64BIT" != "x" ; then
2118 cat >>confdefs.h <<\_ACEOF
2119 #define P_64BIT 1
2120 _ACEOF
2124 if test ${OSTYPE} != beos ; then
2126 cat >>confdefs.h <<\_ACEOF
2127 #define P_PTHREADS 1
2128 _ACEOF
2133 if test "x${SHAREDLIBEXT}" = "x" ; then
2134 SHAREDLIBEXT="so"
2136 SHAREDLIBEXT=$SHAREDLIBEXT
2139 cat >>confdefs.h <<\_ACEOF
2140 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2141 _ACEOF
2147 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2148 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2149 if test "${ac_cv_c_bigendian+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 # See if sys/param.h defines the BYTE_ORDER macro.
2153 cat >conftest.$ac_ext <<_ACEOF
2154 #line $LINENO "configure"
2155 /* confdefs.h. */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2160 #include <sys/types.h>
2161 #include <sys/param.h>
2164 main ()
2166 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2167 bogus endian macros
2168 #endif
2171 return 0;
2173 _ACEOF
2174 rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 # It does; now see whether it defined to BIG_ENDIAN or not.
2187 cat >conftest.$ac_ext <<_ACEOF
2188 #line $LINENO "configure"
2189 /* confdefs.h. */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2194 #include <sys/types.h>
2195 #include <sys/param.h>
2198 main ()
2200 #if BYTE_ORDER != BIG_ENDIAN
2201 not big endian
2202 #endif
2205 return 0;
2207 _ACEOF
2208 rm -f conftest.$ac_objext
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 ac_cv_c_bigendian=yes
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 ac_cv_c_bigendian=no
2227 rm -f conftest.$ac_objext conftest.$ac_ext
2228 else
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2232 # It does not; compile a test program.
2233 if test "$cross_compiling" = yes; then
2234 # try to guess the endianness by grepping values into an object file
2235 ac_cv_c_bigendian=unknown
2236 cat >conftest.$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2238 /* confdefs.h. */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2243 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2244 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2245 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2246 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2247 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2248 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2250 main ()
2252 _ascii (); _ebcdic ();
2254 return 0;
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2269 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2270 ac_cv_c_bigendian=yes
2272 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2273 if test "$ac_cv_c_bigendian" = unknown; then
2274 ac_cv_c_bigendian=no
2275 else
2276 # finding both strings is unlikely to happen, but who knows?
2277 ac_cv_c_bigendian=unknown
2280 else
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2285 rm -f conftest.$ac_objext conftest.$ac_ext
2286 else
2287 cat >conftest.$ac_ext <<_ACEOF
2288 #line $LINENO "configure"
2289 /* confdefs.h. */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2295 main ()
2297 /* Are we little or big endian? From Harbison&Steele. */
2298 union
2300 long l;
2301 char c[sizeof (long)];
2302 } u;
2303 u.l = 1;
2304 exit (u.c[sizeof (long) - 1] == 1);
2306 _ACEOF
2307 rm -f conftest$ac_exeext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2309 (eval $ac_link) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 ac_cv_c_bigendian=no
2319 else
2320 echo "$as_me: program exited with status $ac_status" >&5
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2324 ( exit $ac_status )
2325 ac_cv_c_bigendian=yes
2327 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2332 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2333 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2334 case $ac_cv_c_bigendian in
2335 yes)
2337 cat >>confdefs.h <<\_ACEOF
2338 #define WORDS_BIGENDIAN 1
2339 _ACEOF
2344 { { echo "$as_me:$LINENO: error: unknown endianness
2345 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2346 echo "$as_me: error: unknown endianness
2347 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2348 { (exit 1); exit 1; }; } ;;
2349 esac
2351 if test ${ac_cv_c_bigendian} = yes ; then
2352 PBYTE_ORDER=PBIG_ENDIAN
2353 else
2354 PBYTE_ORDER=PLITTLE_ENDIAN
2358 cat >>confdefs.h <<_ACEOF
2359 #define PBYTE_ORDER $PBYTE_ORDER
2360 _ACEOF
2363 ac_ext=cc
2364 ac_cpp='$CXXCPP $CPPFLAGS'
2365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2370 echo "$as_me:$LINENO: checking if linker accepts -felide-constructors" >&5
2371 echo $ECHO_N "checking if linker accepts -felide-constructors... $ECHO_C" >&6
2372 cat >conftest.$ac_ext <<_ACEOF
2373 int main(int ac,char **av) { return 0; }
2374 _ACEOF
2375 $CXX $CXXFLAGS -felide-constructors conftest.cc > /dev/null 2>&1
2376 if test $? = 0 ; then
2377 echo "$as_me:$LINENO: result: yes" >&5
2378 echo "${ECHO_T}yes" >&6
2379 STDCXXFLAGS="$STDCXXFLAGS -felide-constructors"
2380 else
2381 echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6
2385 echo "$as_me:$LINENO: checking if linker accepts -Wreorder" >&5
2386 echo $ECHO_N "checking if linker accepts -Wreorder... $ECHO_C" >&6
2387 cat >conftest.$ac_ext <<_ACEOF
2388 int main(int ac,char **av) { return 0; }
2389 _ACEOF
2390 $STDCXX $CXXFLAGS -Wreorder conftest.cc > /dev/null 2>&1
2391 if test $? = 0 ; then
2392 echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6
2394 STDCXXFLAGS="$STDCXXFLAGS -Wreorder"
2395 else
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 # AC_MSG_CHECKING(if linker accepts -Woverloaded-virtual)
2401 # AC_LANG_CONFTEST([[int main(int ac,char **av) { return 0; }]])
2402 # $CXX $CFLAGS -Woverloaded-virtual conftest.cc > /dev/null 2>&1
2403 # if test $? = 0 ; then
2404 # AC_MSG_RESULT(yes)
2405 # STDCCFLAGS="$STDCCFLAGS -Woverloaded-virtual"
2406 # else
2407 # AC_MSG_RESULT(no)
2408 # fi
2410 GCSECTIONS=0
2412 echo "$as_me:$LINENO: checking if linker accepts --gc-sections" >&5
2413 echo $ECHO_N "checking if linker accepts --gc-sections... $ECHO_C" >&6
2414 cat >conftest.$ac_ext <<_ACEOF
2415 int main(int ac,char **av) { return 0; }
2416 _ACEOF
2417 $CXX $CFLAGS -Wl,--gc-sections conftest.cc > /dev/null 2>&1
2418 if test $? = 0 ; then
2419 echo "$as_me:$LINENO: result: yes" >&5
2420 echo "${ECHO_T}yes" >&6
2422 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2423 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2424 cat >conftest.$ac_ext <<_ACEOF
2425 int main(int ac,char **av) { return 0; }
2426 _ACEOF
2427 $CXX $CFLAGS -ffunction-sections -c conftest.cc > /dev/null 2>&1
2428 if test $? = 0 ; then
2429 echo "$as_me:$LINENO: result: yes" >&5
2430 echo "${ECHO_T}yes" >&6
2431 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
2432 GCSECTIONS=1
2433 else
2434 echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6
2438 echo "$as_me:$LINENO: checking if compiler accepts -fdata-sections" >&5
2439 echo $ECHO_N "checking if compiler accepts -fdata-sections... $ECHO_C" >&6
2440 cat >conftest.$ac_ext <<_ACEOF
2441 int main(int ac,char **av) { return 0; }
2442 _ACEOF
2443 $CXX $CFLAGS -fdata-sections -c conftest.cc > /dev/null 2>&1
2444 if test $? = 0 ; then
2445 echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6
2447 STDCCFLAGS="$STDCCFLAGS -fdata-sections"
2448 GCSECTIONS=1
2449 else
2450 echo "$as_me:$LINENO: result: no" >&5
2451 echo "${ECHO_T}no" >&6
2455 if test $GCSECTIONS = 1; then
2456 if test "${OSTYPE}" != "Darwin" ; then
2457 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2461 else
2462 echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2466 ac_ext=cc
2467 ac_cpp='$CXXCPP $CPPFLAGS'
2468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2474 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
2475 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
2476 if test "${ac_cv_c_long_double+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 cat >conftest.$ac_ext <<_ACEOF
2480 #line $LINENO "configure"
2481 /* confdefs.h. */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2486 #include <float.h>
2487 long double foo = 0.0;
2489 main ()
2491 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
2492 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
2493 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
2494 test_array [0] = 0
2497 return 0;
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2512 ac_cv_c_long_double=yes
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2517 ac_cv_c_long_double=no
2519 rm -f conftest.$ac_objext conftest.$ac_ext
2521 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
2522 echo "${ECHO_T}$ac_cv_c_long_double" >&6
2523 if test $ac_cv_c_long_double = yes; then
2525 cat >>confdefs.h <<\_ACEOF
2526 #define HAVE_LONG_DOUBLE 1
2527 _ACEOF
2531 if test $ac_cv_c_long_double != yes ; then
2533 cat >>confdefs.h <<\_ACEOF
2534 #define PNO_LONG_DOUBLE
2535 _ACEOF
2539 echo "$as_me:$LINENO: checking if readdir_r has 2 parms" >&5
2540 echo $ECHO_N "checking if readdir_r has 2 parms... $ECHO_C" >&6
2541 cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2543 /* confdefs.h. */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2548 #define _POSIX_PTHREAD_SEMANTICS
2549 #include <dirent.h>
2551 main ()
2553 DIR *s; struct dirent * e; readdir_r(s, e);
2555 return 0;
2557 _ACEOF
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 P_HAS_POSIX_READDIR_R=2
2571 else
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 P_HAS_POSIX_READDIR_R=0
2577 rm -f conftest.$ac_objext conftest.$ac_ext
2578 if test ${P_HAS_POSIX_READDIR_R} = 2 ; then
2579 echo "$as_me:$LINENO: result: yes" >&5
2580 echo "${ECHO_T}yes" >&6
2581 else
2582 echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2584 echo "$as_me:$LINENO: checking if readdir_r has 3 parms" >&5
2585 echo $ECHO_N "checking if readdir_r has 3 parms... $ECHO_C" >&6
2586 cat >conftest.$ac_ext <<_ACEOF
2587 #line $LINENO "configure"
2588 /* confdefs.h. */
2589 _ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h. */
2593 #include <dirent.h>
2595 main ()
2597 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
2599 return 0;
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 P_HAS_POSIX_READDIR_R=3
2615 else
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2619 P_HAS_POSIX_READDIR_R=0
2621 rm -f conftest.$ac_objext conftest.$ac_ext
2622 if test ${P_HAS_POSIX_READDIR_R} = 3 ; then
2623 echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2625 else
2626 echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6
2630 cat >>confdefs.h <<_ACEOF
2631 #define P_HAS_POSIX_READDIR_R ${P_HAS_POSIX_READDIR_R}
2632 _ACEOF
2636 P_HAS_STL_STREAMS=0
2637 echo "$as_me:$LINENO: checking if using STL streams" >&5
2638 echo $ECHO_N "checking if using STL streams... $ECHO_C" >&6
2639 cat >conftest.$ac_ext <<_ACEOF
2640 #line $LINENO "configure"
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646 #include <iostream>
2648 main ()
2650 int v = (int)std::ios_base::seekdir();
2652 return 0;
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 P_HAS_STL_STREAMS=1
2668 else
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2673 rm -f conftest.$ac_objext conftest.$ac_ext
2674 if test ${P_HAS_STL_STREAMS} = 1 ; then
2675 echo "$as_me:$LINENO: result: yes" >&5
2676 echo "${ECHO_T}yes" >&6
2677 else
2678 echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2681 cat >>confdefs.h <<_ACEOF
2682 #define P_HAS_STL_STREAMS ${P_HAS_STL_STREAMS}
2683 _ACEOF
2687 P_HAS_ATOMIC_INT=0
2688 P_NEEDS_GNU_CXX_NAMESPACE=0
2689 echo "$as_me:$LINENO: checking if atomic integer available" >&5
2690 echo $ECHO_N "checking if atomic integer available... $ECHO_C" >&6
2691 cat >conftest.$ac_ext <<_ACEOF
2692 #line $LINENO "configure"
2693 /* confdefs.h. */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2698 #include <bits/atomicity.h>
2700 main ()
2702 _Atomic_word val;
2704 return 0;
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 P_HAS_ATOMIC_INT=1
2720 else
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.$ac_objext conftest.$ac_ext
2726 if test ${P_HAS_ATOMIC_INT} = 1 ; then
2727 echo "$as_me:$LINENO: result: yes" >&5
2728 echo "${ECHO_T}yes" >&6
2729 echo "$as_me:$LINENO: checking if __exchange_and_add is in __gnu_cxx namespace" >&5
2730 echo $ECHO_N "checking if __exchange_and_add is in __gnu_cxx namespace... $ECHO_C" >&6
2731 cat >conftest.$ac_ext <<_ACEOF
2732 #line $LINENO "configure"
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2738 #include <bits/atomicity.h>
2740 main ()
2742 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
2744 return 0;
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 P_NEEDS_GNU_CXX_NAMESPACE=1
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2765 rm -f conftest.$ac_objext conftest.$ac_ext
2766 if test ${P_NEEDS_GNU_CXX_NAMESPACE} = 1 ; then
2767 echo "$as_me:$LINENO: result: yes" >&5
2768 echo "${ECHO_T}yes" >&6
2769 else
2770 echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6
2773 else
2774 echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6
2777 cat >>confdefs.h <<_ACEOF
2778 #define P_HAS_ATOMIC_INT ${P_HAS_ATOMIC_INT}
2779 _ACEOF
2781 cat >>confdefs.h <<_ACEOF
2782 #define P_NEEDS_GNU_CXX_NAMESPACE ${P_NEEDS_GNU_CXX_NAMESPACE}
2783 _ACEOF
2788 if test ${OSTYPE} != Darwin ; then
2789 cat >conftest.$ac_ext <<_ACEOF
2790 #line $LINENO "configure"
2791 /* confdefs.h. */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2796 #include <semaphore.h>
2798 main ()
2800 sem_t *s; sem_init(s, 0, 0);
2802 return 0;
2804 _ACEOF
2805 rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 P_HAS_SEMAPHORES=1
2818 else
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2823 rm -f conftest.$ac_objext conftest.$ac_ext
2824 echo "$as_me:$LINENO: checking if Unix semaphores are available" >&5
2825 echo $ECHO_N "checking if Unix semaphores are available... $ECHO_C" >&6
2826 if test "${P_HAS_SEMAPHORES}x" != "x" ; then
2827 cat >>confdefs.h <<\_ACEOF
2828 #define P_HAS_SEMAPHORES 1
2829 _ACEOF
2831 echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6
2833 else
2834 echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2836 { echo "$as_me:$LINENO: WARNING: This host does not support semaphores which are essential" >&5
2837 echo "$as_me: WARNING: This host does not support semaphores which are essential" >&2;}
2838 { echo "$as_me:$LINENO: WARNING: to implement 'critical sections'. This feature was added" >&5
2839 echo "$as_me: WARNING: to implement 'critical sections'. This feature was added" >&2;}
2840 { echo "$as_me:$LINENO: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&5
2841 echo "$as_me: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&2;}
2842 { echo "$as_me:$LINENO: WARNING: programs. This feature has been disabled for this host" >&5
2843 echo "$as_me: WARNING: programs. This feature has been disabled for this host" >&2;}
2850 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2851 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2852 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855 ac_check_lib_save_LIBS=$LIBS
2856 LIBS="-lpthread $LIBS"
2857 cat >conftest.$ac_ext <<_ACEOF
2858 #line $LINENO "configure"
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2865 /* Override any gcc2 internal prototype to avoid an error. */
2866 #ifdef __cplusplus
2867 extern "C"
2868 #endif
2869 /* We use char because int might match the return type of a gcc2
2870 builtin and then its argument prototype would still apply. */
2871 char pthread_create ();
2873 main ()
2875 pthread_create ();
2877 return 0;
2879 _ACEOF
2880 rm -f conftest.$ac_objext conftest$ac_exeext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882 (eval $ac_link) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
2886 { ac_try='test -s conftest$ac_exeext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 ac_cv_lib_pthread_pthread_create=yes
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 ac_cv_lib_pthread_pthread_create=no
2899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2900 LIBS=$ac_check_lib_save_LIBS
2902 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2903 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2904 if test $ac_cv_lib_pthread_pthread_create = yes; then
2905 HAS_PTHREADS=yes
2906 else
2907 HAS_PTHREADS=no
2910 if test ${HAS_PTHREADS} = yes ; then
2911 ENDLDLIBS="$ENDLDLIBS -lpthread"
2912 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
2913 else
2914 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2915 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2916 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 ac_check_lib_save_LIBS=$LIBS
2920 LIBS="-lc_r $LIBS"
2921 cat >conftest.$ac_ext <<_ACEOF
2922 #line $LINENO "configure"
2923 /* confdefs.h. */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2929 /* Override any gcc2 internal prototype to avoid an error. */
2930 #ifdef __cplusplus
2931 extern "C"
2932 #endif
2933 /* We use char because int might match the return type of a gcc2
2934 builtin and then its argument prototype would still apply. */
2935 char pthread_create ();
2937 main ()
2939 pthread_create ();
2941 return 0;
2943 _ACEOF
2944 rm -f conftest.$ac_objext conftest$ac_exeext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2946 (eval $ac_link) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -s conftest$ac_exeext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_cv_lib_c_r_pthread_create=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 ac_cv_lib_c_r_pthread_create=no
2963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2964 LIBS=$ac_check_lib_save_LIBS
2966 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2967 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2968 if test $ac_cv_lib_c_r_pthread_create = yes; then
2969 HAS_PTHREADS=yes
2970 else
2971 HAS_PTHREADS=no
2974 if test ${HAS_PTHREADS} = yes ; then
2975 ENDLDLIBS="$ENDLDLIBS -pthread"
2976 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
2981 if test ${HAS_PTHREADS} != yes ; then
2982 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
2983 echo "$as_me: error: must have pthreads!" >&2;}
2984 { (exit 1); exit 1; }; }
2988 if test ${HAS_PTHREADS} = yes ; then
2989 echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
2990 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6
2991 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994 ac_check_lib_save_LIBS=$LIBS
2995 LIBS="-lpthread $LIBS"
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3004 /* Override any gcc2 internal prototype to avoid an error. */
3005 #ifdef __cplusplus
3006 extern "C"
3007 #endif
3008 /* We use char because int might match the return type of a gcc2
3009 builtin and then its argument prototype would still apply. */
3010 char pthread_mutex_timedlock ();
3012 main ()
3014 pthread_mutex_timedlock ();
3016 return 0;
3018 _ACEOF
3019 rm -f conftest.$ac_objext conftest$ac_exeext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3021 (eval $ac_link) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -s conftest$ac_exeext'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 ac_cv_lib_pthread_pthread_mutex_timedlock=yes
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 ac_cv_lib_pthread_pthread_mutex_timedlock=no
3038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3039 LIBS=$ac_check_lib_save_LIBS
3041 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
3042 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6
3043 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
3044 HAS_PTHREADS_XPG6=yes
3045 else
3046 HAS_PTHREADS_XPG6=no
3049 if test ${HAS_PTHREADS_XPG6} = yes ; then
3051 cat >>confdefs.h <<\_ACEOF
3052 #define P_PTHREADS_XPG6 1
3053 _ACEOF
3057 echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
3058 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6
3059 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062 ac_check_lib_save_LIBS=$LIBS
3063 LIBS="-lpthread $LIBS"
3064 cat >conftest.$ac_ext <<_ACEOF
3065 #line $LINENO "configure"
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3072 /* Override any gcc2 internal prototype to avoid an error. */
3073 #ifdef __cplusplus
3074 extern "C"
3075 #endif
3076 /* We use char because int might match the return type of a gcc2
3077 builtin and then its argument prototype would still apply. */
3078 char sem_timedwait ();
3080 main ()
3082 sem_timedwait ();
3084 return 0;
3086 _ACEOF
3087 rm -f conftest.$ac_objext conftest$ac_exeext
3088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089 (eval $ac_link) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -s conftest$ac_exeext'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 (eval $ac_try) 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3099 ac_cv_lib_pthread_sem_timedwait=yes
3100 else
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 ac_cv_lib_pthread_sem_timedwait=no
3106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3107 LIBS=$ac_check_lib_save_LIBS
3109 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
3110 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6
3111 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
3112 HAS_SEMAPHORES_XPG6=yes
3113 else
3114 HAS_SEMAPHORES_XPG6=no
3117 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3118 echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
3119 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6
3120 cat >conftest.$ac_ext <<_ACEOF
3121 #line $LINENO "configure"
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <semaphore.h>
3129 main ()
3131 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
3133 return 0;
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138 (eval $ac_compile) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 (eval $ac_try) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 HAS_SEMAPHORES_XPG6=yes
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 HAS_SEMAPHORES_XPG6=no
3155 rm -f conftest.$ac_objext conftest.$ac_ext
3156 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3158 cat >>confdefs.h <<\_ACEOF
3159 #define P_HAS_SEMAPHORES_XPG6 1
3160 _ACEOF
3162 echo "$as_me:$LINENO: result: yes" >&5
3163 echo "${ECHO_T}yes" >&6
3164 else
3165 echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3171 P_HAS_RECURSIVE_MUTEX=0
3172 echo "$as_me:$LINENO: checking if recursive mutexes are available" >&5
3173 echo $ECHO_N "checking if recursive mutexes are available... $ECHO_C" >&6
3174 cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181 #include <pthread.h>
3183 main ()
3185 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
3187 return 0;
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192 (eval $ac_compile) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 P_HAS_RECURSIVE_MUTEX=1
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3208 rm -f conftest.$ac_objext conftest.$ac_ext
3209 if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then
3210 echo "$as_me:$LINENO: result: yes" >&5
3211 echo "${ECHO_T}yes" >&6
3212 else
3213 echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6
3216 cat >>confdefs.h <<_ACEOF
3217 #define P_HAS_RECURSIVE_MUTEX ${P_HAS_RECURSIVE_MUTEX}
3218 _ACEOF
3223 ac_ext=cc
3224 ac_cpp='$CXXCPP $CPPFLAGS'
3225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3228 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3229 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3230 if test -z "$CXXCPP"; then
3231 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234 # Double quotes because CXXCPP needs to be expanded
3235 for CXXCPP in "$CXX -E" "/lib/cpp"
3237 ac_preproc_ok=false
3238 for ac_cxx_preproc_warn_flag in '' yes
3240 # Use a header file that comes with gcc, so configuring glibc
3241 # with a fresh cross-compiler works.
3242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243 # <limits.h> exists even on freestanding compilers.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp. "Syntax error" is here to catch this case.
3246 cat >conftest.$ac_ext <<_ACEOF
3247 #line $LINENO "configure"
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3253 #ifdef __STDC__
3254 # include <limits.h>
3255 #else
3256 # include <assert.h>
3257 #endif
3258 Syntax error
3259 _ACEOF
3260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } >/dev/null; then
3268 if test -s conftest.err; then
3269 ac_cpp_err=$ac_cxx_preproc_warn_flag
3270 else
3271 ac_cpp_err=
3273 else
3274 ac_cpp_err=yes
3276 if test -z "$ac_cpp_err"; then
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 # Broken: fails on valid input.
3283 continue
3285 rm -f conftest.err conftest.$ac_ext
3287 # OK, works on sane cases. Now check whether non-existent headers
3288 # can be detected and how.
3289 cat >conftest.$ac_ext <<_ACEOF
3290 #line $LINENO "configure"
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3296 #include <ac_nonexistent.h>
3297 _ACEOF
3298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } >/dev/null; then
3306 if test -s conftest.err; then
3307 ac_cpp_err=$ac_cxx_preproc_warn_flag
3308 else
3309 ac_cpp_err=
3311 else
3312 ac_cpp_err=yes
3314 if test -z "$ac_cpp_err"; then
3315 # Broken: success on invalid input.
3316 continue
3317 else
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3321 # Passes both tests.
3322 ac_preproc_ok=:
3323 break
3325 rm -f conftest.err conftest.$ac_ext
3327 done
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.err conftest.$ac_ext
3330 if $ac_preproc_ok; then
3331 break
3334 done
3335 ac_cv_prog_CXXCPP=$CXXCPP
3338 CXXCPP=$ac_cv_prog_CXXCPP
3339 else
3340 ac_cv_prog_CXXCPP=$CXXCPP
3342 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3343 echo "${ECHO_T}$CXXCPP" >&6
3344 ac_preproc_ok=false
3345 for ac_cxx_preproc_warn_flag in '' yes
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #ifdef __STDC__
3361 # include <limits.h>
3362 #else
3363 # include <assert.h>
3364 #endif
3365 Syntax error
3366 _ACEOF
3367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_cxx_preproc_warn_flag
3377 else
3378 ac_cpp_err=
3380 else
3381 ac_cpp_err=yes
3383 if test -z "$ac_cpp_err"; then
3385 else
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 # Broken: fails on valid input.
3390 continue
3392 rm -f conftest.err conftest.$ac_ext
3394 # OK, works on sane cases. Now check whether non-existent headers
3395 # can be detected and how.
3396 cat >conftest.$ac_ext <<_ACEOF
3397 #line $LINENO "configure"
3398 /* confdefs.h. */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #include <ac_nonexistent.h>
3404 _ACEOF
3405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_cxx_preproc_warn_flag
3415 else
3416 ac_cpp_err=
3418 else
3419 ac_cpp_err=yes
3421 if test -z "$ac_cpp_err"; then
3422 # Broken: success on invalid input.
3423 continue
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 # Passes both tests.
3429 ac_preproc_ok=:
3430 break
3432 rm -f conftest.err conftest.$ac_ext
3434 done
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3439 else
3440 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3443 See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; }
3447 ac_ext=cc
3448 ac_cpp='$CXXCPP $CPPFLAGS'
3449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3454 echo "$as_me:$LINENO: checking for egrep" >&5
3455 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3456 if test "${ac_cv_prog_egrep+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3460 then ac_cv_prog_egrep='grep -E'
3461 else ac_cv_prog_egrep='egrep'
3464 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3465 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3466 EGREP=$ac_cv_prog_egrep
3469 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3470 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3471 if test "${ac_cv_header_stdc+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 cat >conftest.$ac_ext <<_ACEOF
3475 #line $LINENO "configure"
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <stdlib.h>
3482 #include <stdarg.h>
3483 #include <string.h>
3484 #include <float.h>
3487 main ()
3491 return 0;
3493 _ACEOF
3494 rm -f conftest.$ac_objext
3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 ac_cv_header_stdc=yes
3507 else
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 ac_cv_header_stdc=no
3513 rm -f conftest.$ac_objext conftest.$ac_ext
3515 if test $ac_cv_header_stdc = yes; then
3516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3517 cat >conftest.$ac_ext <<_ACEOF
3518 #line $LINENO "configure"
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <string.h>
3526 _ACEOF
3527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 $EGREP "memchr" >/dev/null 2>&1; then
3530 else
3531 ac_cv_header_stdc=no
3533 rm -f conftest*
3537 if test $ac_cv_header_stdc = yes; then
3538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #include <stdlib.h>
3548 _ACEOF
3549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3550 $EGREP "free" >/dev/null 2>&1; then
3552 else
3553 ac_cv_header_stdc=no
3555 rm -f conftest*
3559 if test $ac_cv_header_stdc = yes; then
3560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3561 if test "$cross_compiling" = yes; then
3563 else
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3566 /* confdefs.h. */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 #include <ctype.h>
3572 #if ((' ' & 0x0FF) == 0x020)
3573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3575 #else
3576 # define ISLOWER(c) \
3577 (('a' <= (c) && (c) <= 'i') \
3578 || ('j' <= (c) && (c) <= 'r') \
3579 || ('s' <= (c) && (c) <= 'z'))
3580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3581 #endif
3583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3585 main ()
3587 int i;
3588 for (i = 0; i < 256; i++)
3589 if (XOR (islower (i), ISLOWER (i))
3590 || toupper (i) != TOUPPER (i))
3591 exit(2);
3592 exit (0);
3594 _ACEOF
3595 rm -f conftest$ac_exeext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3597 (eval $ac_link) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3607 else
3608 echo "$as_me: program exited with status $ac_status" >&5
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3612 ( exit $ac_status )
3613 ac_cv_header_stdc=no
3615 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3619 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3620 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3621 if test $ac_cv_header_stdc = yes; then
3623 cat >>confdefs.h <<\_ACEOF
3624 #define STDC_HEADERS 1
3625 _ACEOF
3629 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3639 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3640 inttypes.h stdint.h unistd.h
3642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3643 echo "$as_me:$LINENO: checking for $ac_header" >&5
3644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 cat >conftest.$ac_ext <<_ACEOF
3649 #line $LINENO "configure"
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 $ac_includes_default
3657 #include <$ac_header>
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -s conftest.$ac_objext'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 eval "$as_ac_Header=yes"
3672 else
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 eval "$as_ac_Header=no"
3678 rm -f conftest.$ac_objext conftest.$ac_ext
3680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3683 cat >>confdefs.h <<_ACEOF
3684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3685 _ACEOF
3689 done
3693 for ac_header in regex.h
3695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697 echo "$as_me:$LINENO: checking for $ac_header" >&5
3698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3704 else
3705 # Is the header compilable?
3706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3708 cat >conftest.$ac_ext <<_ACEOF
3709 #line $LINENO "configure"
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 $ac_includes_default
3716 #include <$ac_header>
3717 _ACEOF
3718 rm -f conftest.$ac_objext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720 (eval $ac_compile) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -s conftest.$ac_objext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_header_compiler=yes
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 ac_header_compiler=no
3737 rm -f conftest.$ac_objext conftest.$ac_ext
3738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3739 echo "${ECHO_T}$ac_header_compiler" >&6
3741 # Is the header present?
3742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3744 cat >conftest.$ac_ext <<_ACEOF
3745 #line $LINENO "configure"
3746 /* confdefs.h. */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3751 #include <$ac_header>
3752 _ACEOF
3753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } >/dev/null; then
3761 if test -s conftest.err; then
3762 ac_cpp_err=$ac_cxx_preproc_warn_flag
3763 else
3764 ac_cpp_err=
3766 else
3767 ac_cpp_err=yes
3769 if test -z "$ac_cpp_err"; then
3770 ac_header_preproc=yes
3771 else
3772 echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3775 ac_header_preproc=no
3777 rm -f conftest.err conftest.$ac_ext
3778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3779 echo "${ECHO_T}$ac_header_preproc" >&6
3781 # So? What about this header?
3782 case $ac_header_compiler:$ac_header_preproc in
3783 yes:no )
3784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3789 cat <<\_ASBOX
3790 ## ------------------------------------ ##
3791 ## Report this to bug-autoconf@gnu.org. ##
3792 ## ------------------------------------ ##
3793 _ASBOX
3795 sed "s/^/$as_me: WARNING: /" >&2
3797 no:yes )
3798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3805 cat <<\_ASBOX
3806 ## ------------------------------------ ##
3807 ## Report this to bug-autoconf@gnu.org. ##
3808 ## ------------------------------------ ##
3809 _ASBOX
3811 sed "s/^/$as_me: WARNING: /" >&2
3813 esac
3814 echo "$as_me:$LINENO: checking for $ac_header" >&5
3815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 eval "$as_ac_Header=$ac_header_preproc"
3821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3826 cat >>confdefs.h <<_ACEOF
3827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3828 _ACEOF
3829 HAS_REGEX=yes
3832 done
3835 # Check whether --enable-internalregex or --disable-internalregex was given.
3836 if test "${enable_internalregex+set}" = set; then
3837 enableval="$enable_internalregex"
3838 internalregex=$enableval
3840 if test "$internalregex" = "yes" ; then
3841 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3842 echo "$as_me: Forcing use of internal regex library" >&6;}
3843 else
3844 if test "$HAS_REGEX" = "yes" ; then
3845 echo "$as_me:$LINENO: checking for regcomp" >&5
3846 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3847 if test "${ac_cv_func_regcomp+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 cat >conftest.$ac_ext <<_ACEOF
3851 #line $LINENO "configure"
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 /* System header to define __stub macros and hopefully few prototypes,
3858 which can conflict with char regcomp (); below.
3859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860 <limits.h> exists even on freestanding compilers. */
3861 #ifdef __STDC__
3862 # include <limits.h>
3863 #else
3864 # include <assert.h>
3865 #endif
3866 /* Override any gcc2 internal prototype to avoid an error. */
3867 #ifdef __cplusplus
3868 extern "C"
3870 #endif
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3873 char regcomp ();
3874 /* The GNU C library defines this for functions which it implements
3875 to always fail with ENOSYS. Some functions are actually named
3876 something starting with __ and the normal name is an alias. */
3877 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3878 choke me
3879 #else
3880 char (*f) () = regcomp;
3881 #endif
3882 #ifdef __cplusplus
3884 #endif
3887 main ()
3889 return f != regcomp;
3891 return 0;
3893 _ACEOF
3894 rm -f conftest.$ac_objext conftest$ac_exeext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896 (eval $ac_link) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try='test -s conftest$ac_exeext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_func_regcomp=yes
3907 else
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 ac_cv_func_regcomp=no
3913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3915 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3916 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3917 if test $ac_cv_func_regcomp = yes; then
3918 HAS_REGEX=yes
3921 if test "$HAS_REGEX" = "yes" ; then
3922 HAS_REGEX=1
3925 cat >>confdefs.h <<\_ACEOF
3926 #define P_REGEX 1
3927 _ACEOF
3936 LIBS=""
3937 HAS_LIBDL=no
3938 P_DYNALINK=0
3939 if test ${OSTYPE} = beos ; then
3940 P_DYNALINK=1
3942 cat >>confdefs.h <<\_ACEOF
3943 #define P_DYNALINK 1
3944 _ACEOF
3946 elif test ${OSTYPE} = Darwin ; then
3947 P_DYNALINK=1
3949 cat >>confdefs.h <<\_ACEOF
3950 #define P_DYNALINK 1
3951 _ACEOF
3953 else
3955 for ac_header in dlfcn.h
3957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3959 echo "$as_me:$LINENO: checking for $ac_header" >&5
3960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3966 else
3967 # Is the header compilable?
3968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3970 cat >conftest.$ac_ext <<_ACEOF
3971 #line $LINENO "configure"
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 $ac_includes_default
3978 #include <$ac_header>
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_header_compiler=yes
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 ac_header_compiler=no
3999 rm -f conftest.$ac_objext conftest.$ac_ext
4000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4001 echo "${ECHO_T}$ac_header_compiler" >&6
4003 # Is the header present?
4004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4007 #line $LINENO "configure"
4008 /* confdefs.h. */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 #include <$ac_header>
4014 _ACEOF
4015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4017 ac_status=$?
4018 grep -v '^ *+' conftest.er1 >conftest.err
4019 rm -f conftest.er1
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } >/dev/null; then
4023 if test -s conftest.err; then
4024 ac_cpp_err=$ac_cxx_preproc_warn_flag
4025 else
4026 ac_cpp_err=
4028 else
4029 ac_cpp_err=yes
4031 if test -z "$ac_cpp_err"; then
4032 ac_header_preproc=yes
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 ac_header_preproc=no
4039 rm -f conftest.err conftest.$ac_ext
4040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4041 echo "${ECHO_T}$ac_header_preproc" >&6
4043 # So? What about this header?
4044 case $ac_header_compiler:$ac_header_preproc in
4045 yes:no )
4046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4051 cat <<\_ASBOX
4052 ## ------------------------------------ ##
4053 ## Report this to bug-autoconf@gnu.org. ##
4054 ## ------------------------------------ ##
4055 _ASBOX
4057 sed "s/^/$as_me: WARNING: /" >&2
4059 no:yes )
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4067 cat <<\_ASBOX
4068 ## ------------------------------------ ##
4069 ## Report this to bug-autoconf@gnu.org. ##
4070 ## ------------------------------------ ##
4071 _ASBOX
4073 sed "s/^/$as_me: WARNING: /" >&2
4075 esac
4076 echo "$as_me:$LINENO: checking for $ac_header" >&5
4077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 eval "$as_ac_Header=$ac_header_preproc"
4083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090 _ACEOF
4091 HAS_DLFCN=yes
4092 else
4093 HAS_DLFCN=no
4096 done
4098 if test "$HAS_DLFCN" = yes ; then
4099 echo "$as_me:$LINENO: checking if dlopen is available" >&5
4100 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
4101 cat >conftest.$ac_ext <<_ACEOF
4102 #line $LINENO "configure"
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <dlfcn.h>
4110 main ()
4112 void * p = dlopen("lib", 0);
4114 return 0;
4116 _ACEOF
4117 rm -f conftest.$ac_objext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 HAS_DLOPEN=yes
4130 else
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 HAS_DLOPEN=no
4136 rm -f conftest.$ac_objext conftest.$ac_ext
4137 if test "$HAS_DLOPEN" = no ; then
4138 echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4140 else
4141 echo "$as_me:$LINENO: result: yes" >&5
4142 echo "${ECHO_T}yes" >&6
4143 P_DYNALINK=1
4145 cat >>confdefs.h <<\_ACEOF
4146 #define P_DYNALINK 1
4147 _ACEOF
4149 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4150 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4151 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 ac_check_lib_save_LIBS=$LIBS
4155 LIBS="-ldl $LIBS"
4156 cat >conftest.$ac_ext <<_ACEOF
4157 #line $LINENO "configure"
4158 /* confdefs.h. */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4164 /* Override any gcc2 internal prototype to avoid an error. */
4165 #ifdef __cplusplus
4166 extern "C"
4167 #endif
4168 /* We use char because int might match the return type of a gcc2
4169 builtin and then its argument prototype would still apply. */
4170 char dlopen ();
4172 main ()
4174 dlopen ();
4176 return 0;
4178 _ACEOF
4179 rm -f conftest.$ac_objext conftest$ac_exeext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4181 (eval $ac_link) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 ac_cv_lib_dl_dlopen=yes
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 ac_cv_lib_dl_dlopen=no
4198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4199 LIBS=$ac_check_lib_save_LIBS
4201 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4202 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4203 if test $ac_cv_lib_dl_dlopen = yes; then
4204 HAS_LIBDL=yes
4205 else
4206 HAS_LIBDL=no
4213 plugins="no"
4214 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
4215 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
4216 # Check whether --enable-plugins or --disable-plugins was given.
4217 if test "${enable_plugins+set}" = set; then
4218 enableval="$enable_plugins"
4219 plugins=$enableval
4222 HAS_PLUGINS=0
4223 if test "${plugins}" = "no" ; then
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226 elif test "${P_DYNALINK:-unset}" = "unset" ; then
4227 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
4228 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
4229 else
4230 echo "$as_me:$LINENO: result: plugins enabled" >&5
4231 echo "${ECHO_T}plugins enabled" >&6
4232 HAS_PLUGINS=1
4234 cat >>confdefs.h <<\_ACEOF
4235 #define P_HAS_PLUGINS 1
4236 _ACEOF
4242 if test "x$LIB64" != "x" ; then
4244 cat >>confdefs.h <<_ACEOF
4245 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
4246 _ACEOF
4248 else
4250 cat >>confdefs.h <<_ACEOF
4251 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
4252 _ACEOF
4258 # Check whether --enable-resolver or --disable-resolver was given.
4259 if test "${enable_resolver+set}" = set; then
4260 enableval="$enable_resolver"
4261 resolver=$enableval
4264 if test "$resolver" = "no" ; then
4265 cat >>confdefs.h <<\_ACEOF
4266 #define P_DNS 0
4267 _ACEOF
4269 else
4270 echo "$as_me:$LINENO: checking for res_search" >&5
4271 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4272 if test "${ac_cv_func_res_search+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 cat >conftest.$ac_ext <<_ACEOF
4276 #line $LINENO "configure"
4277 /* confdefs.h. */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 /* System header to define __stub macros and hopefully few prototypes,
4283 which can conflict with char res_search (); below.
4284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 <limits.h> exists even on freestanding compilers. */
4286 #ifdef __STDC__
4287 # include <limits.h>
4288 #else
4289 # include <assert.h>
4290 #endif
4291 /* Override any gcc2 internal prototype to avoid an error. */
4292 #ifdef __cplusplus
4293 extern "C"
4295 #endif
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4298 char res_search ();
4299 /* The GNU C library defines this for functions which it implements
4300 to always fail with ENOSYS. Some functions are actually named
4301 something starting with __ and the normal name is an alias. */
4302 #if defined (__stub_res_search) || defined (__stub___res_search)
4303 choke me
4304 #else
4305 char (*f) () = res_search;
4306 #endif
4307 #ifdef __cplusplus
4309 #endif
4312 main ()
4314 return f != res_search;
4316 return 0;
4318 _ACEOF
4319 rm -f conftest.$ac_objext conftest$ac_exeext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4321 (eval $ac_link) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -s conftest$ac_exeext'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4331 ac_cv_func_res_search=yes
4332 else
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4336 ac_cv_func_res_search=no
4338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4340 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4341 echo "${ECHO_T}$ac_cv_func_res_search" >&6
4342 if test $ac_cv_func_res_search = yes; then
4343 HAVE_RESOLVER=1
4346 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4347 RESOLVER_LIBS=""
4348 else
4349 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
4350 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
4351 LIBS="-lresolv"
4352 cat >conftest.$ac_ext <<_ACEOF
4354 #include <netinet/in.h>
4355 #include <resolv.h>
4356 int main(int argc,char **argv){
4357 res_search (NULL, 0, 0, NULL, 0);
4359 _ACEOF
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try='test -s conftest.$ac_objext'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 HAVE_RESOLVER=1
4373 else
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4378 rm -f conftest.$ac_objext conftest.$ac_ext
4379 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4380 echo "$as_me:$LINENO: result: yes" >&5
4381 echo "${ECHO_T}yes" >&6
4382 RESOLVER_LIBS="-lresolv"
4383 else
4384 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
4385 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
4386 if test "${ac_cv_search___res_search+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 ac_func_search_save_LIBS=$LIBS
4390 ac_cv_search___res_search=no
4391 cat >conftest.$ac_ext <<_ACEOF
4392 #line $LINENO "configure"
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4399 /* Override any gcc2 internal prototype to avoid an error. */
4400 #ifdef __cplusplus
4401 extern "C"
4402 #endif
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4405 char __res_search ();
4407 main ()
4409 __res_search ();
4411 return 0;
4413 _ACEOF
4414 rm -f conftest.$ac_objext conftest$ac_exeext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4416 (eval $ac_link) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try='test -s conftest$ac_exeext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_search___res_search="none required"
4427 else
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4433 if test "$ac_cv_search___res_search" = no; then
4434 for ac_lib in resolv; do
4435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4444 /* Override any gcc2 internal prototype to avoid an error. */
4445 #ifdef __cplusplus
4446 extern "C"
4447 #endif
4448 /* We use char because int might match the return type of a gcc2
4449 builtin and then its argument prototype would still apply. */
4450 char __res_search ();
4452 main ()
4454 __res_search ();
4456 return 0;
4458 _ACEOF
4459 rm -f conftest.$ac_objext conftest$ac_exeext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461 (eval $ac_link) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try='test -s conftest$ac_exeext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 ac_cv_search___res_search="-l$ac_lib"
4472 break
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4479 done
4481 LIBS=$ac_func_search_save_LIBS
4483 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4484 echo "${ECHO_T}$ac_cv_search___res_search" >&6
4485 if test "$ac_cv_search___res_search" != no; then
4486 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
4487 HAVE_RESOLVER=1
4493 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4495 cat >>confdefs.h <<\_ACEOF
4496 #define P_DNS 1
4497 _ACEOF
4504 # Check whether --enable-sasl or --disable-sasl was given.
4505 if test "${enable_sasl+set}" = set; then
4506 enableval="$enable_sasl"
4507 sasl=$enableval
4510 if test "$sasl" = "no" ; then
4511 { echo "$as_me:$LINENO: SASL disabled" >&5
4512 echo "$as_me: SASL disabled" >&6;}
4513 else
4515 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4516 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4517 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 ac_check_lib_save_LIBS=$LIBS
4521 LIBS="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4522 cat >conftest.$ac_ext <<_ACEOF
4523 #line $LINENO "configure"
4524 /* confdefs.h. */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4530 /* Override any gcc2 internal prototype to avoid an error. */
4531 #ifdef __cplusplus
4532 extern "C"
4533 #endif
4534 /* We use char because int might match the return type of a gcc2
4535 builtin and then its argument prototype would still apply. */
4536 char sasl_version ();
4538 main ()
4540 sasl_version ();
4542 return 0;
4544 _ACEOF
4545 rm -f conftest.$ac_objext conftest$ac_exeext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4547 (eval $ac_link) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -s conftest$ac_exeext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_lib_sasl2_sasl_version=yes
4558 else
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 ac_cv_lib_sasl2_sasl_version=no
4564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4565 LIBS=$ac_check_lib_save_LIBS
4567 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4568 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4569 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4570 HAS_SASL2=1
4571 else
4572 HAS_SASL2=
4575 if test "${HAS_SASL2}x" = "x" ; then
4576 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4577 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4578 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 ac_check_lib_save_LIBS=$LIBS
4582 LIBS="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4583 cat >conftest.$ac_ext <<_ACEOF
4584 #line $LINENO "configure"
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4591 /* Override any gcc2 internal prototype to avoid an error. */
4592 #ifdef __cplusplus
4593 extern "C"
4594 #endif
4595 /* We use char because int might match the return type of a gcc2
4596 builtin and then its argument prototype would still apply. */
4597 char sasl_client_auth ();
4599 main ()
4601 sasl_client_auth ();
4603 return 0;
4605 _ACEOF
4606 rm -f conftest.$ac_objext conftest$ac_exeext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4608 (eval $ac_link) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -s conftest$ac_exeext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_lib_sasl_sasl_client_auth=yes
4619 else
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4623 ac_cv_lib_sasl_sasl_client_auth=no
4625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4626 LIBS=$ac_check_lib_save_LIBS
4628 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4629 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4630 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4631 HAS_SASL=1
4632 else
4633 HAS_SASL=
4638 echo "$as_me:$LINENO: checking if <sasl.h> works" >&5
4639 echo $ECHO_N "checking if <sasl.h> works... $ECHO_C" >&6
4640 cat >conftest.$ac_ext <<_ACEOF
4641 #include <sasl.h>
4642 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
4643 _ACEOF
4644 rm -f conftest.$ac_objext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -s conftest.$ac_objext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 HAS_INCLUDE_SASL_H=1
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4662 rm -f conftest.$ac_objext conftest.$ac_ext
4663 if test "${HAS_INCLUDE_SASL_H}x" != "x" ; then
4664 echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6
4666 SASL_INCLUDED=1
4667 else
4668 echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670 echo "$as_me:$LINENO: checking if <sasl/sasl.h> works" >&5
4671 echo $ECHO_N "checking if <sasl/sasl.h> works... $ECHO_C" >&6
4672 cat >conftest.$ac_ext <<_ACEOF
4673 #include <sasl/sasl.h>
4674 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
4675 _ACEOF
4676 rm -f conftest.$ac_objext
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try='test -s conftest.$ac_objext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 P_HAS_SASL_SASL_H=1
4689 else
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4694 rm -f conftest.$ac_objext conftest.$ac_ext
4695 if test "${P_HAS_SASL_SASL_H}x" != "x" ; then
4696 echo "$as_me:$LINENO: result: yes" >&5
4697 echo "${ECHO_T}yes" >&6
4698 SASL_INCLUDED=1
4699 cat >>confdefs.h <<\_ACEOF
4700 #define P_HAS_SASL_SASL_H 1
4701 _ACEOF
4703 else
4704 echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6
4709 if test "${HAS_SASL2}x" != "x" ; then
4710 HAS_SASL2=1
4711 ENDLDLIBS="$ENDLDLIBS -lsasl2"
4712 cat >>confdefs.h <<\_ACEOF
4713 #define P_SASL2 1
4714 _ACEOF
4716 HAS_SASL2=1
4718 elif test "${HAS_SASL}x" != "x" ; then
4719 HAS_SASL=1
4720 ENDLDLIBS="$ENDLDLIBS -lsasl"
4721 cat >>confdefs.h <<\_ACEOF
4722 #define P_SASL 1
4723 _ACEOF
4725 HAS_SASL=1
4727 else
4728 HAS_SASL=0
4734 # Check whether --enable-openldap or --disable-openldap was given.
4735 if test "${enable_openldap+set}" = set; then
4736 enableval="$enable_openldap"
4737 openldap=$enableval
4740 if test "$openldap" = "no" ; then
4741 HAS_OPENLDAP=0
4743 cat >>confdefs.h <<\_ACEOF
4744 #define P_LDAP 0
4745 _ACEOF
4747 else
4748 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4750 for ac_header in ldap.h
4752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4754 echo "$as_me:$LINENO: checking for $ac_header" >&5
4755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4761 else
4762 # Is the header compilable?
4763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4773 #include <$ac_header>
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 (eval $ac_try) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_header_compiler=yes
4788 else
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 ac_header_compiler=no
4794 rm -f conftest.$ac_objext conftest.$ac_ext
4795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4796 echo "${ECHO_T}$ac_header_compiler" >&6
4798 # Is the header present?
4799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4801 cat >conftest.$ac_ext <<_ACEOF
4802 #line $LINENO "configure"
4803 /* confdefs.h. */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 #include <$ac_header>
4809 _ACEOF
4810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } >/dev/null; then
4818 if test -s conftest.err; then
4819 ac_cpp_err=$ac_cxx_preproc_warn_flag
4820 else
4821 ac_cpp_err=
4823 else
4824 ac_cpp_err=yes
4826 if test -z "$ac_cpp_err"; then
4827 ac_header_preproc=yes
4828 else
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4832 ac_header_preproc=no
4834 rm -f conftest.err conftest.$ac_ext
4835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4836 echo "${ECHO_T}$ac_header_preproc" >&6
4838 # So? What about this header?
4839 case $ac_header_compiler:$ac_header_preproc in
4840 yes:no )
4841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4846 cat <<\_ASBOX
4847 ## ------------------------------------ ##
4848 ## Report this to bug-autoconf@gnu.org. ##
4849 ## ------------------------------------ ##
4850 _ASBOX
4852 sed "s/^/$as_me: WARNING: /" >&2
4854 no:yes )
4855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4862 cat <<\_ASBOX
4863 ## ------------------------------------ ##
4864 ## Report this to bug-autoconf@gnu.org. ##
4865 ## ------------------------------------ ##
4866 _ASBOX
4868 sed "s/^/$as_me: WARNING: /" >&2
4870 esac
4871 echo "$as_me:$LINENO: checking for $ac_header" >&5
4872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876 eval "$as_ac_Header=$ac_header_preproc"
4878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4883 cat >>confdefs.h <<_ACEOF
4884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4885 _ACEOF
4886 HAS_OPENLDAP=1
4889 done
4892 if test "${OSTYPE:-unknown}" = "solaris"; then
4893 OPENLDAPSYSLIBS=-lposix4
4896 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4897 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4898 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4899 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902 ac_check_lib_save_LIBS=$LIBS
4903 LIBS="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4904 cat >conftest.$ac_ext <<_ACEOF
4905 #line $LINENO "configure"
4906 /* confdefs.h. */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4912 /* Override any gcc2 internal prototype to avoid an error. */
4913 #ifdef __cplusplus
4914 extern "C"
4915 #endif
4916 /* We use char because int might match the return type of a gcc2
4917 builtin and then its argument prototype would still apply. */
4918 char ldap_open ();
4920 main ()
4922 ldap_open ();
4924 return 0;
4926 _ACEOF
4927 rm -f conftest.$ac_objext conftest$ac_exeext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4929 (eval $ac_link) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try='test -s conftest$ac_exeext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_cv_lib_ldap_ldap_open=yes
4940 else
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 ac_cv_lib_ldap_ldap_open=no
4946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4947 LIBS=$ac_check_lib_save_LIBS
4949 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4950 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4951 if test $ac_cv_lib_ldap_ldap_open = yes; then
4952 HAS_OPENLDAP=1
4953 else
4954 HAS_OPENLDAP=
4957 else
4958 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
4959 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
4960 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 test "$cross_compiling" = yes &&
4964 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4965 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4966 { (exit 1); exit 1; }; }
4967 if test -r "/usr/local/include/ldap.h"; then
4968 ac_cv_file__usr_local_include_ldap_h=yes
4969 else
4970 ac_cv_file__usr_local_include_ldap_h=no
4973 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
4974 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
4975 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
4976 HAS_OPENLDAP=1
4979 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4980 OPENLDAPINCLUDEDIR=/usr/local/include
4981 OPENLDAPLIBDIR=/usr/local/lib
4982 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4983 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4984 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 ac_check_lib_save_LIBS=$LIBS
4988 LIBS="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4989 cat >conftest.$ac_ext <<_ACEOF
4990 #line $LINENO "configure"
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4997 /* Override any gcc2 internal prototype to avoid an error. */
4998 #ifdef __cplusplus
4999 extern "C"
5000 #endif
5001 /* We use char because int might match the return type of a gcc2
5002 builtin and then its argument prototype would still apply. */
5003 char ldap_open ();
5005 main ()
5007 ldap_open ();
5009 return 0;
5011 _ACEOF
5012 rm -f conftest.$ac_objext conftest$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014 (eval $ac_link) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_lib_ldap_ldap_open=yes
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5029 ac_cv_lib_ldap_ldap_open=no
5031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5032 LIBS=$ac_check_lib_save_LIBS
5034 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
5035 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
5036 if test $ac_cv_lib_ldap_ldap_open = yes; then
5037 HAS_OPENLDAP=1
5038 else
5039 HAS_OPENLDAP=
5046 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
5047 HAS_OPENLDAP=1
5050 cat >>confdefs.h <<\_ACEOF
5051 #define P_LDAP 1
5052 _ACEOF
5054 ENDLDLIBS="-lldap -lldap_r -llber $ENDLDLIBS"
5055 if test "${OPENLDAPINCLUDEDIR}unset" != "unset" ; then
5056 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
5058 if test "${OPENLDAPLIBDIR}unset" != "unset" ; then
5059 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
5067 # Check whether --enable-openssl or --disable-openssl was given.
5068 if test "${enable_openssl+set}" = set; then
5069 enableval="$enable_openssl"
5070 openssl=$enableval
5073 if test "$openssl" = "no" ; then
5074 cat >>confdefs.h <<\_ACEOF
5075 #define P_SSL 0
5076 _ACEOF
5078 HAS_OPENSSL=0
5080 else
5082 if test ${OPENSSLDIR:-unset} != "unset" ; then
5083 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
5084 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
5085 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
5086 echo "$as_me:$LINENO: result: yes" >&5
5087 echo "${ECHO_T}yes" >&6
5088 SSLHDR=1
5089 SSLINCLUDEDIR="${OPENSSLDIR}/include"
5090 SSLLIBDIR="${OPENSSLDIR}/lib"
5091 else
5092 echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5098 if test "${SSLHDR:-unset}" = "unset" ; then
5100 for ac_header in openssl/ssl.h
5102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5104 echo "$as_me:$LINENO: checking for $ac_header" >&5
5105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5111 else
5112 # Is the header compilable?
5113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5115 cat >conftest.$ac_ext <<_ACEOF
5116 #line $LINENO "configure"
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 $ac_includes_default
5123 #include <$ac_header>
5124 _ACEOF
5125 rm -f conftest.$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127 (eval $ac_compile) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_header_compiler=yes
5138 else
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 ac_header_compiler=no
5144 rm -f conftest.$ac_objext conftest.$ac_ext
5145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5146 echo "${ECHO_T}$ac_header_compiler" >&6
5148 # Is the header present?
5149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5151 cat >conftest.$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5153 /* confdefs.h. */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158 #include <$ac_header>
5159 _ACEOF
5160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null; then
5168 if test -s conftest.err; then
5169 ac_cpp_err=$ac_cxx_preproc_warn_flag
5170 else
5171 ac_cpp_err=
5173 else
5174 ac_cpp_err=yes
5176 if test -z "$ac_cpp_err"; then
5177 ac_header_preproc=yes
5178 else
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_header_preproc=no
5184 rm -f conftest.err conftest.$ac_ext
5185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5186 echo "${ECHO_T}$ac_header_preproc" >&6
5188 # So? What about this header?
5189 case $ac_header_compiler:$ac_header_preproc in
5190 yes:no )
5191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5196 cat <<\_ASBOX
5197 ## ------------------------------------ ##
5198 ## Report this to bug-autoconf@gnu.org. ##
5199 ## ------------------------------------ ##
5200 _ASBOX
5202 sed "s/^/$as_me: WARNING: /" >&2
5204 no:yes )
5205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5212 cat <<\_ASBOX
5213 ## ------------------------------------ ##
5214 ## Report this to bug-autoconf@gnu.org. ##
5215 ## ------------------------------------ ##
5216 _ASBOX
5218 sed "s/^/$as_me: WARNING: /" >&2
5220 esac
5221 echo "$as_me:$LINENO: checking for $ac_header" >&5
5222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 eval "$as_ac_Header=$ac_header_preproc"
5228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5233 cat >>confdefs.h <<_ACEOF
5234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5235 _ACEOF
5236 SSLHDR=1
5239 done
5241 if test "${SSLHDR:-unset}" = "unset" ; then
5242 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
5243 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
5244 cat >conftest.$ac_ext <<_ACEOF
5245 #define OPENSSL_NO_KRB5
5246 #include <openssl/ssl.h>
5247 int main(int argc,char **argv){}
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -s conftest.$ac_objext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 SSLHDR=1
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5267 rm -f conftest.$ac_objext conftest.$ac_ext
5268 if test ${SSLHDR:-unset} != "unset" ; then
5269 echo "$as_me:$LINENO: result: yes" >&5
5270 echo "${ECHO_T}yes" >&6
5271 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5272 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5273 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5274 else
5275 echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5281 if test "${SSLHDR:-unset}" = "unset" ; then
5283 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
5284 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
5285 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
5286 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
5287 echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6
5289 else
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #include "${openssl_dir}/include/openssl/ssl.h"
5292 int main(int argc,char **argv){ return 0; }
5293 _ACEOF
5294 $CXX $CXXFLAGS -I${openssl_dir}/include -c conftest.cc > /dev/null 2>&1
5295 if test $? = 0 ; then
5296 echo "$as_me:$LINENO: result: yes" >&5
5297 echo "${ECHO_T}yes" >&6
5298 SSLHDR=1
5299 SSLCCFLAGS=""
5300 SSLINCLUDEDIR="${openssl_dir}/include"
5301 SSLLIBDIR="${openssl_dir}/lib"
5302 break
5303 else
5304 echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6
5306 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
5307 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
5308 cat >conftest.$ac_ext <<_ACEOF
5309 #define OPENSSL_NO_KRB5
5310 #include "${openssl_dir}/include/openssl/ssl.h"
5311 int main(int argc,char **argv){}
5312 _ACEOF
5313 $CXX $CXXFLAGS -I${openssl_dir}/openssl/include -c conftest.cc > /dev/null 2>&1
5314 if test $? = 0 ; then
5315 echo "$as_me:$LINENO: result: yes" >&5
5316 echo "${ECHO_T}yes" >&6
5317 SSLHDR=1
5318 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5319 SSLINCLUDEDIR="${openssl_dir}/include"
5320 SSLLIBDIR="${openssl_dir}/lib"
5321 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5322 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5323 break
5324 else
5325 echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5330 done
5333 if test ${SSLHDR:-unset} != "unset" ; then
5334 HAS_OPENSSL=1
5337 cat >>confdefs.h <<\_ACEOF
5338 #define P_SSL 1
5339 _ACEOF
5341 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
5342 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
5344 if test ${SSLLIBDIR:-unset} != "unset" ; then
5345 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
5347 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
5348 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
5357 # Check whether --enable-expat or --disable-expat was given.
5358 if test "${enable_expat+set}" = set; then
5359 enableval="$enable_expat"
5360 expat=$enableval
5363 if test "$expat" = "no" ; then
5364 HAS_EXPAT=0
5366 cat >>confdefs.h <<\_ACEOF
5367 #define P_EXPAT 0
5368 _ACEOF
5370 else
5373 for ac_header in expat.h
5375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5377 echo "$as_me:$LINENO: checking for $ac_header" >&5
5378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5384 else
5385 # Is the header compilable?
5386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5396 #include <$ac_header>
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_header_compiler=yes
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 ac_header_compiler=no
5417 rm -f conftest.$ac_objext conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5419 echo "${ECHO_T}$ac_header_compiler" >&6
5421 # Is the header present?
5422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5424 cat >conftest.$ac_ext <<_ACEOF
5425 #line $LINENO "configure"
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <$ac_header>
5432 _ACEOF
5433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5435 ac_status=$?
5436 grep -v '^ *+' conftest.er1 >conftest.err
5437 rm -f conftest.er1
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } >/dev/null; then
5441 if test -s conftest.err; then
5442 ac_cpp_err=$ac_cxx_preproc_warn_flag
5443 else
5444 ac_cpp_err=
5446 else
5447 ac_cpp_err=yes
5449 if test -z "$ac_cpp_err"; then
5450 ac_header_preproc=yes
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 ac_header_preproc=no
5457 rm -f conftest.err conftest.$ac_ext
5458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5459 echo "${ECHO_T}$ac_header_preproc" >&6
5461 # So? What about this header?
5462 case $ac_header_compiler:$ac_header_preproc in
5463 yes:no )
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5469 cat <<\_ASBOX
5470 ## ------------------------------------ ##
5471 ## Report this to bug-autoconf@gnu.org. ##
5472 ## ------------------------------------ ##
5473 _ASBOX
5475 sed "s/^/$as_me: WARNING: /" >&2
5477 no:yes )
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5485 cat <<\_ASBOX
5486 ## ------------------------------------ ##
5487 ## Report this to bug-autoconf@gnu.org. ##
5488 ## ------------------------------------ ##
5489 _ASBOX
5491 sed "s/^/$as_me: WARNING: /" >&2
5493 esac
5494 echo "$as_me:$LINENO: checking for $ac_header" >&5
5495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 eval "$as_ac_Header=$ac_header_preproc"
5501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5506 cat >>confdefs.h <<_ACEOF
5507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5508 _ACEOF
5509 HAS_EXPAT=1
5512 done
5514 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5515 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
5516 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
5517 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520 ac_check_lib_save_LIBS=$LIBS
5521 LIBS="-lexpat $LIBS"
5522 cat >conftest.$ac_ext <<_ACEOF
5523 #line $LINENO "configure"
5524 /* confdefs.h. */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5530 /* Override any gcc2 internal prototype to avoid an error. */
5531 #ifdef __cplusplus
5532 extern "C"
5533 #endif
5534 /* We use char because int might match the return type of a gcc2
5535 builtin and then its argument prototype would still apply. */
5536 char XML_ParserCreate ();
5538 main ()
5540 XML_ParserCreate ();
5542 return 0;
5544 _ACEOF
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5547 (eval $ac_link) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try='test -s conftest$ac_exeext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 (eval $ac_try) 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_lib_expat_XML_ParserCreate=yes
5558 else
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 ac_cv_lib_expat_XML_ParserCreate=no
5564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5565 LIBS=$ac_check_lib_save_LIBS
5567 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5568 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
5569 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
5570 HAS_EXPAT=1
5571 else
5572 HAS_EXPAT=
5575 else
5576 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
5577 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
5578 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581 test "$cross_compiling" = yes &&
5582 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5583 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5584 { (exit 1); exit 1; }; }
5585 if test -r "/usr/local/include/expat.h"; then
5586 ac_cv_file__usr_local_include_expat_h=yes
5587 else
5588 ac_cv_file__usr_local_include_expat_h=no
5591 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
5592 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
5593 if test $ac_cv_file__usr_local_include_expat_h = yes; then
5594 HAS_EXPAT=1
5597 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5598 EXPATINCLUDEDIR=/usr/local/include
5599 EXPATLIBDIR=/usr/local/lib
5603 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5604 HAS_EXPAT=1
5607 cat >>confdefs.h <<\_ACEOF
5608 #define P_EXPAT 1
5609 _ACEOF
5611 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
5612 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
5614 if test ${EXPATLIBDIR:-unset} != "unset" ; then
5615 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
5617 ENDLDLIBS="$ENDLDLIBS -lexpat"
5627 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5628 if test "${enable_ipv6+set}" = set; then
5629 enableval="$enable_ipv6"
5630 ipv6=$enableval
5633 if test "$ipv6" = "no" ; then
5634 cat >>confdefs.h <<\_ACEOF
5635 #define P_HAS_IPV6 0
5636 _ACEOF
5638 HAS_IPV6=0
5640 else
5641 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
5642 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
5643 if test "${HAS_IPV6+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <sys/types.h>
5654 #include <netinet/in.h>
5656 main ()
5658 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5660 return 0;
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -s conftest.$ac_objext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 HAS_IPV6=yes
5676 else
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 HAS_IPV6=no
5682 rm -f conftest.$ac_objext conftest.$ac_ext
5684 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
5685 echo "${ECHO_T}$HAS_IPV6" >&6
5687 if test $HAS_IPV6 = yes ; then
5689 cat >>confdefs.h <<\_ACEOF
5690 #define P_HAS_IPV6 1
5691 _ACEOF
5698 # Check whether --enable-qos or --disable-qos was given.
5699 if test "${enable_qos+set}" = set; then
5700 enableval="$enable_qos"
5701 qos=$enableval
5704 if test "$qos" = "no" ; then
5706 cat >>confdefs.h <<\_ACEOF
5707 #define P_HAS_QOS 0
5708 _ACEOF
5710 else
5712 cat >>confdefs.h <<\_ACEOF
5713 #define P_HAS_QOS 1
5714 _ACEOF
5721 # Check whether --enable-sdl or --disable-sdl was given.
5722 if test "${enable_sdl+set}" = set; then
5723 enableval="$enable_sdl"
5724 sdl=$enableval
5727 if test "$sdl" = "no" ; then
5728 HAS_SDL=0
5730 cat >>confdefs.h <<\_ACEOF
5731 #define P_SDL 0
5732 _ACEOF
5734 else
5735 if test "${SDLLIB:-unset}" = "unset" ; then
5736 SDLLIB=SDL
5740 for ac_header in SDL/SDL.h
5742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5744 echo "$as_me:$LINENO: checking for $ac_header" >&5
5745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5751 else
5752 # Is the header compilable?
5753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 $ac_includes_default
5763 #include <$ac_header>
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -s conftest.$ac_objext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_header_compiler=yes
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 ac_header_compiler=no
5784 rm -f conftest.$ac_objext conftest.$ac_ext
5785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5786 echo "${ECHO_T}$ac_header_compiler" >&6
5788 # Is the header present?
5789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 #include <$ac_header>
5799 _ACEOF
5800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } >/dev/null; then
5808 if test -s conftest.err; then
5809 ac_cpp_err=$ac_cxx_preproc_warn_flag
5810 else
5811 ac_cpp_err=
5813 else
5814 ac_cpp_err=yes
5816 if test -z "$ac_cpp_err"; then
5817 ac_header_preproc=yes
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5822 ac_header_preproc=no
5824 rm -f conftest.err conftest.$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5826 echo "${ECHO_T}$ac_header_preproc" >&6
5828 # So? What about this header?
5829 case $ac_header_compiler:$ac_header_preproc in
5830 yes:no )
5831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5836 cat <<\_ASBOX
5837 ## ------------------------------------ ##
5838 ## Report this to bug-autoconf@gnu.org. ##
5839 ## ------------------------------------ ##
5840 _ASBOX
5842 sed "s/^/$as_me: WARNING: /" >&2
5844 no:yes )
5845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5852 cat <<\_ASBOX
5853 ## ------------------------------------ ##
5854 ## Report this to bug-autoconf@gnu.org. ##
5855 ## ------------------------------------ ##
5856 _ASBOX
5858 sed "s/^/$as_me: WARNING: /" >&2
5860 esac
5861 echo "$as_me:$LINENO: checking for $ac_header" >&5
5862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 eval "$as_ac_Header=$ac_header_preproc"
5868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5873 cat >>confdefs.h <<_ACEOF
5874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5875 _ACEOF
5876 HAS_SDL=1
5879 done
5881 if test "${HAS_SDL:-unset}" != "unset" ; then
5882 if test "${X11LIBDIR:-unset}" == "unset" ; then
5883 X11LIBDIR=/usr/X11R6/lib
5885 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5886 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5887 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 ac_check_lib_save_LIBS=$LIBS
5891 LIBS="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext -laa $LIBS"
5892 cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5900 /* Override any gcc2 internal prototype to avoid an error. */
5901 #ifdef __cplusplus
5902 extern "C"
5903 #endif
5904 /* We use char because int might match the return type of a gcc2
5905 builtin and then its argument prototype would still apply. */
5906 char SDL_CreateYUVOverlay ();
5908 main ()
5910 SDL_CreateYUVOverlay ();
5912 return 0;
5914 _ACEOF
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917 (eval $ac_link) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try='test -s conftest$ac_exeext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
5934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5935 LIBS=$ac_check_lib_save_LIBS
5937 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5938 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5939 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5940 HAS_SDL=1
5941 else
5942 HAS_SDL=
5947 if test "${HAS_SDL:-unset}" = "unset" ; then
5948 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5949 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5950 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 test "$cross_compiling" = yes &&
5954 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5955 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5956 { (exit 1); exit 1; }; }
5957 if test -r "/usr/local/include/SDL11/SDL.h"; then
5958 ac_cv_file__usr_local_include_SDL11_SDL_h=yes
5959 else
5960 ac_cv_file__usr_local_include_SDL11_SDL_h=no
5963 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
5964 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
5965 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
5966 HAS_SDL=1
5969 if test "${HAS_SDL:-unset}" != "unset" ; then
5970 SDLLIB=SDL-1.1
5974 if test "${HAS_SDL:-unset}" != "unset" ; then
5975 HAS_SDL=1
5978 cat >>confdefs.h <<\_ACEOF
5979 #define P_SDL 1
5980 _ACEOF
5982 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
5983 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
5985 if test ${SDLLIBDIR:-unset} != "unset" ; then
5986 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
5988 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
5994 # Check whether --enable-video or --disable-video was given.
5995 if test "${enable_video+set}" = set; then
5996 enableval="$enable_video"
5997 video=$enableval
6000 HAS_VIDEO_CAPTURE=0
6001 if test "$HAS_PLUGINS" = "0" ; then
6002 if test "$video" != "no" ; then
6003 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6004 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6005 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6006 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6010 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6011 else
6012 # Is the header compilable?
6013 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
6014 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 $ac_includes_default
6023 #include <linux/videodev.h>
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } &&
6031 { ac_try='test -s conftest.$ac_objext'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6037 ac_header_compiler=yes
6038 else
6039 echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6042 ac_header_compiler=no
6044 rm -f conftest.$ac_objext conftest.$ac_ext
6045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6046 echo "${ECHO_T}$ac_header_compiler" >&6
6048 # Is the header present?
6049 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
6050 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
6051 cat >conftest.$ac_ext <<_ACEOF
6052 #line $LINENO "configure"
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #include <linux/videodev.h>
6059 _ACEOF
6060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } >/dev/null; then
6068 if test -s conftest.err; then
6069 ac_cpp_err=$ac_cxx_preproc_warn_flag
6070 else
6071 ac_cpp_err=
6073 else
6074 ac_cpp_err=yes
6076 if test -z "$ac_cpp_err"; then
6077 ac_header_preproc=yes
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6082 ac_header_preproc=no
6084 rm -f conftest.err conftest.$ac_ext
6085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6086 echo "${ECHO_T}$ac_header_preproc" >&6
6088 # So? What about this header?
6089 case $ac_header_compiler:$ac_header_preproc in
6090 yes:no )
6091 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6092 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6094 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6096 cat <<\_ASBOX
6097 ## ------------------------------------ ##
6098 ## Report this to bug-autoconf@gnu.org. ##
6099 ## ------------------------------------ ##
6100 _ASBOX
6102 sed "s/^/$as_me: WARNING: /" >&2
6104 no:yes )
6105 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
6106 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
6107 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
6108 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
6109 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6110 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6112 cat <<\_ASBOX
6113 ## ------------------------------------ ##
6114 ## Report this to bug-autoconf@gnu.org. ##
6115 ## ------------------------------------ ##
6116 _ASBOX
6118 sed "s/^/$as_me: WARNING: /" >&2
6120 esac
6121 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6122 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6123 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 ac_cv_header_linux_videodev_h=$ac_header_preproc
6128 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6129 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6132 if test $ac_cv_header_linux_videodev_h = yes; then
6133 HAS_VIDEO_CAPTURE=1
6137 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
6138 { echo "$as_me:$LINENO: No Video Capture support" >&5
6139 echo "$as_me: No Video Capture support" >&6;}
6141 cat >>confdefs.h <<\_ACEOF
6142 #define NO_VIDEO_CAPTURE
6143 _ACEOF
6150 # Check whether --enable-alsa or --disable-alsa was given.
6151 if test "${enable_alsa+set}" = set; then
6152 enableval="$enable_alsa"
6153 enable_alsa=$enableval
6156 HAS_ALSA=0
6157 if test "$HAS_PLUGINS" = "0" ; then
6158 if test "$enable_alsa" != "no" ; then
6159 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6160 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6161 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6162 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6166 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6167 else
6168 # Is the header compilable?
6169 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
6170 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
6171 cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 $ac_includes_default
6179 #include <alsa/asoundlib.h>
6180 _ACEOF
6181 rm -f conftest.$ac_objext
6182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6183 (eval $ac_compile) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -s conftest.$ac_objext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_header_compiler=yes
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 ac_header_compiler=no
6200 rm -f conftest.$ac_objext conftest.$ac_ext
6201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6202 echo "${ECHO_T}$ac_header_compiler" >&6
6204 # Is the header present?
6205 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
6206 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
6207 cat >conftest.$ac_ext <<_ACEOF
6208 #line $LINENO "configure"
6209 /* confdefs.h. */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 #include <alsa/asoundlib.h>
6215 _ACEOF
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } >/dev/null; then
6224 if test -s conftest.err; then
6225 ac_cpp_err=$ac_cxx_preproc_warn_flag
6226 else
6227 ac_cpp_err=
6229 else
6230 ac_cpp_err=yes
6232 if test -z "$ac_cpp_err"; then
6233 ac_header_preproc=yes
6234 else
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 ac_header_preproc=no
6240 rm -f conftest.err conftest.$ac_ext
6241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6242 echo "${ECHO_T}$ac_header_preproc" >&6
6244 # So? What about this header?
6245 case $ac_header_compiler:$ac_header_preproc in
6246 yes:no )
6247 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6248 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6250 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6252 cat <<\_ASBOX
6253 ## ------------------------------------ ##
6254 ## Report this to bug-autoconf@gnu.org. ##
6255 ## ------------------------------------ ##
6256 _ASBOX
6258 sed "s/^/$as_me: WARNING: /" >&2
6260 no:yes )
6261 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
6262 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
6263 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6264 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6266 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6268 cat <<\_ASBOX
6269 ## ------------------------------------ ##
6270 ## Report this to bug-autoconf@gnu.org. ##
6271 ## ------------------------------------ ##
6272 _ASBOX
6274 sed "s/^/$as_me: WARNING: /" >&2
6276 esac
6277 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6278 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6279 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
6284 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6285 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6288 if test $ac_cv_header_alsa_asoundlib_h = yes; then
6289 HAS_ALSA=1
6293 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
6294 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
6295 if test "${HAS_ALSA}" = "1"; then
6296 echo "$as_me:$LINENO: result: yes" >&5
6297 echo "${ECHO_T}yes" >&6
6298 ENDLDLIBS="$ENDLDLIBS -lasound"
6299 else
6300 echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6
6307 if test "$OSTYPE" = "solaris" ; then
6308 USE_SYSTEM_SWAB=
6309 else
6310 echo "$as_me:$LINENO: checking for swab" >&5
6311 echo $ECHO_N "checking for swab... $ECHO_C" >&6
6312 if test "${ac_cv_func_swab+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315 cat >conftest.$ac_ext <<_ACEOF
6316 #line $LINENO "configure"
6317 /* confdefs.h. */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 /* System header to define __stub macros and hopefully few prototypes,
6323 which can conflict with char swab (); below.
6324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6325 <limits.h> exists even on freestanding compilers. */
6326 #ifdef __STDC__
6327 # include <limits.h>
6328 #else
6329 # include <assert.h>
6330 #endif
6331 /* Override any gcc2 internal prototype to avoid an error. */
6332 #ifdef __cplusplus
6333 extern "C"
6335 #endif
6336 /* We use char because int might match the return type of a gcc2
6337 builtin and then its argument prototype would still apply. */
6338 char swab ();
6339 /* The GNU C library defines this for functions which it implements
6340 to always fail with ENOSYS. Some functions are actually named
6341 something starting with __ and the normal name is an alias. */
6342 #if defined (__stub_swab) || defined (__stub___swab)
6343 choke me
6344 #else
6345 char (*f) () = swab;
6346 #endif
6347 #ifdef __cplusplus
6349 #endif
6352 main ()
6354 return f != swab;
6356 return 0;
6358 _ACEOF
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_func_swab=yes
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_cv_func_swab=no
6378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6380 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
6381 echo "${ECHO_T}$ac_cv_func_swab" >&6
6382 if test $ac_cv_func_swab = yes; then
6383 USE_SYSTEM_SWAB=1
6387 if test "x$ac_cv_func_swab" = "xyes" ; then
6389 cat >>confdefs.h <<\_ACEOF
6390 #define USE_SYSTEM_SWAB
6391 _ACEOF
6396 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
6397 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
6398 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
6402 if test "${OSTYPE}" != "Darwin" ; then
6403 if test ${HAS_LIBDL} = yes ; then
6404 ENDLDLIBS="$ENDLDLIBS -ldl"
6413 # Find a good install program. We prefer a C program (faster),
6414 # so one script is as good as another. But avoid the broken or
6415 # incompatible versions:
6416 # SysV /etc/install, /usr/sbin/install
6417 # SunOS /usr/etc/install
6418 # IRIX /sbin/install
6419 # AIX /bin/install
6420 # AmigaOS /C/install, which installs bootblocks on floppy discs
6421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6424 # ./install, which can be erroneously created by make from ./install.sh.
6425 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6426 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6427 if test -z "$INSTALL"; then
6428 if test "${ac_cv_path_install+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 # Account for people who put trailing slashes in PATH elements.
6437 case $as_dir/ in
6438 ./ | .// | /cC/* | \
6439 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6440 /usr/ucb/* ) ;;
6442 # OSF1 and SCO ODT 3.0 have their own names for install.
6443 # Don't use installbsd from OSF since it installs stuff as root
6444 # by default.
6445 for ac_prog in ginstall scoinst install; do
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6448 if test $ac_prog = install &&
6449 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6450 # AIX install. It has an incompatible calling convention.
6452 elif test $ac_prog = install &&
6453 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6454 # program-specific install script used by HP pwplus--don't use.
6456 else
6457 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6458 break 3
6461 done
6462 done
6464 esac
6465 done
6469 if test "${ac_cv_path_install+set}" = set; then
6470 INSTALL=$ac_cv_path_install
6471 else
6472 # As a last resort, use the slow shell script. We don't cache a
6473 # path for INSTALL within a source directory, because that will
6474 # break other packages using the cache if that directory is
6475 # removed, or if the path is relative.
6476 INSTALL=$ac_install_sh
6479 echo "$as_me:$LINENO: result: $INSTALL" >&5
6480 echo "${ECHO_T}$INSTALL" >&6
6482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6483 # It thinks the first close brace ends the variable substitution.
6484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6488 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6491 ac_config_files="$ac_config_files make/ptbuildopts.mak"
6493 ac_config_files="$ac_config_files make/ptlib-config"
6495 ac_config_files="$ac_config_files Makefile"
6498 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
6499 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
6502 cat >confcache <<\_ACEOF
6503 # This file is a shell script that caches the results of configure
6504 # tests run on this system so they can be shared between configure
6505 # scripts and configure runs, see configure's option --config-cache.
6506 # It is not useful on other systems. If it contains results you don't
6507 # want to keep, you may remove or edit it.
6509 # config.status only pays attention to the cache file if you give it
6510 # the --recheck option to rerun configure.
6512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6514 # following values.
6516 _ACEOF
6518 # The following way of writing the cache mishandles newlines in values,
6519 # but we know of no workaround that is simple, portable, and efficient.
6520 # So, don't put newlines in cache variables' values.
6521 # Ultrix sh set writes to stderr and can't be redirected directly,
6522 # and sets the high bit in the cache file unless we assign to the vars.
6524 (set) 2>&1 |
6525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6526 *ac_space=\ *)
6527 # `set' does not quote correctly, so add quotes (double-quote
6528 # substitution turns \\\\ into \\, and sed turns \\ into \).
6529 sed -n \
6530 "s/'/'\\\\''/g;
6531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6534 # `set' quotes correctly as required by POSIX, so do not add quotes.
6535 sed -n \
6536 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6538 esac;
6540 sed '
6541 t clear
6542 : clear
6543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6544 t end
6545 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6546 : end' >>confcache
6547 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6548 if test -w $cache_file; then
6549 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6550 cat confcache >$cache_file
6551 else
6552 echo "not updating unwritable cache $cache_file"
6555 rm -f confcache
6557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6558 # Let make expand exec_prefix.
6559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6561 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6562 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6563 # trailing colons and then remove the whole line if VPATH becomes empty
6564 # (actually we leave an empty line to preserve line numbers).
6565 if test "x$srcdir" = x.; then
6566 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6567 s/:*\$(srcdir):*/:/;
6568 s/:*\${srcdir}:*/:/;
6569 s/:*@srcdir@:*/:/;
6570 s/^\([^=]*=[ ]*\):*/\1/;
6571 s/:*$//;
6572 s/^[^=]*=[ ]*$//;
6576 DEFS=-DHAVE_CONFIG_H
6578 ac_libobjs=
6579 ac_ltlibobjs=
6580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6581 # 1. Remove the extension, and $U if already installed.
6582 ac_i=`echo "$ac_i" |
6583 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6584 # 2. Add them.
6585 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6586 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6587 done
6588 LIBOBJS=$ac_libobjs
6590 LTLIBOBJS=$ac_ltlibobjs
6594 : ${CONFIG_STATUS=./config.status}
6595 ac_clean_files_save=$ac_clean_files
6596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6597 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6598 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6599 cat >$CONFIG_STATUS <<_ACEOF
6600 #! $SHELL
6601 # Generated by $as_me.
6602 # Run this file to recreate the current configuration.
6603 # Compiler output produced by configure, useful for debugging
6604 # configure, is in config.log if it exists.
6606 debug=false
6607 ac_cs_recheck=false
6608 ac_cs_silent=false
6609 SHELL=\${CONFIG_SHELL-$SHELL}
6610 _ACEOF
6612 cat >>$CONFIG_STATUS <<\_ACEOF
6613 ## --------------------- ##
6614 ## M4sh Initialization. ##
6615 ## --------------------- ##
6617 # Be Bourne compatible
6618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6619 emulate sh
6620 NULLCMD=:
6621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6622 # is contrary to our usage. Disable this feature.
6623 alias -g '${1+"$@"}'='"$@"'
6624 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6625 set -o posix
6628 # Support unset when possible.
6629 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6630 as_unset=unset
6631 else
6632 as_unset=false
6636 # Work around bugs in pre-3.0 UWIN ksh.
6637 $as_unset ENV MAIL MAILPATH
6638 PS1='$ '
6639 PS2='> '
6640 PS4='+ '
6642 # NLS nuisances.
6643 for as_var in \
6644 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6645 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6646 LC_TELEPHONE LC_TIME
6648 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6649 eval $as_var=C; export $as_var
6650 else
6651 $as_unset $as_var
6653 done
6655 # Required to use basename.
6656 if expr a : '\(a\)' >/dev/null 2>&1; then
6657 as_expr=expr
6658 else
6659 as_expr=false
6662 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6663 as_basename=basename
6664 else
6665 as_basename=false
6669 # Name of the executable.
6670 as_me=`$as_basename "$0" ||
6671 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6672 X"$0" : 'X\(//\)$' \| \
6673 X"$0" : 'X\(/\)$' \| \
6674 . : '\(.\)' 2>/dev/null ||
6675 echo X/"$0" |
6676 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6677 /^X\/\(\/\/\)$/{ s//\1/; q; }
6678 /^X\/\(\/\).*/{ s//\1/; q; }
6679 s/.*/./; q'`
6682 # PATH needs CR, and LINENO needs CR and PATH.
6683 # Avoid depending upon Character Ranges.
6684 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6685 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6686 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6687 as_cr_digits='0123456789'
6688 as_cr_alnum=$as_cr_Letters$as_cr_digits
6690 # The user is always right.
6691 if test "${PATH_SEPARATOR+set}" != set; then
6692 echo "#! /bin/sh" >conf$$.sh
6693 echo "exit 0" >>conf$$.sh
6694 chmod +x conf$$.sh
6695 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6696 PATH_SEPARATOR=';'
6697 else
6698 PATH_SEPARATOR=:
6700 rm -f conf$$.sh
6704 as_lineno_1=$LINENO
6705 as_lineno_2=$LINENO
6706 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6707 test "x$as_lineno_1" != "x$as_lineno_2" &&
6708 test "x$as_lineno_3" = "x$as_lineno_2" || {
6709 # Find who we are. Look in the path if we contain no path at all
6710 # relative or not.
6711 case $0 in
6712 *[\\/]* ) as_myself=$0 ;;
6713 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6719 done
6722 esac
6723 # We did not find ourselves, most probably we were run as `sh COMMAND'
6724 # in which case we are not to be found in the path.
6725 if test "x$as_myself" = x; then
6726 as_myself=$0
6728 if test ! -f "$as_myself"; then
6729 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6730 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6731 { (exit 1); exit 1; }; }
6733 case $CONFIG_SHELL in
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for as_base in sh bash ksh sh5; do
6741 case $as_dir in
6743 if ("$as_dir/$as_base" -c '
6744 as_lineno_1=$LINENO
6745 as_lineno_2=$LINENO
6746 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6747 test "x$as_lineno_1" != "x$as_lineno_2" &&
6748 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6749 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6750 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6751 CONFIG_SHELL=$as_dir/$as_base
6752 export CONFIG_SHELL
6753 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6754 fi;;
6755 esac
6756 done
6757 done
6759 esac
6761 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6762 # uniformly replaced by the line number. The first 'sed' inserts a
6763 # line-number line before each line; the second 'sed' does the real
6764 # work. The second script uses 'N' to pair each line-number line
6765 # with the numbered line, and appends trailing '-' during
6766 # substitution so that $LINENO is not a special case at line end.
6767 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6768 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6769 sed '=' <$as_myself |
6770 sed '
6772 s,$,-,
6773 : loop
6774 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6775 t loop
6776 s,-$,,
6777 s,^['$as_cr_digits']*\n,,
6778 ' >$as_me.lineno &&
6779 chmod +x $as_me.lineno ||
6780 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6781 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6782 { (exit 1); exit 1; }; }
6784 # Don't try to exec as it changes $[0], causing all sort of problems
6785 # (the dirname of $[0] is not the place where we might find the
6786 # original and so on. Autoconf is especially sensible to this).
6787 . ./$as_me.lineno
6788 # Exit status is that of the last command.
6789 exit
6793 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6794 *c*,-n*) ECHO_N= ECHO_C='
6795 ' ECHO_T=' ' ;;
6796 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6797 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6798 esac
6800 if expr a : '\(a\)' >/dev/null 2>&1; then
6801 as_expr=expr
6802 else
6803 as_expr=false
6806 rm -f conf$$ conf$$.exe conf$$.file
6807 echo >conf$$.file
6808 if ln -s conf$$.file conf$$ 2>/dev/null; then
6809 # We could just check for DJGPP; but this test a) works b) is more generic
6810 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6811 if test -f conf$$.exe; then
6812 # Don't use ln at all; we don't have any links
6813 as_ln_s='cp -p'
6814 else
6815 as_ln_s='ln -s'
6817 elif ln conf$$.file conf$$ 2>/dev/null; then
6818 as_ln_s=ln
6819 else
6820 as_ln_s='cp -p'
6822 rm -f conf$$ conf$$.exe conf$$.file
6824 if mkdir -p . 2>/dev/null; then
6825 as_mkdir_p=:
6826 else
6827 as_mkdir_p=false
6830 as_executable_p="test -f"
6832 # Sed expression to map a string onto a valid CPP name.
6833 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6835 # Sed expression to map a string onto a valid variable name.
6836 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6839 # IFS
6840 # We need space, tab and new line, in precisely that order.
6841 as_nl='
6843 IFS=" $as_nl"
6845 # CDPATH.
6846 $as_unset CDPATH
6848 exec 6>&1
6850 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6851 # report actual input values of CONFIG_FILES etc. instead of their
6852 # values after options handling. Logging --version etc. is OK.
6853 exec 5>>config.log
6855 echo
6856 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6857 ## Running $as_me. ##
6858 _ASBOX
6859 } >&5
6860 cat >&5 <<_CSEOF
6862 This file was extended by $as_me, which was
6863 generated by GNU Autoconf 2.57. Invocation command line was
6865 CONFIG_FILES = $CONFIG_FILES
6866 CONFIG_HEADERS = $CONFIG_HEADERS
6867 CONFIG_LINKS = $CONFIG_LINKS
6868 CONFIG_COMMANDS = $CONFIG_COMMANDS
6869 $ $0 $@
6871 _CSEOF
6872 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6873 echo >&5
6874 _ACEOF
6876 # Files that config.status was made for.
6877 if test -n "$ac_config_files"; then
6878 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6881 if test -n "$ac_config_headers"; then
6882 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6885 if test -n "$ac_config_links"; then
6886 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6889 if test -n "$ac_config_commands"; then
6890 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6893 cat >>$CONFIG_STATUS <<\_ACEOF
6895 ac_cs_usage="\
6896 \`$as_me' instantiates files from templates according to the
6897 current configuration.
6899 Usage: $0 [OPTIONS] [FILE]...
6901 -h, --help print this help, then exit
6902 -V, --version print version number, then exit
6903 -q, --quiet do not print progress messages
6904 -d, --debug don't remove temporary files
6905 --recheck update $as_me by reconfiguring in the same conditions
6906 --file=FILE[:TEMPLATE]
6907 instantiate the configuration file FILE
6908 --header=FILE[:TEMPLATE]
6909 instantiate the configuration header FILE
6911 Configuration files:
6912 $config_files
6914 Configuration headers:
6915 $config_headers
6917 Report bugs to <bug-autoconf@gnu.org>."
6918 _ACEOF
6920 cat >>$CONFIG_STATUS <<_ACEOF
6921 ac_cs_version="\\
6922 config.status
6923 configured by $0, generated by GNU Autoconf 2.57,
6924 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6926 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6927 Free Software Foundation, Inc.
6928 This config.status script is free software; the Free Software Foundation
6929 gives unlimited permission to copy, distribute and modify it."
6930 srcdir=$srcdir
6931 INSTALL="$INSTALL"
6932 _ACEOF
6934 cat >>$CONFIG_STATUS <<\_ACEOF
6935 # If no file are specified by the user, then we need to provide default
6936 # value. By we need to know if files were specified by the user.
6937 ac_need_defaults=:
6938 while test $# != 0
6940 case $1 in
6941 --*=*)
6942 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6943 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6944 ac_shift=:
6947 ac_option=$1
6948 ac_optarg=$2
6949 ac_shift=shift
6951 *) # This is not an option, so the user has probably given explicit
6952 # arguments.
6953 ac_option=$1
6954 ac_need_defaults=false;;
6955 esac
6957 case $ac_option in
6958 # Handling of the options.
6959 _ACEOF
6960 cat >>$CONFIG_STATUS <<\_ACEOF
6961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6962 ac_cs_recheck=: ;;
6963 --version | --vers* | -V )
6964 echo "$ac_cs_version"; exit 0 ;;
6965 --he | --h)
6966 # Conflict between --help and --header
6967 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6968 Try \`$0 --help' for more information." >&5
6969 echo "$as_me: error: ambiguous option: $1
6970 Try \`$0 --help' for more information." >&2;}
6971 { (exit 1); exit 1; }; };;
6972 --help | --hel | -h )
6973 echo "$ac_cs_usage"; exit 0 ;;
6974 --debug | --d* | -d )
6975 debug=: ;;
6976 --file | --fil | --fi | --f )
6977 $ac_shift
6978 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6979 ac_need_defaults=false;;
6980 --header | --heade | --head | --hea )
6981 $ac_shift
6982 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6983 ac_need_defaults=false;;
6984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6985 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6986 ac_cs_silent=: ;;
6988 # This is an error.
6989 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6990 Try \`$0 --help' for more information." >&5
6991 echo "$as_me: error: unrecognized option: $1
6992 Try \`$0 --help' for more information." >&2;}
6993 { (exit 1); exit 1; }; } ;;
6995 *) ac_config_targets="$ac_config_targets $1" ;;
6997 esac
6998 shift
6999 done
7001 ac_configure_extra_args=
7003 if $ac_cs_silent; then
7004 exec 6>/dev/null
7005 ac_configure_extra_args="$ac_configure_extra_args --silent"
7008 _ACEOF
7009 cat >>$CONFIG_STATUS <<_ACEOF
7010 if \$ac_cs_recheck; then
7011 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7012 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7015 _ACEOF
7021 cat >>$CONFIG_STATUS <<\_ACEOF
7022 for ac_config_target in $ac_config_targets
7024 case "$ac_config_target" in
7025 # Handling of arguments.
7026 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
7027 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
7028 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7029 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
7030 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7031 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7032 { (exit 1); exit 1; }; };;
7033 esac
7034 done
7036 # If the user did not use the arguments to specify the items to instantiate,
7037 # then the envvar interface is used. Set only those that are not.
7038 # We use the long form for the default assignment because of an extremely
7039 # bizarre bug on SunOS 4.1.3.
7040 if $ac_need_defaults; then
7041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7042 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7045 # Have a temporary directory for convenience. Make it in the build tree
7046 # simply because there is no reason to put it here, and in addition,
7047 # creating and moving files from /tmp can sometimes cause problems.
7048 # Create a temporary directory, and hook for its removal unless debugging.
7049 $debug ||
7051 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7052 trap '{ (exit 1); exit 1; }' 1 2 13 15
7055 # Create a (secure) tmp directory for tmp files.
7058 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7059 test -n "$tmp" && test -d "$tmp"
7060 } ||
7062 tmp=./confstat$$-$RANDOM
7063 (umask 077 && mkdir $tmp)
7064 } ||
7066 echo "$me: cannot create a temporary directory in ." >&2
7067 { (exit 1); exit 1; }
7070 _ACEOF
7072 cat >>$CONFIG_STATUS <<_ACEOF
7075 # CONFIG_FILES section.
7078 # No need to generate the scripts if there are no CONFIG_FILES.
7079 # This happens for instance when ./config.status config.h
7080 if test -n "\$CONFIG_FILES"; then
7081 # Protect against being on the right side of a sed subst in config.status.
7082 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7083 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7084 s,@SHELL@,$SHELL,;t t
7085 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7086 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7087 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7088 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7089 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7090 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7091 s,@exec_prefix@,$exec_prefix,;t t
7092 s,@prefix@,$prefix,;t t
7093 s,@program_transform_name@,$program_transform_name,;t t
7094 s,@bindir@,$bindir,;t t
7095 s,@sbindir@,$sbindir,;t t
7096 s,@libexecdir@,$libexecdir,;t t
7097 s,@datadir@,$datadir,;t t
7098 s,@sysconfdir@,$sysconfdir,;t t
7099 s,@sharedstatedir@,$sharedstatedir,;t t
7100 s,@localstatedir@,$localstatedir,;t t
7101 s,@libdir@,$libdir,;t t
7102 s,@includedir@,$includedir,;t t
7103 s,@oldincludedir@,$oldincludedir,;t t
7104 s,@infodir@,$infodir,;t t
7105 s,@mandir@,$mandir,;t t
7106 s,@build_alias@,$build_alias,;t t
7107 s,@host_alias@,$host_alias,;t t
7108 s,@target_alias@,$target_alias,;t t
7109 s,@DEFS@,$DEFS,;t t
7110 s,@ECHO_C@,$ECHO_C,;t t
7111 s,@ECHO_N@,$ECHO_N,;t t
7112 s,@ECHO_T@,$ECHO_T,;t t
7113 s,@LIBS@,$LIBS,;t t
7114 s,@subdirs@,$subdirs,;t t
7115 s,@CXX@,$CXX,;t t
7116 s,@CXXFLAGS@,$CXXFLAGS,;t t
7117 s,@LDFLAGS@,$LDFLAGS,;t t
7118 s,@CPPFLAGS@,$CPPFLAGS,;t t
7119 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7120 s,@EXEEXT@,$EXEEXT,;t t
7121 s,@OBJEXT@,$OBJEXT,;t t
7122 s,@PWLIBDIR@,$PWLIBDIR,;t t
7123 s,@PWINSTDIR@,$PWINSTDIR,;t t
7124 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
7125 s,@LIBDIR@,$LIBDIR,;t t
7126 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
7127 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
7128 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
7129 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
7130 s,@build@,$build,;t t
7131 s,@build_cpu@,$build_cpu,;t t
7132 s,@build_vendor@,$build_vendor,;t t
7133 s,@build_os@,$build_os,;t t
7134 s,@host@,$host,;t t
7135 s,@host_cpu@,$host_cpu,;t t
7136 s,@host_vendor@,$host_vendor,;t t
7137 s,@host_os@,$host_os,;t t
7138 s,@target@,$target,;t t
7139 s,@target_cpu@,$target_cpu,;t t
7140 s,@target_vendor@,$target_vendor,;t t
7141 s,@target_os@,$target_os,;t t
7142 s,@MACHTYPE@,$MACHTYPE,;t t
7143 s,@OSTYPE@,$OSTYPE,;t t
7144 s,@OSRELEASE@,$OSRELEASE,;t t
7145 s,@TARGETDIR@,$TARGETDIR,;t t
7146 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
7147 s,@CXXCPP@,$CXXCPP,;t t
7148 s,@EGREP@,$EGREP,;t t
7149 s,@HAS_REGEX@,$HAS_REGEX,;t t
7150 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
7151 s,@HAS_SASL2@,$HAS_SASL2,;t t
7152 s,@HAS_SASL@,$HAS_SASL,;t t
7153 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
7154 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
7155 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
7156 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
7157 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
7158 s,@HAS_IPV6@,$HAS_IPV6,;t t
7159 s,@HAS_SDL@,$HAS_SDL,;t t
7160 s,@HAS_VIDEO_CAPTURE@,$HAS_VIDEO_CAPTURE,;t t
7161 s,@HAS_ALSA@,$HAS_ALSA,;t t
7162 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7163 s,@STDCXXFLAGS@,$STDCXXFLAGS,;t t
7164 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
7165 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7166 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7167 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7168 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7169 s,@LIBOBJS@,$LIBOBJS,;t t
7170 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7171 CEOF
7173 _ACEOF
7175 cat >>$CONFIG_STATUS <<\_ACEOF
7176 # Split the substitutions into bite-sized pieces for seds with
7177 # small command number limits, like on Digital OSF/1 and HP-UX.
7178 ac_max_sed_lines=48
7179 ac_sed_frag=1 # Number of current file.
7180 ac_beg=1 # First line for current file.
7181 ac_end=$ac_max_sed_lines # Line after last line for current file.
7182 ac_more_lines=:
7183 ac_sed_cmds=
7184 while $ac_more_lines; do
7185 if test $ac_beg -gt 1; then
7186 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7187 else
7188 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7190 if test ! -s $tmp/subs.frag; then
7191 ac_more_lines=false
7192 else
7193 # The purpose of the label and of the branching condition is to
7194 # speed up the sed processing (if there are no `@' at all, there
7195 # is no need to browse any of the substitutions).
7196 # These are the two extra sed commands mentioned above.
7197 (echo ':t
7198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7199 if test -z "$ac_sed_cmds"; then
7200 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7201 else
7202 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7204 ac_sed_frag=`expr $ac_sed_frag + 1`
7205 ac_beg=$ac_end
7206 ac_end=`expr $ac_end + $ac_max_sed_lines`
7208 done
7209 if test -z "$ac_sed_cmds"; then
7210 ac_sed_cmds=cat
7212 fi # test -n "$CONFIG_FILES"
7214 _ACEOF
7215 cat >>$CONFIG_STATUS <<\_ACEOF
7216 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7217 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7218 case $ac_file in
7219 - | *:- | *:-:* ) # input from stdin
7220 cat >$tmp/stdin
7221 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7223 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7225 * ) ac_file_in=$ac_file.in ;;
7226 esac
7228 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7229 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7231 X"$ac_file" : 'X\(//\)[^/]' \| \
7232 X"$ac_file" : 'X\(//\)$' \| \
7233 X"$ac_file" : 'X\(/\)' \| \
7234 . : '\(.\)' 2>/dev/null ||
7235 echo X"$ac_file" |
7236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7238 /^X\(\/\/\)$/{ s//\1/; q; }
7239 /^X\(\/\).*/{ s//\1/; q; }
7240 s/.*/./; q'`
7241 { if $as_mkdir_p; then
7242 mkdir -p "$ac_dir"
7243 else
7244 as_dir="$ac_dir"
7245 as_dirs=
7246 while test ! -d "$as_dir"; do
7247 as_dirs="$as_dir $as_dirs"
7248 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7250 X"$as_dir" : 'X\(//\)[^/]' \| \
7251 X"$as_dir" : 'X\(//\)$' \| \
7252 X"$as_dir" : 'X\(/\)' \| \
7253 . : '\(.\)' 2>/dev/null ||
7254 echo X"$as_dir" |
7255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7257 /^X\(\/\/\)$/{ s//\1/; q; }
7258 /^X\(\/\).*/{ s//\1/; q; }
7259 s/.*/./; q'`
7260 done
7261 test ! -n "$as_dirs" || mkdir $as_dirs
7262 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7263 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7264 { (exit 1); exit 1; }; }; }
7266 ac_builddir=.
7268 if test "$ac_dir" != .; then
7269 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7270 # A "../" for each directory in $ac_dir_suffix.
7271 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7272 else
7273 ac_dir_suffix= ac_top_builddir=
7276 case $srcdir in
7277 .) # No --srcdir option. We are building in place.
7278 ac_srcdir=.
7279 if test -z "$ac_top_builddir"; then
7280 ac_top_srcdir=.
7281 else
7282 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7283 fi ;;
7284 [\\/]* | ?:[\\/]* ) # Absolute path.
7285 ac_srcdir=$srcdir$ac_dir_suffix;
7286 ac_top_srcdir=$srcdir ;;
7287 *) # Relative path.
7288 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7289 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7290 esac
7291 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7292 # absolute.
7293 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7294 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7295 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7296 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7299 case $INSTALL in
7300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7301 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7302 esac
7304 if test x"$ac_file" != x-; then
7305 { echo "$as_me:$LINENO: creating $ac_file" >&5
7306 echo "$as_me: creating $ac_file" >&6;}
7307 rm -f "$ac_file"
7309 # Let's still pretend it is `configure' which instantiates (i.e., don't
7310 # use $as_me), people would be surprised to read:
7311 # /* config.h. Generated by config.status. */
7312 if test x"$ac_file" = x-; then
7313 configure_input=
7314 else
7315 configure_input="$ac_file. "
7317 configure_input=$configure_input"Generated from `echo $ac_file_in |
7318 sed 's,.*/,,'` by configure."
7320 # First look for the input files in the build tree, otherwise in the
7321 # src tree.
7322 ac_file_inputs=`IFS=:
7323 for f in $ac_file_in; do
7324 case $f in
7325 -) echo $tmp/stdin ;;
7326 [\\/$]*)
7327 # Absolute (can't be DOS-style, as IFS=:)
7328 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7329 echo "$as_me: error: cannot find input file: $f" >&2;}
7330 { (exit 1); exit 1; }; }
7331 echo $f;;
7332 *) # Relative
7333 if test -f "$f"; then
7334 # Build tree
7335 echo $f
7336 elif test -f "$srcdir/$f"; then
7337 # Source tree
7338 echo $srcdir/$f
7339 else
7340 # /dev/null tree
7341 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7342 echo "$as_me: error: cannot find input file: $f" >&2;}
7343 { (exit 1); exit 1; }; }
7344 fi;;
7345 esac
7346 done` || { (exit 1); exit 1; }
7347 _ACEOF
7348 cat >>$CONFIG_STATUS <<_ACEOF
7349 sed "$ac_vpsub
7350 $extrasub
7351 _ACEOF
7352 cat >>$CONFIG_STATUS <<\_ACEOF
7354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7355 s,@configure_input@,$configure_input,;t t
7356 s,@srcdir@,$ac_srcdir,;t t
7357 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7358 s,@top_srcdir@,$ac_top_srcdir,;t t
7359 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7360 s,@builddir@,$ac_builddir,;t t
7361 s,@abs_builddir@,$ac_abs_builddir,;t t
7362 s,@top_builddir@,$ac_top_builddir,;t t
7363 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7364 s,@INSTALL@,$ac_INSTALL,;t t
7365 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7366 rm -f $tmp/stdin
7367 if test x"$ac_file" != x-; then
7368 mv $tmp/out $ac_file
7369 else
7370 cat $tmp/out
7371 rm -f $tmp/out
7374 # Run the commands associated with the file.
7375 case $ac_file in
7376 make/ptlib-config ) chmod a+x make/ptlib-config ;;
7377 esac
7378 done
7379 _ACEOF
7380 cat >>$CONFIG_STATUS <<\_ACEOF
7383 # CONFIG_HEADER section.
7386 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7387 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7389 # ac_d sets the value in "#define NAME VALUE" lines.
7390 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7391 ac_dB='[ ].*$,\1#\2'
7392 ac_dC=' '
7393 ac_dD=',;t'
7394 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7395 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7396 ac_uB='$,\1#\2define\3'
7397 ac_uC=' '
7398 ac_uD=',;t'
7400 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7401 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7402 case $ac_file in
7403 - | *:- | *:-:* ) # input from stdin
7404 cat >$tmp/stdin
7405 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7406 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7407 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7408 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7409 * ) ac_file_in=$ac_file.in ;;
7410 esac
7412 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7413 echo "$as_me: creating $ac_file" >&6;}
7415 # First look for the input files in the build tree, otherwise in the
7416 # src tree.
7417 ac_file_inputs=`IFS=:
7418 for f in $ac_file_in; do
7419 case $f in
7420 -) echo $tmp/stdin ;;
7421 [\\/$]*)
7422 # Absolute (can't be DOS-style, as IFS=:)
7423 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7424 echo "$as_me: error: cannot find input file: $f" >&2;}
7425 { (exit 1); exit 1; }; }
7426 echo $f;;
7427 *) # Relative
7428 if test -f "$f"; then
7429 # Build tree
7430 echo $f
7431 elif test -f "$srcdir/$f"; then
7432 # Source tree
7433 echo $srcdir/$f
7434 else
7435 # /dev/null tree
7436 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7437 echo "$as_me: error: cannot find input file: $f" >&2;}
7438 { (exit 1); exit 1; }; }
7439 fi;;
7440 esac
7441 done` || { (exit 1); exit 1; }
7442 # Remove the trailing spaces.
7443 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7445 _ACEOF
7447 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7448 # `conftest.undefs', that substitutes the proper values into
7449 # config.h.in to produce config.h. The first handles `#define'
7450 # templates, and the second `#undef' templates.
7451 # And first: Protect against being on the right side of a sed subst in
7452 # config.status. Protect against being in an unquoted here document
7453 # in config.status.
7454 rm -f conftest.defines conftest.undefs
7455 # Using a here document instead of a string reduces the quoting nightmare.
7456 # Putting comments in sed scripts is not portable.
7458 # `end' is used to avoid that the second main sed command (meant for
7459 # 0-ary CPP macros) applies to n-ary macro definitions.
7460 # See the Autoconf documentation for `clear'.
7461 cat >confdef2sed.sed <<\_ACEOF
7462 s/[\\&,]/\\&/g
7463 s,[\\$`],\\&,g
7464 t clear
7465 : clear
7466 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7467 t end
7468 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7469 : end
7470 _ACEOF
7471 # If some macros were called several times there might be several times
7472 # the same #defines, which is useless. Nevertheless, we may not want to
7473 # sort them, since we want the *last* AC-DEFINE to be honored.
7474 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7475 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7476 rm -f confdef2sed.sed
7478 # This sed command replaces #undef with comments. This is necessary, for
7479 # example, in the case of _POSIX_SOURCE, which is predefined and required
7480 # on some systems where configure will not decide to define it.
7481 cat >>conftest.undefs <<\_ACEOF
7482 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7483 _ACEOF
7485 # Break up conftest.defines because some shells have a limit on the size
7486 # of here documents, and old seds have small limits too (100 cmds).
7487 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7488 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7489 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7490 echo ' :' >>$CONFIG_STATUS
7491 rm -f conftest.tail
7492 while grep . conftest.defines >/dev/null
7494 # Write a limited-size here document to $tmp/defines.sed.
7495 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7496 # Speed up: don't consider the non `#define' lines.
7497 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7498 # Work around the forget-to-reset-the-flag bug.
7499 echo 't clr' >>$CONFIG_STATUS
7500 echo ': clr' >>$CONFIG_STATUS
7501 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7502 echo 'CEOF
7503 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7504 rm -f $tmp/in
7505 mv $tmp/out $tmp/in
7506 ' >>$CONFIG_STATUS
7507 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7508 rm -f conftest.defines
7509 mv conftest.tail conftest.defines
7510 done
7511 rm -f conftest.defines
7512 echo ' fi # grep' >>$CONFIG_STATUS
7513 echo >>$CONFIG_STATUS
7515 # Break up conftest.undefs because some shells have a limit on the size
7516 # of here documents, and old seds have small limits too (100 cmds).
7517 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7518 rm -f conftest.tail
7519 while grep . conftest.undefs >/dev/null
7521 # Write a limited-size here document to $tmp/undefs.sed.
7522 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7523 # Speed up: don't consider the non `#undef'
7524 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7525 # Work around the forget-to-reset-the-flag bug.
7526 echo 't clr' >>$CONFIG_STATUS
7527 echo ': clr' >>$CONFIG_STATUS
7528 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7529 echo 'CEOF
7530 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7531 rm -f $tmp/in
7532 mv $tmp/out $tmp/in
7533 ' >>$CONFIG_STATUS
7534 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7535 rm -f conftest.undefs
7536 mv conftest.tail conftest.undefs
7537 done
7538 rm -f conftest.undefs
7540 cat >>$CONFIG_STATUS <<\_ACEOF
7541 # Let's still pretend it is `configure' which instantiates (i.e., don't
7542 # use $as_me), people would be surprised to read:
7543 # /* config.h. Generated by config.status. */
7544 if test x"$ac_file" = x-; then
7545 echo "/* Generated by configure. */" >$tmp/config.h
7546 else
7547 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7549 cat $tmp/in >>$tmp/config.h
7550 rm -f $tmp/in
7551 if test x"$ac_file" != x-; then
7552 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7553 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7554 echo "$as_me: $ac_file is unchanged" >&6;}
7555 else
7556 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7558 X"$ac_file" : 'X\(//\)[^/]' \| \
7559 X"$ac_file" : 'X\(//\)$' \| \
7560 X"$ac_file" : 'X\(/\)' \| \
7561 . : '\(.\)' 2>/dev/null ||
7562 echo X"$ac_file" |
7563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7565 /^X\(\/\/\)$/{ s//\1/; q; }
7566 /^X\(\/\).*/{ s//\1/; q; }
7567 s/.*/./; q'`
7568 { if $as_mkdir_p; then
7569 mkdir -p "$ac_dir"
7570 else
7571 as_dir="$ac_dir"
7572 as_dirs=
7573 while test ! -d "$as_dir"; do
7574 as_dirs="$as_dir $as_dirs"
7575 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7577 X"$as_dir" : 'X\(//\)[^/]' \| \
7578 X"$as_dir" : 'X\(//\)$' \| \
7579 X"$as_dir" : 'X\(/\)' \| \
7580 . : '\(.\)' 2>/dev/null ||
7581 echo X"$as_dir" |
7582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7584 /^X\(\/\/\)$/{ s//\1/; q; }
7585 /^X\(\/\).*/{ s//\1/; q; }
7586 s/.*/./; q'`
7587 done
7588 test ! -n "$as_dirs" || mkdir $as_dirs
7589 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7591 { (exit 1); exit 1; }; }; }
7593 rm -f $ac_file
7594 mv $tmp/config.h $ac_file
7596 else
7597 cat $tmp/config.h
7598 rm -f $tmp/config.h
7600 done
7601 _ACEOF
7603 cat >>$CONFIG_STATUS <<\_ACEOF
7605 { (exit 0); exit 0; }
7606 _ACEOF
7607 chmod +x $CONFIG_STATUS
7608 ac_clean_files=$ac_clean_files_save
7611 # configure is writing to config.log, and then calls config.status.
7612 # config.status does its own redirection, appending to config.log.
7613 # Unfortunately, on DOS this fails, as config.log is still kept open
7614 # by configure, so config.status won't be able to write to it; its
7615 # output is simply discarded. So we exec the FD to /dev/null,
7616 # effectively closing config.log, so it can be properly (re)opened and
7617 # appended to by config.status. When coming back to configure, we
7618 # need to make the FD available again.
7619 if test "$no_create" != yes; then
7620 ac_cs_success=:
7621 ac_config_status_args=
7622 test "$silent" = yes &&
7623 ac_config_status_args="$ac_config_status_args --quiet"
7624 exec 5>/dev/null
7625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7626 exec 5>>config.log
7627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7628 # would make configure fail if this is the last instruction.
7629 $ac_cs_success || { (exit 1); exit 1; }
7633 # CONFIG_SUBDIRS section.
7635 if test "$no_recursion" != yes; then
7637 # Remove --cache-file and --srcdir arguments so they do not pile up.
7638 ac_sub_configure_args=
7639 ac_prev=
7640 for ac_arg in $ac_configure_args; do
7641 if test -n "$ac_prev"; then
7642 ac_prev=
7643 continue
7645 case $ac_arg in
7646 -cache-file | --cache-file | --cache-fil | --cache-fi \
7647 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7648 ac_prev=cache_file ;;
7649 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7650 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7651 | --c=*)
7653 --config-cache | -C)
7655 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7656 ac_prev=srcdir ;;
7657 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7660 ac_prev=prefix ;;
7661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7663 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7664 esac
7665 done
7667 # Always prepend --prefix to ensure using the same prefix
7668 # in subdir configurations.
7669 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7671 ac_popdir=`pwd`
7672 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7674 # Do not complain, so a configure script can configure whichever
7675 # parts of a large source tree are present.
7676 test -d $srcdir/$ac_dir || continue
7678 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7679 echo "$as_me: configuring in $ac_dir" >&6;}
7680 { if $as_mkdir_p; then
7681 mkdir -p "$ac_dir"
7682 else
7683 as_dir="$ac_dir"
7684 as_dirs=
7685 while test ! -d "$as_dir"; do
7686 as_dirs="$as_dir $as_dirs"
7687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7689 X"$as_dir" : 'X\(//\)[^/]' \| \
7690 X"$as_dir" : 'X\(//\)$' \| \
7691 X"$as_dir" : 'X\(/\)' \| \
7692 . : '\(.\)' 2>/dev/null ||
7693 echo X"$as_dir" |
7694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7696 /^X\(\/\/\)$/{ s//\1/; q; }
7697 /^X\(\/\).*/{ s//\1/; q; }
7698 s/.*/./; q'`
7699 done
7700 test ! -n "$as_dirs" || mkdir $as_dirs
7701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7702 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7703 { (exit 1); exit 1; }; }; }
7705 ac_builddir=.
7707 if test "$ac_dir" != .; then
7708 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7709 # A "../" for each directory in $ac_dir_suffix.
7710 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7711 else
7712 ac_dir_suffix= ac_top_builddir=
7715 case $srcdir in
7716 .) # No --srcdir option. We are building in place.
7717 ac_srcdir=.
7718 if test -z "$ac_top_builddir"; then
7719 ac_top_srcdir=.
7720 else
7721 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7722 fi ;;
7723 [\\/]* | ?:[\\/]* ) # Absolute path.
7724 ac_srcdir=$srcdir$ac_dir_suffix;
7725 ac_top_srcdir=$srcdir ;;
7726 *) # Relative path.
7727 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7728 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7729 esac
7730 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7731 # absolute.
7732 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7733 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7734 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7735 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7738 cd $ac_dir
7740 # Check for guested configure; otherwise get Cygnus style configure.
7741 if test -f $ac_srcdir/configure.gnu; then
7742 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7743 elif test -f $ac_srcdir/configure; then
7744 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7745 elif test -f $ac_srcdir/configure.in; then
7746 ac_sub_configure=$ac_configure
7747 else
7748 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7749 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7750 ac_sub_configure=
7753 # The recursion is here.
7754 if test -n "$ac_sub_configure"; then
7755 # Make the cache file name correct relative to the subdirectory.
7756 case $cache_file in
7757 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7758 *) # Relative path.
7759 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7760 esac
7762 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7763 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7764 # The eval makes quoting arguments work.
7765 eval $ac_sub_configure $ac_sub_configure_args \
7766 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7767 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7768 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7769 { (exit 1); exit 1; }; }
7772 cd $ac_popdir
7773 done