Modified plugin manager to allow code modules to be notified when plugins
[pwlib.git] / configure
blob2b0003683b30a856e3bd393425a39050c93ed024
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="include/ptlib.h"
274 ac_subdirs_all="$ac_subdirs_all plugins"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT PWLIBDIR PWINSTDIR INSTALLPREFIX LIBDIR MAJOR_VERSION MINOR_VERSION BUILD_NUMBER PWLIB_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MACHTYPE OSTYPE OSRELEASE TARGETDIR SHAREDLIBEXT CXXCPP EGREP HAS_REGEX HAS_PLUGINS HAS_OPENLDAP HAS_OPENSSL P_STATIC_ENDLDLIBS P_STATIC_LDFLAGS HAS_EXPAT HAS_IPV6 HAS_SDL HAS_VIDEO_CAPTURE HAS_ALSA STDCCFLAGS OPTSTDCCFLAGS ENDLDLIBS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXX_set=${CXX+set}
754 ac_env_CXX_value=$CXX
755 ac_cv_env_CXX_set=${CXX+set}
756 ac_cv_env_CXX_value=$CXX
757 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_env_CXXFLAGS_value=$CXXFLAGS
759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXXCPP_set=${CXXCPP+set}
770 ac_env_CXXCPP_value=$CXXCPP
771 ac_cv_env_CXXCPP_set=${CXXCPP+set}
772 ac_cv_env_CXXCPP_value=$CXXCPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838 _ACEOF
841 if test -n "$ac_init_help"; then
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-rtti enables RTTI support
849 --enable-internalregex force internal regex library
850 --enable-plugins enable plugins' support in PWLIB
851 --disable-resolver disable DNS resolver 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
2132 if test ${OSTYPE} != Darwin ; then
2134 cat >>confdefs.h <<\_ACEOF
2135 #define P_HAS_SEMAPHORES 1
2136 _ACEOF
2141 if test "x${SHAREDLIBEXT}" = "x" ; then
2142 SHAREDLIBEXT="so"
2144 SHAREDLIBEXT=$SHAREDLIBEXT
2147 cat >>confdefs.h <<\_ACEOF
2148 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2149 _ACEOF
2155 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2156 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2157 if test "${ac_cv_c_bigendian+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 # See if sys/param.h defines the BYTE_ORDER macro.
2161 cat >conftest.$ac_ext <<_ACEOF
2162 #line $LINENO "configure"
2163 /* confdefs.h. */
2164 _ACEOF
2165 cat confdefs.h >>conftest.$ac_ext
2166 cat >>conftest.$ac_ext <<_ACEOF
2167 /* end confdefs.h. */
2168 #include <sys/types.h>
2169 #include <sys/param.h>
2172 main ()
2174 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2175 bogus endian macros
2176 #endif
2179 return 0;
2181 _ACEOF
2182 rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -s conftest.$ac_objext'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2194 # It does; now see whether it defined to BIG_ENDIAN or not.
2195 cat >conftest.$ac_ext <<_ACEOF
2196 #line $LINENO "configure"
2197 /* confdefs.h. */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2202 #include <sys/types.h>
2203 #include <sys/param.h>
2206 main ()
2208 #if BYTE_ORDER != BIG_ENDIAN
2209 not big endian
2210 #endif
2213 return 0;
2215 _ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 ac_cv_c_bigendian=yes
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 ac_cv_c_bigendian=no
2235 rm -f conftest.$ac_objext conftest.$ac_ext
2236 else
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2240 # It does not; compile a test program.
2241 if test "$cross_compiling" = yes; then
2242 # try to guess the endianness by grepping values into an object file
2243 ac_cv_c_bigendian=unknown
2244 cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h. */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2251 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2252 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2253 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2254 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2255 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2256 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2258 main ()
2260 _ascii (); _ebcdic ();
2262 return 0;
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2278 ac_cv_c_bigendian=yes
2280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2281 if test "$ac_cv_c_bigendian" = unknown; then
2282 ac_cv_c_bigendian=no
2283 else
2284 # finding both strings is unlikely to happen, but who knows?
2285 ac_cv_c_bigendian=unknown
2288 else
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2293 rm -f conftest.$ac_objext conftest.$ac_ext
2294 else
2295 cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2303 main ()
2305 /* Are we little or big endian? From Harbison&Steele. */
2306 union
2308 long l;
2309 char c[sizeof (long)];
2310 } u;
2311 u.l = 1;
2312 exit (u.c[sizeof (long) - 1] == 1);
2314 _ACEOF
2315 rm -f conftest$ac_exeext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2317 (eval $ac_link) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 ac_cv_c_bigendian=no
2327 else
2328 echo "$as_me: program exited with status $ac_status" >&5
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2332 ( exit $ac_status )
2333 ac_cv_c_bigendian=yes
2335 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2338 rm -f conftest.$ac_objext conftest.$ac_ext
2340 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2341 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2342 case $ac_cv_c_bigendian in
2343 yes)
2345 cat >>confdefs.h <<\_ACEOF
2346 #define WORDS_BIGENDIAN 1
2347 _ACEOF
2352 { { echo "$as_me:$LINENO: error: unknown endianness
2353 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2354 echo "$as_me: error: unknown endianness
2355 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2356 { (exit 1); exit 1; }; } ;;
2357 esac
2359 if test ${ac_cv_c_bigendian} = yes ; then
2360 PBYTE_ORDER=PBIG_ENDIAN
2361 else
2362 PBYTE_ORDER=PLITTLE_ENDIAN
2366 cat >>confdefs.h <<_ACEOF
2367 #define PBYTE_ORDER $PBYTE_ORDER
2368 _ACEOF
2371 ac_ext=cc
2372 ac_cpp='$CXXCPP $CPPFLAGS'
2373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2378 # Check whether --enable-rtti or --disable-rtti was given.
2379 if test "${enable_rtti+set}" = set; then
2380 enableval="$enable_rtti"
2381 rtti=$enableval
2383 if test "$rtti" = "yes" ; then
2384 { echo "$as_me:$LINENO: Not disabling RTTI" >&5
2385 echo "$as_me: Not disabling RTTI" >&6;}
2386 else
2387 echo "$as_me:$LINENO: checking if compiler accepts -fno-rtti" >&5
2388 echo $ECHO_N "checking if compiler accepts -fno-rtti... $ECHO_C" >&6
2389 cat >conftest.$ac_ext <<_ACEOF
2390 int main(int ac,char **av) { return 0; }
2391 _ACEOF
2392 $CXX $CFLAGS -fno-rtti -c conftest.cc > /dev/null 2>&1
2393 if test $? = 0 ; then
2394 echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6
2396 STDCCFLAGS="$STDCCFLAGS -fno-rtti"
2397 else
2398 echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6
2403 GCSECTIONS=0
2405 echo "$as_me:$LINENO: checking if linker accepts --gc-sections" >&5
2406 echo $ECHO_N "checking if linker accepts --gc-sections... $ECHO_C" >&6
2407 cat >conftest.$ac_ext <<_ACEOF
2408 int main(int ac,char **av) { return 0; }
2409 _ACEOF
2410 $CXX $CFLAGS -Wl,--gc-sections conftest.cc > /dev/null 2>&1
2411 if test $? = 0 ; then
2412 echo "$as_me:$LINENO: result: yes" >&5
2413 echo "${ECHO_T}yes" >&6
2415 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2416 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2417 cat >conftest.$ac_ext <<_ACEOF
2418 int main(int ac,char **av) { return 0; }
2419 _ACEOF
2420 $CXX $CFLAGS -ffunction-sections -c conftest.cc > /dev/null 2>&1
2421 if test $? = 0 ; then
2422 echo "$as_me:$LINENO: result: yes" >&5
2423 echo "${ECHO_T}yes" >&6
2424 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
2425 GCSECTIONS=1
2426 else
2427 echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2431 echo "$as_me:$LINENO: checking if compiler accepts -fdata-sections" >&5
2432 echo $ECHO_N "checking if compiler accepts -fdata-sections... $ECHO_C" >&6
2433 cat >conftest.$ac_ext <<_ACEOF
2434 int main(int ac,char **av) { return 0; }
2435 _ACEOF
2436 $CXX $CFLAGS -fdata-sections -c conftest.cc > /dev/null 2>&1
2437 if test $? = 0 ; then
2438 echo "$as_me:$LINENO: result: yes" >&5
2439 echo "${ECHO_T}yes" >&6
2440 STDCCFLAGS="$STDCCFLAGS -fdata-sections"
2441 GCSECTIONS=1
2442 else
2443 echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2448 if test $GCSECTIONS = 1; then
2449 if test "${OSTYPE}" != "Darwin" ; then
2450 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2454 else
2455 echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2459 ac_ext=cc
2460 ac_cpp='$CXXCPP $CPPFLAGS'
2461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2467 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
2468 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
2469 if test "${ac_cv_c_long_double+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #line $LINENO "configure"
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2479 #include <float.h>
2480 long double foo = 0.0;
2482 main ()
2484 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
2485 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
2486 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
2487 test_array [0] = 0
2490 return 0;
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -s conftest.$ac_objext'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2505 ac_cv_c_long_double=yes
2506 else
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2510 ac_cv_c_long_double=no
2512 rm -f conftest.$ac_objext conftest.$ac_ext
2514 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
2515 echo "${ECHO_T}$ac_cv_c_long_double" >&6
2516 if test $ac_cv_c_long_double = yes; then
2518 cat >>confdefs.h <<\_ACEOF
2519 #define HAVE_LONG_DOUBLE 1
2520 _ACEOF
2524 if test $ac_cv_c_long_double != yes ; then
2526 cat >>confdefs.h <<\_ACEOF
2527 #define PNO_LONG_DOUBLE
2528 _ACEOF
2535 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2536 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2537 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 ac_check_lib_save_LIBS=$LIBS
2541 LIBS="-lpthread $LIBS"
2542 cat >conftest.$ac_ext <<_ACEOF
2543 #line $LINENO "configure"
2544 /* confdefs.h. */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2550 /* Override any gcc2 internal prototype to avoid an error. */
2551 #ifdef __cplusplus
2552 extern "C"
2553 #endif
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2556 char pthread_create ();
2558 main ()
2560 pthread_create ();
2562 return 0;
2564 _ACEOF
2565 rm -f conftest.$ac_objext conftest$ac_exeext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2567 (eval $ac_link) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -s conftest$ac_exeext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_lib_pthread_pthread_create=yes
2578 else
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2582 ac_cv_lib_pthread_pthread_create=no
2584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2585 LIBS=$ac_check_lib_save_LIBS
2587 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2588 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2589 if test $ac_cv_lib_pthread_pthread_create = yes; then
2590 HAS_PTHREADS=yes
2591 else
2592 HAS_PTHREADS=no
2595 if test ${HAS_PTHREADS} = yes ; then
2596 ENDLDLIBS="$ENDLDLIBS -lpthread"
2597 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
2598 else
2599 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2600 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2601 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604 ac_check_lib_save_LIBS=$LIBS
2605 LIBS="-lc_r $LIBS"
2606 cat >conftest.$ac_ext <<_ACEOF
2607 #line $LINENO "configure"
2608 /* confdefs.h. */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2614 /* Override any gcc2 internal prototype to avoid an error. */
2615 #ifdef __cplusplus
2616 extern "C"
2617 #endif
2618 /* We use char because int might match the return type of a gcc2
2619 builtin and then its argument prototype would still apply. */
2620 char pthread_create ();
2622 main ()
2624 pthread_create ();
2626 return 0;
2628 _ACEOF
2629 rm -f conftest.$ac_objext conftest$ac_exeext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2631 (eval $ac_link) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -s conftest$ac_exeext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 ac_cv_lib_c_r_pthread_create=yes
2642 else
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_cv_lib_c_r_pthread_create=no
2648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2649 LIBS=$ac_check_lib_save_LIBS
2651 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2652 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2653 if test $ac_cv_lib_c_r_pthread_create = yes; then
2654 HAS_PTHREADS=yes
2655 else
2656 HAS_PTHREADS=no
2659 if test ${HAS_PTHREADS} = yes ; then
2660 ENDLDLIBS="$ENDLDLIBS -pthread"
2661 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
2666 if test ${HAS_PTHREADS} != yes ; then
2667 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
2668 echo "$as_me: error: must have pthreads!" >&2;}
2669 { (exit 1); exit 1; }; }
2673 if test ${HAS_PTHREADS} = yes ; then
2674 echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
2675 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6
2676 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679 ac_check_lib_save_LIBS=$LIBS
2680 LIBS="-lpthread $LIBS"
2681 cat >conftest.$ac_ext <<_ACEOF
2682 #line $LINENO "configure"
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2689 /* Override any gcc2 internal prototype to avoid an error. */
2690 #ifdef __cplusplus
2691 extern "C"
2692 #endif
2693 /* We use char because int might match the return type of a gcc2
2694 builtin and then its argument prototype would still apply. */
2695 char pthread_mutex_timedlock ();
2697 main ()
2699 pthread_mutex_timedlock ();
2701 return 0;
2703 _ACEOF
2704 rm -f conftest.$ac_objext conftest$ac_exeext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2706 (eval $ac_link) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -s conftest$ac_exeext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2716 ac_cv_lib_pthread_pthread_mutex_timedlock=yes
2717 else
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2721 ac_cv_lib_pthread_pthread_mutex_timedlock=no
2723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2724 LIBS=$ac_check_lib_save_LIBS
2726 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
2727 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6
2728 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
2729 HAS_PTHREADS_XPG6=yes
2730 else
2731 HAS_PTHREADS_XPG6=no
2734 if test ${HAS_PTHREADS_XPG6} = yes ; then
2736 cat >>confdefs.h <<\_ACEOF
2737 #define P_PTHREADS_XPG6 1
2738 _ACEOF
2742 echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
2743 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6
2744 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 ac_check_lib_save_LIBS=$LIBS
2748 LIBS="-lpthread $LIBS"
2749 cat >conftest.$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2757 /* Override any gcc2 internal prototype to avoid an error. */
2758 #ifdef __cplusplus
2759 extern "C"
2760 #endif
2761 /* We use char because int might match the return type of a gcc2
2762 builtin and then its argument prototype would still apply. */
2763 char sem_timedwait ();
2765 main ()
2767 sem_timedwait ();
2769 return 0;
2771 _ACEOF
2772 rm -f conftest.$ac_objext conftest$ac_exeext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2774 (eval $ac_link) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -s conftest$ac_exeext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_lib_pthread_sem_timedwait=yes
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 ac_cv_lib_pthread_sem_timedwait=no
2791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2792 LIBS=$ac_check_lib_save_LIBS
2794 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
2795 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6
2796 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
2797 HAS_SEMAPHORES_XPG6=yes
2798 else
2799 HAS_SEMAPHORES_XPG6=no
2802 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
2804 cat >>confdefs.h <<\_ACEOF
2805 #define P_HAS_SEMAPHORES_XPG6 1
2806 _ACEOF
2812 ac_ext=cc
2813 ac_cpp='$CXXCPP $CPPFLAGS'
2814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2817 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2818 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2819 if test -z "$CXXCPP"; then
2820 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 # Double quotes because CXXCPP needs to be expanded
2824 for CXXCPP in "$CXX -E" "/lib/cpp"
2826 ac_preproc_ok=false
2827 for ac_cxx_preproc_warn_flag in '' yes
2829 # Use a header file that comes with gcc, so configuring glibc
2830 # with a fresh cross-compiler works.
2831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2832 # <limits.h> exists even on freestanding compilers.
2833 # On the NeXT, cc -E runs the code through the compiler's parser,
2834 # not just through cpp. "Syntax error" is here to catch this case.
2835 cat >conftest.$ac_ext <<_ACEOF
2836 #line $LINENO "configure"
2837 /* confdefs.h. */
2838 _ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2842 #ifdef __STDC__
2843 # include <limits.h>
2844 #else
2845 # include <assert.h>
2846 #endif
2847 Syntax error
2848 _ACEOF
2849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2851 ac_status=$?
2852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } >/dev/null; then
2857 if test -s conftest.err; then
2858 ac_cpp_err=$ac_cxx_preproc_warn_flag
2859 else
2860 ac_cpp_err=
2862 else
2863 ac_cpp_err=yes
2865 if test -z "$ac_cpp_err"; then
2867 else
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2871 # Broken: fails on valid input.
2872 continue
2874 rm -f conftest.err conftest.$ac_ext
2876 # OK, works on sane cases. Now check whether non-existent headers
2877 # can be detected and how.
2878 cat >conftest.$ac_ext <<_ACEOF
2879 #line $LINENO "configure"
2880 /* confdefs.h. */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2885 #include <ac_nonexistent.h>
2886 _ACEOF
2887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } >/dev/null; then
2895 if test -s conftest.err; then
2896 ac_cpp_err=$ac_cxx_preproc_warn_flag
2897 else
2898 ac_cpp_err=
2900 else
2901 ac_cpp_err=yes
2903 if test -z "$ac_cpp_err"; then
2904 # Broken: success on invalid input.
2905 continue
2906 else
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2910 # Passes both tests.
2911 ac_preproc_ok=:
2912 break
2914 rm -f conftest.err conftest.$ac_ext
2916 done
2917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2918 rm -f conftest.err conftest.$ac_ext
2919 if $ac_preproc_ok; then
2920 break
2923 done
2924 ac_cv_prog_CXXCPP=$CXXCPP
2927 CXXCPP=$ac_cv_prog_CXXCPP
2928 else
2929 ac_cv_prog_CXXCPP=$CXXCPP
2931 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2932 echo "${ECHO_T}$CXXCPP" >&6
2933 ac_preproc_ok=false
2934 for ac_cxx_preproc_warn_flag in '' yes
2936 # Use a header file that comes with gcc, so configuring glibc
2937 # with a fresh cross-compiler works.
2938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2939 # <limits.h> exists even on freestanding compilers.
2940 # On the NeXT, cc -E runs the code through the compiler's parser,
2941 # not just through cpp. "Syntax error" is here to catch this case.
2942 cat >conftest.$ac_ext <<_ACEOF
2943 #line $LINENO "configure"
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #ifdef __STDC__
2950 # include <limits.h>
2951 #else
2952 # include <assert.h>
2953 #endif
2954 Syntax error
2955 _ACEOF
2956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } >/dev/null; then
2964 if test -s conftest.err; then
2965 ac_cpp_err=$ac_cxx_preproc_warn_flag
2966 else
2967 ac_cpp_err=
2969 else
2970 ac_cpp_err=yes
2972 if test -z "$ac_cpp_err"; then
2974 else
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 # Broken: fails on valid input.
2979 continue
2981 rm -f conftest.err conftest.$ac_ext
2983 # OK, works on sane cases. Now check whether non-existent headers
2984 # can be detected and how.
2985 cat >conftest.$ac_ext <<_ACEOF
2986 #line $LINENO "configure"
2987 /* confdefs.h. */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2992 #include <ac_nonexistent.h>
2993 _ACEOF
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_cxx_preproc_warn_flag
3004 else
3005 ac_cpp_err=
3007 else
3008 ac_cpp_err=yes
3010 if test -z "$ac_cpp_err"; then
3011 # Broken: success on invalid input.
3012 continue
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 # Passes both tests.
3018 ac_preproc_ok=:
3019 break
3021 rm -f conftest.err conftest.$ac_ext
3023 done
3024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3025 rm -f conftest.err conftest.$ac_ext
3026 if $ac_preproc_ok; then
3028 else
3029 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3030 See \`config.log' for more details." >&5
3031 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3032 See \`config.log' for more details." >&2;}
3033 { (exit 1); exit 1; }; }
3036 ac_ext=cc
3037 ac_cpp='$CXXCPP $CPPFLAGS'
3038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3043 echo "$as_me:$LINENO: checking for egrep" >&5
3044 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3045 if test "${ac_cv_prog_egrep+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3049 then ac_cv_prog_egrep='grep -E'
3050 else ac_cv_prog_egrep='egrep'
3053 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3054 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3055 EGREP=$ac_cv_prog_egrep
3058 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3059 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3060 if test "${ac_cv_header_stdc+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 cat >conftest.$ac_ext <<_ACEOF
3064 #line $LINENO "configure"
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 #include <stdlib.h>
3071 #include <stdarg.h>
3072 #include <string.h>
3073 #include <float.h>
3076 main ()
3080 return 0;
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085 (eval $ac_compile) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 ac_cv_header_stdc=yes
3096 else
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 ac_cv_header_stdc=no
3102 rm -f conftest.$ac_objext conftest.$ac_ext
3104 if test $ac_cv_header_stdc = yes; then
3105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3106 cat >conftest.$ac_ext <<_ACEOF
3107 #line $LINENO "configure"
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113 #include <string.h>
3115 _ACEOF
3116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3117 $EGREP "memchr" >/dev/null 2>&1; then
3119 else
3120 ac_cv_header_stdc=no
3122 rm -f conftest*
3126 if test $ac_cv_header_stdc = yes; then
3127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3128 cat >conftest.$ac_ext <<_ACEOF
3129 #line $LINENO "configure"
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <stdlib.h>
3137 _ACEOF
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "free" >/dev/null 2>&1; then
3141 else
3142 ac_cv_header_stdc=no
3144 rm -f conftest*
3148 if test $ac_cv_header_stdc = yes; then
3149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3150 if test "$cross_compiling" = yes; then
3152 else
3153 cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3160 #include <ctype.h>
3161 #if ((' ' & 0x0FF) == 0x020)
3162 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3163 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3164 #else
3165 # define ISLOWER(c) \
3166 (('a' <= (c) && (c) <= 'i') \
3167 || ('j' <= (c) && (c) <= 'r') \
3168 || ('s' <= (c) && (c) <= 'z'))
3169 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3170 #endif
3172 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3174 main ()
3176 int i;
3177 for (i = 0; i < 256; i++)
3178 if (XOR (islower (i), ISLOWER (i))
3179 || toupper (i) != TOUPPER (i))
3180 exit(2);
3181 exit (0);
3183 _ACEOF
3184 rm -f conftest$ac_exeext
3185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3186 (eval $ac_link) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 (eval $ac_try) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3196 else
3197 echo "$as_me: program exited with status $ac_status" >&5
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 ( exit $ac_status )
3202 ac_cv_header_stdc=no
3204 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3208 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3209 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3210 if test $ac_cv_header_stdc = yes; then
3212 cat >>confdefs.h <<\_ACEOF
3213 #define STDC_HEADERS 1
3214 _ACEOF
3218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3229 inttypes.h stdint.h unistd.h
3231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3232 echo "$as_me:$LINENO: checking for $ac_header" >&5
3233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 cat >conftest.$ac_ext <<_ACEOF
3238 #line $LINENO "configure"
3239 /* confdefs.h. */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3244 $ac_includes_default
3246 #include <$ac_header>
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 eval "$as_ac_Header=yes"
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 eval "$as_ac_Header=no"
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3272 cat >>confdefs.h <<_ACEOF
3273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3274 _ACEOF
3278 done
3282 for ac_header in regex.h
3284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3286 echo "$as_me:$LINENO: checking for $ac_header" >&5
3287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3293 else
3294 # Is the header compilable?
3295 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3297 cat >conftest.$ac_ext <<_ACEOF
3298 #line $LINENO "configure"
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 $ac_includes_default
3305 #include <$ac_header>
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest.$ac_objext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_header_compiler=yes
3320 else
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3324 ac_header_compiler=no
3326 rm -f conftest.$ac_objext conftest.$ac_ext
3327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3328 echo "${ECHO_T}$ac_header_compiler" >&6
3330 # Is the header present?
3331 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3333 cat >conftest.$ac_ext <<_ACEOF
3334 #line $LINENO "configure"
3335 /* confdefs.h. */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 #include <$ac_header>
3341 _ACEOF
3342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } >/dev/null; then
3350 if test -s conftest.err; then
3351 ac_cpp_err=$ac_cxx_preproc_warn_flag
3352 else
3353 ac_cpp_err=
3355 else
3356 ac_cpp_err=yes
3358 if test -z "$ac_cpp_err"; then
3359 ac_header_preproc=yes
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 ac_header_preproc=no
3366 rm -f conftest.err conftest.$ac_ext
3367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3368 echo "${ECHO_T}$ac_header_preproc" >&6
3370 # So? What about this header?
3371 case $ac_header_compiler:$ac_header_preproc in
3372 yes:no )
3373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3378 cat <<\_ASBOX
3379 ## ------------------------------------ ##
3380 ## Report this to bug-autoconf@gnu.org. ##
3381 ## ------------------------------------ ##
3382 _ASBOX
3384 sed "s/^/$as_me: WARNING: /" >&2
3386 no:yes )
3387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3394 cat <<\_ASBOX
3395 ## ------------------------------------ ##
3396 ## Report this to bug-autoconf@gnu.org. ##
3397 ## ------------------------------------ ##
3398 _ASBOX
3400 sed "s/^/$as_me: WARNING: /" >&2
3402 esac
3403 echo "$as_me:$LINENO: checking for $ac_header" >&5
3404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 eval "$as_ac_Header=$ac_header_preproc"
3410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3415 cat >>confdefs.h <<_ACEOF
3416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3417 _ACEOF
3418 HAS_REGEX=yes
3421 done
3424 # Check whether --enable-internalregex or --disable-internalregex was given.
3425 if test "${enable_internalregex+set}" = set; then
3426 enableval="$enable_internalregex"
3427 internalregex=$enableval
3429 if test "$internalregex" = "yes" ; then
3430 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3431 echo "$as_me: Forcing use of internal regex library" >&6;}
3432 else
3433 if test "$HAS_REGEX" = "yes" ; then
3434 echo "$as_me:$LINENO: checking for regcomp" >&5
3435 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3436 if test "${ac_cv_func_regcomp+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 cat >conftest.$ac_ext <<_ACEOF
3440 #line $LINENO "configure"
3441 /* confdefs.h. */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 /* System header to define __stub macros and hopefully few prototypes,
3447 which can conflict with char regcomp (); below.
3448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3449 <limits.h> exists even on freestanding compilers. */
3450 #ifdef __STDC__
3451 # include <limits.h>
3452 #else
3453 # include <assert.h>
3454 #endif
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 #ifdef __cplusplus
3457 extern "C"
3459 #endif
3460 /* We use char because int might match the return type of a gcc2
3461 builtin and then its argument prototype would still apply. */
3462 char regcomp ();
3463 /* The GNU C library defines this for functions which it implements
3464 to always fail with ENOSYS. Some functions are actually named
3465 something starting with __ and the normal name is an alias. */
3466 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3467 choke me
3468 #else
3469 char (*f) () = regcomp;
3470 #endif
3471 #ifdef __cplusplus
3473 #endif
3476 main ()
3478 return f != regcomp;
3480 return 0;
3482 _ACEOF
3483 rm -f conftest.$ac_objext conftest$ac_exeext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3485 (eval $ac_link) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -s conftest$ac_exeext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_cv_func_regcomp=yes
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 ac_cv_func_regcomp=no
3502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3504 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3505 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3506 if test $ac_cv_func_regcomp = yes; then
3507 HAS_REGEX=yes
3510 if test "$HAS_REGEX" = "yes" ; then
3511 HAS_REGEX=1
3514 cat >>confdefs.h <<\_ACEOF
3515 #define P_REGEX 1
3516 _ACEOF
3525 LIBS=""
3526 HAS_LIBDL=no
3527 P_DYNALINK=0
3528 if test ${OSTYPE} = beos ; then
3529 P_DYNALINK=1
3531 cat >>confdefs.h <<\_ACEOF
3532 #define P_DYNALINK 1
3533 _ACEOF
3535 elif test ${OSTYPE} = Darwin ; then
3536 P_DYNALINK=1
3538 cat >>confdefs.h <<\_ACEOF
3539 #define P_DYNALINK 1
3540 _ACEOF
3542 else
3544 for ac_header in dlfcn.h
3546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3548 echo "$as_me:$LINENO: checking for $ac_header" >&5
3549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3555 else
3556 # Is the header compilable?
3557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3559 cat >conftest.$ac_ext <<_ACEOF
3560 #line $LINENO "configure"
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 $ac_includes_default
3567 #include <$ac_header>
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_header_compiler=yes
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 ac_header_compiler=no
3588 rm -f conftest.$ac_objext conftest.$ac_ext
3589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3590 echo "${ECHO_T}$ac_header_compiler" >&6
3592 # Is the header present?
3593 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3595 cat >conftest.$ac_ext <<_ACEOF
3596 #line $LINENO "configure"
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 #include <$ac_header>
3603 _ACEOF
3604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } >/dev/null; then
3612 if test -s conftest.err; then
3613 ac_cpp_err=$ac_cxx_preproc_warn_flag
3614 else
3615 ac_cpp_err=
3617 else
3618 ac_cpp_err=yes
3620 if test -z "$ac_cpp_err"; then
3621 ac_header_preproc=yes
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 ac_header_preproc=no
3628 rm -f conftest.err conftest.$ac_ext
3629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3630 echo "${ECHO_T}$ac_header_preproc" >&6
3632 # So? What about this header?
3633 case $ac_header_compiler:$ac_header_preproc in
3634 yes:no )
3635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3640 cat <<\_ASBOX
3641 ## ------------------------------------ ##
3642 ## Report this to bug-autoconf@gnu.org. ##
3643 ## ------------------------------------ ##
3644 _ASBOX
3646 sed "s/^/$as_me: WARNING: /" >&2
3648 no:yes )
3649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3656 cat <<\_ASBOX
3657 ## ------------------------------------ ##
3658 ## Report this to bug-autoconf@gnu.org. ##
3659 ## ------------------------------------ ##
3660 _ASBOX
3662 sed "s/^/$as_me: WARNING: /" >&2
3664 esac
3665 echo "$as_me:$LINENO: checking for $ac_header" >&5
3666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 eval "$as_ac_Header=$ac_header_preproc"
3672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3677 cat >>confdefs.h <<_ACEOF
3678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3679 _ACEOF
3680 HAS_DLFCN=yes
3681 else
3682 HAS_DLFCN=no
3685 done
3687 if test "$HAS_DLFCN" = yes ; then
3688 echo "$as_me:$LINENO: checking if dlopen is available" >&5
3689 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
3690 cat >conftest.$ac_ext <<_ACEOF
3691 #line $LINENO "configure"
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 #include <dlfcn.h>
3699 main ()
3701 void * p = dlopen("lib", 0);
3703 return 0;
3705 _ACEOF
3706 rm -f conftest.$ac_objext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708 (eval $ac_compile) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -s conftest.$ac_objext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 HAS_DLOPEN=yes
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 HAS_DLOPEN=no
3725 rm -f conftest.$ac_objext conftest.$ac_ext
3726 if test "$HAS_DLOPEN" = no ; then
3727 echo "$as_me:$LINENO: result: no" >&5
3728 echo "${ECHO_T}no" >&6
3729 else
3730 echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6
3732 P_DYNALINK=1
3734 cat >>confdefs.h <<\_ACEOF
3735 #define P_DYNALINK 1
3736 _ACEOF
3738 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3739 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3740 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 ac_check_lib_save_LIBS=$LIBS
3744 LIBS="-ldl $LIBS"
3745 cat >conftest.$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 #ifdef __cplusplus
3755 extern "C"
3756 #endif
3757 /* We use char because int might match the return type of a gcc2
3758 builtin and then its argument prototype would still apply. */
3759 char dlopen ();
3761 main ()
3763 dlopen ();
3765 return 0;
3767 _ACEOF
3768 rm -f conftest.$ac_objext conftest$ac_exeext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770 (eval $ac_link) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -s conftest$ac_exeext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 ac_cv_lib_dl_dlopen=yes
3781 else
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3785 ac_cv_lib_dl_dlopen=no
3787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3788 LIBS=$ac_check_lib_save_LIBS
3790 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3791 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3792 if test $ac_cv_lib_dl_dlopen = yes; then
3793 HAS_LIBDL=yes
3794 else
3795 HAS_LIBDL=no
3802 plugins="no"
3803 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
3804 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
3805 # Check whether --enable-plugins or --disable-plugins was given.
3806 if test "${enable_plugins+set}" = set; then
3807 enableval="$enable_plugins"
3808 plugins=$enableval
3811 HAS_PLUGINS=0
3812 if test "${plugins}" = "no" ; then
3813 echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3815 elif test "${P_DYNALINK:-unset}" = "unset" ; then
3816 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
3817 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
3818 else
3819 echo "$as_me:$LINENO: result: plugins enabled" >&5
3820 echo "${ECHO_T}plugins enabled" >&6
3821 HAS_PLUGINS=1
3823 cat >>confdefs.h <<\_ACEOF
3824 #define P_HAS_PLUGINS 1
3825 _ACEOF
3831 if test "x$LIB64" != "x" ; then
3833 cat >>confdefs.h <<_ACEOF
3834 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
3835 _ACEOF
3837 else
3839 cat >>confdefs.h <<_ACEOF
3840 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
3841 _ACEOF
3847 # Check whether --enable-resolver or --disable-resolver was given.
3848 if test "${enable_resolver+set}" = set; then
3849 enableval="$enable_resolver"
3850 resolver=$enableval
3853 if test "$resolver" = "no" ; then
3854 cat >>confdefs.h <<\_ACEOF
3855 #define P_DNS 0
3856 _ACEOF
3858 else
3859 echo "$as_me:$LINENO: checking for res_search" >&5
3860 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
3861 if test "${ac_cv_func_res_search+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864 cat >conftest.$ac_ext <<_ACEOF
3865 #line $LINENO "configure"
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 /* System header to define __stub macros and hopefully few prototypes,
3872 which can conflict with char res_search (); below.
3873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 <limits.h> exists even on freestanding compilers. */
3875 #ifdef __STDC__
3876 # include <limits.h>
3877 #else
3878 # include <assert.h>
3879 #endif
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 #ifdef __cplusplus
3882 extern "C"
3884 #endif
3885 /* We use char because int might match the return type of a gcc2
3886 builtin and then its argument prototype would still apply. */
3887 char res_search ();
3888 /* The GNU C library defines this for functions which it implements
3889 to always fail with ENOSYS. Some functions are actually named
3890 something starting with __ and the normal name is an alias. */
3891 #if defined (__stub_res_search) || defined (__stub___res_search)
3892 choke me
3893 #else
3894 char (*f) () = res_search;
3895 #endif
3896 #ifdef __cplusplus
3898 #endif
3901 main ()
3903 return f != res_search;
3905 return 0;
3907 _ACEOF
3908 rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910 (eval $ac_link) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -s conftest$ac_exeext'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 ac_cv_func_res_search=yes
3921 else
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 ac_cv_func_res_search=no
3927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3929 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
3930 echo "${ECHO_T}$ac_cv_func_res_search" >&6
3931 if test $ac_cv_func_res_search = yes; then
3932 HAVE_RESOLVER=1
3935 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
3936 RESOLVER_LIBS=""
3937 else
3938 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
3939 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
3940 LIBS="-lresolv"
3941 cat >conftest.$ac_ext <<_ACEOF
3943 #include <netinet/in.h>
3944 #include <resolv.h>
3945 int main(int argc,char **argv){
3946 res_search (NULL, 0, 0, NULL, 0);
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } &&
3955 { ac_try='test -s conftest.$ac_objext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 HAVE_RESOLVER=1
3962 else
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3967 rm -f conftest.$ac_objext conftest.$ac_ext
3968 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
3969 echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6
3971 RESOLVER_LIBS="-lresolv"
3972 else
3973 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
3974 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
3975 if test "${ac_cv_search___res_search+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 ac_func_search_save_LIBS=$LIBS
3979 ac_cv_search___res_search=no
3980 cat >conftest.$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3982 /* confdefs.h. */
3983 _ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3988 /* Override any gcc2 internal prototype to avoid an error. */
3989 #ifdef __cplusplus
3990 extern "C"
3991 #endif
3992 /* We use char because int might match the return type of a gcc2
3993 builtin and then its argument prototype would still apply. */
3994 char __res_search ();
3996 main ()
3998 __res_search ();
4000 return 0;
4002 _ACEOF
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005 (eval $ac_link) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try='test -s conftest$ac_exeext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 ac_cv_search___res_search="none required"
4016 else
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4022 if test "$ac_cv_search___res_search" = no; then
4023 for ac_lib in resolv; do
4024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4025 cat >conftest.$ac_ext <<_ACEOF
4026 #line $LINENO "configure"
4027 /* confdefs.h. */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4033 /* Override any gcc2 internal prototype to avoid an error. */
4034 #ifdef __cplusplus
4035 extern "C"
4036 #endif
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4039 char __res_search ();
4041 main ()
4043 __res_search ();
4045 return 0;
4047 _ACEOF
4048 rm -f conftest.$ac_objext conftest$ac_exeext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050 (eval $ac_link) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try='test -s conftest$ac_exeext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 ac_cv_search___res_search="-l$ac_lib"
4061 break
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4068 done
4070 LIBS=$ac_func_search_save_LIBS
4072 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4073 echo "${ECHO_T}$ac_cv_search___res_search" >&6
4074 if test "$ac_cv_search___res_search" != no; then
4075 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
4076 HAVE_RESOLVER=1
4082 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4084 cat >>confdefs.h <<\_ACEOF
4085 #define P_DNS 1
4086 _ACEOF
4093 # Check whether --enable-openldap or --disable-openldap was given.
4094 if test "${enable_openldap+set}" = set; then
4095 enableval="$enable_openldap"
4096 openldap=$enableval
4099 if test "$openldap" = "no" ; then
4100 HAS_OPENLDAP=0
4102 cat >>confdefs.h <<\_ACEOF
4103 #define P_LDAP 0
4104 _ACEOF
4106 else
4107 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4109 for ac_header in ldap.h
4111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4113 echo "$as_me:$LINENO: checking for $ac_header" >&5
4114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4120 else
4121 # Is the header compilable?
4122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4124 cat >conftest.$ac_ext <<_ACEOF
4125 #line $LINENO "configure"
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 $ac_includes_default
4132 #include <$ac_header>
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_header_compiler=yes
4147 else
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 ac_header_compiler=no
4153 rm -f conftest.$ac_objext conftest.$ac_ext
4154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4155 echo "${ECHO_T}$ac_header_compiler" >&6
4157 # Is the header present?
4158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4160 cat >conftest.$ac_ext <<_ACEOF
4161 #line $LINENO "configure"
4162 /* confdefs.h. */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4167 #include <$ac_header>
4168 _ACEOF
4169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } >/dev/null; then
4177 if test -s conftest.err; then
4178 ac_cpp_err=$ac_cxx_preproc_warn_flag
4179 else
4180 ac_cpp_err=
4182 else
4183 ac_cpp_err=yes
4185 if test -z "$ac_cpp_err"; then
4186 ac_header_preproc=yes
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 ac_header_preproc=no
4193 rm -f conftest.err conftest.$ac_ext
4194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4195 echo "${ECHO_T}$ac_header_preproc" >&6
4197 # So? What about this header?
4198 case $ac_header_compiler:$ac_header_preproc in
4199 yes:no )
4200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4205 cat <<\_ASBOX
4206 ## ------------------------------------ ##
4207 ## Report this to bug-autoconf@gnu.org. ##
4208 ## ------------------------------------ ##
4209 _ASBOX
4211 sed "s/^/$as_me: WARNING: /" >&2
4213 no:yes )
4214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4221 cat <<\_ASBOX
4222 ## ------------------------------------ ##
4223 ## Report this to bug-autoconf@gnu.org. ##
4224 ## ------------------------------------ ##
4225 _ASBOX
4227 sed "s/^/$as_me: WARNING: /" >&2
4229 esac
4230 echo "$as_me:$LINENO: checking for $ac_header" >&5
4231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 eval "$as_ac_Header=$ac_header_preproc"
4237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4242 cat >>confdefs.h <<_ACEOF
4243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4244 _ACEOF
4245 HAS_OPENLDAP=1
4248 done
4251 if test "${OSTYPE:-unknown}" = "solaris"; then
4252 OPENLDAPSYSLIBS=-lposix4
4255 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4256 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4257 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4258 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261 ac_check_lib_save_LIBS=$LIBS
4262 LIBS="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4263 cat >conftest.$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4271 /* Override any gcc2 internal prototype to avoid an error. */
4272 #ifdef __cplusplus
4273 extern "C"
4274 #endif
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4277 char ldap_open ();
4279 main ()
4281 ldap_open ();
4283 return 0;
4285 _ACEOF
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -s conftest$ac_exeext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_lib_ldap_ldap_open=yes
4299 else
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 ac_cv_lib_ldap_ldap_open=no
4305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4306 LIBS=$ac_check_lib_save_LIBS
4308 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4309 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4310 if test $ac_cv_lib_ldap_ldap_open = yes; then
4311 HAS_OPENLDAP=1
4312 else
4313 HAS_OPENLDAP=
4316 else
4317 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
4318 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
4319 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 test "$cross_compiling" = yes &&
4323 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4324 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4325 { (exit 1); exit 1; }; }
4326 if test -r "/usr/local/include/ldap.h"; then
4327 ac_cv_file__usr_local_include_ldap_h=yes
4328 else
4329 ac_cv_file__usr_local_include_ldap_h=no
4332 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
4333 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
4334 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
4335 HAS_OPENLDAP=1
4338 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4339 OPENLDAPINCLUDEDIR=/usr/local/include
4340 OPENLDAPLIBDIR=/usr/local/lib
4341 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4342 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4343 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 ac_check_lib_save_LIBS=$LIBS
4347 LIBS="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4348 cat >conftest.$ac_ext <<_ACEOF
4349 #line $LINENO "configure"
4350 /* confdefs.h. */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4356 /* Override any gcc2 internal prototype to avoid an error. */
4357 #ifdef __cplusplus
4358 extern "C"
4359 #endif
4360 /* We use char because int might match the return type of a gcc2
4361 builtin and then its argument prototype would still apply. */
4362 char ldap_open ();
4364 main ()
4366 ldap_open ();
4368 return 0;
4370 _ACEOF
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373 (eval $ac_link) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -s conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_lib_ldap_ldap_open=yes
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_cv_lib_ldap_ldap_open=no
4390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4391 LIBS=$ac_check_lib_save_LIBS
4393 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4394 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4395 if test $ac_cv_lib_ldap_ldap_open = yes; then
4396 HAS_OPENLDAP=1
4397 else
4398 HAS_OPENLDAP=
4405 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4406 HAS_OPENLDAP=1
4409 cat >>confdefs.h <<\_ACEOF
4410 #define P_LDAP 1
4411 _ACEOF
4413 if test ${OPENLDAPINCLUDEDIR:-unset} != "unset" ; then
4414 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
4416 if test ${OPENLDAPLIBDIR:-unset} != "unset" ; then
4417 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
4420 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4421 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4422 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 ac_check_lib_save_LIBS=$LIBS
4426 LIBS="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4427 cat >conftest.$ac_ext <<_ACEOF
4428 #line $LINENO "configure"
4429 /* confdefs.h. */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4435 /* Override any gcc2 internal prototype to avoid an error. */
4436 #ifdef __cplusplus
4437 extern "C"
4438 #endif
4439 /* We use char because int might match the return type of a gcc2
4440 builtin and then its argument prototype would still apply. */
4441 char sasl_client_auth ();
4443 main ()
4445 sasl_client_auth ();
4447 return 0;
4449 _ACEOF
4450 rm -f conftest.$ac_objext conftest$ac_exeext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4452 (eval $ac_link) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -s conftest$ac_exeext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_cv_lib_sasl_sasl_client_auth=yes
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_cv_lib_sasl_sasl_client_auth=no
4469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4470 LIBS=$ac_check_lib_save_LIBS
4472 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4473 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4474 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4475 HAS_SASL=1
4476 else
4477 HAS_SASL=
4480 if test ${HAS_SASL:-unset} = "unset" ; then
4481 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4482 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4483 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 ac_check_lib_save_LIBS=$LIBS
4487 LIBS="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4488 cat >conftest.$ac_ext <<_ACEOF
4489 #line $LINENO "configure"
4490 /* confdefs.h. */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4496 /* Override any gcc2 internal prototype to avoid an error. */
4497 #ifdef __cplusplus
4498 extern "C"
4499 #endif
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4502 char sasl_version ();
4504 main ()
4506 sasl_version ();
4508 return 0;
4510 _ACEOF
4511 rm -f conftest.$ac_objext conftest$ac_exeext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -s conftest$ac_exeext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 ac_cv_lib_sasl2_sasl_version=yes
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 ac_cv_lib_sasl2_sasl_version=no
4530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4531 LIBS=$ac_check_lib_save_LIBS
4533 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4534 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4535 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4536 HAS_SASL2=1
4537 else
4538 HAS_SASL2=
4542 if test ${HAS_SASL:-unset} != "unset" ; then
4543 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber -lsasl"
4544 elif test ${HAS_SASL2:-unset} != "unset" ; then
4545 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber -lsasl2"
4546 else
4547 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber"
4554 # Check whether --enable-openssl or --disable-openssl was given.
4555 if test "${enable_openssl+set}" = set; then
4556 enableval="$enable_openssl"
4557 openssl=$enableval
4560 if test "$openssl" = "no" ; then
4561 cat >>confdefs.h <<\_ACEOF
4562 #define P_SSL 0
4563 _ACEOF
4565 HAS_OPENSSL=0
4567 else
4569 if test ${OPENSSLDIR:-unset} != "unset" ; then
4570 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
4571 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
4572 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
4573 echo "$as_me:$LINENO: result: yes" >&5
4574 echo "${ECHO_T}yes" >&6
4575 SSLHDR=1
4576 SSLINCLUDEDIR="${OPENSSLDIR}/include"
4577 SSLLIBDIR="${OPENSSLDIR}/lib"
4578 else
4579 echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4585 if test "${SSLHDR:-unset}" = "unset" ; then
4587 for ac_header in openssl/ssl.h
4589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4591 echo "$as_me:$LINENO: checking for $ac_header" >&5
4592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4598 else
4599 # Is the header compilable?
4600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4602 cat >conftest.$ac_ext <<_ACEOF
4603 #line $LINENO "configure"
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 $ac_includes_default
4610 #include <$ac_header>
4611 _ACEOF
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_header_compiler=yes
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_header_compiler=no
4631 rm -f conftest.$ac_objext conftest.$ac_ext
4632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4633 echo "${ECHO_T}$ac_header_compiler" >&6
4635 # Is the header present?
4636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4638 cat >conftest.$ac_ext <<_ACEOF
4639 #line $LINENO "configure"
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 #include <$ac_header>
4646 _ACEOF
4647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } >/dev/null; then
4655 if test -s conftest.err; then
4656 ac_cpp_err=$ac_cxx_preproc_warn_flag
4657 else
4658 ac_cpp_err=
4660 else
4661 ac_cpp_err=yes
4663 if test -z "$ac_cpp_err"; then
4664 ac_header_preproc=yes
4665 else
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 ac_header_preproc=no
4671 rm -f conftest.err conftest.$ac_ext
4672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4673 echo "${ECHO_T}$ac_header_preproc" >&6
4675 # So? What about this header?
4676 case $ac_header_compiler:$ac_header_preproc in
4677 yes:no )
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4683 cat <<\_ASBOX
4684 ## ------------------------------------ ##
4685 ## Report this to bug-autoconf@gnu.org. ##
4686 ## ------------------------------------ ##
4687 _ASBOX
4689 sed "s/^/$as_me: WARNING: /" >&2
4691 no:yes )
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4699 cat <<\_ASBOX
4700 ## ------------------------------------ ##
4701 ## Report this to bug-autoconf@gnu.org. ##
4702 ## ------------------------------------ ##
4703 _ASBOX
4705 sed "s/^/$as_me: WARNING: /" >&2
4707 esac
4708 echo "$as_me:$LINENO: checking for $ac_header" >&5
4709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713 eval "$as_ac_Header=$ac_header_preproc"
4715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4720 cat >>confdefs.h <<_ACEOF
4721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4722 _ACEOF
4723 SSLHDR=1
4726 done
4728 if test "${SSLHDR:-unset}" = "unset" ; then
4729 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
4730 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
4731 cat >conftest.$ac_ext <<_ACEOF
4732 #define OPENSSL_NO_KRB5
4733 #include <openssl/ssl.h>
4734 int main(int argc,char **argv){}
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -s conftest.$ac_objext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 SSLHDR=1
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4754 rm -f conftest.$ac_objext conftest.$ac_ext
4755 if test ${SSLHDR:-unset} != "unset" ; then
4756 echo "$as_me:$LINENO: result: yes" >&5
4757 echo "${ECHO_T}yes" >&6
4758 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
4759 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
4760 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
4761 else
4762 echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6
4768 if test "${SSLHDR:-unset}" = "unset" ; then
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
4778 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
4779 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
4780 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
4781 echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6
4783 else
4784 cat >conftest.$ac_ext <<_ACEOF
4785 #include "${openssl_dir}/include/openssl/ssl.h"
4786 int main(int argc,char **argv){ return 0; }
4787 _ACEOF
4788 $CC $CFLAGS -I${openssl_dir}/include -c conftest.c > /dev/null 2>&1
4789 if test $? = 0 ; then
4790 echo "$as_me:$LINENO: result: yes" >&5
4791 echo "${ECHO_T}yes" >&6
4792 SSLHDR=1
4793 SSLCCFLAGS=""
4794 SSLINCLUDEDIR="${openssl_dir}/include"
4795 SSLLIBDIR="${openssl_dir}/lib"
4796 break
4797 else
4798 echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6
4800 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
4801 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
4802 cat >conftest.$ac_ext <<_ACEOF
4803 #define OPENSSL_NO_KRB5
4804 #include "${openssl_dir}/include/openssl/ssl.h"
4805 int main(int argc,char **argv){}
4806 _ACEOF
4807 $CC $CFLAGS -I${openssl_dir}/openssl/include -c conftest.c > /dev/null 2>&1
4808 if test $? = 0 ; then
4809 echo "$as_me:$LINENO: result: yes" >&5
4810 echo "${ECHO_T}yes" >&6
4811 SSLHDR=1
4812 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
4813 SSLINCLUDEDIR="${openssl_dir}/include"
4814 SSLLIBDIR="${openssl_dir}/lib"
4815 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
4816 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
4817 break
4818 else
4819 echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6
4824 done
4825 ac_ext=cc
4826 ac_cpp='$CXXCPP $CPPFLAGS'
4827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4833 if test ${SSLHDR:-unset} != "unset" ; then
4834 HAS_OPENSSL=1
4837 cat >>confdefs.h <<\_ACEOF
4838 #define P_SSL 1
4839 _ACEOF
4841 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
4842 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
4844 if test ${SSLLIBDIR:-unset} != "unset" ; then
4845 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
4847 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
4848 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
4857 # Check whether --enable-expat or --disable-expat was given.
4858 if test "${enable_expat+set}" = set; then
4859 enableval="$enable_expat"
4860 expat=$enableval
4863 if test "$expat" = "no" ; then
4864 HAS_EXPAT=0
4866 cat >>confdefs.h <<\_ACEOF
4867 #define P_EXPAT 0
4868 _ACEOF
4870 else
4873 for ac_header in expat.h
4875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4877 echo "$as_me:$LINENO: checking for $ac_header" >&5
4878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4884 else
4885 # Is the header compilable?
4886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4888 cat >conftest.$ac_ext <<_ACEOF
4889 #line $LINENO "configure"
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 $ac_includes_default
4896 #include <$ac_header>
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_header_compiler=yes
4911 else
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4915 ac_header_compiler=no
4917 rm -f conftest.$ac_objext conftest.$ac_ext
4918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4919 echo "${ECHO_T}$ac_header_compiler" >&6
4921 # Is the header present?
4922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4924 cat >conftest.$ac_ext <<_ACEOF
4925 #line $LINENO "configure"
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #include <$ac_header>
4932 _ACEOF
4933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } >/dev/null; then
4941 if test -s conftest.err; then
4942 ac_cpp_err=$ac_cxx_preproc_warn_flag
4943 else
4944 ac_cpp_err=
4946 else
4947 ac_cpp_err=yes
4949 if test -z "$ac_cpp_err"; then
4950 ac_header_preproc=yes
4951 else
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 ac_header_preproc=no
4957 rm -f conftest.err conftest.$ac_ext
4958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4959 echo "${ECHO_T}$ac_header_preproc" >&6
4961 # So? What about this header?
4962 case $ac_header_compiler:$ac_header_preproc in
4963 yes:no )
4964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4969 cat <<\_ASBOX
4970 ## ------------------------------------ ##
4971 ## Report this to bug-autoconf@gnu.org. ##
4972 ## ------------------------------------ ##
4973 _ASBOX
4975 sed "s/^/$as_me: WARNING: /" >&2
4977 no:yes )
4978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4985 cat <<\_ASBOX
4986 ## ------------------------------------ ##
4987 ## Report this to bug-autoconf@gnu.org. ##
4988 ## ------------------------------------ ##
4989 _ASBOX
4991 sed "s/^/$as_me: WARNING: /" >&2
4993 esac
4994 echo "$as_me:$LINENO: checking for $ac_header" >&5
4995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 eval "$as_ac_Header=$ac_header_preproc"
5001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5006 cat >>confdefs.h <<_ACEOF
5007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5008 _ACEOF
5009 HAS_EXPAT=1
5012 done
5014 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5015 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
5016 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
5017 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 ac_check_lib_save_LIBS=$LIBS
5021 LIBS="-lexpat $LIBS"
5022 cat >conftest.$ac_ext <<_ACEOF
5023 #line $LINENO "configure"
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5030 /* Override any gcc2 internal prototype to avoid an error. */
5031 #ifdef __cplusplus
5032 extern "C"
5033 #endif
5034 /* We use char because int might match the return type of a gcc2
5035 builtin and then its argument prototype would still apply. */
5036 char XML_ParserCreate ();
5038 main ()
5040 XML_ParserCreate ();
5042 return 0;
5044 _ACEOF
5045 rm -f conftest.$ac_objext conftest$ac_exeext
5046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5047 (eval $ac_link) 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } &&
5051 { ac_try='test -s conftest$ac_exeext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 ac_cv_lib_expat_XML_ParserCreate=yes
5058 else
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5062 ac_cv_lib_expat_XML_ParserCreate=no
5064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5065 LIBS=$ac_check_lib_save_LIBS
5067 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5068 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
5069 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
5070 HAS_EXPAT=1
5071 else
5072 HAS_EXPAT=
5075 else
5076 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
5077 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
5078 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081 test "$cross_compiling" = yes &&
5082 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5083 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5084 { (exit 1); exit 1; }; }
5085 if test -r "/usr/local/include/expat.h"; then
5086 ac_cv_file__usr_local_include_expat_h=yes
5087 else
5088 ac_cv_file__usr_local_include_expat_h=no
5091 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
5092 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
5093 if test $ac_cv_file__usr_local_include_expat_h = yes; then
5094 HAS_EXPAT=1
5097 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5098 EXPATINCLUDEDIR=/usr/local/include
5099 EXPATLIBDIR=/usr/local/lib
5103 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5104 HAS_EXPAT=1
5107 cat >>confdefs.h <<\_ACEOF
5108 #define P_EXPAT 1
5109 _ACEOF
5111 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
5112 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
5114 if test ${EXPATLIBDIR:-unset} != "unset" ; then
5115 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
5117 ENDLDLIBS="$ENDLDLIBS -lexpat"
5126 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5127 if test "${enable_ipv6+set}" = set; then
5128 enableval="$enable_ipv6"
5129 ipv6=$enableval
5132 if test "$ipv6" = "no" ; then
5133 cat >>confdefs.h <<\_ACEOF
5134 #define P_HAS_IPV6 0
5135 _ACEOF
5137 HAS_IPV6=0
5139 else
5140 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
5141 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
5142 if test "${HAS_IPV6+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 cat >conftest.$ac_ext <<_ACEOF
5146 #line $LINENO "configure"
5147 /* confdefs.h. */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 #include <sys/types.h>
5153 #include <netinet/in.h>
5155 main ()
5157 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5159 return 0;
5161 _ACEOF
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 (eval $ac_try) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 HAS_IPV6=yes
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 HAS_IPV6=no
5181 rm -f conftest.$ac_objext conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
5184 echo "${ECHO_T}$HAS_IPV6" >&6
5186 if test $HAS_IPV6 = yes ; then
5188 cat >>confdefs.h <<\_ACEOF
5189 #define P_HAS_IPV6 1
5190 _ACEOF
5197 # Check whether --enable-qos or --disable-qos was given.
5198 if test "${enable_qos+set}" = set; then
5199 enableval="$enable_qos"
5200 qos=$enableval
5203 if test "$qos" = "no" ; then
5205 cat >>confdefs.h <<\_ACEOF
5206 #define P_HAS_QOS 0
5207 _ACEOF
5209 else
5211 cat >>confdefs.h <<\_ACEOF
5212 #define P_HAS_QOS 1
5213 _ACEOF
5220 # Check whether --enable-sdl or --disable-sdl was given.
5221 if test "${enable_sdl+set}" = set; then
5222 enableval="$enable_sdl"
5223 sdl=$enableval
5226 if test "$sdl" = "no" ; then
5227 HAS_SDL=0
5229 cat >>confdefs.h <<\_ACEOF
5230 #define P_SDL 0
5231 _ACEOF
5233 else
5234 if test "${SDLLIB:-unset}" = "unset" ; then
5235 SDLLIB=SDL
5239 for ac_header in SDL/SDL.h
5241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5243 echo "$as_me:$LINENO: checking for $ac_header" >&5
5244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5250 else
5251 # Is the header compilable?
5252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5254 cat >conftest.$ac_ext <<_ACEOF
5255 #line $LINENO "configure"
5256 /* confdefs.h. */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261 $ac_includes_default
5262 #include <$ac_header>
5263 _ACEOF
5264 rm -f conftest.$ac_objext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266 (eval $ac_compile) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -s conftest.$ac_objext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5276 ac_header_compiler=yes
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 ac_header_compiler=no
5283 rm -f conftest.$ac_objext conftest.$ac_ext
5284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5285 echo "${ECHO_T}$ac_header_compiler" >&6
5287 # Is the header present?
5288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 #include <$ac_header>
5298 _ACEOF
5299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } >/dev/null; then
5307 if test -s conftest.err; then
5308 ac_cpp_err=$ac_cxx_preproc_warn_flag
5309 else
5310 ac_cpp_err=
5312 else
5313 ac_cpp_err=yes
5315 if test -z "$ac_cpp_err"; then
5316 ac_header_preproc=yes
5317 else
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5321 ac_header_preproc=no
5323 rm -f conftest.err conftest.$ac_ext
5324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5325 echo "${ECHO_T}$ac_header_preproc" >&6
5327 # So? What about this header?
5328 case $ac_header_compiler:$ac_header_preproc in
5329 yes:no )
5330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5335 cat <<\_ASBOX
5336 ## ------------------------------------ ##
5337 ## Report this to bug-autoconf@gnu.org. ##
5338 ## ------------------------------------ ##
5339 _ASBOX
5341 sed "s/^/$as_me: WARNING: /" >&2
5343 no:yes )
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5351 cat <<\_ASBOX
5352 ## ------------------------------------ ##
5353 ## Report this to bug-autoconf@gnu.org. ##
5354 ## ------------------------------------ ##
5355 _ASBOX
5357 sed "s/^/$as_me: WARNING: /" >&2
5359 esac
5360 echo "$as_me:$LINENO: checking for $ac_header" >&5
5361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 eval "$as_ac_Header=$ac_header_preproc"
5367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5372 cat >>confdefs.h <<_ACEOF
5373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5374 _ACEOF
5375 HAS_SDL=1
5378 done
5380 if test "${HAS_SDL:-unset}" != "unset" ; then
5381 if test "${X11LIBDIR:-unset}" == "unset" ; then
5382 X11LIBDIR=/usr/lib/X11R6
5384 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5385 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5386 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 ac_check_lib_save_LIBS=$LIBS
5390 LIBS="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext -laa $LIBS"
5391 cat >conftest.$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5399 /* Override any gcc2 internal prototype to avoid an error. */
5400 #ifdef __cplusplus
5401 extern "C"
5402 #endif
5403 /* We use char because int might match the return type of a gcc2
5404 builtin and then its argument prototype would still apply. */
5405 char SDL_CreateYUVOverlay ();
5407 main ()
5409 SDL_CreateYUVOverlay ();
5411 return 0;
5413 _ACEOF
5414 rm -f conftest.$ac_objext conftest$ac_exeext
5415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5416 (eval $ac_link) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } &&
5420 { ac_try='test -s conftest$ac_exeext'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 (eval $ac_try) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }; then
5426 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
5427 else
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5431 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
5433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5434 LIBS=$ac_check_lib_save_LIBS
5436 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5437 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5438 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5439 HAS_SDL=1
5440 else
5441 HAS_SDL=
5446 if test "${HAS_SDL:-unset}" = "unset" ; then
5447 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5448 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5449 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 test "$cross_compiling" = yes &&
5453 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5454 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5455 { (exit 1); exit 1; }; }
5456 if test -r "/usr/local/include/SDL11/SDL.h"; then
5457 ac_cv_file__usr_local_include_SDL11_SDL_h=yes
5458 else
5459 ac_cv_file__usr_local_include_SDL11_SDL_h=no
5462 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
5463 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
5464 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
5465 HAS_SDL=1
5468 if test "${HAS_SDL:-unset}" != "unset" ; then
5469 SDLLIB=SDL-1.1
5473 if test "${HAS_SDL:-unset}" != "unset" ; then
5474 HAS_SDL=1
5477 cat >>confdefs.h <<\_ACEOF
5478 #define P_SDL 1
5479 _ACEOF
5481 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
5482 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
5484 if test ${SDLLIBDIR:-unset} != "unset" ; then
5485 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
5487 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
5493 # Check whether --enable-video or --disable-video was given.
5494 if test "${enable_video+set}" = set; then
5495 enableval="$enable_video"
5496 video=$enableval
5499 HAS_VIDEO_CAPTURE=0
5500 if test "$HAS_PLUGINS" = "0" ; then
5501 if test "$video" != "no" ; then
5502 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5503 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5504 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5505 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5509 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5510 else
5511 # Is the header compilable?
5512 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
5513 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
5514 cat >conftest.$ac_ext <<_ACEOF
5515 #line $LINENO "configure"
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 $ac_includes_default
5522 #include <linux/videodev.h>
5523 _ACEOF
5524 rm -f conftest.$ac_objext
5525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5526 (eval $ac_compile) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -s conftest.$ac_objext'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_header_compiler=yes
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5541 ac_header_compiler=no
5543 rm -f conftest.$ac_objext conftest.$ac_ext
5544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5545 echo "${ECHO_T}$ac_header_compiler" >&6
5547 # Is the header present?
5548 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
5549 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
5550 cat >conftest.$ac_ext <<_ACEOF
5551 #line $LINENO "configure"
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 #include <linux/videodev.h>
5558 _ACEOF
5559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } >/dev/null; then
5567 if test -s conftest.err; then
5568 ac_cpp_err=$ac_cxx_preproc_warn_flag
5569 else
5570 ac_cpp_err=
5572 else
5573 ac_cpp_err=yes
5575 if test -z "$ac_cpp_err"; then
5576 ac_header_preproc=yes
5577 else
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5581 ac_header_preproc=no
5583 rm -f conftest.err conftest.$ac_ext
5584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5585 echo "${ECHO_T}$ac_header_preproc" >&6
5587 # So? What about this header?
5588 case $ac_header_compiler:$ac_header_preproc in
5589 yes:no )
5590 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5591 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
5593 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
5595 cat <<\_ASBOX
5596 ## ------------------------------------ ##
5597 ## Report this to bug-autoconf@gnu.org. ##
5598 ## ------------------------------------ ##
5599 _ASBOX
5601 sed "s/^/$as_me: WARNING: /" >&2
5603 no:yes )
5604 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
5605 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
5606 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
5607 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
5608 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
5609 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
5611 cat <<\_ASBOX
5612 ## ------------------------------------ ##
5613 ## Report this to bug-autoconf@gnu.org. ##
5614 ## ------------------------------------ ##
5615 _ASBOX
5617 sed "s/^/$as_me: WARNING: /" >&2
5619 esac
5620 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5621 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5622 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625 ac_cv_header_linux_videodev_h=$ac_header_preproc
5627 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5628 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5631 if test $ac_cv_header_linux_videodev_h = yes; then
5632 HAS_VIDEO_CAPTURE=1
5636 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
5637 { echo "$as_me:$LINENO: No Video Capture support" >&5
5638 echo "$as_me: No Video Capture support" >&6;}
5640 cat >>confdefs.h <<\_ACEOF
5641 #define NO_VIDEO_CAPTURE
5642 _ACEOF
5649 # Check whether --enable-alsa or --disable-alsa was given.
5650 if test "${enable_alsa+set}" = set; then
5651 enableval="$enable_alsa"
5652 enable_alsa=$enableval
5655 HAS_ALSA=0
5656 if test "$HAS_PLUGINS" = "0" ; then
5657 if test "$enable_alsa" != "no" ; then
5658 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5659 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
5660 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
5661 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
5665 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
5666 else
5667 # Is the header compilable?
5668 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
5669 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
5670 cat >conftest.$ac_ext <<_ACEOF
5671 #line $LINENO "configure"
5672 /* confdefs.h. */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 $ac_includes_default
5678 #include <alsa/asoundlib.h>
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 (eval $ac_compile) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_header_compiler=yes
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_header_compiler=no
5699 rm -f conftest.$ac_objext conftest.$ac_ext
5700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5701 echo "${ECHO_T}$ac_header_compiler" >&6
5703 # Is the header present?
5704 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
5705 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
5706 cat >conftest.$ac_ext <<_ACEOF
5707 #line $LINENO "configure"
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #include <alsa/asoundlib.h>
5714 _ACEOF
5715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } >/dev/null; then
5723 if test -s conftest.err; then
5724 ac_cpp_err=$ac_cxx_preproc_warn_flag
5725 else
5726 ac_cpp_err=
5728 else
5729 ac_cpp_err=yes
5731 if test -z "$ac_cpp_err"; then
5732 ac_header_preproc=yes
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_header_preproc=no
5739 rm -f conftest.err conftest.$ac_ext
5740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5741 echo "${ECHO_T}$ac_header_preproc" >&6
5743 # So? What about this header?
5744 case $ac_header_compiler:$ac_header_preproc in
5745 yes:no )
5746 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5747 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5748 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
5749 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
5751 cat <<\_ASBOX
5752 ## ------------------------------------ ##
5753 ## Report this to bug-autoconf@gnu.org. ##
5754 ## ------------------------------------ ##
5755 _ASBOX
5757 sed "s/^/$as_me: WARNING: /" >&2
5759 no:yes )
5760 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
5761 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
5763 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
5765 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
5767 cat <<\_ASBOX
5768 ## ------------------------------------ ##
5769 ## Report this to bug-autoconf@gnu.org. ##
5770 ## ------------------------------------ ##
5771 _ASBOX
5773 sed "s/^/$as_me: WARNING: /" >&2
5775 esac
5776 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
5777 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
5778 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
5783 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
5784 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
5787 if test $ac_cv_header_alsa_asoundlib_h = yes; then
5788 HAS_ALSA=1
5792 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
5793 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
5794 if test "${HAS_ALSA}" = "1"; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796 echo "${ECHO_T}yes" >&6
5797 ENDLDLIBS="$ENDLDLIBS -lasound"
5798 else
5799 echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6
5806 if test "$OSTYPE" = "solaris" ; then
5807 USE_SYSTEM_SWAB=
5808 else
5809 echo "$as_me:$LINENO: checking for swab" >&5
5810 echo $ECHO_N "checking for swab... $ECHO_C" >&6
5811 if test "${ac_cv_func_swab+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 /* System header to define __stub macros and hopefully few prototypes,
5822 which can conflict with char swab (); below.
5823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824 <limits.h> exists even on freestanding compilers. */
5825 #ifdef __STDC__
5826 # include <limits.h>
5827 #else
5828 # include <assert.h>
5829 #endif
5830 /* Override any gcc2 internal prototype to avoid an error. */
5831 #ifdef __cplusplus
5832 extern "C"
5834 #endif
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5837 char swab ();
5838 /* The GNU C library defines this for functions which it implements
5839 to always fail with ENOSYS. Some functions are actually named
5840 something starting with __ and the normal name is an alias. */
5841 #if defined (__stub_swab) || defined (__stub___swab)
5842 choke me
5843 #else
5844 char (*f) () = swab;
5845 #endif
5846 #ifdef __cplusplus
5848 #endif
5851 main ()
5853 return f != swab;
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -s conftest$ac_exeext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 ac_cv_func_swab=yes
5871 else
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 ac_cv_func_swab=no
5877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5879 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
5880 echo "${ECHO_T}$ac_cv_func_swab" >&6
5881 if test $ac_cv_func_swab = yes; then
5882 USE_SYSTEM_SWAB=1
5886 if test "x$ac_cv_func_swab" = "xyes" ; then
5888 cat >>confdefs.h <<\_ACEOF
5889 #define USE_SYSTEM_SWAB
5890 _ACEOF
5895 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
5896 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
5897 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
5901 if test "${OSTYPE}" != "Darwin" ; then
5902 if test ${HAS_LIBDL} = yes ; then
5903 ENDLDLIBS="$ENDLDLIBS -ldl"
5912 ac_config_files="$ac_config_files make/ptbuildopts.mak"
5914 ac_config_files="$ac_config_files make/ptlib-config"
5916 ac_config_files="$ac_config_files Makefile"
5919 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
5920 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
5923 cat >confcache <<\_ACEOF
5924 # This file is a shell script that caches the results of configure
5925 # tests run on this system so they can be shared between configure
5926 # scripts and configure runs, see configure's option --config-cache.
5927 # It is not useful on other systems. If it contains results you don't
5928 # want to keep, you may remove or edit it.
5930 # config.status only pays attention to the cache file if you give it
5931 # the --recheck option to rerun configure.
5933 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5934 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5935 # following values.
5937 _ACEOF
5939 # The following way of writing the cache mishandles newlines in values,
5940 # but we know of no workaround that is simple, portable, and efficient.
5941 # So, don't put newlines in cache variables' values.
5942 # Ultrix sh set writes to stderr and can't be redirected directly,
5943 # and sets the high bit in the cache file unless we assign to the vars.
5945 (set) 2>&1 |
5946 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5947 *ac_space=\ *)
5948 # `set' does not quote correctly, so add quotes (double-quote
5949 # substitution turns \\\\ into \\, and sed turns \\ into \).
5950 sed -n \
5951 "s/'/'\\\\''/g;
5952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5955 # `set' quotes correctly as required by POSIX, so do not add quotes.
5956 sed -n \
5957 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5959 esac;
5961 sed '
5962 t clear
5963 : clear
5964 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5965 t end
5966 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5967 : end' >>confcache
5968 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5969 if test -w $cache_file; then
5970 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5971 cat confcache >$cache_file
5972 else
5973 echo "not updating unwritable cache $cache_file"
5976 rm -f confcache
5978 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5979 # Let make expand exec_prefix.
5980 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5982 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5983 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5984 # trailing colons and then remove the whole line if VPATH becomes empty
5985 # (actually we leave an empty line to preserve line numbers).
5986 if test "x$srcdir" = x.; then
5987 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5988 s/:*\$(srcdir):*/:/;
5989 s/:*\${srcdir}:*/:/;
5990 s/:*@srcdir@:*/:/;
5991 s/^\([^=]*=[ ]*\):*/\1/;
5992 s/:*$//;
5993 s/^[^=]*=[ ]*$//;
5997 DEFS=-DHAVE_CONFIG_H
5999 ac_libobjs=
6000 ac_ltlibobjs=
6001 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6002 # 1. Remove the extension, and $U if already installed.
6003 ac_i=`echo "$ac_i" |
6004 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6005 # 2. Add them.
6006 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6007 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6008 done
6009 LIBOBJS=$ac_libobjs
6011 LTLIBOBJS=$ac_ltlibobjs
6015 : ${CONFIG_STATUS=./config.status}
6016 ac_clean_files_save=$ac_clean_files
6017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6018 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6019 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6020 cat >$CONFIG_STATUS <<_ACEOF
6021 #! $SHELL
6022 # Generated by $as_me.
6023 # Run this file to recreate the current configuration.
6024 # Compiler output produced by configure, useful for debugging
6025 # configure, is in config.log if it exists.
6027 debug=false
6028 ac_cs_recheck=false
6029 ac_cs_silent=false
6030 SHELL=\${CONFIG_SHELL-$SHELL}
6031 _ACEOF
6033 cat >>$CONFIG_STATUS <<\_ACEOF
6034 ## --------------------- ##
6035 ## M4sh Initialization. ##
6036 ## --------------------- ##
6038 # Be Bourne compatible
6039 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6040 emulate sh
6041 NULLCMD=:
6042 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6043 # is contrary to our usage. Disable this feature.
6044 alias -g '${1+"$@"}'='"$@"'
6045 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6046 set -o posix
6049 # Support unset when possible.
6050 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6051 as_unset=unset
6052 else
6053 as_unset=false
6057 # Work around bugs in pre-3.0 UWIN ksh.
6058 $as_unset ENV MAIL MAILPATH
6059 PS1='$ '
6060 PS2='> '
6061 PS4='+ '
6063 # NLS nuisances.
6064 for as_var in \
6065 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6066 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6067 LC_TELEPHONE LC_TIME
6069 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6070 eval $as_var=C; export $as_var
6071 else
6072 $as_unset $as_var
6074 done
6076 # Required to use basename.
6077 if expr a : '\(a\)' >/dev/null 2>&1; then
6078 as_expr=expr
6079 else
6080 as_expr=false
6083 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6084 as_basename=basename
6085 else
6086 as_basename=false
6090 # Name of the executable.
6091 as_me=`$as_basename "$0" ||
6092 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6093 X"$0" : 'X\(//\)$' \| \
6094 X"$0" : 'X\(/\)$' \| \
6095 . : '\(.\)' 2>/dev/null ||
6096 echo X/"$0" |
6097 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6098 /^X\/\(\/\/\)$/{ s//\1/; q; }
6099 /^X\/\(\/\).*/{ s//\1/; q; }
6100 s/.*/./; q'`
6103 # PATH needs CR, and LINENO needs CR and PATH.
6104 # Avoid depending upon Character Ranges.
6105 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6106 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6107 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6108 as_cr_digits='0123456789'
6109 as_cr_alnum=$as_cr_Letters$as_cr_digits
6111 # The user is always right.
6112 if test "${PATH_SEPARATOR+set}" != set; then
6113 echo "#! /bin/sh" >conf$$.sh
6114 echo "exit 0" >>conf$$.sh
6115 chmod +x conf$$.sh
6116 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6117 PATH_SEPARATOR=';'
6118 else
6119 PATH_SEPARATOR=:
6121 rm -f conf$$.sh
6125 as_lineno_1=$LINENO
6126 as_lineno_2=$LINENO
6127 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6128 test "x$as_lineno_1" != "x$as_lineno_2" &&
6129 test "x$as_lineno_3" = "x$as_lineno_2" || {
6130 # Find who we are. Look in the path if we contain no path at all
6131 # relative or not.
6132 case $0 in
6133 *[\\/]* ) as_myself=$0 ;;
6134 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6140 done
6143 esac
6144 # We did not find ourselves, most probably we were run as `sh COMMAND'
6145 # in which case we are not to be found in the path.
6146 if test "x$as_myself" = x; then
6147 as_myself=$0
6149 if test ! -f "$as_myself"; then
6150 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6151 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6152 { (exit 1); exit 1; }; }
6154 case $CONFIG_SHELL in
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6159 IFS=$as_save_IFS
6160 test -z "$as_dir" && as_dir=.
6161 for as_base in sh bash ksh sh5; do
6162 case $as_dir in
6164 if ("$as_dir/$as_base" -c '
6165 as_lineno_1=$LINENO
6166 as_lineno_2=$LINENO
6167 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6168 test "x$as_lineno_1" != "x$as_lineno_2" &&
6169 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6170 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6171 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6172 CONFIG_SHELL=$as_dir/$as_base
6173 export CONFIG_SHELL
6174 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6175 fi;;
6176 esac
6177 done
6178 done
6180 esac
6182 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6183 # uniformly replaced by the line number. The first 'sed' inserts a
6184 # line-number line before each line; the second 'sed' does the real
6185 # work. The second script uses 'N' to pair each line-number line
6186 # with the numbered line, and appends trailing '-' during
6187 # substitution so that $LINENO is not a special case at line end.
6188 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6189 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6190 sed '=' <$as_myself |
6191 sed '
6193 s,$,-,
6194 : loop
6195 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6196 t loop
6197 s,-$,,
6198 s,^['$as_cr_digits']*\n,,
6199 ' >$as_me.lineno &&
6200 chmod +x $as_me.lineno ||
6201 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6202 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6203 { (exit 1); exit 1; }; }
6205 # Don't try to exec as it changes $[0], causing all sort of problems
6206 # (the dirname of $[0] is not the place where we might find the
6207 # original and so on. Autoconf is especially sensible to this).
6208 . ./$as_me.lineno
6209 # Exit status is that of the last command.
6210 exit
6214 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6215 *c*,-n*) ECHO_N= ECHO_C='
6216 ' ECHO_T=' ' ;;
6217 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6218 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6219 esac
6221 if expr a : '\(a\)' >/dev/null 2>&1; then
6222 as_expr=expr
6223 else
6224 as_expr=false
6227 rm -f conf$$ conf$$.exe conf$$.file
6228 echo >conf$$.file
6229 if ln -s conf$$.file conf$$ 2>/dev/null; then
6230 # We could just check for DJGPP; but this test a) works b) is more generic
6231 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6232 if test -f conf$$.exe; then
6233 # Don't use ln at all; we don't have any links
6234 as_ln_s='cp -p'
6235 else
6236 as_ln_s='ln -s'
6238 elif ln conf$$.file conf$$ 2>/dev/null; then
6239 as_ln_s=ln
6240 else
6241 as_ln_s='cp -p'
6243 rm -f conf$$ conf$$.exe conf$$.file
6245 if mkdir -p . 2>/dev/null; then
6246 as_mkdir_p=:
6247 else
6248 as_mkdir_p=false
6251 as_executable_p="test -f"
6253 # Sed expression to map a string onto a valid CPP name.
6254 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6256 # Sed expression to map a string onto a valid variable name.
6257 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6260 # IFS
6261 # We need space, tab and new line, in precisely that order.
6262 as_nl='
6264 IFS=" $as_nl"
6266 # CDPATH.
6267 $as_unset CDPATH
6269 exec 6>&1
6271 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6272 # report actual input values of CONFIG_FILES etc. instead of their
6273 # values after options handling. Logging --version etc. is OK.
6274 exec 5>>config.log
6276 echo
6277 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6278 ## Running $as_me. ##
6279 _ASBOX
6280 } >&5
6281 cat >&5 <<_CSEOF
6283 This file was extended by $as_me, which was
6284 generated by GNU Autoconf 2.57. Invocation command line was
6286 CONFIG_FILES = $CONFIG_FILES
6287 CONFIG_HEADERS = $CONFIG_HEADERS
6288 CONFIG_LINKS = $CONFIG_LINKS
6289 CONFIG_COMMANDS = $CONFIG_COMMANDS
6290 $ $0 $@
6292 _CSEOF
6293 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6294 echo >&5
6295 _ACEOF
6297 # Files that config.status was made for.
6298 if test -n "$ac_config_files"; then
6299 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6302 if test -n "$ac_config_headers"; then
6303 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6306 if test -n "$ac_config_links"; then
6307 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6310 if test -n "$ac_config_commands"; then
6311 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6314 cat >>$CONFIG_STATUS <<\_ACEOF
6316 ac_cs_usage="\
6317 \`$as_me' instantiates files from templates according to the
6318 current configuration.
6320 Usage: $0 [OPTIONS] [FILE]...
6322 -h, --help print this help, then exit
6323 -V, --version print version number, then exit
6324 -q, --quiet do not print progress messages
6325 -d, --debug don't remove temporary files
6326 --recheck update $as_me by reconfiguring in the same conditions
6327 --file=FILE[:TEMPLATE]
6328 instantiate the configuration file FILE
6329 --header=FILE[:TEMPLATE]
6330 instantiate the configuration header FILE
6332 Configuration files:
6333 $config_files
6335 Configuration headers:
6336 $config_headers
6338 Report bugs to <bug-autoconf@gnu.org>."
6339 _ACEOF
6341 cat >>$CONFIG_STATUS <<_ACEOF
6342 ac_cs_version="\\
6343 config.status
6344 configured by $0, generated by GNU Autoconf 2.57,
6345 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6347 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6348 Free Software Foundation, Inc.
6349 This config.status script is free software; the Free Software Foundation
6350 gives unlimited permission to copy, distribute and modify it."
6351 srcdir=$srcdir
6352 _ACEOF
6354 cat >>$CONFIG_STATUS <<\_ACEOF
6355 # If no file are specified by the user, then we need to provide default
6356 # value. By we need to know if files were specified by the user.
6357 ac_need_defaults=:
6358 while test $# != 0
6360 case $1 in
6361 --*=*)
6362 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6363 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6364 ac_shift=:
6367 ac_option=$1
6368 ac_optarg=$2
6369 ac_shift=shift
6371 *) # This is not an option, so the user has probably given explicit
6372 # arguments.
6373 ac_option=$1
6374 ac_need_defaults=false;;
6375 esac
6377 case $ac_option in
6378 # Handling of the options.
6379 _ACEOF
6380 cat >>$CONFIG_STATUS <<\_ACEOF
6381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6382 ac_cs_recheck=: ;;
6383 --version | --vers* | -V )
6384 echo "$ac_cs_version"; exit 0 ;;
6385 --he | --h)
6386 # Conflict between --help and --header
6387 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6388 Try \`$0 --help' for more information." >&5
6389 echo "$as_me: error: ambiguous option: $1
6390 Try \`$0 --help' for more information." >&2;}
6391 { (exit 1); exit 1; }; };;
6392 --help | --hel | -h )
6393 echo "$ac_cs_usage"; exit 0 ;;
6394 --debug | --d* | -d )
6395 debug=: ;;
6396 --file | --fil | --fi | --f )
6397 $ac_shift
6398 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6399 ac_need_defaults=false;;
6400 --header | --heade | --head | --hea )
6401 $ac_shift
6402 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6403 ac_need_defaults=false;;
6404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6406 ac_cs_silent=: ;;
6408 # This is an error.
6409 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6410 Try \`$0 --help' for more information." >&5
6411 echo "$as_me: error: unrecognized option: $1
6412 Try \`$0 --help' for more information." >&2;}
6413 { (exit 1); exit 1; }; } ;;
6415 *) ac_config_targets="$ac_config_targets $1" ;;
6417 esac
6418 shift
6419 done
6421 ac_configure_extra_args=
6423 if $ac_cs_silent; then
6424 exec 6>/dev/null
6425 ac_configure_extra_args="$ac_configure_extra_args --silent"
6428 _ACEOF
6429 cat >>$CONFIG_STATUS <<_ACEOF
6430 if \$ac_cs_recheck; then
6431 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6432 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6435 _ACEOF
6441 cat >>$CONFIG_STATUS <<\_ACEOF
6442 for ac_config_target in $ac_config_targets
6444 case "$ac_config_target" in
6445 # Handling of arguments.
6446 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
6447 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
6448 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6449 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
6450 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6451 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6452 { (exit 1); exit 1; }; };;
6453 esac
6454 done
6456 # If the user did not use the arguments to specify the items to instantiate,
6457 # then the envvar interface is used. Set only those that are not.
6458 # We use the long form for the default assignment because of an extremely
6459 # bizarre bug on SunOS 4.1.3.
6460 if $ac_need_defaults; then
6461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6465 # Have a temporary directory for convenience. Make it in the build tree
6466 # simply because there is no reason to put it here, and in addition,
6467 # creating and moving files from /tmp can sometimes cause problems.
6468 # Create a temporary directory, and hook for its removal unless debugging.
6469 $debug ||
6471 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6472 trap '{ (exit 1); exit 1; }' 1 2 13 15
6475 # Create a (secure) tmp directory for tmp files.
6478 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6479 test -n "$tmp" && test -d "$tmp"
6480 } ||
6482 tmp=./confstat$$-$RANDOM
6483 (umask 077 && mkdir $tmp)
6484 } ||
6486 echo "$me: cannot create a temporary directory in ." >&2
6487 { (exit 1); exit 1; }
6490 _ACEOF
6492 cat >>$CONFIG_STATUS <<_ACEOF
6495 # CONFIG_FILES section.
6498 # No need to generate the scripts if there are no CONFIG_FILES.
6499 # This happens for instance when ./config.status config.h
6500 if test -n "\$CONFIG_FILES"; then
6501 # Protect against being on the right side of a sed subst in config.status.
6502 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6503 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6504 s,@SHELL@,$SHELL,;t t
6505 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6506 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6507 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6508 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6509 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6510 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6511 s,@exec_prefix@,$exec_prefix,;t t
6512 s,@prefix@,$prefix,;t t
6513 s,@program_transform_name@,$program_transform_name,;t t
6514 s,@bindir@,$bindir,;t t
6515 s,@sbindir@,$sbindir,;t t
6516 s,@libexecdir@,$libexecdir,;t t
6517 s,@datadir@,$datadir,;t t
6518 s,@sysconfdir@,$sysconfdir,;t t
6519 s,@sharedstatedir@,$sharedstatedir,;t t
6520 s,@localstatedir@,$localstatedir,;t t
6521 s,@libdir@,$libdir,;t t
6522 s,@includedir@,$includedir,;t t
6523 s,@oldincludedir@,$oldincludedir,;t t
6524 s,@infodir@,$infodir,;t t
6525 s,@mandir@,$mandir,;t t
6526 s,@build_alias@,$build_alias,;t t
6527 s,@host_alias@,$host_alias,;t t
6528 s,@target_alias@,$target_alias,;t t
6529 s,@DEFS@,$DEFS,;t t
6530 s,@ECHO_C@,$ECHO_C,;t t
6531 s,@ECHO_N@,$ECHO_N,;t t
6532 s,@ECHO_T@,$ECHO_T,;t t
6533 s,@LIBS@,$LIBS,;t t
6534 s,@subdirs@,$subdirs,;t t
6535 s,@CXX@,$CXX,;t t
6536 s,@CXXFLAGS@,$CXXFLAGS,;t t
6537 s,@LDFLAGS@,$LDFLAGS,;t t
6538 s,@CPPFLAGS@,$CPPFLAGS,;t t
6539 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6540 s,@EXEEXT@,$EXEEXT,;t t
6541 s,@OBJEXT@,$OBJEXT,;t t
6542 s,@PWLIBDIR@,$PWLIBDIR,;t t
6543 s,@PWINSTDIR@,$PWINSTDIR,;t t
6544 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6545 s,@LIBDIR@,$LIBDIR,;t t
6546 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
6547 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
6548 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
6549 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
6550 s,@build@,$build,;t t
6551 s,@build_cpu@,$build_cpu,;t t
6552 s,@build_vendor@,$build_vendor,;t t
6553 s,@build_os@,$build_os,;t t
6554 s,@host@,$host,;t t
6555 s,@host_cpu@,$host_cpu,;t t
6556 s,@host_vendor@,$host_vendor,;t t
6557 s,@host_os@,$host_os,;t t
6558 s,@target@,$target,;t t
6559 s,@target_cpu@,$target_cpu,;t t
6560 s,@target_vendor@,$target_vendor,;t t
6561 s,@target_os@,$target_os,;t t
6562 s,@MACHTYPE@,$MACHTYPE,;t t
6563 s,@OSTYPE@,$OSTYPE,;t t
6564 s,@OSRELEASE@,$OSRELEASE,;t t
6565 s,@TARGETDIR@,$TARGETDIR,;t t
6566 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
6567 s,@CXXCPP@,$CXXCPP,;t t
6568 s,@EGREP@,$EGREP,;t t
6569 s,@HAS_REGEX@,$HAS_REGEX,;t t
6570 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
6571 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
6572 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
6573 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
6574 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
6575 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
6576 s,@HAS_IPV6@,$HAS_IPV6,;t t
6577 s,@HAS_SDL@,$HAS_SDL,;t t
6578 s,@HAS_VIDEO_CAPTURE@,$HAS_VIDEO_CAPTURE,;t t
6579 s,@HAS_ALSA@,$HAS_ALSA,;t t
6580 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
6581 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
6582 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
6583 s,@LIBOBJS@,$LIBOBJS,;t t
6584 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6585 CEOF
6587 _ACEOF
6589 cat >>$CONFIG_STATUS <<\_ACEOF
6590 # Split the substitutions into bite-sized pieces for seds with
6591 # small command number limits, like on Digital OSF/1 and HP-UX.
6592 ac_max_sed_lines=48
6593 ac_sed_frag=1 # Number of current file.
6594 ac_beg=1 # First line for current file.
6595 ac_end=$ac_max_sed_lines # Line after last line for current file.
6596 ac_more_lines=:
6597 ac_sed_cmds=
6598 while $ac_more_lines; do
6599 if test $ac_beg -gt 1; then
6600 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6601 else
6602 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6604 if test ! -s $tmp/subs.frag; then
6605 ac_more_lines=false
6606 else
6607 # The purpose of the label and of the branching condition is to
6608 # speed up the sed processing (if there are no `@' at all, there
6609 # is no need to browse any of the substitutions).
6610 # These are the two extra sed commands mentioned above.
6611 (echo ':t
6612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6613 if test -z "$ac_sed_cmds"; then
6614 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6615 else
6616 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6618 ac_sed_frag=`expr $ac_sed_frag + 1`
6619 ac_beg=$ac_end
6620 ac_end=`expr $ac_end + $ac_max_sed_lines`
6622 done
6623 if test -z "$ac_sed_cmds"; then
6624 ac_sed_cmds=cat
6626 fi # test -n "$CONFIG_FILES"
6628 _ACEOF
6629 cat >>$CONFIG_STATUS <<\_ACEOF
6630 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6632 case $ac_file in
6633 - | *:- | *:-:* ) # input from stdin
6634 cat >$tmp/stdin
6635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6639 * ) ac_file_in=$ac_file.in ;;
6640 esac
6642 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6643 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6644 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6645 X"$ac_file" : 'X\(//\)[^/]' \| \
6646 X"$ac_file" : 'X\(//\)$' \| \
6647 X"$ac_file" : 'X\(/\)' \| \
6648 . : '\(.\)' 2>/dev/null ||
6649 echo X"$ac_file" |
6650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6652 /^X\(\/\/\)$/{ s//\1/; q; }
6653 /^X\(\/\).*/{ s//\1/; q; }
6654 s/.*/./; q'`
6655 { if $as_mkdir_p; then
6656 mkdir -p "$ac_dir"
6657 else
6658 as_dir="$ac_dir"
6659 as_dirs=
6660 while test ! -d "$as_dir"; do
6661 as_dirs="$as_dir $as_dirs"
6662 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6664 X"$as_dir" : 'X\(//\)[^/]' \| \
6665 X"$as_dir" : 'X\(//\)$' \| \
6666 X"$as_dir" : 'X\(/\)' \| \
6667 . : '\(.\)' 2>/dev/null ||
6668 echo X"$as_dir" |
6669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6671 /^X\(\/\/\)$/{ s//\1/; q; }
6672 /^X\(\/\).*/{ s//\1/; q; }
6673 s/.*/./; q'`
6674 done
6675 test ! -n "$as_dirs" || mkdir $as_dirs
6676 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6677 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6678 { (exit 1); exit 1; }; }; }
6680 ac_builddir=.
6682 if test "$ac_dir" != .; then
6683 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6684 # A "../" for each directory in $ac_dir_suffix.
6685 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6686 else
6687 ac_dir_suffix= ac_top_builddir=
6690 case $srcdir in
6691 .) # No --srcdir option. We are building in place.
6692 ac_srcdir=.
6693 if test -z "$ac_top_builddir"; then
6694 ac_top_srcdir=.
6695 else
6696 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6697 fi ;;
6698 [\\/]* | ?:[\\/]* ) # Absolute path.
6699 ac_srcdir=$srcdir$ac_dir_suffix;
6700 ac_top_srcdir=$srcdir ;;
6701 *) # Relative path.
6702 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6703 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6704 esac
6705 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6706 # absolute.
6707 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6708 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6709 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6710 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6714 if test x"$ac_file" != x-; then
6715 { echo "$as_me:$LINENO: creating $ac_file" >&5
6716 echo "$as_me: creating $ac_file" >&6;}
6717 rm -f "$ac_file"
6719 # Let's still pretend it is `configure' which instantiates (i.e., don't
6720 # use $as_me), people would be surprised to read:
6721 # /* config.h. Generated by config.status. */
6722 if test x"$ac_file" = x-; then
6723 configure_input=
6724 else
6725 configure_input="$ac_file. "
6727 configure_input=$configure_input"Generated from `echo $ac_file_in |
6728 sed 's,.*/,,'` by configure."
6730 # First look for the input files in the build tree, otherwise in the
6731 # src tree.
6732 ac_file_inputs=`IFS=:
6733 for f in $ac_file_in; do
6734 case $f in
6735 -) echo $tmp/stdin ;;
6736 [\\/$]*)
6737 # Absolute (can't be DOS-style, as IFS=:)
6738 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6739 echo "$as_me: error: cannot find input file: $f" >&2;}
6740 { (exit 1); exit 1; }; }
6741 echo $f;;
6742 *) # Relative
6743 if test -f "$f"; then
6744 # Build tree
6745 echo $f
6746 elif test -f "$srcdir/$f"; then
6747 # Source tree
6748 echo $srcdir/$f
6749 else
6750 # /dev/null tree
6751 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6752 echo "$as_me: error: cannot find input file: $f" >&2;}
6753 { (exit 1); exit 1; }; }
6754 fi;;
6755 esac
6756 done` || { (exit 1); exit 1; }
6757 _ACEOF
6758 cat >>$CONFIG_STATUS <<_ACEOF
6759 sed "$ac_vpsub
6760 $extrasub
6761 _ACEOF
6762 cat >>$CONFIG_STATUS <<\_ACEOF
6764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6765 s,@configure_input@,$configure_input,;t t
6766 s,@srcdir@,$ac_srcdir,;t t
6767 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6768 s,@top_srcdir@,$ac_top_srcdir,;t t
6769 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6770 s,@builddir@,$ac_builddir,;t t
6771 s,@abs_builddir@,$ac_abs_builddir,;t t
6772 s,@top_builddir@,$ac_top_builddir,;t t
6773 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6774 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6775 rm -f $tmp/stdin
6776 if test x"$ac_file" != x-; then
6777 mv $tmp/out $ac_file
6778 else
6779 cat $tmp/out
6780 rm -f $tmp/out
6783 # Run the commands associated with the file.
6784 case $ac_file in
6785 make/ptlib-config ) chmod a+x make/ptlib-config ;;
6786 esac
6787 done
6788 _ACEOF
6789 cat >>$CONFIG_STATUS <<\_ACEOF
6792 # CONFIG_HEADER section.
6795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6798 # ac_d sets the value in "#define NAME VALUE" lines.
6799 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6800 ac_dB='[ ].*$,\1#\2'
6801 ac_dC=' '
6802 ac_dD=',;t'
6803 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6804 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6805 ac_uB='$,\1#\2define\3'
6806 ac_uC=' '
6807 ac_uD=',;t'
6809 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6811 case $ac_file in
6812 - | *:- | *:-:* ) # input from stdin
6813 cat >$tmp/stdin
6814 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6816 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6817 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6818 * ) ac_file_in=$ac_file.in ;;
6819 esac
6821 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6822 echo "$as_me: creating $ac_file" >&6;}
6824 # First look for the input files in the build tree, otherwise in the
6825 # src tree.
6826 ac_file_inputs=`IFS=:
6827 for f in $ac_file_in; do
6828 case $f in
6829 -) echo $tmp/stdin ;;
6830 [\\/$]*)
6831 # Absolute (can't be DOS-style, as IFS=:)
6832 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6833 echo "$as_me: error: cannot find input file: $f" >&2;}
6834 { (exit 1); exit 1; }; }
6835 echo $f;;
6836 *) # Relative
6837 if test -f "$f"; then
6838 # Build tree
6839 echo $f
6840 elif test -f "$srcdir/$f"; then
6841 # Source tree
6842 echo $srcdir/$f
6843 else
6844 # /dev/null tree
6845 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6846 echo "$as_me: error: cannot find input file: $f" >&2;}
6847 { (exit 1); exit 1; }; }
6848 fi;;
6849 esac
6850 done` || { (exit 1); exit 1; }
6851 # Remove the trailing spaces.
6852 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6854 _ACEOF
6856 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6857 # `conftest.undefs', that substitutes the proper values into
6858 # config.h.in to produce config.h. The first handles `#define'
6859 # templates, and the second `#undef' templates.
6860 # And first: Protect against being on the right side of a sed subst in
6861 # config.status. Protect against being in an unquoted here document
6862 # in config.status.
6863 rm -f conftest.defines conftest.undefs
6864 # Using a here document instead of a string reduces the quoting nightmare.
6865 # Putting comments in sed scripts is not portable.
6867 # `end' is used to avoid that the second main sed command (meant for
6868 # 0-ary CPP macros) applies to n-ary macro definitions.
6869 # See the Autoconf documentation for `clear'.
6870 cat >confdef2sed.sed <<\_ACEOF
6871 s/[\\&,]/\\&/g
6872 s,[\\$`],\\&,g
6873 t clear
6874 : clear
6875 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6876 t end
6877 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6878 : end
6879 _ACEOF
6880 # If some macros were called several times there might be several times
6881 # the same #defines, which is useless. Nevertheless, we may not want to
6882 # sort them, since we want the *last* AC-DEFINE to be honored.
6883 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6884 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6885 rm -f confdef2sed.sed
6887 # This sed command replaces #undef with comments. This is necessary, for
6888 # example, in the case of _POSIX_SOURCE, which is predefined and required
6889 # on some systems where configure will not decide to define it.
6890 cat >>conftest.undefs <<\_ACEOF
6891 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6892 _ACEOF
6894 # Break up conftest.defines because some shells have a limit on the size
6895 # of here documents, and old seds have small limits too (100 cmds).
6896 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6897 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6898 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6899 echo ' :' >>$CONFIG_STATUS
6900 rm -f conftest.tail
6901 while grep . conftest.defines >/dev/null
6903 # Write a limited-size here document to $tmp/defines.sed.
6904 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6905 # Speed up: don't consider the non `#define' lines.
6906 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6907 # Work around the forget-to-reset-the-flag bug.
6908 echo 't clr' >>$CONFIG_STATUS
6909 echo ': clr' >>$CONFIG_STATUS
6910 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6911 echo 'CEOF
6912 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6913 rm -f $tmp/in
6914 mv $tmp/out $tmp/in
6915 ' >>$CONFIG_STATUS
6916 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6917 rm -f conftest.defines
6918 mv conftest.tail conftest.defines
6919 done
6920 rm -f conftest.defines
6921 echo ' fi # grep' >>$CONFIG_STATUS
6922 echo >>$CONFIG_STATUS
6924 # Break up conftest.undefs because some shells have a limit on the size
6925 # of here documents, and old seds have small limits too (100 cmds).
6926 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6927 rm -f conftest.tail
6928 while grep . conftest.undefs >/dev/null
6930 # Write a limited-size here document to $tmp/undefs.sed.
6931 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6932 # Speed up: don't consider the non `#undef'
6933 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6934 # Work around the forget-to-reset-the-flag bug.
6935 echo 't clr' >>$CONFIG_STATUS
6936 echo ': clr' >>$CONFIG_STATUS
6937 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6938 echo 'CEOF
6939 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6940 rm -f $tmp/in
6941 mv $tmp/out $tmp/in
6942 ' >>$CONFIG_STATUS
6943 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6944 rm -f conftest.undefs
6945 mv conftest.tail conftest.undefs
6946 done
6947 rm -f conftest.undefs
6949 cat >>$CONFIG_STATUS <<\_ACEOF
6950 # Let's still pretend it is `configure' which instantiates (i.e., don't
6951 # use $as_me), people would be surprised to read:
6952 # /* config.h. Generated by config.status. */
6953 if test x"$ac_file" = x-; then
6954 echo "/* Generated by configure. */" >$tmp/config.h
6955 else
6956 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6958 cat $tmp/in >>$tmp/config.h
6959 rm -f $tmp/in
6960 if test x"$ac_file" != x-; then
6961 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6962 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6963 echo "$as_me: $ac_file is unchanged" >&6;}
6964 else
6965 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6967 X"$ac_file" : 'X\(//\)[^/]' \| \
6968 X"$ac_file" : 'X\(//\)$' \| \
6969 X"$ac_file" : 'X\(/\)' \| \
6970 . : '\(.\)' 2>/dev/null ||
6971 echo X"$ac_file" |
6972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6974 /^X\(\/\/\)$/{ s//\1/; q; }
6975 /^X\(\/\).*/{ s//\1/; q; }
6976 s/.*/./; q'`
6977 { if $as_mkdir_p; then
6978 mkdir -p "$ac_dir"
6979 else
6980 as_dir="$ac_dir"
6981 as_dirs=
6982 while test ! -d "$as_dir"; do
6983 as_dirs="$as_dir $as_dirs"
6984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6986 X"$as_dir" : 'X\(//\)[^/]' \| \
6987 X"$as_dir" : 'X\(//\)$' \| \
6988 X"$as_dir" : 'X\(/\)' \| \
6989 . : '\(.\)' 2>/dev/null ||
6990 echo X"$as_dir" |
6991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6993 /^X\(\/\/\)$/{ s//\1/; q; }
6994 /^X\(\/\).*/{ s//\1/; q; }
6995 s/.*/./; q'`
6996 done
6997 test ! -n "$as_dirs" || mkdir $as_dirs
6998 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7000 { (exit 1); exit 1; }; }; }
7002 rm -f $ac_file
7003 mv $tmp/config.h $ac_file
7005 else
7006 cat $tmp/config.h
7007 rm -f $tmp/config.h
7009 done
7010 _ACEOF
7012 cat >>$CONFIG_STATUS <<\_ACEOF
7014 { (exit 0); exit 0; }
7015 _ACEOF
7016 chmod +x $CONFIG_STATUS
7017 ac_clean_files=$ac_clean_files_save
7020 # configure is writing to config.log, and then calls config.status.
7021 # config.status does its own redirection, appending to config.log.
7022 # Unfortunately, on DOS this fails, as config.log is still kept open
7023 # by configure, so config.status won't be able to write to it; its
7024 # output is simply discarded. So we exec the FD to /dev/null,
7025 # effectively closing config.log, so it can be properly (re)opened and
7026 # appended to by config.status. When coming back to configure, we
7027 # need to make the FD available again.
7028 if test "$no_create" != yes; then
7029 ac_cs_success=:
7030 ac_config_status_args=
7031 test "$silent" = yes &&
7032 ac_config_status_args="$ac_config_status_args --quiet"
7033 exec 5>/dev/null
7034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7035 exec 5>>config.log
7036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7037 # would make configure fail if this is the last instruction.
7038 $ac_cs_success || { (exit 1); exit 1; }
7042 # CONFIG_SUBDIRS section.
7044 if test "$no_recursion" != yes; then
7046 # Remove --cache-file and --srcdir arguments so they do not pile up.
7047 ac_sub_configure_args=
7048 ac_prev=
7049 for ac_arg in $ac_configure_args; do
7050 if test -n "$ac_prev"; then
7051 ac_prev=
7052 continue
7054 case $ac_arg in
7055 -cache-file | --cache-file | --cache-fil | --cache-fi \
7056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7057 ac_prev=cache_file ;;
7058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7060 | --c=*)
7062 --config-cache | -C)
7064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7065 ac_prev=srcdir ;;
7066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7069 ac_prev=prefix ;;
7070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7072 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7073 esac
7074 done
7076 # Always prepend --prefix to ensure using the same prefix
7077 # in subdir configurations.
7078 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7080 ac_popdir=`pwd`
7081 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7083 # Do not complain, so a configure script can configure whichever
7084 # parts of a large source tree are present.
7085 test -d $srcdir/$ac_dir || continue
7087 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7088 echo "$as_me: configuring in $ac_dir" >&6;}
7089 { if $as_mkdir_p; then
7090 mkdir -p "$ac_dir"
7091 else
7092 as_dir="$ac_dir"
7093 as_dirs=
7094 while test ! -d "$as_dir"; do
7095 as_dirs="$as_dir $as_dirs"
7096 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7098 X"$as_dir" : 'X\(//\)[^/]' \| \
7099 X"$as_dir" : 'X\(//\)$' \| \
7100 X"$as_dir" : 'X\(/\)' \| \
7101 . : '\(.\)' 2>/dev/null ||
7102 echo X"$as_dir" |
7103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7105 /^X\(\/\/\)$/{ s//\1/; q; }
7106 /^X\(\/\).*/{ s//\1/; q; }
7107 s/.*/./; q'`
7108 done
7109 test ! -n "$as_dirs" || mkdir $as_dirs
7110 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7111 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7112 { (exit 1); exit 1; }; }; }
7114 ac_builddir=.
7116 if test "$ac_dir" != .; then
7117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7118 # A "../" for each directory in $ac_dir_suffix.
7119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7120 else
7121 ac_dir_suffix= ac_top_builddir=
7124 case $srcdir in
7125 .) # No --srcdir option. We are building in place.
7126 ac_srcdir=.
7127 if test -z "$ac_top_builddir"; then
7128 ac_top_srcdir=.
7129 else
7130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7131 fi ;;
7132 [\\/]* | ?:[\\/]* ) # Absolute path.
7133 ac_srcdir=$srcdir$ac_dir_suffix;
7134 ac_top_srcdir=$srcdir ;;
7135 *) # Relative path.
7136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7138 esac
7139 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7140 # absolute.
7141 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7142 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7143 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7144 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7147 cd $ac_dir
7149 # Check for guested configure; otherwise get Cygnus style configure.
7150 if test -f $ac_srcdir/configure.gnu; then
7151 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7152 elif test -f $ac_srcdir/configure; then
7153 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7154 elif test -f $ac_srcdir/configure.in; then
7155 ac_sub_configure=$ac_configure
7156 else
7157 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7159 ac_sub_configure=
7162 # The recursion is here.
7163 if test -n "$ac_sub_configure"; then
7164 # Make the cache file name correct relative to the subdirectory.
7165 case $cache_file in
7166 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7167 *) # Relative path.
7168 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7169 esac
7171 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7172 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7173 # The eval makes quoting arguments work.
7174 eval $ac_sub_configure $ac_sub_configure_args \
7175 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7176 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7177 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7178 { (exit 1); exit 1; }; }
7181 cd $ac_popdir
7182 done