Fixed DevStudio 2005 build.
[opal.git] / configure
blob4f8c01df19f0eedecead663e5bf7839c01b46c8e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="include/opal/manager.h"
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_subdirs_all="$ac_subdirs_all plugins"
313 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OPALDIR INSTALLPREFIX LIBDIR OPAL_VERSION PTLIB_CONFIG PWLIBDIR GCC_HAS_CLZ CPP EGREP SIZE16 SIZE32 OPAL_SYSTEM_SPEEX OPAL_HAVE_SPEEX_SPEEX_H OPAL_AUDIO OPAL_VIDEO OPAL_SIP OPAL_H323 OPAL_IAX2 OPAL_H224 OPAL_T38FAX OPAL_H450 OPAL_H460 OPAL_LID OPAL_IVR OPAL_RFC4175 OPAL_ZRTP HAS_LIBZRTP OPAL_SRTP HAS_LIBSRTP STDCCFLAGS ENDLDLIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA subdirs LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CXX_set=${CXX+set}
771 ac_env_CXX_value=$CXX
772 ac_cv_env_CXX_set=${CXX+set}
773 ac_cv_env_CXX_value=$CXX
774 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_env_CXXFLAGS_value=$CXXFLAGS
776 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
778 ac_env_CPP_set=${CPP+set}
779 ac_env_CPP_value=$CPP
780 ac_cv_env_CPP_set=${CPP+set}
781 ac_cv_env_CPP_value=$CPP
784 # Report the --help message.
786 if test "$ac_init_help" = "long"; then
787 # Omit some internal or obsolete options to make the list less imposing.
788 # This message is too long to be a string in the A/UX 3.1 sh.
789 cat <<_ACEOF
790 \`configure' configures this package to adapt to many kinds of systems.
792 Usage: $0 [OPTION]... [VAR=VALUE]...
794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
795 VAR=VALUE. See below for descriptions of some of the useful variables.
797 Defaults for the options are specified in brackets.
799 Configuration:
800 -h, --help display this help and exit
801 --help=short display options specific to this package
802 --help=recursive display the short help of all the included packages
803 -V, --version display version information and exit
804 -q, --quiet, --silent do not print \`checking...' messages
805 --cache-file=FILE cache test results in FILE [disabled]
806 -C, --config-cache alias for \`--cache-file=config.cache'
807 -n, --no-create do not create output files
808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810 _ACEOF
812 cat <<_ACEOF
813 Installation directories:
814 --prefix=PREFIX install architecture-independent files in PREFIX
815 [$ac_default_prefix]
816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 [PREFIX]
819 By default, \`make install' will install all the files in
820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822 for instance \`--prefix=\$HOME'.
824 For better control, use the options below.
826 Fine tuning of the installation directories:
827 --bindir=DIR user executables [EPREFIX/bin]
828 --sbindir=DIR system admin executables [EPREFIX/sbin]
829 --libexecdir=DIR program executables [EPREFIX/libexec]
830 --datadir=DIR read-only architecture-independent data [PREFIX/share]
831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834 --libdir=DIR object code libraries [EPREFIX/lib]
835 --includedir=DIR C header files [PREFIX/include]
836 --oldincludedir=DIR C header files for non-gcc [/usr/include]
837 --infodir=DIR info documentation [PREFIX/info]
838 --mandir=DIR man documentation [PREFIX/man]
839 _ACEOF
841 cat <<\_ACEOF
842 _ACEOF
845 if test -n "$ac_init_help"; then
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-versioncheck disable PWLib version check
853 --enable-localspeex use local version of Speex library rather than system version
854 --disable-audio disable audio codec support
855 --disable-video disable video codec support
856 --disable-sip disable SIP protocol support
857 --disable-h323 disable H.323 protocol support
858 --disable-iax disable IAX2 protocol support
859 --disable-h224 disable H.224 protocol support
860 --disable-t38 disable T.38 protocol support
861 --disable-h450 disable H.450
862 --disable-h460 disable H.460
863 --disable-lid disable LID support
864 --disable-ivr disable IVR support
865 --disable-rfc4175 disable RFC4175 support
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CXX C++ compiler command
875 CXXFLAGS C++ compiler flags
876 CPP C preprocessor
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
881 _ACEOF
884 if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
886 ac_popdir=`pwd`
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
889 ac_builddir=.
891 if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 else
896 ac_dir_suffix= ac_top_builddir=
899 case $srcdir in
900 .) # No --srcdir option. We are building in place.
901 ac_srcdir=.
902 if test -z "$ac_top_builddir"; then
903 ac_top_srcdir=.
904 else
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906 fi ;;
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
910 *) # Relative path.
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 esac
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
917 case `pwd` in
918 .) ac_abs_builddir="$ac_dir";;
920 case "$ac_dir" in
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
938 case $ac_srcdir in
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951 esac;;
952 esac
954 cd $ac_dir
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
957 echo
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
960 echo
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
964 echo
965 $ac_configure --help
966 else
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 cd $ac_popdir
970 done
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
975 cat <<\_ACEOF
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
980 _ACEOF
981 exit 0
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59. Invocation command line was
991 $ $0 $@
993 _ACEOF
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017 _ASUNAME
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1022 IFS=$as_save_IFS
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1025 done
1027 } >&5
1029 cat >&5 <<_ACEOF
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1036 _ACEOF
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_configure_args=
1045 ac_configure_args0=
1046 ac_configure_args1=
1047 ac_sep=
1048 ac_must_keep_next=false
1049 for ac_pass in 1 2
1051 for ac_arg
1053 case $ac_arg in
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 continue ;;
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 esac
1061 case $ac_pass in
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1067 else
1068 case $ac_arg in
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 esac
1077 -* ) ac_must_keep_next=true ;;
1078 esac
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1082 ac_sep=" "
1084 esac
1085 done
1086 done
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1098 echo
1100 cat <<\_ASBOX
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1104 _ASBOX
1105 echo
1106 # The following way of writing the cache mishandles newlines in values,
1108 (set) 2>&1 |
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 *ac_space=\ *)
1111 sed -n \
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 sed -n \
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119 esac;
1121 echo
1123 cat <<\_ASBOX
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1127 _ASBOX
1128 echo
1129 for ac_var in $ac_subst_vars
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1133 done | sort
1134 echo
1136 if test -n "$ac_subst_files"; then
1137 cat <<\_ASBOX
1138 ## ------------- ##
1139 ## Output files. ##
1140 ## ------------- ##
1141 _ASBOX
1142 echo
1143 for ac_var in $ac_subst_files
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1151 if test -s confdefs.h; then
1152 cat <<\_ASBOX
1153 ## ----------- ##
1154 ## confdefs.h. ##
1155 ## ----------- ##
1156 _ASBOX
1157 echo
1158 sed "/^$/d" confdefs.h | sort
1159 echo
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1164 } >&5
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 exit $exit_status
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 done
1172 ac_signal=0
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 echo >confdefs.h
1179 # Predefined preprocessor variables.
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 _ACEOF
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 _ACEOF
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 _ACEOF
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211 else
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1220 . "$ac_site_file"
1222 done
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1230 case $cache_file in
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1233 esac
1235 else
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1238 >$cache_file
1241 # Check that the precious variables saved in the cache have kept the same
1242 # value.
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1251 set,)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,set)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,);;
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1269 fi;;
1270 esac
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1273 case $ac_new_val in
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1277 esac
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 esac
1283 done
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1292 ac_ext=c
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 if test -n "$ac_tool_prefix"; then
1323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1325 echo "$as_me:$LINENO: checking for $ac_word" >&5
1326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327 if test "${ac_cv_prog_CC+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 else
1330 if test -n "$CC"; then
1331 ac_cv_prog_CC="$CC" # Let the user override the test.
1332 else
1333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334 for as_dir in $PATH
1336 IFS=$as_save_IFS
1337 test -z "$as_dir" && as_dir=.
1338 for ac_exec_ext in '' $ac_executable_extensions; do
1339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1342 break 2
1344 done
1345 done
1349 CC=$ac_cv_prog_CC
1350 if test -n "$CC"; then
1351 echo "$as_me:$LINENO: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1353 else
1354 echo "$as_me:$LINENO: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1359 if test -z "$ac_cv_prog_CC"; then
1360 ac_ct_CC=$CC
1361 # Extract the first word of "gcc", so it can be a program name with args.
1362 set dummy gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368 if test -n "$ac_ct_CC"; then
1369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1370 else
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372 for as_dir in $PATH
1374 IFS=$as_save_IFS
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_ac_ct_CC="gcc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380 break 2
1382 done
1383 done
1387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1388 if test -n "$ac_ct_CC"; then
1389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1390 echo "${ECHO_T}$ac_ct_CC" >&6
1391 else
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1396 CC=$ac_ct_CC
1397 else
1398 CC="$ac_cv_prog_CC"
1401 if test -z "$CC"; then
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}cc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 else
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}cc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1424 done
1425 done
1429 CC=$ac_cv_prog_CC
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1433 else
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1439 if test -z "$ac_cv_prog_CC"; then
1440 ac_ct_CC=$CC
1441 # Extract the first word of "cc", so it can be a program name with args.
1442 set dummy cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="cc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1462 done
1463 done
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1476 CC=$ac_ct_CC
1477 else
1478 CC="$ac_cv_prog_CC"
1482 if test -z "$CC"; then
1483 # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 else
1493 ac_prog_rejected=no
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1502 ac_prog_rejected=yes
1503 continue
1505 ac_cv_prog_CC="cc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 break 2
1509 done
1510 done
1512 if test $ac_prog_rejected = yes; then
1513 # We found a bogon in the path, so make sure we never use it.
1514 set dummy $ac_cv_prog_CC
1515 shift
1516 if test $# != 0; then
1517 # We chose a different compiler from the bogus one.
1518 # However, it has the same basename, so the bogon will be chosen
1519 # first if we set CC to just the basename; use the full file name.
1520 shift
1521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1526 CC=$ac_cv_prog_CC
1527 if test -n "$CC"; then
1528 echo "$as_me:$LINENO: result: $CC" >&5
1529 echo "${ECHO_T}$CC" >&6
1530 else
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1536 if test -z "$CC"; then
1537 if test -n "$ac_tool_prefix"; then
1538 for ac_prog in cl
1540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1561 done
1562 done
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1575 test -n "$CC" && break
1576 done
1578 if test -z "$CC"; then
1579 ac_ct_CC=$CC
1580 for ac_prog in cl
1582 # Extract the first word of "$ac_prog", so it can be a program name with args.
1583 set dummy $ac_prog; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="$ac_prog"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
1603 done
1604 done
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1617 test -n "$ac_ct_CC" && break
1618 done
1620 CC=$ac_ct_CC
1626 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1627 See \`config.log' for more details." >&5
1628 echo "$as_me: error: no acceptable C compiler found in \$PATH
1629 See \`config.log' for more details." >&2;}
1630 { (exit 1); exit 1; }; }
1632 # Provide some information about the compiler.
1633 echo "$as_me:$LINENO:" \
1634 "checking for C compiler version" >&5
1635 ac_compiler=`set X $ac_compile; echo $2`
1636 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1637 (eval $ac_compiler --version </dev/null >&5) 2>&5
1638 ac_status=$?
1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1641 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1642 (eval $ac_compiler -v </dev/null >&5) 2>&5
1643 ac_status=$?
1644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1645 (exit $ac_status); }
1646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1647 (eval $ac_compiler -V </dev/null >&5) 2>&5
1648 ac_status=$?
1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650 (exit $ac_status); }
1652 cat >conftest.$ac_ext <<_ACEOF
1653 /* confdefs.h. */
1654 _ACEOF
1655 cat confdefs.h >>conftest.$ac_ext
1656 cat >>conftest.$ac_ext <<_ACEOF
1657 /* end confdefs.h. */
1660 main ()
1664 return 0;
1666 _ACEOF
1667 ac_clean_files_save=$ac_clean_files
1668 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1669 # Try to create an executable without -o first, disregard a.out.
1670 # It will help us diagnose broken compilers, and finding out an intuition
1671 # of exeext.
1672 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1673 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1674 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1675 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1676 (eval $ac_link_default) 2>&5
1677 ac_status=$?
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }; then
1680 # Find the output, starting from the most likely. This scheme is
1681 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1682 # resort.
1684 # Be careful to initialize this variable, since it used to be cached.
1685 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1686 ac_cv_exeext=
1687 # b.out is created by i960 compilers.
1688 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1690 test -f "$ac_file" || continue
1691 case $ac_file in
1692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1694 conftest.$ac_ext )
1695 # This is the source file.
1697 [ab].out )
1698 # We found the default executable, but exeext='' is most
1699 # certainly right.
1700 break;;
1701 *.* )
1702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1703 # FIXME: I believe we export ac_cv_exeext for Libtool,
1704 # but it would be cool to find out if it's true. Does anybody
1705 # maintain Libtool? --akim.
1706 export ac_cv_exeext
1707 break;;
1709 break;;
1710 esac
1711 done
1712 else
1713 echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1717 See \`config.log' for more details." >&5
1718 echo "$as_me: error: C compiler cannot create executables
1719 See \`config.log' for more details." >&2;}
1720 { (exit 77); exit 77; }; }
1723 ac_exeext=$ac_cv_exeext
1724 echo "$as_me:$LINENO: result: $ac_file" >&5
1725 echo "${ECHO_T}$ac_file" >&6
1727 # Check the compiler produces executables we can run. If not, either
1728 # the compiler is broken, or we cross compile.
1729 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1730 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1731 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1732 # If not cross compiling, check that we can run a simple program.
1733 if test "$cross_compiling" != yes; then
1734 if { ac_try='./$ac_file'
1735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1736 (eval $ac_try) 2>&5
1737 ac_status=$?
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }; }; then
1740 cross_compiling=no
1741 else
1742 if test "$cross_compiling" = maybe; then
1743 cross_compiling=yes
1744 else
1745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1746 If you meant to cross compile, use \`--host'.
1747 See \`config.log' for more details." >&5
1748 echo "$as_me: error: cannot run C compiled programs.
1749 If you meant to cross compile, use \`--host'.
1750 See \`config.log' for more details." >&2;}
1751 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: result: yes" >&5
1756 echo "${ECHO_T}yes" >&6
1758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1759 ac_clean_files=$ac_clean_files_save
1760 # Check the compiler produces executables we can run. If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1764 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1765 echo "${ECHO_T}$cross_compiling" >&6
1767 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1770 (eval $ac_link) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; then
1774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1775 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1776 # work properly (i.e., refer to `conftest.exe'), while it won't with
1777 # `rm'.
1778 for ac_file in conftest.exe conftest conftest.*; do
1779 test -f "$ac_file" || continue
1780 case $ac_file in
1781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 export ac_cv_exeext
1784 break;;
1785 * ) break;;
1786 esac
1787 done
1788 else
1789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&5
1791 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1792 See \`config.log' for more details." >&2;}
1793 { (exit 1); exit 1; }; }
1796 rm -f conftest$ac_cv_exeext
1797 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1798 echo "${ECHO_T}$ac_cv_exeext" >&6
1800 rm -f conftest.$ac_ext
1801 EXEEXT=$ac_cv_exeext
1802 ac_exeext=$EXEEXT
1803 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1804 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1805 if test "${ac_cv_objext+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808 cat >conftest.$ac_ext <<_ACEOF
1809 /* confdefs.h. */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h. */
1816 main ()
1820 return 0;
1822 _ACEOF
1823 rm -f conftest.o conftest.obj
1824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825 (eval $ac_compile) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1830 case $ac_file in
1831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1833 break;;
1834 esac
1835 done
1836 else
1837 echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1843 See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
1847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1849 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1850 echo "${ECHO_T}$ac_cv_objext" >&6
1851 OBJEXT=$ac_cv_objext
1852 ac_objext=$OBJEXT
1853 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h. */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1866 main ()
1868 #ifndef __GNUC__
1869 choke me
1870 #endif
1873 return 0;
1875 _ACEOF
1876 rm -f conftest.$ac_objext
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>conftest.er1
1879 ac_status=$?
1880 grep -v '^ *+' conftest.er1 >conftest.err
1881 rm -f conftest.er1
1882 cat conftest.err >&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); } &&
1885 { ac_try='test -z "$ac_c_werror_flag"
1886 || test ! -s conftest.err'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888 (eval $ac_try) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; } &&
1892 { ac_try='test -s conftest.$ac_objext'
1893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 (eval $ac_try) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; }; then
1898 ac_compiler_gnu=yes
1899 else
1900 echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1903 ac_compiler_gnu=no
1905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1909 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1910 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1911 GCC=`test $ac_compiler_gnu = yes && echo yes`
1912 ac_test_CFLAGS=${CFLAGS+set}
1913 ac_save_CFLAGS=$CFLAGS
1914 CFLAGS="-g"
1915 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1916 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1917 if test "${ac_cv_prog_cc_g+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h. */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1928 main ()
1932 return 0;
1934 _ACEOF
1935 rm -f conftest.$ac_objext
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>conftest.er1
1938 ac_status=$?
1939 grep -v '^ *+' conftest.er1 >conftest.err
1940 rm -f conftest.er1
1941 cat conftest.err >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); } &&
1944 { ac_try='test -z "$ac_c_werror_flag"
1945 || test ! -s conftest.err'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 (eval $ac_try) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1957 ac_cv_prog_cc_g=yes
1958 else
1959 echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1962 ac_cv_prog_cc_g=no
1964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1968 if test "$ac_test_CFLAGS" = set; then
1969 CFLAGS=$ac_save_CFLAGS
1970 elif test $ac_cv_prog_cc_g = yes; then
1971 if test "$GCC" = yes; then
1972 CFLAGS="-g -O2"
1973 else
1974 CFLAGS="-g"
1976 else
1977 if test "$GCC" = yes; then
1978 CFLAGS="-O2"
1979 else
1980 CFLAGS=
1983 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1984 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1985 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 ac_cv_prog_cc_stdc=no
1989 ac_save_CC=$CC
1990 cat >conftest.$ac_ext <<_ACEOF
1991 /* confdefs.h. */
1992 _ACEOF
1993 cat confdefs.h >>conftest.$ac_ext
1994 cat >>conftest.$ac_ext <<_ACEOF
1995 /* end confdefs.h. */
1996 #include <stdarg.h>
1997 #include <stdio.h>
1998 #include <sys/types.h>
1999 #include <sys/stat.h>
2000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2001 struct buf { int x; };
2002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2003 static char *e (p, i)
2004 char **p;
2005 int i;
2007 return p[i];
2009 static char *f (char * (*g) (char **, int), char **p, ...)
2011 char *s;
2012 va_list v;
2013 va_start (v,p);
2014 s = g (p, va_arg (v,int));
2015 va_end (v);
2016 return s;
2019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2020 function prototypes and stuff, but not '\xHH' hex character constants.
2021 These don't provoke an error unfortunately, instead are silently treated
2022 as 'x'. The following induces an error, until -std1 is added to get
2023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2024 array size at least. It's necessary to write '\x00'==0 to get something
2025 that's true only with -std1. */
2026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2028 int test (int i, double x);
2029 struct s1 {int (*f) (int a);};
2030 struct s2 {int (*f) (double a);};
2031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2032 int argc;
2033 char **argv;
2035 main ()
2037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2039 return 0;
2041 _ACEOF
2042 # Don't try gcc -ansi; that turns off useful extensions and
2043 # breaks some systems' header files.
2044 # AIX -qlanglvl=ansi
2045 # Ultrix and OSF/1 -std1
2046 # HP-UX 10.20 and later -Ae
2047 # HP-UX older versions -Aa -D_HPUX_SOURCE
2048 # SVR4 -Xc -D__EXTENSIONS__
2049 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2051 CC="$ac_save_CC $ac_arg"
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2055 ac_status=$?
2056 grep -v '^ *+' conftest.er1 >conftest.err
2057 rm -f conftest.er1
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_stdc=$ac_arg
2075 break
2076 else
2077 echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2081 rm -f conftest.err conftest.$ac_objext
2082 done
2083 rm -f conftest.$ac_ext conftest.$ac_objext
2084 CC=$ac_save_CC
2088 case "x$ac_cv_prog_cc_stdc" in
2089 x|xno)
2090 echo "$as_me:$LINENO: result: none needed" >&5
2091 echo "${ECHO_T}none needed" >&6 ;;
2093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2094 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2095 CC="$CC $ac_cv_prog_cc_stdc" ;;
2096 esac
2098 # Some people use a C++ compiler to compile C. Since we use `exit',
2099 # in C++ we need to declare it. In case someone uses the same compiler
2100 # for both compiling C and C++ we need to have the C++ compiler decide
2101 # the declaration of exit, since it's the most demanding environment.
2102 cat >conftest.$ac_ext <<_ACEOF
2103 #ifndef __cplusplus
2104 choke me
2105 #endif
2106 _ACEOF
2107 rm -f conftest.$ac_objext
2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2110 ac_status=$?
2111 grep -v '^ *+' conftest.er1 >conftest.err
2112 rm -f conftest.er1
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 for ac_declaration in \
2130 '' \
2131 'extern "C" void std::exit (int) throw (); using std::exit;' \
2132 'extern "C" void std::exit (int); using std::exit;' \
2133 'extern "C" void exit (int) throw ();' \
2134 'extern "C" void exit (int);' \
2135 'void exit (int);'
2137 cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h. */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2143 $ac_declaration
2144 #include <stdlib.h>
2146 main ()
2148 exit (42);
2150 return 0;
2152 _ACEOF
2153 rm -f conftest.$ac_objext
2154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2156 ac_status=$?
2157 grep -v '^ *+' conftest.er1 >conftest.err
2158 rm -f conftest.er1
2159 cat conftest.err >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
2162 { ac_try='test -z "$ac_c_werror_flag"
2163 || test ! -s conftest.err'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2176 else
2177 echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2180 continue
2182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183 cat >conftest.$ac_ext <<_ACEOF
2184 /* confdefs.h. */
2185 _ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2189 $ac_declaration
2191 main ()
2193 exit (42);
2195 return 0;
2197 _ACEOF
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 break
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2227 done
2228 rm -f conftest*
2229 if test -n "$ac_declaration"; then
2230 echo '#ifdef __cplusplus' >>confdefs.h
2231 echo $ac_declaration >>confdefs.h
2232 echo '#endif' >>confdefs.h
2235 else
2236 echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241 ac_ext=c
2242 ac_cpp='$CPP $CPPFLAGS'
2243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247 ac_ext=cc
2248 ac_cpp='$CXXCPP $CPPFLAGS'
2249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2252 if test -n "$ac_tool_prefix"; then
2253 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_CXX+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 if test -n "$CXX"; then
2263 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2276 done
2277 done
2281 CXX=$ac_cv_prog_CXX
2282 if test -n "$CXX"; then
2283 echo "$as_me:$LINENO: result: $CXX" >&5
2284 echo "${ECHO_T}$CXX" >&6
2285 else
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2290 test -n "$CXX" && break
2291 done
2293 if test -z "$CXX"; then
2294 ac_ct_CXX=$CXX
2295 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2298 set dummy $ac_prog; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304 if test -n "$ac_ct_CXX"; then
2305 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_ac_ct_CXX="$ac_prog"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2318 done
2319 done
2323 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2324 if test -n "$ac_ct_CXX"; then
2325 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2326 echo "${ECHO_T}$ac_ct_CXX" >&6
2327 else
2328 echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2332 test -n "$ac_ct_CXX" && break
2333 done
2334 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2336 CXX=$ac_ct_CXX
2340 # Provide some information about the compiler.
2341 echo "$as_me:$LINENO:" \
2342 "checking for C++ compiler version" >&5
2343 ac_compiler=`set X $ac_compile; echo $2`
2344 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2345 (eval $ac_compiler --version </dev/null >&5) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2350 (eval $ac_compiler -v </dev/null >&5) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2354 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2355 (eval $ac_compiler -V </dev/null >&5) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
2360 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2361 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2362 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h. */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2373 main ()
2375 #ifndef __GNUC__
2376 choke me
2377 #endif
2380 return 0;
2382 _ACEOF
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_cxx_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 ac_compiler_gnu=yes
2406 else
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 ac_compiler_gnu=no
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2416 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2417 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2418 GXX=`test $ac_compiler_gnu = yes && echo yes`
2419 ac_test_CXXFLAGS=${CXXFLAGS+set}
2420 ac_save_CXXFLAGS=$CXXFLAGS
2421 CXXFLAGS="-g"
2422 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2423 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2424 if test "${ac_cv_prog_cxx_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h. */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2435 main ()
2439 return 0;
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_cxx_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 ac_cv_prog_cxx_g=yes
2465 else
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2469 ac_cv_prog_cxx_g=no
2471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2474 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2475 if test "$ac_test_CXXFLAGS" = set; then
2476 CXXFLAGS=$ac_save_CXXFLAGS
2477 elif test $ac_cv_prog_cxx_g = yes; then
2478 if test "$GXX" = yes; then
2479 CXXFLAGS="-g -O2"
2480 else
2481 CXXFLAGS="-g"
2483 else
2484 if test "$GXX" = yes; then
2485 CXXFLAGS="-O2"
2486 else
2487 CXXFLAGS=
2490 for ac_declaration in \
2491 '' \
2492 'extern "C" void std::exit (int) throw (); using std::exit;' \
2493 'extern "C" void std::exit (int); using std::exit;' \
2494 'extern "C" void exit (int) throw ();' \
2495 'extern "C" void exit (int);' \
2496 'void exit (int);'
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2504 $ac_declaration
2505 #include <stdlib.h>
2507 main ()
2509 exit (42);
2511 return 0;
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>conftest.er1
2517 ac_status=$?
2518 grep -v '^ *+' conftest.er1 >conftest.err
2519 rm -f conftest.er1
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_cxx_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 continue
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2550 $ac_declaration
2552 main ()
2554 exit (42);
2556 return 0;
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_cxx_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 break
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 done
2589 rm -f conftest*
2590 if test -n "$ac_declaration"; then
2591 echo '#ifdef __cplusplus' >>confdefs.h
2592 echo $ac_declaration >>confdefs.h
2593 echo '#endif' >>confdefs.h
2596 ac_ext=c
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603 h323=yes
2604 t38=yes
2605 h224=yes
2606 h450=yes
2607 h460=yes
2608 sip=yes
2609 iax=yes
2610 audio=yes
2611 video=yes
2612 rfc4175=yes
2614 REQUIRED_PWLIB_MAJOR=1
2615 REQUIRED_PWLIB_MINOR=11
2616 REQUIRED_PWLIB_BUILD=0
2619 OPALDIR=`pwd`
2622 if test "x$prefix" = "xNONE"; then
2623 INSTALLPREFIX="/usr/local"
2624 else
2625 INSTALLPREFIX="${prefix}"
2630 LIBDIR="${libdir}"
2636 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2637 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2638 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2639 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
2640 cat >>confdefs.h <<_ACEOF
2641 #define OPAL_MAJOR ${MAJOR_VERSION}
2642 _ACEOF
2644 cat >>confdefs.h <<_ACEOF
2645 #define OPAL_MINOR ${MINOR_VERSION}
2646 _ACEOF
2648 cat >>confdefs.h <<_ACEOF
2649 #define OPAL_BUILD ${BUILD_NUMBER}
2650 _ACEOF
2652 cat >>confdefs.h <<_ACEOF
2653 #define OPAL_VERSION "$OPAL_VERSION"
2654 _ACEOF
2657 { echo "$as_me:$LINENO: Opal version is ${OPAL_VERSION}" >&5
2658 echo "$as_me: Opal version is ${OPAL_VERSION}" >&6;};
2660 #use to set the version in opal.pc
2664 if test "${PWLIBDIR:-unset}" != "unset" ; then
2665 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
2666 echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
2667 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
2668 if eval "test \"\${$as_ac_File+set}\" = set"; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671 test "$cross_compiling" = yes &&
2672 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2673 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2674 { (exit 1); exit 1; }; }
2675 if test -r "${PWLIBDIR}/version.h"; then
2676 eval "$as_ac_File=yes"
2677 else
2678 eval "$as_ac_File=no"
2681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2682 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2683 if test `eval echo '${'$as_ac_File'}'` = yes; then
2684 HAS_PTLIB=1
2688 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2689 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
2690 echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
2691 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6
2692 if eval "test \"\${$as_ac_File+set}\" = set"; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695 test "$cross_compiling" = yes &&
2696 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2697 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2698 { (exit 1); exit 1; }; }
2699 if test -r "${OPALDIR}/../pwlib/version.h"; then
2700 eval "$as_ac_File=yes"
2701 else
2702 eval "$as_ac_File=no"
2705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2706 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2707 if test `eval echo '${'$as_ac_File'}'` = yes; then
2708 HAS_PTLIB=1
2711 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2712 PWLIBDIR="${OPALDIR}/../pwlib"
2713 else
2714 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
2715 echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
2716 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
2717 if eval "test \"\${$as_ac_File+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 test "$cross_compiling" = yes &&
2721 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2722 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2723 { (exit 1); exit 1; }; }
2724 if test -r "${HOME}/pwlib/include/ptlib.h"; then
2725 eval "$as_ac_File=yes"
2726 else
2727 eval "$as_ac_File=no"
2730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2731 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2732 if test `eval echo '${'$as_ac_File'}'` = yes; then
2733 HAS_PTLIB=1
2736 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2737 PWLIBDIR="${HOME}/pwlib"
2738 else
2739 echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
2740 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
2741 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 test "$cross_compiling" = yes &&
2745 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2746 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2747 { (exit 1); exit 1; }; }
2748 if test -r "/usr/local/include/ptlib.h"; then
2749 ac_cv_file__usr_local_include_ptlib_h=yes
2750 else
2751 ac_cv_file__usr_local_include_ptlib_h=no
2754 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
2755 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
2756 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
2757 HAS_PTLIB=1
2760 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2761 # Extract the first word of "ptlib-config", so it can be a program name with args.
2762 set dummy ptlib-config; ac_word=$2
2763 echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768 case $PTLIB_CONFIG in
2769 [\\/]* | ?:[\\/]*)
2770 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in /usr/local/bin
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2788 esac
2790 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2792 if test -n "$PTLIB_CONFIG"; then
2793 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2794 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2795 else
2796 echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6
2800 else
2801 echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
2802 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
2803 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 test "$cross_compiling" = yes &&
2807 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2808 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2809 { (exit 1); exit 1; }; }
2810 if test -r "/usr/include/ptlib.h"; then
2811 ac_cv_file__usr_include_ptlib_h=yes
2812 else
2813 ac_cv_file__usr_include_ptlib_h=no
2816 echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
2817 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
2818 if test $ac_cv_file__usr_include_ptlib_h = yes; then
2819 HAS_PTLIB=1
2822 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2823 # Extract the first word of "ptlib-config", so it can be a program name with args.
2824 set dummy ptlib-config; ac_word=$2
2825 echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2827 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830 case $PTLIB_CONFIG in
2831 [\\/]* | ?:[\\/]*)
2832 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in /usr/share/pwlib/make/
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2846 done
2847 done
2850 esac
2852 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2854 if test -n "$PTLIB_CONFIG"; then
2855 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2856 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2857 else
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 else
2863 as_ac_File=`echo "ac_cv_file_${prefix}/include/ptlib.h" | $as_tr_sh`
2864 echo "$as_me:$LINENO: checking for ${prefix}/include/ptlib.h" >&5
2865 echo $ECHO_N "checking for ${prefix}/include/ptlib.h... $ECHO_C" >&6
2866 if eval "test \"\${$as_ac_File+set}\" = set"; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869 test "$cross_compiling" = yes &&
2870 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2871 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2872 { (exit 1); exit 1; }; }
2873 if test -r "${prefix}/include/ptlib.h"; then
2874 eval "$as_ac_File=yes"
2875 else
2876 eval "$as_ac_File=no"
2879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2880 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2881 if test `eval echo '${'$as_ac_File'}'` = yes; then
2882 HAS_PTLIB=1
2885 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2886 # Extract the first word of "ptlib-config", so it can be a program name with args.
2887 set dummy ptlib-config; ac_word=$2
2888 echo "$as_me:$LINENO: checking for $ac_word" >&5
2889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2890 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893 case $PTLIB_CONFIG in
2894 [\\/]* | ?:[\\/]*)
2895 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in ${prefix}/bin
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2909 done
2910 done
2913 esac
2915 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2917 if test -n "$PTLIB_CONFIG"; then
2918 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2919 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2920 else
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2932 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2933 { { echo "$as_me:$LINENO: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&5
2934 echo "$as_me: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&2;}
2935 { (exit 1); exit 1; }; }
2938 if test "${PWLIBDIR:-unset}" = "unset" ; then
2939 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
2940 { { echo "$as_me:$LINENO: error: \"Cannot find ptlib-config - please install and try again\"" >&5
2941 echo "$as_me: error: \"Cannot find ptlib-config - please install and try again\"" >&2;}
2942 { (exit 1); exit 1; }; }
2944 PWLIBDIR=`$PTLIB_CONFIG --prefix`
2947 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
2948 PWLIBDIR="/usr/share/pwlib/"
2950 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
2951 PWLIBDIR="/usr/local/share/pwlib/"
2953 if test "x$PWLIBDIR" = "x${prefix}"; then
2954 PWLIBDIR="${prefix}/share/pwlib/"
2958 echo "PWLib prefix set to.... $PWLIBDIR"
2960 if test "${PWLIBDIR:-unset}" = "unset" ; then
2961 PWVERSION=`$PTLIB_CONFIG --version`
2962 PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
2963 PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
2964 PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
2966 else
2967 PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2968 PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2969 PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2970 PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
2973 # Check whether --enable-versioncheck or --disable-versioncheck was given.
2974 if test "${enable_versioncheck+set}" = set; then
2975 enableval="$enable_versioncheck"
2976 PWLIB_VERSION_CHECK=$enableval
2979 echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
2980 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6
2981 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
2982 echo "$as_me:$LINENO: result: check disabled" >&5
2983 echo "${ECHO_T}check disabled" >&6
2984 else
2985 if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
2986 { { echo "$as_me:$LINENO: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
2987 echo "$as_me: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&2;}
2988 { (exit 1); exit 1; }; }
2990 if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
2991 { { echo "$as_me:$LINENO: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
2992 echo "$as_me: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&2;}
2993 { (exit 1); exit 1; }; }
2995 if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
2996 { { echo "$as_me:$LINENO: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
2997 echo "$as_me: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&2;}
2998 { (exit 1); exit 1; }; }
3000 echo "$as_me:$LINENO: result: ok" >&5
3001 echo "${ECHO_T}ok" >&6
3007 if test x$GXX = xyes ; then
3008 USE_GCC=yes
3009 gcc_version=`$CXX -dumpversion`
3010 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
3011 echo "$as_me: gcc version is $gcc_version" >&6;};
3012 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
3013 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
3014 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
3016 echo "$as_me:$LINENO: checking checking if gcc version is valid" >&5
3017 echo $ECHO_N "checking checking if gcc version is valid... $ECHO_C" >&6
3018 if test ${GXX_MAJOR} -lt 3 ; then
3019 echo "$as_me:$LINENO: result: no" >&5
3020 echo "${ECHO_T}no" >&6
3021 { { echo "$as_me:$LINENO: error: OPAL requires gcc version 3 or later" >&5
3022 echo "$as_me: error: OPAL requires gcc version 3 or later" >&2;}
3023 { (exit 1); exit 1; }; }
3024 else
3025 echo "$as_me:$LINENO: result: yes" >&5
3026 echo "${ECHO_T}yes" >&6
3031 echo "$as_me:$LINENO: checking for working bit scan intrinsic" >&5
3032 echo $ECHO_N "checking for working bit scan intrinsic... $ECHO_C" >&6
3033 BSR_TEST_SRC="
3034 #include <stdlib.h>
3035 int main(int argc, char* argv) {
3036 #ifdef __GNUC__
3037 unsigned int val = 0x00000FF0;
3038 if (__builtin_clz(val) == 20)
3039 exit(0);
3040 #endif
3041 exit(1);
3044 if test "$cross_compiling" = yes; then
3045 GCC_HAS_CLZ=1
3046 else
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 $BSR_TEST_SRC
3054 _ACEOF
3055 rm -f conftest$ac_exeext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3057 (eval $ac_link) 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 (eval $ac_try) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 GCC_HAS_CLZ=1
3067 else
3068 echo "$as_me: program exited with status $ac_status" >&5
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3072 ( exit $ac_status )
3073 GCC_HAS_CLZ=0
3075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3077 if test "${GCC_HAS_CLZ}" = "1" ; then
3078 echo "$as_me:$LINENO: result: yes" >&5
3079 echo "${ECHO_T}yes" >&6
3080 cat >>confdefs.h <<\_ACEOF
3081 #define GCC_HAS_CLZ 1
3082 _ACEOF
3084 GCC_HAS_CLZ=1
3085 else
3086 echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6
3092 localspeex="xxx"
3093 # Check whether --enable-localspeex or --disable-localspeex was given.
3094 if test "${enable_localspeex+set}" = set; then
3095 enableval="$enable_localspeex"
3096 localspeex=$enableval
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3106 # On Suns, sometimes $CPP names a directory.
3107 if test -n "$CPP" && test -d "$CPP"; then
3108 CPP=
3110 if test -z "$CPP"; then
3111 if test "${ac_cv_prog_CPP+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 # Double quotes because CPP needs to be expanded
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3117 ac_preproc_ok=false
3118 for ac_c_preproc_warn_flag in '' yes
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3132 #ifdef __STDC__
3133 # include <limits.h>
3134 #else
3135 # include <assert.h>
3136 #endif
3137 Syntax error
3138 _ACEOF
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3150 else
3151 ac_cpp_err=
3153 else
3154 ac_cpp_err=yes
3156 if test -z "$ac_cpp_err"; then
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 # Broken: fails on valid input.
3163 continue
3165 rm -f conftest.err conftest.$ac_ext
3167 # OK, works on sane cases. Now check whether non-existent headers
3168 # can be detected and how.
3169 cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h. */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175 #include <ac_nonexistent.h>
3176 _ACEOF
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev/null; then
3185 if test -s conftest.err; then
3186 ac_cpp_err=$ac_c_preproc_warn_flag
3187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3188 else
3189 ac_cpp_err=
3191 else
3192 ac_cpp_err=yes
3194 if test -z "$ac_cpp_err"; then
3195 # Broken: success on invalid input.
3196 continue
3197 else
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 # Passes both tests.
3202 ac_preproc_ok=:
3203 break
3205 rm -f conftest.err conftest.$ac_ext
3207 done
3208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3209 rm -f conftest.err conftest.$ac_ext
3210 if $ac_preproc_ok; then
3211 break
3214 done
3215 ac_cv_prog_CPP=$CPP
3218 CPP=$ac_cv_prog_CPP
3219 else
3220 ac_cv_prog_CPP=$CPP
3222 echo "$as_me:$LINENO: result: $CPP" >&5
3223 echo "${ECHO_T}$CPP" >&6
3224 ac_preproc_ok=false
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h. */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3239 #ifdef __STDC__
3240 # include <limits.h>
3241 #else
3242 # include <assert.h>
3243 #endif
3244 Syntax error
3245 _ACEOF
3246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248 ac_status=$?
3249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257 else
3258 ac_cpp_err=
3260 else
3261 ac_cpp_err=yes
3263 if test -z "$ac_cpp_err"; then
3265 else
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 # Broken: fails on valid input.
3270 continue
3272 rm -f conftest.err conftest.$ac_ext
3274 # OK, works on sane cases. Now check whether non-existent headers
3275 # can be detected and how.
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <ac_nonexistent.h>
3283 _ACEOF
3284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295 else
3296 ac_cpp_err=
3298 else
3299 ac_cpp_err=yes
3301 if test -z "$ac_cpp_err"; then
3302 # Broken: success on invalid input.
3303 continue
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 # Passes both tests.
3309 ac_preproc_ok=:
3310 break
3312 rm -f conftest.err conftest.$ac_ext
3314 done
3315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316 rm -f conftest.err conftest.$ac_ext
3317 if $ac_preproc_ok; then
3319 else
3320 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details." >&5
3322 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3323 See \`config.log' for more details." >&2;}
3324 { (exit 1); exit 1; }; }
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 echo "$as_me:$LINENO: checking for egrep" >&5
3335 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3336 if test "${ac_cv_prog_egrep+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3340 then ac_cv_prog_egrep='grep -E'
3341 else ac_cv_prog_egrep='egrep'
3344 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3345 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3346 EGREP=$ac_cv_prog_egrep
3349 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3351 if test "${ac_cv_header_stdc+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include <stdlib.h>
3361 #include <stdarg.h>
3362 #include <string.h>
3363 #include <float.h>
3366 main ()
3370 return 0;
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 ac_cv_header_stdc=yes
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 ac_cv_header_stdc=no
3402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3404 if test $ac_cv_header_stdc = yes; then
3405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #include <string.h>
3414 _ACEOF
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 $EGREP "memchr" >/dev/null 2>&1; then
3418 else
3419 ac_cv_header_stdc=no
3421 rm -f conftest*
3425 if test $ac_cv_header_stdc = yes; then
3426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3427 cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433 #include <stdlib.h>
3435 _ACEOF
3436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437 $EGREP "free" >/dev/null 2>&1; then
3439 else
3440 ac_cv_header_stdc=no
3442 rm -f conftest*
3446 if test $ac_cv_header_stdc = yes; then
3447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3448 if test "$cross_compiling" = yes; then
3450 else
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <ctype.h>
3458 #if ((' ' & 0x0FF) == 0x020)
3459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3461 #else
3462 # define ISLOWER(c) \
3463 (('a' <= (c) && (c) <= 'i') \
3464 || ('j' <= (c) && (c) <= 'r') \
3465 || ('s' <= (c) && (c) <= 'z'))
3466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3467 #endif
3469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3471 main ()
3473 int i;
3474 for (i = 0; i < 256; i++)
3475 if (XOR (islower (i), ISLOWER (i))
3476 || toupper (i) != TOUPPER (i))
3477 exit(2);
3478 exit (0);
3480 _ACEOF
3481 rm -f conftest$ac_exeext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3483 (eval $ac_link) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3493 else
3494 echo "$as_me: program exited with status $ac_status" >&5
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 ( exit $ac_status )
3499 ac_cv_header_stdc=no
3501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3505 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3506 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3507 if test $ac_cv_header_stdc = yes; then
3509 cat >>confdefs.h <<\_ACEOF
3510 #define STDC_HEADERS 1
3511 _ACEOF
3515 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3526 inttypes.h stdint.h unistd.h
3528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3529 echo "$as_me:$LINENO: checking for $ac_header" >&5
3530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534 cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 $ac_includes_default
3542 #include <$ac_header>
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>conftest.er1
3547 ac_status=$?
3548 grep -v '^ *+' conftest.er1 >conftest.err
3549 rm -f conftest.er1
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -z "$ac_c_werror_flag"
3554 || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 eval "$as_ac_Header=yes"
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 eval "$as_ac_Header=no"
3573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3578 cat >>confdefs.h <<_ACEOF
3579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3580 _ACEOF
3584 done
3587 echo "$as_me:$LINENO: checking for short" >&5
3588 echo $ECHO_N "checking for short... $ECHO_C" >&6
3589 if test "${ac_cv_type_short+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 $ac_includes_default
3600 main ()
3602 if ((short *) 0)
3603 return 0;
3604 if (sizeof (short))
3605 return 0;
3607 return 0;
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -z "$ac_c_werror_flag"
3620 || test ! -s conftest.err'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_cv_type_short=yes
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3637 ac_cv_type_short=no
3639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3641 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3642 echo "${ECHO_T}$ac_cv_type_short" >&6
3644 echo "$as_me:$LINENO: checking size of short" >&5
3645 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3646 if test "${ac_cv_sizeof_short+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 if test "$ac_cv_type_short" = yes; then
3650 # The cast to unsigned long works around a bug in the HP C Compiler
3651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3653 # This bug is HP SR number 8606223364.
3654 if test "$cross_compiling" = yes; then
3655 # Depending upon the size, compute the lo and hi bounds.
3656 cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h. */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 $ac_includes_default
3664 main ()
3666 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3667 test_array [0] = 0
3670 return 0;
3672 _ACEOF
3673 rm -f conftest.$ac_objext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag"
3683 || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest.$ac_objext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_lo=0 ac_mid=0
3696 while :; do
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 $ac_includes_default
3705 main ()
3707 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3708 test_array [0] = 0
3711 return 0;
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_c_werror_flag"
3724 || test ! -s conftest.err'
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); }; } &&
3730 { ac_try='test -s conftest.$ac_objext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 ac_hi=$ac_mid; break
3737 else
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3741 ac_lo=`expr $ac_mid + 1`
3742 if test $ac_lo -le $ac_mid; then
3743 ac_lo= ac_hi=
3744 break
3746 ac_mid=`expr 2 '*' $ac_mid + 1`
3748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749 done
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3760 $ac_includes_default
3762 main ()
3764 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3765 test_array [0] = 0
3768 return 0;
3770 _ACEOF
3771 rm -f conftest.$ac_objext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773 (eval $ac_compile) 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try='test -z "$ac_c_werror_flag"
3781 || test ! -s conftest.err'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest.$ac_objext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_hi=-1 ac_mid=-1
3794 while :; do
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 $ac_includes_default
3803 main ()
3805 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3806 test_array [0] = 0
3809 return 0;
3811 _ACEOF
3812 rm -f conftest.$ac_objext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try='test -z "$ac_c_werror_flag"
3822 || test ! -s conftest.err'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; } &&
3828 { ac_try='test -s conftest.$ac_objext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_lo=$ac_mid; break
3835 else
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 ac_hi=`expr '(' $ac_mid ')' - 1`
3840 if test $ac_mid -le $ac_hi; then
3841 ac_lo= ac_hi=
3842 break
3844 ac_mid=`expr 2 '*' $ac_mid`
3846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3847 done
3848 else
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 ac_lo= ac_hi=
3854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857 # Binary search between lo and hi bounds.
3858 while test "x$ac_lo" != "x$ac_hi"; do
3859 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 $ac_includes_default
3868 main ()
3870 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3871 test_array [0] = 0
3874 return 0;
3876 _ACEOF
3877 rm -f conftest.$ac_objext
3878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879 (eval $ac_compile) 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } &&
3886 { ac_try='test -z "$ac_c_werror_flag"
3887 || test ! -s conftest.err'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 (eval $ac_try) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_hi=$ac_mid
3900 else
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 ac_lo=`expr '(' $ac_mid ')' + 1`
3906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3907 done
3908 case $ac_lo in
3909 ?*) ac_cv_sizeof_short=$ac_lo;;
3910 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3911 See \`config.log' for more details." >&5
3912 echo "$as_me: error: cannot compute sizeof (short), 77
3913 See \`config.log' for more details." >&2;}
3914 { (exit 1); exit 1; }; } ;;
3915 esac
3916 else
3917 if test "$cross_compiling" = yes; then
3918 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3919 See \`config.log' for more details." >&5
3920 echo "$as_me: error: cannot run test program while cross compiling
3921 See \`config.log' for more details." >&2;}
3922 { (exit 1); exit 1; }; }
3923 else
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 $ac_includes_default
3931 long longval () { return (long) (sizeof (short)); }
3932 unsigned long ulongval () { return (long) (sizeof (short)); }
3933 #include <stdio.h>
3934 #include <stdlib.h>
3936 main ()
3939 FILE *f = fopen ("conftest.val", "w");
3940 if (! f)
3941 exit (1);
3942 if (((long) (sizeof (short))) < 0)
3944 long i = longval ();
3945 if (i != ((long) (sizeof (short))))
3946 exit (1);
3947 fprintf (f, "%ld\n", i);
3949 else
3951 unsigned long i = ulongval ();
3952 if (i != ((long) (sizeof (short))))
3953 exit (1);
3954 fprintf (f, "%lu\n", i);
3956 exit (ferror (f) || fclose (f) != 0);
3959 return 0;
3961 _ACEOF
3962 rm -f conftest$ac_exeext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3964 (eval $ac_link) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 ac_cv_sizeof_short=`cat conftest.val`
3974 else
3975 echo "$as_me: program exited with status $ac_status" >&5
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 ( exit $ac_status )
3980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3981 See \`config.log' for more details." >&5
3982 echo "$as_me: error: cannot compute sizeof (short), 77
3983 See \`config.log' for more details." >&2;}
3984 { (exit 1); exit 1; }; }
3986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 rm -f conftest.val
3990 else
3991 ac_cv_sizeof_short=0
3994 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3995 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3996 cat >>confdefs.h <<_ACEOF
3997 #define SIZEOF_SHORT $ac_cv_sizeof_short
3998 _ACEOF
4001 echo "$as_me:$LINENO: checking for int" >&5
4002 echo $ECHO_N "checking for int... $ECHO_C" >&6
4003 if test "${ac_cv_type_int+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4014 main ()
4016 if ((int *) 0)
4017 return 0;
4018 if (sizeof (int))
4019 return 0;
4021 return 0;
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026 (eval $ac_compile) 2>conftest.er1
4027 ac_status=$?
4028 grep -v '^ *+' conftest.er1 >conftest.err
4029 rm -f conftest.er1
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } &&
4033 { ac_try='test -z "$ac_c_werror_flag"
4034 || test ! -s conftest.err'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_cv_type_int=yes
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 ac_cv_type_int=no
4053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4055 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4056 echo "${ECHO_T}$ac_cv_type_int" >&6
4058 echo "$as_me:$LINENO: checking size of int" >&5
4059 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4060 if test "${ac_cv_sizeof_int+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 if test "$ac_cv_type_int" = yes; then
4064 # The cast to unsigned long works around a bug in the HP C Compiler
4065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4067 # This bug is HP SR number 8606223364.
4068 if test "$cross_compiling" = yes; then
4069 # Depending upon the size, compute the lo and hi bounds.
4070 cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h. */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4076 $ac_includes_default
4078 main ()
4080 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4081 test_array [0] = 0
4084 return 0;
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -z "$ac_c_werror_flag"
4097 || test ! -s conftest.err'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 (eval $ac_try) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 ac_lo=0 ac_mid=0
4110 while :; do
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h. */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 $ac_includes_default
4119 main ()
4121 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4122 test_array [0] = 0
4125 return 0;
4127 _ACEOF
4128 rm -f conftest.$ac_objext
4129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4130 (eval $ac_compile) 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag"
4138 || test ! -s conftest.err'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 (eval $ac_try) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; } &&
4144 { ac_try='test -s conftest.$ac_objext'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 (eval $ac_try) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 ac_hi=$ac_mid; break
4151 else
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 ac_lo=`expr $ac_mid + 1`
4156 if test $ac_lo -le $ac_mid; then
4157 ac_lo= ac_hi=
4158 break
4160 ac_mid=`expr 2 '*' $ac_mid + 1`
4162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163 done
4164 else
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4168 cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h. */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 $ac_includes_default
4176 main ()
4178 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4179 test_array [0] = 0
4182 return 0;
4184 _ACEOF
4185 rm -f conftest.$ac_objext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4187 (eval $ac_compile) 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } &&
4194 { ac_try='test -z "$ac_c_werror_flag"
4195 || test ! -s conftest.err'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 (eval $ac_try) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; } &&
4201 { ac_try='test -s conftest.$ac_objext'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; }; then
4207 ac_hi=-1 ac_mid=-1
4208 while :; do
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 $ac_includes_default
4217 main ()
4219 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4220 test_array [0] = 0
4223 return 0;
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag"
4236 || test ! -s conftest.err'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_lo=$ac_mid; break
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 ac_hi=`expr '(' $ac_mid ')' - 1`
4254 if test $ac_mid -le $ac_hi; then
4255 ac_lo= ac_hi=
4256 break
4258 ac_mid=`expr 2 '*' $ac_mid`
4260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4261 done
4262 else
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 ac_lo= ac_hi=
4268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4271 # Binary search between lo and hi bounds.
4272 while test "x$ac_lo" != "x$ac_hi"; do
4273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 $ac_includes_default
4282 main ()
4284 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4285 test_array [0] = 0
4288 return 0;
4290 _ACEOF
4291 rm -f conftest.$ac_objext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293 (eval $ac_compile) 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try='test -z "$ac_c_werror_flag"
4301 || test ! -s conftest.err'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 (eval $ac_try) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4313 ac_hi=$ac_mid
4314 else
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 ac_lo=`expr '(' $ac_mid ')' + 1`
4320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4321 done
4322 case $ac_lo in
4323 ?*) ac_cv_sizeof_int=$ac_lo;;
4324 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4325 See \`config.log' for more details." >&5
4326 echo "$as_me: error: cannot compute sizeof (int), 77
4327 See \`config.log' for more details." >&2;}
4328 { (exit 1); exit 1; }; } ;;
4329 esac
4330 else
4331 if test "$cross_compiling" = yes; then
4332 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4333 See \`config.log' for more details." >&5
4334 echo "$as_me: error: cannot run test program while cross compiling
4335 See \`config.log' for more details." >&2;}
4336 { (exit 1); exit 1; }; }
4337 else
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 $ac_includes_default
4345 long longval () { return (long) (sizeof (int)); }
4346 unsigned long ulongval () { return (long) (sizeof (int)); }
4347 #include <stdio.h>
4348 #include <stdlib.h>
4350 main ()
4353 FILE *f = fopen ("conftest.val", "w");
4354 if (! f)
4355 exit (1);
4356 if (((long) (sizeof (int))) < 0)
4358 long i = longval ();
4359 if (i != ((long) (sizeof (int))))
4360 exit (1);
4361 fprintf (f, "%ld\n", i);
4363 else
4365 unsigned long i = ulongval ();
4366 if (i != ((long) (sizeof (int))))
4367 exit (1);
4368 fprintf (f, "%lu\n", i);
4370 exit (ferror (f) || fclose (f) != 0);
4373 return 0;
4375 _ACEOF
4376 rm -f conftest$ac_exeext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4378 (eval $ac_link) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_cv_sizeof_int=`cat conftest.val`
4388 else
4389 echo "$as_me: program exited with status $ac_status" >&5
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ( exit $ac_status )
4394 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4395 See \`config.log' for more details." >&5
4396 echo "$as_me: error: cannot compute sizeof (int), 77
4397 See \`config.log' for more details." >&2;}
4398 { (exit 1); exit 1; }; }
4400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4403 rm -f conftest.val
4404 else
4405 ac_cv_sizeof_int=0
4408 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4409 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4410 cat >>confdefs.h <<_ACEOF
4411 #define SIZEOF_INT $ac_cv_sizeof_int
4412 _ACEOF
4415 echo "$as_me:$LINENO: checking for long" >&5
4416 echo $ECHO_N "checking for long... $ECHO_C" >&6
4417 if test "${ac_cv_type_long+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 $ac_includes_default
4428 main ()
4430 if ((long *) 0)
4431 return 0;
4432 if (sizeof (long))
4433 return 0;
4435 return 0;
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>conftest.er1
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -z "$ac_c_werror_flag"
4448 || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_cv_type_long=yes
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 ac_cv_type_long=no
4467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4469 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4470 echo "${ECHO_T}$ac_cv_type_long" >&6
4472 echo "$as_me:$LINENO: checking size of long" >&5
4473 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4474 if test "${ac_cv_sizeof_long+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477 if test "$ac_cv_type_long" = yes; then
4478 # The cast to unsigned long works around a bug in the HP C Compiler
4479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4481 # This bug is HP SR number 8606223364.
4482 if test "$cross_compiling" = yes; then
4483 # Depending upon the size, compute the lo and hi bounds.
4484 cat >conftest.$ac_ext <<_ACEOF
4485 /* confdefs.h. */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 $ac_includes_default
4492 main ()
4494 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4495 test_array [0] = 0
4498 return 0;
4500 _ACEOF
4501 rm -f conftest.$ac_objext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503 (eval $ac_compile) 2>conftest.er1
4504 ac_status=$?
4505 grep -v '^ *+' conftest.er1 >conftest.err
4506 rm -f conftest.er1
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -z "$ac_c_werror_flag"
4511 || test ! -s conftest.err'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; } &&
4517 { ac_try='test -s conftest.$ac_objext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 ac_lo=0 ac_mid=0
4524 while :; do
4525 cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h. */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 $ac_includes_default
4533 main ()
4535 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4536 test_array [0] = 0
4539 return 0;
4541 _ACEOF
4542 rm -f conftest.$ac_objext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
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); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_hi=$ac_mid; break
4565 else
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 ac_lo=`expr $ac_mid + 1`
4570 if test $ac_lo -le $ac_mid; then
4571 ac_lo= ac_hi=
4572 break
4574 ac_mid=`expr 2 '*' $ac_mid + 1`
4576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4577 done
4578 else
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4582 cat >conftest.$ac_ext <<_ACEOF
4583 /* confdefs.h. */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588 $ac_includes_default
4590 main ()
4592 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4593 test_array [0] = 0
4596 return 0;
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>conftest.er1
4602 ac_status=$?
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try='test -z "$ac_c_werror_flag"
4609 || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 ac_hi=-1 ac_mid=-1
4622 while :; do
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629 $ac_includes_default
4631 main ()
4633 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4634 test_array [0] = 0
4637 return 0;
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642 (eval $ac_compile) 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -z "$ac_c_werror_flag"
4650 || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_lo=$ac_mid; break
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 ac_hi=`expr '(' $ac_mid ')' - 1`
4668 if test $ac_mid -le $ac_hi; then
4669 ac_lo= ac_hi=
4670 break
4672 ac_mid=`expr 2 '*' $ac_mid`
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4675 done
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_lo= ac_hi=
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685 # Binary search between lo and hi bounds.
4686 while test "x$ac_lo" != "x$ac_hi"; do
4687 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 $ac_includes_default
4696 main ()
4698 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4699 test_array [0] = 0
4702 return 0;
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_c_werror_flag"
4715 || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 ac_hi=$ac_mid
4728 else
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 ac_lo=`expr '(' $ac_mid ')' + 1`
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 done
4736 case $ac_lo in
4737 ?*) ac_cv_sizeof_long=$ac_lo;;
4738 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4739 See \`config.log' for more details." >&5
4740 echo "$as_me: error: cannot compute sizeof (long), 77
4741 See \`config.log' for more details." >&2;}
4742 { (exit 1); exit 1; }; } ;;
4743 esac
4744 else
4745 if test "$cross_compiling" = yes; then
4746 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4747 See \`config.log' for more details." >&5
4748 echo "$as_me: error: cannot run test program while cross compiling
4749 See \`config.log' for more details." >&2;}
4750 { (exit 1); exit 1; }; }
4751 else
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 $ac_includes_default
4759 long longval () { return (long) (sizeof (long)); }
4760 unsigned long ulongval () { return (long) (sizeof (long)); }
4761 #include <stdio.h>
4762 #include <stdlib.h>
4764 main ()
4767 FILE *f = fopen ("conftest.val", "w");
4768 if (! f)
4769 exit (1);
4770 if (((long) (sizeof (long))) < 0)
4772 long i = longval ();
4773 if (i != ((long) (sizeof (long))))
4774 exit (1);
4775 fprintf (f, "%ld\n", i);
4777 else
4779 unsigned long i = ulongval ();
4780 if (i != ((long) (sizeof (long))))
4781 exit (1);
4782 fprintf (f, "%lu\n", i);
4784 exit (ferror (f) || fclose (f) != 0);
4787 return 0;
4789 _ACEOF
4790 rm -f conftest$ac_exeext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4792 (eval $ac_link) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 ac_cv_sizeof_long=`cat conftest.val`
4802 else
4803 echo "$as_me: program exited with status $ac_status" >&5
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 ( exit $ac_status )
4808 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4809 See \`config.log' for more details." >&5
4810 echo "$as_me: error: cannot compute sizeof (long), 77
4811 See \`config.log' for more details." >&2;}
4812 { (exit 1); exit 1; }; }
4814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4817 rm -f conftest.val
4818 else
4819 ac_cv_sizeof_long=0
4822 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4823 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4824 cat >>confdefs.h <<_ACEOF
4825 #define SIZEOF_LONG $ac_cv_sizeof_long
4826 _ACEOF
4829 echo "$as_me:$LINENO: checking for long long" >&5
4830 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4831 if test "${ac_cv_type_long_long+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 $ac_includes_default
4842 main ()
4844 if ((long long *) 0)
4845 return 0;
4846 if (sizeof (long long))
4847 return 0;
4849 return 0;
4851 _ACEOF
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 ac_cv_type_long_long=yes
4875 else
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4879 ac_cv_type_long_long=no
4881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4883 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4884 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4886 echo "$as_me:$LINENO: checking size of long long" >&5
4887 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4888 if test "${ac_cv_sizeof_long_long+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 if test "$ac_cv_type_long_long" = yes; then
4892 # The cast to unsigned long works around a bug in the HP C Compiler
4893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4895 # This bug is HP SR number 8606223364.
4896 if test "$cross_compiling" = yes; then
4897 # Depending upon the size, compute the lo and hi bounds.
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h. */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 $ac_includes_default
4906 main ()
4908 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4909 test_array [0] = 0
4912 return 0;
4914 _ACEOF
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>conftest.er1
4918 ac_status=$?
4919 grep -v '^ *+' conftest.er1 >conftest.err
4920 rm -f conftest.er1
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -z "$ac_c_werror_flag"
4925 || test ! -s conftest.err'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; } &&
4931 { ac_try='test -s conftest.$ac_objext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 ac_lo=0 ac_mid=0
4938 while :; do
4939 cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h. */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 $ac_includes_default
4947 main ()
4949 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4950 test_array [0] = 0
4953 return 0;
4955 _ACEOF
4956 rm -f conftest.$ac_objext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958 (eval $ac_compile) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_hi=$ac_mid; break
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 ac_lo=`expr $ac_mid + 1`
4984 if test $ac_lo -le $ac_mid; then
4985 ac_lo= ac_hi=
4986 break
4988 ac_mid=`expr 2 '*' $ac_mid + 1`
4990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4991 done
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h. */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 $ac_includes_default
5004 main ()
5006 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5007 test_array [0] = 0
5010 return 0;
5012 _ACEOF
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -z "$ac_c_werror_flag"
5023 || test ! -s conftest.err'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 (eval $ac_try) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 ac_hi=-1 ac_mid=-1
5036 while :; do
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5045 main ()
5047 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5048 test_array [0] = 0
5051 return 0;
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag"
5064 || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 (eval $ac_try) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try='test -s conftest.$ac_objext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_lo=$ac_mid; break
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 ac_hi=`expr '(' $ac_mid ')' - 1`
5082 if test $ac_mid -le $ac_hi; then
5083 ac_lo= ac_hi=
5084 break
5086 ac_mid=`expr 2 '*' $ac_mid`
5088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5089 done
5090 else
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 ac_lo= ac_hi=
5096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099 # Binary search between lo and hi bounds.
5100 while test "x$ac_lo" != "x$ac_hi"; do
5101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 $ac_includes_default
5110 main ()
5112 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5113 test_array [0] = 0
5116 return 0;
5118 _ACEOF
5119 rm -f conftest.$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_hi=$ac_mid
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ac_lo=`expr '(' $ac_mid ')' + 1`
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149 done
5150 case $ac_lo in
5151 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5152 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5153 See \`config.log' for more details." >&5
5154 echo "$as_me: error: cannot compute sizeof (long long), 77
5155 See \`config.log' for more details." >&2;}
5156 { (exit 1); exit 1; }; } ;;
5157 esac
5158 else
5159 if test "$cross_compiling" = yes; then
5160 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5161 See \`config.log' for more details." >&5
5162 echo "$as_me: error: cannot run test program while cross compiling
5163 See \`config.log' for more details." >&2;}
5164 { (exit 1); exit 1; }; }
5165 else
5166 cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 $ac_includes_default
5173 long longval () { return (long) (sizeof (long long)); }
5174 unsigned long ulongval () { return (long) (sizeof (long long)); }
5175 #include <stdio.h>
5176 #include <stdlib.h>
5178 main ()
5181 FILE *f = fopen ("conftest.val", "w");
5182 if (! f)
5183 exit (1);
5184 if (((long) (sizeof (long long))) < 0)
5186 long i = longval ();
5187 if (i != ((long) (sizeof (long long))))
5188 exit (1);
5189 fprintf (f, "%ld\n", i);
5191 else
5193 unsigned long i = ulongval ();
5194 if (i != ((long) (sizeof (long long))))
5195 exit (1);
5196 fprintf (f, "%lu\n", i);
5198 exit (ferror (f) || fclose (f) != 0);
5201 return 0;
5203 _ACEOF
5204 rm -f conftest$ac_exeext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206 (eval $ac_link) 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_sizeof_long_long=`cat conftest.val`
5216 else
5217 echo "$as_me: program exited with status $ac_status" >&5
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ( exit $ac_status )
5222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5223 See \`config.log' for more details." >&5
5224 echo "$as_me: error: cannot compute sizeof (long long), 77
5225 See \`config.log' for more details." >&2;}
5226 { (exit 1); exit 1; }; }
5228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5231 rm -f conftest.val
5232 else
5233 ac_cv_sizeof_long_long=0
5236 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5237 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5238 cat >>confdefs.h <<_ACEOF
5239 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5240 _ACEOF
5244 case 2 in
5245 $ac_cv_sizeof_short) SIZE16="short";;
5246 $ac_cv_sizeof_int) SIZE16="int";;
5247 esac
5249 case 4 in
5250 $ac_cv_sizeof_int) SIZE32="int";;
5251 $ac_cv_sizeof_long) SIZE32="long";;
5252 $ac_cv_sizeof_short) SIZE32="short";;
5253 esac
5258 OPAL_HAVE_SPEEX_H=
5259 OPAL_HAVE_SPEEX_SPEEX_H=
5261 for ac_header in "speex.h"
5263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5265 echo "$as_me:$LINENO: checking for $ac_header" >&5
5266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5272 else
5273 # Is the header compilable?
5274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 $ac_includes_default
5283 #include <$ac_header>
5284 _ACEOF
5285 rm -f conftest.$ac_objext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287 (eval $ac_compile) 2>conftest.er1
5288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -z "$ac_c_werror_flag"
5295 || test ! -s conftest.err'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; } &&
5301 { ac_try='test -s conftest.$ac_objext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 ac_header_compiler=yes
5308 else
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 ac_header_compiler=no
5314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5316 echo "${ECHO_T}$ac_header_compiler" >&6
5318 # Is the header present?
5319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <$ac_header>
5328 _ACEOF
5329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null; then
5337 if test -s conftest.err; then
5338 ac_cpp_err=$ac_c_preproc_warn_flag
5339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5340 else
5341 ac_cpp_err=
5343 else
5344 ac_cpp_err=yes
5346 if test -z "$ac_cpp_err"; then
5347 ac_header_preproc=yes
5348 else
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 ac_header_preproc=no
5354 rm -f conftest.err conftest.$ac_ext
5355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5356 echo "${ECHO_T}$ac_header_preproc" >&6
5358 # So? What about this header?
5359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5360 yes:no: )
5361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5365 ac_header_preproc=yes
5367 no:yes:* )
5368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5381 cat <<\_ASBOX
5382 ## ------------------------------------------ ##
5383 ## Report this to the AC_PACKAGE_NAME lists. ##
5384 ## ------------------------------------------ ##
5385 _ASBOX
5387 sed "s/^/$as_me: WARNING: /" >&2
5389 esac
5390 echo "$as_me:$LINENO: checking for $ac_header" >&5
5391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395 eval "$as_ac_Header=\$ac_header_preproc"
5397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402 cat >>confdefs.h <<_ACEOF
5403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5404 _ACEOF
5405 OPAL_HAVE_SPEEX_H=1
5408 done
5410 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5411 cat >>confdefs.h <<\_ACEOF
5412 #define OPAL_HAVE_SPEEX_H 1
5413 _ACEOF
5415 else
5417 for ac_header in "speex/speex.h"
5419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5421 echo "$as_me:$LINENO: checking for $ac_header" >&5
5422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5428 else
5429 # Is the header compilable?
5430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5439 #include <$ac_header>
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -z "$ac_c_werror_flag"
5451 || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_header_compiler=yes
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 ac_header_compiler=no
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5472 echo "${ECHO_T}$ac_header_compiler" >&6
5474 # Is the header present?
5475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5477 cat >conftest.$ac_ext <<_ACEOF
5478 /* confdefs.h. */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5483 #include <$ac_header>
5484 _ACEOF
5485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } >/dev/null; then
5493 if test -s conftest.err; then
5494 ac_cpp_err=$ac_c_preproc_warn_flag
5495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5496 else
5497 ac_cpp_err=
5499 else
5500 ac_cpp_err=yes
5502 if test -z "$ac_cpp_err"; then
5503 ac_header_preproc=yes
5504 else
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_header_preproc=no
5510 rm -f conftest.err conftest.$ac_ext
5511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5512 echo "${ECHO_T}$ac_header_preproc" >&6
5514 # So? What about this header?
5515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5516 yes:no: )
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5521 ac_header_preproc=yes
5523 no:yes:* )
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5537 cat <<\_ASBOX
5538 ## ------------------------------------------ ##
5539 ## Report this to the AC_PACKAGE_NAME lists. ##
5540 ## ------------------------------------------ ##
5541 _ASBOX
5543 sed "s/^/$as_me: WARNING: /" >&2
5545 esac
5546 echo "$as_me:$LINENO: checking for $ac_header" >&5
5547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 eval "$as_ac_Header=\$ac_header_preproc"
5553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5558 cat >>confdefs.h <<_ACEOF
5559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5560 _ACEOF
5561 OPAL_HAVE_SPEEX_SPEEX_H=1
5564 done
5566 if test "${OPAL_HAVE_SPEEX_SPEEX_H}x" != "x" ; then
5567 cat >>confdefs.h <<\_ACEOF
5568 #define OPAL_HAVE_SPEEX_SPEEX_H 1
5569 _ACEOF
5574 if test "${localspeex}" = "yes" ; then
5575 { echo "$as_me:$LINENO: Forcing use of OPAL Speex sources" >&5
5576 echo "$as_me: Forcing use of OPAL Speex sources" >&6;}
5577 elif test "${localspeex}" = "no" ; then
5578 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
5579 echo "$as_me: Forcing use of system Speex library" >&6;}
5580 cat >>confdefs.h <<\_ACEOF
5581 #define OPAL_SYSTEM_SPEEX 1
5582 _ACEOF
5584 OPAL_SYSTEM_SPEEX=1
5586 else
5587 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
5588 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
5589 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592 ac_check_lib_save_LIBS=$LIBS
5593 LIBS="-lspeex $LIBS"
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5601 /* Override any gcc2 internal prototype to avoid an error. */
5602 #ifdef __cplusplus
5603 extern "C"
5604 #endif
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5607 char speex_encoder_destroy ();
5609 main ()
5611 speex_encoder_destroy ();
5613 return 0;
5615 _ACEOF
5616 rm -f conftest.$ac_objext conftest$ac_exeext
5617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618 (eval $ac_link) 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } &&
5625 { ac_try='test -z "$ac_c_werror_flag"
5626 || test ! -s conftest.err'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; } &&
5632 { ac_try='test -s conftest$ac_exeext'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5638 ac_cv_lib_speex_speex_encoder_destroy=yes
5639 else
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 ac_cv_lib_speex_speex_encoder_destroy=no
5645 rm -f conftest.err conftest.$ac_objext \
5646 conftest$ac_exeext conftest.$ac_ext
5647 LIBS=$ac_check_lib_save_LIBS
5649 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
5650 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
5651 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
5652 SPEEX=1
5655 if test "${SPEEX}x" != "x" ; then
5656 echo "$as_me:$LINENO: checking for speex_encode_int in -lspeex" >&5
5657 echo $ECHO_N "checking for speex_encode_int in -lspeex... $ECHO_C" >&6
5658 if test "${ac_cv_lib_speex_speex_encode_int+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661 ac_check_lib_save_LIBS=$LIBS
5662 LIBS="-lspeex $LIBS"
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 #ifdef __cplusplus
5672 extern "C"
5673 #endif
5674 /* We use char because int might match the return type of a gcc2
5675 builtin and then its argument prototype would still apply. */
5676 char speex_encode_int ();
5678 main ()
5680 speex_encode_int ();
5682 return 0;
5684 _ACEOF
5685 rm -f conftest.$ac_objext conftest$ac_exeext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5687 (eval $ac_link) 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -z "$ac_c_werror_flag"
5695 || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest$ac_exeext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_lib_speex_speex_encode_int=yes
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 ac_cv_lib_speex_speex_encode_int=no
5714 rm -f conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716 LIBS=$ac_check_lib_save_LIBS
5718 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode_int" >&5
5719 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode_int" >&6
5720 if test $ac_cv_lib_speex_speex_encode_int = yes; then
5721 SPEEX=1
5722 else
5723 unset SPEEX
5727 if test "x$SPEEX" = "x" -o \( "${OPAL_HAVE_SPEEX_H}x" = "x" -a "${OPAL_HAVE_SPEEX_SPEEX_H}x" = "x" \); then
5728 { echo "$as_me:$LINENO: Forcing use of OPAL Speex library" >&5
5729 echo "$as_me: Forcing use of OPAL Speex library" >&6;}
5730 else
5731 echo "$as_me:$LINENO: checking system Speex version" >&5
5732 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
5733 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5734 echo "#include <speex.h>" > t.c
5735 echo "#include <speex_header.h>" >> t.c
5736 else
5737 echo "#include <speex/speex.h>" > t.c
5738 echo "#include <speex/speex_header.h>" >> t.c
5740 cat >> t.c <<C_FILE
5741 #include <stdio.h>
5742 int main(int argc,char *argv)
5744 SpeexHeader header;
5745 speex_init_header(&header, 1, 1, &speex_nb_mode);
5746 printf("%s\n", header.speex_version);
5748 C_FILE
5749 cc -o t t.c -lspeex > /dev/null 2>&1
5750 if test \! -x t ; then
5751 echo "$as_me:$LINENO: result: cannot determine - using OPAL version" >&5
5752 echo "${ECHO_T}cannot determine - using OPAL version" >&6
5753 else
5754 SYSVER=`./t`
5755 echo "$as_me:$LINENO: result: $SYSVER" >&5
5756 echo "${ECHO_T}$SYSVER" >&6
5757 echo "$as_me:$LINENO: checking OPAL Speex version" >&5
5758 echo $ECHO_N "checking OPAL Speex version... $ECHO_C" >&6
5759 LIBVER=`grep "#define SPEEX_VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//' -e 's/\/.*//'`
5760 echo "$as_me:$LINENO: result: $LIBVER" >&5
5761 echo "${ECHO_T}$LIBVER" >&6
5762 echo "$as_me:$LINENO: checking Speex versions" >&5
5763 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
5764 cat > t.pl <<P_FILE
5766 \$sysver = @ARGV[0];
5767 \$libver = @ARGV[1];
5768 @lib = split /\./, \$libver;
5769 while (@lib < 3) {
5770 @lib[0+@lib] = "0";
5772 @sys = split /\./, \$sysver;
5773 while (@sys < 3) {
5774 @sys[0+@sys] = "0";
5776 \$i = 0;
5777 while (\$i < 3) {
5778 if (@sys[\$i] < @lib[\$i]) {
5779 print "0";
5780 exit;
5782 \$i++;
5784 print "1";
5786 P_FILE
5787 SPEEX=`perl t.pl $SYSVER $LIBVER`
5788 rm t.pl
5789 if test "x$SPEEX" = "x0" ; then
5790 echo "$as_me:$LINENO: result: OPAL version is more recent" >&5
5791 echo "${ECHO_T}OPAL version is more recent" >&6
5792 else
5793 echo "$as_me:$LINENO: result: system version is more recent" >&5
5794 echo "${ECHO_T}system version is more recent" >&6
5795 cat >>confdefs.h <<\_ACEOF
5796 #define OPAL_SYSTEM_SPEEX 1
5797 _ACEOF
5799 OPAL_SYSTEM_SPEEX=1
5801 echo "$as_me:$LINENO: checking Speex noise type" >&5
5802 echo $ECHO_N "checking Speex noise type... $ECHO_C" >&6
5803 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5804 echo "#include <speex.h>" > t.c
5805 echo "#include <speex_preprocess.h>" >> t.c
5806 else
5807 echo "#include <speex/speex.h>" > t.c
5808 echo "#include <speex/speex_preprocess.h>" >> t.c
5810 cat >> t.c <<C_FILE
5811 #include <stdio.h>
5812 int main(int argc,char *argv)
5814 struct SpeexPreprocessState *st;
5815 spx_int16_t *x;
5816 float *echo;
5817 speex_preprocess(st, x, echo);
5819 C_FILE
5820 rm -f t
5821 cc -Werror -o t t.c -lspeex > /dev/null 2>&1
5822 if test \! -x t ; then
5823 echo "$as_me:$LINENO: result: spx_int32_t" >&5
5824 echo "${ECHO_T}spx_int32_t" >&6
5825 else
5826 echo "$as_me:$LINENO: result: float" >&5
5827 echo "${ECHO_T}float" >&6
5828 cat >>confdefs.h <<\_ACEOF
5829 #define OPAL_SPEEX_FLOAT_NOISE 1
5830 _ACEOF
5835 rm -f t t.c
5843 # Check whether --enable-audio or --disable-audio was given.
5844 if test "${enable_audio+set}" = set; then
5845 enableval="$enable_audio"
5846 audio=$enableval
5848 echo "$as_me:$LINENO: checking audio codec support" >&5
5849 echo $ECHO_N "checking audio codec support... $ECHO_C" >&6
5850 if test "$audio" = "yes" ; then
5851 OPAL_AUDIO=1
5853 cat >>confdefs.h <<\_ACEOF
5854 #define OPAL_AUDIO 1
5855 _ACEOF
5857 echo "$as_me:$LINENO: result: enabled" >&5
5858 echo "${ECHO_T}enabled" >&6
5859 else
5860 echo "$as_me:$LINENO: result: disabled" >&5
5861 echo "${ECHO_T}disabled" >&6
5867 # Check whether --enable-video or --disable-video was given.
5868 if test "${enable_video+set}" = set; then
5869 enableval="$enable_video"
5870 video=$enableval
5872 echo "$as_me:$LINENO: checking video device support" >&5
5873 echo $ECHO_N "checking video device support... $ECHO_C" >&6
5874 if test "$video" = "yes" ; then
5875 OPAL_VIDEO=1
5877 cat >>confdefs.h <<\_ACEOF
5878 #define OPAL_VIDEO 1
5879 _ACEOF
5881 echo "$as_me:$LINENO: result: enabled" >&5
5882 echo "${ECHO_T}enabled" >&6
5883 else
5884 echo "$as_me:$LINENO: result: disabled" >&5
5885 echo "${ECHO_T}disabled" >&6
5886 rfc4175=no
5891 # Check whether --enable-sip or --disable-sip was given.
5892 if test "${enable_sip+set}" = set; then
5893 enableval="$enable_sip"
5894 sip=$enableval
5896 echo "$as_me:$LINENO: checking SIP protocol" >&5
5897 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6
5898 if test "$sip" = "yes" ; then
5899 OPAL_SIP=1
5901 cat >>confdefs.h <<\_ACEOF
5902 #define OPAL_SIP 1
5903 _ACEOF
5905 echo "$as_me:$LINENO: result: enabled" >&5
5906 echo "${ECHO_T}enabled" >&6
5907 else
5908 echo "$as_me:$LINENO: result: disabled" >&5
5909 echo "${ECHO_T}disabled" >&6
5914 # Check whether --enable-h323 or --disable-h323 was given.
5915 if test "${enable_h323+set}" = set; then
5916 enableval="$enable_h323"
5917 h323=$enableval
5919 echo "$as_me:$LINENO: checking H.323 protocol" >&5
5920 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6
5921 if test "$h323" = "yes" ; then
5922 OPAL_H323=1
5924 cat >>confdefs.h <<\_ACEOF
5925 #define OPAL_H323 1
5926 _ACEOF
5928 echo "$as_me:$LINENO: result: enabled" >&5
5929 echo "${ECHO_T}enabled" >&6
5930 else
5931 OPAL_H323=0
5933 echo "$as_me:$LINENO: result: disabled (T.38, H.224, H.460 also disabled)" >&5
5934 echo "${ECHO_T}disabled (T.38, H.224, H.460 also disabled)" >&6
5935 h224=no
5936 h460=no
5938 OPAL_H323=$OPAL_H323
5943 # Check whether --enable-iax or --disable-iax was given.
5944 if test "${enable_iax+set}" = set; then
5945 enableval="$enable_iax"
5946 iax=$enableval
5948 echo "$as_me:$LINENO: checking IAX2 protocol" >&5
5949 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6
5950 if test "$iax" = "yes" ; then
5951 OPAL_IAX2=1
5953 cat >>confdefs.h <<\_ACEOF
5954 #define OPAL_IAX2 1
5955 _ACEOF
5957 echo "$as_me:$LINENO: result: enabled" >&5
5958 echo "${ECHO_T}enabled" >&6
5959 else
5960 echo "$as_me:$LINENO: result: disabled" >&5
5961 echo "${ECHO_T}disabled" >&6
5966 # Check whether --enable-h224 or --disable-h224 was given.
5967 if test "${enable_h224+set}" = set; then
5968 enableval="$enable_h224"
5969 h224=$enableval
5971 echo "$as_me:$LINENO: checking H224 protocol" >&5
5972 echo $ECHO_N "checking H224 protocol... $ECHO_C" >&6
5973 if test "$h224" = "yes" ; then
5974 OPAL_H224=1
5976 cat >>confdefs.h <<\_ACEOF
5977 #define OPAL_H224 1
5978 _ACEOF
5980 echo "$as_me:$LINENO: result: enabled" >&5
5981 echo "${ECHO_T}enabled" >&6
5982 else
5983 echo "$as_me:$LINENO: result: disabled" >&5
5984 echo "${ECHO_T}disabled" >&6
5989 if test "$t38" = "yes" ; then
5990 # Check whether --enable-t38 or --disable-t38 was given.
5991 if test "${enable_t38+set}" = set; then
5992 enableval="$enable_t38"
5993 t38=$enableval
5995 echo "$as_me:$LINENO: checking T.38 protocol" >&5
5996 echo $ECHO_N "checking T.38 protocol... $ECHO_C" >&6
5997 if test "$t38" = "yes" ; then
5998 OPAL_T38FAX=1
6000 cat >>confdefs.h <<\_ACEOF
6001 #define OPAL_T38FAX 1
6002 _ACEOF
6004 echo "$as_me:$LINENO: result: enabled" >&5
6005 echo "${ECHO_T}enabled" >&6
6006 else
6007 echo "$as_me:$LINENO: result: disabled" >&5
6008 echo "${ECHO_T}disabled" >&6
6015 OPAL_450=
6016 if test "$h450" = "yes" ; then
6017 # Check whether --enable-h450 or --disable-h450 was given.
6018 if test "${enable_h450+set}" = set; then
6019 enableval="$enable_h450"
6020 h450=$enableval
6022 echo "$as_me:$LINENO: checking H.450 support" >&5
6023 echo $ECHO_N "checking H.450 support... $ECHO_C" >&6
6024 if test "$h450" = "yes" ; then
6025 OPAL_H450=1
6027 cat >>confdefs.h <<\_ACEOF
6028 #define OPAL_H450 1
6029 _ACEOF
6031 echo "$as_me:$LINENO: result: enabled" >&5
6032 echo "${ECHO_T}enabled" >&6
6033 else
6034 echo "$as_me:$LINENO: result: disabled" >&5
6035 echo "${ECHO_T}disabled" >&6
6042 OPAL_460=
6043 if test "$h460" = "yes" ; then
6044 # Check whether --enable-h460 or --disable-h460 was given.
6045 if test "${enable_h460+set}" = set; then
6046 enableval="$enable_h460"
6047 h460=$enableval
6049 echo "$as_me:$LINENO: checking H.460 support" >&5
6050 echo $ECHO_N "checking H.460 support... $ECHO_C" >&6
6051 if test "$h460" = "yes" ; then
6052 OPAL_H460=1
6054 cat >>confdefs.h <<\_ACEOF
6055 #define OPAL_H460 1
6056 _ACEOF
6058 echo "$as_me:$LINENO: result: enabled" >&5
6059 echo "${ECHO_T}enabled" >&6
6060 else
6061 echo "$as_me:$LINENO: result: disabled" >&5
6062 echo "${ECHO_T}disabled" >&6
6069 OPAL_LID=
6070 lid=yes
6071 if test "$lid" = "yes" ; then
6072 # Check whether --enable-lid or --disable-lid was given.
6073 if test "${enable_lid+set}" = set; then
6074 enableval="$enable_lid"
6075 lid=$enableval
6077 echo "$as_me:$LINENO: checking LID support" >&5
6078 echo $ECHO_N "checking LID support... $ECHO_C" >&6
6079 if test "$lid" = "yes" ; then
6080 cat >>confdefs.h <<\_ACEOF
6081 #define OPAL_LID 1
6082 _ACEOF
6084 OPAL_LID=1
6085 echo "$as_me:$LINENO: result: enabled" >&5
6086 echo "${ECHO_T}enabled" >&6
6087 else
6088 echo "$as_me:$LINENO: result: disabled" >&5
6089 echo "${ECHO_T}disabled" >&6
6096 ivr=yes
6097 if test "$ivr" = "yes" ; then
6098 # Check whether --enable-ivr or --disable-ivr was given.
6099 if test "${enable_ivr+set}" = set; then
6100 enableval="$enable_ivr"
6101 ivr=$enableval
6103 echo "$as_me:$LINENO: checking IVR support" >&5
6104 echo $ECHO_N "checking IVR support... $ECHO_C" >&6
6105 if test "$ivr" = "yes" ; then
6106 cat >>confdefs.h <<\_ACEOF
6107 #define OPAL_IVR 1
6108 _ACEOF
6110 OPAL_IVR=1
6111 echo "$as_me:$LINENO: result: enabled" >&5
6112 echo "${ECHO_T}enabled" >&6
6113 else
6114 echo "$as_me:$LINENO: result: disabled" >&5
6115 echo "${ECHO_T}disabled" >&6
6123 if test "$rfc4175" = "yes" ; then
6124 # Check whether --enable-rfc4175 or --disable-rfc4175 was given.
6125 if test "${enable_rfc4175+set}" = set; then
6126 enableval="$enable_rfc4175"
6127 rfc4175=$enableval
6129 echo "$as_me:$LINENO: checking RFC4175 codec" >&5
6130 echo $ECHO_N "checking RFC4175 codec... $ECHO_C" >&6
6131 if test "$rfc4175" = "yes" ; then
6132 cat >>confdefs.h <<\_ACEOF
6133 #define OPAL_RFC4175 1
6134 _ACEOF
6136 OPAL_RFC4175=1
6137 echo "$as_me:$LINENO: result: enabled" >&5
6138 echo "${ECHO_T}enabled" >&6
6139 else
6140 echo "$as_me:$LINENO: result: disabled" >&5
6141 echo "${ECHO_T}disabled" >&6
6148 HAS_LIBZRTP=
6155 HAS_LIBSRTP=
6156 echo "$as_me:$LINENO: checking for libSRTP" >&5
6157 echo $ECHO_N "checking for libSRTP... $ECHO_C" >&6
6158 cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h. */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 #include "srtp/srtp.h"
6166 main ()
6168 int main(int argc, char *argv[]) { crypto_policy_t p; p.cipher_key_len = SRTP_MASTER_KEY_LEN; return 0; }
6170 return 0;
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_c_werror_flag"
6183 || test ! -s conftest.err'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; } &&
6189 { ac_try='test -s conftest.$ac_objext'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 HAS_LIBSRTP=1
6196 else
6197 echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6202 if test "${HAS_LIBSRTP}" = "1" ; then
6203 echo "$as_me:$LINENO: result: yes" >&5
6204 echo "${ECHO_T}yes" >&6
6205 cat >>confdefs.h <<\_ACEOF
6206 #define HAS_LIBSRTP 1
6207 _ACEOF
6209 HAS_LIBSRTP=1
6210 OPAL_SRTP=1
6211 else
6212 echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6
6221 ac_aux_dir=
6222 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6223 if test -f $ac_dir/install-sh; then
6224 ac_aux_dir=$ac_dir
6225 ac_install_sh="$ac_aux_dir/install-sh -c"
6226 break
6227 elif test -f $ac_dir/install.sh; then
6228 ac_aux_dir=$ac_dir
6229 ac_install_sh="$ac_aux_dir/install.sh -c"
6230 break
6231 elif test -f $ac_dir/shtool; then
6232 ac_aux_dir=$ac_dir
6233 ac_install_sh="$ac_aux_dir/shtool install -c"
6234 break
6236 done
6237 if test -z "$ac_aux_dir"; then
6238 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6239 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6240 { (exit 1); exit 1; }; }
6242 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6243 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6244 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6246 # Find a good install program. We prefer a C program (faster),
6247 # so one script is as good as another. But avoid the broken or
6248 # incompatible versions:
6249 # SysV /etc/install, /usr/sbin/install
6250 # SunOS /usr/etc/install
6251 # IRIX /sbin/install
6252 # AIX /bin/install
6253 # AmigaOS /C/install, which installs bootblocks on floppy discs
6254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6257 # OS/2's system install, which has a completely different semantic
6258 # ./install, which can be erroneously created by make from ./install.sh.
6259 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6260 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6261 if test -z "$INSTALL"; then
6262 if test "${ac_cv_path_install+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 # Account for people who put trailing slashes in PATH elements.
6271 case $as_dir/ in
6272 ./ | .// | /cC/* | \
6273 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6274 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6275 /usr/ucb/* ) ;;
6277 # OSF1 and SCO ODT 3.0 have their own names for install.
6278 # Don't use installbsd from OSF since it installs stuff as root
6279 # by default.
6280 for ac_prog in ginstall scoinst install; do
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6283 if test $ac_prog = install &&
6284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6285 # AIX install. It has an incompatible calling convention.
6287 elif test $ac_prog = install &&
6288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6289 # program-specific install script used by HP pwplus--don't use.
6291 else
6292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6293 break 3
6296 done
6297 done
6299 esac
6300 done
6304 if test "${ac_cv_path_install+set}" = set; then
6305 INSTALL=$ac_cv_path_install
6306 else
6307 # As a last resort, use the slow shell script. We don't cache a
6308 # path for INSTALL within a source directory, because that will
6309 # break other packages using the cache if that directory is
6310 # removed, or if the path is relative.
6311 INSTALL=$ac_install_sh
6314 echo "$as_me:$LINENO: result: $INSTALL" >&5
6315 echo "${ECHO_T}$INSTALL" >&6
6317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6318 # It thinks the first close brace ends the variable substitution.
6319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6329 subdirs="$subdirs plugins"
6333 ac_config_files="$ac_config_files opal_inc.mak"
6335 ac_config_files="$ac_config_files Makefile"
6337 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
6339 ac_config_files="$ac_config_files opal.pc"
6341 ac_config_files="$ac_config_files opal.spec"
6343 ac_config_files="$ac_config_files opal_cfg.dxy"
6346 ac_config_files="$ac_config_files src/codec/speex/libspeex/speex_config_types.h"
6347 cat >confcache <<\_ACEOF
6348 # This file is a shell script that caches the results of configure
6349 # tests run on this system so they can be shared between configure
6350 # scripts and configure runs, see configure's option --config-cache.
6351 # It is not useful on other systems. If it contains results you don't
6352 # want to keep, you may remove or edit it.
6354 # config.status only pays attention to the cache file if you give it
6355 # the --recheck option to rerun configure.
6357 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6358 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6359 # following values.
6361 _ACEOF
6363 # The following way of writing the cache mishandles newlines in values,
6364 # but we know of no workaround that is simple, portable, and efficient.
6365 # So, don't put newlines in cache variables' values.
6366 # Ultrix sh set writes to stderr and can't be redirected directly,
6367 # and sets the high bit in the cache file unless we assign to the vars.
6369 (set) 2>&1 |
6370 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6371 *ac_space=\ *)
6372 # `set' does not quote correctly, so add quotes (double-quote
6373 # substitution turns \\\\ into \\, and sed turns \\ into \).
6374 sed -n \
6375 "s/'/'\\\\''/g;
6376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6379 # `set' quotes correctly as required by POSIX, so do not add quotes.
6380 sed -n \
6381 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6383 esac;
6385 sed '
6386 t clear
6387 : clear
6388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6389 t end
6390 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6391 : end' >>confcache
6392 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6393 if test -w $cache_file; then
6394 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6395 cat confcache >$cache_file
6396 else
6397 echo "not updating unwritable cache $cache_file"
6400 rm -f confcache
6402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6403 # Let make expand exec_prefix.
6404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6406 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6407 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6408 # trailing colons and then remove the whole line if VPATH becomes empty
6409 # (actually we leave an empty line to preserve line numbers).
6410 if test "x$srcdir" = x.; then
6411 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6412 s/:*\$(srcdir):*/:/;
6413 s/:*\${srcdir}:*/:/;
6414 s/:*@srcdir@:*/:/;
6415 s/^\([^=]*=[ ]*\):*/\1/;
6416 s/:*$//;
6417 s/^[^=]*=[ ]*$//;
6421 DEFS=-DHAVE_CONFIG_H
6423 ac_libobjs=
6424 ac_ltlibobjs=
6425 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6426 # 1. Remove the extension, and $U if already installed.
6427 ac_i=`echo "$ac_i" |
6428 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6429 # 2. Add them.
6430 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6431 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6432 done
6433 LIBOBJS=$ac_libobjs
6435 LTLIBOBJS=$ac_ltlibobjs
6439 : ${CONFIG_STATUS=./config.status}
6440 ac_clean_files_save=$ac_clean_files
6441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6442 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6443 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6444 cat >$CONFIG_STATUS <<_ACEOF
6445 #! $SHELL
6446 # Generated by $as_me.
6447 # Run this file to recreate the current configuration.
6448 # Compiler output produced by configure, useful for debugging
6449 # configure, is in config.log if it exists.
6451 debug=false
6452 ac_cs_recheck=false
6453 ac_cs_silent=false
6454 SHELL=\${CONFIG_SHELL-$SHELL}
6455 _ACEOF
6457 cat >>$CONFIG_STATUS <<\_ACEOF
6458 ## --------------------- ##
6459 ## M4sh Initialization. ##
6460 ## --------------------- ##
6462 # Be Bourne compatible
6463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6464 emulate sh
6465 NULLCMD=:
6466 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6467 # is contrary to our usage. Disable this feature.
6468 alias -g '${1+"$@"}'='"$@"'
6469 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6470 set -o posix
6472 DUALCASE=1; export DUALCASE # for MKS sh
6474 # Support unset when possible.
6475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6476 as_unset=unset
6477 else
6478 as_unset=false
6482 # Work around bugs in pre-3.0 UWIN ksh.
6483 $as_unset ENV MAIL MAILPATH
6484 PS1='$ '
6485 PS2='> '
6486 PS4='+ '
6488 # NLS nuisances.
6489 for as_var in \
6490 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6491 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6492 LC_TELEPHONE LC_TIME
6494 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6495 eval $as_var=C; export $as_var
6496 else
6497 $as_unset $as_var
6499 done
6501 # Required to use basename.
6502 if expr a : '\(a\)' >/dev/null 2>&1; then
6503 as_expr=expr
6504 else
6505 as_expr=false
6508 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6509 as_basename=basename
6510 else
6511 as_basename=false
6515 # Name of the executable.
6516 as_me=`$as_basename "$0" ||
6517 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6518 X"$0" : 'X\(//\)$' \| \
6519 X"$0" : 'X\(/\)$' \| \
6520 . : '\(.\)' 2>/dev/null ||
6521 echo X/"$0" |
6522 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6523 /^X\/\(\/\/\)$/{ s//\1/; q; }
6524 /^X\/\(\/\).*/{ s//\1/; q; }
6525 s/.*/./; q'`
6528 # PATH needs CR, and LINENO needs CR and PATH.
6529 # Avoid depending upon Character Ranges.
6530 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6531 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6532 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6533 as_cr_digits='0123456789'
6534 as_cr_alnum=$as_cr_Letters$as_cr_digits
6536 # The user is always right.
6537 if test "${PATH_SEPARATOR+set}" != set; then
6538 echo "#! /bin/sh" >conf$$.sh
6539 echo "exit 0" >>conf$$.sh
6540 chmod +x conf$$.sh
6541 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6542 PATH_SEPARATOR=';'
6543 else
6544 PATH_SEPARATOR=:
6546 rm -f conf$$.sh
6550 as_lineno_1=$LINENO
6551 as_lineno_2=$LINENO
6552 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6553 test "x$as_lineno_1" != "x$as_lineno_2" &&
6554 test "x$as_lineno_3" = "x$as_lineno_2" || {
6555 # Find who we are. Look in the path if we contain no path at all
6556 # relative or not.
6557 case $0 in
6558 *[\\/]* ) as_myself=$0 ;;
6559 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6565 done
6568 esac
6569 # We did not find ourselves, most probably we were run as `sh COMMAND'
6570 # in which case we are not to be found in the path.
6571 if test "x$as_myself" = x; then
6572 as_myself=$0
6574 if test ! -f "$as_myself"; then
6575 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6576 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6577 { (exit 1); exit 1; }; }
6579 case $CONFIG_SHELL in
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for as_base in sh bash ksh sh5; do
6587 case $as_dir in
6589 if ("$as_dir/$as_base" -c '
6590 as_lineno_1=$LINENO
6591 as_lineno_2=$LINENO
6592 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6593 test "x$as_lineno_1" != "x$as_lineno_2" &&
6594 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6595 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6596 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6597 CONFIG_SHELL=$as_dir/$as_base
6598 export CONFIG_SHELL
6599 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6600 fi;;
6601 esac
6602 done
6603 done
6605 esac
6607 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6608 # uniformly replaced by the line number. The first 'sed' inserts a
6609 # line-number line before each line; the second 'sed' does the real
6610 # work. The second script uses 'N' to pair each line-number line
6611 # with the numbered line, and appends trailing '-' during
6612 # substitution so that $LINENO is not a special case at line end.
6613 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6614 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6615 sed '=' <$as_myself |
6616 sed '
6618 s,$,-,
6619 : loop
6620 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6621 t loop
6622 s,-$,,
6623 s,^['$as_cr_digits']*\n,,
6624 ' >$as_me.lineno &&
6625 chmod +x $as_me.lineno ||
6626 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6627 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6628 { (exit 1); exit 1; }; }
6630 # Don't try to exec as it changes $[0], causing all sort of problems
6631 # (the dirname of $[0] is not the place where we might find the
6632 # original and so on. Autoconf is especially sensible to this).
6633 . ./$as_me.lineno
6634 # Exit status is that of the last command.
6635 exit
6639 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6640 *c*,-n*) ECHO_N= ECHO_C='
6641 ' ECHO_T=' ' ;;
6642 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6643 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6644 esac
6646 if expr a : '\(a\)' >/dev/null 2>&1; then
6647 as_expr=expr
6648 else
6649 as_expr=false
6652 rm -f conf$$ conf$$.exe conf$$.file
6653 echo >conf$$.file
6654 if ln -s conf$$.file conf$$ 2>/dev/null; then
6655 # We could just check for DJGPP; but this test a) works b) is more generic
6656 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6657 if test -f conf$$.exe; then
6658 # Don't use ln at all; we don't have any links
6659 as_ln_s='cp -p'
6660 else
6661 as_ln_s='ln -s'
6663 elif ln conf$$.file conf$$ 2>/dev/null; then
6664 as_ln_s=ln
6665 else
6666 as_ln_s='cp -p'
6668 rm -f conf$$ conf$$.exe conf$$.file
6670 if mkdir -p . 2>/dev/null; then
6671 as_mkdir_p=:
6672 else
6673 test -d ./-p && rmdir ./-p
6674 as_mkdir_p=false
6677 as_executable_p="test -f"
6679 # Sed expression to map a string onto a valid CPP name.
6680 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6682 # Sed expression to map a string onto a valid variable name.
6683 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6686 # IFS
6687 # We need space, tab and new line, in precisely that order.
6688 as_nl='
6690 IFS=" $as_nl"
6692 # CDPATH.
6693 $as_unset CDPATH
6695 exec 6>&1
6697 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6698 # report actual input values of CONFIG_FILES etc. instead of their
6699 # values after options handling. Logging --version etc. is OK.
6700 exec 5>>config.log
6702 echo
6703 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6704 ## Running $as_me. ##
6705 _ASBOX
6706 } >&5
6707 cat >&5 <<_CSEOF
6709 This file was extended by $as_me, which was
6710 generated by GNU Autoconf 2.59. Invocation command line was
6712 CONFIG_FILES = $CONFIG_FILES
6713 CONFIG_HEADERS = $CONFIG_HEADERS
6714 CONFIG_LINKS = $CONFIG_LINKS
6715 CONFIG_COMMANDS = $CONFIG_COMMANDS
6716 $ $0 $@
6718 _CSEOF
6719 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6720 echo >&5
6721 _ACEOF
6723 # Files that config.status was made for.
6724 if test -n "$ac_config_files"; then
6725 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6728 if test -n "$ac_config_headers"; then
6729 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6732 if test -n "$ac_config_links"; then
6733 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6736 if test -n "$ac_config_commands"; then
6737 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6740 cat >>$CONFIG_STATUS <<\_ACEOF
6742 ac_cs_usage="\
6743 \`$as_me' instantiates files from templates according to the
6744 current configuration.
6746 Usage: $0 [OPTIONS] [FILE]...
6748 -h, --help print this help, then exit
6749 -V, --version print version number, then exit
6750 -q, --quiet do not print progress messages
6751 -d, --debug don't remove temporary files
6752 --recheck update $as_me by reconfiguring in the same conditions
6753 --file=FILE[:TEMPLATE]
6754 instantiate the configuration file FILE
6755 --header=FILE[:TEMPLATE]
6756 instantiate the configuration header FILE
6758 Configuration files:
6759 $config_files
6761 Configuration headers:
6762 $config_headers
6764 Report bugs to <bug-autoconf@gnu.org>."
6765 _ACEOF
6767 cat >>$CONFIG_STATUS <<_ACEOF
6768 ac_cs_version="\\
6769 config.status
6770 configured by $0, generated by GNU Autoconf 2.59,
6771 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6773 Copyright (C) 2003 Free Software Foundation, Inc.
6774 This config.status script is free software; the Free Software Foundation
6775 gives unlimited permission to copy, distribute and modify it."
6776 srcdir=$srcdir
6777 INSTALL="$INSTALL"
6778 _ACEOF
6780 cat >>$CONFIG_STATUS <<\_ACEOF
6781 # If no file are specified by the user, then we need to provide default
6782 # value. By we need to know if files were specified by the user.
6783 ac_need_defaults=:
6784 while test $# != 0
6786 case $1 in
6787 --*=*)
6788 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6789 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6790 ac_shift=:
6793 ac_option=$1
6794 ac_optarg=$2
6795 ac_shift=shift
6797 *) # This is not an option, so the user has probably given explicit
6798 # arguments.
6799 ac_option=$1
6800 ac_need_defaults=false;;
6801 esac
6803 case $ac_option in
6804 # Handling of the options.
6805 _ACEOF
6806 cat >>$CONFIG_STATUS <<\_ACEOF
6807 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6808 ac_cs_recheck=: ;;
6809 --version | --vers* | -V )
6810 echo "$ac_cs_version"; exit 0 ;;
6811 --he | --h)
6812 # Conflict between --help and --header
6813 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6814 Try \`$0 --help' for more information." >&5
6815 echo "$as_me: error: ambiguous option: $1
6816 Try \`$0 --help' for more information." >&2;}
6817 { (exit 1); exit 1; }; };;
6818 --help | --hel | -h )
6819 echo "$ac_cs_usage"; exit 0 ;;
6820 --debug | --d* | -d )
6821 debug=: ;;
6822 --file | --fil | --fi | --f )
6823 $ac_shift
6824 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6825 ac_need_defaults=false;;
6826 --header | --heade | --head | --hea )
6827 $ac_shift
6828 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6829 ac_need_defaults=false;;
6830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6831 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6832 ac_cs_silent=: ;;
6834 # This is an error.
6835 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6836 Try \`$0 --help' for more information." >&5
6837 echo "$as_me: error: unrecognized option: $1
6838 Try \`$0 --help' for more information." >&2;}
6839 { (exit 1); exit 1; }; } ;;
6841 *) ac_config_targets="$ac_config_targets $1" ;;
6843 esac
6844 shift
6845 done
6847 ac_configure_extra_args=
6849 if $ac_cs_silent; then
6850 exec 6>/dev/null
6851 ac_configure_extra_args="$ac_configure_extra_args --silent"
6854 _ACEOF
6855 cat >>$CONFIG_STATUS <<_ACEOF
6856 if \$ac_cs_recheck; then
6857 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6858 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6861 _ACEOF
6867 cat >>$CONFIG_STATUS <<\_ACEOF
6868 for ac_config_target in $ac_config_targets
6870 case "$ac_config_target" in
6871 # Handling of arguments.
6872 "opal_inc.mak" ) CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
6873 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6874 "opal.pc" ) CONFIG_FILES="$CONFIG_FILES opal.pc" ;;
6875 "opal.spec" ) CONFIG_FILES="$CONFIG_FILES opal.spec" ;;
6876 "opal_cfg.dxy" ) CONFIG_FILES="$CONFIG_FILES opal_cfg.dxy" ;;
6877 "src/codec/speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES src/codec/speex/libspeex/speex_config_types.h" ;;
6878 "include/opal/buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
6879 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6880 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6881 { (exit 1); exit 1; }; };;
6882 esac
6883 done
6885 # If the user did not use the arguments to specify the items to instantiate,
6886 # then the envvar interface is used. Set only those that are not.
6887 # We use the long form for the default assignment because of an extremely
6888 # bizarre bug on SunOS 4.1.3.
6889 if $ac_need_defaults; then
6890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6894 # Have a temporary directory for convenience. Make it in the build tree
6895 # simply because there is no reason to put it here, and in addition,
6896 # creating and moving files from /tmp can sometimes cause problems.
6897 # Create a temporary directory, and hook for its removal unless debugging.
6898 $debug ||
6900 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6901 trap '{ (exit 1); exit 1; }' 1 2 13 15
6904 # Create a (secure) tmp directory for tmp files.
6907 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6908 test -n "$tmp" && test -d "$tmp"
6909 } ||
6911 tmp=./confstat$$-$RANDOM
6912 (umask 077 && mkdir $tmp)
6913 } ||
6915 echo "$me: cannot create a temporary directory in ." >&2
6916 { (exit 1); exit 1; }
6919 _ACEOF
6921 cat >>$CONFIG_STATUS <<_ACEOF
6924 # CONFIG_FILES section.
6927 # No need to generate the scripts if there are no CONFIG_FILES.
6928 # This happens for instance when ./config.status config.h
6929 if test -n "\$CONFIG_FILES"; then
6930 # Protect against being on the right side of a sed subst in config.status.
6931 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6932 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6933 s,@SHELL@,$SHELL,;t t
6934 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6935 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6936 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6937 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6938 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6939 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6940 s,@exec_prefix@,$exec_prefix,;t t
6941 s,@prefix@,$prefix,;t t
6942 s,@program_transform_name@,$program_transform_name,;t t
6943 s,@bindir@,$bindir,;t t
6944 s,@sbindir@,$sbindir,;t t
6945 s,@libexecdir@,$libexecdir,;t t
6946 s,@datadir@,$datadir,;t t
6947 s,@sysconfdir@,$sysconfdir,;t t
6948 s,@sharedstatedir@,$sharedstatedir,;t t
6949 s,@localstatedir@,$localstatedir,;t t
6950 s,@libdir@,$libdir,;t t
6951 s,@includedir@,$includedir,;t t
6952 s,@oldincludedir@,$oldincludedir,;t t
6953 s,@infodir@,$infodir,;t t
6954 s,@mandir@,$mandir,;t t
6955 s,@build_alias@,$build_alias,;t t
6956 s,@host_alias@,$host_alias,;t t
6957 s,@target_alias@,$target_alias,;t t
6958 s,@DEFS@,$DEFS,;t t
6959 s,@ECHO_C@,$ECHO_C,;t t
6960 s,@ECHO_N@,$ECHO_N,;t t
6961 s,@ECHO_T@,$ECHO_T,;t t
6962 s,@LIBS@,$LIBS,;t t
6963 s,@CC@,$CC,;t t
6964 s,@CFLAGS@,$CFLAGS,;t t
6965 s,@LDFLAGS@,$LDFLAGS,;t t
6966 s,@CPPFLAGS@,$CPPFLAGS,;t t
6967 s,@ac_ct_CC@,$ac_ct_CC,;t t
6968 s,@EXEEXT@,$EXEEXT,;t t
6969 s,@OBJEXT@,$OBJEXT,;t t
6970 s,@CXX@,$CXX,;t t
6971 s,@CXXFLAGS@,$CXXFLAGS,;t t
6972 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6973 s,@OPALDIR@,$OPALDIR,;t t
6974 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6975 s,@LIBDIR@,$LIBDIR,;t t
6976 s,@OPAL_VERSION@,$OPAL_VERSION,;t t
6977 s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
6978 s,@PWLIBDIR@,$PWLIBDIR,;t t
6979 s,@GCC_HAS_CLZ@,$GCC_HAS_CLZ,;t t
6980 s,@CPP@,$CPP,;t t
6981 s,@EGREP@,$EGREP,;t t
6982 s,@SIZE16@,$SIZE16,;t t
6983 s,@SIZE32@,$SIZE32,;t t
6984 s,@OPAL_SYSTEM_SPEEX@,$OPAL_SYSTEM_SPEEX,;t t
6985 s,@OPAL_HAVE_SPEEX_SPEEX_H@,$OPAL_HAVE_SPEEX_SPEEX_H,;t t
6986 s,@OPAL_AUDIO@,$OPAL_AUDIO,;t t
6987 s,@OPAL_VIDEO@,$OPAL_VIDEO,;t t
6988 s,@OPAL_SIP@,$OPAL_SIP,;t t
6989 s,@OPAL_H323@,$OPAL_H323,;t t
6990 s,@OPAL_IAX2@,$OPAL_IAX2,;t t
6991 s,@OPAL_H224@,$OPAL_H224,;t t
6992 s,@OPAL_T38FAX@,$OPAL_T38FAX,;t t
6993 s,@OPAL_H450@,$OPAL_H450,;t t
6994 s,@OPAL_H460@,$OPAL_H460,;t t
6995 s,@OPAL_LID@,$OPAL_LID,;t t
6996 s,@OPAL_IVR@,$OPAL_IVR,;t t
6997 s,@OPAL_RFC4175@,$OPAL_RFC4175,;t t
6998 s,@OPAL_ZRTP@,$OPAL_ZRTP,;t t
6999 s,@HAS_LIBZRTP@,$HAS_LIBZRTP,;t t
7000 s,@OPAL_SRTP@,$OPAL_SRTP,;t t
7001 s,@HAS_LIBSRTP@,$HAS_LIBSRTP,;t t
7002 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7003 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7004 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7005 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7006 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7007 s,@subdirs@,$subdirs,;t t
7008 s,@LIBOBJS@,$LIBOBJS,;t t
7009 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7010 CEOF
7012 _ACEOF
7014 cat >>$CONFIG_STATUS <<\_ACEOF
7015 # Split the substitutions into bite-sized pieces for seds with
7016 # small command number limits, like on Digital OSF/1 and HP-UX.
7017 ac_max_sed_lines=48
7018 ac_sed_frag=1 # Number of current file.
7019 ac_beg=1 # First line for current file.
7020 ac_end=$ac_max_sed_lines # Line after last line for current file.
7021 ac_more_lines=:
7022 ac_sed_cmds=
7023 while $ac_more_lines; do
7024 if test $ac_beg -gt 1; then
7025 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7026 else
7027 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7029 if test ! -s $tmp/subs.frag; then
7030 ac_more_lines=false
7031 else
7032 # The purpose of the label and of the branching condition is to
7033 # speed up the sed processing (if there are no `@' at all, there
7034 # is no need to browse any of the substitutions).
7035 # These are the two extra sed commands mentioned above.
7036 (echo ':t
7037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7038 if test -z "$ac_sed_cmds"; then
7039 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7040 else
7041 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7043 ac_sed_frag=`expr $ac_sed_frag + 1`
7044 ac_beg=$ac_end
7045 ac_end=`expr $ac_end + $ac_max_sed_lines`
7047 done
7048 if test -z "$ac_sed_cmds"; then
7049 ac_sed_cmds=cat
7051 fi # test -n "$CONFIG_FILES"
7053 _ACEOF
7054 cat >>$CONFIG_STATUS <<\_ACEOF
7055 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7056 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7057 case $ac_file in
7058 - | *:- | *:-:* ) # input from stdin
7059 cat >$tmp/stdin
7060 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7061 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7062 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7063 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7064 * ) ac_file_in=$ac_file.in ;;
7065 esac
7067 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7068 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7070 X"$ac_file" : 'X\(//\)[^/]' \| \
7071 X"$ac_file" : 'X\(//\)$' \| \
7072 X"$ac_file" : 'X\(/\)' \| \
7073 . : '\(.\)' 2>/dev/null ||
7074 echo X"$ac_file" |
7075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7077 /^X\(\/\/\)$/{ s//\1/; q; }
7078 /^X\(\/\).*/{ s//\1/; q; }
7079 s/.*/./; q'`
7080 { if $as_mkdir_p; then
7081 mkdir -p "$ac_dir"
7082 else
7083 as_dir="$ac_dir"
7084 as_dirs=
7085 while test ! -d "$as_dir"; do
7086 as_dirs="$as_dir $as_dirs"
7087 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7089 X"$as_dir" : 'X\(//\)[^/]' \| \
7090 X"$as_dir" : 'X\(//\)$' \| \
7091 X"$as_dir" : 'X\(/\)' \| \
7092 . : '\(.\)' 2>/dev/null ||
7093 echo X"$as_dir" |
7094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7096 /^X\(\/\/\)$/{ s//\1/; q; }
7097 /^X\(\/\).*/{ s//\1/; q; }
7098 s/.*/./; q'`
7099 done
7100 test ! -n "$as_dirs" || mkdir $as_dirs
7101 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7102 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7103 { (exit 1); exit 1; }; }; }
7105 ac_builddir=.
7107 if test "$ac_dir" != .; then
7108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7109 # A "../" for each directory in $ac_dir_suffix.
7110 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7111 else
7112 ac_dir_suffix= ac_top_builddir=
7115 case $srcdir in
7116 .) # No --srcdir option. We are building in place.
7117 ac_srcdir=.
7118 if test -z "$ac_top_builddir"; then
7119 ac_top_srcdir=.
7120 else
7121 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7122 fi ;;
7123 [\\/]* | ?:[\\/]* ) # Absolute path.
7124 ac_srcdir=$srcdir$ac_dir_suffix;
7125 ac_top_srcdir=$srcdir ;;
7126 *) # Relative path.
7127 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7128 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7129 esac
7131 # Do not use `cd foo && pwd` to compute absolute paths, because
7132 # the directories may not exist.
7133 case `pwd` in
7134 .) ac_abs_builddir="$ac_dir";;
7136 case "$ac_dir" in
7137 .) ac_abs_builddir=`pwd`;;
7138 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7139 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7140 esac;;
7141 esac
7142 case $ac_abs_builddir in
7143 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7145 case ${ac_top_builddir}. in
7146 .) ac_abs_top_builddir=$ac_abs_builddir;;
7147 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7148 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7149 esac;;
7150 esac
7151 case $ac_abs_builddir in
7152 .) ac_abs_srcdir=$ac_srcdir;;
7154 case $ac_srcdir in
7155 .) ac_abs_srcdir=$ac_abs_builddir;;
7156 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7157 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7158 esac;;
7159 esac
7160 case $ac_abs_builddir in
7161 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7163 case $ac_top_srcdir in
7164 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7165 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7166 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7167 esac;;
7168 esac
7171 case $INSTALL in
7172 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7173 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7174 esac
7176 if test x"$ac_file" != x-; then
7177 { echo "$as_me:$LINENO: creating $ac_file" >&5
7178 echo "$as_me: creating $ac_file" >&6;}
7179 rm -f "$ac_file"
7181 # Let's still pretend it is `configure' which instantiates (i.e., don't
7182 # use $as_me), people would be surprised to read:
7183 # /* config.h. Generated by config.status. */
7184 if test x"$ac_file" = x-; then
7185 configure_input=
7186 else
7187 configure_input="$ac_file. "
7189 configure_input=$configure_input"Generated from `echo $ac_file_in |
7190 sed 's,.*/,,'` by configure."
7192 # First look for the input files in the build tree, otherwise in the
7193 # src tree.
7194 ac_file_inputs=`IFS=:
7195 for f in $ac_file_in; do
7196 case $f in
7197 -) echo $tmp/stdin ;;
7198 [\\/$]*)
7199 # Absolute (can't be DOS-style, as IFS=:)
7200 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7201 echo "$as_me: error: cannot find input file: $f" >&2;}
7202 { (exit 1); exit 1; }; }
7203 echo "$f";;
7204 *) # Relative
7205 if test -f "$f"; then
7206 # Build tree
7207 echo "$f"
7208 elif test -f "$srcdir/$f"; then
7209 # Source tree
7210 echo "$srcdir/$f"
7211 else
7212 # /dev/null tree
7213 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7214 echo "$as_me: error: cannot find input file: $f" >&2;}
7215 { (exit 1); exit 1; }; }
7216 fi;;
7217 esac
7218 done` || { (exit 1); exit 1; }
7219 _ACEOF
7220 cat >>$CONFIG_STATUS <<_ACEOF
7221 sed "$ac_vpsub
7222 $extrasub
7223 _ACEOF
7224 cat >>$CONFIG_STATUS <<\_ACEOF
7226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7227 s,@configure_input@,$configure_input,;t t
7228 s,@srcdir@,$ac_srcdir,;t t
7229 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7230 s,@top_srcdir@,$ac_top_srcdir,;t t
7231 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7232 s,@builddir@,$ac_builddir,;t t
7233 s,@abs_builddir@,$ac_abs_builddir,;t t
7234 s,@top_builddir@,$ac_top_builddir,;t t
7235 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7236 s,@INSTALL@,$ac_INSTALL,;t t
7237 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7238 rm -f $tmp/stdin
7239 if test x"$ac_file" != x-; then
7240 mv $tmp/out $ac_file
7241 else
7242 cat $tmp/out
7243 rm -f $tmp/out
7246 done
7247 _ACEOF
7248 cat >>$CONFIG_STATUS <<\_ACEOF
7251 # CONFIG_HEADER section.
7254 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7255 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7257 # ac_d sets the value in "#define NAME VALUE" lines.
7258 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7259 ac_dB='[ ].*$,\1#\2'
7260 ac_dC=' '
7261 ac_dD=',;t'
7262 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7263 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7264 ac_uB='$,\1#\2define\3'
7265 ac_uC=' '
7266 ac_uD=',;t'
7268 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7270 case $ac_file in
7271 - | *:- | *:-:* ) # input from stdin
7272 cat >$tmp/stdin
7273 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7275 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7277 * ) ac_file_in=$ac_file.in ;;
7278 esac
7280 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7281 echo "$as_me: creating $ac_file" >&6;}
7283 # First look for the input files in the build tree, otherwise in the
7284 # src tree.
7285 ac_file_inputs=`IFS=:
7286 for f in $ac_file_in; do
7287 case $f in
7288 -) echo $tmp/stdin ;;
7289 [\\/$]*)
7290 # Absolute (can't be DOS-style, as IFS=:)
7291 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7292 echo "$as_me: error: cannot find input file: $f" >&2;}
7293 { (exit 1); exit 1; }; }
7294 # Do quote $f, to prevent DOS paths from being IFS'd.
7295 echo "$f";;
7296 *) # Relative
7297 if test -f "$f"; then
7298 # Build tree
7299 echo "$f"
7300 elif test -f "$srcdir/$f"; then
7301 # Source tree
7302 echo "$srcdir/$f"
7303 else
7304 # /dev/null tree
7305 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7306 echo "$as_me: error: cannot find input file: $f" >&2;}
7307 { (exit 1); exit 1; }; }
7308 fi;;
7309 esac
7310 done` || { (exit 1); exit 1; }
7311 # Remove the trailing spaces.
7312 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7314 _ACEOF
7316 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7317 # `conftest.undefs', that substitutes the proper values into
7318 # config.h.in to produce config.h. The first handles `#define'
7319 # templates, and the second `#undef' templates.
7320 # And first: Protect against being on the right side of a sed subst in
7321 # config.status. Protect against being in an unquoted here document
7322 # in config.status.
7323 rm -f conftest.defines conftest.undefs
7324 # Using a here document instead of a string reduces the quoting nightmare.
7325 # Putting comments in sed scripts is not portable.
7327 # `end' is used to avoid that the second main sed command (meant for
7328 # 0-ary CPP macros) applies to n-ary macro definitions.
7329 # See the Autoconf documentation for `clear'.
7330 cat >confdef2sed.sed <<\_ACEOF
7331 s/[\\&,]/\\&/g
7332 s,[\\$`],\\&,g
7333 t clear
7334 : clear
7335 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7336 t end
7337 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7338 : end
7339 _ACEOF
7340 # If some macros were called several times there might be several times
7341 # the same #defines, which is useless. Nevertheless, we may not want to
7342 # sort them, since we want the *last* AC-DEFINE to be honored.
7343 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7344 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7345 rm -f confdef2sed.sed
7347 # This sed command replaces #undef with comments. This is necessary, for
7348 # example, in the case of _POSIX_SOURCE, which is predefined and required
7349 # on some systems where configure will not decide to define it.
7350 cat >>conftest.undefs <<\_ACEOF
7351 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7352 _ACEOF
7354 # Break up conftest.defines because some shells have a limit on the size
7355 # of here documents, and old seds have small limits too (100 cmds).
7356 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7357 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7358 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7359 echo ' :' >>$CONFIG_STATUS
7360 rm -f conftest.tail
7361 while grep . conftest.defines >/dev/null
7363 # Write a limited-size here document to $tmp/defines.sed.
7364 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7365 # Speed up: don't consider the non `#define' lines.
7366 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7367 # Work around the forget-to-reset-the-flag bug.
7368 echo 't clr' >>$CONFIG_STATUS
7369 echo ': clr' >>$CONFIG_STATUS
7370 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7371 echo 'CEOF
7372 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7373 rm -f $tmp/in
7374 mv $tmp/out $tmp/in
7375 ' >>$CONFIG_STATUS
7376 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7377 rm -f conftest.defines
7378 mv conftest.tail conftest.defines
7379 done
7380 rm -f conftest.defines
7381 echo ' fi # grep' >>$CONFIG_STATUS
7382 echo >>$CONFIG_STATUS
7384 # Break up conftest.undefs because some shells have a limit on the size
7385 # of here documents, and old seds have small limits too (100 cmds).
7386 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7387 rm -f conftest.tail
7388 while grep . conftest.undefs >/dev/null
7390 # Write a limited-size here document to $tmp/undefs.sed.
7391 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7392 # Speed up: don't consider the non `#undef'
7393 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7394 # Work around the forget-to-reset-the-flag bug.
7395 echo 't clr' >>$CONFIG_STATUS
7396 echo ': clr' >>$CONFIG_STATUS
7397 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7398 echo 'CEOF
7399 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7400 rm -f $tmp/in
7401 mv $tmp/out $tmp/in
7402 ' >>$CONFIG_STATUS
7403 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7404 rm -f conftest.undefs
7405 mv conftest.tail conftest.undefs
7406 done
7407 rm -f conftest.undefs
7409 cat >>$CONFIG_STATUS <<\_ACEOF
7410 # Let's still pretend it is `configure' which instantiates (i.e., don't
7411 # use $as_me), people would be surprised to read:
7412 # /* config.h. Generated by config.status. */
7413 if test x"$ac_file" = x-; then
7414 echo "/* Generated by configure. */" >$tmp/config.h
7415 else
7416 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7418 cat $tmp/in >>$tmp/config.h
7419 rm -f $tmp/in
7420 if test x"$ac_file" != x-; then
7421 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7422 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7423 echo "$as_me: $ac_file is unchanged" >&6;}
7424 else
7425 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7426 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7427 X"$ac_file" : 'X\(//\)[^/]' \| \
7428 X"$ac_file" : 'X\(//\)$' \| \
7429 X"$ac_file" : 'X\(/\)' \| \
7430 . : '\(.\)' 2>/dev/null ||
7431 echo X"$ac_file" |
7432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7434 /^X\(\/\/\)$/{ s//\1/; q; }
7435 /^X\(\/\).*/{ s//\1/; q; }
7436 s/.*/./; q'`
7437 { if $as_mkdir_p; then
7438 mkdir -p "$ac_dir"
7439 else
7440 as_dir="$ac_dir"
7441 as_dirs=
7442 while test ! -d "$as_dir"; do
7443 as_dirs="$as_dir $as_dirs"
7444 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7446 X"$as_dir" : 'X\(//\)[^/]' \| \
7447 X"$as_dir" : 'X\(//\)$' \| \
7448 X"$as_dir" : 'X\(/\)' \| \
7449 . : '\(.\)' 2>/dev/null ||
7450 echo X"$as_dir" |
7451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7453 /^X\(\/\/\)$/{ s//\1/; q; }
7454 /^X\(\/\).*/{ s//\1/; q; }
7455 s/.*/./; q'`
7456 done
7457 test ! -n "$as_dirs" || mkdir $as_dirs
7458 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7459 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7460 { (exit 1); exit 1; }; }; }
7462 rm -f $ac_file
7463 mv $tmp/config.h $ac_file
7465 else
7466 cat $tmp/config.h
7467 rm -f $tmp/config.h
7469 done
7470 _ACEOF
7472 cat >>$CONFIG_STATUS <<\_ACEOF
7474 { (exit 0); exit 0; }
7475 _ACEOF
7476 chmod +x $CONFIG_STATUS
7477 ac_clean_files=$ac_clean_files_save
7480 # configure is writing to config.log, and then calls config.status.
7481 # config.status does its own redirection, appending to config.log.
7482 # Unfortunately, on DOS this fails, as config.log is still kept open
7483 # by configure, so config.status won't be able to write to it; its
7484 # output is simply discarded. So we exec the FD to /dev/null,
7485 # effectively closing config.log, so it can be properly (re)opened and
7486 # appended to by config.status. When coming back to configure, we
7487 # need to make the FD available again.
7488 if test "$no_create" != yes; then
7489 ac_cs_success=:
7490 ac_config_status_args=
7491 test "$silent" = yes &&
7492 ac_config_status_args="$ac_config_status_args --quiet"
7493 exec 5>/dev/null
7494 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7495 exec 5>>config.log
7496 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7497 # would make configure fail if this is the last instruction.
7498 $ac_cs_success || { (exit 1); exit 1; }
7502 # CONFIG_SUBDIRS section.
7504 if test "$no_recursion" != yes; then
7506 # Remove --cache-file and --srcdir arguments so they do not pile up.
7507 ac_sub_configure_args=
7508 ac_prev=
7509 for ac_arg in $ac_configure_args; do
7510 if test -n "$ac_prev"; then
7511 ac_prev=
7512 continue
7514 case $ac_arg in
7515 -cache-file | --cache-file | --cache-fil | --cache-fi \
7516 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7517 ac_prev=cache_file ;;
7518 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7519 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7520 | --c=*)
7522 --config-cache | -C)
7524 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7525 ac_prev=srcdir ;;
7526 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7528 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7529 ac_prev=prefix ;;
7530 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7532 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7533 esac
7534 done
7536 # Always prepend --prefix to ensure using the same prefix
7537 # in subdir configurations.
7538 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7540 ac_popdir=`pwd`
7541 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7543 # Do not complain, so a configure script can configure whichever
7544 # parts of a large source tree are present.
7545 test -d $srcdir/$ac_dir || continue
7547 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7548 echo "$as_me: configuring in $ac_dir" >&6;}
7549 { if $as_mkdir_p; then
7550 mkdir -p "$ac_dir"
7551 else
7552 as_dir="$ac_dir"
7553 as_dirs=
7554 while test ! -d "$as_dir"; do
7555 as_dirs="$as_dir $as_dirs"
7556 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7558 X"$as_dir" : 'X\(//\)[^/]' \| \
7559 X"$as_dir" : 'X\(//\)$' \| \
7560 X"$as_dir" : 'X\(/\)' \| \
7561 . : '\(.\)' 2>/dev/null ||
7562 echo X"$as_dir" |
7563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7565 /^X\(\/\/\)$/{ s//\1/; q; }
7566 /^X\(\/\).*/{ s//\1/; q; }
7567 s/.*/./; q'`
7568 done
7569 test ! -n "$as_dirs" || mkdir $as_dirs
7570 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7571 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7572 { (exit 1); exit 1; }; }; }
7574 ac_builddir=.
7576 if test "$ac_dir" != .; then
7577 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7578 # A "../" for each directory in $ac_dir_suffix.
7579 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7580 else
7581 ac_dir_suffix= ac_top_builddir=
7584 case $srcdir in
7585 .) # No --srcdir option. We are building in place.
7586 ac_srcdir=.
7587 if test -z "$ac_top_builddir"; then
7588 ac_top_srcdir=.
7589 else
7590 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7591 fi ;;
7592 [\\/]* | ?:[\\/]* ) # Absolute path.
7593 ac_srcdir=$srcdir$ac_dir_suffix;
7594 ac_top_srcdir=$srcdir ;;
7595 *) # Relative path.
7596 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7597 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7598 esac
7600 # Do not use `cd foo && pwd` to compute absolute paths, because
7601 # the directories may not exist.
7602 case `pwd` in
7603 .) ac_abs_builddir="$ac_dir";;
7605 case "$ac_dir" in
7606 .) ac_abs_builddir=`pwd`;;
7607 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7608 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7609 esac;;
7610 esac
7611 case $ac_abs_builddir in
7612 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7614 case ${ac_top_builddir}. in
7615 .) ac_abs_top_builddir=$ac_abs_builddir;;
7616 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7617 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7618 esac;;
7619 esac
7620 case $ac_abs_builddir in
7621 .) ac_abs_srcdir=$ac_srcdir;;
7623 case $ac_srcdir in
7624 .) ac_abs_srcdir=$ac_abs_builddir;;
7625 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7626 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7627 esac;;
7628 esac
7629 case $ac_abs_builddir in
7630 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7632 case $ac_top_srcdir in
7633 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7634 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7635 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7636 esac;;
7637 esac
7640 cd $ac_dir
7642 # Check for guested configure; otherwise get Cygnus style configure.
7643 if test -f $ac_srcdir/configure.gnu; then
7644 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7645 elif test -f $ac_srcdir/configure; then
7646 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7647 elif test -f $ac_srcdir/configure.in; then
7648 ac_sub_configure=$ac_configure
7649 else
7650 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7651 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7652 ac_sub_configure=
7655 # The recursion is here.
7656 if test -n "$ac_sub_configure"; then
7657 # Make the cache file name correct relative to the subdirectory.
7658 case $cache_file in
7659 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7660 *) # Relative path.
7661 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7662 esac
7664 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7665 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7666 # The eval makes quoting arguments work.
7667 eval $ac_sub_configure $ac_sub_configure_args \
7668 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7669 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7670 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7671 { (exit 1); exit 1; }; }
7674 cd $ac_popdir
7675 done