Update symbols
[opal/cbnco.git] / configure
blobc7538d191436ade5284db341b7ce9eb864fe7b0f
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 PTLIB_CONFIG PWLIBDIR 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 H323_H460 OPAL_LID OPAL_IVR 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-h460 disable H.460
862 --disable-lid disable LID support
863 --disable-ivr disable IVR support
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CXX C++ compiler command
873 CXXFLAGS C++ compiler flags
874 CPP C preprocessor
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
879 _ACEOF
882 if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
884 ac_popdir=`pwd`
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
887 ac_builddir=.
889 if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
893 else
894 ac_dir_suffix= ac_top_builddir=
897 case $srcdir in
898 .) # No --srcdir option. We are building in place.
899 ac_srcdir=.
900 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=.
902 else
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904 fi ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
908 *) # Relative path.
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911 esac
913 # Do not use `cd foo && pwd` to compute absolute paths, because
914 # the directories may not exist.
915 case `pwd` in
916 .) ac_abs_builddir="$ac_dir";;
918 case "$ac_dir" in
919 .) ac_abs_builddir=`pwd`;;
920 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
921 *) ac_abs_builddir=`pwd`/"$ac_dir";;
922 esac;;
923 esac
924 case $ac_abs_builddir in
925 .) ac_abs_top_builddir=${ac_top_builddir}.;;
927 case ${ac_top_builddir}. in
928 .) ac_abs_top_builddir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_srcdir=$ac_srcdir;;
936 case $ac_srcdir in
937 .) ac_abs_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
939 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_top_srcdir=$ac_top_srcdir;;
945 case $ac_top_srcdir in
946 .) ac_abs_top_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949 esac;;
950 esac
952 cd $ac_dir
953 # Check for guested configure; otherwise get Cygnus style configure.
954 if test -f $ac_srcdir/configure.gnu; then
955 echo
956 $SHELL $ac_srcdir/configure.gnu --help=recursive
957 elif test -f $ac_srcdir/configure; then
958 echo
959 $SHELL $ac_srcdir/configure --help=recursive
960 elif test -f $ac_srcdir/configure.ac ||
961 test -f $ac_srcdir/configure.in; then
962 echo
963 $ac_configure --help
964 else
965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 cd "$ac_popdir"
968 done
971 test -n "$ac_init_help" && exit 0
972 if $ac_init_version; then
973 cat <<\_ACEOF
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979 exit 0
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by $as_me, which was
987 generated by GNU Autoconf 2.59. Invocation command line was
989 $ $0 $@
991 _ACEOF
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 _ASUNAME
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1020 IFS=$as_save_IFS
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1023 done
1025 } >&5
1027 cat >&5 <<_ACEOF
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1034 _ACEOF
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1049 for ac_arg
1051 case $ac_arg in
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 continue ;;
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 esac
1059 case $ac_pass in
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1065 else
1066 case $ac_arg in
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 esac
1075 -* ) ac_must_keep_next=true ;;
1076 esac
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1080 ac_sep=" "
1082 esac
1083 done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1096 echo
1098 cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103 echo
1104 # The following way of writing the cache mishandles newlines in values,
1106 (set) 2>&1 |
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 *ac_space=\ *)
1109 sed -n \
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 sed -n \
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 esac;
1119 echo
1121 cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1134 if test -n "$ac_subst_files"; then
1135 cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1149 if test -s confdefs.h; then
1150 cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155 echo
1156 sed "/^$/d" confdefs.h | sort
1157 echo
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1162 } >&5
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 exit $exit_status
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 else
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1218 . "$ac_site_file"
1220 done
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228 case $cache_file in
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1231 esac
1233 else
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236 >$cache_file
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1249 set,)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,set)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,);;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1281 done
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315 ac_ext=c
1316 ac_cpp='$CPP $CPPFLAGS'
1317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 if test -n "$ac_tool_prefix"; then
1321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1323 echo "$as_me:$LINENO: checking for $ac_word" >&5
1324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 if test "${ac_cv_prog_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 else
1328 if test -n "$CC"; then
1329 ac_cv_prog_CC="$CC" # Let the user override the test.
1330 else
1331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1332 for as_dir in $PATH
1334 IFS=$as_save_IFS
1335 test -z "$as_dir" && as_dir=.
1336 for ac_exec_ext in '' $ac_executable_extensions; do
1337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1340 break 2
1342 done
1343 done
1347 CC=$ac_cv_prog_CC
1348 if test -n "$CC"; then
1349 echo "$as_me:$LINENO: result: $CC" >&5
1350 echo "${ECHO_T}$CC" >&6
1351 else
1352 echo "$as_me:$LINENO: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1357 if test -z "$ac_cv_prog_CC"; then
1358 ac_ct_CC=$CC
1359 # Extract the first word of "gcc", so it can be a program name with args.
1360 set dummy gcc; ac_word=$2
1361 echo "$as_me:$LINENO: checking for $ac_word" >&5
1362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1363 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 else
1366 if test -n "$ac_ct_CC"; then
1367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1368 else
1369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 for as_dir in $PATH
1372 IFS=$as_save_IFS
1373 test -z "$as_dir" && as_dir=.
1374 for ac_exec_ext in '' $ac_executable_extensions; do
1375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1376 ac_cv_prog_ac_ct_CC="gcc"
1377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1378 break 2
1380 done
1381 done
1385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1386 if test -n "$ac_ct_CC"; then
1387 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1388 echo "${ECHO_T}$ac_ct_CC" >&6
1389 else
1390 echo "$as_me:$LINENO: result: no" >&5
1391 echo "${ECHO_T}no" >&6
1394 CC=$ac_ct_CC
1395 else
1396 CC="$ac_cv_prog_CC"
1399 if test -z "$CC"; then
1400 if test -n "$ac_tool_prefix"; then
1401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}cc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1410 else
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 for as_dir in $PATH
1414 IFS=$as_save_IFS
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_CC="${ac_tool_prefix}cc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 break 2
1422 done
1423 done
1427 CC=$ac_cv_prog_CC
1428 if test -n "$CC"; then
1429 echo "$as_me:$LINENO: result: $CC" >&5
1430 echo "${ECHO_T}$CC" >&6
1431 else
1432 echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1437 if test -z "$ac_cv_prog_CC"; then
1438 ac_ct_CC=$CC
1439 # Extract the first word of "cc", so it can be a program name with args.
1440 set dummy cc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 if test -n "$ac_ct_CC"; then
1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_ac_ct_CC="cc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1460 done
1461 done
1465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 if test -n "$ac_ct_CC"; then
1467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468 echo "${ECHO_T}$ac_ct_CC" >&6
1469 else
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1474 CC=$ac_ct_CC
1475 else
1476 CC="$ac_cv_prog_CC"
1480 if test -z "$CC"; then
1481 # Extract the first word of "cc", so it can be a program name with args.
1482 set dummy cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 else
1491 ac_prog_rejected=no
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
1497 for ac_exec_ext in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1500 ac_prog_rejected=yes
1501 continue
1503 ac_cv_prog_CC="cc"
1504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 break 2
1507 done
1508 done
1510 if test $ac_prog_rejected = yes; then
1511 # We found a bogon in the path, so make sure we never use it.
1512 set dummy $ac_cv_prog_CC
1513 shift
1514 if test $# != 0; then
1515 # We chose a different compiler from the bogus one.
1516 # However, it has the same basename, so the bogon will be chosen
1517 # first if we set CC to just the basename; use the full file name.
1518 shift
1519 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1524 CC=$ac_cv_prog_CC
1525 if test -n "$CC"; then
1526 echo "$as_me:$LINENO: result: $CC" >&5
1527 echo "${ECHO_T}$CC" >&6
1528 else
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1534 if test -z "$CC"; then
1535 if test -n "$ac_tool_prefix"; then
1536 for ac_prog in cl
1538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1551 IFS=$as_save_IFS
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 break 2
1559 done
1560 done
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1573 test -n "$CC" && break
1574 done
1576 if test -z "$CC"; then
1577 ac_ct_CC=$CC
1578 for ac_prog in cl
1580 # Extract the first word of "$ac_prog", so it can be a program name with args.
1581 set dummy $ac_prog; ac_word=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 if test -n "$ac_ct_CC"; then
1588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589 else
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_ac_ct_CC="$ac_prog"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 break 2
1601 done
1602 done
1606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607 if test -n "$ac_ct_CC"; then
1608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1609 echo "${ECHO_T}$ac_ct_CC" >&6
1610 else
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1615 test -n "$ac_ct_CC" && break
1616 done
1618 CC=$ac_ct_CC
1624 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1625 See \`config.log' for more details." >&5
1626 echo "$as_me: error: no acceptable C compiler found in \$PATH
1627 See \`config.log' for more details." >&2;}
1628 { (exit 1); exit 1; }; }
1630 # Provide some information about the compiler.
1631 echo "$as_me:$LINENO:" \
1632 "checking for C compiler version" >&5
1633 ac_compiler=`set X $ac_compile; echo $2`
1634 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1635 (eval $ac_compiler --version </dev/null >&5) 2>&5
1636 ac_status=$?
1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638 (exit $ac_status); }
1639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1640 (eval $ac_compiler -v </dev/null >&5) 2>&5
1641 ac_status=$?
1642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643 (exit $ac_status); }
1644 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1645 (eval $ac_compiler -V </dev/null >&5) 2>&5
1646 ac_status=$?
1647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648 (exit $ac_status); }
1650 cat >conftest.$ac_ext <<_ACEOF
1651 /* confdefs.h. */
1652 _ACEOF
1653 cat confdefs.h >>conftest.$ac_ext
1654 cat >>conftest.$ac_ext <<_ACEOF
1655 /* end confdefs.h. */
1658 main ()
1662 return 0;
1664 _ACEOF
1665 ac_clean_files_save=$ac_clean_files
1666 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1667 # Try to create an executable without -o first, disregard a.out.
1668 # It will help us diagnose broken compilers, and finding out an intuition
1669 # of exeext.
1670 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1671 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1672 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1673 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1674 (eval $ac_link_default) 2>&5
1675 ac_status=$?
1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 (exit $ac_status); }; then
1678 # Find the output, starting from the most likely. This scheme is
1679 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1680 # resort.
1682 # Be careful to initialize this variable, since it used to be cached.
1683 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1684 ac_cv_exeext=
1685 # b.out is created by i960 compilers.
1686 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1688 test -f "$ac_file" || continue
1689 case $ac_file in
1690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1692 conftest.$ac_ext )
1693 # This is the source file.
1695 [ab].out )
1696 # We found the default executable, but exeext='' is most
1697 # certainly right.
1698 break;;
1699 *.* )
1700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1701 # FIXME: I believe we export ac_cv_exeext for Libtool,
1702 # but it would be cool to find out if it's true. Does anybody
1703 # maintain Libtool? --akim.
1704 export ac_cv_exeext
1705 break;;
1707 break;;
1708 esac
1709 done
1710 else
1711 echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1715 See \`config.log' for more details." >&5
1716 echo "$as_me: error: C compiler cannot create executables
1717 See \`config.log' for more details." >&2;}
1718 { (exit 77); exit 77; }; }
1721 ac_exeext=$ac_cv_exeext
1722 echo "$as_me:$LINENO: result: $ac_file" >&5
1723 echo "${ECHO_T}$ac_file" >&6
1725 # Check the compiler produces executables we can run. If not, either
1726 # the compiler is broken, or we cross compile.
1727 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1728 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1730 # If not cross compiling, check that we can run a simple program.
1731 if test "$cross_compiling" != yes; then
1732 if { ac_try='./$ac_file'
1733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1734 (eval $ac_try) 2>&5
1735 ac_status=$?
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1738 cross_compiling=no
1739 else
1740 if test "$cross_compiling" = maybe; then
1741 cross_compiling=yes
1742 else
1743 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1744 If you meant to cross compile, use \`--host'.
1745 See \`config.log' for more details." >&5
1746 echo "$as_me: error: cannot run C compiled programs.
1747 If you meant to cross compile, use \`--host'.
1748 See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1753 echo "$as_me:$LINENO: result: yes" >&5
1754 echo "${ECHO_T}yes" >&6
1756 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1757 ac_clean_files=$ac_clean_files_save
1758 # Check the compiler produces executables we can run. If not, either
1759 # the compiler is broken, or we cross compile.
1760 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1761 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1762 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1763 echo "${ECHO_T}$cross_compiling" >&6
1765 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1766 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1768 (eval $ac_link) 2>&5
1769 ac_status=$?
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; then
1772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1773 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1774 # work properly (i.e., refer to `conftest.exe'), while it won't with
1775 # `rm'.
1776 for ac_file in conftest.exe conftest conftest.*; do
1777 test -f "$ac_file" || continue
1778 case $ac_file in
1779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781 export ac_cv_exeext
1782 break;;
1783 * ) break;;
1784 esac
1785 done
1786 else
1787 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1788 See \`config.log' for more details." >&5
1789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&2;}
1791 { (exit 1); exit 1; }; }
1794 rm -f conftest$ac_cv_exeext
1795 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1796 echo "${ECHO_T}$ac_cv_exeext" >&6
1798 rm -f conftest.$ac_ext
1799 EXEEXT=$ac_cv_exeext
1800 ac_exeext=$EXEEXT
1801 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1802 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1803 if test "${ac_cv_objext+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 cat >conftest.$ac_ext <<_ACEOF
1807 /* confdefs.h. */
1808 _ACEOF
1809 cat confdefs.h >>conftest.$ac_ext
1810 cat >>conftest.$ac_ext <<_ACEOF
1811 /* end confdefs.h. */
1814 main ()
1818 return 0;
1820 _ACEOF
1821 rm -f conftest.o conftest.obj
1822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1823 (eval $ac_compile) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1828 case $ac_file in
1829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1831 break;;
1832 esac
1833 done
1834 else
1835 echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1839 See \`config.log' for more details." >&5
1840 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&2;}
1842 { (exit 1); exit 1; }; }
1845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1847 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1848 echo "${ECHO_T}$ac_cv_objext" >&6
1849 OBJEXT=$ac_cv_objext
1850 ac_objext=$OBJEXT
1851 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 cat >conftest.$ac_ext <<_ACEOF
1857 /* confdefs.h. */
1858 _ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h. */
1864 main ()
1866 #ifndef __GNUC__
1867 choke me
1868 #endif
1871 return 0;
1873 _ACEOF
1874 rm -f conftest.$ac_objext
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>conftest.er1
1877 ac_status=$?
1878 grep -v '^ *+' conftest.er1 >conftest.err
1879 rm -f conftest.er1
1880 cat conftest.err >&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); } &&
1883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885 (eval $ac_try) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; } &&
1889 { ac_try='test -s conftest.$ac_objext'
1890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891 (eval $ac_try) 2>&5
1892 ac_status=$?
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; }; then
1895 ac_compiler_gnu=yes
1896 else
1897 echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1900 ac_compiler_gnu=no
1902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1906 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1908 GCC=`test $ac_compiler_gnu = yes && echo yes`
1909 ac_test_CFLAGS=${CFLAGS+set}
1910 ac_save_CFLAGS=$CFLAGS
1911 CFLAGS="-g"
1912 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1914 if test "${ac_cv_prog_cc_g+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.$ac_ext <<_ACEOF
1918 /* confdefs.h. */
1919 _ACEOF
1920 cat confdefs.h >>conftest.$ac_ext
1921 cat >>conftest.$ac_ext <<_ACEOF
1922 /* end confdefs.h. */
1925 main ()
1929 return 0;
1931 _ACEOF
1932 rm -f conftest.$ac_objext
1933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1934 (eval $ac_compile) 2>conftest.er1
1935 ac_status=$?
1936 grep -v '^ *+' conftest.er1 >conftest.err
1937 rm -f conftest.er1
1938 cat conftest.err >&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); } &&
1941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 (eval $ac_try) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1953 ac_cv_prog_cc_g=yes
1954 else
1955 echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 ac_cv_prog_cc_g=no
1960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1962 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1963 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1964 if test "$ac_test_CFLAGS" = set; then
1965 CFLAGS=$ac_save_CFLAGS
1966 elif test $ac_cv_prog_cc_g = yes; then
1967 if test "$GCC" = yes; then
1968 CFLAGS="-g -O2"
1969 else
1970 CFLAGS="-g"
1972 else
1973 if test "$GCC" = yes; then
1974 CFLAGS="-O2"
1975 else
1976 CFLAGS=
1979 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1980 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1981 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 ac_cv_prog_cc_stdc=no
1985 ac_save_CC=$CC
1986 cat >conftest.$ac_ext <<_ACEOF
1987 /* confdefs.h. */
1988 _ACEOF
1989 cat confdefs.h >>conftest.$ac_ext
1990 cat >>conftest.$ac_ext <<_ACEOF
1991 /* end confdefs.h. */
1992 #include <stdarg.h>
1993 #include <stdio.h>
1994 #include <sys/types.h>
1995 #include <sys/stat.h>
1996 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1997 struct buf { int x; };
1998 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1999 static char *e (p, i)
2000 char **p;
2001 int i;
2003 return p[i];
2005 static char *f (char * (*g) (char **, int), char **p, ...)
2007 char *s;
2008 va_list v;
2009 va_start (v,p);
2010 s = g (p, va_arg (v,int));
2011 va_end (v);
2012 return s;
2015 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2016 function prototypes and stuff, but not '\xHH' hex character constants.
2017 These don't provoke an error unfortunately, instead are silently treated
2018 as 'x'. The following induces an error, until -std1 is added to get
2019 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2020 array size at least. It's necessary to write '\x00'==0 to get something
2021 that's true only with -std1. */
2022 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2024 int test (int i, double x);
2025 struct s1 {int (*f) (int a);};
2026 struct s2 {int (*f) (double a);};
2027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2028 int argc;
2029 char **argv;
2031 main ()
2033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2035 return 0;
2037 _ACEOF
2038 # Don't try gcc -ansi; that turns off useful extensions and
2039 # breaks some systems' header files.
2040 # AIX -qlanglvl=ansi
2041 # Ultrix and OSF/1 -std1
2042 # HP-UX 10.20 and later -Ae
2043 # HP-UX older versions -Aa -D_HPUX_SOURCE
2044 # SVR4 -Xc -D__EXTENSIONS__
2045 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2047 CC="$ac_save_CC $ac_arg"
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 ac_cv_prog_cc_stdc=$ac_arg
2070 break
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2076 rm -f conftest.err conftest.$ac_objext
2077 done
2078 rm -f conftest.$ac_ext conftest.$ac_objext
2079 CC=$ac_save_CC
2083 case "x$ac_cv_prog_cc_stdc" in
2084 x|xno)
2085 echo "$as_me:$LINENO: result: none needed" >&5
2086 echo "${ECHO_T}none needed" >&6 ;;
2088 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2089 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2090 CC="$CC $ac_cv_prog_cc_stdc" ;;
2091 esac
2093 # Some people use a C++ compiler to compile C. Since we use `exit',
2094 # in C++ we need to declare it. In case someone uses the same compiler
2095 # for both compiling C and C++ we need to have the C++ compiler decide
2096 # the declaration of exit, since it's the most demanding environment.
2097 cat >conftest.$ac_ext <<_ACEOF
2098 #ifndef __cplusplus
2099 choke me
2100 #endif
2101 _ACEOF
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>conftest.er1
2105 ac_status=$?
2106 grep -v '^ *+' conftest.er1 >conftest.err
2107 rm -f conftest.er1
2108 cat conftest.err >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); } &&
2111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; } &&
2117 { ac_try='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 for ac_declaration in \
2124 '' \
2125 'extern "C" void std::exit (int) throw (); using std::exit;' \
2126 'extern "C" void std::exit (int); using std::exit;' \
2127 'extern "C" void exit (int) throw ();' \
2128 'extern "C" void exit (int);' \
2129 'void exit (int);'
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h. */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2137 $ac_declaration
2138 #include <stdlib.h>
2140 main ()
2142 exit (42);
2144 return 0;
2146 _ACEOF
2147 rm -f conftest.$ac_objext
2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149 (eval $ac_compile) 2>conftest.er1
2150 ac_status=$?
2151 grep -v '^ *+' conftest.er1 >conftest.err
2152 rm -f conftest.er1
2153 cat conftest.err >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); } &&
2156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 (eval $ac_try) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; } &&
2162 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2169 else
2170 echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2173 continue
2175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2176 cat >conftest.$ac_ext <<_ACEOF
2177 /* confdefs.h. */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2182 $ac_declaration
2184 main ()
2186 exit (42);
2188 return 0;
2190 _ACEOF
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>conftest.er1
2194 ac_status=$?
2195 grep -v '^ *+' conftest.er1 >conftest.err
2196 rm -f conftest.er1
2197 cat conftest.err >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
2200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 break
2213 else
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219 done
2220 rm -f conftest*
2221 if test -n "$ac_declaration"; then
2222 echo '#ifdef __cplusplus' >>confdefs.h
2223 echo $ac_declaration >>confdefs.h
2224 echo '#endif' >>confdefs.h
2227 else
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 ac_ext=c
2234 ac_cpp='$CPP $CPPFLAGS'
2235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239 ac_ext=cc
2240 ac_cpp='$CXXCPP $CPPFLAGS'
2241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2244 if test -n "$ac_tool_prefix"; then
2245 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251 if test "${ac_cv_prog_CXX+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 if test -n "$CXX"; then
2255 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2268 done
2269 done
2273 CXX=$ac_cv_prog_CXX
2274 if test -n "$CXX"; then
2275 echo "$as_me:$LINENO: result: $CXX" >&5
2276 echo "${ECHO_T}$CXX" >&6
2277 else
2278 echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2282 test -n "$CXX" && break
2283 done
2285 if test -z "$CXX"; then
2286 ac_ct_CXX=$CXX
2287 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2289 # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296 if test -n "$ac_ct_CXX"; then
2297 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2298 else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306 ac_cv_prog_ac_ct_CXX="$ac_prog"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 break 2
2310 done
2311 done
2315 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2316 if test -n "$ac_ct_CXX"; then
2317 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2318 echo "${ECHO_T}$ac_ct_CXX" >&6
2319 else
2320 echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2324 test -n "$ac_ct_CXX" && break
2325 done
2326 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2328 CXX=$ac_ct_CXX
2332 # Provide some information about the compiler.
2333 echo "$as_me:$LINENO:" \
2334 "checking for C++ compiler version" >&5
2335 ac_compiler=`set X $ac_compile; echo $2`
2336 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2337 (eval $ac_compiler --version </dev/null >&5) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2342 (eval $ac_compiler -v </dev/null >&5) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2347 (eval $ac_compiler -V </dev/null >&5) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2352 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2354 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2365 main ()
2367 #ifndef __GNUC__
2368 choke me
2369 #endif
2372 return 0;
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>conftest.er1
2378 ac_status=$?
2379 grep -v '^ *+' conftest.er1 >conftest.err
2380 rm -f conftest.er1
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 ac_compiler_gnu=yes
2397 else
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2401 ac_compiler_gnu=no
2403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2404 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2407 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2408 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2409 GXX=`test $ac_compiler_gnu = yes && echo yes`
2410 ac_test_CXXFLAGS=${CXXFLAGS+set}
2411 ac_save_CXXFLAGS=$CXXFLAGS
2412 CXXFLAGS="-g"
2413 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2414 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2415 if test "${ac_cv_prog_cxx_g+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h. */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2426 main ()
2430 return 0;
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>conftest.er1
2436 ac_status=$?
2437 grep -v '^ *+' conftest.er1 >conftest.err
2438 rm -f conftest.er1
2439 cat conftest.err >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } &&
2442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 ac_cv_prog_cxx_g=yes
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2459 ac_cv_prog_cxx_g=no
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2465 if test "$ac_test_CXXFLAGS" = set; then
2466 CXXFLAGS=$ac_save_CXXFLAGS
2467 elif test $ac_cv_prog_cxx_g = yes; then
2468 if test "$GXX" = yes; then
2469 CXXFLAGS="-g -O2"
2470 else
2471 CXXFLAGS="-g"
2473 else
2474 if test "$GXX" = yes; then
2475 CXXFLAGS="-O2"
2476 else
2477 CXXFLAGS=
2480 for ac_declaration in \
2481 '' \
2482 'extern "C" void std::exit (int) throw (); using std::exit;' \
2483 'extern "C" void std::exit (int); using std::exit;' \
2484 'extern "C" void exit (int) throw ();' \
2485 'extern "C" void exit (int);' \
2486 'void exit (int);'
2488 cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h. */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494 $ac_declaration
2495 #include <stdlib.h>
2497 main ()
2499 exit (42);
2501 return 0;
2503 _ACEOF
2504 rm -f conftest.$ac_objext
2505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2506 (eval $ac_compile) 2>conftest.er1
2507 ac_status=$?
2508 grep -v '^ *+' conftest.er1 >conftest.err
2509 rm -f conftest.er1
2510 cat conftest.err >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; } &&
2519 { ac_try='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 continue
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533 cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h. */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2539 $ac_declaration
2541 main ()
2543 exit (42);
2545 return 0;
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>conftest.er1
2551 ac_status=$?
2552 grep -v '^ *+' conftest.er1 >conftest.err
2553 rm -f conftest.er1
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 (eval $ac_try) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 break
2570 else
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576 done
2577 rm -f conftest*
2578 if test -n "$ac_declaration"; then
2579 echo '#ifdef __cplusplus' >>confdefs.h
2580 echo $ac_declaration >>confdefs.h
2581 echo '#endif' >>confdefs.h
2584 ac_ext=c
2585 ac_cpp='$CPP $CPPFLAGS'
2586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 REQUIRED_PWLIB_MAJOR=1
2592 REQUIRED_PWLIB_MINOR=11
2593 REQUIRED_PWLIB_BUILD=0
2596 OPALDIR=`pwd`
2599 if test "x$prefix" = "xNONE"; then
2600 INSTALLPREFIX="/usr/local"
2601 else
2602 INSTALLPREFIX="${prefix}"
2607 LIBDIR="${libdir}"
2613 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2614 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2615 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2616 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
2617 cat >>confdefs.h <<_ACEOF
2618 #define OPAL_MAJOR ${MAJOR_VERSION}
2619 _ACEOF
2621 cat >>confdefs.h <<_ACEOF
2622 #define OPAL_MINOR ${MINOR_VERSION}
2623 _ACEOF
2625 cat >>confdefs.h <<_ACEOF
2626 #define OPAL_BUILD ${BUILD_NUMBER}
2627 _ACEOF
2629 cat >>confdefs.h <<_ACEOF
2630 #define OPAL_VERSION "$OPAL_VERSION"
2631 _ACEOF
2636 if test "${PWLIBDIR:-unset}" != "unset" ; then
2637 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
2638 echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
2639 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
2640 if eval "test \"\${$as_ac_File+set}\" = set"; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643 test "$cross_compiling" = yes &&
2644 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2645 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2646 { (exit 1); exit 1; }; }
2647 if test -r "${PWLIBDIR}/version.h"; then
2648 eval "$as_ac_File=yes"
2649 else
2650 eval "$as_ac_File=no"
2653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2654 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2655 if test `eval echo '${'$as_ac_File'}'` = yes; then
2656 HAS_PTLIB=1
2660 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2661 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
2662 echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
2663 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6
2664 if eval "test \"\${$as_ac_File+set}\" = set"; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 test "$cross_compiling" = yes &&
2668 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2669 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2670 { (exit 1); exit 1; }; }
2671 if test -r "${OPALDIR}/../pwlib/version.h"; then
2672 eval "$as_ac_File=yes"
2673 else
2674 eval "$as_ac_File=no"
2677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2678 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2679 if test `eval echo '${'$as_ac_File'}'` = yes; then
2680 HAS_PTLIB=1
2683 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2684 PWLIBDIR="${OPALDIR}/../pwlib"
2685 else
2686 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
2687 echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
2688 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
2689 if eval "test \"\${$as_ac_File+set}\" = set"; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692 test "$cross_compiling" = yes &&
2693 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2694 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2695 { (exit 1); exit 1; }; }
2696 if test -r "${HOME}/pwlib/include/ptlib.h"; then
2697 eval "$as_ac_File=yes"
2698 else
2699 eval "$as_ac_File=no"
2702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2703 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2704 if test `eval echo '${'$as_ac_File'}'` = yes; then
2705 HAS_PTLIB=1
2708 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2709 PWLIBDIR="${HOME}/pwlib"
2710 else
2711 echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
2712 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
2713 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 test "$cross_compiling" = yes &&
2717 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2718 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2719 { (exit 1); exit 1; }; }
2720 if test -r "/usr/local/include/ptlib.h"; then
2721 ac_cv_file__usr_local_include_ptlib_h=yes
2722 else
2723 ac_cv_file__usr_local_include_ptlib_h=no
2726 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
2727 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
2728 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
2729 HAS_PTLIB=1
2732 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2733 # Extract the first word of "ptlib-config", so it can be a program name with args.
2734 set dummy ptlib-config; ac_word=$2
2735 echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 case $PTLIB_CONFIG in
2741 [\\/]* | ?:[\\/]*)
2742 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in /usr/local/bin
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2756 done
2757 done
2760 esac
2762 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2764 if test -n "$PTLIB_CONFIG"; then
2765 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2766 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2767 else
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2772 else
2773 echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
2774 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
2775 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 test "$cross_compiling" = yes &&
2779 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2780 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2781 { (exit 1); exit 1; }; }
2782 if test -r "/usr/include/ptlib.h"; then
2783 ac_cv_file__usr_include_ptlib_h=yes
2784 else
2785 ac_cv_file__usr_include_ptlib_h=no
2788 echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
2789 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
2790 if test $ac_cv_file__usr_include_ptlib_h = yes; then
2791 HAS_PTLIB=1
2794 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2795 # Extract the first word of "ptlib-config", so it can be a program name with args.
2796 set dummy ptlib-config; ac_word=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 case $PTLIB_CONFIG in
2803 [\\/]* | ?:[\\/]*)
2804 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in /usr/share/pwlib/make/
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2818 done
2819 done
2822 esac
2824 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2826 if test -n "$PTLIB_CONFIG"; then
2827 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2828 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2840 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2841 { { echo "$as_me:$LINENO: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&5
2842 echo "$as_me: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&2;}
2843 { (exit 1); exit 1; }; }
2846 if test "${PWLIBDIR:-unset}" = "unset" ; then
2847 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
2848 { { echo "$as_me:$LINENO: error: \"Cannot find ptlib-config - please install and try again\"" >&5
2849 echo "$as_me: error: \"Cannot find ptlib-config - please install and try again\"" >&2;}
2850 { (exit 1); exit 1; }; }
2852 PWLIBDIR=`$PTLIB_CONFIG --prefix`
2855 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
2856 PWLIBDIR="/usr/share/pwlib/"
2858 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
2859 PWLIBDIR="/usr/local/share/pwlib/"
2863 echo "PWLib prefix set to.... $PWLIBDIR"
2865 if test "${PWLIBDIR:-unset}" = "unset" ; then
2866 PWVERSION=`$PTLIB_CONFIG --version`
2867 PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
2868 PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
2869 PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
2871 else
2872 PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2873 PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2874 PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2875 PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
2878 # Check whether --enable-versioncheck or --disable-versioncheck was given.
2879 if test "${enable_versioncheck+set}" = set; then
2880 enableval="$enable_versioncheck"
2881 PWLIB_VERSION_CHECK=$enableval
2884 echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
2885 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6
2886 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
2887 echo "$as_me:$LINENO: result: check disabled" >&5
2888 echo "${ECHO_T}check disabled" >&6
2889 else
2890 if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
2891 { { echo "$as_me:$LINENO: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
2892 echo "$as_me: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&2;}
2893 { (exit 1); exit 1; }; }
2895 if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
2896 { { echo "$as_me:$LINENO: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
2897 echo "$as_me: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&2;}
2898 { (exit 1); exit 1; }; }
2900 if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
2901 { { echo "$as_me:$LINENO: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
2902 echo "$as_me: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&2;}
2903 { (exit 1); exit 1; }; }
2905 echo "$as_me:$LINENO: result: ok" >&5
2906 echo "${ECHO_T}ok" >&6
2912 if test x$GXX = xyes ; then
2913 USE_GCC=yes
2914 gcc_version=`$CXX -dumpversion`
2915 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
2916 echo "$as_me: gcc version is $gcc_version" >&6;};
2917 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
2918 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
2919 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
2921 echo "$as_me:$LINENO: checking checking if gcc version is valid" >&5
2922 echo $ECHO_N "checking checking if gcc version is valid... $ECHO_C" >&6
2923 if test ${GXX_MAJOR} -lt 3 ; then
2924 echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6
2926 { { echo "$as_me:$LINENO: error: OPAL requires gcc version 3 or later" >&5
2927 echo "$as_me: error: OPAL requires gcc version 3 or later" >&2;}
2928 { (exit 1); exit 1; }; }
2929 else
2930 echo "$as_me:$LINENO: result: yes" >&5
2931 echo "${ECHO_T}yes" >&6
2936 localspeex="xxx"
2937 # Check whether --enable-localspeex or --disable-localspeex was given.
2938 if test "${enable_localspeex+set}" = set; then
2939 enableval="$enable_localspeex"
2940 localspeex=$enableval
2944 ac_ext=c
2945 ac_cpp='$CPP $CPPFLAGS'
2946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2950 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2951 # On Suns, sometimes $CPP names a directory.
2952 if test -n "$CPP" && test -d "$CPP"; then
2953 CPP=
2955 if test -z "$CPP"; then
2956 if test "${ac_cv_prog_CPP+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 # Double quotes because CPP needs to be expanded
2960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962 ac_preproc_ok=false
2963 for ac_c_preproc_warn_flag in '' yes
2965 # Use a header file that comes with gcc, so configuring glibc
2966 # with a fresh cross-compiler works.
2967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2968 # <limits.h> exists even on freestanding compilers.
2969 # On the NeXT, cc -E runs the code through the compiler's parser,
2970 # not just through cpp. "Syntax error" is here to catch this case.
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2977 #ifdef __STDC__
2978 # include <limits.h>
2979 #else
2980 # include <assert.h>
2981 #endif
2982 Syntax error
2983 _ACEOF
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2986 ac_status=$?
2987 grep -v '^ *+' conftest.er1 >conftest.err
2988 rm -f conftest.er1
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev/null; then
2992 if test -s conftest.err; then
2993 ac_cpp_err=$ac_c_preproc_warn_flag
2994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2995 else
2996 ac_cpp_err=
2998 else
2999 ac_cpp_err=yes
3001 if test -z "$ac_cpp_err"; then
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 # Broken: fails on valid input.
3008 continue
3010 rm -f conftest.err conftest.$ac_ext
3012 # OK, works on sane cases. Now check whether non-existent headers
3013 # can be detected and how.
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #include <ac_nonexistent.h>
3021 _ACEOF
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null; then
3030 if test -s conftest.err; then
3031 ac_cpp_err=$ac_c_preproc_warn_flag
3032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3033 else
3034 ac_cpp_err=
3036 else
3037 ac_cpp_err=yes
3039 if test -z "$ac_cpp_err"; then
3040 # Broken: success on invalid input.
3041 continue
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 # Passes both tests.
3047 ac_preproc_ok=:
3048 break
3050 rm -f conftest.err conftest.$ac_ext
3052 done
3053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054 rm -f conftest.err conftest.$ac_ext
3055 if $ac_preproc_ok; then
3056 break
3059 done
3060 ac_cv_prog_CPP=$CPP
3063 CPP=$ac_cv_prog_CPP
3064 else
3065 ac_cv_prog_CPP=$CPP
3067 echo "$as_me:$LINENO: result: $CPP" >&5
3068 echo "${ECHO_T}$CPP" >&6
3069 ac_preproc_ok=false
3070 for ac_c_preproc_warn_flag in '' yes
3072 # Use a header file that comes with gcc, so configuring glibc
3073 # with a fresh cross-compiler works.
3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075 # <limits.h> exists even on freestanding compilers.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp. "Syntax error" is here to catch this case.
3078 cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h. */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3084 #ifdef __STDC__
3085 # include <limits.h>
3086 #else
3087 # include <assert.h>
3088 #endif
3089 Syntax error
3090 _ACEOF
3091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } >/dev/null; then
3099 if test -s conftest.err; then
3100 ac_cpp_err=$ac_c_preproc_warn_flag
3101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3102 else
3103 ac_cpp_err=
3105 else
3106 ac_cpp_err=yes
3108 if test -z "$ac_cpp_err"; then
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 # Broken: fails on valid input.
3115 continue
3117 rm -f conftest.err conftest.$ac_ext
3119 # OK, works on sane cases. Now check whether non-existent headers
3120 # can be detected and how.
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <ac_nonexistent.h>
3128 _ACEOF
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3140 else
3141 ac_cpp_err=
3143 else
3144 ac_cpp_err=yes
3146 if test -z "$ac_cpp_err"; then
3147 # Broken: success on invalid input.
3148 continue
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 # Passes both tests.
3154 ac_preproc_ok=:
3155 break
3157 rm -f conftest.err conftest.$ac_ext
3159 done
3160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161 rm -f conftest.err conftest.$ac_ext
3162 if $ac_preproc_ok; then
3164 else
3165 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&5
3167 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 echo "$as_me:$LINENO: checking for egrep" >&5
3180 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3181 if test "${ac_cv_prog_egrep+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3185 then ac_cv_prog_egrep='grep -E'
3186 else ac_cv_prog_egrep='egrep'
3189 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3190 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3191 EGREP=$ac_cv_prog_egrep
3194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3196 if test "${ac_cv_header_stdc+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3205 #include <stdlib.h>
3206 #include <stdarg.h>
3207 #include <string.h>
3208 #include <float.h>
3211 main ()
3215 return 0;
3217 _ACEOF
3218 rm -f conftest.$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220 (eval $ac_compile) 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } &&
3227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 (eval $ac_try) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; } &&
3233 { ac_try='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_header_stdc=yes
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 ac_cv_header_stdc=no
3246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248 if test $ac_cv_header_stdc = yes; then
3249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h. */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256 #include <string.h>
3258 _ACEOF
3259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3260 $EGREP "memchr" >/dev/null 2>&1; then
3262 else
3263 ac_cv_header_stdc=no
3265 rm -f conftest*
3269 if test $ac_cv_header_stdc = yes; then
3270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3271 cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h. */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #include <stdlib.h>
3279 _ACEOF
3280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3281 $EGREP "free" >/dev/null 2>&1; then
3283 else
3284 ac_cv_header_stdc=no
3286 rm -f conftest*
3290 if test $ac_cv_header_stdc = yes; then
3291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3292 if test "$cross_compiling" = yes; then
3294 else
3295 cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h. */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3301 #include <ctype.h>
3302 #if ((' ' & 0x0FF) == 0x020)
3303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3305 #else
3306 # define ISLOWER(c) \
3307 (('a' <= (c) && (c) <= 'i') \
3308 || ('j' <= (c) && (c) <= 'r') \
3309 || ('s' <= (c) && (c) <= 'z'))
3310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3311 #endif
3313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3315 main ()
3317 int i;
3318 for (i = 0; i < 256; i++)
3319 if (XOR (islower (i), ISLOWER (i))
3320 || toupper (i) != TOUPPER (i))
3321 exit(2);
3322 exit (0);
3324 _ACEOF
3325 rm -f conftest$ac_exeext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3327 (eval $ac_link) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 (eval $ac_try) 2>&5
3333 ac_status=$?
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; }; then
3337 else
3338 echo "$as_me: program exited with status $ac_status" >&5
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 ( exit $ac_status )
3343 ac_cv_header_stdc=no
3345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3351 if test $ac_cv_header_stdc = yes; then
3353 cat >>confdefs.h <<\_ACEOF
3354 #define STDC_HEADERS 1
3355 _ACEOF
3359 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3369 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3370 inttypes.h stdint.h unistd.h
3372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3373 echo "$as_me:$LINENO: checking for $ac_header" >&5
3374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 $ac_includes_default
3386 #include <$ac_header>
3387 _ACEOF
3388 rm -f conftest.$ac_objext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390 (eval $ac_compile) 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; } &&
3403 { ac_try='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 eval "$as_ac_Header=yes"
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3414 eval "$as_ac_Header=no"
3416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3421 cat >>confdefs.h <<_ACEOF
3422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3423 _ACEOF
3427 done
3430 echo "$as_me:$LINENO: checking for short" >&5
3431 echo $ECHO_N "checking for short... $ECHO_C" >&6
3432 if test "${ac_cv_type_short+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 $ac_includes_default
3443 main ()
3445 if ((short *) 0)
3446 return 0;
3447 if (sizeof (short))
3448 return 0;
3450 return 0;
3452 _ACEOF
3453 rm -f conftest.$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_cv_type_short=yes
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 ac_cv_type_short=no
3481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3484 echo "${ECHO_T}$ac_cv_type_short" >&6
3486 echo "$as_me:$LINENO: checking size of short" >&5
3487 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3488 if test "${ac_cv_sizeof_short+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 if test "$ac_cv_type_short" = yes; then
3492 # The cast to unsigned long works around a bug in the HP C Compiler
3493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3495 # This bug is HP SR number 8606223364.
3496 if test "$cross_compiling" = yes; then
3497 # Depending upon the size, compute the lo and hi bounds.
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h. */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 $ac_includes_default
3506 main ()
3508 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3509 test_array [0] = 0
3512 return 0;
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; } &&
3530 { ac_try='test -s conftest.$ac_objext'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 ac_lo=0 ac_mid=0
3537 while :; do
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 $ac_includes_default
3546 main ()
3548 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3549 test_array [0] = 0
3552 return 0;
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 ac_hi=$ac_mid; break
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 ac_lo=`expr $ac_mid + 1`
3582 if test $ac_lo -le $ac_mid; then
3583 ac_lo= ac_hi=
3584 break
3586 ac_mid=`expr 2 '*' $ac_mid + 1`
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 done
3590 else
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 $ac_includes_default
3602 main ()
3604 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3605 test_array [0] = 0
3608 return 0;
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>conftest.er1
3614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_hi=-1 ac_mid=-1
3633 while :; do
3634 cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h. */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3640 $ac_includes_default
3642 main ()
3644 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3645 test_array [0] = 0
3648 return 0;
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3653 (eval $ac_compile) 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
3660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 ac_lo=$ac_mid; break
3673 else
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3677 ac_hi=`expr '(' $ac_mid ')' - 1`
3678 if test $ac_mid -le $ac_hi; then
3679 ac_lo= ac_hi=
3680 break
3682 ac_mid=`expr 2 '*' $ac_mid`
3684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3685 done
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_lo= ac_hi=
3692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695 # Binary search between lo and hi bounds.
3696 while test "x$ac_lo" != "x$ac_hi"; do
3697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3698 cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 $ac_includes_default
3706 main ()
3708 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3709 test_array [0] = 0
3712 return 0;
3714 _ACEOF
3715 rm -f conftest.$ac_objext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; } &&
3730 { ac_try='test -s conftest.$ac_objext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 ac_hi=$ac_mid
3737 else
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3741 ac_lo=`expr '(' $ac_mid ')' + 1`
3743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744 done
3745 case $ac_lo in
3746 ?*) ac_cv_sizeof_short=$ac_lo;;
3747 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3748 See \`config.log' for more details." >&5
3749 echo "$as_me: error: cannot compute sizeof (short), 77
3750 See \`config.log' for more details." >&2;}
3751 { (exit 1); exit 1; }; } ;;
3752 esac
3753 else
3754 if test "$cross_compiling" = yes; then
3755 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3756 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3757 { (exit 1); exit 1; }; }
3758 else
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 $ac_includes_default
3766 long longval () { return (long) (sizeof (short)); }
3767 unsigned long ulongval () { return (long) (sizeof (short)); }
3768 #include <stdio.h>
3769 #include <stdlib.h>
3771 main ()
3774 FILE *f = fopen ("conftest.val", "w");
3775 if (! f)
3776 exit (1);
3777 if (((long) (sizeof (short))) < 0)
3779 long i = longval ();
3780 if (i != ((long) (sizeof (short))))
3781 exit (1);
3782 fprintf (f, "%ld\n", i);
3784 else
3786 unsigned long i = ulongval ();
3787 if (i != ((long) (sizeof (short))))
3788 exit (1);
3789 fprintf (f, "%lu\n", i);
3791 exit (ferror (f) || fclose (f) != 0);
3794 return 0;
3796 _ACEOF
3797 rm -f conftest$ac_exeext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799 (eval $ac_link) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 ac_cv_sizeof_short=`cat conftest.val`
3809 else
3810 echo "$as_me: program exited with status $ac_status" >&5
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 ( exit $ac_status )
3815 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3816 See \`config.log' for more details." >&5
3817 echo "$as_me: error: cannot compute sizeof (short), 77
3818 See \`config.log' for more details." >&2;}
3819 { (exit 1); exit 1; }; }
3821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3824 rm -f conftest.val
3825 else
3826 ac_cv_sizeof_short=0
3829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3830 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3831 cat >>confdefs.h <<_ACEOF
3832 #define SIZEOF_SHORT $ac_cv_sizeof_short
3833 _ACEOF
3836 echo "$as_me:$LINENO: checking for int" >&5
3837 echo $ECHO_N "checking for int... $ECHO_C" >&6
3838 if test "${ac_cv_type_int+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 $ac_includes_default
3849 main ()
3851 if ((int *) 0)
3852 return 0;
3853 if (sizeof (int))
3854 return 0;
3856 return 0;
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_type_int=yes
3881 else
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 ac_cv_type_int=no
3887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3890 echo "${ECHO_T}$ac_cv_type_int" >&6
3892 echo "$as_me:$LINENO: checking size of int" >&5
3893 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3894 if test "${ac_cv_sizeof_int+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897 if test "$ac_cv_type_int" = yes; then
3898 # The cast to unsigned long works around a bug in the HP C Compiler
3899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3901 # This bug is HP SR number 8606223364.
3902 if test "$cross_compiling" = yes; then
3903 # Depending upon the size, compute the lo and hi bounds.
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 $ac_includes_default
3912 main ()
3914 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3915 test_array [0] = 0
3918 return 0;
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; } &&
3936 { ac_try='test -s conftest.$ac_objext'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 ac_lo=0 ac_mid=0
3943 while :; do
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 $ac_includes_default
3952 main ()
3954 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3955 test_array [0] = 0
3958 return 0;
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963 (eval $ac_compile) 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_hi=$ac_mid; break
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_lo=`expr $ac_mid + 1`
3988 if test $ac_lo -le $ac_mid; then
3989 ac_lo= ac_hi=
3990 break
3992 ac_mid=`expr 2 '*' $ac_mid + 1`
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995 done
3996 else
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 $ac_includes_default
4008 main ()
4010 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4011 test_array [0] = 0
4014 return 0;
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4038 ac_hi=-1 ac_mid=-1
4039 while :; do
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 $ac_includes_default
4048 main ()
4050 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4051 test_array [0] = 0
4054 return 0;
4056 _ACEOF
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_lo=$ac_mid; break
4079 else
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 ac_hi=`expr '(' $ac_mid ')' - 1`
4084 if test $ac_mid -le $ac_hi; then
4085 ac_lo= ac_hi=
4086 break
4088 ac_mid=`expr 2 '*' $ac_mid`
4090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4091 done
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 ac_lo= ac_hi=
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 # Binary search between lo and hi bounds.
4102 while test "x$ac_lo" != "x$ac_hi"; do
4103 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 $ac_includes_default
4112 main ()
4114 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4115 test_array [0] = 0
4118 return 0;
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123 (eval $ac_compile) 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4142 ac_hi=$ac_mid
4143 else
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 ac_lo=`expr '(' $ac_mid ')' + 1`
4149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150 done
4151 case $ac_lo in
4152 ?*) ac_cv_sizeof_int=$ac_lo;;
4153 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4154 See \`config.log' for more details." >&5
4155 echo "$as_me: error: cannot compute sizeof (int), 77
4156 See \`config.log' for more details." >&2;}
4157 { (exit 1); exit 1; }; } ;;
4158 esac
4159 else
4160 if test "$cross_compiling" = yes; then
4161 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4162 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4163 { (exit 1); exit 1; }; }
4164 else
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 $ac_includes_default
4172 long longval () { return (long) (sizeof (int)); }
4173 unsigned long ulongval () { return (long) (sizeof (int)); }
4174 #include <stdio.h>
4175 #include <stdlib.h>
4177 main ()
4180 FILE *f = fopen ("conftest.val", "w");
4181 if (! f)
4182 exit (1);
4183 if (((long) (sizeof (int))) < 0)
4185 long i = longval ();
4186 if (i != ((long) (sizeof (int))))
4187 exit (1);
4188 fprintf (f, "%ld\n", i);
4190 else
4192 unsigned long i = ulongval ();
4193 if (i != ((long) (sizeof (int))))
4194 exit (1);
4195 fprintf (f, "%lu\n", i);
4197 exit (ferror (f) || fclose (f) != 0);
4200 return 0;
4202 _ACEOF
4203 rm -f conftest$ac_exeext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4205 (eval $ac_link) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_cv_sizeof_int=`cat conftest.val`
4215 else
4216 echo "$as_me: program exited with status $ac_status" >&5
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 ( exit $ac_status )
4221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4222 See \`config.log' for more details." >&5
4223 echo "$as_me: error: cannot compute sizeof (int), 77
4224 See \`config.log' for more details." >&2;}
4225 { (exit 1); exit 1; }; }
4227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4230 rm -f conftest.val
4231 else
4232 ac_cv_sizeof_int=0
4235 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4236 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4237 cat >>confdefs.h <<_ACEOF
4238 #define SIZEOF_INT $ac_cv_sizeof_int
4239 _ACEOF
4242 echo "$as_me:$LINENO: checking for long" >&5
4243 echo $ECHO_N "checking for long... $ECHO_C" >&6
4244 if test "${ac_cv_type_long+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 $ac_includes_default
4255 main ()
4257 if ((long *) 0)
4258 return 0;
4259 if (sizeof (long))
4260 return 0;
4262 return 0;
4264 _ACEOF
4265 rm -f conftest.$ac_objext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 ac_cv_type_long=yes
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 ac_cv_type_long=no
4293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4295 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4296 echo "${ECHO_T}$ac_cv_type_long" >&6
4298 echo "$as_me:$LINENO: checking size of long" >&5
4299 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4300 if test "${ac_cv_sizeof_long+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 if test "$ac_cv_type_long" = yes; then
4304 # The cast to unsigned long works around a bug in the HP C Compiler
4305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4307 # This bug is HP SR number 8606223364.
4308 if test "$cross_compiling" = yes; then
4309 # Depending upon the size, compute the lo and hi bounds.
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 $ac_includes_default
4318 main ()
4320 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4321 test_array [0] = 0
4324 return 0;
4326 _ACEOF
4327 rm -f conftest.$ac_objext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_lo=0 ac_mid=0
4349 while :; do
4350 cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h. */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4356 $ac_includes_default
4358 main ()
4360 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4361 test_array [0] = 0
4364 return 0;
4366 _ACEOF
4367 rm -f conftest.$ac_objext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369 (eval $ac_compile) 2>conftest.er1
4370 ac_status=$?
4371 grep -v '^ *+' conftest.er1 >conftest.err
4372 rm -f conftest.er1
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_hi=$ac_mid; break
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ac_lo=`expr $ac_mid + 1`
4394 if test $ac_lo -le $ac_mid; then
4395 ac_lo= ac_hi=
4396 break
4398 ac_mid=`expr 2 '*' $ac_mid + 1`
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 done
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4414 main ()
4416 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4417 test_array [0] = 0
4420 return 0;
4422 _ACEOF
4423 rm -f conftest.$ac_objext
4424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>conftest.er1
4426 ac_status=$?
4427 grep -v '^ *+' conftest.er1 >conftest.err
4428 rm -f conftest.er1
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } &&
4432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 (eval $ac_try) 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; } &&
4438 { ac_try='test -s conftest.$ac_objext'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4444 ac_hi=-1 ac_mid=-1
4445 while :; do
4446 cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h. */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 $ac_includes_default
4454 main ()
4456 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4457 test_array [0] = 0
4460 return 0;
4462 _ACEOF
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_lo=$ac_mid; break
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 ac_hi=`expr '(' $ac_mid ')' - 1`
4490 if test $ac_mid -le $ac_hi; then
4491 ac_lo= ac_hi=
4492 break
4494 ac_mid=`expr 2 '*' $ac_mid`
4496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4497 done
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ac_lo= ac_hi=
4504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507 # Binary search between lo and hi bounds.
4508 while test "x$ac_lo" != "x$ac_hi"; do
4509 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4518 main ()
4520 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4521 test_array [0] = 0
4524 return 0;
4526 _ACEOF
4527 rm -f conftest.$ac_objext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>conftest.er1
4530 ac_status=$?
4531 grep -v '^ *+' conftest.er1 >conftest.err
4532 rm -f conftest.er1
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 ac_hi=$ac_mid
4549 else
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4553 ac_lo=`expr '(' $ac_mid ')' + 1`
4555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4556 done
4557 case $ac_lo in
4558 ?*) ac_cv_sizeof_long=$ac_lo;;
4559 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4560 See \`config.log' for more details." >&5
4561 echo "$as_me: error: cannot compute sizeof (long), 77
4562 See \`config.log' for more details." >&2;}
4563 { (exit 1); exit 1; }; } ;;
4564 esac
4565 else
4566 if test "$cross_compiling" = yes; then
4567 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4568 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4569 { (exit 1); exit 1; }; }
4570 else
4571 cat >conftest.$ac_ext <<_ACEOF
4572 /* confdefs.h. */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4577 $ac_includes_default
4578 long longval () { return (long) (sizeof (long)); }
4579 unsigned long ulongval () { return (long) (sizeof (long)); }
4580 #include <stdio.h>
4581 #include <stdlib.h>
4583 main ()
4586 FILE *f = fopen ("conftest.val", "w");
4587 if (! f)
4588 exit (1);
4589 if (((long) (sizeof (long))) < 0)
4591 long i = longval ();
4592 if (i != ((long) (sizeof (long))))
4593 exit (1);
4594 fprintf (f, "%ld\n", i);
4596 else
4598 unsigned long i = ulongval ();
4599 if (i != ((long) (sizeof (long))))
4600 exit (1);
4601 fprintf (f, "%lu\n", i);
4603 exit (ferror (f) || fclose (f) != 0);
4606 return 0;
4608 _ACEOF
4609 rm -f conftest$ac_exeext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611 (eval $ac_link) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_sizeof_long=`cat conftest.val`
4621 else
4622 echo "$as_me: program exited with status $ac_status" >&5
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 ( exit $ac_status )
4627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4628 See \`config.log' for more details." >&5
4629 echo "$as_me: error: cannot compute sizeof (long), 77
4630 See \`config.log' for more details." >&2;}
4631 { (exit 1); exit 1; }; }
4633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4636 rm -f conftest.val
4637 else
4638 ac_cv_sizeof_long=0
4641 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4642 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4643 cat >>confdefs.h <<_ACEOF
4644 #define SIZEOF_LONG $ac_cv_sizeof_long
4645 _ACEOF
4648 echo "$as_me:$LINENO: checking for long long" >&5
4649 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4650 if test "${ac_cv_type_long_long+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 $ac_includes_default
4661 main ()
4663 if ((long long *) 0)
4664 return 0;
4665 if (sizeof (long long))
4666 return 0;
4668 return 0;
4670 _ACEOF
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest.$ac_objext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 ac_cv_type_long_long=yes
4693 else
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 ac_cv_type_long_long=no
4699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4701 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4702 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4704 echo "$as_me:$LINENO: checking size of long long" >&5
4705 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4706 if test "${ac_cv_sizeof_long_long+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 if test "$ac_cv_type_long_long" = yes; then
4710 # The cast to unsigned long works around a bug in the HP C Compiler
4711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4713 # This bug is HP SR number 8606223364.
4714 if test "$cross_compiling" = yes; then
4715 # Depending upon the size, compute the lo and hi bounds.
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h. */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 $ac_includes_default
4724 main ()
4726 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4727 test_array [0] = 0
4730 return 0;
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_lo=0 ac_mid=0
4755 while :; do
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 $ac_includes_default
4764 main ()
4766 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4767 test_array [0] = 0
4770 return 0;
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 (eval $ac_try) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_hi=$ac_mid; break
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 ac_lo=`expr $ac_mid + 1`
4800 if test $ac_lo -le $ac_mid; then
4801 ac_lo= ac_hi=
4802 break
4804 ac_mid=`expr 2 '*' $ac_mid + 1`
4806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807 done
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 $ac_includes_default
4820 main ()
4822 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
4823 test_array [0] = 0
4826 return 0;
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_hi=-1 ac_mid=-1
4851 while :; do
4852 cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 $ac_includes_default
4860 main ()
4862 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
4863 test_array [0] = 0
4866 return 0;
4868 _ACEOF
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 (eval $ac_try) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 ac_lo=$ac_mid; break
4891 else
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 ac_hi=`expr '(' $ac_mid ')' - 1`
4896 if test $ac_mid -le $ac_hi; then
4897 ac_lo= ac_hi=
4898 break
4900 ac_mid=`expr 2 '*' $ac_mid`
4902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4903 done
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_lo= ac_hi=
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913 # Binary search between lo and hi bounds.
4914 while test "x$ac_lo" != "x$ac_hi"; do
4915 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 $ac_includes_default
4924 main ()
4926 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4927 test_array [0] = 0
4930 return 0;
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 ac_hi=$ac_mid
4955 else
4956 echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4959 ac_lo=`expr '(' $ac_mid ')' + 1`
4961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962 done
4963 case $ac_lo in
4964 ?*) ac_cv_sizeof_long_long=$ac_lo;;
4965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
4966 See \`config.log' for more details." >&5
4967 echo "$as_me: error: cannot compute sizeof (long long), 77
4968 See \`config.log' for more details." >&2;}
4969 { (exit 1); exit 1; }; } ;;
4970 esac
4971 else
4972 if test "$cross_compiling" = yes; then
4973 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4974 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4975 { (exit 1); exit 1; }; }
4976 else
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 $ac_includes_default
4984 long longval () { return (long) (sizeof (long long)); }
4985 unsigned long ulongval () { return (long) (sizeof (long long)); }
4986 #include <stdio.h>
4987 #include <stdlib.h>
4989 main ()
4992 FILE *f = fopen ("conftest.val", "w");
4993 if (! f)
4994 exit (1);
4995 if (((long) (sizeof (long long))) < 0)
4997 long i = longval ();
4998 if (i != ((long) (sizeof (long long))))
4999 exit (1);
5000 fprintf (f, "%ld\n", i);
5002 else
5004 unsigned long i = ulongval ();
5005 if (i != ((long) (sizeof (long long))))
5006 exit (1);
5007 fprintf (f, "%lu\n", i);
5009 exit (ferror (f) || fclose (f) != 0);
5012 return 0;
5014 _ACEOF
5015 rm -f conftest$ac_exeext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017 (eval $ac_link) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5026 ac_cv_sizeof_long_long=`cat conftest.val`
5027 else
5028 echo "$as_me: program exited with status $ac_status" >&5
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5032 ( exit $ac_status )
5033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5034 See \`config.log' for more details." >&5
5035 echo "$as_me: error: cannot compute sizeof (long long), 77
5036 See \`config.log' for more details." >&2;}
5037 { (exit 1); exit 1; }; }
5039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5042 rm -f conftest.val
5043 else
5044 ac_cv_sizeof_long_long=0
5047 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5048 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5049 cat >>confdefs.h <<_ACEOF
5050 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5051 _ACEOF
5055 case 2 in
5056 $ac_cv_sizeof_short) SIZE16="short";;
5057 $ac_cv_sizeof_int) SIZE16="int";;
5058 esac
5060 case 4 in
5061 $ac_cv_sizeof_int) SIZE32="int";;
5062 $ac_cv_sizeof_long) SIZE32="long";;
5063 $ac_cv_sizeof_short) SIZE32="short";;
5064 esac
5069 OPAL_HAVE_SPEEX_H=
5070 OPAL_HAVE_SPEEX_SPEEX_H=
5072 for ac_header in "speex.h"
5074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5076 echo "$as_me:$LINENO: checking for $ac_header" >&5
5077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5083 else
5084 # Is the header compilable?
5085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 $ac_includes_default
5094 #include <$ac_header>
5095 _ACEOF
5096 rm -f conftest.$ac_objext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5098 (eval $ac_compile) 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; } &&
5111 { ac_try='test -s conftest.$ac_objext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_header_compiler=yes
5118 else
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 ac_header_compiler=no
5124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5126 echo "${ECHO_T}$ac_header_compiler" >&6
5128 # Is the header present?
5129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5131 cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h. */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 #include <$ac_header>
5138 _ACEOF
5139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } >/dev/null; then
5147 if test -s conftest.err; then
5148 ac_cpp_err=$ac_c_preproc_warn_flag
5149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5150 else
5151 ac_cpp_err=
5153 else
5154 ac_cpp_err=yes
5156 if test -z "$ac_cpp_err"; then
5157 ac_header_preproc=yes
5158 else
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5162 ac_header_preproc=no
5164 rm -f conftest.err conftest.$ac_ext
5165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5166 echo "${ECHO_T}$ac_header_preproc" >&6
5168 # So? What about this header?
5169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5170 yes:no: )
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5175 ac_header_preproc=yes
5177 no:yes:* )
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5191 cat <<\_ASBOX
5192 ## ------------------------------------------ ##
5193 ## Report this to the AC_PACKAGE_NAME lists. ##
5194 ## ------------------------------------------ ##
5195 _ASBOX
5197 sed "s/^/$as_me: WARNING: /" >&2
5199 esac
5200 echo "$as_me:$LINENO: checking for $ac_header" >&5
5201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 eval "$as_ac_Header=\$ac_header_preproc"
5207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5212 cat >>confdefs.h <<_ACEOF
5213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5214 _ACEOF
5215 OPAL_HAVE_SPEEX_H=1
5218 done
5220 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5221 cat >>confdefs.h <<\_ACEOF
5222 #define OPAL_HAVE_SPEEX_H 1
5223 _ACEOF
5225 else
5227 for ac_header in "speex/speex.h"
5229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5231 echo "$as_me:$LINENO: checking for $ac_header" >&5
5232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5238 else
5239 # Is the header compilable?
5240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 $ac_includes_default
5249 #include <$ac_header>
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253 (eval $ac_compile) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 (eval $ac_try) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; } &&
5266 { ac_try='test -s conftest.$ac_objext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 ac_header_compiler=yes
5273 else
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 ac_header_compiler=no
5279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5281 echo "${ECHO_T}$ac_header_compiler" >&6
5283 # Is the header present?
5284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 #include <$ac_header>
5293 _ACEOF
5294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } >/dev/null; then
5302 if test -s conftest.err; then
5303 ac_cpp_err=$ac_c_preproc_warn_flag
5304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5305 else
5306 ac_cpp_err=
5308 else
5309 ac_cpp_err=yes
5311 if test -z "$ac_cpp_err"; then
5312 ac_header_preproc=yes
5313 else
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5317 ac_header_preproc=no
5319 rm -f conftest.err conftest.$ac_ext
5320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5321 echo "${ECHO_T}$ac_header_preproc" >&6
5323 # So? What about this header?
5324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5325 yes:no: )
5326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5330 ac_header_preproc=yes
5332 no:yes:* )
5333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5346 cat <<\_ASBOX
5347 ## ------------------------------------------ ##
5348 ## Report this to the AC_PACKAGE_NAME lists. ##
5349 ## ------------------------------------------ ##
5350 _ASBOX
5352 sed "s/^/$as_me: WARNING: /" >&2
5354 esac
5355 echo "$as_me:$LINENO: checking for $ac_header" >&5
5356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360 eval "$as_ac_Header=\$ac_header_preproc"
5362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5367 cat >>confdefs.h <<_ACEOF
5368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5369 _ACEOF
5370 OPAL_HAVE_SPEEX_SPEEX_H=1
5373 done
5375 if test "${OPAL_HAVE_SPEEX_SPEEX_H}x" != "x" ; then
5376 cat >>confdefs.h <<\_ACEOF
5377 #define OPAL_HAVE_SPEEX_SPEEX_H 1
5378 _ACEOF
5383 if test "${localspeex}" = "yes" ; then
5384 { echo "$as_me:$LINENO: Forcing use of OPAL Speex sources" >&5
5385 echo "$as_me: Forcing use of OPAL Speex sources" >&6;}
5386 elif test "${localspeex}" = "no" ; then
5387 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
5388 echo "$as_me: Forcing use of system Speex library" >&6;}
5389 cat >>confdefs.h <<\_ACEOF
5390 #define OPAL_SYSTEM_SPEEX 1
5391 _ACEOF
5393 OPAL_SYSTEM_SPEEX=1
5395 else
5396 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
5397 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
5398 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 ac_check_lib_save_LIBS=$LIBS
5402 LIBS="-lspeex $LIBS"
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5410 /* Override any gcc2 internal prototype to avoid an error. */
5411 #ifdef __cplusplus
5412 extern "C"
5413 #endif
5414 /* We use char because int might match the return type of a gcc2
5415 builtin and then its argument prototype would still apply. */
5416 char speex_encoder_destroy ();
5418 main ()
5420 speex_encoder_destroy ();
5422 return 0;
5424 _ACEOF
5425 rm -f conftest.$ac_objext conftest$ac_exeext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5427 (eval $ac_link) 2>conftest.er1
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; } &&
5440 { ac_try='test -s conftest$ac_exeext'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; }; then
5446 ac_cv_lib_speex_speex_encoder_destroy=yes
5447 else
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 ac_cv_lib_speex_speex_encoder_destroy=no
5453 rm -f conftest.err conftest.$ac_objext \
5454 conftest$ac_exeext conftest.$ac_ext
5455 LIBS=$ac_check_lib_save_LIBS
5457 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
5458 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
5459 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
5460 SPEEX=1
5463 if test "${SPEEX}x" != "x" ; then
5464 echo "$as_me:$LINENO: checking for speex_encode_int in -lspeex" >&5
5465 echo $ECHO_N "checking for speex_encode_int in -lspeex... $ECHO_C" >&6
5466 if test "${ac_cv_lib_speex_speex_encode_int+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 ac_check_lib_save_LIBS=$LIBS
5470 LIBS="-lspeex $LIBS"
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h. */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5478 /* Override any gcc2 internal prototype to avoid an error. */
5479 #ifdef __cplusplus
5480 extern "C"
5481 #endif
5482 /* We use char because int might match the return type of a gcc2
5483 builtin and then its argument prototype would still apply. */
5484 char speex_encode_int ();
5486 main ()
5488 speex_encode_int ();
5490 return 0;
5492 _ACEOF
5493 rm -f conftest.$ac_objext conftest$ac_exeext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5495 (eval $ac_link) 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; } &&
5508 { ac_try='test -s conftest$ac_exeext'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 (eval $ac_try) 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5514 ac_cv_lib_speex_speex_encode_int=yes
5515 else
5516 echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5519 ac_cv_lib_speex_speex_encode_int=no
5521 rm -f conftest.err conftest.$ac_objext \
5522 conftest$ac_exeext conftest.$ac_ext
5523 LIBS=$ac_check_lib_save_LIBS
5525 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode_int" >&5
5526 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode_int" >&6
5527 if test $ac_cv_lib_speex_speex_encode_int = yes; then
5528 SPEEX=1
5529 else
5530 unset SPEEX
5534 if test "x$SPEEX" = "x" -o \( "${OPAL_HAVE_SPEEX_H}x" = "x" -a "${OPAL_HAVE_SPEEX_SPEEX_H}x" = "x" \); then
5535 { echo "$as_me:$LINENO: Forcing use of OPAL Speex library" >&5
5536 echo "$as_me: Forcing use of OPAL Speex library" >&6;}
5537 else
5538 echo "$as_me:$LINENO: checking system Speex version" >&5
5539 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
5540 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5541 echo "#include <speex.h>" > t.c
5542 echo "#include <speex_header.h>" >> t.c
5543 else
5544 echo "#include <speex/speex.h>" > t.c
5545 echo "#include <speex/speex_header.h>" >> t.c
5547 cat >> t.c <<C_FILE
5548 #include <stdio.h>
5549 int main(int argc,char *argv)
5551 SpeexHeader header;
5552 speex_init_header(&header, 1, 1, &speex_nb_mode);
5553 printf("%s\n", header.speex_version);
5555 C_FILE
5556 cc -o t t.c -lspeex > /dev/null 2>&1
5557 if test \! -x t ; then
5558 echo "$as_me:$LINENO: result: cannot determine - using OPAL version" >&5
5559 echo "${ECHO_T}cannot determine - using OPAL version" >&6
5560 else
5561 SYSVER=`./t`
5562 echo "$as_me:$LINENO: result: $SYSVER" >&5
5563 echo "${ECHO_T}$SYSVER" >&6
5564 echo "$as_me:$LINENO: checking library Speex version" >&5
5565 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6
5566 LIBVER=`grep "#define SPEEX_VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//' -e 's/\/.*//'`
5567 echo "$as_me:$LINENO: result: $LIBVER" >&5
5568 echo "${ECHO_T}$LIBVER" >&6
5569 echo "$as_me:$LINENO: checking Speex versions" >&5
5570 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
5571 cat > t.pl <<P_FILE
5573 \$sysver = @ARGV[0];
5574 \$libver = @ARGV[1];
5575 @lib = split /\./, \$libver;
5576 while (@lib < 3) {
5577 @lib[0+@lib] = "0";
5579 @sys = split /\./, \$sysver;
5580 while (@sys < 3) {
5581 @sys[0+@sys] = "0";
5583 \$i = 0;
5584 while (\$i < 3) {
5585 if (@sys[\$i] < @lib[\$i]) {
5586 print "0";
5587 die;
5589 \$i++;
5591 print "1";
5593 P_FILE
5594 SPEEX=`perl t.pl $SYSVER $LIBVER`
5595 rm t.pl
5596 if test "x$SPEEX" = "x0" ; then
5597 echo "$as_me:$LINENO: result: OPAL version is more recent" >&5
5598 echo "${ECHO_T}OPAL version is more recent" >&6
5599 else
5600 echo "$as_me:$LINENO: result: system version is more recent" >&5
5601 echo "${ECHO_T}system version is more recent" >&6
5602 cat >>confdefs.h <<\_ACEOF
5603 #define OPAL_SYSTEM_SPEEX 1
5604 _ACEOF
5606 OPAL_SYSTEM_SPEEX=1
5608 echo "$as_me:$LINENO: checking Speex noise type" >&5
5609 echo $ECHO_N "checking Speex noise type... $ECHO_C" >&6
5610 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5611 echo "#include <speex.h>" > t.c
5612 echo "#include <speex_preprocess.h>" >> t.c
5613 else
5614 echo "#include <speex/speex.h>" > t.c
5615 echo "#include <speex/speex_preprocess.h>" >> t.c
5617 cat >> t.c <<C_FILE
5618 #include <stdio.h>
5619 int main(int argc,char *argv)
5621 struct SpeexPreprocessState *st;
5622 spx_int16_t *x;
5623 float *echo;
5624 speex_preprocess(st, x, echo);
5626 C_FILE
5627 rm -f t
5628 cc -Werror -o t t.c -lspeex > /dev/null 2>&1
5629 if test \! -x t ; then
5630 echo "$as_me:$LINENO: result: spx_int32_t" >&5
5631 echo "${ECHO_T}spx_int32_t" >&6
5632 else
5633 echo "$as_me:$LINENO: result: float" >&5
5634 echo "${ECHO_T}float" >&6
5635 cat >>confdefs.h <<\_ACEOF
5636 #define OPAL_SPEEX_FLOAT_NOISE 1
5637 _ACEOF
5642 rm -f t t.c
5650 audio=yes
5651 # Check whether --enable-audio or --disable-audio was given.
5652 if test "${enable_audio+set}" = set; then
5653 enableval="$enable_audio"
5654 audio=$enableval
5656 echo "$as_me:$LINENO: checking audio codec support" >&5
5657 echo $ECHO_N "checking audio codec support... $ECHO_C" >&6
5658 if test "$audio" = "yes" ; then
5659 OPAL_AUDIO=1
5661 cat >>confdefs.h <<\_ACEOF
5662 #define OPAL_AUDIO 1
5663 _ACEOF
5665 echo "$as_me:$LINENO: result: enabled" >&5
5666 echo "${ECHO_T}enabled" >&6
5667 else
5668 echo "$as_me:$LINENO: result: disabled" >&5
5669 echo "${ECHO_T}disabled" >&6
5674 video=yes
5675 # Check whether --enable-video or --disable-video was given.
5676 if test "${enable_video+set}" = set; then
5677 enableval="$enable_video"
5678 video=$enableval
5680 echo "$as_me:$LINENO: checking video device support" >&5
5681 echo $ECHO_N "checking video device support... $ECHO_C" >&6
5682 if test "$video" = "yes" ; then
5683 OPAL_VIDEO=1
5685 cat >>confdefs.h <<\_ACEOF
5686 #define OPAL_VIDEO 1
5687 _ACEOF
5689 echo "$as_me:$LINENO: result: enabled" >&5
5690 echo "${ECHO_T}enabled" >&6
5691 else
5692 echo "$as_me:$LINENO: result: disabled" >&5
5693 echo "${ECHO_T}disabled" >&6
5698 sip=yes
5699 # Check whether --enable-sip or --disable-sip was given.
5700 if test "${enable_sip+set}" = set; then
5701 enableval="$enable_sip"
5702 sip=$enableval
5704 echo "$as_me:$LINENO: checking SIP protocol" >&5
5705 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6
5706 if test "$sip" = "yes" ; then
5707 OPAL_SIP=1
5709 cat >>confdefs.h <<\_ACEOF
5710 #define OPAL_SIP 1
5711 _ACEOF
5713 echo "$as_me:$LINENO: result: enabled" >&5
5714 echo "${ECHO_T}enabled" >&6
5715 else
5716 echo "$as_me:$LINENO: result: disabled" >&5
5717 echo "${ECHO_T}disabled" >&6
5722 h323=yes
5723 t38=yes
5724 h224=yes
5725 h460=yes
5726 # Check whether --enable-h323 or --disable-h323 was given.
5727 if test "${enable_h323+set}" = set; then
5728 enableval="$enable_h323"
5729 h323=$enableval
5731 echo "$as_me:$LINENO: checking H.323 protocol" >&5
5732 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6
5733 if test "$h323" = "yes" ; then
5734 OPAL_H323=1
5736 cat >>confdefs.h <<\_ACEOF
5737 #define OPAL_H323 1
5738 _ACEOF
5740 echo "$as_me:$LINENO: result: enabled" >&5
5741 echo "${ECHO_T}enabled" >&6
5742 else
5743 OPAL_H323=0
5745 echo "$as_me:$LINENO: result: disabled (T.38, H.224, H.460 also disabled)" >&5
5746 echo "${ECHO_T}disabled (T.38, H.224, H.460 also disabled)" >&6
5747 t38=no
5748 h224=no
5749 h460=no
5751 OPAL_H323=$OPAL_H323
5756 iax=yes
5757 # Check whether --enable-iax or --disable-iax was given.
5758 if test "${enable_iax+set}" = set; then
5759 enableval="$enable_iax"
5760 iax=$enableval
5762 echo "$as_me:$LINENO: checking IAX2 protocol" >&5
5763 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6
5764 if test "$iax" = "yes" ; then
5765 OPAL_IAX2=1
5767 cat >>confdefs.h <<\_ACEOF
5768 #define OPAL_IAX2 1
5769 _ACEOF
5771 echo "$as_me:$LINENO: result: enabled" >&5
5772 echo "${ECHO_T}enabled" >&6
5773 else
5774 echo "$as_me:$LINENO: result: disabled" >&5
5775 echo "${ECHO_T}disabled" >&6
5779 # Check whether --enable-h224 or --disable-h224 was given.
5780 if test "${enable_h224+set}" = set; then
5781 enableval="$enable_h224"
5782 h224=$enableval
5784 echo "$as_me:$LINENO: checking H224 protocol" >&5
5785 echo $ECHO_N "checking H224 protocol... $ECHO_C" >&6
5786 if test "$h224" = "yes" ; then
5787 OPAL_H224=1
5789 cat >>confdefs.h <<\_ACEOF
5790 #define OPAL_H224 1
5791 _ACEOF
5793 echo "$as_me:$LINENO: result: enabled" >&5
5794 echo "${ECHO_T}enabled" >&6
5795 else
5796 echo "$as_me:$LINENO: result: disabled" >&5
5797 echo "${ECHO_T}disabled" >&6
5802 if test "$t38" = "yes" ; then
5803 # Check whether --enable-t38 or --disable-t38 was given.
5804 if test "${enable_t38+set}" = set; then
5805 enableval="$enable_t38"
5806 t38=$enableval
5808 echo "$as_me:$LINENO: checking T.38 protocol" >&5
5809 echo $ECHO_N "checking T.38 protocol... $ECHO_C" >&6
5810 if test "$t38" = "yes" ; then
5811 OPAL_T38FAX=1
5813 cat >>confdefs.h <<\_ACEOF
5814 #define OPAL_T38FAX 1
5815 _ACEOF
5817 echo "$as_me:$LINENO: result: enabled" >&5
5818 echo "${ECHO_T}enabled" >&6
5819 else
5820 echo "$as_me:$LINENO: result: disabled" >&5
5821 echo "${ECHO_T}disabled" >&6
5828 H323_460=
5829 if test "$h460" = "yes" ; then
5830 # Check whether --enable-h460 or --disable-h460 was given.
5831 if test "${enable_h460+set}" = set; then
5832 enableval="$enable_h460"
5833 h460=$enableval
5835 echo "$as_me:$LINENO: checking H.460 support" >&5
5836 echo $ECHO_N "checking H.460 support... $ECHO_C" >&6
5837 if test "$h460" = "yes" ; then
5838 H323_H460=1
5840 cat >>confdefs.h <<\_ACEOF
5841 #define H323_H460 1
5842 _ACEOF
5844 echo "$as_me:$LINENO: result: enabled" >&5
5845 echo "${ECHO_T}enabled" >&6
5846 else
5847 echo "$as_me:$LINENO: result: disabled" >&5
5848 echo "${ECHO_T}disabled" >&6
5855 OPAL_LID=
5856 lid=yes
5857 if test "$lid" = "yes" ; then
5858 # Check whether --enable-lid or --disable-lid was given.
5859 if test "${enable_lid+set}" = set; then
5860 enableval="$enable_lid"
5861 lid=$enableval
5863 echo "$as_me:$LINENO: checking LID support" >&5
5864 echo $ECHO_N "checking LID support... $ECHO_C" >&6
5865 if test "$lid" = "yes" ; then
5866 cat >>confdefs.h <<\_ACEOF
5867 #define OPAL_LID 1
5868 _ACEOF
5870 OPAL_LID=1
5871 echo "$as_me:$LINENO: result: enabled" >&5
5872 echo "${ECHO_T}enabled" >&6
5873 else
5874 echo "$as_me:$LINENO: result: disabled" >&5
5875 echo "${ECHO_T}disabled" >&6
5882 OPAL_ivr=
5883 ivr=yes
5884 if test "$ivr" = "yes" ; then
5885 # Check whether --enable-ivr or --disable-ivr was given.
5886 if test "${enable_ivr+set}" = set; then
5887 enableval="$enable_ivr"
5888 ivr=$enableval
5890 echo "$as_me:$LINENO: checking IVR support" >&5
5891 echo $ECHO_N "checking IVR support... $ECHO_C" >&6
5892 if test "$ivr" = "yes" ; then
5893 cat >>confdefs.h <<\_ACEOF
5894 #define OPAL_IVR 1
5895 _ACEOF
5897 OPAL_IVR=1
5898 echo "$as_me:$LINENO: result: enabled" >&5
5899 echo "${ECHO_T}enabled" >&6
5900 else
5901 echo "$as_me:$LINENO: result: disabled" >&5
5902 echo "${ECHO_T}disabled" >&6
5910 HAS_LIBSRTP=
5911 echo "$as_me:$LINENO: checking for libSRTP" >&5
5912 echo $ECHO_N "checking for libSRTP... $ECHO_C" >&6
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #include "srtp/srtp.h"
5921 main ()
5923 int main(int argc, char *argv[]) { crypto_policy_t p; p.cipher_key_len = SRTP_MASTER_KEY_LEN; return 0; }
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 HAS_LIBSRTP=1
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 if test "${HAS_LIBSRTP}" = "1" ; then
5957 echo "$as_me:$LINENO: result: yes" >&5
5958 echo "${ECHO_T}yes" >&6
5959 cat >>confdefs.h <<\_ACEOF
5960 #define HAS_LIBSRTP 1
5961 _ACEOF
5963 HAS_LIBSRTP=1
5964 OPAL_SRTP=1
5965 else
5966 echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5977 ac_aux_dir=
5978 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5979 if test -f $ac_dir/install-sh; then
5980 ac_aux_dir=$ac_dir
5981 ac_install_sh="$ac_aux_dir/install-sh -c"
5982 break
5983 elif test -f $ac_dir/install.sh; then
5984 ac_aux_dir=$ac_dir
5985 ac_install_sh="$ac_aux_dir/install.sh -c"
5986 break
5987 elif test -f $ac_dir/shtool; then
5988 ac_aux_dir=$ac_dir
5989 ac_install_sh="$ac_aux_dir/shtool install -c"
5990 break
5992 done
5993 if test -z "$ac_aux_dir"; then
5994 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5995 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5996 { (exit 1); exit 1; }; }
5998 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
5999 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6000 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6002 # Find a good install program. We prefer a C program (faster),
6003 # so one script is as good as another. But avoid the broken or
6004 # incompatible versions:
6005 # SysV /etc/install, /usr/sbin/install
6006 # SunOS /usr/etc/install
6007 # IRIX /sbin/install
6008 # AIX /bin/install
6009 # AmigaOS /C/install, which installs bootblocks on floppy discs
6010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6013 # OS/2's system install, which has a completely different semantic
6014 # ./install, which can be erroneously created by make from ./install.sh.
6015 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6016 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6017 if test -z "$INSTALL"; then
6018 if test "${ac_cv_path_install+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 # Account for people who put trailing slashes in PATH elements.
6027 case $as_dir/ in
6028 ./ | .// | /cC/* | \
6029 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6030 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6031 /usr/ucb/* ) ;;
6033 # OSF1 and SCO ODT 3.0 have their own names for install.
6034 # Don't use installbsd from OSF since it installs stuff as root
6035 # by default.
6036 for ac_prog in ginstall scoinst install; do
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6039 if test $ac_prog = install &&
6040 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6041 # AIX install. It has an incompatible calling convention.
6043 elif test $ac_prog = install &&
6044 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6045 # program-specific install script used by HP pwplus--don't use.
6047 else
6048 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6049 break 3
6052 done
6053 done
6055 esac
6056 done
6060 if test "${ac_cv_path_install+set}" = set; then
6061 INSTALL=$ac_cv_path_install
6062 else
6063 # As a last resort, use the slow shell script. We don't cache a
6064 # path for INSTALL within a source directory, because that will
6065 # break other packages using the cache if that directory is
6066 # removed, or if the path is relative.
6067 INSTALL=$ac_install_sh
6070 echo "$as_me:$LINENO: result: $INSTALL" >&5
6071 echo "${ECHO_T}$INSTALL" >&6
6073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6074 # It thinks the first close brace ends the variable substitution.
6075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6085 subdirs="$subdirs plugins"
6089 ac_config_files="$ac_config_files opal_inc.mak"
6091 ac_config_files="$ac_config_files Makefile"
6093 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
6096 ac_config_files="$ac_config_files src/codec/speex/libspeex/speex_config_types.h"
6097 cat >confcache <<\_ACEOF
6098 # This file is a shell script that caches the results of configure
6099 # tests run on this system so they can be shared between configure
6100 # scripts and configure runs, see configure's option --config-cache.
6101 # It is not useful on other systems. If it contains results you don't
6102 # want to keep, you may remove or edit it.
6104 # config.status only pays attention to the cache file if you give it
6105 # the --recheck option to rerun configure.
6107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6109 # following values.
6111 _ACEOF
6113 # The following way of writing the cache mishandles newlines in values,
6114 # but we know of no workaround that is simple, portable, and efficient.
6115 # So, don't put newlines in cache variables' values.
6116 # Ultrix sh set writes to stderr and can't be redirected directly,
6117 # and sets the high bit in the cache file unless we assign to the vars.
6119 (set) 2>&1 |
6120 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6121 *ac_space=\ *)
6122 # `set' does not quote correctly, so add quotes (double-quote
6123 # substitution turns \\\\ into \\, and sed turns \\ into \).
6124 sed -n \
6125 "s/'/'\\\\''/g;
6126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6129 # `set' quotes correctly as required by POSIX, so do not add quotes.
6130 sed -n \
6131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6133 esac;
6135 sed '
6136 t clear
6137 : clear
6138 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6139 t end
6140 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6141 : end' >>confcache
6142 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6143 if test -w $cache_file; then
6144 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6145 cat confcache >$cache_file
6146 else
6147 echo "not updating unwritable cache $cache_file"
6150 rm -f confcache
6152 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6153 # Let make expand exec_prefix.
6154 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6156 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6157 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6158 # trailing colons and then remove the whole line if VPATH becomes empty
6159 # (actually we leave an empty line to preserve line numbers).
6160 if test "x$srcdir" = x.; then
6161 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6162 s/:*\$(srcdir):*/:/;
6163 s/:*\${srcdir}:*/:/;
6164 s/:*@srcdir@:*/:/;
6165 s/^\([^=]*=[ ]*\):*/\1/;
6166 s/:*$//;
6167 s/^[^=]*=[ ]*$//;
6171 DEFS=-DHAVE_CONFIG_H
6173 ac_libobjs=
6174 ac_ltlibobjs=
6175 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6176 # 1. Remove the extension, and $U if already installed.
6177 ac_i=`echo "$ac_i" |
6178 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6179 # 2. Add them.
6180 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6181 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6182 done
6183 LIBOBJS=$ac_libobjs
6185 LTLIBOBJS=$ac_ltlibobjs
6189 : ${CONFIG_STATUS=./config.status}
6190 ac_clean_files_save=$ac_clean_files
6191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6192 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6193 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6194 cat >$CONFIG_STATUS <<_ACEOF
6195 #! $SHELL
6196 # Generated by $as_me.
6197 # Run this file to recreate the current configuration.
6198 # Compiler output produced by configure, useful for debugging
6199 # configure, is in config.log if it exists.
6201 debug=false
6202 ac_cs_recheck=false
6203 ac_cs_silent=false
6204 SHELL=\${CONFIG_SHELL-$SHELL}
6205 _ACEOF
6207 cat >>$CONFIG_STATUS <<\_ACEOF
6208 ## --------------------- ##
6209 ## M4sh Initialization. ##
6210 ## --------------------- ##
6212 # Be Bourne compatible
6213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6214 emulate sh
6215 NULLCMD=:
6216 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6217 # is contrary to our usage. Disable this feature.
6218 alias -g '${1+"$@"}'='"$@"'
6219 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6220 set -o posix
6222 DUALCASE=1; export DUALCASE # for MKS sh
6224 # Support unset when possible.
6225 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6226 as_unset=unset
6227 else
6228 as_unset=false
6232 # Work around bugs in pre-3.0 UWIN ksh.
6233 $as_unset ENV MAIL MAILPATH
6234 PS1='$ '
6235 PS2='> '
6236 PS4='+ '
6238 # NLS nuisances.
6239 for as_var in \
6240 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6241 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6242 LC_TELEPHONE LC_TIME
6244 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6245 eval $as_var=C; export $as_var
6246 else
6247 $as_unset $as_var
6249 done
6251 # Required to use basename.
6252 if expr a : '\(a\)' >/dev/null 2>&1; then
6253 as_expr=expr
6254 else
6255 as_expr=false
6258 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6259 as_basename=basename
6260 else
6261 as_basename=false
6265 # Name of the executable.
6266 as_me=`$as_basename "$0" ||
6267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6268 X"$0" : 'X\(//\)$' \| \
6269 X"$0" : 'X\(/\)$' \| \
6270 . : '\(.\)' 2>/dev/null ||
6271 echo X/"$0" |
6272 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6273 /^X\/\(\/\/\)$/{ s//\1/; q; }
6274 /^X\/\(\/\).*/{ s//\1/; q; }
6275 s/.*/./; q'`
6278 # PATH needs CR, and LINENO needs CR and PATH.
6279 # Avoid depending upon Character Ranges.
6280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6283 as_cr_digits='0123456789'
6284 as_cr_alnum=$as_cr_Letters$as_cr_digits
6286 # The user is always right.
6287 if test "${PATH_SEPARATOR+set}" != set; then
6288 echo "#! /bin/sh" >conf$$.sh
6289 echo "exit 0" >>conf$$.sh
6290 chmod +x conf$$.sh
6291 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6292 PATH_SEPARATOR=';'
6293 else
6294 PATH_SEPARATOR=:
6296 rm -f conf$$.sh
6300 as_lineno_1=$LINENO
6301 as_lineno_2=$LINENO
6302 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6303 test "x$as_lineno_1" != "x$as_lineno_2" &&
6304 test "x$as_lineno_3" = "x$as_lineno_2" || {
6305 # Find who we are. Look in the path if we contain no path at all
6306 # relative or not.
6307 case $0 in
6308 *[\\/]* ) as_myself=$0 ;;
6309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6315 done
6318 esac
6319 # We did not find ourselves, most probably we were run as `sh COMMAND'
6320 # in which case we are not to be found in the path.
6321 if test "x$as_myself" = x; then
6322 as_myself=$0
6324 if test ! -f "$as_myself"; then
6325 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6326 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6327 { (exit 1); exit 1; }; }
6329 case $CONFIG_SHELL in
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for as_base in sh bash ksh sh5; do
6337 case $as_dir in
6339 if ("$as_dir/$as_base" -c '
6340 as_lineno_1=$LINENO
6341 as_lineno_2=$LINENO
6342 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6343 test "x$as_lineno_1" != "x$as_lineno_2" &&
6344 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6345 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6346 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6347 CONFIG_SHELL=$as_dir/$as_base
6348 export CONFIG_SHELL
6349 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6350 fi;;
6351 esac
6352 done
6353 done
6355 esac
6357 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6358 # uniformly replaced by the line number. The first 'sed' inserts a
6359 # line-number line before each line; the second 'sed' does the real
6360 # work. The second script uses 'N' to pair each line-number line
6361 # with the numbered line, and appends trailing '-' during
6362 # substitution so that $LINENO is not a special case at line end.
6363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6364 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6365 sed '=' <$as_myself |
6366 sed '
6368 s,$,-,
6369 : loop
6370 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6371 t loop
6372 s,-$,,
6373 s,^['$as_cr_digits']*\n,,
6374 ' >$as_me.lineno &&
6375 chmod +x $as_me.lineno ||
6376 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6377 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6378 { (exit 1); exit 1; }; }
6380 # Don't try to exec as it changes $[0], causing all sort of problems
6381 # (the dirname of $[0] is not the place where we might find the
6382 # original and so on. Autoconf is especially sensible to this).
6383 . ./$as_me.lineno
6384 # Exit status is that of the last command.
6385 exit
6389 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6390 *c*,-n*) ECHO_N= ECHO_C='
6391 ' ECHO_T=' ' ;;
6392 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6393 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6394 esac
6396 if expr a : '\(a\)' >/dev/null 2>&1; then
6397 as_expr=expr
6398 else
6399 as_expr=false
6402 rm -f conf$$ conf$$.exe conf$$.file
6403 echo >conf$$.file
6404 if ln -s conf$$.file conf$$ 2>/dev/null; then
6405 # We could just check for DJGPP; but this test a) works b) is more generic
6406 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6407 if test -f conf$$.exe; then
6408 # Don't use ln at all; we don't have any links
6409 as_ln_s='cp -p'
6410 else
6411 as_ln_s='ln -s'
6413 elif ln conf$$.file conf$$ 2>/dev/null; then
6414 as_ln_s=ln
6415 else
6416 as_ln_s='cp -p'
6418 rm -f conf$$ conf$$.exe conf$$.file
6420 if mkdir -p . 2>/dev/null; then
6421 as_mkdir_p=:
6422 else
6423 test -d ./-p && rmdir ./-p
6424 as_mkdir_p=false
6427 as_executable_p="test -f"
6429 # Sed expression to map a string onto a valid CPP name.
6430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6432 # Sed expression to map a string onto a valid variable name.
6433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6436 # IFS
6437 # We need space, tab and new line, in precisely that order.
6438 as_nl='
6440 IFS=" $as_nl"
6442 # CDPATH.
6443 $as_unset CDPATH
6445 exec 6>&1
6447 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6448 # report actual input values of CONFIG_FILES etc. instead of their
6449 # values after options handling. Logging --version etc. is OK.
6450 exec 5>>config.log
6452 echo
6453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6454 ## Running $as_me. ##
6455 _ASBOX
6456 } >&5
6457 cat >&5 <<_CSEOF
6459 This file was extended by $as_me, which was
6460 generated by GNU Autoconf 2.59. Invocation command line was
6462 CONFIG_FILES = $CONFIG_FILES
6463 CONFIG_HEADERS = $CONFIG_HEADERS
6464 CONFIG_LINKS = $CONFIG_LINKS
6465 CONFIG_COMMANDS = $CONFIG_COMMANDS
6466 $ $0 $@
6468 _CSEOF
6469 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6470 echo >&5
6471 _ACEOF
6473 # Files that config.status was made for.
6474 if test -n "$ac_config_files"; then
6475 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6478 if test -n "$ac_config_headers"; then
6479 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6482 if test -n "$ac_config_links"; then
6483 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6486 if test -n "$ac_config_commands"; then
6487 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6490 cat >>$CONFIG_STATUS <<\_ACEOF
6492 ac_cs_usage="\
6493 \`$as_me' instantiates files from templates according to the
6494 current configuration.
6496 Usage: $0 [OPTIONS] [FILE]...
6498 -h, --help print this help, then exit
6499 -V, --version print version number, then exit
6500 -q, --quiet do not print progress messages
6501 -d, --debug don't remove temporary files
6502 --recheck update $as_me by reconfiguring in the same conditions
6503 --file=FILE[:TEMPLATE]
6504 instantiate the configuration file FILE
6505 --header=FILE[:TEMPLATE]
6506 instantiate the configuration header FILE
6508 Configuration files:
6509 $config_files
6511 Configuration headers:
6512 $config_headers
6514 Report bugs to <bug-autoconf@gnu.org>."
6515 _ACEOF
6517 cat >>$CONFIG_STATUS <<_ACEOF
6518 ac_cs_version="\\
6519 config.status
6520 configured by $0, generated by GNU Autoconf 2.59,
6521 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6523 Copyright (C) 2003 Free Software Foundation, Inc.
6524 This config.status script is free software; the Free Software Foundation
6525 gives unlimited permission to copy, distribute and modify it."
6526 srcdir=$srcdir
6527 INSTALL="$INSTALL"
6528 _ACEOF
6530 cat >>$CONFIG_STATUS <<\_ACEOF
6531 # If no file are specified by the user, then we need to provide default
6532 # value. By we need to know if files were specified by the user.
6533 ac_need_defaults=:
6534 while test $# != 0
6536 case $1 in
6537 --*=*)
6538 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6539 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6540 ac_shift=:
6543 ac_option=$1
6544 ac_optarg=$2
6545 ac_shift=shift
6547 *) # This is not an option, so the user has probably given explicit
6548 # arguments.
6549 ac_option=$1
6550 ac_need_defaults=false;;
6551 esac
6553 case $ac_option in
6554 # Handling of the options.
6555 _ACEOF
6556 cat >>$CONFIG_STATUS <<\_ACEOF
6557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6558 ac_cs_recheck=: ;;
6559 --version | --vers* | -V )
6560 echo "$ac_cs_version"; exit 0 ;;
6561 --he | --h)
6562 # Conflict between --help and --header
6563 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6564 Try \`$0 --help' for more information." >&5
6565 echo "$as_me: error: ambiguous option: $1
6566 Try \`$0 --help' for more information." >&2;}
6567 { (exit 1); exit 1; }; };;
6568 --help | --hel | -h )
6569 echo "$ac_cs_usage"; exit 0 ;;
6570 --debug | --d* | -d )
6571 debug=: ;;
6572 --file | --fil | --fi | --f )
6573 $ac_shift
6574 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6575 ac_need_defaults=false;;
6576 --header | --heade | --head | --hea )
6577 $ac_shift
6578 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6579 ac_need_defaults=false;;
6580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6582 ac_cs_silent=: ;;
6584 # This is an error.
6585 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6586 Try \`$0 --help' for more information." >&5
6587 echo "$as_me: error: unrecognized option: $1
6588 Try \`$0 --help' for more information." >&2;}
6589 { (exit 1); exit 1; }; } ;;
6591 *) ac_config_targets="$ac_config_targets $1" ;;
6593 esac
6594 shift
6595 done
6597 ac_configure_extra_args=
6599 if $ac_cs_silent; then
6600 exec 6>/dev/null
6601 ac_configure_extra_args="$ac_configure_extra_args --silent"
6604 _ACEOF
6605 cat >>$CONFIG_STATUS <<_ACEOF
6606 if \$ac_cs_recheck; then
6607 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6608 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6611 _ACEOF
6617 cat >>$CONFIG_STATUS <<\_ACEOF
6618 for ac_config_target in $ac_config_targets
6620 case "$ac_config_target" in
6621 # Handling of arguments.
6622 "opal_inc.mak" ) CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
6623 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6624 "src/codec/speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES src/codec/speex/libspeex/speex_config_types.h" ;;
6625 "include/opal/buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
6626 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6627 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6628 { (exit 1); exit 1; }; };;
6629 esac
6630 done
6632 # If the user did not use the arguments to specify the items to instantiate,
6633 # then the envvar interface is used. Set only those that are not.
6634 # We use the long form for the default assignment because of an extremely
6635 # bizarre bug on SunOS 4.1.3.
6636 if $ac_need_defaults; then
6637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6641 # Have a temporary directory for convenience. Make it in the build tree
6642 # simply because there is no reason to put it here, and in addition,
6643 # creating and moving files from /tmp can sometimes cause problems.
6644 # Create a temporary directory, and hook for its removal unless debugging.
6645 $debug ||
6647 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6648 trap '{ (exit 1); exit 1; }' 1 2 13 15
6651 # Create a (secure) tmp directory for tmp files.
6654 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6655 test -n "$tmp" && test -d "$tmp"
6656 } ||
6658 tmp=./confstat$$-$RANDOM
6659 (umask 077 && mkdir $tmp)
6660 } ||
6662 echo "$me: cannot create a temporary directory in ." >&2
6663 { (exit 1); exit 1; }
6666 _ACEOF
6668 cat >>$CONFIG_STATUS <<_ACEOF
6671 # CONFIG_FILES section.
6674 # No need to generate the scripts if there are no CONFIG_FILES.
6675 # This happens for instance when ./config.status config.h
6676 if test -n "\$CONFIG_FILES"; then
6677 # Protect against being on the right side of a sed subst in config.status.
6678 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6679 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6680 s,@SHELL@,$SHELL,;t t
6681 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6682 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6683 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6684 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6685 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6686 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6687 s,@exec_prefix@,$exec_prefix,;t t
6688 s,@prefix@,$prefix,;t t
6689 s,@program_transform_name@,$program_transform_name,;t t
6690 s,@bindir@,$bindir,;t t
6691 s,@sbindir@,$sbindir,;t t
6692 s,@libexecdir@,$libexecdir,;t t
6693 s,@datadir@,$datadir,;t t
6694 s,@sysconfdir@,$sysconfdir,;t t
6695 s,@sharedstatedir@,$sharedstatedir,;t t
6696 s,@localstatedir@,$localstatedir,;t t
6697 s,@libdir@,$libdir,;t t
6698 s,@includedir@,$includedir,;t t
6699 s,@oldincludedir@,$oldincludedir,;t t
6700 s,@infodir@,$infodir,;t t
6701 s,@mandir@,$mandir,;t t
6702 s,@build_alias@,$build_alias,;t t
6703 s,@host_alias@,$host_alias,;t t
6704 s,@target_alias@,$target_alias,;t t
6705 s,@DEFS@,$DEFS,;t t
6706 s,@ECHO_C@,$ECHO_C,;t t
6707 s,@ECHO_N@,$ECHO_N,;t t
6708 s,@ECHO_T@,$ECHO_T,;t t
6709 s,@LIBS@,$LIBS,;t t
6710 s,@CC@,$CC,;t t
6711 s,@CFLAGS@,$CFLAGS,;t t
6712 s,@LDFLAGS@,$LDFLAGS,;t t
6713 s,@CPPFLAGS@,$CPPFLAGS,;t t
6714 s,@ac_ct_CC@,$ac_ct_CC,;t t
6715 s,@EXEEXT@,$EXEEXT,;t t
6716 s,@OBJEXT@,$OBJEXT,;t t
6717 s,@CXX@,$CXX,;t t
6718 s,@CXXFLAGS@,$CXXFLAGS,;t t
6719 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6720 s,@OPALDIR@,$OPALDIR,;t t
6721 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6722 s,@LIBDIR@,$LIBDIR,;t t
6723 s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
6724 s,@PWLIBDIR@,$PWLIBDIR,;t t
6725 s,@CPP@,$CPP,;t t
6726 s,@EGREP@,$EGREP,;t t
6727 s,@SIZE16@,$SIZE16,;t t
6728 s,@SIZE32@,$SIZE32,;t t
6729 s,@OPAL_SYSTEM_SPEEX@,$OPAL_SYSTEM_SPEEX,;t t
6730 s,@OPAL_HAVE_SPEEX_SPEEX_H@,$OPAL_HAVE_SPEEX_SPEEX_H,;t t
6731 s,@OPAL_AUDIO@,$OPAL_AUDIO,;t t
6732 s,@OPAL_VIDEO@,$OPAL_VIDEO,;t t
6733 s,@OPAL_SIP@,$OPAL_SIP,;t t
6734 s,@OPAL_H323@,$OPAL_H323,;t t
6735 s,@OPAL_IAX2@,$OPAL_IAX2,;t t
6736 s,@OPAL_H224@,$OPAL_H224,;t t
6737 s,@OPAL_T38FAX@,$OPAL_T38FAX,;t t
6738 s,@H323_H460@,$H323_H460,;t t
6739 s,@OPAL_LID@,$OPAL_LID,;t t
6740 s,@OPAL_IVR@,$OPAL_IVR,;t t
6741 s,@OPAL_SRTP@,$OPAL_SRTP,;t t
6742 s,@HAS_LIBSRTP@,$HAS_LIBSRTP,;t t
6743 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
6744 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
6745 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6746 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6747 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6748 s,@subdirs@,$subdirs,;t t
6749 s,@LIBOBJS@,$LIBOBJS,;t t
6750 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6751 CEOF
6753 _ACEOF
6755 cat >>$CONFIG_STATUS <<\_ACEOF
6756 # Split the substitutions into bite-sized pieces for seds with
6757 # small command number limits, like on Digital OSF/1 and HP-UX.
6758 ac_max_sed_lines=48
6759 ac_sed_frag=1 # Number of current file.
6760 ac_beg=1 # First line for current file.
6761 ac_end=$ac_max_sed_lines # Line after last line for current file.
6762 ac_more_lines=:
6763 ac_sed_cmds=
6764 while $ac_more_lines; do
6765 if test $ac_beg -gt 1; then
6766 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6767 else
6768 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6770 if test ! -s $tmp/subs.frag; then
6771 ac_more_lines=false
6772 else
6773 # The purpose of the label and of the branching condition is to
6774 # speed up the sed processing (if there are no `@' at all, there
6775 # is no need to browse any of the substitutions).
6776 # These are the two extra sed commands mentioned above.
6777 (echo ':t
6778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6779 if test -z "$ac_sed_cmds"; then
6780 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6781 else
6782 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6784 ac_sed_frag=`expr $ac_sed_frag + 1`
6785 ac_beg=$ac_end
6786 ac_end=`expr $ac_end + $ac_max_sed_lines`
6788 done
6789 if test -z "$ac_sed_cmds"; then
6790 ac_sed_cmds=cat
6792 fi # test -n "$CONFIG_FILES"
6794 _ACEOF
6795 cat >>$CONFIG_STATUS <<\_ACEOF
6796 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6798 case $ac_file in
6799 - | *:- | *:-:* ) # input from stdin
6800 cat >$tmp/stdin
6801 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6803 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6804 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6805 * ) ac_file_in=$ac_file.in ;;
6806 esac
6808 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6809 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6810 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6811 X"$ac_file" : 'X\(//\)[^/]' \| \
6812 X"$ac_file" : 'X\(//\)$' \| \
6813 X"$ac_file" : 'X\(/\)' \| \
6814 . : '\(.\)' 2>/dev/null ||
6815 echo X"$ac_file" |
6816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6818 /^X\(\/\/\)$/{ s//\1/; q; }
6819 /^X\(\/\).*/{ s//\1/; q; }
6820 s/.*/./; q'`
6821 { if $as_mkdir_p; then
6822 mkdir -p "$ac_dir"
6823 else
6824 as_dir="$ac_dir"
6825 as_dirs=
6826 while test ! -d "$as_dir"; do
6827 as_dirs="$as_dir $as_dirs"
6828 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6830 X"$as_dir" : 'X\(//\)[^/]' \| \
6831 X"$as_dir" : 'X\(//\)$' \| \
6832 X"$as_dir" : 'X\(/\)' \| \
6833 . : '\(.\)' 2>/dev/null ||
6834 echo X"$as_dir" |
6835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6837 /^X\(\/\/\)$/{ s//\1/; q; }
6838 /^X\(\/\).*/{ s//\1/; q; }
6839 s/.*/./; q'`
6840 done
6841 test ! -n "$as_dirs" || mkdir $as_dirs
6842 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6843 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6844 { (exit 1); exit 1; }; }; }
6846 ac_builddir=.
6848 if test "$ac_dir" != .; then
6849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6850 # A "../" for each directory in $ac_dir_suffix.
6851 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6852 else
6853 ac_dir_suffix= ac_top_builddir=
6856 case $srcdir in
6857 .) # No --srcdir option. We are building in place.
6858 ac_srcdir=.
6859 if test -z "$ac_top_builddir"; then
6860 ac_top_srcdir=.
6861 else
6862 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6863 fi ;;
6864 [\\/]* | ?:[\\/]* ) # Absolute path.
6865 ac_srcdir=$srcdir$ac_dir_suffix;
6866 ac_top_srcdir=$srcdir ;;
6867 *) # Relative path.
6868 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6869 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6870 esac
6872 # Do not use `cd foo && pwd` to compute absolute paths, because
6873 # the directories may not exist.
6874 case `pwd` in
6875 .) ac_abs_builddir="$ac_dir";;
6877 case "$ac_dir" in
6878 .) ac_abs_builddir=`pwd`;;
6879 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6880 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6881 esac;;
6882 esac
6883 case $ac_abs_builddir in
6884 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6886 case ${ac_top_builddir}. in
6887 .) ac_abs_top_builddir=$ac_abs_builddir;;
6888 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6889 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6890 esac;;
6891 esac
6892 case $ac_abs_builddir in
6893 .) ac_abs_srcdir=$ac_srcdir;;
6895 case $ac_srcdir in
6896 .) ac_abs_srcdir=$ac_abs_builddir;;
6897 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6898 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6899 esac;;
6900 esac
6901 case $ac_abs_builddir in
6902 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6904 case $ac_top_srcdir in
6905 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6906 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6907 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6908 esac;;
6909 esac
6912 case $INSTALL in
6913 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6914 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6915 esac
6917 # Let's still pretend it is `configure' which instantiates (i.e., don't
6918 # use $as_me), people would be surprised to read:
6919 # /* config.h. Generated by config.status. */
6920 if test x"$ac_file" = x-; then
6921 configure_input=
6922 else
6923 configure_input="$ac_file. "
6925 configure_input=$configure_input"Generated from `echo $ac_file_in |
6926 sed 's,.*/,,'` by configure."
6928 # First look for the input files in the build tree, otherwise in the
6929 # src tree.
6930 ac_file_inputs=`IFS=:
6931 for f in $ac_file_in; do
6932 case $f in
6933 -) echo $tmp/stdin ;;
6934 [\\/$]*)
6935 # Absolute (can't be DOS-style, as IFS=:)
6936 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6937 echo "$as_me: error: cannot find input file: $f" >&2;}
6938 { (exit 1); exit 1; }; }
6939 echo "$f";;
6940 *) # Relative
6941 if test -f "$f"; then
6942 # Build tree
6943 echo "$f"
6944 elif test -f "$srcdir/$f"; then
6945 # Source tree
6946 echo "$srcdir/$f"
6947 else
6948 # /dev/null tree
6949 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6950 echo "$as_me: error: cannot find input file: $f" >&2;}
6951 { (exit 1); exit 1; }; }
6952 fi;;
6953 esac
6954 done` || { (exit 1); exit 1; }
6956 if test x"$ac_file" != x-; then
6957 { echo "$as_me:$LINENO: creating $ac_file" >&5
6958 echo "$as_me: creating $ac_file" >&6;}
6959 rm -f "$ac_file"
6961 _ACEOF
6962 cat >>$CONFIG_STATUS <<_ACEOF
6963 sed "$ac_vpsub
6964 $extrasub
6965 _ACEOF
6966 cat >>$CONFIG_STATUS <<\_ACEOF
6968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6969 s,@configure_input@,$configure_input,;t t
6970 s,@srcdir@,$ac_srcdir,;t t
6971 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6972 s,@top_srcdir@,$ac_top_srcdir,;t t
6973 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6974 s,@builddir@,$ac_builddir,;t t
6975 s,@abs_builddir@,$ac_abs_builddir,;t t
6976 s,@top_builddir@,$ac_top_builddir,;t t
6977 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6978 s,@INSTALL@,$ac_INSTALL,;t t
6979 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6980 rm -f $tmp/stdin
6981 if test x"$ac_file" != x-; then
6982 mv $tmp/out $ac_file
6983 else
6984 cat $tmp/out
6985 rm -f $tmp/out
6988 done
6989 _ACEOF
6990 cat >>$CONFIG_STATUS <<\_ACEOF
6993 # CONFIG_HEADER section.
6996 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6997 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6999 # ac_d sets the value in "#define NAME VALUE" lines.
7000 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7001 ac_dB='[ ].*$,\1#\2'
7002 ac_dC=' '
7003 ac_dD=',;t'
7004 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7005 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7006 ac_uB='$,\1#\2define\3'
7007 ac_uC=' '
7008 ac_uD=',;t'
7010 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7012 case $ac_file in
7013 - | *:- | *:-:* ) # input from stdin
7014 cat >$tmp/stdin
7015 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7016 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7017 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7019 * ) ac_file_in=$ac_file.in ;;
7020 esac
7022 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7023 echo "$as_me: creating $ac_file" >&6;}
7025 # First look for the input files in the build tree, otherwise in the
7026 # src tree.
7027 ac_file_inputs=`IFS=:
7028 for f in $ac_file_in; do
7029 case $f in
7030 -) echo $tmp/stdin ;;
7031 [\\/$]*)
7032 # Absolute (can't be DOS-style, as IFS=:)
7033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7034 echo "$as_me: error: cannot find input file: $f" >&2;}
7035 { (exit 1); exit 1; }; }
7036 # Do quote $f, to prevent DOS paths from being IFS'd.
7037 echo "$f";;
7038 *) # Relative
7039 if test -f "$f"; then
7040 # Build tree
7041 echo "$f"
7042 elif test -f "$srcdir/$f"; then
7043 # Source tree
7044 echo "$srcdir/$f"
7045 else
7046 # /dev/null tree
7047 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7048 echo "$as_me: error: cannot find input file: $f" >&2;}
7049 { (exit 1); exit 1; }; }
7050 fi;;
7051 esac
7052 done` || { (exit 1); exit 1; }
7053 # Remove the trailing spaces.
7054 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7056 _ACEOF
7058 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7059 # `conftest.undefs', that substitutes the proper values into
7060 # config.h.in to produce config.h. The first handles `#define'
7061 # templates, and the second `#undef' templates.
7062 # And first: Protect against being on the right side of a sed subst in
7063 # config.status. Protect against being in an unquoted here document
7064 # in config.status.
7065 rm -f conftest.defines conftest.undefs
7066 # Using a here document instead of a string reduces the quoting nightmare.
7067 # Putting comments in sed scripts is not portable.
7069 # `end' is used to avoid that the second main sed command (meant for
7070 # 0-ary CPP macros) applies to n-ary macro definitions.
7071 # See the Autoconf documentation for `clear'.
7072 cat >confdef2sed.sed <<\_ACEOF
7073 s/[\\&,]/\\&/g
7074 s,[\\$`],\\&,g
7075 t clear
7076 : clear
7077 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7078 t end
7079 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7080 : end
7081 _ACEOF
7082 # If some macros were called several times there might be several times
7083 # the same #defines, which is useless. Nevertheless, we may not want to
7084 # sort them, since we want the *last* AC-DEFINE to be honored.
7085 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7086 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7087 rm -f confdef2sed.sed
7089 # This sed command replaces #undef with comments. This is necessary, for
7090 # example, in the case of _POSIX_SOURCE, which is predefined and required
7091 # on some systems where configure will not decide to define it.
7092 cat >>conftest.undefs <<\_ACEOF
7093 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7094 _ACEOF
7096 # Break up conftest.defines because some shells have a limit on the size
7097 # of here documents, and old seds have small limits too (100 cmds).
7098 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7099 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7100 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7101 echo ' :' >>$CONFIG_STATUS
7102 rm -f conftest.tail
7103 while grep . conftest.defines >/dev/null
7105 # Write a limited-size here document to $tmp/defines.sed.
7106 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7107 # Speed up: don't consider the non `#define' lines.
7108 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7109 # Work around the forget-to-reset-the-flag bug.
7110 echo 't clr' >>$CONFIG_STATUS
7111 echo ': clr' >>$CONFIG_STATUS
7112 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7113 echo 'CEOF
7114 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7115 rm -f $tmp/in
7116 mv $tmp/out $tmp/in
7117 ' >>$CONFIG_STATUS
7118 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7119 rm -f conftest.defines
7120 mv conftest.tail conftest.defines
7121 done
7122 rm -f conftest.defines
7123 echo ' fi # grep' >>$CONFIG_STATUS
7124 echo >>$CONFIG_STATUS
7126 # Break up conftest.undefs because some shells have a limit on the size
7127 # of here documents, and old seds have small limits too (100 cmds).
7128 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7129 rm -f conftest.tail
7130 while grep . conftest.undefs >/dev/null
7132 # Write a limited-size here document to $tmp/undefs.sed.
7133 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7134 # Speed up: don't consider the non `#undef'
7135 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7136 # Work around the forget-to-reset-the-flag bug.
7137 echo 't clr' >>$CONFIG_STATUS
7138 echo ': clr' >>$CONFIG_STATUS
7139 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7140 echo 'CEOF
7141 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7142 rm -f $tmp/in
7143 mv $tmp/out $tmp/in
7144 ' >>$CONFIG_STATUS
7145 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7146 rm -f conftest.undefs
7147 mv conftest.tail conftest.undefs
7148 done
7149 rm -f conftest.undefs
7151 cat >>$CONFIG_STATUS <<\_ACEOF
7152 # Let's still pretend it is `configure' which instantiates (i.e., don't
7153 # use $as_me), people would be surprised to read:
7154 # /* config.h. Generated by config.status. */
7155 if test x"$ac_file" = x-; then
7156 echo "/* Generated by configure. */" >$tmp/config.h
7157 else
7158 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7160 cat $tmp/in >>$tmp/config.h
7161 rm -f $tmp/in
7162 if test x"$ac_file" != x-; then
7163 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7164 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7165 echo "$as_me: $ac_file is unchanged" >&6;}
7166 else
7167 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7168 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7169 X"$ac_file" : 'X\(//\)[^/]' \| \
7170 X"$ac_file" : 'X\(//\)$' \| \
7171 X"$ac_file" : 'X\(/\)' \| \
7172 . : '\(.\)' 2>/dev/null ||
7173 echo X"$ac_file" |
7174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7176 /^X\(\/\/\)$/{ s//\1/; q; }
7177 /^X\(\/\).*/{ s//\1/; q; }
7178 s/.*/./; q'`
7179 { if $as_mkdir_p; then
7180 mkdir -p "$ac_dir"
7181 else
7182 as_dir="$ac_dir"
7183 as_dirs=
7184 while test ! -d "$as_dir"; do
7185 as_dirs="$as_dir $as_dirs"
7186 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7187 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7188 X"$as_dir" : 'X\(//\)[^/]' \| \
7189 X"$as_dir" : 'X\(//\)$' \| \
7190 X"$as_dir" : 'X\(/\)' \| \
7191 . : '\(.\)' 2>/dev/null ||
7192 echo X"$as_dir" |
7193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7195 /^X\(\/\/\)$/{ s//\1/; q; }
7196 /^X\(\/\).*/{ s//\1/; q; }
7197 s/.*/./; q'`
7198 done
7199 test ! -n "$as_dirs" || mkdir $as_dirs
7200 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7201 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7202 { (exit 1); exit 1; }; }; }
7204 rm -f $ac_file
7205 mv $tmp/config.h $ac_file
7207 else
7208 cat $tmp/config.h
7209 rm -f $tmp/config.h
7211 done
7212 _ACEOF
7214 cat >>$CONFIG_STATUS <<\_ACEOF
7216 { (exit 0); exit 0; }
7217 _ACEOF
7218 chmod +x $CONFIG_STATUS
7219 ac_clean_files=$ac_clean_files_save
7222 # configure is writing to config.log, and then calls config.status.
7223 # config.status does its own redirection, appending to config.log.
7224 # Unfortunately, on DOS this fails, as config.log is still kept open
7225 # by configure, so config.status won't be able to write to it; its
7226 # output is simply discarded. So we exec the FD to /dev/null,
7227 # effectively closing config.log, so it can be properly (re)opened and
7228 # appended to by config.status. When coming back to configure, we
7229 # need to make the FD available again.
7230 if test "$no_create" != yes; then
7231 ac_cs_success=:
7232 ac_config_status_args=
7233 test "$silent" = yes &&
7234 ac_config_status_args="$ac_config_status_args --quiet"
7235 exec 5>/dev/null
7236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7237 exec 5>>config.log
7238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7239 # would make configure fail if this is the last instruction.
7240 $ac_cs_success || { (exit 1); exit 1; }
7244 # CONFIG_SUBDIRS section.
7246 if test "$no_recursion" != yes; then
7248 # Remove --cache-file and --srcdir arguments so they do not pile up.
7249 ac_sub_configure_args=
7250 ac_prev=
7251 for ac_arg in $ac_configure_args; do
7252 if test -n "$ac_prev"; then
7253 ac_prev=
7254 continue
7256 case $ac_arg in
7257 -cache-file | --cache-file | --cache-fil | --cache-fi \
7258 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7259 ac_prev=cache_file ;;
7260 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7261 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7262 | --c=*)
7264 --config-cache | -C)
7266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7267 ac_prev=srcdir ;;
7268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7271 ac_prev=prefix ;;
7272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7274 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7275 esac
7276 done
7278 # Always prepend --prefix to ensure using the same prefix
7279 # in subdir configurations.
7280 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7282 ac_popdir=`pwd`
7283 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7285 # Do not complain, so a configure script can configure whichever
7286 # parts of a large source tree are present.
7287 test -d $srcdir/$ac_dir || continue
7289 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7290 echo "$as_me: configuring in $ac_dir" >&6;}
7291 { if $as_mkdir_p; then
7292 mkdir -p "$ac_dir"
7293 else
7294 as_dir="$ac_dir"
7295 as_dirs=
7296 while test ! -d "$as_dir"; do
7297 as_dirs="$as_dir $as_dirs"
7298 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7300 X"$as_dir" : 'X\(//\)[^/]' \| \
7301 X"$as_dir" : 'X\(//\)$' \| \
7302 X"$as_dir" : 'X\(/\)' \| \
7303 . : '\(.\)' 2>/dev/null ||
7304 echo X"$as_dir" |
7305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7307 /^X\(\/\/\)$/{ s//\1/; q; }
7308 /^X\(\/\).*/{ s//\1/; q; }
7309 s/.*/./; q'`
7310 done
7311 test ! -n "$as_dirs" || mkdir $as_dirs
7312 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7313 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7314 { (exit 1); exit 1; }; }; }
7316 ac_builddir=.
7318 if test "$ac_dir" != .; then
7319 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7320 # A "../" for each directory in $ac_dir_suffix.
7321 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7322 else
7323 ac_dir_suffix= ac_top_builddir=
7326 case $srcdir in
7327 .) # No --srcdir option. We are building in place.
7328 ac_srcdir=.
7329 if test -z "$ac_top_builddir"; then
7330 ac_top_srcdir=.
7331 else
7332 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7333 fi ;;
7334 [\\/]* | ?:[\\/]* ) # Absolute path.
7335 ac_srcdir=$srcdir$ac_dir_suffix;
7336 ac_top_srcdir=$srcdir ;;
7337 *) # Relative path.
7338 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7339 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7340 esac
7342 # Do not use `cd foo && pwd` to compute absolute paths, because
7343 # the directories may not exist.
7344 case `pwd` in
7345 .) ac_abs_builddir="$ac_dir";;
7347 case "$ac_dir" in
7348 .) ac_abs_builddir=`pwd`;;
7349 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7350 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7351 esac;;
7352 esac
7353 case $ac_abs_builddir in
7354 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7356 case ${ac_top_builddir}. in
7357 .) ac_abs_top_builddir=$ac_abs_builddir;;
7358 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7359 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7360 esac;;
7361 esac
7362 case $ac_abs_builddir in
7363 .) ac_abs_srcdir=$ac_srcdir;;
7365 case $ac_srcdir in
7366 .) ac_abs_srcdir=$ac_abs_builddir;;
7367 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7368 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7369 esac;;
7370 esac
7371 case $ac_abs_builddir in
7372 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7374 case $ac_top_srcdir in
7375 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7376 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7377 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7378 esac;;
7379 esac
7382 cd $ac_dir
7384 # Check for guested configure; otherwise get Cygnus style configure.
7385 if test -f $ac_srcdir/configure.gnu; then
7386 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7387 elif test -f $ac_srcdir/configure; then
7388 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7389 elif test -f $ac_srcdir/configure.in; then
7390 ac_sub_configure=$ac_configure
7391 else
7392 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7393 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7394 ac_sub_configure=
7397 # The recursion is here.
7398 if test -n "$ac_sub_configure"; then
7399 # Make the cache file name correct relative to the subdirectory.
7400 case $cache_file in
7401 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7402 *) # Relative path.
7403 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7404 esac
7406 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7407 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7408 # The eval makes quoting arguments work.
7409 eval $ac_sub_configure $ac_sub_configure_args \
7410 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7411 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7412 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7413 { (exit 1); exit 1; }; }
7416 cd "$ac_popdir"
7417 done