Added function to get external router address, also did a bunch of documentation.
[pwlib.git] / configure
blob2abd3a76d721ea1253a8096fbc873644de68870c
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_ALSA STDCCFLAGS OPTSTDCCFLAGS ENDLDLIBS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXX_set=${CXX+set}
754 ac_env_CXX_value=$CXX
755 ac_cv_env_CXX_set=${CXX+set}
756 ac_cv_env_CXX_value=$CXX
757 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_env_CXXFLAGS_value=$CXXFLAGS
759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXXCPP_set=${CXXCPP+set}
770 ac_env_CXXCPP_value=$CXXCPP
771 ac_cv_env_CXXCPP_set=${CXXCPP+set}
772 ac_cv_env_CXXCPP_value=$CXXCPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838 _ACEOF
841 if test -n "$ac_init_help"; then
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-internalregex force internal regex library
849 --enable-plugins enable plugins' support in PWLIB
850 --disable-resolver disable DNS resolver support in PWLIB
851 --disable-openldap disable OpenLDAP support in PWLIB
852 --disable-openssl disable OpenSSL support in PWLIB
853 --disable-expat disable XML support in PWLIB
854 --disable-ipv6 disable IPV6 support in PWLIB
855 --disable-qos disable QOS support in PWLIB
856 --disable-sdl disable SDL support in PWLIB
857 --disable-video disable non-plugin video device support in PWLIB
858 --enable-alsa disable non-plugin ALSA audio support
860 Some influential environment variables:
861 CXX C++ compiler command
862 CXXFLAGS C++ compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CXXCPP C++ preprocessor
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
872 _ACEOF
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 # absolute.
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912 cd $ac_dir
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
915 echo
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
918 echo
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
922 echo
923 $ac_configure --help
924 else
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927 cd $ac_popdir
928 done
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
933 cat <<\_ACEOF
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
939 _ACEOF
940 exit 0
942 exec 5>config.log
943 cat >&5 <<_ACEOF
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
950 $ $0 $@
952 _ACEOF
954 cat <<_ASUNAME
955 ## --------- ##
956 ## Platform. ##
957 ## --------- ##
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
976 _ASUNAME
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 for as_dir in $PATH
981 IFS=$as_save_IFS
982 test -z "$as_dir" && as_dir=.
983 echo "PATH: $as_dir"
984 done
986 } >&5
988 cat >&5 <<_ACEOF
991 ## ----------- ##
992 ## Core tests. ##
993 ## ----------- ##
995 _ACEOF
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1003 ac_configure_args=
1004 ac_configure_args0=
1005 ac_configure_args1=
1006 ac_sep=
1007 ac_must_keep_next=false
1008 for ac_pass in 1 2
1010 for ac_arg
1012 case $ac_arg in
1013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 continue ;;
1017 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019 esac
1020 case $ac_pass in
1021 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1023 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true; then
1025 ac_must_keep_next=false # Got value, back to normal.
1026 else
1027 case $ac_arg in
1028 *=* | --config-cache | -C | -disable-* | --disable-* \
1029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1031 | -with-* | --with-* | -without-* | --without-* | --x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034 esac
1036 -* ) ac_must_keep_next=true ;;
1037 esac
1039 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1041 ac_sep=" "
1043 esac
1044 done
1045 done
1046 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1047 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1057 echo
1059 cat <<\_ASBOX
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1063 _ASBOX
1064 echo
1065 # The following way of writing the cache mishandles newlines in values,
1067 (set) 2>&1 |
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 *ac_space=\ *)
1070 sed -n \
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075 sed -n \
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1078 esac;
1080 echo
1082 cat <<\_ASBOX
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1086 _ASBOX
1087 echo
1088 for ac_var in $ac_subst_vars
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1092 done | sort
1093 echo
1095 if test -n "$ac_subst_files"; then
1096 cat <<\_ASBOX
1097 ## ------------- ##
1098 ## Output files. ##
1099 ## ------------- ##
1100 _ASBOX
1101 echo
1102 for ac_var in $ac_subst_files
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1106 done | sort
1107 echo
1110 if test -s confdefs.h; then
1111 cat <<\_ASBOX
1112 ## ----------- ##
1113 ## confdefs.h. ##
1114 ## ----------- ##
1115 _ASBOX
1116 echo
1117 sed "/^$/d" confdefs.h | sort
1118 echo
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1123 } >&5
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126 exit $exit_status
1128 for ac_signal in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 done
1131 ac_signal=0
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 echo >confdefs.h
1138 # Predefined preprocessor variables.
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 _ACEOF
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 _ACEOF
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 _ACEOF
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 _ACEOF
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 _ACEOF
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE; then
1169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 else
1171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174 for ac_site_file in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1179 . "$ac_site_file"
1181 done
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1189 case $cache_file in
1190 [\\/]* | ?:[\\/]* ) . $cache_file;;
1191 *) . ./$cache_file;;
1192 esac
1194 else
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1197 >$cache_file
1200 # Check that the precious variables saved in the cache have kept the same
1201 # value.
1202 ac_cache_corrupted=false
1203 for ac_var in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1206 eval ac_new_set=\$ac_env_${ac_var}_set
1207 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1210 set,)
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted=: ;;
1214 ,set)
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted=: ;;
1218 ,);;
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted=:
1228 fi;;
1229 esac
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1232 case $ac_new_val in
1233 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg=$ac_var=$ac_new_val ;;
1236 esac
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 esac
1242 done
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1251 ac_ext=c
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276 ac_aux_dir=
1277 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278 if test -f $ac_dir/install-sh; then
1279 ac_aux_dir=$ac_dir
1280 ac_install_sh="$ac_aux_dir/install-sh -c"
1281 break
1282 elif test -f $ac_dir/install.sh; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/install.sh -c"
1285 break
1286 elif test -f $ac_dir/shtool; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 break
1291 done
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1303 subdirs="$subdirs plugins"
1306 ac_ext=cc
1307 ac_cpp='$CXXCPP $CPPFLAGS'
1308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1311 if test -n "$ac_tool_prefix"; then
1312 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1316 echo "$as_me:$LINENO: checking for $ac_word" >&5
1317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318 if test "${ac_cv_prog_CXX+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 else
1321 if test -n "$CXX"; then
1322 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1323 else
1324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325 for as_dir in $PATH
1327 IFS=$as_save_IFS
1328 test -z "$as_dir" && as_dir=.
1329 for ac_exec_ext in '' $ac_executable_extensions; do
1330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1331 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1333 break 2
1335 done
1336 done
1340 CXX=$ac_cv_prog_CXX
1341 if test -n "$CXX"; then
1342 echo "$as_me:$LINENO: result: $CXX" >&5
1343 echo "${ECHO_T}$CXX" >&6
1344 else
1345 echo "$as_me:$LINENO: result: no" >&5
1346 echo "${ECHO_T}no" >&6
1349 test -n "$CXX" && break
1350 done
1352 if test -z "$CXX"; then
1353 ac_ct_CXX=$CXX
1354 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy $ac_prog; ac_word=$2
1358 echo "$as_me:$LINENO: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 if test -n "$ac_ct_CXX"; then
1364 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1365 else
1366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 for as_dir in $PATH
1369 IFS=$as_save_IFS
1370 test -z "$as_dir" && as_dir=.
1371 for ac_exec_ext in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373 ac_cv_prog_ac_ct_CXX="$ac_prog"
1374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1375 break 2
1377 done
1378 done
1382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1383 if test -n "$ac_ct_CXX"; then
1384 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1385 echo "${ECHO_T}$ac_ct_CXX" >&6
1386 else
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1391 test -n "$ac_ct_CXX" && break
1392 done
1393 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1395 CXX=$ac_ct_CXX
1399 # Provide some information about the compiler.
1400 echo "$as_me:$LINENO:" \
1401 "checking for C++ compiler version" >&5
1402 ac_compiler=`set X $ac_compile; echo $2`
1403 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1404 (eval $ac_compiler --version </dev/null >&5) 2>&5
1405 ac_status=$?
1406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1407 (exit $ac_status); }
1408 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1409 (eval $ac_compiler -v </dev/null >&5) 2>&5
1410 ac_status=$?
1411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1412 (exit $ac_status); }
1413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1414 (eval $ac_compiler -V </dev/null >&5) 2>&5
1415 ac_status=$?
1416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1417 (exit $ac_status); }
1419 cat >conftest.$ac_ext <<_ACEOF
1420 #line $LINENO "configure"
1421 /* confdefs.h. */
1422 _ACEOF
1423 cat confdefs.h >>conftest.$ac_ext
1424 cat >>conftest.$ac_ext <<_ACEOF
1425 /* end confdefs.h. */
1428 main ()
1432 return 0;
1434 _ACEOF
1435 ac_clean_files_save=$ac_clean_files
1436 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1437 # Try to create an executable without -o first, disregard a.out.
1438 # It will help us diagnose broken compilers, and finding out an intuition
1439 # of exeext.
1440 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1441 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1442 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1443 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1444 (eval $ac_link_default) 2>&5
1445 ac_status=$?
1446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1447 (exit $ac_status); }; then
1448 # Find the output, starting from the most likely. This scheme is
1449 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1450 # resort.
1452 # Be careful to initialize this variable, since it used to be cached.
1453 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1454 ac_cv_exeext=
1455 # b.out is created by i960 compilers.
1456 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1458 test -f "$ac_file" || continue
1459 case $ac_file in
1460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1462 conftest.$ac_ext )
1463 # This is the source file.
1465 [ab].out )
1466 # We found the default executable, but exeext='' is most
1467 # certainly right.
1468 break;;
1469 *.* )
1470 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1471 # FIXME: I believe we export ac_cv_exeext for Libtool,
1472 # but it would be cool to find out if it's true. Does anybody
1473 # maintain Libtool? --akim.
1474 export ac_cv_exeext
1475 break;;
1477 break;;
1478 esac
1479 done
1480 else
1481 echo "$as_me: failed program was:" >&5
1482 sed 's/^/| /' conftest.$ac_ext >&5
1484 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1485 See \`config.log' for more details." >&5
1486 echo "$as_me: error: C++ compiler cannot create executables
1487 See \`config.log' for more details." >&2;}
1488 { (exit 77); exit 77; }; }
1491 ac_exeext=$ac_cv_exeext
1492 echo "$as_me:$LINENO: result: $ac_file" >&5
1493 echo "${ECHO_T}$ac_file" >&6
1495 # Check the compiler produces executables we can run. If not, either
1496 # the compiler is broken, or we cross compile.
1497 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1498 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1499 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1500 # If not cross compiling, check that we can run a simple program.
1501 if test "$cross_compiling" != yes; then
1502 if { ac_try='./$ac_file'
1503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1504 (eval $ac_try) 2>&5
1505 ac_status=$?
1506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1507 (exit $ac_status); }; }; then
1508 cross_compiling=no
1509 else
1510 if test "$cross_compiling" = maybe; then
1511 cross_compiling=yes
1512 else
1513 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1514 If you meant to cross compile, use \`--host'.
1515 See \`config.log' for more details." >&5
1516 echo "$as_me: error: cannot run C++ compiled programs.
1517 If you meant to cross compile, use \`--host'.
1518 See \`config.log' for more details." >&2;}
1519 { (exit 1); exit 1; }; }
1523 echo "$as_me:$LINENO: result: yes" >&5
1524 echo "${ECHO_T}yes" >&6
1526 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1527 ac_clean_files=$ac_clean_files_save
1528 # Check the compiler produces executables we can run. If not, either
1529 # the compiler is broken, or we cross compile.
1530 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1531 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1532 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1533 echo "${ECHO_T}$cross_compiling" >&6
1535 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1536 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1538 (eval $ac_link) 2>&5
1539 ac_status=$?
1540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1541 (exit $ac_status); }; then
1542 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1543 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1544 # work properly (i.e., refer to `conftest.exe'), while it won't with
1545 # `rm'.
1546 for ac_file in conftest.exe conftest conftest.*; do
1547 test -f "$ac_file" || continue
1548 case $ac_file in
1549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1550 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1551 export ac_cv_exeext
1552 break;;
1553 * ) break;;
1554 esac
1555 done
1556 else
1557 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1558 See \`config.log' for more details." >&5
1559 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1560 See \`config.log' for more details." >&2;}
1561 { (exit 1); exit 1; }; }
1564 rm -f conftest$ac_cv_exeext
1565 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1566 echo "${ECHO_T}$ac_cv_exeext" >&6
1568 rm -f conftest.$ac_ext
1569 EXEEXT=$ac_cv_exeext
1570 ac_exeext=$EXEEXT
1571 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1572 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1573 if test "${ac_cv_objext+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 cat >conftest.$ac_ext <<_ACEOF
1577 #line $LINENO "configure"
1578 /* confdefs.h. */
1579 _ACEOF
1580 cat confdefs.h >>conftest.$ac_ext
1581 cat >>conftest.$ac_ext <<_ACEOF
1582 /* end confdefs.h. */
1585 main ()
1589 return 0;
1591 _ACEOF
1592 rm -f conftest.o conftest.obj
1593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1594 (eval $ac_compile) 2>&5
1595 ac_status=$?
1596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1597 (exit $ac_status); }; then
1598 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1599 case $ac_file in
1600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1602 break;;
1603 esac
1604 done
1605 else
1606 echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1609 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1610 See \`config.log' for more details." >&5
1611 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1612 See \`config.log' for more details." >&2;}
1613 { (exit 1); exit 1; }; }
1616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1618 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1619 echo "${ECHO_T}$ac_cv_objext" >&6
1620 OBJEXT=$ac_cv_objext
1621 ac_objext=$OBJEXT
1622 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1623 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1624 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 cat >conftest.$ac_ext <<_ACEOF
1628 #line $LINENO "configure"
1629 /* confdefs.h. */
1630 _ACEOF
1631 cat confdefs.h >>conftest.$ac_ext
1632 cat >>conftest.$ac_ext <<_ACEOF
1633 /* end confdefs.h. */
1636 main ()
1638 #ifndef __GNUC__
1639 choke me
1640 #endif
1643 return 0;
1645 _ACEOF
1646 rm -f conftest.$ac_objext
1647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1648 (eval $ac_compile) 2>&5
1649 ac_status=$?
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); } &&
1652 { ac_try='test -s conftest.$ac_objext'
1653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1654 (eval $ac_try) 2>&5
1655 ac_status=$?
1656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1657 (exit $ac_status); }; }; then
1658 ac_compiler_gnu=yes
1659 else
1660 echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_compiler_gnu=no
1665 rm -f conftest.$ac_objext conftest.$ac_ext
1666 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1669 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1670 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1671 GXX=`test $ac_compiler_gnu = yes && echo yes`
1672 ac_test_CXXFLAGS=${CXXFLAGS+set}
1673 ac_save_CXXFLAGS=$CXXFLAGS
1674 CXXFLAGS="-g"
1675 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1676 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1677 if test "${ac_cv_prog_cxx_g+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 cat >conftest.$ac_ext <<_ACEOF
1681 #line $LINENO "configure"
1682 /* confdefs.h. */
1683 _ACEOF
1684 cat confdefs.h >>conftest.$ac_ext
1685 cat >>conftest.$ac_ext <<_ACEOF
1686 /* end confdefs.h. */
1689 main ()
1693 return 0;
1695 _ACEOF
1696 rm -f conftest.$ac_objext
1697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1698 (eval $ac_compile) 2>&5
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); } &&
1702 { ac_try='test -s conftest.$ac_objext'
1703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1704 (eval $ac_try) 2>&5
1705 ac_status=$?
1706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707 (exit $ac_status); }; }; then
1708 ac_cv_prog_cxx_g=yes
1709 else
1710 echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_cv_prog_cxx_g=no
1715 rm -f conftest.$ac_objext conftest.$ac_ext
1717 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1718 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1719 if test "$ac_test_CXXFLAGS" = set; then
1720 CXXFLAGS=$ac_save_CXXFLAGS
1721 elif test $ac_cv_prog_cxx_g = yes; then
1722 if test "$GXX" = yes; then
1723 CXXFLAGS="-g -O2"
1724 else
1725 CXXFLAGS="-g"
1727 else
1728 if test "$GXX" = yes; then
1729 CXXFLAGS="-O2"
1730 else
1731 CXXFLAGS=
1734 for ac_declaration in \
1736 '#include <stdlib.h>' \
1737 'extern "C" void std::exit (int) throw (); using std::exit;' \
1738 'extern "C" void std::exit (int); using std::exit;' \
1739 'extern "C" void exit (int) throw ();' \
1740 'extern "C" void exit (int);' \
1741 'void exit (int);'
1743 cat >conftest.$ac_ext <<_ACEOF
1744 #line $LINENO "configure"
1745 /* confdefs.h. */
1746 _ACEOF
1747 cat confdefs.h >>conftest.$ac_ext
1748 cat >>conftest.$ac_ext <<_ACEOF
1749 /* end confdefs.h. */
1750 #include <stdlib.h>
1751 $ac_declaration
1753 main ()
1755 exit (42);
1757 return 0;
1759 _ACEOF
1760 rm -f conftest.$ac_objext
1761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1762 (eval $ac_compile) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); } &&
1766 { ac_try='test -s conftest.$ac_objext'
1767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1768 (eval $ac_try) 2>&5
1769 ac_status=$?
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; }; then
1773 else
1774 echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 continue
1779 rm -f conftest.$ac_objext conftest.$ac_ext
1780 cat >conftest.$ac_ext <<_ACEOF
1781 #line $LINENO "configure"
1782 /* confdefs.h. */
1783 _ACEOF
1784 cat confdefs.h >>conftest.$ac_ext
1785 cat >>conftest.$ac_ext <<_ACEOF
1786 /* end confdefs.h. */
1787 $ac_declaration
1789 main ()
1791 exit (42);
1793 return 0;
1795 _ACEOF
1796 rm -f conftest.$ac_objext
1797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1798 (eval $ac_compile) 2>&5
1799 ac_status=$?
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); } &&
1802 { ac_try='test -s conftest.$ac_objext'
1803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1804 (eval $ac_try) 2>&5
1805 ac_status=$?
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }; }; then
1808 break
1809 else
1810 echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1814 rm -f conftest.$ac_objext conftest.$ac_ext
1815 done
1816 rm -f conftest*
1817 if test -n "$ac_declaration"; then
1818 echo '#ifdef __cplusplus' >>confdefs.h
1819 echo $ac_declaration >>confdefs.h
1820 echo '#endif' >>confdefs.h
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830 ac_ext=cc
1831 ac_cpp='$CXXCPP $CPPFLAGS'
1832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1838 PWLIBDIR=`pwd`
1842 if test "x$prefix" = "xNONE"; then
1843 INSTALLPREFIX="/usr/local"
1844 else
1845 INSTALLPREFIX="${prefix}"
1851 LIBDIR="${libdir}"
1855 MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1856 MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1857 BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1858 PWLIB_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1863 MAJOR_VERSION=$MAJOR_VERSION
1865 MINOR_VERSION=$MINOR_VERSION
1867 BUILD_NUMBER=$BUILD_NUMBER
1870 { echo "$as_me:$LINENO: PTLib version is ${PWLIB_VERSION}" >&5
1871 echo "$as_me: PTLib version is ${PWLIB_VERSION}" >&6;};
1873 cat >>confdefs.h <<_ACEOF
1874 #define PWLIB_MAJOR $MAJOR_VERSION
1875 _ACEOF
1877 cat >>confdefs.h <<_ACEOF
1878 #define PWLIB_MINOR $MINOR_VERSION
1879 _ACEOF
1881 cat >>confdefs.h <<_ACEOF
1882 #define PWLIB_BUILD $BUILD_NUMBER
1883 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PWLIB_VERSION "$PWLIB_VERSION"
1887 _ACEOF
1891 # Make sure we can run config.sub.
1892 $ac_config_sub sun4 >/dev/null 2>&1 ||
1893 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1894 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1895 { (exit 1); exit 1; }; }
1897 echo "$as_me:$LINENO: checking build system type" >&5
1898 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1899 if test "${ac_cv_build+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 ac_cv_build_alias=$build_alias
1903 test -z "$ac_cv_build_alias" &&
1904 ac_cv_build_alias=`$ac_config_guess`
1905 test -z "$ac_cv_build_alias" &&
1906 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908 { (exit 1); exit 1; }; }
1909 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1911 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1912 { (exit 1); exit 1; }; }
1915 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916 echo "${ECHO_T}$ac_cv_build" >&6
1917 build=$ac_cv_build
1918 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1919 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1920 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1923 echo "$as_me:$LINENO: checking host system type" >&5
1924 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1925 if test "${ac_cv_host+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928 ac_cv_host_alias=$host_alias
1929 test -z "$ac_cv_host_alias" &&
1930 ac_cv_host_alias=$ac_cv_build_alias
1931 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1932 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1933 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1934 { (exit 1); exit 1; }; }
1937 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1938 echo "${ECHO_T}$ac_cv_host" >&6
1939 host=$ac_cv_host
1940 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1941 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1942 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1945 echo "$as_me:$LINENO: checking target system type" >&5
1946 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1947 if test "${ac_cv_target+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 ac_cv_target_alias=$target_alias
1951 test "x$ac_cv_target_alias" = "x" &&
1952 ac_cv_target_alias=$ac_cv_host_alias
1953 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1954 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1955 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1956 { (exit 1); exit 1; }; }
1959 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1960 echo "${ECHO_T}$ac_cv_target" >&6
1961 target=$ac_cv_target
1962 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1963 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1964 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1967 # The aliases save the names the user supplied, while $host etc.
1968 # will get canonicalized.
1969 test -n "$target_alias" &&
1970 test "$program_prefix$program_suffix$program_transform_name" = \
1971 NONENONEs,x,x, &&
1972 program_prefix=${target_alias}-
1974 TARGETDIR=unix
1975 OSTYPE=
1977 case "$target_os" in
1978 linux*) OSTYPE=linux ;
1979 OSRELEASE="\"`uname -r`\"";
1980 OS_TAG="P_LINUX" ;
1981 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1984 freebsd* ) OSTYPE=FreeBSD ;
1985 OS_TAG="P_FREEBSD" ;
1986 if test "x$OSRELEASE" = "x"; then
1987 OSRELEASE="`sysctl -n kern.osreldate`" ;
1989 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1992 openbsd* ) OSTYPE=OpenBSD ;
1993 OS_TAG="P_OPENBSD" ;
1994 OSRELEASE="`sysctl -n kern.osrevision`" ;
1995 ENDLDLIBS="-lossaudio" ;
1996 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1999 netbsd* ) OSTYPE=NetBSD ;
2000 OS_TAG="P_NETBSD" ;
2001 OSRELEASE="`/sbin/sysctl -n kern.osrevision`" ;
2002 ENDLDLIBS="-lossaudio" ;
2003 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2006 solaris* | sunos ) OSTYPE=solaris ;
2007 OS_TAG="P_SOLARIS" ;
2008 OSRELEASE=`uname -r | sed "s/5\.//g"` ;
2009 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2012 darwin* ) OSTYPE=Darwin ;
2013 OS_TAG="P_MACOSX" ;
2014 OSRELEASE="`uname -r | sed 's/\.//g'`" ;
2015 SHAREDLIBEXT="dylib";
2016 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2019 * ) OSTYPE="$target_os" ;
2020 OS_TAG="P_UNKNOWN_OS" ;
2021 OSRELEASE="\"${OSTYPE}_`uname -r`\"" ;
2022 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2023 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2025 esac
2027 MACHTYPE=
2029 case "$target_cpu" in
2030 x86 | i686 | i586 | i486 | i386 ) MACHTYPE=x86
2033 x86_64) MACHTYPE=x86_64 ;
2034 P_64BIT=1 ;
2037 alpha | alphaev56) MACHTYPE=alpha ;
2038 P_64BIT=1 ;
2041 sparc ) MACHTYPE=sparc ;
2044 powerpc ) MACHTYPE=ppc ;
2047 ppc ) MACHTYPE=ppc ;
2050 powerpc64 ) MACHTYPE=ppc64 ;
2051 P_64BIT=1 ;
2054 ppc64 ) MACHTYPE=ppc64 ;
2055 P_64BIT=1 ;
2058 ia64) MACHTYPE=ia64 ;
2059 P_64BIT=1 ;
2062 s390x) MACHTYPE=s390x ;
2063 P_64BIT=1 ;
2066 * ) MACHTYPE=$target_cpu ;
2067 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2068 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2069 esac
2071 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2072 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2073 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2074 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2075 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2076 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2078 MACHTYPE=$MACHTYPE
2080 OSTYPE=$OSTYPE
2082 OSRELEASE=$OSRELEASE
2084 TARGETDIR=$TARGETDIR
2087 cat >>confdefs.h <<_ACEOF
2088 #define $OS_TAG $OSRELEASE
2089 _ACEOF
2092 cat >>confdefs.h <<\_ACEOF
2093 #define PHAS_TEMPLATES 1
2094 _ACEOF
2097 if test "x$P_64BIT" != "x" ; then
2098 cat >>confdefs.h <<\_ACEOF
2099 #define P_64BIT 1
2100 _ACEOF
2105 cat >>confdefs.h <<\_ACEOF
2106 #define P_PTHREADS 1
2107 _ACEOF
2109 if test ${OSTYPE} != Darwin ; then
2111 cat >>confdefs.h <<\_ACEOF
2112 #define P_HAS_SEMAPHORES 1
2113 _ACEOF
2118 if test "x${SHAREDLIBEXT}" = "x" ; then
2119 SHAREDLIBEXT="so"
2121 SHAREDLIBEXT=$SHAREDLIBEXT
2124 cat >>confdefs.h <<\_ACEOF
2125 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2126 _ACEOF
2132 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2133 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2134 if test "${ac_cv_c_bigendian+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 # See if sys/param.h defines the BYTE_ORDER macro.
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #line $LINENO "configure"
2140 /* confdefs.h. */
2141 _ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h. */
2145 #include <sys/types.h>
2146 #include <sys/param.h>
2149 main ()
2151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2152 bogus endian macros
2153 #endif
2156 return 0;
2158 _ACEOF
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -s conftest.$ac_objext'
2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167 (eval $ac_try) 2>&5
2168 ac_status=$?
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; }; then
2171 # It does; now see whether it defined to BIG_ENDIAN or not.
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2174 /* confdefs.h. */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2179 #include <sys/types.h>
2180 #include <sys/param.h>
2183 main ()
2185 #if BYTE_ORDER != BIG_ENDIAN
2186 not big endian
2187 #endif
2190 return 0;
2192 _ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -s conftest.$ac_objext'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 (eval $ac_try) 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2205 ac_cv_c_bigendian=yes
2206 else
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2210 ac_cv_c_bigendian=no
2212 rm -f conftest.$ac_objext conftest.$ac_ext
2213 else
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2217 # It does not; compile a test program.
2218 if test "$cross_compiling" = yes; then
2219 # try to guess the endianness by grepping values into an object file
2220 ac_cv_c_bigendian=unknown
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #line $LINENO "configure"
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2228 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2229 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2231 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2232 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2235 main ()
2237 _ascii (); _ebcdic ();
2239 return 0;
2241 _ACEOF
2242 rm -f conftest.$ac_objext
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try='test -s conftest.$ac_objext'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 (eval $ac_try) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2254 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2255 ac_cv_c_bigendian=yes
2257 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2258 if test "$ac_cv_c_bigendian" = unknown; then
2259 ac_cv_c_bigendian=no
2260 else
2261 # finding both strings is unlikely to happen, but who knows?
2262 ac_cv_c_bigendian=unknown
2265 else
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271 else
2272 cat >conftest.$ac_ext <<_ACEOF
2273 #line $LINENO "configure"
2274 /* confdefs.h. */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2280 main ()
2282 /* Are we little or big endian? From Harbison&Steele. */
2283 union
2285 long l;
2286 char c[sizeof (long)];
2287 } u;
2288 u.l = 1;
2289 exit (u.c[sizeof (long) - 1] == 1);
2291 _ACEOF
2292 rm -f conftest$ac_exeext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294 (eval $ac_link) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 ac_cv_c_bigendian=no
2304 else
2305 echo "$as_me: program exited with status $ac_status" >&5
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2309 ( exit $ac_status )
2310 ac_cv_c_bigendian=yes
2312 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2317 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2318 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2319 case $ac_cv_c_bigendian in
2320 yes)
2322 cat >>confdefs.h <<\_ACEOF
2323 #define WORDS_BIGENDIAN 1
2324 _ACEOF
2329 { { echo "$as_me:$LINENO: error: unknown endianness
2330 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2331 echo "$as_me: error: unknown endianness
2332 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2333 { (exit 1); exit 1; }; } ;;
2334 esac
2336 if test ${ac_cv_c_bigendian} = yes ; then
2337 PBYTE_ORDER=PBIG_ENDIAN
2338 else
2339 PBYTE_ORDER=PLITTLE_ENDIAN
2343 cat >>confdefs.h <<_ACEOF
2344 #define PBYTE_ORDER $PBYTE_ORDER
2345 _ACEOF
2348 ac_ext=cc
2349 ac_cpp='$CXXCPP $CPPFLAGS'
2350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2355 echo "$as_me:$LINENO: checking if compiler accepts -fno-rtti" >&5
2356 echo $ECHO_N "checking if compiler accepts -fno-rtti... $ECHO_C" >&6
2357 cat >conftest.$ac_ext <<_ACEOF
2358 int main(int ac,char **av) { return 0; }
2359 _ACEOF
2360 $CXX $CFLAGS -fno-rtti -c conftest.cc > /dev/null 2>&1
2361 if test $? = 0 ; then
2362 echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6
2364 STDCCFLAGS="$STDCCFLAGS -fno-rtti"
2365 else
2366 echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6
2370 GCSECTIONS=0
2372 echo "$as_me:$LINENO: checking if linker accepts --gc-sections" >&5
2373 echo $ECHO_N "checking if linker accepts --gc-sections... $ECHO_C" >&6
2374 cat >conftest.$ac_ext <<_ACEOF
2375 int main(int ac,char **av) { return 0; }
2376 _ACEOF
2377 $CXX $CFLAGS -Wl,--gc-sections conftest.cc > /dev/null 2>&1
2378 if test $? = 0 ; then
2379 echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6
2382 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2383 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2384 cat >conftest.$ac_ext <<_ACEOF
2385 int main(int ac,char **av) { return 0; }
2386 _ACEOF
2387 $CXX $CFLAGS -ffunction-sections -c conftest.cc > /dev/null 2>&1
2388 if test $? = 0 ; then
2389 echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6
2391 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
2392 GCSECTIONS=1
2393 else
2394 echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2398 echo "$as_me:$LINENO: checking if compiler accepts -fdata-sections" >&5
2399 echo $ECHO_N "checking if compiler accepts -fdata-sections... $ECHO_C" >&6
2400 cat >conftest.$ac_ext <<_ACEOF
2401 int main(int ac,char **av) { return 0; }
2402 _ACEOF
2403 $CXX $CFLAGS -fdata-sections -c conftest.cc > /dev/null 2>&1
2404 if test $? = 0 ; then
2405 echo "$as_me:$LINENO: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6
2407 STDCCFLAGS="$STDCCFLAGS -fdata-sections"
2408 GCSECTIONS=1
2409 else
2410 echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6
2415 if test $GCSECTIONS = 1; then
2416 if test "${OSTYPE}" != "Darwin" ; then
2417 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2421 else
2422 echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6
2426 ac_ext=cc
2427 ac_cpp='$CXXCPP $CPPFLAGS'
2428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2434 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
2435 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
2436 if test "${ac_cv_c_long_double+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 cat >conftest.$ac_ext <<_ACEOF
2440 #line $LINENO "configure"
2441 /* confdefs.h. */
2442 _ACEOF
2443 cat confdefs.h >>conftest.$ac_ext
2444 cat >>conftest.$ac_ext <<_ACEOF
2445 /* end confdefs.h. */
2446 #include <float.h>
2447 long double foo = 0.0;
2449 main ()
2451 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
2452 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
2453 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
2454 test_array [0] = 0
2457 return 0;
2459 _ACEOF
2460 rm -f conftest.$ac_objext
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462 (eval $ac_compile) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 ac_cv_c_long_double=yes
2473 else
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2477 ac_cv_c_long_double=no
2479 rm -f conftest.$ac_objext conftest.$ac_ext
2481 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
2482 echo "${ECHO_T}$ac_cv_c_long_double" >&6
2483 if test $ac_cv_c_long_double = yes; then
2485 cat >>confdefs.h <<\_ACEOF
2486 #define HAVE_LONG_DOUBLE 1
2487 _ACEOF
2491 if test $ac_cv_c_long_double != yes ; then
2492 cat >>confdefs.h <<\_ACEOF
2493 #define PNO_LONG_DOUBLE 1
2494 _ACEOF
2501 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2502 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2503 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506 ac_check_lib_save_LIBS=$LIBS
2507 LIBS="-lpthread $LIBS"
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2516 /* Override any gcc2 internal prototype to avoid an error. */
2517 #ifdef __cplusplus
2518 extern "C"
2519 #endif
2520 /* We use char because int might match the return type of a gcc2
2521 builtin and then its argument prototype would still apply. */
2522 char pthread_create ();
2524 main ()
2526 pthread_create ();
2528 return 0;
2530 _ACEOF
2531 rm -f conftest.$ac_objext conftest$ac_exeext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533 (eval $ac_link) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -s conftest$ac_exeext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 ac_cv_lib_pthread_pthread_create=yes
2544 else
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 ac_cv_lib_pthread_pthread_create=no
2550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2551 LIBS=$ac_check_lib_save_LIBS
2553 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2554 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2555 if test $ac_cv_lib_pthread_pthread_create = yes; then
2556 HAS_PTHREADS=yes
2557 else
2558 HAS_PTHREADS=no
2561 if test ${HAS_PTHREADS} = yes ; then
2562 ENDLDLIBS="$ENDLDLIBS -lpthread"
2563 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
2564 else
2565 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2566 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2567 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 ac_check_lib_save_LIBS=$LIBS
2571 LIBS="-lc_r $LIBS"
2572 cat >conftest.$ac_ext <<_ACEOF
2573 #line $LINENO "configure"
2574 /* confdefs.h. */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2580 /* Override any gcc2 internal prototype to avoid an error. */
2581 #ifdef __cplusplus
2582 extern "C"
2583 #endif
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586 char pthread_create ();
2588 main ()
2590 pthread_create ();
2592 return 0;
2594 _ACEOF
2595 rm -f conftest.$ac_objext conftest$ac_exeext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2597 (eval $ac_link) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -s conftest$ac_exeext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 ac_cv_lib_c_r_pthread_create=yes
2608 else
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2612 ac_cv_lib_c_r_pthread_create=no
2614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2615 LIBS=$ac_check_lib_save_LIBS
2617 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2618 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2619 if test $ac_cv_lib_c_r_pthread_create = yes; then
2620 HAS_PTHREADS=yes
2621 else
2622 HAS_PTHREADS=no
2625 if test ${HAS_PTHREADS} = yes ; then
2626 ENDLDLIBS="$ENDLDLIBS -pthread"
2627 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
2632 if test ${HAS_PTHREADS} != yes ; then
2633 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
2634 echo "$as_me: error: must have pthreads!" >&2;}
2635 { (exit 1); exit 1; }; }
2639 ac_ext=cc
2640 ac_cpp='$CXXCPP $CPPFLAGS'
2641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2644 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2645 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2646 if test -z "$CXXCPP"; then
2647 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 # Double quotes because CXXCPP needs to be expanded
2651 for CXXCPP in "$CXX -E" "/lib/cpp"
2653 ac_preproc_ok=false
2654 for ac_cxx_preproc_warn_flag in '' yes
2656 # Use a header file that comes with gcc, so configuring glibc
2657 # with a fresh cross-compiler works.
2658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2659 # <limits.h> exists even on freestanding compilers.
2660 # On the NeXT, cc -E runs the code through the compiler's parser,
2661 # not just through cpp. "Syntax error" is here to catch this case.
2662 cat >conftest.$ac_ext <<_ACEOF
2663 #line $LINENO "configure"
2664 /* confdefs.h. */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2669 #ifdef __STDC__
2670 # include <limits.h>
2671 #else
2672 # include <assert.h>
2673 #endif
2674 Syntax error
2675 _ACEOF
2676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2678 ac_status=$?
2679 grep -v '^ *+' conftest.er1 >conftest.err
2680 rm -f conftest.er1
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } >/dev/null; then
2684 if test -s conftest.err; then
2685 ac_cpp_err=$ac_cxx_preproc_warn_flag
2686 else
2687 ac_cpp_err=
2689 else
2690 ac_cpp_err=yes
2692 if test -z "$ac_cpp_err"; then
2694 else
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2698 # Broken: fails on valid input.
2699 continue
2701 rm -f conftest.err conftest.$ac_ext
2703 # OK, works on sane cases. Now check whether non-existent headers
2704 # can be detected and how.
2705 cat >conftest.$ac_ext <<_ACEOF
2706 #line $LINENO "configure"
2707 /* confdefs.h. */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2712 #include <ac_nonexistent.h>
2713 _ACEOF
2714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } >/dev/null; then
2722 if test -s conftest.err; then
2723 ac_cpp_err=$ac_cxx_preproc_warn_flag
2724 else
2725 ac_cpp_err=
2727 else
2728 ac_cpp_err=yes
2730 if test -z "$ac_cpp_err"; then
2731 # Broken: success on invalid input.
2732 continue
2733 else
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2737 # Passes both tests.
2738 ac_preproc_ok=:
2739 break
2741 rm -f conftest.err conftest.$ac_ext
2743 done
2744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2745 rm -f conftest.err conftest.$ac_ext
2746 if $ac_preproc_ok; then
2747 break
2750 done
2751 ac_cv_prog_CXXCPP=$CXXCPP
2754 CXXCPP=$ac_cv_prog_CXXCPP
2755 else
2756 ac_cv_prog_CXXCPP=$CXXCPP
2758 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2759 echo "${ECHO_T}$CXXCPP" >&6
2760 ac_preproc_ok=false
2761 for ac_cxx_preproc_warn_flag in '' yes
2763 # Use a header file that comes with gcc, so configuring glibc
2764 # with a fresh cross-compiler works.
2765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2766 # <limits.h> exists even on freestanding compilers.
2767 # On the NeXT, cc -E runs the code through the compiler's parser,
2768 # not just through cpp. "Syntax error" is here to catch this case.
2769 cat >conftest.$ac_ext <<_ACEOF
2770 #line $LINENO "configure"
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776 #ifdef __STDC__
2777 # include <limits.h>
2778 #else
2779 # include <assert.h>
2780 #endif
2781 Syntax error
2782 _ACEOF
2783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } >/dev/null; then
2791 if test -s conftest.err; then
2792 ac_cpp_err=$ac_cxx_preproc_warn_flag
2793 else
2794 ac_cpp_err=
2796 else
2797 ac_cpp_err=yes
2799 if test -z "$ac_cpp_err"; then
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 # Broken: fails on valid input.
2806 continue
2808 rm -f conftest.err conftest.$ac_ext
2810 # OK, works on sane cases. Now check whether non-existent headers
2811 # can be detected and how.
2812 cat >conftest.$ac_ext <<_ACEOF
2813 #line $LINENO "configure"
2814 /* confdefs.h. */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2819 #include <ac_nonexistent.h>
2820 _ACEOF
2821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } >/dev/null; then
2829 if test -s conftest.err; then
2830 ac_cpp_err=$ac_cxx_preproc_warn_flag
2831 else
2832 ac_cpp_err=
2834 else
2835 ac_cpp_err=yes
2837 if test -z "$ac_cpp_err"; then
2838 # Broken: success on invalid input.
2839 continue
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 # Passes both tests.
2845 ac_preproc_ok=:
2846 break
2848 rm -f conftest.err conftest.$ac_ext
2850 done
2851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852 rm -f conftest.err conftest.$ac_ext
2853 if $ac_preproc_ok; then
2855 else
2856 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2863 ac_ext=cc
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2870 echo "$as_me:$LINENO: checking for egrep" >&5
2871 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2872 if test "${ac_cv_prog_egrep+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2876 then ac_cv_prog_egrep='grep -E'
2877 else ac_cv_prog_egrep='egrep'
2880 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2881 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2882 EGREP=$ac_cv_prog_egrep
2885 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2886 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2887 if test "${ac_cv_header_stdc+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 cat >conftest.$ac_ext <<_ACEOF
2891 #line $LINENO "configure"
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897 #include <stdlib.h>
2898 #include <stdarg.h>
2899 #include <string.h>
2900 #include <float.h>
2903 main ()
2907 return 0;
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2922 ac_cv_header_stdc=yes
2923 else
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 ac_cv_header_stdc=no
2929 rm -f conftest.$ac_objext conftest.$ac_ext
2931 if test $ac_cv_header_stdc = yes; then
2932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2933 cat >conftest.$ac_ext <<_ACEOF
2934 #line $LINENO "configure"
2935 /* confdefs.h. */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2940 #include <string.h>
2942 _ACEOF
2943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2944 $EGREP "memchr" >/dev/null 2>&1; then
2946 else
2947 ac_cv_header_stdc=no
2949 rm -f conftest*
2953 if test $ac_cv_header_stdc = yes; then
2954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2955 cat >conftest.$ac_ext <<_ACEOF
2956 #line $LINENO "configure"
2957 /* confdefs.h. */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2962 #include <stdlib.h>
2964 _ACEOF
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 $EGREP "free" >/dev/null 2>&1; then
2968 else
2969 ac_cv_header_stdc=no
2971 rm -f conftest*
2975 if test $ac_cv_header_stdc = yes; then
2976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2977 if test "$cross_compiling" = yes; then
2979 else
2980 cat >conftest.$ac_ext <<_ACEOF
2981 #line $LINENO "configure"
2982 /* confdefs.h. */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2987 #include <ctype.h>
2988 #if ((' ' & 0x0FF) == 0x020)
2989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2991 #else
2992 # define ISLOWER(c) \
2993 (('a' <= (c) && (c) <= 'i') \
2994 || ('j' <= (c) && (c) <= 'r') \
2995 || ('s' <= (c) && (c) <= 'z'))
2996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2997 #endif
2999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3001 main ()
3003 int i;
3004 for (i = 0; i < 256; i++)
3005 if (XOR (islower (i), ISLOWER (i))
3006 || toupper (i) != TOUPPER (i))
3007 exit(2);
3008 exit (0);
3010 _ACEOF
3011 rm -f conftest$ac_exeext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3013 (eval $ac_link) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 (eval $ac_try) 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3023 else
3024 echo "$as_me: program exited with status $ac_status" >&5
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3028 ( exit $ac_status )
3029 ac_cv_header_stdc=no
3031 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3035 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3036 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3037 if test $ac_cv_header_stdc = yes; then
3039 cat >>confdefs.h <<\_ACEOF
3040 #define STDC_HEADERS 1
3041 _ACEOF
3045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3056 inttypes.h stdint.h unistd.h
3058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3059 echo "$as_me:$LINENO: checking for $ac_header" >&5
3060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064 cat >conftest.$ac_ext <<_ACEOF
3065 #line $LINENO "configure"
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 $ac_includes_default
3073 #include <$ac_header>
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 eval "$as_ac_Header=yes"
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 eval "$as_ac_Header=no"
3094 rm -f conftest.$ac_objext conftest.$ac_ext
3096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3099 cat >>confdefs.h <<_ACEOF
3100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3101 _ACEOF
3105 done
3109 for ac_header in regex.h
3111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3113 echo "$as_me:$LINENO: checking for $ac_header" >&5
3114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3120 else
3121 # Is the header compilable?
3122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3125 #line $LINENO "configure"
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 $ac_includes_default
3132 #include <$ac_header>
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136 (eval $ac_compile) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_header_compiler=yes
3147 else
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 ac_header_compiler=no
3153 rm -f conftest.$ac_objext conftest.$ac_ext
3154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3155 echo "${ECHO_T}$ac_header_compiler" >&6
3157 # Is the header present?
3158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3160 cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3162 /* confdefs.h. */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167 #include <$ac_header>
3168 _ACEOF
3169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev/null; then
3177 if test -s conftest.err; then
3178 ac_cpp_err=$ac_cxx_preproc_warn_flag
3179 else
3180 ac_cpp_err=
3182 else
3183 ac_cpp_err=yes
3185 if test -z "$ac_cpp_err"; then
3186 ac_header_preproc=yes
3187 else
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 ac_header_preproc=no
3193 rm -f conftest.err conftest.$ac_ext
3194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3195 echo "${ECHO_T}$ac_header_preproc" >&6
3197 # So? What about this header?
3198 case $ac_header_compiler:$ac_header_preproc in
3199 yes:no )
3200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3205 cat <<\_ASBOX
3206 ## ------------------------------------ ##
3207 ## Report this to bug-autoconf@gnu.org. ##
3208 ## ------------------------------------ ##
3209 _ASBOX
3211 sed "s/^/$as_me: WARNING: /" >&2
3213 no:yes )
3214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3221 cat <<\_ASBOX
3222 ## ------------------------------------ ##
3223 ## Report this to bug-autoconf@gnu.org. ##
3224 ## ------------------------------------ ##
3225 _ASBOX
3227 sed "s/^/$as_me: WARNING: /" >&2
3229 esac
3230 echo "$as_me:$LINENO: checking for $ac_header" >&5
3231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235 eval "$as_ac_Header=$ac_header_preproc"
3237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3242 cat >>confdefs.h <<_ACEOF
3243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3244 _ACEOF
3245 HAS_REGEX=yes
3248 done
3251 # Check whether --enable-internalregex or --disable-internalregex was given.
3252 if test "${enable_internalregex+set}" = set; then
3253 enableval="$enable_internalregex"
3254 internalregex=$enableval
3256 if test "$internalregex" = "yes" ; then
3257 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3258 echo "$as_me: Forcing use of internal regex library" >&6;}
3259 else
3260 if test "$HAS_REGEX" = "yes" ; then
3261 echo "$as_me:$LINENO: checking for regcomp" >&5
3262 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3263 if test "${ac_cv_func_regcomp+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266 cat >conftest.$ac_ext <<_ACEOF
3267 #line $LINENO "configure"
3268 /* confdefs.h. */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3273 /* System header to define __stub macros and hopefully few prototypes,
3274 which can conflict with char regcomp (); below.
3275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3276 <limits.h> exists even on freestanding compilers. */
3277 #ifdef __STDC__
3278 # include <limits.h>
3279 #else
3280 # include <assert.h>
3281 #endif
3282 /* Override any gcc2 internal prototype to avoid an error. */
3283 #ifdef __cplusplus
3284 extern "C"
3286 #endif
3287 /* We use char because int might match the return type of a gcc2
3288 builtin and then its argument prototype would still apply. */
3289 char regcomp ();
3290 /* The GNU C library defines this for functions which it implements
3291 to always fail with ENOSYS. Some functions are actually named
3292 something starting with __ and the normal name is an alias. */
3293 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3294 choke me
3295 #else
3296 char (*f) () = regcomp;
3297 #endif
3298 #ifdef __cplusplus
3300 #endif
3303 main ()
3305 return f != regcomp;
3307 return 0;
3309 _ACEOF
3310 rm -f conftest.$ac_objext conftest$ac_exeext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3312 (eval $ac_link) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -s conftest$ac_exeext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_cv_func_regcomp=yes
3323 else
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 ac_cv_func_regcomp=no
3329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3331 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3332 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3333 if test $ac_cv_func_regcomp = yes; then
3334 HAS_REGEX=yes
3337 if test "$HAS_REGEX" = "yes" ; then
3338 HAS_REGEX=1
3341 cat >>confdefs.h <<\_ACEOF
3342 #define P_REGEX 1
3343 _ACEOF
3352 LIBS=""
3353 HAS_LIBDL=no
3354 P_DYNALINK=0
3355 if test ${OSTYPE} = Darwin ; then
3356 P_DYNALINK=1
3358 cat >>confdefs.h <<\_ACEOF
3359 #define P_DYNALINK 1
3360 _ACEOF
3362 else
3364 for ac_header in dlfcn.h
3366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3368 echo "$as_me:$LINENO: checking for $ac_header" >&5
3369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3375 else
3376 # Is the header compilable?
3377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3379 cat >conftest.$ac_ext <<_ACEOF
3380 #line $LINENO "configure"
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 $ac_includes_default
3387 #include <$ac_header>
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391 (eval $ac_compile) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } &&
3395 { ac_try='test -s conftest.$ac_objext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 (eval $ac_try) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 ac_header_compiler=yes
3402 else
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 ac_header_compiler=no
3408 rm -f conftest.$ac_objext conftest.$ac_ext
3409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3410 echo "${ECHO_T}$ac_header_compiler" >&6
3412 # Is the header present?
3413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3415 cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 #include <$ac_header>
3423 _ACEOF
3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null; then
3432 if test -s conftest.err; then
3433 ac_cpp_err=$ac_cxx_preproc_warn_flag
3434 else
3435 ac_cpp_err=
3437 else
3438 ac_cpp_err=yes
3440 if test -z "$ac_cpp_err"; then
3441 ac_header_preproc=yes
3442 else
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3446 ac_header_preproc=no
3448 rm -f conftest.err conftest.$ac_ext
3449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3450 echo "${ECHO_T}$ac_header_preproc" >&6
3452 # So? What about this header?
3453 case $ac_header_compiler:$ac_header_preproc in
3454 yes:no )
3455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3460 cat <<\_ASBOX
3461 ## ------------------------------------ ##
3462 ## Report this to bug-autoconf@gnu.org. ##
3463 ## ------------------------------------ ##
3464 _ASBOX
3466 sed "s/^/$as_me: WARNING: /" >&2
3468 no:yes )
3469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3476 cat <<\_ASBOX
3477 ## ------------------------------------ ##
3478 ## Report this to bug-autoconf@gnu.org. ##
3479 ## ------------------------------------ ##
3480 _ASBOX
3482 sed "s/^/$as_me: WARNING: /" >&2
3484 esac
3485 echo "$as_me:$LINENO: checking for $ac_header" >&5
3486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 eval "$as_ac_Header=$ac_header_preproc"
3492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3497 cat >>confdefs.h <<_ACEOF
3498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3499 _ACEOF
3500 HAS_DLFCN=yes
3501 else
3502 HAS_DLFCN=no
3505 done
3507 if test "$HAS_DLFCN" = yes ; then
3508 echo "$as_me:$LINENO: checking if dlopen is available" >&5
3509 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
3510 cat >conftest.$ac_ext <<_ACEOF
3511 #line $LINENO "configure"
3512 /* confdefs.h. */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #include <dlfcn.h>
3519 main ()
3521 void * p = dlopen("lib", 0);
3523 return 0;
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 HAS_DLOPEN=yes
3539 else
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3543 HAS_DLOPEN=no
3545 rm -f conftest.$ac_objext conftest.$ac_ext
3546 if test "$HAS_DLOPEN" = no ; then
3547 echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3549 else
3550 echo "$as_me:$LINENO: result: yes" >&5
3551 echo "${ECHO_T}yes" >&6
3552 P_DYNALINK=1
3554 cat >>confdefs.h <<\_ACEOF
3555 #define P_DYNALINK 1
3556 _ACEOF
3558 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3559 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3560 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 ac_check_lib_save_LIBS=$LIBS
3564 LIBS="-ldl $LIBS"
3565 cat >conftest.$ac_ext <<_ACEOF
3566 #line $LINENO "configure"
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3573 /* Override any gcc2 internal prototype to avoid an error. */
3574 #ifdef __cplusplus
3575 extern "C"
3576 #endif
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3579 char dlopen ();
3581 main ()
3583 dlopen ();
3585 return 0;
3587 _ACEOF
3588 rm -f conftest.$ac_objext conftest$ac_exeext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3590 (eval $ac_link) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
3594 { ac_try='test -s conftest$ac_exeext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 (eval $ac_try) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 ac_cv_lib_dl_dlopen=yes
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 ac_cv_lib_dl_dlopen=no
3607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3608 LIBS=$ac_check_lib_save_LIBS
3610 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3611 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3612 if test $ac_cv_lib_dl_dlopen = yes; then
3613 HAS_LIBDL=yes
3614 else
3615 HAS_LIBDL=no
3622 plugins="no"
3623 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
3624 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
3625 # Check whether --enable-plugins or --disable-plugins was given.
3626 if test "${enable_plugins+set}" = set; then
3627 enableval="$enable_plugins"
3628 plugins=$enableval
3631 HAS_PLUGINS=0
3632 if test "${plugins}" = "no" ; then
3633 echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3635 elif test "${P_DYNALINK:-unset}" = "unset" ; then
3636 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
3637 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
3638 else
3639 echo "$as_me:$LINENO: result: plugins enabled" >&5
3640 echo "${ECHO_T}plugins enabled" >&6
3641 HAS_PLUGINS=1
3643 cat >>confdefs.h <<\_ACEOF
3644 #define P_HAS_PLUGINS 1
3645 _ACEOF
3650 cat >>confdefs.h <<_ACEOF
3651 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
3652 _ACEOF
3657 # Check whether --enable-resolver or --disable-resolver was given.
3658 if test "${enable_resolver+set}" = set; then
3659 enableval="$enable_resolver"
3660 resolver=$enableval
3663 if test "$resolver" = "no" ; then
3664 cat >>confdefs.h <<\_ACEOF
3665 #define P_DNS 0
3666 _ACEOF
3668 else
3669 echo "$as_me:$LINENO: checking for res_search" >&5
3670 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
3671 if test "${ac_cv_func_res_search+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 cat >conftest.$ac_ext <<_ACEOF
3675 #line $LINENO "configure"
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 /* System header to define __stub macros and hopefully few prototypes,
3682 which can conflict with char res_search (); below.
3683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684 <limits.h> exists even on freestanding compilers. */
3685 #ifdef __STDC__
3686 # include <limits.h>
3687 #else
3688 # include <assert.h>
3689 #endif
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 #ifdef __cplusplus
3692 extern "C"
3694 #endif
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3697 char res_search ();
3698 /* The GNU C library defines this for functions which it implements
3699 to always fail with ENOSYS. Some functions are actually named
3700 something starting with __ and the normal name is an alias. */
3701 #if defined (__stub_res_search) || defined (__stub___res_search)
3702 choke me
3703 #else
3704 char (*f) () = res_search;
3705 #endif
3706 #ifdef __cplusplus
3708 #endif
3711 main ()
3713 return f != res_search;
3715 return 0;
3717 _ACEOF
3718 rm -f conftest.$ac_objext conftest$ac_exeext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3720 (eval $ac_link) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_func_res_search=yes
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 ac_cv_func_res_search=no
3737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3739 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
3740 echo "${ECHO_T}$ac_cv_func_res_search" >&6
3741 if test $ac_cv_func_res_search = yes; then
3742 HAVE_RESOLVER=1
3745 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
3746 RESOLVER_LIBS=""
3747 else
3748 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
3749 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
3750 LIBS="-lresolv"
3751 cat >conftest.$ac_ext <<_ACEOF
3753 #include <netinet/in.h>
3754 #include <resolv.h>
3755 int main(int argc,char **argv){
3756 res_search (NULL, 0, 0, NULL, 0);
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761 (eval $ac_compile) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try='test -s conftest.$ac_objext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 HAVE_RESOLVER=1
3772 else
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3777 rm -f conftest.$ac_objext conftest.$ac_ext
3778 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
3779 echo "$as_me:$LINENO: result: yes" >&5
3780 echo "${ECHO_T}yes" >&6
3781 RESOLVER_LIBS="-lresolv"
3782 else
3783 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
3784 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
3785 if test "${ac_cv_search___res_search+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788 ac_func_search_save_LIBS=$LIBS
3789 ac_cv_search___res_search=no
3790 cat >conftest.$ac_ext <<_ACEOF
3791 #line $LINENO "configure"
3792 /* confdefs.h. */
3793 _ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3798 /* Override any gcc2 internal prototype to avoid an error. */
3799 #ifdef __cplusplus
3800 extern "C"
3801 #endif
3802 /* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3804 char __res_search ();
3806 main ()
3808 __res_search ();
3810 return 0;
3812 _ACEOF
3813 rm -f conftest.$ac_objext conftest$ac_exeext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815 (eval $ac_link) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -s conftest$ac_exeext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 (eval $ac_try) 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 ac_cv_search___res_search="none required"
3826 else
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3832 if test "$ac_cv_search___res_search" = no; then
3833 for ac_lib in resolv; do
3834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3835 cat >conftest.$ac_ext <<_ACEOF
3836 #line $LINENO "configure"
3837 /* confdefs.h. */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 #ifdef __cplusplus
3845 extern "C"
3846 #endif
3847 /* We use char because int might match the return type of a gcc2
3848 builtin and then its argument prototype would still apply. */
3849 char __res_search ();
3851 main ()
3853 __res_search ();
3855 return 0;
3857 _ACEOF
3858 rm -f conftest.$ac_objext conftest$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -s conftest$ac_exeext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 (eval $ac_try) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 ac_cv_search___res_search="-l$ac_lib"
3871 break
3872 else
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3878 done
3880 LIBS=$ac_func_search_save_LIBS
3882 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
3883 echo "${ECHO_T}$ac_cv_search___res_search" >&6
3884 if test "$ac_cv_search___res_search" != no; then
3885 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
3886 HAVE_RESOLVER=1
3892 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
3894 cat >>confdefs.h <<\_ACEOF
3895 #define P_DNS 1
3896 _ACEOF
3903 # Check whether --enable-openldap or --disable-openldap was given.
3904 if test "${enable_openldap+set}" = set; then
3905 enableval="$enable_openldap"
3906 openldap=$enableval
3909 if test "$openldap" = "no" ; then
3910 HAS_OPENLDAP=0
3912 cat >>confdefs.h <<\_ACEOF
3913 #define P_LDAP 0
3914 _ACEOF
3916 else
3917 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
3919 for ac_header in ldap.h
3921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3923 echo "$as_me:$LINENO: checking for $ac_header" >&5
3924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3930 else
3931 # Is the header compilable?
3932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3934 cat >conftest.$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 $ac_includes_default
3942 #include <$ac_header>
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946 (eval $ac_compile) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -s conftest.$ac_objext'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_header_compiler=yes
3957 else
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 ac_header_compiler=no
3963 rm -f conftest.$ac_objext conftest.$ac_ext
3964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3965 echo "${ECHO_T}$ac_header_compiler" >&6
3967 # Is the header present?
3968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3970 cat >conftest.$ac_ext <<_ACEOF
3971 #line $LINENO "configure"
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 #include <$ac_header>
3978 _ACEOF
3979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } >/dev/null; then
3987 if test -s conftest.err; then
3988 ac_cpp_err=$ac_cxx_preproc_warn_flag
3989 else
3990 ac_cpp_err=
3992 else
3993 ac_cpp_err=yes
3995 if test -z "$ac_cpp_err"; then
3996 ac_header_preproc=yes
3997 else
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 ac_header_preproc=no
4003 rm -f conftest.err conftest.$ac_ext
4004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4005 echo "${ECHO_T}$ac_header_preproc" >&6
4007 # So? What about this header?
4008 case $ac_header_compiler:$ac_header_preproc in
4009 yes:no )
4010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4015 cat <<\_ASBOX
4016 ## ------------------------------------ ##
4017 ## Report this to bug-autoconf@gnu.org. ##
4018 ## ------------------------------------ ##
4019 _ASBOX
4021 sed "s/^/$as_me: WARNING: /" >&2
4023 no:yes )
4024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4031 cat <<\_ASBOX
4032 ## ------------------------------------ ##
4033 ## Report this to bug-autoconf@gnu.org. ##
4034 ## ------------------------------------ ##
4035 _ASBOX
4037 sed "s/^/$as_me: WARNING: /" >&2
4039 esac
4040 echo "$as_me:$LINENO: checking for $ac_header" >&5
4041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 eval "$as_ac_Header=$ac_header_preproc"
4047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4052 cat >>confdefs.h <<_ACEOF
4053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4054 _ACEOF
4055 HAS_OPENLDAP=1
4058 done
4061 if test "${OSTYPE:-unknown}" = "solaris"; then
4062 OPENLDAPSYSLIBS=-lposix4
4065 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4066 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4067 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4068 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 ac_check_lib_save_LIBS=$LIBS
4072 LIBS="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4073 cat >conftest.$ac_ext <<_ACEOF
4074 #line $LINENO "configure"
4075 /* confdefs.h. */
4076 _ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4081 /* Override any gcc2 internal prototype to avoid an error. */
4082 #ifdef __cplusplus
4083 extern "C"
4084 #endif
4085 /* We use char because int might match the return type of a gcc2
4086 builtin and then its argument prototype would still apply. */
4087 char ldap_open ();
4089 main ()
4091 ldap_open ();
4093 return 0;
4095 _ACEOF
4096 rm -f conftest.$ac_objext conftest$ac_exeext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4098 (eval $ac_link) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -s conftest$ac_exeext'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 ac_cv_lib_ldap_ldap_open=yes
4109 else
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 ac_cv_lib_ldap_ldap_open=no
4115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4116 LIBS=$ac_check_lib_save_LIBS
4118 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4119 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4120 if test $ac_cv_lib_ldap_ldap_open = yes; then
4121 HAS_OPENLDAP=1
4122 else
4123 HAS_OPENLDAP=
4126 else
4127 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
4128 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
4129 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 test "$cross_compiling" = yes &&
4133 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4134 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4135 { (exit 1); exit 1; }; }
4136 if test -r "/usr/local/include/ldap.h"; then
4137 ac_cv_file__usr_local_include_ldap_h=yes
4138 else
4139 ac_cv_file__usr_local_include_ldap_h=no
4142 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
4143 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
4144 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
4145 HAS_OPENLDAP=1
4148 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4149 OPENLDAPINCLUDEDIR=/usr/local/include
4150 OPENLDAPLIBDIR=/usr/local/lib
4151 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4152 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4153 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 ac_check_lib_save_LIBS=$LIBS
4157 LIBS="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4158 cat >conftest.$ac_ext <<_ACEOF
4159 #line $LINENO "configure"
4160 /* confdefs.h. */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 #ifdef __cplusplus
4168 extern "C"
4169 #endif
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4172 char ldap_open ();
4174 main ()
4176 ldap_open ();
4178 return 0;
4180 _ACEOF
4181 rm -f conftest.$ac_objext conftest$ac_exeext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4183 (eval $ac_link) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -s conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_lib_ldap_ldap_open=yes
4194 else
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 ac_cv_lib_ldap_ldap_open=no
4200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4201 LIBS=$ac_check_lib_save_LIBS
4203 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4204 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4205 if test $ac_cv_lib_ldap_ldap_open = yes; then
4206 HAS_OPENLDAP=1
4207 else
4208 HAS_OPENLDAP=
4215 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4216 HAS_OPENLDAP=1
4219 cat >>confdefs.h <<\_ACEOF
4220 #define P_LDAP 1
4221 _ACEOF
4223 if test ${OPENLDAPINCLUDEDIR:-unset} != "unset" ; then
4224 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
4226 if test ${OPENLDAPLIBDIR:-unset} != "unset" ; then
4227 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
4230 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4231 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4232 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 ac_check_lib_save_LIBS=$LIBS
4236 LIBS="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4237 cat >conftest.$ac_ext <<_ACEOF
4238 #line $LINENO "configure"
4239 /* confdefs.h. */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4245 /* Override any gcc2 internal prototype to avoid an error. */
4246 #ifdef __cplusplus
4247 extern "C"
4248 #endif
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4251 char sasl_client_auth ();
4253 main ()
4255 sasl_client_auth ();
4257 return 0;
4259 _ACEOF
4260 rm -f conftest.$ac_objext conftest$ac_exeext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262 (eval $ac_link) 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } &&
4266 { ac_try='test -s conftest$ac_exeext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 (eval $ac_try) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 ac_cv_lib_sasl_sasl_client_auth=yes
4273 else
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4277 ac_cv_lib_sasl_sasl_client_auth=no
4279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4280 LIBS=$ac_check_lib_save_LIBS
4282 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4283 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4284 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4285 HAS_SASL=1
4286 else
4287 HAS_SASL=
4290 if test ${HAS_SASL:-unset} = "unset" ; then
4291 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4292 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4293 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 ac_check_lib_save_LIBS=$LIBS
4297 LIBS="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4298 cat >conftest.$ac_ext <<_ACEOF
4299 #line $LINENO "configure"
4300 /* confdefs.h. */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4306 /* Override any gcc2 internal prototype to avoid an error. */
4307 #ifdef __cplusplus
4308 extern "C"
4309 #endif
4310 /* We use char because int might match the return type of a gcc2
4311 builtin and then its argument prototype would still apply. */
4312 char sasl_version ();
4314 main ()
4316 sasl_version ();
4318 return 0;
4320 _ACEOF
4321 rm -f conftest.$ac_objext conftest$ac_exeext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4323 (eval $ac_link) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -s conftest$ac_exeext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 ac_cv_lib_sasl2_sasl_version=yes
4334 else
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 ac_cv_lib_sasl2_sasl_version=no
4340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4341 LIBS=$ac_check_lib_save_LIBS
4343 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4344 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4345 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4346 HAS_SASL2=1
4347 else
4348 HAS_SASL2=
4352 if test ${HAS_SASL:-unset} != "unset" ; then
4353 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber -lsasl"
4354 elif test ${HAS_SASL2:-unset} != "unset" ; then
4355 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber -lsasl2"
4356 else
4357 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber"
4364 # Check whether --enable-openssl or --disable-openssl was given.
4365 if test "${enable_openssl+set}" = set; then
4366 enableval="$enable_openssl"
4367 openssl=$enableval
4370 if test "$openssl" = "no" ; then
4371 cat >>confdefs.h <<\_ACEOF
4372 #define P_SSL 0
4373 _ACEOF
4375 HAS_OPENSSL=0
4377 else
4379 if test ${OPENSSLDIR:-unset} != "unset" ; then
4380 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
4381 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
4382 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
4383 echo "$as_me:$LINENO: result: yes" >&5
4384 echo "${ECHO_T}yes" >&6
4385 SSLHDR=1
4386 SSLINCLUDEDIR="${OPENSSLDIR}/include"
4387 SSLLIBDIR="${OPENSSLDIR}/lib"
4388 else
4389 echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4395 if test "${SSLHDR:-unset}" = "unset" ; then
4397 for ac_header in openssl/ssl.h
4399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408 else
4409 # Is the header compilable?
4410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4414 /* confdefs.h. */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 $ac_includes_default
4420 #include <$ac_header>
4421 _ACEOF
4422 rm -f conftest.$ac_objext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 ac_header_compiler=yes
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 ac_header_compiler=no
4441 rm -f conftest.$ac_objext conftest.$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4443 echo "${ECHO_T}$ac_header_compiler" >&6
4445 # Is the header present?
4446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4448 cat >conftest.$ac_ext <<_ACEOF
4449 #line $LINENO "configure"
4450 /* confdefs.h. */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 #include <$ac_header>
4456 _ACEOF
4457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4459 ac_status=$?
4460 grep -v '^ *+' conftest.er1 >conftest.err
4461 rm -f conftest.er1
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } >/dev/null; then
4465 if test -s conftest.err; then
4466 ac_cpp_err=$ac_cxx_preproc_warn_flag
4467 else
4468 ac_cpp_err=
4470 else
4471 ac_cpp_err=yes
4473 if test -z "$ac_cpp_err"; then
4474 ac_header_preproc=yes
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 ac_header_preproc=no
4481 rm -f conftest.err conftest.$ac_ext
4482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4483 echo "${ECHO_T}$ac_header_preproc" >&6
4485 # So? What about this header?
4486 case $ac_header_compiler:$ac_header_preproc in
4487 yes:no )
4488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4493 cat <<\_ASBOX
4494 ## ------------------------------------ ##
4495 ## Report this to bug-autoconf@gnu.org. ##
4496 ## ------------------------------------ ##
4497 _ASBOX
4499 sed "s/^/$as_me: WARNING: /" >&2
4501 no:yes )
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4509 cat <<\_ASBOX
4510 ## ------------------------------------ ##
4511 ## Report this to bug-autoconf@gnu.org. ##
4512 ## ------------------------------------ ##
4513 _ASBOX
4515 sed "s/^/$as_me: WARNING: /" >&2
4517 esac
4518 echo "$as_me:$LINENO: checking for $ac_header" >&5
4519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 eval "$as_ac_Header=$ac_header_preproc"
4525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4530 cat >>confdefs.h <<_ACEOF
4531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4532 _ACEOF
4533 SSLHDR=1
4536 done
4538 if test "${SSLHDR:-unset}" = "unset" ; then
4539 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
4540 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
4541 cat >conftest.$ac_ext <<_ACEOF
4542 #define OPENSSL_NO_KRB5
4543 #include <openssl/ssl.h>
4544 int main(int argc,char **argv){}
4545 _ACEOF
4546 rm -f conftest.$ac_objext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 SSLHDR=1
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4564 rm -f conftest.$ac_objext conftest.$ac_ext
4565 if test ${SSLHDR:-unset} != "unset" ; then
4566 echo "$as_me:$LINENO: result: yes" >&5
4567 echo "${ECHO_T}yes" >&6
4568 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
4569 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
4570 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4578 if test "${SSLHDR:-unset}" = "unset" ; then
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
4588 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
4589 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
4590 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
4591 echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4593 else
4594 cat >conftest.$ac_ext <<_ACEOF
4595 #include "${openssl_dir}/include/openssl/ssl.h"
4596 int main(int argc,char **argv){ return 0; }
4597 _ACEOF
4598 $CC $CFLAGS -I${openssl_dir}/include -c conftest.c > /dev/null 2>&1
4599 if test $? = 0 ; then
4600 echo "$as_me:$LINENO: result: yes" >&5
4601 echo "${ECHO_T}yes" >&6
4602 SSLHDR=1
4603 SSLCCFLAGS=""
4604 SSLINCLUDEDIR="${openssl_dir}/include"
4605 SSLLIBDIR="${openssl_dir}/lib"
4606 break
4607 else
4608 echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6
4610 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
4611 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
4612 cat >conftest.$ac_ext <<_ACEOF
4613 #define OPENSSL_NO_KRB5
4614 #include "${openssl_dir}/include/openssl/ssl.h"
4615 int main(int argc,char **argv){}
4616 _ACEOF
4617 $CC $CFLAGS -I${openssl_dir}/openssl/include -c conftest.c > /dev/null 2>&1
4618 if test $? = 0 ; then
4619 echo "$as_me:$LINENO: result: yes" >&5
4620 echo "${ECHO_T}yes" >&6
4621 SSLHDR=1
4622 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
4623 SSLINCLUDEDIR="${openssl_dir}/include"
4624 SSLLIBDIR="${openssl_dir}/lib"
4625 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
4626 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
4627 break
4628 else
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4634 done
4635 ac_ext=cc
4636 ac_cpp='$CXXCPP $CPPFLAGS'
4637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4643 if test ${SSLHDR:-unset} != "unset" ; then
4644 HAS_OPENSSL=1
4647 cat >>confdefs.h <<\_ACEOF
4648 #define P_SSL 1
4649 _ACEOF
4651 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
4652 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
4654 if test ${SSLLIBDIR:-unset} != "unset" ; then
4655 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
4657 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
4658 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
4667 # Check whether --enable-expat or --disable-expat was given.
4668 if test "${enable_expat+set}" = set; then
4669 enableval="$enable_expat"
4670 expat=$enableval
4673 if test "$expat" = "no" ; then
4674 HAS_EXPAT=0
4676 cat >>confdefs.h <<\_ACEOF
4677 #define P_EXPAT 0
4678 _ACEOF
4680 else
4683 for ac_header in expat.h
4685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4687 echo "$as_me:$LINENO: checking for $ac_header" >&5
4688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4694 else
4695 # Is the header compilable?
4696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4698 cat >conftest.$ac_ext <<_ACEOF
4699 #line $LINENO "configure"
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 #include <$ac_header>
4707 _ACEOF
4708 rm -f conftest.$ac_objext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710 (eval $ac_compile) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 ac_header_compiler=yes
4721 else
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 ac_header_compiler=no
4727 rm -f conftest.$ac_objext conftest.$ac_ext
4728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4729 echo "${ECHO_T}$ac_header_compiler" >&6
4731 # Is the header present?
4732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4734 cat >conftest.$ac_ext <<_ACEOF
4735 #line $LINENO "configure"
4736 /* confdefs.h. */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 #include <$ac_header>
4742 _ACEOF
4743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } >/dev/null; then
4751 if test -s conftest.err; then
4752 ac_cpp_err=$ac_cxx_preproc_warn_flag
4753 else
4754 ac_cpp_err=
4756 else
4757 ac_cpp_err=yes
4759 if test -z "$ac_cpp_err"; then
4760 ac_header_preproc=yes
4761 else
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 ac_header_preproc=no
4767 rm -f conftest.err conftest.$ac_ext
4768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4769 echo "${ECHO_T}$ac_header_preproc" >&6
4771 # So? What about this header?
4772 case $ac_header_compiler:$ac_header_preproc in
4773 yes:no )
4774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4779 cat <<\_ASBOX
4780 ## ------------------------------------ ##
4781 ## Report this to bug-autoconf@gnu.org. ##
4782 ## ------------------------------------ ##
4783 _ASBOX
4785 sed "s/^/$as_me: WARNING: /" >&2
4787 no:yes )
4788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4795 cat <<\_ASBOX
4796 ## ------------------------------------ ##
4797 ## Report this to bug-autoconf@gnu.org. ##
4798 ## ------------------------------------ ##
4799 _ASBOX
4801 sed "s/^/$as_me: WARNING: /" >&2
4803 esac
4804 echo "$as_me:$LINENO: checking for $ac_header" >&5
4805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 eval "$as_ac_Header=$ac_header_preproc"
4811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4816 cat >>confdefs.h <<_ACEOF
4817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4818 _ACEOF
4819 HAS_EXPAT=1
4822 done
4824 if test "${HAS_EXPAT:-unset}" != "unset" ; then
4825 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
4826 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
4827 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830 ac_check_lib_save_LIBS=$LIBS
4831 LIBS="-lexpat $LIBS"
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #line $LINENO "configure"
4834 /* confdefs.h. */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4840 /* Override any gcc2 internal prototype to avoid an error. */
4841 #ifdef __cplusplus
4842 extern "C"
4843 #endif
4844 /* We use char because int might match the return type of a gcc2
4845 builtin and then its argument prototype would still apply. */
4846 char XML_ParserCreate ();
4848 main ()
4850 XML_ParserCreate ();
4852 return 0;
4854 _ACEOF
4855 rm -f conftest.$ac_objext conftest$ac_exeext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4857 (eval $ac_link) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -s conftest$ac_exeext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_cv_lib_expat_XML_ParserCreate=yes
4868 else
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_cv_lib_expat_XML_ParserCreate=no
4874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4875 LIBS=$ac_check_lib_save_LIBS
4877 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
4878 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
4879 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
4880 HAS_EXPAT=1
4881 else
4882 HAS_EXPAT=
4885 else
4886 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
4887 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
4888 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 test "$cross_compiling" = yes &&
4892 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4893 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4894 { (exit 1); exit 1; }; }
4895 if test -r "/usr/local/include/expat.h"; then
4896 ac_cv_file__usr_local_include_expat_h=yes
4897 else
4898 ac_cv_file__usr_local_include_expat_h=no
4901 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
4902 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
4903 if test $ac_cv_file__usr_local_include_expat_h = yes; then
4904 HAS_EXPAT=1
4907 if test "${HAS_EXPAT:-unset}" != "unset" ; then
4908 EXPATINCLUDEDIR=/usr/local/include
4909 EXPATLIBDIR=/usr/local/lib
4913 if test "${HAS_EXPAT:-unset}" != "unset" ; then
4914 HAS_EXPAT=1
4917 cat >>confdefs.h <<\_ACEOF
4918 #define P_EXPAT 1
4919 _ACEOF
4921 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
4922 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
4924 if test ${EXPATLIBDIR:-unset} != "unset" ; then
4925 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
4927 ENDLDLIBS="$ENDLDLIBS -lexpat"
4936 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4937 if test "${enable_ipv6+set}" = set; then
4938 enableval="$enable_ipv6"
4939 ipv6=$enableval
4942 if test "$ipv6" = "no" ; then
4943 cat >>confdefs.h <<\_ACEOF
4944 #define P_HAS_IPV6 0
4945 _ACEOF
4947 HAS_IPV6=0
4949 else
4950 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
4951 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
4952 if test "${HAS_IPV6+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955 cat >conftest.$ac_ext <<_ACEOF
4956 #line $LINENO "configure"
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 #include <sys/types.h>
4963 #include <netinet/in.h>
4965 main ()
4967 struct sockaddr_in6 s; s.sin6_scope_id = 0;
4969 return 0;
4971 _ACEOF
4972 rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 HAS_IPV6=yes
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 HAS_IPV6=no
4991 rm -f conftest.$ac_objext conftest.$ac_ext
4993 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
4994 echo "${ECHO_T}$HAS_IPV6" >&6
4996 if test $HAS_IPV6 = yes ; then
4998 cat >>confdefs.h <<\_ACEOF
4999 #define P_HAS_IPV6 1
5000 _ACEOF
5007 # Check whether --enable-qos or --disable-qos was given.
5008 if test "${enable_qos+set}" = set; then
5009 enableval="$enable_qos"
5010 qos=$enableval
5013 if test "$qos" = "no" ; then
5014 cat >>confdefs.h <<\_ACEOF
5015 #define P_HAS_QOS 0
5016 _ACEOF
5018 else
5019 cat >>confdefs.h <<\_ACEOF
5020 #define P_HAS_QOS 1
5021 _ACEOF
5028 # Check whether --enable-sdl or --disable-sdl was given.
5029 if test "${enable_sdl+set}" = set; then
5030 enableval="$enable_sdl"
5031 sdl=$enableval
5034 if test "$sdl" = "no" ; then
5035 HAS_SDL=0
5037 cat >>confdefs.h <<\_ACEOF
5038 #define P_SDL 0
5039 _ACEOF
5041 else
5042 if test "${SDLLIB:-unset}" = "unset" ; then
5043 SDLLIB=SDL
5047 for ac_header in SDL/SDL.h
5049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051 echo "$as_me:$LINENO: checking for $ac_header" >&5
5052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5058 else
5059 # Is the header compilable?
5060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5062 cat >conftest.$ac_ext <<_ACEOF
5063 #line $LINENO "configure"
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 $ac_includes_default
5070 #include <$ac_header>
5071 _ACEOF
5072 rm -f conftest.$ac_objext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5074 (eval $ac_compile) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try='test -s conftest.$ac_objext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_header_compiler=yes
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 ac_header_compiler=no
5091 rm -f conftest.$ac_objext conftest.$ac_ext
5092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5093 echo "${ECHO_T}$ac_header_compiler" >&6
5095 # Is the header present?
5096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5098 cat >conftest.$ac_ext <<_ACEOF
5099 #line $LINENO "configure"
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 #include <$ac_header>
5106 _ACEOF
5107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109 ac_status=$?
5110 grep -v '^ *+' conftest.er1 >conftest.err
5111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } >/dev/null; then
5115 if test -s conftest.err; then
5116 ac_cpp_err=$ac_cxx_preproc_warn_flag
5117 else
5118 ac_cpp_err=
5120 else
5121 ac_cpp_err=yes
5123 if test -z "$ac_cpp_err"; then
5124 ac_header_preproc=yes
5125 else
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 ac_header_preproc=no
5131 rm -f conftest.err conftest.$ac_ext
5132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5133 echo "${ECHO_T}$ac_header_preproc" >&6
5135 # So? What about this header?
5136 case $ac_header_compiler:$ac_header_preproc in
5137 yes:no )
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5143 cat <<\_ASBOX
5144 ## ------------------------------------ ##
5145 ## Report this to bug-autoconf@gnu.org. ##
5146 ## ------------------------------------ ##
5147 _ASBOX
5149 sed "s/^/$as_me: WARNING: /" >&2
5151 no:yes )
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5159 cat <<\_ASBOX
5160 ## ------------------------------------ ##
5161 ## Report this to bug-autoconf@gnu.org. ##
5162 ## ------------------------------------ ##
5163 _ASBOX
5165 sed "s/^/$as_me: WARNING: /" >&2
5167 esac
5168 echo "$as_me:$LINENO: checking for $ac_header" >&5
5169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 eval "$as_ac_Header=$ac_header_preproc"
5175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5180 cat >>confdefs.h <<_ACEOF
5181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5182 _ACEOF
5183 HAS_SDL=1
5186 done
5188 if test "${HAS_SDL:-unset}" != "unset" ; then
5189 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5190 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5191 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 ac_check_lib_save_LIBS=$LIBS
5195 LIBS="-lSDL -lpthread $LIBS"
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5204 /* Override any gcc2 internal prototype to avoid an error. */
5205 #ifdef __cplusplus
5206 extern "C"
5207 #endif
5208 /* We use char because int might match the return type of a gcc2
5209 builtin and then its argument prototype would still apply. */
5210 char SDL_CreateYUVOverlay ();
5212 main ()
5214 SDL_CreateYUVOverlay ();
5216 return 0;
5218 _ACEOF
5219 rm -f conftest.$ac_objext conftest$ac_exeext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221 (eval $ac_link) 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -s conftest$ac_exeext'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 (eval $ac_try) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; }; then
5231 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
5232 else
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5236 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
5238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5239 LIBS=$ac_check_lib_save_LIBS
5241 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5242 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5243 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5244 HAS_SDL=1
5245 else
5246 HAS_SDL=
5251 if test "${HAS_SDL:-unset}" = "unset" ; then
5252 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5253 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5254 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 test "$cross_compiling" = yes &&
5258 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5259 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5260 { (exit 1); exit 1; }; }
5261 if test -r "/usr/local/include/SDL11/SDL.h"; then
5262 ac_cv_file__usr_local_include_SDL11_SDL_h=yes
5263 else
5264 ac_cv_file__usr_local_include_SDL11_SDL_h=no
5267 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
5268 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
5269 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
5270 HAS_SDL=1
5273 if test "${HAS_SDL:-unset}" != "unset" ; then
5274 SDLLIB=SDL-1.1
5278 if test "${HAS_SDL:-unset}" != "unset" ; then
5279 HAS_SDL=1
5282 cat >>confdefs.h <<\_ACEOF
5283 #define P_SDL 1
5284 _ACEOF
5286 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
5287 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
5289 if test ${SDLLIBDIR:-unset} != "unset" ; then
5290 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
5292 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
5298 # Check whether --enable-video or --disable-video was given.
5299 if test "${enable_video+set}" = set; then
5300 enableval="$enable_video"
5301 video=$enableval
5304 HAS_VIDEO_CAPTURE=0
5305 if test "$HAS_PLUGINS" = "0" ; then
5306 if test "$video" != "no" ; then
5307 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5308 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5309 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5310 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5314 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5315 else
5316 # Is the header compilable?
5317 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
5318 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
5319 cat >conftest.$ac_ext <<_ACEOF
5320 #line $LINENO "configure"
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 $ac_includes_default
5327 #include <linux/videodev.h>
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_header_compiler=yes
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 ac_header_compiler=no
5348 rm -f conftest.$ac_objext conftest.$ac_ext
5349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5350 echo "${ECHO_T}$ac_header_compiler" >&6
5352 # Is the header present?
5353 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
5354 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
5355 cat >conftest.$ac_ext <<_ACEOF
5356 #line $LINENO "configure"
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <linux/videodev.h>
5363 _ACEOF
5364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5366 ac_status=$?
5367 grep -v '^ *+' conftest.er1 >conftest.err
5368 rm -f conftest.er1
5369 cat conftest.err >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } >/dev/null; then
5372 if test -s conftest.err; then
5373 ac_cpp_err=$ac_cxx_preproc_warn_flag
5374 else
5375 ac_cpp_err=
5377 else
5378 ac_cpp_err=yes
5380 if test -z "$ac_cpp_err"; then
5381 ac_header_preproc=yes
5382 else
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 ac_header_preproc=no
5388 rm -f conftest.err conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5390 echo "${ECHO_T}$ac_header_preproc" >&6
5392 # So? What about this header?
5393 case $ac_header_compiler:$ac_header_preproc in
5394 yes:no )
5395 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5396 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
5398 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
5400 cat <<\_ASBOX
5401 ## ------------------------------------ ##
5402 ## Report this to bug-autoconf@gnu.org. ##
5403 ## ------------------------------------ ##
5404 _ASBOX
5406 sed "s/^/$as_me: WARNING: /" >&2
5408 no:yes )
5409 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
5410 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
5412 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
5414 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
5416 cat <<\_ASBOX
5417 ## ------------------------------------ ##
5418 ## Report this to bug-autoconf@gnu.org. ##
5419 ## ------------------------------------ ##
5420 _ASBOX
5422 sed "s/^/$as_me: WARNING: /" >&2
5424 esac
5425 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5426 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5427 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 ac_cv_header_linux_videodev_h=$ac_header_preproc
5432 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5433 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5436 if test $ac_cv_header_linux_videodev_h = yes; then
5437 HAS_VIDEO_CAPTURE=1
5441 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
5442 { echo "$as_me:$LINENO: No Video Capture support" >&5
5443 echo "$as_me: No Video Capture support" >&6;}
5447 cat >>confdefs.h <<\_ACEOF
5448 #define NO_VIDEO_CAPTURE 1
5449 _ACEOF
5452 # Check whether --enable-alsa or --disable-alsa was given.
5453 if test "${enable_alsa+set}" = set; then
5454 enableval="$enable_alsa"
5455 enable_alsa=$enableval
5458 HAS_ALSA=0
5459 if test "$HAS_PLUGINS" = "0" ; then
5460 if test "$enable_alsa" != "no" ; then
5461 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5462 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
5463 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
5464 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
5468 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
5469 else
5470 # Is the header compilable?
5471 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
5472 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 $ac_includes_default
5481 #include <alsa/asoundlib.h>
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest.$ac_objext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_header_compiler=yes
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_header_compiler=no
5502 rm -f conftest.$ac_objext conftest.$ac_ext
5503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5504 echo "${ECHO_T}$ac_header_compiler" >&6
5506 # Is the header present?
5507 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
5508 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
5509 cat >conftest.$ac_ext <<_ACEOF
5510 #line $LINENO "configure"
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <alsa/asoundlib.h>
5517 _ACEOF
5518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } >/dev/null; then
5526 if test -s conftest.err; then
5527 ac_cpp_err=$ac_cxx_preproc_warn_flag
5528 else
5529 ac_cpp_err=
5531 else
5532 ac_cpp_err=yes
5534 if test -z "$ac_cpp_err"; then
5535 ac_header_preproc=yes
5536 else
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_header_preproc=no
5542 rm -f conftest.err conftest.$ac_ext
5543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5544 echo "${ECHO_T}$ac_header_preproc" >&6
5546 # So? What about this header?
5547 case $ac_header_compiler:$ac_header_preproc in
5548 yes:no )
5549 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5550 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
5552 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
5554 cat <<\_ASBOX
5555 ## ------------------------------------ ##
5556 ## Report this to bug-autoconf@gnu.org. ##
5557 ## ------------------------------------ ##
5558 _ASBOX
5560 sed "s/^/$as_me: WARNING: /" >&2
5562 no:yes )
5563 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
5564 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
5565 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
5566 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
5567 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
5568 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
5570 cat <<\_ASBOX
5571 ## ------------------------------------ ##
5572 ## Report this to bug-autoconf@gnu.org. ##
5573 ## ------------------------------------ ##
5574 _ASBOX
5576 sed "s/^/$as_me: WARNING: /" >&2
5578 esac
5579 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
5580 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
5581 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
5586 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
5587 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
5590 if test $ac_cv_header_alsa_asoundlib_h = yes; then
5591 HAS_ALSA=1
5595 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
5596 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
5597 if test "${HAS_ALSA}" = "1"; then
5598 echo "$as_me:$LINENO: result: yes" >&5
5599 echo "${ECHO_T}yes" >&6
5600 ENDLDLIBS="$ENDLDLIBS -lasound"
5601 else
5602 echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6
5609 if test "$OSTYPE" = "solaris" ; then
5610 USE_SYSTEM_SWAB=
5611 else
5612 echo "$as_me:$LINENO: checking for swab" >&5
5613 echo $ECHO_N "checking for swab... $ECHO_C" >&6
5614 if test "${ac_cv_func_swab+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 cat >conftest.$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 /* System header to define __stub macros and hopefully few prototypes,
5625 which can conflict with char swab (); below.
5626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5627 <limits.h> exists even on freestanding compilers. */
5628 #ifdef __STDC__
5629 # include <limits.h>
5630 #else
5631 # include <assert.h>
5632 #endif
5633 /* Override any gcc2 internal prototype to avoid an error. */
5634 #ifdef __cplusplus
5635 extern "C"
5637 #endif
5638 /* We use char because int might match the return type of a gcc2
5639 builtin and then its argument prototype would still apply. */
5640 char swab ();
5641 /* The GNU C library defines this for functions which it implements
5642 to always fail with ENOSYS. Some functions are actually named
5643 something starting with __ and the normal name is an alias. */
5644 #if defined (__stub_swab) || defined (__stub___swab)
5645 choke me
5646 #else
5647 char (*f) () = swab;
5648 #endif
5649 #ifdef __cplusplus
5651 #endif
5654 main ()
5656 return f != swab;
5658 return 0;
5660 _ACEOF
5661 rm -f conftest.$ac_objext conftest$ac_exeext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5663 (eval $ac_link) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_func_swab=yes
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_cv_func_swab=no
5680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
5683 echo "${ECHO_T}$ac_cv_func_swab" >&6
5684 if test $ac_cv_func_swab = yes; then
5685 USE_SYSTEM_SWAB=1
5689 if test "x$ac_cv_func_swab" = "xyes" ; then
5690 cat >>confdefs.h <<\_ACEOF
5691 #define USE_SYSTEM_SWAB 1
5692 _ACEOF
5697 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
5698 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
5699 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
5703 if test "${OSTYPE}" != "Darwin" ; then
5704 if test ${HAS_LIBDL} = yes ; then
5705 ENDLDLIBS="$ENDLDLIBS -ldl"
5714 ac_config_files="$ac_config_files make/ptbuildopts.mak"
5716 ac_config_files="$ac_config_files make/ptlib-config"
5718 ac_config_files="$ac_config_files Makefile"
5721 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
5722 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
5725 cat >confcache <<\_ACEOF
5726 # This file is a shell script that caches the results of configure
5727 # tests run on this system so they can be shared between configure
5728 # scripts and configure runs, see configure's option --config-cache.
5729 # It is not useful on other systems. If it contains results you don't
5730 # want to keep, you may remove or edit it.
5732 # config.status only pays attention to the cache file if you give it
5733 # the --recheck option to rerun configure.
5735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5737 # following values.
5739 _ACEOF
5741 # The following way of writing the cache mishandles newlines in values,
5742 # but we know of no workaround that is simple, portable, and efficient.
5743 # So, don't put newlines in cache variables' values.
5744 # Ultrix sh set writes to stderr and can't be redirected directly,
5745 # and sets the high bit in the cache file unless we assign to the vars.
5747 (set) 2>&1 |
5748 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5749 *ac_space=\ *)
5750 # `set' does not quote correctly, so add quotes (double-quote
5751 # substitution turns \\\\ into \\, and sed turns \\ into \).
5752 sed -n \
5753 "s/'/'\\\\''/g;
5754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5757 # `set' quotes correctly as required by POSIX, so do not add quotes.
5758 sed -n \
5759 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5761 esac;
5763 sed '
5764 t clear
5765 : clear
5766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5767 t end
5768 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5769 : end' >>confcache
5770 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5771 if test -w $cache_file; then
5772 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5773 cat confcache >$cache_file
5774 else
5775 echo "not updating unwritable cache $cache_file"
5778 rm -f confcache
5780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5781 # Let make expand exec_prefix.
5782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5784 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5785 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5786 # trailing colons and then remove the whole line if VPATH becomes empty
5787 # (actually we leave an empty line to preserve line numbers).
5788 if test "x$srcdir" = x.; then
5789 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5790 s/:*\$(srcdir):*/:/;
5791 s/:*\${srcdir}:*/:/;
5792 s/:*@srcdir@:*/:/;
5793 s/^\([^=]*=[ ]*\):*/\1/;
5794 s/:*$//;
5795 s/^[^=]*=[ ]*$//;
5799 DEFS=-DHAVE_CONFIG_H
5801 ac_libobjs=
5802 ac_ltlibobjs=
5803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5804 # 1. Remove the extension, and $U if already installed.
5805 ac_i=`echo "$ac_i" |
5806 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5807 # 2. Add them.
5808 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5809 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5810 done
5811 LIBOBJS=$ac_libobjs
5813 LTLIBOBJS=$ac_ltlibobjs
5817 : ${CONFIG_STATUS=./config.status}
5818 ac_clean_files_save=$ac_clean_files
5819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5820 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5821 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5822 cat >$CONFIG_STATUS <<_ACEOF
5823 #! $SHELL
5824 # Generated by $as_me.
5825 # Run this file to recreate the current configuration.
5826 # Compiler output produced by configure, useful for debugging
5827 # configure, is in config.log if it exists.
5829 debug=false
5830 ac_cs_recheck=false
5831 ac_cs_silent=false
5832 SHELL=\${CONFIG_SHELL-$SHELL}
5833 _ACEOF
5835 cat >>$CONFIG_STATUS <<\_ACEOF
5836 ## --------------------- ##
5837 ## M4sh Initialization. ##
5838 ## --------------------- ##
5840 # Be Bourne compatible
5841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5842 emulate sh
5843 NULLCMD=:
5844 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5845 # is contrary to our usage. Disable this feature.
5846 alias -g '${1+"$@"}'='"$@"'
5847 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5848 set -o posix
5851 # Support unset when possible.
5852 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5853 as_unset=unset
5854 else
5855 as_unset=false
5859 # Work around bugs in pre-3.0 UWIN ksh.
5860 $as_unset ENV MAIL MAILPATH
5861 PS1='$ '
5862 PS2='> '
5863 PS4='+ '
5865 # NLS nuisances.
5866 for as_var in \
5867 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5868 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5869 LC_TELEPHONE LC_TIME
5871 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5872 eval $as_var=C; export $as_var
5873 else
5874 $as_unset $as_var
5876 done
5878 # Required to use basename.
5879 if expr a : '\(a\)' >/dev/null 2>&1; then
5880 as_expr=expr
5881 else
5882 as_expr=false
5885 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5886 as_basename=basename
5887 else
5888 as_basename=false
5892 # Name of the executable.
5893 as_me=`$as_basename "$0" ||
5894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5895 X"$0" : 'X\(//\)$' \| \
5896 X"$0" : 'X\(/\)$' \| \
5897 . : '\(.\)' 2>/dev/null ||
5898 echo X/"$0" |
5899 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5900 /^X\/\(\/\/\)$/{ s//\1/; q; }
5901 /^X\/\(\/\).*/{ s//\1/; q; }
5902 s/.*/./; q'`
5905 # PATH needs CR, and LINENO needs CR and PATH.
5906 # Avoid depending upon Character Ranges.
5907 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5908 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5909 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5910 as_cr_digits='0123456789'
5911 as_cr_alnum=$as_cr_Letters$as_cr_digits
5913 # The user is always right.
5914 if test "${PATH_SEPARATOR+set}" != set; then
5915 echo "#! /bin/sh" >conf$$.sh
5916 echo "exit 0" >>conf$$.sh
5917 chmod +x conf$$.sh
5918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5919 PATH_SEPARATOR=';'
5920 else
5921 PATH_SEPARATOR=:
5923 rm -f conf$$.sh
5927 as_lineno_1=$LINENO
5928 as_lineno_2=$LINENO
5929 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5930 test "x$as_lineno_1" != "x$as_lineno_2" &&
5931 test "x$as_lineno_3" = "x$as_lineno_2" || {
5932 # Find who we are. Look in the path if we contain no path at all
5933 # relative or not.
5934 case $0 in
5935 *[\\/]* ) as_myself=$0 ;;
5936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5942 done
5945 esac
5946 # We did not find ourselves, most probably we were run as `sh COMMAND'
5947 # in which case we are not to be found in the path.
5948 if test "x$as_myself" = x; then
5949 as_myself=$0
5951 if test ! -f "$as_myself"; then
5952 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5953 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5954 { (exit 1); exit 1; }; }
5956 case $CONFIG_SHELL in
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for as_base in sh bash ksh sh5; do
5964 case $as_dir in
5966 if ("$as_dir/$as_base" -c '
5967 as_lineno_1=$LINENO
5968 as_lineno_2=$LINENO
5969 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5970 test "x$as_lineno_1" != "x$as_lineno_2" &&
5971 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5972 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5973 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5974 CONFIG_SHELL=$as_dir/$as_base
5975 export CONFIG_SHELL
5976 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5977 fi;;
5978 esac
5979 done
5980 done
5982 esac
5984 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5985 # uniformly replaced by the line number. The first 'sed' inserts a
5986 # line-number line before each line; the second 'sed' does the real
5987 # work. The second script uses 'N' to pair each line-number line
5988 # with the numbered line, and appends trailing '-' during
5989 # substitution so that $LINENO is not a special case at line end.
5990 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5991 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5992 sed '=' <$as_myself |
5993 sed '
5995 s,$,-,
5996 : loop
5997 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5998 t loop
5999 s,-$,,
6000 s,^['$as_cr_digits']*\n,,
6001 ' >$as_me.lineno &&
6002 chmod +x $as_me.lineno ||
6003 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6004 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6005 { (exit 1); exit 1; }; }
6007 # Don't try to exec as it changes $[0], causing all sort of problems
6008 # (the dirname of $[0] is not the place where we might find the
6009 # original and so on. Autoconf is especially sensible to this).
6010 . ./$as_me.lineno
6011 # Exit status is that of the last command.
6012 exit
6016 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6017 *c*,-n*) ECHO_N= ECHO_C='
6018 ' ECHO_T=' ' ;;
6019 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6020 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6021 esac
6023 if expr a : '\(a\)' >/dev/null 2>&1; then
6024 as_expr=expr
6025 else
6026 as_expr=false
6029 rm -f conf$$ conf$$.exe conf$$.file
6030 echo >conf$$.file
6031 if ln -s conf$$.file conf$$ 2>/dev/null; then
6032 # We could just check for DJGPP; but this test a) works b) is more generic
6033 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6034 if test -f conf$$.exe; then
6035 # Don't use ln at all; we don't have any links
6036 as_ln_s='cp -p'
6037 else
6038 as_ln_s='ln -s'
6040 elif ln conf$$.file conf$$ 2>/dev/null; then
6041 as_ln_s=ln
6042 else
6043 as_ln_s='cp -p'
6045 rm -f conf$$ conf$$.exe conf$$.file
6047 if mkdir -p . 2>/dev/null; then
6048 as_mkdir_p=:
6049 else
6050 as_mkdir_p=false
6053 as_executable_p="test -f"
6055 # Sed expression to map a string onto a valid CPP name.
6056 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6058 # Sed expression to map a string onto a valid variable name.
6059 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6062 # IFS
6063 # We need space, tab and new line, in precisely that order.
6064 as_nl='
6066 IFS=" $as_nl"
6068 # CDPATH.
6069 $as_unset CDPATH
6071 exec 6>&1
6073 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6074 # report actual input values of CONFIG_FILES etc. instead of their
6075 # values after options handling. Logging --version etc. is OK.
6076 exec 5>>config.log
6078 echo
6079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6080 ## Running $as_me. ##
6081 _ASBOX
6082 } >&5
6083 cat >&5 <<_CSEOF
6085 This file was extended by $as_me, which was
6086 generated by GNU Autoconf 2.57. Invocation command line was
6088 CONFIG_FILES = $CONFIG_FILES
6089 CONFIG_HEADERS = $CONFIG_HEADERS
6090 CONFIG_LINKS = $CONFIG_LINKS
6091 CONFIG_COMMANDS = $CONFIG_COMMANDS
6092 $ $0 $@
6094 _CSEOF
6095 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6096 echo >&5
6097 _ACEOF
6099 # Files that config.status was made for.
6100 if test -n "$ac_config_files"; then
6101 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6104 if test -n "$ac_config_headers"; then
6105 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6108 if test -n "$ac_config_links"; then
6109 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6112 if test -n "$ac_config_commands"; then
6113 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6116 cat >>$CONFIG_STATUS <<\_ACEOF
6118 ac_cs_usage="\
6119 \`$as_me' instantiates files from templates according to the
6120 current configuration.
6122 Usage: $0 [OPTIONS] [FILE]...
6124 -h, --help print this help, then exit
6125 -V, --version print version number, then exit
6126 -q, --quiet do not print progress messages
6127 -d, --debug don't remove temporary files
6128 --recheck update $as_me by reconfiguring in the same conditions
6129 --file=FILE[:TEMPLATE]
6130 instantiate the configuration file FILE
6131 --header=FILE[:TEMPLATE]
6132 instantiate the configuration header FILE
6134 Configuration files:
6135 $config_files
6137 Configuration headers:
6138 $config_headers
6140 Report bugs to <bug-autoconf@gnu.org>."
6141 _ACEOF
6143 cat >>$CONFIG_STATUS <<_ACEOF
6144 ac_cs_version="\\
6145 config.status
6146 configured by $0, generated by GNU Autoconf 2.57,
6147 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6149 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6150 Free Software Foundation, Inc.
6151 This config.status script is free software; the Free Software Foundation
6152 gives unlimited permission to copy, distribute and modify it."
6153 srcdir=$srcdir
6154 _ACEOF
6156 cat >>$CONFIG_STATUS <<\_ACEOF
6157 # If no file are specified by the user, then we need to provide default
6158 # value. By we need to know if files were specified by the user.
6159 ac_need_defaults=:
6160 while test $# != 0
6162 case $1 in
6163 --*=*)
6164 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6165 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6166 ac_shift=:
6169 ac_option=$1
6170 ac_optarg=$2
6171 ac_shift=shift
6173 *) # This is not an option, so the user has probably given explicit
6174 # arguments.
6175 ac_option=$1
6176 ac_need_defaults=false;;
6177 esac
6179 case $ac_option in
6180 # Handling of the options.
6181 _ACEOF
6182 cat >>$CONFIG_STATUS <<\_ACEOF
6183 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6184 ac_cs_recheck=: ;;
6185 --version | --vers* | -V )
6186 echo "$ac_cs_version"; exit 0 ;;
6187 --he | --h)
6188 # Conflict between --help and --header
6189 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6190 Try \`$0 --help' for more information." >&5
6191 echo "$as_me: error: ambiguous option: $1
6192 Try \`$0 --help' for more information." >&2;}
6193 { (exit 1); exit 1; }; };;
6194 --help | --hel | -h )
6195 echo "$ac_cs_usage"; exit 0 ;;
6196 --debug | --d* | -d )
6197 debug=: ;;
6198 --file | --fil | --fi | --f )
6199 $ac_shift
6200 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6201 ac_need_defaults=false;;
6202 --header | --heade | --head | --hea )
6203 $ac_shift
6204 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6205 ac_need_defaults=false;;
6206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6207 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6208 ac_cs_silent=: ;;
6210 # This is an error.
6211 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6212 Try \`$0 --help' for more information." >&5
6213 echo "$as_me: error: unrecognized option: $1
6214 Try \`$0 --help' for more information." >&2;}
6215 { (exit 1); exit 1; }; } ;;
6217 *) ac_config_targets="$ac_config_targets $1" ;;
6219 esac
6220 shift
6221 done
6223 ac_configure_extra_args=
6225 if $ac_cs_silent; then
6226 exec 6>/dev/null
6227 ac_configure_extra_args="$ac_configure_extra_args --silent"
6230 _ACEOF
6231 cat >>$CONFIG_STATUS <<_ACEOF
6232 if \$ac_cs_recheck; then
6233 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6234 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6237 _ACEOF
6243 cat >>$CONFIG_STATUS <<\_ACEOF
6244 for ac_config_target in $ac_config_targets
6246 case "$ac_config_target" in
6247 # Handling of arguments.
6248 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
6249 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
6250 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6251 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
6252 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6253 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6254 { (exit 1); exit 1; }; };;
6255 esac
6256 done
6258 # If the user did not use the arguments to specify the items to instantiate,
6259 # then the envvar interface is used. Set only those that are not.
6260 # We use the long form for the default assignment because of an extremely
6261 # bizarre bug on SunOS 4.1.3.
6262 if $ac_need_defaults; then
6263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6267 # Have a temporary directory for convenience. Make it in the build tree
6268 # simply because there is no reason to put it here, and in addition,
6269 # creating and moving files from /tmp can sometimes cause problems.
6270 # Create a temporary directory, and hook for its removal unless debugging.
6271 $debug ||
6273 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6274 trap '{ (exit 1); exit 1; }' 1 2 13 15
6277 # Create a (secure) tmp directory for tmp files.
6280 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6281 test -n "$tmp" && test -d "$tmp"
6282 } ||
6284 tmp=./confstat$$-$RANDOM
6285 (umask 077 && mkdir $tmp)
6286 } ||
6288 echo "$me: cannot create a temporary directory in ." >&2
6289 { (exit 1); exit 1; }
6292 _ACEOF
6294 cat >>$CONFIG_STATUS <<_ACEOF
6297 # CONFIG_FILES section.
6300 # No need to generate the scripts if there are no CONFIG_FILES.
6301 # This happens for instance when ./config.status config.h
6302 if test -n "\$CONFIG_FILES"; then
6303 # Protect against being on the right side of a sed subst in config.status.
6304 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6305 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6306 s,@SHELL@,$SHELL,;t t
6307 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6308 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6309 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6310 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6311 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6312 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6313 s,@exec_prefix@,$exec_prefix,;t t
6314 s,@prefix@,$prefix,;t t
6315 s,@program_transform_name@,$program_transform_name,;t t
6316 s,@bindir@,$bindir,;t t
6317 s,@sbindir@,$sbindir,;t t
6318 s,@libexecdir@,$libexecdir,;t t
6319 s,@datadir@,$datadir,;t t
6320 s,@sysconfdir@,$sysconfdir,;t t
6321 s,@sharedstatedir@,$sharedstatedir,;t t
6322 s,@localstatedir@,$localstatedir,;t t
6323 s,@libdir@,$libdir,;t t
6324 s,@includedir@,$includedir,;t t
6325 s,@oldincludedir@,$oldincludedir,;t t
6326 s,@infodir@,$infodir,;t t
6327 s,@mandir@,$mandir,;t t
6328 s,@build_alias@,$build_alias,;t t
6329 s,@host_alias@,$host_alias,;t t
6330 s,@target_alias@,$target_alias,;t t
6331 s,@DEFS@,$DEFS,;t t
6332 s,@ECHO_C@,$ECHO_C,;t t
6333 s,@ECHO_N@,$ECHO_N,;t t
6334 s,@ECHO_T@,$ECHO_T,;t t
6335 s,@LIBS@,$LIBS,;t t
6336 s,@subdirs@,$subdirs,;t t
6337 s,@CXX@,$CXX,;t t
6338 s,@CXXFLAGS@,$CXXFLAGS,;t t
6339 s,@LDFLAGS@,$LDFLAGS,;t t
6340 s,@CPPFLAGS@,$CPPFLAGS,;t t
6341 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6342 s,@EXEEXT@,$EXEEXT,;t t
6343 s,@OBJEXT@,$OBJEXT,;t t
6344 s,@PWLIBDIR@,$PWLIBDIR,;t t
6345 s,@PWINSTDIR@,$PWINSTDIR,;t t
6346 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6347 s,@LIBDIR@,$LIBDIR,;t t
6348 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
6349 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
6350 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
6351 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
6352 s,@build@,$build,;t t
6353 s,@build_cpu@,$build_cpu,;t t
6354 s,@build_vendor@,$build_vendor,;t t
6355 s,@build_os@,$build_os,;t t
6356 s,@host@,$host,;t t
6357 s,@host_cpu@,$host_cpu,;t t
6358 s,@host_vendor@,$host_vendor,;t t
6359 s,@host_os@,$host_os,;t t
6360 s,@target@,$target,;t t
6361 s,@target_cpu@,$target_cpu,;t t
6362 s,@target_vendor@,$target_vendor,;t t
6363 s,@target_os@,$target_os,;t t
6364 s,@MACHTYPE@,$MACHTYPE,;t t
6365 s,@OSTYPE@,$OSTYPE,;t t
6366 s,@OSRELEASE@,$OSRELEASE,;t t
6367 s,@TARGETDIR@,$TARGETDIR,;t t
6368 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
6369 s,@CXXCPP@,$CXXCPP,;t t
6370 s,@EGREP@,$EGREP,;t t
6371 s,@HAS_REGEX@,$HAS_REGEX,;t t
6372 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
6373 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
6374 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
6375 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
6376 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
6377 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
6378 s,@HAS_IPV6@,$HAS_IPV6,;t t
6379 s,@HAS_SDL@,$HAS_SDL,;t t
6380 s,@HAS_ALSA@,$HAS_ALSA,;t t
6381 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
6382 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
6383 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
6384 s,@LIBOBJS@,$LIBOBJS,;t t
6385 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6386 CEOF
6388 _ACEOF
6390 cat >>$CONFIG_STATUS <<\_ACEOF
6391 # Split the substitutions into bite-sized pieces for seds with
6392 # small command number limits, like on Digital OSF/1 and HP-UX.
6393 ac_max_sed_lines=48
6394 ac_sed_frag=1 # Number of current file.
6395 ac_beg=1 # First line for current file.
6396 ac_end=$ac_max_sed_lines # Line after last line for current file.
6397 ac_more_lines=:
6398 ac_sed_cmds=
6399 while $ac_more_lines; do
6400 if test $ac_beg -gt 1; then
6401 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6402 else
6403 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6405 if test ! -s $tmp/subs.frag; then
6406 ac_more_lines=false
6407 else
6408 # The purpose of the label and of the branching condition is to
6409 # speed up the sed processing (if there are no `@' at all, there
6410 # is no need to browse any of the substitutions).
6411 # These are the two extra sed commands mentioned above.
6412 (echo ':t
6413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6414 if test -z "$ac_sed_cmds"; then
6415 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6416 else
6417 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6419 ac_sed_frag=`expr $ac_sed_frag + 1`
6420 ac_beg=$ac_end
6421 ac_end=`expr $ac_end + $ac_max_sed_lines`
6423 done
6424 if test -z "$ac_sed_cmds"; then
6425 ac_sed_cmds=cat
6427 fi # test -n "$CONFIG_FILES"
6429 _ACEOF
6430 cat >>$CONFIG_STATUS <<\_ACEOF
6431 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6433 case $ac_file in
6434 - | *:- | *:-:* ) # input from stdin
6435 cat >$tmp/stdin
6436 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6437 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6438 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6439 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6440 * ) ac_file_in=$ac_file.in ;;
6441 esac
6443 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6444 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6446 X"$ac_file" : 'X\(//\)[^/]' \| \
6447 X"$ac_file" : 'X\(//\)$' \| \
6448 X"$ac_file" : 'X\(/\)' \| \
6449 . : '\(.\)' 2>/dev/null ||
6450 echo X"$ac_file" |
6451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6453 /^X\(\/\/\)$/{ s//\1/; q; }
6454 /^X\(\/\).*/{ s//\1/; q; }
6455 s/.*/./; q'`
6456 { if $as_mkdir_p; then
6457 mkdir -p "$ac_dir"
6458 else
6459 as_dir="$ac_dir"
6460 as_dirs=
6461 while test ! -d "$as_dir"; do
6462 as_dirs="$as_dir $as_dirs"
6463 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6465 X"$as_dir" : 'X\(//\)[^/]' \| \
6466 X"$as_dir" : 'X\(//\)$' \| \
6467 X"$as_dir" : 'X\(/\)' \| \
6468 . : '\(.\)' 2>/dev/null ||
6469 echo X"$as_dir" |
6470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6472 /^X\(\/\/\)$/{ s//\1/; q; }
6473 /^X\(\/\).*/{ s//\1/; q; }
6474 s/.*/./; q'`
6475 done
6476 test ! -n "$as_dirs" || mkdir $as_dirs
6477 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6478 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6479 { (exit 1); exit 1; }; }; }
6481 ac_builddir=.
6483 if test "$ac_dir" != .; then
6484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6485 # A "../" for each directory in $ac_dir_suffix.
6486 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6487 else
6488 ac_dir_suffix= ac_top_builddir=
6491 case $srcdir in
6492 .) # No --srcdir option. We are building in place.
6493 ac_srcdir=.
6494 if test -z "$ac_top_builddir"; then
6495 ac_top_srcdir=.
6496 else
6497 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6498 fi ;;
6499 [\\/]* | ?:[\\/]* ) # Absolute path.
6500 ac_srcdir=$srcdir$ac_dir_suffix;
6501 ac_top_srcdir=$srcdir ;;
6502 *) # Relative path.
6503 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6504 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6505 esac
6506 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6507 # absolute.
6508 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6509 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6510 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6511 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6515 if test x"$ac_file" != x-; then
6516 { echo "$as_me:$LINENO: creating $ac_file" >&5
6517 echo "$as_me: creating $ac_file" >&6;}
6518 rm -f "$ac_file"
6520 # Let's still pretend it is `configure' which instantiates (i.e., don't
6521 # use $as_me), people would be surprised to read:
6522 # /* config.h. Generated by config.status. */
6523 if test x"$ac_file" = x-; then
6524 configure_input=
6525 else
6526 configure_input="$ac_file. "
6528 configure_input=$configure_input"Generated from `echo $ac_file_in |
6529 sed 's,.*/,,'` by configure."
6531 # First look for the input files in the build tree, otherwise in the
6532 # src tree.
6533 ac_file_inputs=`IFS=:
6534 for f in $ac_file_in; do
6535 case $f in
6536 -) echo $tmp/stdin ;;
6537 [\\/$]*)
6538 # Absolute (can't be DOS-style, as IFS=:)
6539 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6540 echo "$as_me: error: cannot find input file: $f" >&2;}
6541 { (exit 1); exit 1; }; }
6542 echo $f;;
6543 *) # Relative
6544 if test -f "$f"; then
6545 # Build tree
6546 echo $f
6547 elif test -f "$srcdir/$f"; then
6548 # Source tree
6549 echo $srcdir/$f
6550 else
6551 # /dev/null tree
6552 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6553 echo "$as_me: error: cannot find input file: $f" >&2;}
6554 { (exit 1); exit 1; }; }
6555 fi;;
6556 esac
6557 done` || { (exit 1); exit 1; }
6558 _ACEOF
6559 cat >>$CONFIG_STATUS <<_ACEOF
6560 sed "$ac_vpsub
6561 $extrasub
6562 _ACEOF
6563 cat >>$CONFIG_STATUS <<\_ACEOF
6565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6566 s,@configure_input@,$configure_input,;t t
6567 s,@srcdir@,$ac_srcdir,;t t
6568 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6569 s,@top_srcdir@,$ac_top_srcdir,;t t
6570 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6571 s,@builddir@,$ac_builddir,;t t
6572 s,@abs_builddir@,$ac_abs_builddir,;t t
6573 s,@top_builddir@,$ac_top_builddir,;t t
6574 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6575 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6576 rm -f $tmp/stdin
6577 if test x"$ac_file" != x-; then
6578 mv $tmp/out $ac_file
6579 else
6580 cat $tmp/out
6581 rm -f $tmp/out
6584 # Run the commands associated with the file.
6585 case $ac_file in
6586 make/ptlib-config ) chmod a+x make/ptlib-config ;;
6587 esac
6588 done
6589 _ACEOF
6590 cat >>$CONFIG_STATUS <<\_ACEOF
6593 # CONFIG_HEADER section.
6596 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6597 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6599 # ac_d sets the value in "#define NAME VALUE" lines.
6600 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6601 ac_dB='[ ].*$,\1#\2'
6602 ac_dC=' '
6603 ac_dD=',;t'
6604 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6605 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6606 ac_uB='$,\1#\2define\3'
6607 ac_uC=' '
6608 ac_uD=',;t'
6610 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6612 case $ac_file in
6613 - | *:- | *:-:* ) # input from stdin
6614 cat >$tmp/stdin
6615 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6617 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6618 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6619 * ) ac_file_in=$ac_file.in ;;
6620 esac
6622 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6623 echo "$as_me: creating $ac_file" >&6;}
6625 # First look for the input files in the build tree, otherwise in the
6626 # src tree.
6627 ac_file_inputs=`IFS=:
6628 for f in $ac_file_in; do
6629 case $f in
6630 -) echo $tmp/stdin ;;
6631 [\\/$]*)
6632 # Absolute (can't be DOS-style, as IFS=:)
6633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6634 echo "$as_me: error: cannot find input file: $f" >&2;}
6635 { (exit 1); exit 1; }; }
6636 echo $f;;
6637 *) # Relative
6638 if test -f "$f"; then
6639 # Build tree
6640 echo $f
6641 elif test -f "$srcdir/$f"; then
6642 # Source tree
6643 echo $srcdir/$f
6644 else
6645 # /dev/null tree
6646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6647 echo "$as_me: error: cannot find input file: $f" >&2;}
6648 { (exit 1); exit 1; }; }
6649 fi;;
6650 esac
6651 done` || { (exit 1); exit 1; }
6652 # Remove the trailing spaces.
6653 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6655 _ACEOF
6657 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6658 # `conftest.undefs', that substitutes the proper values into
6659 # config.h.in to produce config.h. The first handles `#define'
6660 # templates, and the second `#undef' templates.
6661 # And first: Protect against being on the right side of a sed subst in
6662 # config.status. Protect against being in an unquoted here document
6663 # in config.status.
6664 rm -f conftest.defines conftest.undefs
6665 # Using a here document instead of a string reduces the quoting nightmare.
6666 # Putting comments in sed scripts is not portable.
6668 # `end' is used to avoid that the second main sed command (meant for
6669 # 0-ary CPP macros) applies to n-ary macro definitions.
6670 # See the Autoconf documentation for `clear'.
6671 cat >confdef2sed.sed <<\_ACEOF
6672 s/[\\&,]/\\&/g
6673 s,[\\$`],\\&,g
6674 t clear
6675 : clear
6676 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6677 t end
6678 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6679 : end
6680 _ACEOF
6681 # If some macros were called several times there might be several times
6682 # the same #defines, which is useless. Nevertheless, we may not want to
6683 # sort them, since we want the *last* AC-DEFINE to be honored.
6684 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6685 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6686 rm -f confdef2sed.sed
6688 # This sed command replaces #undef with comments. This is necessary, for
6689 # example, in the case of _POSIX_SOURCE, which is predefined and required
6690 # on some systems where configure will not decide to define it.
6691 cat >>conftest.undefs <<\_ACEOF
6692 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6693 _ACEOF
6695 # Break up conftest.defines because some shells have a limit on the size
6696 # of here documents, and old seds have small limits too (100 cmds).
6697 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6698 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6699 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6700 echo ' :' >>$CONFIG_STATUS
6701 rm -f conftest.tail
6702 while grep . conftest.defines >/dev/null
6704 # Write a limited-size here document to $tmp/defines.sed.
6705 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6706 # Speed up: don't consider the non `#define' lines.
6707 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6708 # Work around the forget-to-reset-the-flag bug.
6709 echo 't clr' >>$CONFIG_STATUS
6710 echo ': clr' >>$CONFIG_STATUS
6711 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6712 echo 'CEOF
6713 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6714 rm -f $tmp/in
6715 mv $tmp/out $tmp/in
6716 ' >>$CONFIG_STATUS
6717 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6718 rm -f conftest.defines
6719 mv conftest.tail conftest.defines
6720 done
6721 rm -f conftest.defines
6722 echo ' fi # grep' >>$CONFIG_STATUS
6723 echo >>$CONFIG_STATUS
6725 # Break up conftest.undefs because some shells have a limit on the size
6726 # of here documents, and old seds have small limits too (100 cmds).
6727 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6728 rm -f conftest.tail
6729 while grep . conftest.undefs >/dev/null
6731 # Write a limited-size here document to $tmp/undefs.sed.
6732 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6733 # Speed up: don't consider the non `#undef'
6734 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6735 # Work around the forget-to-reset-the-flag bug.
6736 echo 't clr' >>$CONFIG_STATUS
6737 echo ': clr' >>$CONFIG_STATUS
6738 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6739 echo 'CEOF
6740 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6741 rm -f $tmp/in
6742 mv $tmp/out $tmp/in
6743 ' >>$CONFIG_STATUS
6744 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6745 rm -f conftest.undefs
6746 mv conftest.tail conftest.undefs
6747 done
6748 rm -f conftest.undefs
6750 cat >>$CONFIG_STATUS <<\_ACEOF
6751 # Let's still pretend it is `configure' which instantiates (i.e., don't
6752 # use $as_me), people would be surprised to read:
6753 # /* config.h. Generated by config.status. */
6754 if test x"$ac_file" = x-; then
6755 echo "/* Generated by configure. */" >$tmp/config.h
6756 else
6757 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6759 cat $tmp/in >>$tmp/config.h
6760 rm -f $tmp/in
6761 if test x"$ac_file" != x-; then
6762 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6763 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6764 echo "$as_me: $ac_file is unchanged" >&6;}
6765 else
6766 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6768 X"$ac_file" : 'X\(//\)[^/]' \| \
6769 X"$ac_file" : 'X\(//\)$' \| \
6770 X"$ac_file" : 'X\(/\)' \| \
6771 . : '\(.\)' 2>/dev/null ||
6772 echo X"$ac_file" |
6773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6775 /^X\(\/\/\)$/{ s//\1/; q; }
6776 /^X\(\/\).*/{ s//\1/; q; }
6777 s/.*/./; q'`
6778 { if $as_mkdir_p; then
6779 mkdir -p "$ac_dir"
6780 else
6781 as_dir="$ac_dir"
6782 as_dirs=
6783 while test ! -d "$as_dir"; do
6784 as_dirs="$as_dir $as_dirs"
6785 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6787 X"$as_dir" : 'X\(//\)[^/]' \| \
6788 X"$as_dir" : 'X\(//\)$' \| \
6789 X"$as_dir" : 'X\(/\)' \| \
6790 . : '\(.\)' 2>/dev/null ||
6791 echo X"$as_dir" |
6792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6794 /^X\(\/\/\)$/{ s//\1/; q; }
6795 /^X\(\/\).*/{ s//\1/; q; }
6796 s/.*/./; q'`
6797 done
6798 test ! -n "$as_dirs" || mkdir $as_dirs
6799 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6800 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6801 { (exit 1); exit 1; }; }; }
6803 rm -f $ac_file
6804 mv $tmp/config.h $ac_file
6806 else
6807 cat $tmp/config.h
6808 rm -f $tmp/config.h
6810 done
6811 _ACEOF
6813 cat >>$CONFIG_STATUS <<\_ACEOF
6815 { (exit 0); exit 0; }
6816 _ACEOF
6817 chmod +x $CONFIG_STATUS
6818 ac_clean_files=$ac_clean_files_save
6821 # configure is writing to config.log, and then calls config.status.
6822 # config.status does its own redirection, appending to config.log.
6823 # Unfortunately, on DOS this fails, as config.log is still kept open
6824 # by configure, so config.status won't be able to write to it; its
6825 # output is simply discarded. So we exec the FD to /dev/null,
6826 # effectively closing config.log, so it can be properly (re)opened and
6827 # appended to by config.status. When coming back to configure, we
6828 # need to make the FD available again.
6829 if test "$no_create" != yes; then
6830 ac_cs_success=:
6831 ac_config_status_args=
6832 test "$silent" = yes &&
6833 ac_config_status_args="$ac_config_status_args --quiet"
6834 exec 5>/dev/null
6835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6836 exec 5>>config.log
6837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6838 # would make configure fail if this is the last instruction.
6839 $ac_cs_success || { (exit 1); exit 1; }
6843 # CONFIG_SUBDIRS section.
6845 if test "$no_recursion" != yes; then
6847 # Remove --cache-file and --srcdir arguments so they do not pile up.
6848 ac_sub_configure_args=
6849 ac_prev=
6850 for ac_arg in $ac_configure_args; do
6851 if test -n "$ac_prev"; then
6852 ac_prev=
6853 continue
6855 case $ac_arg in
6856 -cache-file | --cache-file | --cache-fil | --cache-fi \
6857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6858 ac_prev=cache_file ;;
6859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6861 | --c=*)
6863 --config-cache | -C)
6865 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6866 ac_prev=srcdir ;;
6867 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6869 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6870 ac_prev=prefix ;;
6871 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6873 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6874 esac
6875 done
6877 # Always prepend --prefix to ensure using the same prefix
6878 # in subdir configurations.
6879 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
6881 ac_popdir=`pwd`
6882 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
6884 # Do not complain, so a configure script can configure whichever
6885 # parts of a large source tree are present.
6886 test -d $srcdir/$ac_dir || continue
6888 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
6889 echo "$as_me: configuring in $ac_dir" >&6;}
6890 { if $as_mkdir_p; then
6891 mkdir -p "$ac_dir"
6892 else
6893 as_dir="$ac_dir"
6894 as_dirs=
6895 while test ! -d "$as_dir"; do
6896 as_dirs="$as_dir $as_dirs"
6897 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6899 X"$as_dir" : 'X\(//\)[^/]' \| \
6900 X"$as_dir" : 'X\(//\)$' \| \
6901 X"$as_dir" : 'X\(/\)' \| \
6902 . : '\(.\)' 2>/dev/null ||
6903 echo X"$as_dir" |
6904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6906 /^X\(\/\/\)$/{ s//\1/; q; }
6907 /^X\(\/\).*/{ s//\1/; q; }
6908 s/.*/./; q'`
6909 done
6910 test ! -n "$as_dirs" || mkdir $as_dirs
6911 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6912 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6913 { (exit 1); exit 1; }; }; }
6915 ac_builddir=.
6917 if test "$ac_dir" != .; then
6918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6919 # A "../" for each directory in $ac_dir_suffix.
6920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6921 else
6922 ac_dir_suffix= ac_top_builddir=
6925 case $srcdir in
6926 .) # No --srcdir option. We are building in place.
6927 ac_srcdir=.
6928 if test -z "$ac_top_builddir"; then
6929 ac_top_srcdir=.
6930 else
6931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6932 fi ;;
6933 [\\/]* | ?:[\\/]* ) # Absolute path.
6934 ac_srcdir=$srcdir$ac_dir_suffix;
6935 ac_top_srcdir=$srcdir ;;
6936 *) # Relative path.
6937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6939 esac
6940 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6941 # absolute.
6942 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6943 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6944 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6945 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6948 cd $ac_dir
6950 # Check for guested configure; otherwise get Cygnus style configure.
6951 if test -f $ac_srcdir/configure.gnu; then
6952 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
6953 elif test -f $ac_srcdir/configure; then
6954 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
6955 elif test -f $ac_srcdir/configure.in; then
6956 ac_sub_configure=$ac_configure
6957 else
6958 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
6959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6960 ac_sub_configure=
6963 # The recursion is here.
6964 if test -n "$ac_sub_configure"; then
6965 # Make the cache file name correct relative to the subdirectory.
6966 case $cache_file in
6967 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6968 *) # Relative path.
6969 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
6970 esac
6972 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6973 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6974 # The eval makes quoting arguments work.
6975 eval $ac_sub_configure $ac_sub_configure_args \
6976 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
6977 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
6978 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
6979 { (exit 1); exit 1; }; }
6982 cd $ac_popdir
6983 done