Print received SIP PDU as early as possible, in case of crash.
[opal/cbnco.git] / configure
blob07503ff7324d9ccf1ee1e6f67a63b99dfa5d6871
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_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
866 Some influential environment variables:
867 CC C compiler command
868 CFLAGS C compiler flags
869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870 nonstandard directory <lib dir>
871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872 headers in a nonstandard directory <include dir>
873 CXX C++ compiler command
874 CXXFLAGS C++ compiler flags
875 CPP C preprocessor
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
880 _ACEOF
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895 ac_dir_suffix= ac_top_builddir=
898 case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951 esac
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 cd $ac_popdir
969 done
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974 cat <<\_ACEOF
976 Copyright (C) 2003 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
979 _ACEOF
980 exit 0
982 exec 5>config.log
983 cat >&5 <<_ACEOF
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.59. Invocation command line was
990 $ $0 $@
992 _ACEOF
994 cat <<_ASUNAME
995 ## --------- ##
996 ## Platform. ##
997 ## --------- ##
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016 _ASUNAME
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 for as_dir in $PATH
1021 IFS=$as_save_IFS
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1024 done
1026 } >&5
1028 cat >&5 <<_ACEOF
1031 ## ----------- ##
1032 ## Core tests. ##
1033 ## ----------- ##
1035 _ACEOF
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1043 ac_configure_args=
1044 ac_configure_args0=
1045 ac_configure_args1=
1046 ac_sep=
1047 ac_must_keep_next=false
1048 for ac_pass in 1 2
1050 for ac_arg
1052 case $ac_arg in
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 continue ;;
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 esac
1060 case $ac_pass in
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
1065 ac_must_keep_next=false # Got value, back to normal.
1066 else
1067 case $ac_arg in
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 esac
1076 -* ) ac_must_keep_next=true ;;
1077 esac
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1081 ac_sep=" "
1083 esac
1084 done
1085 done
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log. We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1097 echo
1099 cat <<\_ASBOX
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1103 _ASBOX
1104 echo
1105 # The following way of writing the cache mishandles newlines in values,
1107 (set) 2>&1 |
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 *ac_space=\ *)
1110 sed -n \
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 sed -n \
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 esac;
1120 echo
1122 cat <<\_ASBOX
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1126 _ASBOX
1127 echo
1128 for ac_var in $ac_subst_vars
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1135 if test -n "$ac_subst_files"; then
1136 cat <<\_ASBOX
1137 ## ------------- ##
1138 ## Output files. ##
1139 ## ------------- ##
1140 _ASBOX
1141 echo
1142 for ac_var in $ac_subst_files
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1150 if test -s confdefs.h; then
1151 cat <<\_ASBOX
1152 ## ----------- ##
1153 ## confdefs.h. ##
1154 ## ----------- ##
1155 _ASBOX
1156 echo
1157 sed "/^$/d" confdefs.h | sort
1158 echo
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1163 } >&5
1164 rm -f core *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 exit $exit_status
1168 for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 done
1171 ac_signal=0
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 echo >confdefs.h
1178 # Predefined preprocessor variables.
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 _ACEOF
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 else
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1219 . "$ac_site_file"
1221 done
1223 if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1229 case $cache_file in
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1232 esac
1234 else
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1237 >$cache_file
1240 # Check that the precious variables saved in the cache have kept the same
1241 # value.
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1250 set,)
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1254 ,set)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,);;
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1264 echo "$as_me: former value: $ac_old_val" >&2;}
1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1266 echo "$as_me: current value: $ac_new_val" >&2;}
1267 ac_cache_corrupted=:
1268 fi;;
1269 esac
1270 # Pass precious variables to config.status.
1271 if test "$ac_new_set" = set; then
1272 case $ac_new_val in
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 *) ac_arg=$ac_var=$ac_new_val ;;
1276 esac
1277 case " $ac_configure_args " in
1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1279 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280 esac
1282 done
1283 if $ac_cache_corrupted; then
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1291 ac_ext=c
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316 ac_ext=c
1317 ac_cpp='$CPP $CPPFLAGS'
1318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321 if test -n "$ac_tool_prefix"; then
1322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1324 echo "$as_me:$LINENO: checking for $ac_word" >&5
1325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326 if test "${ac_cv_prog_CC+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 else
1329 if test -n "$CC"; then
1330 ac_cv_prog_CC="$CC" # Let the user override the test.
1331 else
1332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333 for as_dir in $PATH
1335 IFS=$as_save_IFS
1336 test -z "$as_dir" && as_dir=.
1337 for ac_exec_ext in '' $ac_executable_extensions; do
1338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341 break 2
1343 done
1344 done
1348 CC=$ac_cv_prog_CC
1349 if test -n "$CC"; then
1350 echo "$as_me:$LINENO: result: $CC" >&5
1351 echo "${ECHO_T}$CC" >&6
1352 else
1353 echo "$as_me:$LINENO: result: no" >&5
1354 echo "${ECHO_T}no" >&6
1358 if test -z "$ac_cv_prog_CC"; then
1359 ac_ct_CC=$CC
1360 # Extract the first word of "gcc", so it can be a program name with args.
1361 set dummy gcc; ac_word=$2
1362 echo "$as_me:$LINENO: checking for $ac_word" >&5
1363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367 if test -n "$ac_ct_CC"; then
1368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1369 else
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1373 IFS=$as_save_IFS
1374 test -z "$as_dir" && as_dir=.
1375 for ac_exec_ext in '' $ac_executable_extensions; do
1376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1377 ac_cv_prog_ac_ct_CC="gcc"
1378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1379 break 2
1381 done
1382 done
1386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1387 if test -n "$ac_ct_CC"; then
1388 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1389 echo "${ECHO_T}$ac_ct_CC" >&6
1390 else
1391 echo "$as_me:$LINENO: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1395 CC=$ac_ct_CC
1396 else
1397 CC="$ac_cv_prog_CC"
1400 if test -z "$CC"; then
1401 if test -n "$ac_tool_prefix"; then
1402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1403 set dummy ${ac_tool_prefix}cc; ac_word=$2
1404 echo "$as_me:$LINENO: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 if test -n "$CC"; then
1410 ac_cv_prog_CC="$CC" # Let the user override the test.
1411 else
1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 for as_dir in $PATH
1415 IFS=$as_save_IFS
1416 test -z "$as_dir" && as_dir=.
1417 for ac_exec_ext in '' $ac_executable_extensions; do
1418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419 ac_cv_prog_CC="${ac_tool_prefix}cc"
1420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421 break 2
1423 done
1424 done
1428 CC=$ac_cv_prog_CC
1429 if test -n "$CC"; then
1430 echo "$as_me:$LINENO: result: $CC" >&5
1431 echo "${ECHO_T}$CC" >&6
1432 else
1433 echo "$as_me:$LINENO: result: no" >&5
1434 echo "${ECHO_T}no" >&6
1438 if test -z "$ac_cv_prog_CC"; then
1439 ac_ct_CC=$CC
1440 # Extract the first word of "cc", so it can be a program name with args.
1441 set dummy cc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 if test -n "$ac_ct_CC"; then
1448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_ac_ct_CC="cc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1461 done
1462 done
1466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1467 if test -n "$ac_ct_CC"; then
1468 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1469 echo "${ECHO_T}$ac_ct_CC" >&6
1470 else
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1475 CC=$ac_ct_CC
1476 else
1477 CC="$ac_cv_prog_CC"
1481 if test -z "$CC"; then
1482 # Extract the first word of "cc", so it can be a program name with args.
1483 set dummy cc; ac_word=$2
1484 echo "$as_me:$LINENO: checking for $ac_word" >&5
1485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486 if test "${ac_cv_prog_CC+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489 if test -n "$CC"; then
1490 ac_cv_prog_CC="$CC" # Let the user override the test.
1491 else
1492 ac_prog_rejected=no
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1501 ac_prog_rejected=yes
1502 continue
1504 ac_cv_prog_CC="cc"
1505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 break 2
1508 done
1509 done
1511 if test $ac_prog_rejected = yes; then
1512 # We found a bogon in the path, so make sure we never use it.
1513 set dummy $ac_cv_prog_CC
1514 shift
1515 if test $# != 0; then
1516 # We chose a different compiler from the bogus one.
1517 # However, it has the same basename, so the bogon will be chosen
1518 # first if we set CC to just the basename; use the full file name.
1519 shift
1520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1525 CC=$ac_cv_prog_CC
1526 if test -n "$CC"; then
1527 echo "$as_me:$LINENO: result: $CC" >&5
1528 echo "${ECHO_T}$CC" >&6
1529 else
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1535 if test -z "$CC"; then
1536 if test -n "$ac_tool_prefix"; then
1537 for ac_prog in cl
1539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_CC+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1548 else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 break 2
1560 done
1561 done
1565 CC=$ac_cv_prog_CC
1566 if test -n "$CC"; then
1567 echo "$as_me:$LINENO: result: $CC" >&5
1568 echo "${ECHO_T}$CC" >&6
1569 else
1570 echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1574 test -n "$CC" && break
1575 done
1577 if test -z "$CC"; then
1578 ac_ct_CC=$CC
1579 for ac_prog in cl
1581 # Extract the first word of "$ac_prog", so it can be a program name with args.
1582 set dummy $ac_prog; ac_word=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588 if test -n "$ac_ct_CC"; then
1589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1590 else
1591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 for as_dir in $PATH
1594 IFS=$as_save_IFS
1595 test -z "$as_dir" && as_dir=.
1596 for ac_exec_ext in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_ac_ct_CC="$ac_prog"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600 break 2
1602 done
1603 done
1607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1608 if test -n "$ac_ct_CC"; then
1609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610 echo "${ECHO_T}$ac_ct_CC" >&6
1611 else
1612 echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1616 test -n "$ac_ct_CC" && break
1617 done
1619 CC=$ac_ct_CC
1625 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1626 See \`config.log' for more details." >&5
1627 echo "$as_me: error: no acceptable C compiler found in \$PATH
1628 See \`config.log' for more details." >&2;}
1629 { (exit 1); exit 1; }; }
1631 # Provide some information about the compiler.
1632 echo "$as_me:$LINENO:" \
1633 "checking for C compiler version" >&5
1634 ac_compiler=`set X $ac_compile; echo $2`
1635 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1636 (eval $ac_compiler --version </dev/null >&5) 2>&5
1637 ac_status=$?
1638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1639 (exit $ac_status); }
1640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1641 (eval $ac_compiler -v </dev/null >&5) 2>&5
1642 ac_status=$?
1643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1644 (exit $ac_status); }
1645 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1646 (eval $ac_compiler -V </dev/null >&5) 2>&5
1647 ac_status=$?
1648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1649 (exit $ac_status); }
1651 cat >conftest.$ac_ext <<_ACEOF
1652 /* confdefs.h. */
1653 _ACEOF
1654 cat confdefs.h >>conftest.$ac_ext
1655 cat >>conftest.$ac_ext <<_ACEOF
1656 /* end confdefs.h. */
1659 main ()
1663 return 0;
1665 _ACEOF
1666 ac_clean_files_save=$ac_clean_files
1667 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1668 # Try to create an executable without -o first, disregard a.out.
1669 # It will help us diagnose broken compilers, and finding out an intuition
1670 # of exeext.
1671 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1672 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1673 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1674 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1675 (eval $ac_link_default) 2>&5
1676 ac_status=$?
1677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1678 (exit $ac_status); }; then
1679 # Find the output, starting from the most likely. This scheme is
1680 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1681 # resort.
1683 # Be careful to initialize this variable, since it used to be cached.
1684 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1685 ac_cv_exeext=
1686 # b.out is created by i960 compilers.
1687 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1689 test -f "$ac_file" || continue
1690 case $ac_file in
1691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1693 conftest.$ac_ext )
1694 # This is the source file.
1696 [ab].out )
1697 # We found the default executable, but exeext='' is most
1698 # certainly right.
1699 break;;
1700 *.* )
1701 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1702 # FIXME: I believe we export ac_cv_exeext for Libtool,
1703 # but it would be cool to find out if it's true. Does anybody
1704 # maintain Libtool? --akim.
1705 export ac_cv_exeext
1706 break;;
1708 break;;
1709 esac
1710 done
1711 else
1712 echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1715 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1716 See \`config.log' for more details." >&5
1717 echo "$as_me: error: C compiler cannot create executables
1718 See \`config.log' for more details." >&2;}
1719 { (exit 77); exit 77; }; }
1722 ac_exeext=$ac_cv_exeext
1723 echo "$as_me:$LINENO: result: $ac_file" >&5
1724 echo "${ECHO_T}$ac_file" >&6
1726 # Check the compiler produces executables we can run. If not, either
1727 # the compiler is broken, or we cross compile.
1728 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1729 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1730 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1731 # If not cross compiling, check that we can run a simple program.
1732 if test "$cross_compiling" != yes; then
1733 if { ac_try='./$ac_file'
1734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1735 (eval $ac_try) 2>&5
1736 ac_status=$?
1737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738 (exit $ac_status); }; }; then
1739 cross_compiling=no
1740 else
1741 if test "$cross_compiling" = maybe; then
1742 cross_compiling=yes
1743 else
1744 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1745 If you meant to cross compile, use \`--host'.
1746 See \`config.log' for more details." >&5
1747 echo "$as_me: error: cannot run C compiled programs.
1748 If you meant to cross compile, use \`--host'.
1749 See \`config.log' for more details." >&2;}
1750 { (exit 1); exit 1; }; }
1754 echo "$as_me:$LINENO: result: yes" >&5
1755 echo "${ECHO_T}yes" >&6
1757 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1758 ac_clean_files=$ac_clean_files_save
1759 # Check the compiler produces executables we can run. If not, either
1760 # the compiler is broken, or we cross compile.
1761 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1762 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1763 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1764 echo "${ECHO_T}$cross_compiling" >&6
1766 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1767 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1769 (eval $ac_link) 2>&5
1770 ac_status=$?
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); }; then
1773 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1774 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1775 # work properly (i.e., refer to `conftest.exe'), while it won't with
1776 # `rm'.
1777 for ac_file in conftest.exe conftest conftest.*; do
1778 test -f "$ac_file" || continue
1779 case $ac_file in
1780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1781 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 export ac_cv_exeext
1783 break;;
1784 * ) break;;
1785 esac
1786 done
1787 else
1788 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1789 See \`config.log' for more details." >&5
1790 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1791 See \`config.log' for more details." >&2;}
1792 { (exit 1); exit 1; }; }
1795 rm -f conftest$ac_cv_exeext
1796 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1797 echo "${ECHO_T}$ac_cv_exeext" >&6
1799 rm -f conftest.$ac_ext
1800 EXEEXT=$ac_cv_exeext
1801 ac_exeext=$EXEEXT
1802 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1803 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1804 if test "${ac_cv_objext+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807 cat >conftest.$ac_ext <<_ACEOF
1808 /* confdefs.h. */
1809 _ACEOF
1810 cat confdefs.h >>conftest.$ac_ext
1811 cat >>conftest.$ac_ext <<_ACEOF
1812 /* end confdefs.h. */
1815 main ()
1819 return 0;
1821 _ACEOF
1822 rm -f conftest.o conftest.obj
1823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1824 (eval $ac_compile) 2>&5
1825 ac_status=$?
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }; then
1828 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1829 case $ac_file in
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1831 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1832 break;;
1833 esac
1834 done
1835 else
1836 echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1840 See \`config.log' for more details." >&5
1841 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1842 See \`config.log' for more details." >&2;}
1843 { (exit 1); exit 1; }; }
1846 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1848 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1849 echo "${ECHO_T}$ac_cv_objext" >&6
1850 OBJEXT=$ac_cv_objext
1851 ac_objext=$OBJEXT
1852 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1853 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1854 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 cat >conftest.$ac_ext <<_ACEOF
1858 /* confdefs.h. */
1859 _ACEOF
1860 cat confdefs.h >>conftest.$ac_ext
1861 cat >>conftest.$ac_ext <<_ACEOF
1862 /* end confdefs.h. */
1865 main ()
1867 #ifndef __GNUC__
1868 choke me
1869 #endif
1872 return 0;
1874 _ACEOF
1875 rm -f conftest.$ac_objext
1876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877 (eval $ac_compile) 2>conftest.er1
1878 ac_status=$?
1879 grep -v '^ *+' conftest.er1 >conftest.err
1880 rm -f conftest.er1
1881 cat conftest.err >&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); } &&
1884 { ac_try='test -z "$ac_c_werror_flag"
1885 || test ! -s conftest.err'
1886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1887 (eval $ac_try) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; } &&
1891 { ac_try='test -s conftest.$ac_objext'
1892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893 (eval $ac_try) 2>&5
1894 ac_status=$?
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; }; then
1897 ac_compiler_gnu=yes
1898 else
1899 echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_compiler_gnu=no
1904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1908 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1909 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1910 GCC=`test $ac_compiler_gnu = yes && echo yes`
1911 ac_test_CFLAGS=${CFLAGS+set}
1912 ac_save_CFLAGS=$CFLAGS
1913 CFLAGS="-g"
1914 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1915 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1916 if test "${ac_cv_prog_cc_g+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 cat >conftest.$ac_ext <<_ACEOF
1920 /* confdefs.h. */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1927 main ()
1931 return 0;
1933 _ACEOF
1934 rm -f conftest.$ac_objext
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>conftest.er1
1937 ac_status=$?
1938 grep -v '^ *+' conftest.er1 >conftest.err
1939 rm -f conftest.er1
1940 cat conftest.err >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); } &&
1943 { ac_try='test -z "$ac_c_werror_flag"
1944 || test ! -s conftest.err'
1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 (eval $ac_try) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; } &&
1950 { ac_try='test -s conftest.$ac_objext'
1951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1952 (eval $ac_try) 2>&5
1953 ac_status=$?
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; }; then
1956 ac_cv_prog_cc_g=yes
1957 else
1958 echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.$ac_ext >&5
1961 ac_cv_prog_cc_g=no
1963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1965 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1966 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1967 if test "$ac_test_CFLAGS" = set; then
1968 CFLAGS=$ac_save_CFLAGS
1969 elif test $ac_cv_prog_cc_g = yes; then
1970 if test "$GCC" = yes; then
1971 CFLAGS="-g -O2"
1972 else
1973 CFLAGS="-g"
1975 else
1976 if test "$GCC" = yes; then
1977 CFLAGS="-O2"
1978 else
1979 CFLAGS=
1982 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1983 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1984 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 ac_cv_prog_cc_stdc=no
1988 ac_save_CC=$CC
1989 cat >conftest.$ac_ext <<_ACEOF
1990 /* confdefs.h. */
1991 _ACEOF
1992 cat confdefs.h >>conftest.$ac_ext
1993 cat >>conftest.$ac_ext <<_ACEOF
1994 /* end confdefs.h. */
1995 #include <stdarg.h>
1996 #include <stdio.h>
1997 #include <sys/types.h>
1998 #include <sys/stat.h>
1999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2000 struct buf { int x; };
2001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2002 static char *e (p, i)
2003 char **p;
2004 int i;
2006 return p[i];
2008 static char *f (char * (*g) (char **, int), char **p, ...)
2010 char *s;
2011 va_list v;
2012 va_start (v,p);
2013 s = g (p, va_arg (v,int));
2014 va_end (v);
2015 return s;
2018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2019 function prototypes and stuff, but not '\xHH' hex character constants.
2020 These don't provoke an error unfortunately, instead are silently treated
2021 as 'x'. The following induces an error, until -std1 is added to get
2022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2023 array size at least. It's necessary to write '\x00'==0 to get something
2024 that's true only with -std1. */
2025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2027 int test (int i, double x);
2028 struct s1 {int (*f) (int a);};
2029 struct s2 {int (*f) (double a);};
2030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2031 int argc;
2032 char **argv;
2034 main ()
2036 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2038 return 0;
2040 _ACEOF
2041 # Don't try gcc -ansi; that turns off useful extensions and
2042 # breaks some systems' header files.
2043 # AIX -qlanglvl=ansi
2044 # Ultrix and OSF/1 -std1
2045 # HP-UX 10.20 and later -Ae
2046 # HP-UX older versions -Aa -D_HPUX_SOURCE
2047 # SVR4 -Xc -D__EXTENSIONS__
2048 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2050 CC="$ac_save_CC $ac_arg"
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -z "$ac_c_werror_flag"
2061 || test ! -s conftest.err'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2073 ac_cv_prog_cc_stdc=$ac_arg
2074 break
2075 else
2076 echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2080 rm -f conftest.err conftest.$ac_objext
2081 done
2082 rm -f conftest.$ac_ext conftest.$ac_objext
2083 CC=$ac_save_CC
2087 case "x$ac_cv_prog_cc_stdc" in
2088 x|xno)
2089 echo "$as_me:$LINENO: result: none needed" >&5
2090 echo "${ECHO_T}none needed" >&6 ;;
2092 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2093 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2094 CC="$CC $ac_cv_prog_cc_stdc" ;;
2095 esac
2097 # Some people use a C++ compiler to compile C. Since we use `exit',
2098 # in C++ we need to declare it. In case someone uses the same compiler
2099 # for both compiling C and C++ we need to have the C++ compiler decide
2100 # the declaration of exit, since it's the most demanding environment.
2101 cat >conftest.$ac_ext <<_ACEOF
2102 #ifndef __cplusplus
2103 choke me
2104 #endif
2105 _ACEOF
2106 rm -f conftest.$ac_objext
2107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2108 (eval $ac_compile) 2>conftest.er1
2109 ac_status=$?
2110 grep -v '^ *+' conftest.er1 >conftest.err
2111 rm -f conftest.er1
2112 cat conftest.err >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); } &&
2115 { ac_try='test -z "$ac_c_werror_flag"
2116 || test ! -s conftest.err'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 (eval $ac_try) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; } &&
2122 { ac_try='test -s conftest.$ac_objext'
2123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124 (eval $ac_try) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; }; then
2128 for ac_declaration in \
2129 '' \
2130 'extern "C" void std::exit (int) throw (); using std::exit;' \
2131 'extern "C" void std::exit (int); using std::exit;' \
2132 'extern "C" void exit (int) throw ();' \
2133 'extern "C" void exit (int);' \
2134 'void exit (int);'
2136 cat >conftest.$ac_ext <<_ACEOF
2137 /* confdefs.h. */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2142 $ac_declaration
2143 #include <stdlib.h>
2145 main ()
2147 exit (42);
2149 return 0;
2151 _ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2155 ac_status=$?
2156 grep -v '^ *+' conftest.er1 >conftest.err
2157 rm -f conftest.er1
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 (eval $ac_try) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2175 else
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2179 continue
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 cat >conftest.$ac_ext <<_ACEOF
2183 /* confdefs.h. */
2184 _ACEOF
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h. */
2188 $ac_declaration
2190 main ()
2192 exit (42);
2194 return 0;
2196 _ACEOF
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>conftest.er1
2200 ac_status=$?
2201 grep -v '^ *+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } &&
2206 { ac_try='test -z "$ac_c_werror_flag"
2207 || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 break
2220 else
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2226 done
2227 rm -f conftest*
2228 if test -n "$ac_declaration"; then
2229 echo '#ifdef __cplusplus' >>confdefs.h
2230 echo $ac_declaration >>confdefs.h
2231 echo '#endif' >>confdefs.h
2234 else
2235 echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2240 ac_ext=c
2241 ac_cpp='$CPP $CPPFLAGS'
2242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246 ac_ext=cc
2247 ac_cpp='$CXXCPP $CPPFLAGS'
2248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2251 if test -n "$ac_tool_prefix"; then
2252 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2256 echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_CXX+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 if test -n "$CXX"; then
2262 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 break 2
2275 done
2276 done
2280 CXX=$ac_cv_prog_CXX
2281 if test -n "$CXX"; then
2282 echo "$as_me:$LINENO: result: $CXX" >&5
2283 echo "${ECHO_T}$CXX" >&6
2284 else
2285 echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6
2289 test -n "$CXX" && break
2290 done
2292 if test -z "$CXX"; then
2293 ac_ct_CXX=$CXX
2294 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2296 # Extract the first word of "$ac_prog", so it can be a program name with args.
2297 set dummy $ac_prog; ac_word=$2
2298 echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 if test -n "$ac_ct_CXX"; then
2304 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2309 IFS=$as_save_IFS
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313 ac_cv_prog_ac_ct_CXX="$ac_prog"
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 break 2
2317 done
2318 done
2322 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2323 if test -n "$ac_ct_CXX"; then
2324 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2325 echo "${ECHO_T}$ac_ct_CXX" >&6
2326 else
2327 echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2331 test -n "$ac_ct_CXX" && break
2332 done
2333 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2335 CXX=$ac_ct_CXX
2339 # Provide some information about the compiler.
2340 echo "$as_me:$LINENO:" \
2341 "checking for C++ compiler version" >&5
2342 ac_compiler=`set X $ac_compile; echo $2`
2343 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2344 (eval $ac_compiler --version </dev/null >&5) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
2348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2349 (eval $ac_compiler -v </dev/null >&5) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2353 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2354 (eval $ac_compiler -V </dev/null >&5) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
2359 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h. */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2372 main ()
2374 #ifndef __GNUC__
2375 choke me
2376 #endif
2379 return 0;
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_cxx_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 ac_compiler_gnu=yes
2405 else
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2409 ac_compiler_gnu=no
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2415 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2416 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2417 GXX=`test $ac_compiler_gnu = yes && echo yes`
2418 ac_test_CXXFLAGS=${CXXFLAGS+set}
2419 ac_save_CXXFLAGS=$CXXFLAGS
2420 CXXFLAGS="-g"
2421 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2422 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2423 if test "${ac_cv_prog_cxx_g+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426 cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h. */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2434 main ()
2438 return 0;
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>conftest.er1
2444 ac_status=$?
2445 grep -v '^ *+' conftest.er1 >conftest.err
2446 rm -f conftest.er1
2447 cat conftest.err >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -z "$ac_cxx_werror_flag"
2451 || test ! -s conftest.err'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2463 ac_cv_prog_cxx_g=yes
2464 else
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2468 ac_cv_prog_cxx_g=no
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2474 if test "$ac_test_CXXFLAGS" = set; then
2475 CXXFLAGS=$ac_save_CXXFLAGS
2476 elif test $ac_cv_prog_cxx_g = yes; then
2477 if test "$GXX" = yes; then
2478 CXXFLAGS="-g -O2"
2479 else
2480 CXXFLAGS="-g"
2482 else
2483 if test "$GXX" = yes; then
2484 CXXFLAGS="-O2"
2485 else
2486 CXXFLAGS=
2489 for ac_declaration in \
2490 '' \
2491 'extern "C" void std::exit (int) throw (); using std::exit;' \
2492 'extern "C" void std::exit (int); using std::exit;' \
2493 'extern "C" void exit (int) throw ();' \
2494 'extern "C" void exit (int);' \
2495 'void exit (int);'
2497 cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h. */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2503 $ac_declaration
2504 #include <stdlib.h>
2506 main ()
2508 exit (42);
2510 return 0;
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_cxx_werror_flag"
2523 || test ! -s conftest.err'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525 (eval $ac_try) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2536 else
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2540 continue
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h. */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2549 $ac_declaration
2551 main ()
2553 exit (42);
2555 return 0;
2557 _ACEOF
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>conftest.er1
2561 ac_status=$?
2562 grep -v '^ *+' conftest.er1 >conftest.err
2563 rm -f conftest.er1
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -z "$ac_cxx_werror_flag"
2568 || test ! -s conftest.err'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2580 break
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587 done
2588 rm -f conftest*
2589 if test -n "$ac_declaration"; then
2590 echo '#ifdef __cplusplus' >>confdefs.h
2591 echo $ac_declaration >>confdefs.h
2592 echo '#endif' >>confdefs.h
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 h323=yes
2603 t38=yes
2604 h224=yes
2605 h450=yes
2606 h460=yes
2607 sip=yes
2608 iax=yes
2609 audio=yes
2610 video=yes
2612 REQUIRED_PWLIB_MAJOR=1
2613 REQUIRED_PWLIB_MINOR=11
2614 REQUIRED_PWLIB_BUILD=0
2617 OPALDIR=`pwd`
2620 if test "x$prefix" = "xNONE"; then
2621 INSTALLPREFIX="/usr/local"
2622 else
2623 INSTALLPREFIX="${prefix}"
2628 LIBDIR="${libdir}"
2634 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2635 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2636 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2637 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
2638 cat >>confdefs.h <<_ACEOF
2639 #define OPAL_MAJOR ${MAJOR_VERSION}
2640 _ACEOF
2642 cat >>confdefs.h <<_ACEOF
2643 #define OPAL_MINOR ${MINOR_VERSION}
2644 _ACEOF
2646 cat >>confdefs.h <<_ACEOF
2647 #define OPAL_BUILD ${BUILD_NUMBER}
2648 _ACEOF
2650 cat >>confdefs.h <<_ACEOF
2651 #define OPAL_VERSION "$OPAL_VERSION"
2652 _ACEOF
2655 { echo "$as_me:$LINENO: Opal version is ${OPAL_VERSION}" >&5
2656 echo "$as_me: Opal version is ${OPAL_VERSION}" >&6;};
2658 #use to set the version in opal.pc
2662 if test "${PWLIBDIR:-unset}" != "unset" ; then
2663 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
2664 echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
2665 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
2666 if eval "test \"\${$as_ac_File+set}\" = set"; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669 test "$cross_compiling" = yes &&
2670 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2671 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2672 { (exit 1); exit 1; }; }
2673 if test -r "${PWLIBDIR}/version.h"; then
2674 eval "$as_ac_File=yes"
2675 else
2676 eval "$as_ac_File=no"
2679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2680 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2681 if test `eval echo '${'$as_ac_File'}'` = yes; then
2682 HAS_PTLIB=1
2686 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2687 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
2688 echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
2689 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6
2690 if eval "test \"\${$as_ac_File+set}\" = set"; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 test "$cross_compiling" = yes &&
2694 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2695 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2696 { (exit 1); exit 1; }; }
2697 if test -r "${OPALDIR}/../pwlib/version.h"; then
2698 eval "$as_ac_File=yes"
2699 else
2700 eval "$as_ac_File=no"
2703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2704 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2705 if test `eval echo '${'$as_ac_File'}'` = yes; then
2706 HAS_PTLIB=1
2709 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2710 PWLIBDIR="${OPALDIR}/../pwlib"
2711 else
2712 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
2713 echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
2714 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
2715 if eval "test \"\${$as_ac_File+set}\" = set"; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 test "$cross_compiling" = yes &&
2719 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2720 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2721 { (exit 1); exit 1; }; }
2722 if test -r "${HOME}/pwlib/include/ptlib.h"; then
2723 eval "$as_ac_File=yes"
2724 else
2725 eval "$as_ac_File=no"
2728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2729 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2730 if test `eval echo '${'$as_ac_File'}'` = yes; then
2731 HAS_PTLIB=1
2734 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2735 PWLIBDIR="${HOME}/pwlib"
2736 else
2737 echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
2738 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
2739 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 test "$cross_compiling" = yes &&
2743 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2744 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2745 { (exit 1); exit 1; }; }
2746 if test -r "/usr/local/include/ptlib.h"; then
2747 ac_cv_file__usr_local_include_ptlib_h=yes
2748 else
2749 ac_cv_file__usr_local_include_ptlib_h=no
2752 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
2753 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
2754 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
2755 HAS_PTLIB=1
2758 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2759 # Extract the first word of "ptlib-config", so it can be a program name with args.
2760 set dummy ptlib-config; ac_word=$2
2761 echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 case $PTLIB_CONFIG in
2767 [\\/]* | ?:[\\/]*)
2768 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in /usr/local/bin
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2782 done
2783 done
2786 esac
2788 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2790 if test -n "$PTLIB_CONFIG"; then
2791 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2792 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2793 else
2794 echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2798 else
2799 echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
2800 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
2801 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804 test "$cross_compiling" = yes &&
2805 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2806 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2807 { (exit 1); exit 1; }; }
2808 if test -r "/usr/include/ptlib.h"; then
2809 ac_cv_file__usr_include_ptlib_h=yes
2810 else
2811 ac_cv_file__usr_include_ptlib_h=no
2814 echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
2815 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
2816 if test $ac_cv_file__usr_include_ptlib_h = yes; then
2817 HAS_PTLIB=1
2820 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2821 # Extract the first word of "ptlib-config", so it can be a program name with args.
2822 set dummy ptlib-config; ac_word=$2
2823 echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 case $PTLIB_CONFIG in
2829 [\\/]* | ?:[\\/]*)
2830 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in /usr/share/pwlib/make/
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2844 done
2845 done
2848 esac
2850 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2852 if test -n "$PTLIB_CONFIG"; then
2853 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2854 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 else
2861 as_ac_File=`echo "ac_cv_file_${prefix}/include/ptlib.h" | $as_tr_sh`
2862 echo "$as_me:$LINENO: checking for ${prefix}/include/ptlib.h" >&5
2863 echo $ECHO_N "checking for ${prefix}/include/ptlib.h... $ECHO_C" >&6
2864 if eval "test \"\${$as_ac_File+set}\" = set"; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 test "$cross_compiling" = yes &&
2868 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2869 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2870 { (exit 1); exit 1; }; }
2871 if test -r "${prefix}/include/ptlib.h"; then
2872 eval "$as_ac_File=yes"
2873 else
2874 eval "$as_ac_File=no"
2877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2878 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2879 if test `eval echo '${'$as_ac_File'}'` = yes; then
2880 HAS_PTLIB=1
2883 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2884 # Extract the first word of "ptlib-config", so it can be a program name with args.
2885 set dummy ptlib-config; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 case $PTLIB_CONFIG in
2892 [\\/]* | ?:[\\/]*)
2893 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in ${prefix}/bin
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2907 done
2908 done
2911 esac
2913 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2915 if test -n "$PTLIB_CONFIG"; then
2916 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2917 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2918 else
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2930 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2931 { { echo "$as_me:$LINENO: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&5
2932 echo "$as_me: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&2;}
2933 { (exit 1); exit 1; }; }
2936 if test "${PWLIBDIR:-unset}" = "unset" ; then
2937 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
2938 { { echo "$as_me:$LINENO: error: \"Cannot find ptlib-config - please install and try again\"" >&5
2939 echo "$as_me: error: \"Cannot find ptlib-config - please install and try again\"" >&2;}
2940 { (exit 1); exit 1; }; }
2942 PWLIBDIR=`$PTLIB_CONFIG --prefix`
2945 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
2946 PWLIBDIR="/usr/share/pwlib/"
2948 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
2949 PWLIBDIR="/usr/local/share/pwlib/"
2951 if test "x$PWLIBDIR" = "x${prefix}"; then
2952 PWLIBDIR="${prefix}/share/pwlib/"
2956 echo "PWLib prefix set to.... $PWLIBDIR"
2958 if test "${PWLIBDIR:-unset}" = "unset" ; then
2959 PWVERSION=`$PTLIB_CONFIG --version`
2960 PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
2961 PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
2962 PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
2964 else
2965 PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2966 PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2967 PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2968 PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
2971 # Check whether --enable-versioncheck or --disable-versioncheck was given.
2972 if test "${enable_versioncheck+set}" = set; then
2973 enableval="$enable_versioncheck"
2974 PWLIB_VERSION_CHECK=$enableval
2977 echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
2978 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6
2979 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
2980 echo "$as_me:$LINENO: result: check disabled" >&5
2981 echo "${ECHO_T}check disabled" >&6
2982 else
2983 if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
2984 { { echo "$as_me:$LINENO: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
2985 echo "$as_me: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&2;}
2986 { (exit 1); exit 1; }; }
2988 if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
2989 { { echo "$as_me:$LINENO: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
2990 echo "$as_me: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&2;}
2991 { (exit 1); exit 1; }; }
2993 if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
2994 { { echo "$as_me:$LINENO: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
2995 echo "$as_me: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&2;}
2996 { (exit 1); exit 1; }; }
2998 echo "$as_me:$LINENO: result: ok" >&5
2999 echo "${ECHO_T}ok" >&6
3005 if test x$GXX = xyes ; then
3006 USE_GCC=yes
3007 gcc_version=`$CXX -dumpversion`
3008 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
3009 echo "$as_me: gcc version is $gcc_version" >&6;};
3010 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
3011 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
3012 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
3014 echo "$as_me:$LINENO: checking checking if gcc version is valid" >&5
3015 echo $ECHO_N "checking checking if gcc version is valid... $ECHO_C" >&6
3016 if test ${GXX_MAJOR} -lt 3 ; then
3017 echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3019 { { echo "$as_me:$LINENO: error: OPAL requires gcc version 3 or later" >&5
3020 echo "$as_me: error: OPAL requires gcc version 3 or later" >&2;}
3021 { (exit 1); exit 1; }; }
3022 else
3023 echo "$as_me:$LINENO: result: yes" >&5
3024 echo "${ECHO_T}yes" >&6
3029 echo "$as_me:$LINENO: checking for working bit scan intrinsic" >&5
3030 echo $ECHO_N "checking for working bit scan intrinsic... $ECHO_C" >&6
3031 BSR_TEST_SRC="
3032 #include <stdlib.h>
3033 int main(int argc, char* argv) {
3034 #ifdef __GNUC__
3035 unsigned int val = 0x00000FF0;
3036 if (__builtin_clz(val) == 20)
3037 exit(0);
3038 #endif
3039 exit(1);
3042 if test "$cross_compiling" = yes; then
3043 GCC_HAS_CLZ=1
3044 else
3045 cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h. */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051 $BSR_TEST_SRC
3052 _ACEOF
3053 rm -f conftest$ac_exeext
3054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3055 (eval $ac_link) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 GCC_HAS_CLZ=1
3065 else
3066 echo "$as_me: program exited with status $ac_status" >&5
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 ( exit $ac_status )
3071 GCC_HAS_CLZ=0
3073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3075 if test "${GCC_HAS_CLZ}" = "1" ; then
3076 echo "$as_me:$LINENO: result: yes" >&5
3077 echo "${ECHO_T}yes" >&6
3078 cat >>confdefs.h <<\_ACEOF
3079 #define GCC_HAS_CLZ 1
3080 _ACEOF
3082 GCC_HAS_CLZ=1
3083 else
3084 echo "$as_me:$LINENO: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3090 localspeex="xxx"
3091 # Check whether --enable-localspeex or --disable-localspeex was given.
3092 if test "${enable_localspeex+set}" = set; then
3093 enableval="$enable_localspeex"
3094 localspeex=$enableval
3097 ac_ext=c
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3103 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3104 # On Suns, sometimes $CPP names a directory.
3105 if test -n "$CPP" && test -d "$CPP"; then
3106 CPP=
3108 if test -z "$CPP"; then
3109 if test "${ac_cv_prog_CPP+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112 # Double quotes because CPP needs to be expanded
3113 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3115 ac_preproc_ok=false
3116 for ac_c_preproc_warn_flag in '' yes
3118 # Use a header file that comes with gcc, so configuring glibc
3119 # with a fresh cross-compiler works.
3120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3121 # <limits.h> exists even on freestanding compilers.
3122 # On the NeXT, cc -E runs the code through the compiler's parser,
3123 # not just through cpp. "Syntax error" is here to catch this case.
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #ifdef __STDC__
3131 # include <limits.h>
3132 #else
3133 # include <assert.h>
3134 #endif
3135 Syntax error
3136 _ACEOF
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null; then
3145 if test -s conftest.err; then
3146 ac_cpp_err=$ac_c_preproc_warn_flag
3147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3148 else
3149 ac_cpp_err=
3151 else
3152 ac_cpp_err=yes
3154 if test -z "$ac_cpp_err"; then
3156 else
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 # Broken: fails on valid input.
3161 continue
3163 rm -f conftest.err conftest.$ac_ext
3165 # OK, works on sane cases. Now check whether non-existent headers
3166 # can be detected and how.
3167 cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3173 #include <ac_nonexistent.h>
3174 _ACEOF
3175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3177 ac_status=$?
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } >/dev/null; then
3183 if test -s conftest.err; then
3184 ac_cpp_err=$ac_c_preproc_warn_flag
3185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3186 else
3187 ac_cpp_err=
3189 else
3190 ac_cpp_err=yes
3192 if test -z "$ac_cpp_err"; then
3193 # Broken: success on invalid input.
3194 continue
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 # Passes both tests.
3200 ac_preproc_ok=:
3201 break
3203 rm -f conftest.err conftest.$ac_ext
3205 done
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then
3209 break
3212 done
3213 ac_cv_prog_CPP=$CPP
3216 CPP=$ac_cv_prog_CPP
3217 else
3218 ac_cv_prog_CPP=$CPP
3220 echo "$as_me:$LINENO: result: $CPP" >&5
3221 echo "${ECHO_T}$CPP" >&6
3222 ac_preproc_ok=false
3223 for ac_c_preproc_warn_flag in '' yes
3225 # Use a header file that comes with gcc, so configuring glibc
3226 # with a fresh cross-compiler works.
3227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228 # <limits.h> exists even on freestanding compilers.
3229 # On the NeXT, cc -E runs the code through the compiler's parser,
3230 # not just through cpp. "Syntax error" is here to catch this case.
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 #ifdef __STDC__
3238 # include <limits.h>
3239 #else
3240 # include <assert.h>
3241 #endif
3242 Syntax error
3243 _ACEOF
3244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255 else
3256 ac_cpp_err=
3258 else
3259 ac_cpp_err=yes
3261 if test -z "$ac_cpp_err"; then
3263 else
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 # Broken: fails on valid input.
3268 continue
3270 rm -f conftest.err conftest.$ac_ext
3272 # OK, works on sane cases. Now check whether non-existent headers
3273 # can be detected and how.
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280 #include <ac_nonexistent.h>
3281 _ACEOF
3282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } >/dev/null; then
3290 if test -s conftest.err; then
3291 ac_cpp_err=$ac_c_preproc_warn_flag
3292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293 else
3294 ac_cpp_err=
3296 else
3297 ac_cpp_err=yes
3299 if test -z "$ac_cpp_err"; then
3300 # Broken: success on invalid input.
3301 continue
3302 else
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 # Passes both tests.
3307 ac_preproc_ok=:
3308 break
3310 rm -f conftest.err conftest.$ac_ext
3312 done
3313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3314 rm -f conftest.err conftest.$ac_ext
3315 if $ac_preproc_ok; then
3317 else
3318 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3319 See \`config.log' for more details." >&5
3320 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 echo "$as_me:$LINENO: checking for egrep" >&5
3333 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3334 if test "${ac_cv_prog_egrep+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3338 then ac_cv_prog_egrep='grep -E'
3339 else ac_cv_prog_egrep='egrep'
3342 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3343 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3344 EGREP=$ac_cv_prog_egrep
3347 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3348 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3349 if test "${ac_cv_header_stdc+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h. */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358 #include <stdlib.h>
3359 #include <stdarg.h>
3360 #include <string.h>
3361 #include <float.h>
3364 main ()
3368 return 0;
3370 _ACEOF
3371 rm -f conftest.$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -z "$ac_c_werror_flag"
3381 || test ! -s conftest.err'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; } &&
3387 { ac_try='test -s conftest.$ac_objext'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 ac_cv_header_stdc=yes
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 ac_cv_header_stdc=no
3400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3402 if test $ac_cv_header_stdc = yes; then
3403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3404 cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h. */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 #include <string.h>
3412 _ACEOF
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 $EGREP "memchr" >/dev/null 2>&1; then
3416 else
3417 ac_cv_header_stdc=no
3419 rm -f conftest*
3423 if test $ac_cv_header_stdc = yes; then
3424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3425 cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h. */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #include <stdlib.h>
3433 _ACEOF
3434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3435 $EGREP "free" >/dev/null 2>&1; then
3437 else
3438 ac_cv_header_stdc=no
3440 rm -f conftest*
3444 if test $ac_cv_header_stdc = yes; then
3445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3446 if test "$cross_compiling" = yes; then
3448 else
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #include <ctype.h>
3456 #if ((' ' & 0x0FF) == 0x020)
3457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3459 #else
3460 # define ISLOWER(c) \
3461 (('a' <= (c) && (c) <= 'i') \
3462 || ('j' <= (c) && (c) <= 'r') \
3463 || ('s' <= (c) && (c) <= 'z'))
3464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3465 #endif
3467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3469 main ()
3471 int i;
3472 for (i = 0; i < 256; i++)
3473 if (XOR (islower (i), ISLOWER (i))
3474 || toupper (i) != TOUPPER (i))
3475 exit(2);
3476 exit (0);
3478 _ACEOF
3479 rm -f conftest$ac_exeext
3480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3481 (eval $ac_link) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3491 else
3492 echo "$as_me: program exited with status $ac_status" >&5
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3496 ( exit $ac_status )
3497 ac_cv_header_stdc=no
3499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3503 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3504 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3505 if test $ac_cv_header_stdc = yes; then
3507 cat >>confdefs.h <<\_ACEOF
3508 #define STDC_HEADERS 1
3509 _ACEOF
3513 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3524 inttypes.h stdint.h unistd.h
3526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3527 echo "$as_me:$LINENO: checking for $ac_header" >&5
3528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3538 $ac_includes_default
3540 #include <$ac_header>
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3544 (eval $ac_compile) 2>conftest.er1
3545 ac_status=$?
3546 grep -v '^ *+' conftest.er1 >conftest.err
3547 rm -f conftest.er1
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -z "$ac_c_werror_flag"
3552 || test ! -s conftest.err'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; } &&
3558 { ac_try='test -s conftest.$ac_objext'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 eval "$as_ac_Header=yes"
3565 else
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3569 eval "$as_ac_Header=no"
3571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3576 cat >>confdefs.h <<_ACEOF
3577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3578 _ACEOF
3582 done
3585 echo "$as_me:$LINENO: checking for short" >&5
3586 echo $ECHO_N "checking for short... $ECHO_C" >&6
3587 if test "${ac_cv_type_short+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h. */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3596 $ac_includes_default
3598 main ()
3600 if ((short *) 0)
3601 return 0;
3602 if (sizeof (short))
3603 return 0;
3605 return 0;
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_cv_type_short=yes
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_type_short=no
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3640 echo "${ECHO_T}$ac_cv_type_short" >&6
3642 echo "$as_me:$LINENO: checking size of short" >&5
3643 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3644 if test "${ac_cv_sizeof_short+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 if test "$ac_cv_type_short" = yes; then
3648 # The cast to unsigned long works around a bug in the HP C Compiler
3649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3651 # This bug is HP SR number 8606223364.
3652 if test "$cross_compiling" = yes; then
3653 # Depending upon the size, compute the lo and hi bounds.
3654 cat >conftest.$ac_ext <<_ACEOF
3655 /* confdefs.h. */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3660 $ac_includes_default
3662 main ()
3664 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3665 test_array [0] = 0
3668 return 0;
3670 _ACEOF
3671 rm -f conftest.$ac_objext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3673 (eval $ac_compile) 2>conftest.er1
3674 ac_status=$?
3675 grep -v '^ *+' conftest.er1 >conftest.err
3676 rm -f conftest.er1
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_c_werror_flag"
3681 || test ! -s conftest.err'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 (eval $ac_try) 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; } &&
3687 { ac_try='test -s conftest.$ac_objext'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 (eval $ac_try) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 ac_lo=0 ac_mid=0
3694 while :; do
3695 cat >conftest.$ac_ext <<_ACEOF
3696 /* confdefs.h. */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 $ac_includes_default
3703 main ()
3705 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3706 test_array [0] = 0
3709 return 0;
3711 _ACEOF
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>conftest.er1
3715 ac_status=$?
3716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -z "$ac_c_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_hi=$ac_mid; break
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_lo=`expr $ac_mid + 1`
3740 if test $ac_lo -le $ac_mid; then
3741 ac_lo= ac_hi=
3742 break
3744 ac_mid=`expr 2 '*' $ac_mid + 1`
3746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3747 done
3748 else
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 $ac_includes_default
3760 main ()
3762 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3763 test_array [0] = 0
3766 return 0;
3768 _ACEOF
3769 rm -f conftest.$ac_objext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3771 (eval $ac_compile) 2>conftest.er1
3772 ac_status=$?
3773 grep -v '^ *+' conftest.er1 >conftest.err
3774 rm -f conftest.er1
3775 cat conftest.err >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } &&
3778 { ac_try='test -z "$ac_c_werror_flag"
3779 || test ! -s conftest.err'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 (eval $ac_try) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; } &&
3785 { ac_try='test -s conftest.$ac_objext'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 ac_hi=-1 ac_mid=-1
3792 while :; do
3793 cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h. */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3799 $ac_includes_default
3801 main ()
3803 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3804 test_array [0] = 0
3807 return 0;
3809 _ACEOF
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 ac_lo=$ac_mid; break
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 ac_hi=`expr '(' $ac_mid ')' - 1`
3838 if test $ac_mid -le $ac_hi; then
3839 ac_lo= ac_hi=
3840 break
3842 ac_mid=`expr 2 '*' $ac_mid`
3844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3845 done
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_lo= ac_hi=
3852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855 # Binary search between lo and hi bounds.
3856 while test "x$ac_lo" != "x$ac_hi"; do
3857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3858 cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h. */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 $ac_includes_default
3866 main ()
3868 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3869 test_array [0] = 0
3872 return 0;
3874 _ACEOF
3875 rm -f conftest.$ac_objext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -z "$ac_c_werror_flag"
3885 || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 (eval $ac_try) 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_hi=$ac_mid
3898 else
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_lo=`expr '(' $ac_mid ')' + 1`
3904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3905 done
3906 case $ac_lo in
3907 ?*) ac_cv_sizeof_short=$ac_lo;;
3908 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3909 See \`config.log' for more details." >&5
3910 echo "$as_me: error: cannot compute sizeof (short), 77
3911 See \`config.log' for more details." >&2;}
3912 { (exit 1); exit 1; }; } ;;
3913 esac
3914 else
3915 if test "$cross_compiling" = yes; then
3916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3917 See \`config.log' for more details." >&5
3918 echo "$as_me: error: cannot run test program while cross compiling
3919 See \`config.log' for more details." >&2;}
3920 { (exit 1); exit 1; }; }
3921 else
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 $ac_includes_default
3929 long longval () { return (long) (sizeof (short)); }
3930 unsigned long ulongval () { return (long) (sizeof (short)); }
3931 #include <stdio.h>
3932 #include <stdlib.h>
3934 main ()
3937 FILE *f = fopen ("conftest.val", "w");
3938 if (! f)
3939 exit (1);
3940 if (((long) (sizeof (short))) < 0)
3942 long i = longval ();
3943 if (i != ((long) (sizeof (short))))
3944 exit (1);
3945 fprintf (f, "%ld\n", i);
3947 else
3949 unsigned long i = ulongval ();
3950 if (i != ((long) (sizeof (short))))
3951 exit (1);
3952 fprintf (f, "%lu\n", i);
3954 exit (ferror (f) || fclose (f) != 0);
3957 return 0;
3959 _ACEOF
3960 rm -f conftest$ac_exeext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3962 (eval $ac_link) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 ac_cv_sizeof_short=`cat conftest.val`
3972 else
3973 echo "$as_me: program exited with status $ac_status" >&5
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 ( exit $ac_status )
3978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3979 See \`config.log' for more details." >&5
3980 echo "$as_me: error: cannot compute sizeof (short), 77
3981 See \`config.log' for more details." >&2;}
3982 { (exit 1); exit 1; }; }
3984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3987 rm -f conftest.val
3988 else
3989 ac_cv_sizeof_short=0
3992 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3993 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3994 cat >>confdefs.h <<_ACEOF
3995 #define SIZEOF_SHORT $ac_cv_sizeof_short
3996 _ACEOF
3999 echo "$as_me:$LINENO: checking for int" >&5
4000 echo $ECHO_N "checking for int... $ECHO_C" >&6
4001 if test "${ac_cv_type_int+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 $ac_includes_default
4012 main ()
4014 if ((int *) 0)
4015 return 0;
4016 if (sizeof (int))
4017 return 0;
4019 return 0;
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_c_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_cv_type_int=yes
4045 else
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 ac_cv_type_int=no
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4053 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4054 echo "${ECHO_T}$ac_cv_type_int" >&6
4056 echo "$as_me:$LINENO: checking size of int" >&5
4057 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4058 if test "${ac_cv_sizeof_int+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 if test "$ac_cv_type_int" = yes; then
4062 # The cast to unsigned long works around a bug in the HP C Compiler
4063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4065 # This bug is HP SR number 8606223364.
4066 if test "$cross_compiling" = yes; then
4067 # Depending upon the size, compute the lo and hi bounds.
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 $ac_includes_default
4076 main ()
4078 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4079 test_array [0] = 0
4082 return 0;
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_c_werror_flag"
4095 || test ! -s conftest.err'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 ac_lo=0 ac_mid=0
4108 while :; do
4109 cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h. */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 $ac_includes_default
4117 main ()
4119 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4120 test_array [0] = 0
4123 return 0;
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag"
4136 || test ! -s conftest.err'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 (eval $ac_try) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; } &&
4142 { ac_try='test -s conftest.$ac_objext'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 (eval $ac_try) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 ac_hi=$ac_mid; break
4149 else
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 ac_lo=`expr $ac_mid + 1`
4154 if test $ac_lo -le $ac_mid; then
4155 ac_lo= ac_hi=
4156 break
4158 ac_mid=`expr 2 '*' $ac_mid + 1`
4160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4161 done
4162 else
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 $ac_includes_default
4174 main ()
4176 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4177 test_array [0] = 0
4180 return 0;
4182 _ACEOF
4183 rm -f conftest.$ac_objext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>conftest.er1
4186 ac_status=$?
4187 grep -v '^ *+' conftest.er1 >conftest.err
4188 rm -f conftest.er1
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_c_werror_flag"
4193 || test ! -s conftest.err'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; } &&
4199 { ac_try='test -s conftest.$ac_objext'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_hi=-1 ac_mid=-1
4206 while :; do
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4213 $ac_includes_default
4215 main ()
4217 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4218 test_array [0] = 0
4221 return 0;
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_c_werror_flag"
4234 || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_lo=$ac_mid; break
4247 else
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 ac_hi=`expr '(' $ac_mid ')' - 1`
4252 if test $ac_mid -le $ac_hi; then
4253 ac_lo= ac_hi=
4254 break
4256 ac_mid=`expr 2 '*' $ac_mid`
4258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4259 done
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 ac_lo= ac_hi=
4266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4269 # Binary search between lo and hi bounds.
4270 while test "x$ac_lo" != "x$ac_hi"; do
4271 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 $ac_includes_default
4280 main ()
4282 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4283 test_array [0] = 0
4286 return 0;
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_hi=$ac_mid
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 ac_lo=`expr '(' $ac_mid ')' + 1`
4318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319 done
4320 case $ac_lo in
4321 ?*) ac_cv_sizeof_int=$ac_lo;;
4322 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4323 See \`config.log' for more details." >&5
4324 echo "$as_me: error: cannot compute sizeof (int), 77
4325 See \`config.log' for more details." >&2;}
4326 { (exit 1); exit 1; }; } ;;
4327 esac
4328 else
4329 if test "$cross_compiling" = yes; then
4330 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4331 See \`config.log' for more details." >&5
4332 echo "$as_me: error: cannot run test program while cross compiling
4333 See \`config.log' for more details." >&2;}
4334 { (exit 1); exit 1; }; }
4335 else
4336 cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h. */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4342 $ac_includes_default
4343 long longval () { return (long) (sizeof (int)); }
4344 unsigned long ulongval () { return (long) (sizeof (int)); }
4345 #include <stdio.h>
4346 #include <stdlib.h>
4348 main ()
4351 FILE *f = fopen ("conftest.val", "w");
4352 if (! f)
4353 exit (1);
4354 if (((long) (sizeof (int))) < 0)
4356 long i = longval ();
4357 if (i != ((long) (sizeof (int))))
4358 exit (1);
4359 fprintf (f, "%ld\n", i);
4361 else
4363 unsigned long i = ulongval ();
4364 if (i != ((long) (sizeof (int))))
4365 exit (1);
4366 fprintf (f, "%lu\n", i);
4368 exit (ferror (f) || fclose (f) != 0);
4371 return 0;
4373 _ACEOF
4374 rm -f conftest$ac_exeext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4376 (eval $ac_link) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_cv_sizeof_int=`cat conftest.val`
4386 else
4387 echo "$as_me: program exited with status $ac_status" >&5
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 ( exit $ac_status )
4392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4393 See \`config.log' for more details." >&5
4394 echo "$as_me: error: cannot compute sizeof (int), 77
4395 See \`config.log' for more details." >&2;}
4396 { (exit 1); exit 1; }; }
4398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4401 rm -f conftest.val
4402 else
4403 ac_cv_sizeof_int=0
4406 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4407 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4408 cat >>confdefs.h <<_ACEOF
4409 #define SIZEOF_INT $ac_cv_sizeof_int
4410 _ACEOF
4413 echo "$as_me:$LINENO: checking for long" >&5
4414 echo $ECHO_N "checking for long... $ECHO_C" >&6
4415 if test "${ac_cv_type_long+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 $ac_includes_default
4426 main ()
4428 if ((long *) 0)
4429 return 0;
4430 if (sizeof (long))
4431 return 0;
4433 return 0;
4435 _ACEOF
4436 rm -f conftest.$ac_objext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>conftest.er1
4439 ac_status=$?
4440 grep -v '^ *+' conftest.er1 >conftest.err
4441 rm -f conftest.er1
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } &&
4445 { ac_try='test -z "$ac_c_werror_flag"
4446 || test ! -s conftest.err'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_cv_type_long=yes
4459 else
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 ac_cv_type_long=no
4465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4467 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4468 echo "${ECHO_T}$ac_cv_type_long" >&6
4470 echo "$as_me:$LINENO: checking size of long" >&5
4471 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4472 if test "${ac_cv_sizeof_long+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 if test "$ac_cv_type_long" = yes; then
4476 # The cast to unsigned long works around a bug in the HP C Compiler
4477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4479 # This bug is HP SR number 8606223364.
4480 if test "$cross_compiling" = yes; then
4481 # Depending upon the size, compute the lo and hi bounds.
4482 cat >conftest.$ac_ext <<_ACEOF
4483 /* confdefs.h. */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 $ac_includes_default
4490 main ()
4492 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4493 test_array [0] = 0
4496 return 0;
4498 _ACEOF
4499 rm -f conftest.$ac_objext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501 (eval $ac_compile) 2>conftest.er1
4502 ac_status=$?
4503 grep -v '^ *+' conftest.er1 >conftest.err
4504 rm -f conftest.er1
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } &&
4508 { ac_try='test -z "$ac_c_werror_flag"
4509 || test ! -s conftest.err'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; } &&
4515 { ac_try='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_lo=0 ac_mid=0
4522 while :; do
4523 cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h. */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 $ac_includes_default
4531 main ()
4533 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4534 test_array [0] = 0
4537 return 0;
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>conftest.er1
4543 ac_status=$?
4544 grep -v '^ *+' conftest.er1 >conftest.err
4545 rm -f conftest.er1
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
4549 { ac_try='test -z "$ac_c_werror_flag"
4550 || test ! -s conftest.err'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; } &&
4556 { ac_try='test -s conftest.$ac_objext'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 (eval $ac_try) 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4562 ac_hi=$ac_mid; break
4563 else
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 ac_lo=`expr $ac_mid + 1`
4568 if test $ac_lo -le $ac_mid; then
4569 ac_lo= ac_hi=
4570 break
4572 ac_mid=`expr 2 '*' $ac_mid + 1`
4574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4575 done
4576 else
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580 cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h. */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 $ac_includes_default
4588 main ()
4590 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4591 test_array [0] = 0
4594 return 0;
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599 (eval $ac_compile) 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag"
4607 || test ! -s conftest.err'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_hi=-1 ac_mid=-1
4620 while :; do
4621 cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h. */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4627 $ac_includes_default
4629 main ()
4631 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4632 test_array [0] = 0
4635 return 0;
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640 (eval $ac_compile) 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } &&
4647 { ac_try='test -z "$ac_c_werror_flag"
4648 || test ! -s conftest.err'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; } &&
4654 { ac_try='test -s conftest.$ac_objext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 ac_lo=$ac_mid; break
4661 else
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 ac_hi=`expr '(' $ac_mid ')' - 1`
4666 if test $ac_mid -le $ac_hi; then
4667 ac_lo= ac_hi=
4668 break
4670 ac_mid=`expr 2 '*' $ac_mid`
4672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4673 done
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 ac_lo= ac_hi=
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 # Binary search between lo and hi bounds.
4684 while test "x$ac_lo" != "x$ac_hi"; do
4685 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 $ac_includes_default
4694 main ()
4696 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4697 test_array [0] = 0
4700 return 0;
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_hi=$ac_mid
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 ac_lo=`expr '(' $ac_mid ')' + 1`
4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 done
4734 case $ac_lo in
4735 ?*) ac_cv_sizeof_long=$ac_lo;;
4736 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: cannot compute sizeof (long), 77
4739 See \`config.log' for more details." >&2;}
4740 { (exit 1); exit 1; }; } ;;
4741 esac
4742 else
4743 if test "$cross_compiling" = yes; then
4744 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4745 See \`config.log' for more details." >&5
4746 echo "$as_me: error: cannot run test program while cross compiling
4747 See \`config.log' for more details." >&2;}
4748 { (exit 1); exit 1; }; }
4749 else
4750 cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h. */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756 $ac_includes_default
4757 long longval () { return (long) (sizeof (long)); }
4758 unsigned long ulongval () { return (long) (sizeof (long)); }
4759 #include <stdio.h>
4760 #include <stdlib.h>
4762 main ()
4765 FILE *f = fopen ("conftest.val", "w");
4766 if (! f)
4767 exit (1);
4768 if (((long) (sizeof (long))) < 0)
4770 long i = longval ();
4771 if (i != ((long) (sizeof (long))))
4772 exit (1);
4773 fprintf (f, "%ld\n", i);
4775 else
4777 unsigned long i = ulongval ();
4778 if (i != ((long) (sizeof (long))))
4779 exit (1);
4780 fprintf (f, "%lu\n", i);
4782 exit (ferror (f) || fclose (f) != 0);
4785 return 0;
4787 _ACEOF
4788 rm -f conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4799 ac_cv_sizeof_long=`cat conftest.val`
4800 else
4801 echo "$as_me: program exited with status $ac_status" >&5
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4805 ( exit $ac_status )
4806 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4807 See \`config.log' for more details." >&5
4808 echo "$as_me: error: cannot compute sizeof (long), 77
4809 See \`config.log' for more details." >&2;}
4810 { (exit 1); exit 1; }; }
4812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4815 rm -f conftest.val
4816 else
4817 ac_cv_sizeof_long=0
4820 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4821 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4822 cat >>confdefs.h <<_ACEOF
4823 #define SIZEOF_LONG $ac_cv_sizeof_long
4824 _ACEOF
4827 echo "$as_me:$LINENO: checking for long long" >&5
4828 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4829 if test "${ac_cv_type_long_long+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 $ac_includes_default
4840 main ()
4842 if ((long long *) 0)
4843 return 0;
4844 if (sizeof (long long))
4845 return 0;
4847 return 0;
4849 _ACEOF
4850 rm -f conftest.$ac_objext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>conftest.er1
4853 ac_status=$?
4854 grep -v '^ *+' conftest.er1 >conftest.err
4855 rm -f conftest.er1
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -z "$ac_c_werror_flag"
4860 || test ! -s conftest.err'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; } &&
4866 { ac_try='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_type_long_long=yes
4873 else
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_type_long_long=no
4879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4881 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4882 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4884 echo "$as_me:$LINENO: checking size of long long" >&5
4885 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4886 if test "${ac_cv_sizeof_long_long+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 if test "$ac_cv_type_long_long" = yes; then
4890 # The cast to unsigned long works around a bug in the HP C Compiler
4891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4893 # This bug is HP SR number 8606223364.
4894 if test "$cross_compiling" = yes; then
4895 # Depending upon the size, compute the lo and hi bounds.
4896 cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h. */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4902 $ac_includes_default
4904 main ()
4906 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4907 test_array [0] = 0
4910 return 0;
4912 _ACEOF
4913 rm -f conftest.$ac_objext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>conftest.er1
4916 ac_status=$?
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -z "$ac_c_werror_flag"
4923 || test ! -s conftest.err'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 (eval $ac_try) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 ac_lo=0 ac_mid=0
4936 while :; do
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943 $ac_includes_default
4945 main ()
4947 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4948 test_array [0] = 0
4951 return 0;
4953 _ACEOF
4954 rm -f conftest.$ac_objext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956 (eval $ac_compile) 2>conftest.er1
4957 ac_status=$?
4958 grep -v '^ *+' conftest.er1 >conftest.err
4959 rm -f conftest.er1
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -z "$ac_c_werror_flag"
4964 || test ! -s conftest.err'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4976 ac_hi=$ac_mid; break
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 ac_lo=`expr $ac_mid + 1`
4982 if test $ac_lo -le $ac_mid; then
4983 ac_lo= ac_hi=
4984 break
4986 ac_mid=`expr 2 '*' $ac_mid + 1`
4988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4989 done
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 $ac_includes_default
5002 main ()
5004 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5005 test_array [0] = 0
5008 return 0;
5010 _ACEOF
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>conftest.er1
5014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try='test -s conftest.$ac_objext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 ac_hi=-1 ac_mid=-1
5034 while :; do
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_includes_default
5043 main ()
5045 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5046 test_array [0] = 0
5049 return 0;
5051 _ACEOF
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try='test -z "$ac_c_werror_flag"
5062 || test ! -s conftest.err'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 ac_lo=$ac_mid; break
5075 else
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079 ac_hi=`expr '(' $ac_mid ')' - 1`
5080 if test $ac_mid -le $ac_hi; then
5081 ac_lo= ac_hi=
5082 break
5084 ac_mid=`expr 2 '*' $ac_mid`
5086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5087 done
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 ac_lo= ac_hi=
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5097 # Binary search between lo and hi bounds.
5098 while test "x$ac_lo" != "x$ac_hi"; do
5099 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5100 cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h. */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 $ac_includes_default
5108 main ()
5110 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5111 test_array [0] = 0
5114 return 0;
5116 _ACEOF
5117 rm -f conftest.$ac_objext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5119 (eval $ac_compile) 2>conftest.er1
5120 ac_status=$?
5121 grep -v '^ *+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } &&
5126 { ac_try='test -z "$ac_c_werror_flag"
5127 || test ! -s conftest.err'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; } &&
5133 { ac_try='test -s conftest.$ac_objext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 ac_hi=$ac_mid
5140 else
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 ac_lo=`expr '(' $ac_mid ')' + 1`
5146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5147 done
5148 case $ac_lo in
5149 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5150 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5151 See \`config.log' for more details." >&5
5152 echo "$as_me: error: cannot compute sizeof (long long), 77
5153 See \`config.log' for more details." >&2;}
5154 { (exit 1); exit 1; }; } ;;
5155 esac
5156 else
5157 if test "$cross_compiling" = yes; then
5158 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5159 See \`config.log' for more details." >&5
5160 echo "$as_me: error: cannot run test program while cross compiling
5161 See \`config.log' for more details." >&2;}
5162 { (exit 1); exit 1; }; }
5163 else
5164 cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h. */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170 $ac_includes_default
5171 long longval () { return (long) (sizeof (long long)); }
5172 unsigned long ulongval () { return (long) (sizeof (long long)); }
5173 #include <stdio.h>
5174 #include <stdlib.h>
5176 main ()
5179 FILE *f = fopen ("conftest.val", "w");
5180 if (! f)
5181 exit (1);
5182 if (((long) (sizeof (long long))) < 0)
5184 long i = longval ();
5185 if (i != ((long) (sizeof (long long))))
5186 exit (1);
5187 fprintf (f, "%ld\n", i);
5189 else
5191 unsigned long i = ulongval ();
5192 if (i != ((long) (sizeof (long long))))
5193 exit (1);
5194 fprintf (f, "%lu\n", i);
5196 exit (ferror (f) || fclose (f) != 0);
5199 return 0;
5201 _ACEOF
5202 rm -f conftest$ac_exeext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5204 (eval $ac_link) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 (eval $ac_try) 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 ac_cv_sizeof_long_long=`cat conftest.val`
5214 else
5215 echo "$as_me: program exited with status $ac_status" >&5
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ( exit $ac_status )
5220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5221 See \`config.log' for more details." >&5
5222 echo "$as_me: error: cannot compute sizeof (long long), 77
5223 See \`config.log' for more details." >&2;}
5224 { (exit 1); exit 1; }; }
5226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5229 rm -f conftest.val
5230 else
5231 ac_cv_sizeof_long_long=0
5234 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5235 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5236 cat >>confdefs.h <<_ACEOF
5237 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5238 _ACEOF
5242 case 2 in
5243 $ac_cv_sizeof_short) SIZE16="short";;
5244 $ac_cv_sizeof_int) SIZE16="int";;
5245 esac
5247 case 4 in
5248 $ac_cv_sizeof_int) SIZE32="int";;
5249 $ac_cv_sizeof_long) SIZE32="long";;
5250 $ac_cv_sizeof_short) SIZE32="short";;
5251 esac
5256 OPAL_HAVE_SPEEX_H=
5257 OPAL_HAVE_SPEEX_SPEEX_H=
5259 for ac_header in "speex.h"
5261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5263 echo "$as_me:$LINENO: checking for $ac_header" >&5
5264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5270 else
5271 # Is the header compilable?
5272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 $ac_includes_default
5281 #include <$ac_header>
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>conftest.er1
5286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -z "$ac_c_werror_flag"
5293 || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_header_compiler=yes
5306 else
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 ac_header_compiler=no
5312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5314 echo "${ECHO_T}$ac_header_compiler" >&6
5316 # Is the header present?
5317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <$ac_header>
5326 _ACEOF
5327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null; then
5335 if test -s conftest.err; then
5336 ac_cpp_err=$ac_c_preproc_warn_flag
5337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5338 else
5339 ac_cpp_err=
5341 else
5342 ac_cpp_err=yes
5344 if test -z "$ac_cpp_err"; then
5345 ac_header_preproc=yes
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 ac_header_preproc=no
5352 rm -f conftest.err conftest.$ac_ext
5353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5354 echo "${ECHO_T}$ac_header_preproc" >&6
5356 # So? What about this header?
5357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5358 yes:no: )
5359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5363 ac_header_preproc=yes
5365 no:yes:* )
5366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5379 cat <<\_ASBOX
5380 ## ------------------------------------------ ##
5381 ## Report this to the AC_PACKAGE_NAME lists. ##
5382 ## ------------------------------------------ ##
5383 _ASBOX
5385 sed "s/^/$as_me: WARNING: /" >&2
5387 esac
5388 echo "$as_me:$LINENO: checking for $ac_header" >&5
5389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 eval "$as_ac_Header=\$ac_header_preproc"
5395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5400 cat >>confdefs.h <<_ACEOF
5401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5402 _ACEOF
5403 OPAL_HAVE_SPEEX_H=1
5406 done
5408 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5409 cat >>confdefs.h <<\_ACEOF
5410 #define OPAL_HAVE_SPEEX_H 1
5411 _ACEOF
5413 else
5415 for ac_header in "speex/speex.h"
5417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo "$as_me:$LINENO: checking for $ac_header" >&5
5420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5426 else
5427 # Is the header compilable?
5428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h. */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 #include <$ac_header>
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -z "$ac_c_werror_flag"
5449 || test ! -s conftest.err'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 (eval $ac_try) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 ac_header_compiler=yes
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 ac_header_compiler=no
5468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5470 echo "${ECHO_T}$ac_header_compiler" >&6
5472 # Is the header present?
5473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <$ac_header>
5482 _ACEOF
5483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } >/dev/null; then
5491 if test -s conftest.err; then
5492 ac_cpp_err=$ac_c_preproc_warn_flag
5493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5494 else
5495 ac_cpp_err=
5497 else
5498 ac_cpp_err=yes
5500 if test -z "$ac_cpp_err"; then
5501 ac_header_preproc=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_header_preproc=no
5508 rm -f conftest.err conftest.$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5510 echo "${ECHO_T}$ac_header_preproc" >&6
5512 # So? What about this header?
5513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5514 yes:no: )
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5519 ac_header_preproc=yes
5521 no:yes:* )
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5535 cat <<\_ASBOX
5536 ## ------------------------------------------ ##
5537 ## Report this to the AC_PACKAGE_NAME lists. ##
5538 ## ------------------------------------------ ##
5539 _ASBOX
5541 sed "s/^/$as_me: WARNING: /" >&2
5543 esac
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549 eval "$as_ac_Header=\$ac_header_preproc"
5551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5556 cat >>confdefs.h <<_ACEOF
5557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558 _ACEOF
5559 OPAL_HAVE_SPEEX_SPEEX_H=1
5562 done
5564 if test "${OPAL_HAVE_SPEEX_SPEEX_H}x" != "x" ; then
5565 cat >>confdefs.h <<\_ACEOF
5566 #define OPAL_HAVE_SPEEX_SPEEX_H 1
5567 _ACEOF
5572 if test "${localspeex}" = "yes" ; then
5573 { echo "$as_me:$LINENO: Forcing use of OPAL Speex sources" >&5
5574 echo "$as_me: Forcing use of OPAL Speex sources" >&6;}
5575 elif test "${localspeex}" = "no" ; then
5576 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
5577 echo "$as_me: Forcing use of system Speex library" >&6;}
5578 cat >>confdefs.h <<\_ACEOF
5579 #define OPAL_SYSTEM_SPEEX 1
5580 _ACEOF
5582 OPAL_SYSTEM_SPEEX=1
5584 else
5585 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
5586 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
5587 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590 ac_check_lib_save_LIBS=$LIBS
5591 LIBS="-lspeex $LIBS"
5592 cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h. */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5599 /* Override any gcc2 internal prototype to avoid an error. */
5600 #ifdef __cplusplus
5601 extern "C"
5602 #endif
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5605 char speex_encoder_destroy ();
5607 main ()
5609 speex_encoder_destroy ();
5611 return 0;
5613 _ACEOF
5614 rm -f conftest.$ac_objext conftest$ac_exeext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616 (eval $ac_link) 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -z "$ac_c_werror_flag"
5624 || test ! -s conftest.err'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 (eval $ac_try) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; } &&
5630 { ac_try='test -s conftest$ac_exeext'
5631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 (eval $ac_try) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 ac_cv_lib_speex_speex_encoder_destroy=yes
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 ac_cv_lib_speex_speex_encoder_destroy=no
5643 rm -f conftest.err conftest.$ac_objext \
5644 conftest$ac_exeext conftest.$ac_ext
5645 LIBS=$ac_check_lib_save_LIBS
5647 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
5648 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
5649 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
5650 SPEEX=1
5653 if test "${SPEEX}x" != "x" ; then
5654 echo "$as_me:$LINENO: checking for speex_encode_int in -lspeex" >&5
5655 echo $ECHO_N "checking for speex_encode_int in -lspeex... $ECHO_C" >&6
5656 if test "${ac_cv_lib_speex_speex_encode_int+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 ac_check_lib_save_LIBS=$LIBS
5660 LIBS="-lspeex $LIBS"
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5668 /* Override any gcc2 internal prototype to avoid an error. */
5669 #ifdef __cplusplus
5670 extern "C"
5671 #endif
5672 /* We use char because int might match the return type of a gcc2
5673 builtin and then its argument prototype would still apply. */
5674 char speex_encode_int ();
5676 main ()
5678 speex_encode_int ();
5680 return 0;
5682 _ACEOF
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685 (eval $ac_link) 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag"
5693 || test ! -s conftest.err'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest$ac_exeext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_cv_lib_speex_speex_encode_int=yes
5706 else
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710 ac_cv_lib_speex_speex_encode_int=no
5712 rm -f conftest.err conftest.$ac_objext \
5713 conftest$ac_exeext conftest.$ac_ext
5714 LIBS=$ac_check_lib_save_LIBS
5716 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode_int" >&5
5717 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode_int" >&6
5718 if test $ac_cv_lib_speex_speex_encode_int = yes; then
5719 SPEEX=1
5720 else
5721 unset SPEEX
5725 if test "x$SPEEX" = "x" -o \( "${OPAL_HAVE_SPEEX_H}x" = "x" -a "${OPAL_HAVE_SPEEX_SPEEX_H}x" = "x" \); then
5726 { echo "$as_me:$LINENO: Forcing use of OPAL Speex library" >&5
5727 echo "$as_me: Forcing use of OPAL Speex library" >&6;}
5728 else
5729 echo "$as_me:$LINENO: checking system Speex version" >&5
5730 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
5731 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5732 echo "#include <speex.h>" > t.c
5733 echo "#include <speex_header.h>" >> t.c
5734 else
5735 echo "#include <speex/speex.h>" > t.c
5736 echo "#include <speex/speex_header.h>" >> t.c
5738 cat >> t.c <<C_FILE
5739 #include <stdio.h>
5740 int main(int argc,char *argv)
5742 SpeexHeader header;
5743 speex_init_header(&header, 1, 1, &speex_nb_mode);
5744 printf("%s\n", header.speex_version);
5746 C_FILE
5747 cc -o t t.c -lspeex > /dev/null 2>&1
5748 if test \! -x t ; then
5749 echo "$as_me:$LINENO: result: cannot determine - using OPAL version" >&5
5750 echo "${ECHO_T}cannot determine - using OPAL version" >&6
5751 else
5752 SYSVER=`./t`
5753 echo "$as_me:$LINENO: result: $SYSVER" >&5
5754 echo "${ECHO_T}$SYSVER" >&6
5755 echo "$as_me:$LINENO: checking library Speex version" >&5
5756 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6
5757 LIBVER=`grep "#define SPEEX_VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//' -e 's/\/.*//'`
5758 echo "$as_me:$LINENO: result: $LIBVER" >&5
5759 echo "${ECHO_T}$LIBVER" >&6
5760 echo "$as_me:$LINENO: checking Speex versions" >&5
5761 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
5762 cat > t.pl <<P_FILE
5764 \$sysver = @ARGV[0];
5765 \$libver = @ARGV[1];
5766 @lib = split /\./, \$libver;
5767 while (@lib < 3) {
5768 @lib[0+@lib] = "0";
5770 @sys = split /\./, \$sysver;
5771 while (@sys < 3) {
5772 @sys[0+@sys] = "0";
5774 \$i = 0;
5775 while (\$i < 3) {
5776 if (@sys[\$i] < @lib[\$i]) {
5777 print "0";
5778 die;
5780 \$i++;
5782 print "1";
5784 P_FILE
5785 SPEEX=`perl t.pl $SYSVER $LIBVER`
5786 rm t.pl
5787 if test "x$SPEEX" = "x0" ; then
5788 echo "$as_me:$LINENO: result: OPAL version is more recent" >&5
5789 echo "${ECHO_T}OPAL version is more recent" >&6
5790 else
5791 echo "$as_me:$LINENO: result: system version is more recent" >&5
5792 echo "${ECHO_T}system version is more recent" >&6
5793 cat >>confdefs.h <<\_ACEOF
5794 #define OPAL_SYSTEM_SPEEX 1
5795 _ACEOF
5797 OPAL_SYSTEM_SPEEX=1
5799 echo "$as_me:$LINENO: checking Speex noise type" >&5
5800 echo $ECHO_N "checking Speex noise type... $ECHO_C" >&6
5801 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5802 echo "#include <speex.h>" > t.c
5803 echo "#include <speex_preprocess.h>" >> t.c
5804 else
5805 echo "#include <speex/speex.h>" > t.c
5806 echo "#include <speex/speex_preprocess.h>" >> t.c
5808 cat >> t.c <<C_FILE
5809 #include <stdio.h>
5810 int main(int argc,char *argv)
5812 struct SpeexPreprocessState *st;
5813 spx_int16_t *x;
5814 float *echo;
5815 speex_preprocess(st, x, echo);
5817 C_FILE
5818 rm -f t
5819 cc -Werror -o t t.c -lspeex > /dev/null 2>&1
5820 if test \! -x t ; then
5821 echo "$as_me:$LINENO: result: spx_int32_t" >&5
5822 echo "${ECHO_T}spx_int32_t" >&6
5823 else
5824 echo "$as_me:$LINENO: result: float" >&5
5825 echo "${ECHO_T}float" >&6
5826 cat >>confdefs.h <<\_ACEOF
5827 #define OPAL_SPEEX_FLOAT_NOISE 1
5828 _ACEOF
5833 rm -f t t.c
5841 # Check whether --enable-audio or --disable-audio was given.
5842 if test "${enable_audio+set}" = set; then
5843 enableval="$enable_audio"
5844 audio=$enableval
5846 echo "$as_me:$LINENO: checking audio codec support" >&5
5847 echo $ECHO_N "checking audio codec support... $ECHO_C" >&6
5848 if test "$audio" = "yes" ; then
5849 OPAL_AUDIO=1
5851 cat >>confdefs.h <<\_ACEOF
5852 #define OPAL_AUDIO 1
5853 _ACEOF
5855 echo "$as_me:$LINENO: result: enabled" >&5
5856 echo "${ECHO_T}enabled" >&6
5857 else
5858 echo "$as_me:$LINENO: result: disabled" >&5
5859 echo "${ECHO_T}disabled" >&6
5865 # Check whether --enable-video or --disable-video was given.
5866 if test "${enable_video+set}" = set; then
5867 enableval="$enable_video"
5868 video=$enableval
5870 echo "$as_me:$LINENO: checking video device support" >&5
5871 echo $ECHO_N "checking video device support... $ECHO_C" >&6
5872 if test "$video" = "yes" ; then
5873 OPAL_VIDEO=1
5875 cat >>confdefs.h <<\_ACEOF
5876 #define OPAL_VIDEO 1
5877 _ACEOF
5879 echo "$as_me:$LINENO: result: enabled" >&5
5880 echo "${ECHO_T}enabled" >&6
5881 else
5882 echo "$as_me:$LINENO: result: disabled" >&5
5883 echo "${ECHO_T}disabled" >&6
5888 # Check whether --enable-sip or --disable-sip was given.
5889 if test "${enable_sip+set}" = set; then
5890 enableval="$enable_sip"
5891 sip=$enableval
5893 echo "$as_me:$LINENO: checking SIP protocol" >&5
5894 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6
5895 if test "$sip" = "yes" ; then
5896 OPAL_SIP=1
5898 cat >>confdefs.h <<\_ACEOF
5899 #define OPAL_SIP 1
5900 _ACEOF
5902 echo "$as_me:$LINENO: result: enabled" >&5
5903 echo "${ECHO_T}enabled" >&6
5904 else
5905 echo "$as_me:$LINENO: result: disabled" >&5
5906 echo "${ECHO_T}disabled" >&6
5911 # Check whether --enable-h323 or --disable-h323 was given.
5912 if test "${enable_h323+set}" = set; then
5913 enableval="$enable_h323"
5914 h323=$enableval
5916 echo "$as_me:$LINENO: checking H.323 protocol" >&5
5917 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6
5918 if test "$h323" = "yes" ; then
5919 OPAL_H323=1
5921 cat >>confdefs.h <<\_ACEOF
5922 #define OPAL_H323 1
5923 _ACEOF
5925 echo "$as_me:$LINENO: result: enabled" >&5
5926 echo "${ECHO_T}enabled" >&6
5927 else
5928 OPAL_H323=0
5930 echo "$as_me:$LINENO: result: disabled (T.38, H.224, H.460 also disabled)" >&5
5931 echo "${ECHO_T}disabled (T.38, H.224, H.460 also disabled)" >&6
5932 h224=no
5933 h460=no
5935 OPAL_H323=$OPAL_H323
5940 # Check whether --enable-iax or --disable-iax was given.
5941 if test "${enable_iax+set}" = set; then
5942 enableval="$enable_iax"
5943 iax=$enableval
5945 echo "$as_me:$LINENO: checking IAX2 protocol" >&5
5946 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6
5947 if test "$iax" = "yes" ; then
5948 OPAL_IAX2=1
5950 cat >>confdefs.h <<\_ACEOF
5951 #define OPAL_IAX2 1
5952 _ACEOF
5954 echo "$as_me:$LINENO: result: enabled" >&5
5955 echo "${ECHO_T}enabled" >&6
5956 else
5957 echo "$as_me:$LINENO: result: disabled" >&5
5958 echo "${ECHO_T}disabled" >&6
5963 # Check whether --enable-h224 or --disable-h224 was given.
5964 if test "${enable_h224+set}" = set; then
5965 enableval="$enable_h224"
5966 h224=$enableval
5968 echo "$as_me:$LINENO: checking H224 protocol" >&5
5969 echo $ECHO_N "checking H224 protocol... $ECHO_C" >&6
5970 if test "$h224" = "yes" ; then
5971 OPAL_H224=1
5973 cat >>confdefs.h <<\_ACEOF
5974 #define OPAL_H224 1
5975 _ACEOF
5977 echo "$as_me:$LINENO: result: enabled" >&5
5978 echo "${ECHO_T}enabled" >&6
5979 else
5980 echo "$as_me:$LINENO: result: disabled" >&5
5981 echo "${ECHO_T}disabled" >&6
5986 if test "$t38" = "yes" ; then
5987 # Check whether --enable-t38 or --disable-t38 was given.
5988 if test "${enable_t38+set}" = set; then
5989 enableval="$enable_t38"
5990 t38=$enableval
5992 echo "$as_me:$LINENO: checking T.38 protocol" >&5
5993 echo $ECHO_N "checking T.38 protocol... $ECHO_C" >&6
5994 if test "$t38" = "yes" ; then
5995 OPAL_T38FAX=1
5997 cat >>confdefs.h <<\_ACEOF
5998 #define OPAL_T38FAX 1
5999 _ACEOF
6001 echo "$as_me:$LINENO: result: enabled" >&5
6002 echo "${ECHO_T}enabled" >&6
6003 else
6004 echo "$as_me:$LINENO: result: disabled" >&5
6005 echo "${ECHO_T}disabled" >&6
6012 OPAL_450=
6013 if test "$h450" = "yes" ; then
6014 # Check whether --enable-h450 or --disable-h450 was given.
6015 if test "${enable_h450+set}" = set; then
6016 enableval="$enable_h450"
6017 h450=$enableval
6019 echo "$as_me:$LINENO: checking H.450 support" >&5
6020 echo $ECHO_N "checking H.450 support... $ECHO_C" >&6
6021 if test "$h450" = "yes" ; then
6022 OPAL_H450=1
6024 cat >>confdefs.h <<\_ACEOF
6025 #define OPAL_H450 1
6026 _ACEOF
6028 echo "$as_me:$LINENO: result: enabled" >&5
6029 echo "${ECHO_T}enabled" >&6
6030 else
6031 echo "$as_me:$LINENO: result: disabled" >&5
6032 echo "${ECHO_T}disabled" >&6
6039 OPAL_460=
6040 if test "$h460" = "yes" ; then
6041 # Check whether --enable-h460 or --disable-h460 was given.
6042 if test "${enable_h460+set}" = set; then
6043 enableval="$enable_h460"
6044 h460=$enableval
6046 echo "$as_me:$LINENO: checking H.460 support" >&5
6047 echo $ECHO_N "checking H.460 support... $ECHO_C" >&6
6048 if test "$h460" = "yes" ; then
6049 OPAL_H460=1
6051 cat >>confdefs.h <<\_ACEOF
6052 #define OPAL_H460 1
6053 _ACEOF
6055 echo "$as_me:$LINENO: result: enabled" >&5
6056 echo "${ECHO_T}enabled" >&6
6057 else
6058 echo "$as_me:$LINENO: result: disabled" >&5
6059 echo "${ECHO_T}disabled" >&6
6066 OPAL_LID=
6067 lid=yes
6068 if test "$lid" = "yes" ; then
6069 # Check whether --enable-lid or --disable-lid was given.
6070 if test "${enable_lid+set}" = set; then
6071 enableval="$enable_lid"
6072 lid=$enableval
6074 echo "$as_me:$LINENO: checking LID support" >&5
6075 echo $ECHO_N "checking LID support... $ECHO_C" >&6
6076 if test "$lid" = "yes" ; then
6077 cat >>confdefs.h <<\_ACEOF
6078 #define OPAL_LID 1
6079 _ACEOF
6081 OPAL_LID=1
6082 echo "$as_me:$LINENO: result: enabled" >&5
6083 echo "${ECHO_T}enabled" >&6
6084 else
6085 echo "$as_me:$LINENO: result: disabled" >&5
6086 echo "${ECHO_T}disabled" >&6
6093 OPAL_ivr=
6094 ivr=yes
6095 if test "$ivr" = "yes" ; then
6096 # Check whether --enable-ivr or --disable-ivr was given.
6097 if test "${enable_ivr+set}" = set; then
6098 enableval="$enable_ivr"
6099 ivr=$enableval
6101 echo "$as_me:$LINENO: checking IVR support" >&5
6102 echo $ECHO_N "checking IVR support... $ECHO_C" >&6
6103 if test "$ivr" = "yes" ; then
6104 cat >>confdefs.h <<\_ACEOF
6105 #define OPAL_IVR 1
6106 _ACEOF
6108 OPAL_IVR=1
6109 echo "$as_me:$LINENO: result: enabled" >&5
6110 echo "${ECHO_T}enabled" >&6
6111 else
6112 echo "$as_me:$LINENO: result: disabled" >&5
6113 echo "${ECHO_T}disabled" >&6
6123 HAS_LIBZRTP=
6130 HAS_LIBSRTP=
6131 echo "$as_me:$LINENO: checking for libSRTP" >&5
6132 echo $ECHO_N "checking for libSRTP... $ECHO_C" >&6
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #include "srtp/srtp.h"
6141 main ()
6143 int main(int argc, char *argv[]) { crypto_policy_t p; p.cipher_key_len = SRTP_MASTER_KEY_LEN; return 0; }
6145 return 0;
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150 (eval $ac_compile) 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try='test -z "$ac_c_werror_flag"
6158 || test ! -s conftest.err'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 HAS_LIBSRTP=1
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6177 if test "${HAS_LIBSRTP}" = "1" ; then
6178 echo "$as_me:$LINENO: result: yes" >&5
6179 echo "${ECHO_T}yes" >&6
6180 cat >>confdefs.h <<\_ACEOF
6181 #define HAS_LIBSRTP 1
6182 _ACEOF
6184 HAS_LIBSRTP=1
6185 OPAL_SRTP=1
6186 else
6187 echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6196 ac_aux_dir=
6197 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6198 if test -f $ac_dir/install-sh; then
6199 ac_aux_dir=$ac_dir
6200 ac_install_sh="$ac_aux_dir/install-sh -c"
6201 break
6202 elif test -f $ac_dir/install.sh; then
6203 ac_aux_dir=$ac_dir
6204 ac_install_sh="$ac_aux_dir/install.sh -c"
6205 break
6206 elif test -f $ac_dir/shtool; then
6207 ac_aux_dir=$ac_dir
6208 ac_install_sh="$ac_aux_dir/shtool install -c"
6209 break
6211 done
6212 if test -z "$ac_aux_dir"; then
6213 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6214 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6215 { (exit 1); exit 1; }; }
6217 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6218 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6219 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6221 # Find a good install program. We prefer a C program (faster),
6222 # so one script is as good as another. But avoid the broken or
6223 # incompatible versions:
6224 # SysV /etc/install, /usr/sbin/install
6225 # SunOS /usr/etc/install
6226 # IRIX /sbin/install
6227 # AIX /bin/install
6228 # AmigaOS /C/install, which installs bootblocks on floppy discs
6229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6232 # OS/2's system install, which has a completely different semantic
6233 # ./install, which can be erroneously created by make from ./install.sh.
6234 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6235 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6236 if test -z "$INSTALL"; then
6237 if test "${ac_cv_path_install+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 # Account for people who put trailing slashes in PATH elements.
6246 case $as_dir/ in
6247 ./ | .// | /cC/* | \
6248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6249 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6250 /usr/ucb/* ) ;;
6252 # OSF1 and SCO ODT 3.0 have their own names for install.
6253 # Don't use installbsd from OSF since it installs stuff as root
6254 # by default.
6255 for ac_prog in ginstall scoinst install; do
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6258 if test $ac_prog = install &&
6259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6260 # AIX install. It has an incompatible calling convention.
6262 elif test $ac_prog = install &&
6263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6264 # program-specific install script used by HP pwplus--don't use.
6266 else
6267 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6268 break 3
6271 done
6272 done
6274 esac
6275 done
6279 if test "${ac_cv_path_install+set}" = set; then
6280 INSTALL=$ac_cv_path_install
6281 else
6282 # As a last resort, use the slow shell script. We don't cache a
6283 # path for INSTALL within a source directory, because that will
6284 # break other packages using the cache if that directory is
6285 # removed, or if the path is relative.
6286 INSTALL=$ac_install_sh
6289 echo "$as_me:$LINENO: result: $INSTALL" >&5
6290 echo "${ECHO_T}$INSTALL" >&6
6292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6293 # It thinks the first close brace ends the variable substitution.
6294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6304 subdirs="$subdirs plugins"
6308 ac_config_files="$ac_config_files opal_inc.mak"
6310 ac_config_files="$ac_config_files Makefile"
6312 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
6314 ac_config_files="$ac_config_files opal.pc"
6316 ac_config_files="$ac_config_files opal.spec"
6318 ac_config_files="$ac_config_files opal_cfg.dxy"
6321 ac_config_files="$ac_config_files src/codec/speex/libspeex/speex_config_types.h"
6322 cat >confcache <<\_ACEOF
6323 # This file is a shell script that caches the results of configure
6324 # tests run on this system so they can be shared between configure
6325 # scripts and configure runs, see configure's option --config-cache.
6326 # It is not useful on other systems. If it contains results you don't
6327 # want to keep, you may remove or edit it.
6329 # config.status only pays attention to the cache file if you give it
6330 # the --recheck option to rerun configure.
6332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6334 # following values.
6336 _ACEOF
6338 # The following way of writing the cache mishandles newlines in values,
6339 # but we know of no workaround that is simple, portable, and efficient.
6340 # So, don't put newlines in cache variables' values.
6341 # Ultrix sh set writes to stderr and can't be redirected directly,
6342 # and sets the high bit in the cache file unless we assign to the vars.
6344 (set) 2>&1 |
6345 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6346 *ac_space=\ *)
6347 # `set' does not quote correctly, so add quotes (double-quote
6348 # substitution turns \\\\ into \\, and sed turns \\ into \).
6349 sed -n \
6350 "s/'/'\\\\''/g;
6351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6354 # `set' quotes correctly as required by POSIX, so do not add quotes.
6355 sed -n \
6356 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6358 esac;
6360 sed '
6361 t clear
6362 : clear
6363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6364 t end
6365 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6366 : end' >>confcache
6367 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6368 if test -w $cache_file; then
6369 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6370 cat confcache >$cache_file
6371 else
6372 echo "not updating unwritable cache $cache_file"
6375 rm -f confcache
6377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6378 # Let make expand exec_prefix.
6379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6381 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6382 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6383 # trailing colons and then remove the whole line if VPATH becomes empty
6384 # (actually we leave an empty line to preserve line numbers).
6385 if test "x$srcdir" = x.; then
6386 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6387 s/:*\$(srcdir):*/:/;
6388 s/:*\${srcdir}:*/:/;
6389 s/:*@srcdir@:*/:/;
6390 s/^\([^=]*=[ ]*\):*/\1/;
6391 s/:*$//;
6392 s/^[^=]*=[ ]*$//;
6396 DEFS=-DHAVE_CONFIG_H
6398 ac_libobjs=
6399 ac_ltlibobjs=
6400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6401 # 1. Remove the extension, and $U if already installed.
6402 ac_i=`echo "$ac_i" |
6403 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6404 # 2. Add them.
6405 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6406 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6407 done
6408 LIBOBJS=$ac_libobjs
6410 LTLIBOBJS=$ac_ltlibobjs
6414 : ${CONFIG_STATUS=./config.status}
6415 ac_clean_files_save=$ac_clean_files
6416 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6417 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6418 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6419 cat >$CONFIG_STATUS <<_ACEOF
6420 #! $SHELL
6421 # Generated by $as_me.
6422 # Run this file to recreate the current configuration.
6423 # Compiler output produced by configure, useful for debugging
6424 # configure, is in config.log if it exists.
6426 debug=false
6427 ac_cs_recheck=false
6428 ac_cs_silent=false
6429 SHELL=\${CONFIG_SHELL-$SHELL}
6430 _ACEOF
6432 cat >>$CONFIG_STATUS <<\_ACEOF
6433 ## --------------------- ##
6434 ## M4sh Initialization. ##
6435 ## --------------------- ##
6437 # Be Bourne compatible
6438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6439 emulate sh
6440 NULLCMD=:
6441 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6442 # is contrary to our usage. Disable this feature.
6443 alias -g '${1+"$@"}'='"$@"'
6444 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6445 set -o posix
6447 DUALCASE=1; export DUALCASE # for MKS sh
6449 # Support unset when possible.
6450 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6451 as_unset=unset
6452 else
6453 as_unset=false
6457 # Work around bugs in pre-3.0 UWIN ksh.
6458 $as_unset ENV MAIL MAILPATH
6459 PS1='$ '
6460 PS2='> '
6461 PS4='+ '
6463 # NLS nuisances.
6464 for as_var in \
6465 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6466 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6467 LC_TELEPHONE LC_TIME
6469 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6470 eval $as_var=C; export $as_var
6471 else
6472 $as_unset $as_var
6474 done
6476 # Required to use basename.
6477 if expr a : '\(a\)' >/dev/null 2>&1; then
6478 as_expr=expr
6479 else
6480 as_expr=false
6483 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6484 as_basename=basename
6485 else
6486 as_basename=false
6490 # Name of the executable.
6491 as_me=`$as_basename "$0" ||
6492 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6493 X"$0" : 'X\(//\)$' \| \
6494 X"$0" : 'X\(/\)$' \| \
6495 . : '\(.\)' 2>/dev/null ||
6496 echo X/"$0" |
6497 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6498 /^X\/\(\/\/\)$/{ s//\1/; q; }
6499 /^X\/\(\/\).*/{ s//\1/; q; }
6500 s/.*/./; q'`
6503 # PATH needs CR, and LINENO needs CR and PATH.
6504 # Avoid depending upon Character Ranges.
6505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6508 as_cr_digits='0123456789'
6509 as_cr_alnum=$as_cr_Letters$as_cr_digits
6511 # The user is always right.
6512 if test "${PATH_SEPARATOR+set}" != set; then
6513 echo "#! /bin/sh" >conf$$.sh
6514 echo "exit 0" >>conf$$.sh
6515 chmod +x conf$$.sh
6516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6517 PATH_SEPARATOR=';'
6518 else
6519 PATH_SEPARATOR=:
6521 rm -f conf$$.sh
6525 as_lineno_1=$LINENO
6526 as_lineno_2=$LINENO
6527 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6528 test "x$as_lineno_1" != "x$as_lineno_2" &&
6529 test "x$as_lineno_3" = "x$as_lineno_2" || {
6530 # Find who we are. Look in the path if we contain no path at all
6531 # relative or not.
6532 case $0 in
6533 *[\\/]* ) as_myself=$0 ;;
6534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6540 done
6543 esac
6544 # We did not find ourselves, most probably we were run as `sh COMMAND'
6545 # in which case we are not to be found in the path.
6546 if test "x$as_myself" = x; then
6547 as_myself=$0
6549 if test ! -f "$as_myself"; then
6550 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6551 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6552 { (exit 1); exit 1; }; }
6554 case $CONFIG_SHELL in
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for as_base in sh bash ksh sh5; do
6562 case $as_dir in
6564 if ("$as_dir/$as_base" -c '
6565 as_lineno_1=$LINENO
6566 as_lineno_2=$LINENO
6567 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6568 test "x$as_lineno_1" != "x$as_lineno_2" &&
6569 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6570 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6571 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6572 CONFIG_SHELL=$as_dir/$as_base
6573 export CONFIG_SHELL
6574 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6575 fi;;
6576 esac
6577 done
6578 done
6580 esac
6582 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6583 # uniformly replaced by the line number. The first 'sed' inserts a
6584 # line-number line before each line; the second 'sed' does the real
6585 # work. The second script uses 'N' to pair each line-number line
6586 # with the numbered line, and appends trailing '-' during
6587 # substitution so that $LINENO is not a special case at line end.
6588 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6589 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6590 sed '=' <$as_myself |
6591 sed '
6593 s,$,-,
6594 : loop
6595 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6596 t loop
6597 s,-$,,
6598 s,^['$as_cr_digits']*\n,,
6599 ' >$as_me.lineno &&
6600 chmod +x $as_me.lineno ||
6601 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6602 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6603 { (exit 1); exit 1; }; }
6605 # Don't try to exec as it changes $[0], causing all sort of problems
6606 # (the dirname of $[0] is not the place where we might find the
6607 # original and so on. Autoconf is especially sensible to this).
6608 . ./$as_me.lineno
6609 # Exit status is that of the last command.
6610 exit
6614 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6615 *c*,-n*) ECHO_N= ECHO_C='
6616 ' ECHO_T=' ' ;;
6617 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6618 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6619 esac
6621 if expr a : '\(a\)' >/dev/null 2>&1; then
6622 as_expr=expr
6623 else
6624 as_expr=false
6627 rm -f conf$$ conf$$.exe conf$$.file
6628 echo >conf$$.file
6629 if ln -s conf$$.file conf$$ 2>/dev/null; then
6630 # We could just check for DJGPP; but this test a) works b) is more generic
6631 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6632 if test -f conf$$.exe; then
6633 # Don't use ln at all; we don't have any links
6634 as_ln_s='cp -p'
6635 else
6636 as_ln_s='ln -s'
6638 elif ln conf$$.file conf$$ 2>/dev/null; then
6639 as_ln_s=ln
6640 else
6641 as_ln_s='cp -p'
6643 rm -f conf$$ conf$$.exe conf$$.file
6645 if mkdir -p . 2>/dev/null; then
6646 as_mkdir_p=:
6647 else
6648 test -d ./-p && rmdir ./-p
6649 as_mkdir_p=false
6652 as_executable_p="test -f"
6654 # Sed expression to map a string onto a valid CPP name.
6655 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6657 # Sed expression to map a string onto a valid variable name.
6658 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6661 # IFS
6662 # We need space, tab and new line, in precisely that order.
6663 as_nl='
6665 IFS=" $as_nl"
6667 # CDPATH.
6668 $as_unset CDPATH
6670 exec 6>&1
6672 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6673 # report actual input values of CONFIG_FILES etc. instead of their
6674 # values after options handling. Logging --version etc. is OK.
6675 exec 5>>config.log
6677 echo
6678 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6679 ## Running $as_me. ##
6680 _ASBOX
6681 } >&5
6682 cat >&5 <<_CSEOF
6684 This file was extended by $as_me, which was
6685 generated by GNU Autoconf 2.59. Invocation command line was
6687 CONFIG_FILES = $CONFIG_FILES
6688 CONFIG_HEADERS = $CONFIG_HEADERS
6689 CONFIG_LINKS = $CONFIG_LINKS
6690 CONFIG_COMMANDS = $CONFIG_COMMANDS
6691 $ $0 $@
6693 _CSEOF
6694 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6695 echo >&5
6696 _ACEOF
6698 # Files that config.status was made for.
6699 if test -n "$ac_config_files"; then
6700 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6703 if test -n "$ac_config_headers"; then
6704 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6707 if test -n "$ac_config_links"; then
6708 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6711 if test -n "$ac_config_commands"; then
6712 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6715 cat >>$CONFIG_STATUS <<\_ACEOF
6717 ac_cs_usage="\
6718 \`$as_me' instantiates files from templates according to the
6719 current configuration.
6721 Usage: $0 [OPTIONS] [FILE]...
6723 -h, --help print this help, then exit
6724 -V, --version print version number, then exit
6725 -q, --quiet do not print progress messages
6726 -d, --debug don't remove temporary files
6727 --recheck update $as_me by reconfiguring in the same conditions
6728 --file=FILE[:TEMPLATE]
6729 instantiate the configuration file FILE
6730 --header=FILE[:TEMPLATE]
6731 instantiate the configuration header FILE
6733 Configuration files:
6734 $config_files
6736 Configuration headers:
6737 $config_headers
6739 Report bugs to <bug-autoconf@gnu.org>."
6740 _ACEOF
6742 cat >>$CONFIG_STATUS <<_ACEOF
6743 ac_cs_version="\\
6744 config.status
6745 configured by $0, generated by GNU Autoconf 2.59,
6746 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6748 Copyright (C) 2003 Free Software Foundation, Inc.
6749 This config.status script is free software; the Free Software Foundation
6750 gives unlimited permission to copy, distribute and modify it."
6751 srcdir=$srcdir
6752 INSTALL="$INSTALL"
6753 _ACEOF
6755 cat >>$CONFIG_STATUS <<\_ACEOF
6756 # If no file are specified by the user, then we need to provide default
6757 # value. By we need to know if files were specified by the user.
6758 ac_need_defaults=:
6759 while test $# != 0
6761 case $1 in
6762 --*=*)
6763 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6764 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6765 ac_shift=:
6768 ac_option=$1
6769 ac_optarg=$2
6770 ac_shift=shift
6772 *) # This is not an option, so the user has probably given explicit
6773 # arguments.
6774 ac_option=$1
6775 ac_need_defaults=false;;
6776 esac
6778 case $ac_option in
6779 # Handling of the options.
6780 _ACEOF
6781 cat >>$CONFIG_STATUS <<\_ACEOF
6782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6783 ac_cs_recheck=: ;;
6784 --version | --vers* | -V )
6785 echo "$ac_cs_version"; exit 0 ;;
6786 --he | --h)
6787 # Conflict between --help and --header
6788 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6789 Try \`$0 --help' for more information." >&5
6790 echo "$as_me: error: ambiguous option: $1
6791 Try \`$0 --help' for more information." >&2;}
6792 { (exit 1); exit 1; }; };;
6793 --help | --hel | -h )
6794 echo "$ac_cs_usage"; exit 0 ;;
6795 --debug | --d* | -d )
6796 debug=: ;;
6797 --file | --fil | --fi | --f )
6798 $ac_shift
6799 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6800 ac_need_defaults=false;;
6801 --header | --heade | --head | --hea )
6802 $ac_shift
6803 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6804 ac_need_defaults=false;;
6805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6806 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6807 ac_cs_silent=: ;;
6809 # This is an error.
6810 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6811 Try \`$0 --help' for more information." >&5
6812 echo "$as_me: error: unrecognized option: $1
6813 Try \`$0 --help' for more information." >&2;}
6814 { (exit 1); exit 1; }; } ;;
6816 *) ac_config_targets="$ac_config_targets $1" ;;
6818 esac
6819 shift
6820 done
6822 ac_configure_extra_args=
6824 if $ac_cs_silent; then
6825 exec 6>/dev/null
6826 ac_configure_extra_args="$ac_configure_extra_args --silent"
6829 _ACEOF
6830 cat >>$CONFIG_STATUS <<_ACEOF
6831 if \$ac_cs_recheck; then
6832 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6833 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6836 _ACEOF
6842 cat >>$CONFIG_STATUS <<\_ACEOF
6843 for ac_config_target in $ac_config_targets
6845 case "$ac_config_target" in
6846 # Handling of arguments.
6847 "opal_inc.mak" ) CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
6848 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6849 "opal.pc" ) CONFIG_FILES="$CONFIG_FILES opal.pc" ;;
6850 "opal.spec" ) CONFIG_FILES="$CONFIG_FILES opal.spec" ;;
6851 "opal_cfg.dxy" ) CONFIG_FILES="$CONFIG_FILES opal_cfg.dxy" ;;
6852 "src/codec/speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES src/codec/speex/libspeex/speex_config_types.h" ;;
6853 "include/opal/buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
6854 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6855 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6856 { (exit 1); exit 1; }; };;
6857 esac
6858 done
6860 # If the user did not use the arguments to specify the items to instantiate,
6861 # then the envvar interface is used. Set only those that are not.
6862 # We use the long form for the default assignment because of an extremely
6863 # bizarre bug on SunOS 4.1.3.
6864 if $ac_need_defaults; then
6865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6869 # Have a temporary directory for convenience. Make it in the build tree
6870 # simply because there is no reason to put it here, and in addition,
6871 # creating and moving files from /tmp can sometimes cause problems.
6872 # Create a temporary directory, and hook for its removal unless debugging.
6873 $debug ||
6875 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6876 trap '{ (exit 1); exit 1; }' 1 2 13 15
6879 # Create a (secure) tmp directory for tmp files.
6882 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6883 test -n "$tmp" && test -d "$tmp"
6884 } ||
6886 tmp=./confstat$$-$RANDOM
6887 (umask 077 && mkdir $tmp)
6888 } ||
6890 echo "$me: cannot create a temporary directory in ." >&2
6891 { (exit 1); exit 1; }
6894 _ACEOF
6896 cat >>$CONFIG_STATUS <<_ACEOF
6899 # CONFIG_FILES section.
6902 # No need to generate the scripts if there are no CONFIG_FILES.
6903 # This happens for instance when ./config.status config.h
6904 if test -n "\$CONFIG_FILES"; then
6905 # Protect against being on the right side of a sed subst in config.status.
6906 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6907 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6908 s,@SHELL@,$SHELL,;t t
6909 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6910 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6911 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6912 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6913 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6914 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6915 s,@exec_prefix@,$exec_prefix,;t t
6916 s,@prefix@,$prefix,;t t
6917 s,@program_transform_name@,$program_transform_name,;t t
6918 s,@bindir@,$bindir,;t t
6919 s,@sbindir@,$sbindir,;t t
6920 s,@libexecdir@,$libexecdir,;t t
6921 s,@datadir@,$datadir,;t t
6922 s,@sysconfdir@,$sysconfdir,;t t
6923 s,@sharedstatedir@,$sharedstatedir,;t t
6924 s,@localstatedir@,$localstatedir,;t t
6925 s,@libdir@,$libdir,;t t
6926 s,@includedir@,$includedir,;t t
6927 s,@oldincludedir@,$oldincludedir,;t t
6928 s,@infodir@,$infodir,;t t
6929 s,@mandir@,$mandir,;t t
6930 s,@build_alias@,$build_alias,;t t
6931 s,@host_alias@,$host_alias,;t t
6932 s,@target_alias@,$target_alias,;t t
6933 s,@DEFS@,$DEFS,;t t
6934 s,@ECHO_C@,$ECHO_C,;t t
6935 s,@ECHO_N@,$ECHO_N,;t t
6936 s,@ECHO_T@,$ECHO_T,;t t
6937 s,@LIBS@,$LIBS,;t t
6938 s,@CC@,$CC,;t t
6939 s,@CFLAGS@,$CFLAGS,;t t
6940 s,@LDFLAGS@,$LDFLAGS,;t t
6941 s,@CPPFLAGS@,$CPPFLAGS,;t t
6942 s,@ac_ct_CC@,$ac_ct_CC,;t t
6943 s,@EXEEXT@,$EXEEXT,;t t
6944 s,@OBJEXT@,$OBJEXT,;t t
6945 s,@CXX@,$CXX,;t t
6946 s,@CXXFLAGS@,$CXXFLAGS,;t t
6947 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6948 s,@OPALDIR@,$OPALDIR,;t t
6949 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6950 s,@LIBDIR@,$LIBDIR,;t t
6951 s,@OPAL_VERSION@,$OPAL_VERSION,;t t
6952 s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
6953 s,@PWLIBDIR@,$PWLIBDIR,;t t
6954 s,@GCC_HAS_CLZ@,$GCC_HAS_CLZ,;t t
6955 s,@CPP@,$CPP,;t t
6956 s,@EGREP@,$EGREP,;t t
6957 s,@SIZE16@,$SIZE16,;t t
6958 s,@SIZE32@,$SIZE32,;t t
6959 s,@OPAL_SYSTEM_SPEEX@,$OPAL_SYSTEM_SPEEX,;t t
6960 s,@OPAL_HAVE_SPEEX_SPEEX_H@,$OPAL_HAVE_SPEEX_SPEEX_H,;t t
6961 s,@OPAL_AUDIO@,$OPAL_AUDIO,;t t
6962 s,@OPAL_VIDEO@,$OPAL_VIDEO,;t t
6963 s,@OPAL_SIP@,$OPAL_SIP,;t t
6964 s,@OPAL_H323@,$OPAL_H323,;t t
6965 s,@OPAL_IAX2@,$OPAL_IAX2,;t t
6966 s,@OPAL_H224@,$OPAL_H224,;t t
6967 s,@OPAL_T38FAX@,$OPAL_T38FAX,;t t
6968 s,@OPAL_H450@,$OPAL_H450,;t t
6969 s,@OPAL_H460@,$OPAL_H460,;t t
6970 s,@OPAL_LID@,$OPAL_LID,;t t
6971 s,@OPAL_IVR@,$OPAL_IVR,;t t
6972 s,@OPAL_ZRTP@,$OPAL_ZRTP,;t t
6973 s,@HAS_LIBZRTP@,$HAS_LIBZRTP,;t t
6974 s,@OPAL_SRTP@,$OPAL_SRTP,;t t
6975 s,@HAS_LIBSRTP@,$HAS_LIBSRTP,;t t
6976 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
6977 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
6978 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6979 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6980 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6981 s,@subdirs@,$subdirs,;t t
6982 s,@LIBOBJS@,$LIBOBJS,;t t
6983 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6984 CEOF
6986 _ACEOF
6988 cat >>$CONFIG_STATUS <<\_ACEOF
6989 # Split the substitutions into bite-sized pieces for seds with
6990 # small command number limits, like on Digital OSF/1 and HP-UX.
6991 ac_max_sed_lines=48
6992 ac_sed_frag=1 # Number of current file.
6993 ac_beg=1 # First line for current file.
6994 ac_end=$ac_max_sed_lines # Line after last line for current file.
6995 ac_more_lines=:
6996 ac_sed_cmds=
6997 while $ac_more_lines; do
6998 if test $ac_beg -gt 1; then
6999 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7000 else
7001 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7003 if test ! -s $tmp/subs.frag; then
7004 ac_more_lines=false
7005 else
7006 # The purpose of the label and of the branching condition is to
7007 # speed up the sed processing (if there are no `@' at all, there
7008 # is no need to browse any of the substitutions).
7009 # These are the two extra sed commands mentioned above.
7010 (echo ':t
7011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7012 if test -z "$ac_sed_cmds"; then
7013 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7014 else
7015 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7017 ac_sed_frag=`expr $ac_sed_frag + 1`
7018 ac_beg=$ac_end
7019 ac_end=`expr $ac_end + $ac_max_sed_lines`
7021 done
7022 if test -z "$ac_sed_cmds"; then
7023 ac_sed_cmds=cat
7025 fi # test -n "$CONFIG_FILES"
7027 _ACEOF
7028 cat >>$CONFIG_STATUS <<\_ACEOF
7029 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7030 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7031 case $ac_file in
7032 - | *:- | *:-:* ) # input from stdin
7033 cat >$tmp/stdin
7034 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7035 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7036 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7037 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7038 * ) ac_file_in=$ac_file.in ;;
7039 esac
7041 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7042 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7043 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7044 X"$ac_file" : 'X\(//\)[^/]' \| \
7045 X"$ac_file" : 'X\(//\)$' \| \
7046 X"$ac_file" : 'X\(/\)' \| \
7047 . : '\(.\)' 2>/dev/null ||
7048 echo X"$ac_file" |
7049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7051 /^X\(\/\/\)$/{ s//\1/; q; }
7052 /^X\(\/\).*/{ s//\1/; q; }
7053 s/.*/./; q'`
7054 { if $as_mkdir_p; then
7055 mkdir -p "$ac_dir"
7056 else
7057 as_dir="$ac_dir"
7058 as_dirs=
7059 while test ! -d "$as_dir"; do
7060 as_dirs="$as_dir $as_dirs"
7061 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7063 X"$as_dir" : 'X\(//\)[^/]' \| \
7064 X"$as_dir" : 'X\(//\)$' \| \
7065 X"$as_dir" : 'X\(/\)' \| \
7066 . : '\(.\)' 2>/dev/null ||
7067 echo X"$as_dir" |
7068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7070 /^X\(\/\/\)$/{ s//\1/; q; }
7071 /^X\(\/\).*/{ s//\1/; q; }
7072 s/.*/./; q'`
7073 done
7074 test ! -n "$as_dirs" || mkdir $as_dirs
7075 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7076 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7077 { (exit 1); exit 1; }; }; }
7079 ac_builddir=.
7081 if test "$ac_dir" != .; then
7082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7083 # A "../" for each directory in $ac_dir_suffix.
7084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7085 else
7086 ac_dir_suffix= ac_top_builddir=
7089 case $srcdir in
7090 .) # No --srcdir option. We are building in place.
7091 ac_srcdir=.
7092 if test -z "$ac_top_builddir"; then
7093 ac_top_srcdir=.
7094 else
7095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7096 fi ;;
7097 [\\/]* | ?:[\\/]* ) # Absolute path.
7098 ac_srcdir=$srcdir$ac_dir_suffix;
7099 ac_top_srcdir=$srcdir ;;
7100 *) # Relative path.
7101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7103 esac
7105 # Do not use `cd foo && pwd` to compute absolute paths, because
7106 # the directories may not exist.
7107 case `pwd` in
7108 .) ac_abs_builddir="$ac_dir";;
7110 case "$ac_dir" in
7111 .) ac_abs_builddir=`pwd`;;
7112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7114 esac;;
7115 esac
7116 case $ac_abs_builddir in
7117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7119 case ${ac_top_builddir}. in
7120 .) ac_abs_top_builddir=$ac_abs_builddir;;
7121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7123 esac;;
7124 esac
7125 case $ac_abs_builddir in
7126 .) ac_abs_srcdir=$ac_srcdir;;
7128 case $ac_srcdir in
7129 .) ac_abs_srcdir=$ac_abs_builddir;;
7130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7132 esac;;
7133 esac
7134 case $ac_abs_builddir in
7135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7137 case $ac_top_srcdir in
7138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7141 esac;;
7142 esac
7145 case $INSTALL in
7146 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7147 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7148 esac
7150 if test x"$ac_file" != x-; then
7151 { echo "$as_me:$LINENO: creating $ac_file" >&5
7152 echo "$as_me: creating $ac_file" >&6;}
7153 rm -f "$ac_file"
7155 # Let's still pretend it is `configure' which instantiates (i.e., don't
7156 # use $as_me), people would be surprised to read:
7157 # /* config.h. Generated by config.status. */
7158 if test x"$ac_file" = x-; then
7159 configure_input=
7160 else
7161 configure_input="$ac_file. "
7163 configure_input=$configure_input"Generated from `echo $ac_file_in |
7164 sed 's,.*/,,'` by configure."
7166 # First look for the input files in the build tree, otherwise in the
7167 # src tree.
7168 ac_file_inputs=`IFS=:
7169 for f in $ac_file_in; do
7170 case $f in
7171 -) echo $tmp/stdin ;;
7172 [\\/$]*)
7173 # Absolute (can't be DOS-style, as IFS=:)
7174 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7175 echo "$as_me: error: cannot find input file: $f" >&2;}
7176 { (exit 1); exit 1; }; }
7177 echo "$f";;
7178 *) # Relative
7179 if test -f "$f"; then
7180 # Build tree
7181 echo "$f"
7182 elif test -f "$srcdir/$f"; then
7183 # Source tree
7184 echo "$srcdir/$f"
7185 else
7186 # /dev/null tree
7187 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7188 echo "$as_me: error: cannot find input file: $f" >&2;}
7189 { (exit 1); exit 1; }; }
7190 fi;;
7191 esac
7192 done` || { (exit 1); exit 1; }
7193 _ACEOF
7194 cat >>$CONFIG_STATUS <<_ACEOF
7195 sed "$ac_vpsub
7196 $extrasub
7197 _ACEOF
7198 cat >>$CONFIG_STATUS <<\_ACEOF
7200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7201 s,@configure_input@,$configure_input,;t t
7202 s,@srcdir@,$ac_srcdir,;t t
7203 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7204 s,@top_srcdir@,$ac_top_srcdir,;t t
7205 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7206 s,@builddir@,$ac_builddir,;t t
7207 s,@abs_builddir@,$ac_abs_builddir,;t t
7208 s,@top_builddir@,$ac_top_builddir,;t t
7209 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7210 s,@INSTALL@,$ac_INSTALL,;t t
7211 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7212 rm -f $tmp/stdin
7213 if test x"$ac_file" != x-; then
7214 mv $tmp/out $ac_file
7215 else
7216 cat $tmp/out
7217 rm -f $tmp/out
7220 done
7221 _ACEOF
7222 cat >>$CONFIG_STATUS <<\_ACEOF
7225 # CONFIG_HEADER section.
7228 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7229 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7231 # ac_d sets the value in "#define NAME VALUE" lines.
7232 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7233 ac_dB='[ ].*$,\1#\2'
7234 ac_dC=' '
7235 ac_dD=',;t'
7236 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7237 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7238 ac_uB='$,\1#\2define\3'
7239 ac_uC=' '
7240 ac_uD=',;t'
7242 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7243 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7244 case $ac_file in
7245 - | *:- | *:-:* ) # input from stdin
7246 cat >$tmp/stdin
7247 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7248 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7249 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7251 * ) ac_file_in=$ac_file.in ;;
7252 esac
7254 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7255 echo "$as_me: creating $ac_file" >&6;}
7257 # First look for the input files in the build tree, otherwise in the
7258 # src tree.
7259 ac_file_inputs=`IFS=:
7260 for f in $ac_file_in; do
7261 case $f in
7262 -) echo $tmp/stdin ;;
7263 [\\/$]*)
7264 # Absolute (can't be DOS-style, as IFS=:)
7265 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7266 echo "$as_me: error: cannot find input file: $f" >&2;}
7267 { (exit 1); exit 1; }; }
7268 # Do quote $f, to prevent DOS paths from being IFS'd.
7269 echo "$f";;
7270 *) # Relative
7271 if test -f "$f"; then
7272 # Build tree
7273 echo "$f"
7274 elif test -f "$srcdir/$f"; then
7275 # Source tree
7276 echo "$srcdir/$f"
7277 else
7278 # /dev/null tree
7279 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7280 echo "$as_me: error: cannot find input file: $f" >&2;}
7281 { (exit 1); exit 1; }; }
7282 fi;;
7283 esac
7284 done` || { (exit 1); exit 1; }
7285 # Remove the trailing spaces.
7286 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7288 _ACEOF
7290 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7291 # `conftest.undefs', that substitutes the proper values into
7292 # config.h.in to produce config.h. The first handles `#define'
7293 # templates, and the second `#undef' templates.
7294 # And first: Protect against being on the right side of a sed subst in
7295 # config.status. Protect against being in an unquoted here document
7296 # in config.status.
7297 rm -f conftest.defines conftest.undefs
7298 # Using a here document instead of a string reduces the quoting nightmare.
7299 # Putting comments in sed scripts is not portable.
7301 # `end' is used to avoid that the second main sed command (meant for
7302 # 0-ary CPP macros) applies to n-ary macro definitions.
7303 # See the Autoconf documentation for `clear'.
7304 cat >confdef2sed.sed <<\_ACEOF
7305 s/[\\&,]/\\&/g
7306 s,[\\$`],\\&,g
7307 t clear
7308 : clear
7309 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7310 t end
7311 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7312 : end
7313 _ACEOF
7314 # If some macros were called several times there might be several times
7315 # the same #defines, which is useless. Nevertheless, we may not want to
7316 # sort them, since we want the *last* AC-DEFINE to be honored.
7317 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7318 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7319 rm -f confdef2sed.sed
7321 # This sed command replaces #undef with comments. This is necessary, for
7322 # example, in the case of _POSIX_SOURCE, which is predefined and required
7323 # on some systems where configure will not decide to define it.
7324 cat >>conftest.undefs <<\_ACEOF
7325 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7326 _ACEOF
7328 # Break up conftest.defines because some shells have a limit on the size
7329 # of here documents, and old seds have small limits too (100 cmds).
7330 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7331 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7332 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7333 echo ' :' >>$CONFIG_STATUS
7334 rm -f conftest.tail
7335 while grep . conftest.defines >/dev/null
7337 # Write a limited-size here document to $tmp/defines.sed.
7338 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7339 # Speed up: don't consider the non `#define' lines.
7340 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7341 # Work around the forget-to-reset-the-flag bug.
7342 echo 't clr' >>$CONFIG_STATUS
7343 echo ': clr' >>$CONFIG_STATUS
7344 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7345 echo 'CEOF
7346 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7347 rm -f $tmp/in
7348 mv $tmp/out $tmp/in
7349 ' >>$CONFIG_STATUS
7350 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7351 rm -f conftest.defines
7352 mv conftest.tail conftest.defines
7353 done
7354 rm -f conftest.defines
7355 echo ' fi # grep' >>$CONFIG_STATUS
7356 echo >>$CONFIG_STATUS
7358 # Break up conftest.undefs because some shells have a limit on the size
7359 # of here documents, and old seds have small limits too (100 cmds).
7360 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7361 rm -f conftest.tail
7362 while grep . conftest.undefs >/dev/null
7364 # Write a limited-size here document to $tmp/undefs.sed.
7365 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7366 # Speed up: don't consider the non `#undef'
7367 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7368 # Work around the forget-to-reset-the-flag bug.
7369 echo 't clr' >>$CONFIG_STATUS
7370 echo ': clr' >>$CONFIG_STATUS
7371 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7372 echo 'CEOF
7373 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7374 rm -f $tmp/in
7375 mv $tmp/out $tmp/in
7376 ' >>$CONFIG_STATUS
7377 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7378 rm -f conftest.undefs
7379 mv conftest.tail conftest.undefs
7380 done
7381 rm -f conftest.undefs
7383 cat >>$CONFIG_STATUS <<\_ACEOF
7384 # Let's still pretend it is `configure' which instantiates (i.e., don't
7385 # use $as_me), people would be surprised to read:
7386 # /* config.h. Generated by config.status. */
7387 if test x"$ac_file" = x-; then
7388 echo "/* Generated by configure. */" >$tmp/config.h
7389 else
7390 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7392 cat $tmp/in >>$tmp/config.h
7393 rm -f $tmp/in
7394 if test x"$ac_file" != x-; then
7395 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7396 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7397 echo "$as_me: $ac_file is unchanged" >&6;}
7398 else
7399 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7400 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7401 X"$ac_file" : 'X\(//\)[^/]' \| \
7402 X"$ac_file" : 'X\(//\)$' \| \
7403 X"$ac_file" : 'X\(/\)' \| \
7404 . : '\(.\)' 2>/dev/null ||
7405 echo X"$ac_file" |
7406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7408 /^X\(\/\/\)$/{ s//\1/; q; }
7409 /^X\(\/\).*/{ s//\1/; q; }
7410 s/.*/./; q'`
7411 { if $as_mkdir_p; then
7412 mkdir -p "$ac_dir"
7413 else
7414 as_dir="$ac_dir"
7415 as_dirs=
7416 while test ! -d "$as_dir"; do
7417 as_dirs="$as_dir $as_dirs"
7418 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7420 X"$as_dir" : 'X\(//\)[^/]' \| \
7421 X"$as_dir" : 'X\(//\)$' \| \
7422 X"$as_dir" : 'X\(/\)' \| \
7423 . : '\(.\)' 2>/dev/null ||
7424 echo X"$as_dir" |
7425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7426 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7427 /^X\(\/\/\)$/{ s//\1/; q; }
7428 /^X\(\/\).*/{ s//\1/; q; }
7429 s/.*/./; q'`
7430 done
7431 test ! -n "$as_dirs" || mkdir $as_dirs
7432 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7433 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7434 { (exit 1); exit 1; }; }; }
7436 rm -f $ac_file
7437 mv $tmp/config.h $ac_file
7439 else
7440 cat $tmp/config.h
7441 rm -f $tmp/config.h
7443 done
7444 _ACEOF
7446 cat >>$CONFIG_STATUS <<\_ACEOF
7448 { (exit 0); exit 0; }
7449 _ACEOF
7450 chmod +x $CONFIG_STATUS
7451 ac_clean_files=$ac_clean_files_save
7454 # configure is writing to config.log, and then calls config.status.
7455 # config.status does its own redirection, appending to config.log.
7456 # Unfortunately, on DOS this fails, as config.log is still kept open
7457 # by configure, so config.status won't be able to write to it; its
7458 # output is simply discarded. So we exec the FD to /dev/null,
7459 # effectively closing config.log, so it can be properly (re)opened and
7460 # appended to by config.status. When coming back to configure, we
7461 # need to make the FD available again.
7462 if test "$no_create" != yes; then
7463 ac_cs_success=:
7464 ac_config_status_args=
7465 test "$silent" = yes &&
7466 ac_config_status_args="$ac_config_status_args --quiet"
7467 exec 5>/dev/null
7468 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7469 exec 5>>config.log
7470 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7471 # would make configure fail if this is the last instruction.
7472 $ac_cs_success || { (exit 1); exit 1; }
7476 # CONFIG_SUBDIRS section.
7478 if test "$no_recursion" != yes; then
7480 # Remove --cache-file and --srcdir arguments so they do not pile up.
7481 ac_sub_configure_args=
7482 ac_prev=
7483 for ac_arg in $ac_configure_args; do
7484 if test -n "$ac_prev"; then
7485 ac_prev=
7486 continue
7488 case $ac_arg in
7489 -cache-file | --cache-file | --cache-fil | --cache-fi \
7490 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7491 ac_prev=cache_file ;;
7492 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7493 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7494 | --c=*)
7496 --config-cache | -C)
7498 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7499 ac_prev=srcdir ;;
7500 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7503 ac_prev=prefix ;;
7504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7506 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7507 esac
7508 done
7510 # Always prepend --prefix to ensure using the same prefix
7511 # in subdir configurations.
7512 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7514 ac_popdir=`pwd`
7515 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7517 # Do not complain, so a configure script can configure whichever
7518 # parts of a large source tree are present.
7519 test -d $srcdir/$ac_dir || continue
7521 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7522 echo "$as_me: configuring in $ac_dir" >&6;}
7523 { if $as_mkdir_p; then
7524 mkdir -p "$ac_dir"
7525 else
7526 as_dir="$ac_dir"
7527 as_dirs=
7528 while test ! -d "$as_dir"; do
7529 as_dirs="$as_dir $as_dirs"
7530 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7532 X"$as_dir" : 'X\(//\)[^/]' \| \
7533 X"$as_dir" : 'X\(//\)$' \| \
7534 X"$as_dir" : 'X\(/\)' \| \
7535 . : '\(.\)' 2>/dev/null ||
7536 echo X"$as_dir" |
7537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7539 /^X\(\/\/\)$/{ s//\1/; q; }
7540 /^X\(\/\).*/{ s//\1/; q; }
7541 s/.*/./; q'`
7542 done
7543 test ! -n "$as_dirs" || mkdir $as_dirs
7544 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7545 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7546 { (exit 1); exit 1; }; }; }
7548 ac_builddir=.
7550 if test "$ac_dir" != .; then
7551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7552 # A "../" for each directory in $ac_dir_suffix.
7553 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7554 else
7555 ac_dir_suffix= ac_top_builddir=
7558 case $srcdir in
7559 .) # No --srcdir option. We are building in place.
7560 ac_srcdir=.
7561 if test -z "$ac_top_builddir"; then
7562 ac_top_srcdir=.
7563 else
7564 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7565 fi ;;
7566 [\\/]* | ?:[\\/]* ) # Absolute path.
7567 ac_srcdir=$srcdir$ac_dir_suffix;
7568 ac_top_srcdir=$srcdir ;;
7569 *) # Relative path.
7570 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7571 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7572 esac
7574 # Do not use `cd foo && pwd` to compute absolute paths, because
7575 # the directories may not exist.
7576 case `pwd` in
7577 .) ac_abs_builddir="$ac_dir";;
7579 case "$ac_dir" in
7580 .) ac_abs_builddir=`pwd`;;
7581 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7582 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7583 esac;;
7584 esac
7585 case $ac_abs_builddir in
7586 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7588 case ${ac_top_builddir}. in
7589 .) ac_abs_top_builddir=$ac_abs_builddir;;
7590 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7591 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7592 esac;;
7593 esac
7594 case $ac_abs_builddir in
7595 .) ac_abs_srcdir=$ac_srcdir;;
7597 case $ac_srcdir in
7598 .) ac_abs_srcdir=$ac_abs_builddir;;
7599 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7600 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7601 esac;;
7602 esac
7603 case $ac_abs_builddir in
7604 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7606 case $ac_top_srcdir in
7607 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7608 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7609 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7610 esac;;
7611 esac
7614 cd $ac_dir
7616 # Check for guested configure; otherwise get Cygnus style configure.
7617 if test -f $ac_srcdir/configure.gnu; then
7618 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7619 elif test -f $ac_srcdir/configure; then
7620 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7621 elif test -f $ac_srcdir/configure.in; then
7622 ac_sub_configure=$ac_configure
7623 else
7624 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7625 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7626 ac_sub_configure=
7629 # The recursion is here.
7630 if test -n "$ac_sub_configure"; then
7631 # Make the cache file name correct relative to the subdirectory.
7632 case $cache_file in
7633 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7634 *) # Relative path.
7635 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7636 esac
7638 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7639 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7640 # The eval makes quoting arguments work.
7641 eval $ac_sub_configure $ac_sub_configure_args \
7642 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7643 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7644 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7645 { (exit 1); exit 1; }; }
7648 cd $ac_popdir
7649 done