Added VU meters
[opal.git] / plugins / configure
blobe763cf70447e95ae1266902806aef69c2b3ac45a
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="configure.ac"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP EGREP INSTALLPREFIX LIBDIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LDSO H323_GSMAMR_NB_FLOAT H323_SYSTEM_GSM SIZE16 SIZE32 H323_SYSTEM_SPEEX LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXX_set=${CXX+set}
754 ac_env_CXX_value=$CXX
755 ac_cv_env_CXX_set=${CXX+set}
756 ac_cv_env_CXX_value=$CXX
757 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_env_CXXFLAGS_value=$CXXFLAGS
759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CC_set=${CC+set}
770 ac_env_CC_value=$CC
771 ac_cv_env_CC_set=${CC+set}
772 ac_cv_env_CC_value=$CC
773 ac_env_CFLAGS_set=${CFLAGS+set}
774 ac_env_CFLAGS_value=$CFLAGS
775 ac_cv_env_CFLAGS_set=${CFLAGS+set}
776 ac_cv_env_CFLAGS_value=$CFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 System types:
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 --target=TARGET configure for building compilers for TARGET [HOST]
846 _ACEOF
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-localgsm use local version of GSM library rather than system version
857 --enable-localspeex use local version of Speex library rather than system version
859 Some influential environment variables:
860 CXX C++ compiler command
861 CXXFLAGS C++ compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
866 CC C compiler command
867 CFLAGS C compiler flags
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
946 cd $ac_dir
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
949 echo
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
952 echo
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
956 echo
957 $ac_configure --help
958 else
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 cd $ac_popdir
962 done
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967 cat <<\_ACEOF
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
972 _ACEOF
973 exit 0
975 exec 5>config.log
976 cat >&5 <<_ACEOF
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
983 $ $0 $@
985 _ACEOF
987 cat <<_ASUNAME
988 ## --------- ##
989 ## Platform. ##
990 ## --------- ##
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1009 _ASUNAME
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 for as_dir in $PATH
1014 IFS=$as_save_IFS
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1017 done
1019 } >&5
1021 cat >&5 <<_ACEOF
1024 ## ----------- ##
1025 ## Core tests. ##
1026 ## ----------- ##
1028 _ACEOF
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_configure_args=
1037 ac_configure_args0=
1038 ac_configure_args1=
1039 ac_sep=
1040 ac_must_keep_next=false
1041 for ac_pass in 1 2
1043 for ac_arg
1045 case $ac_arg in
1046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 continue ;;
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052 esac
1053 case $ac_pass in
1054 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true; then
1058 ac_must_keep_next=false # Got value, back to normal.
1059 else
1060 case $ac_arg in
1061 *=* | --config-cache | -C | -disable-* | --disable-* \
1062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064 | -with-* | --with-* | -without-* | --without-* | --x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067 esac
1069 -* ) ac_must_keep_next=true ;;
1070 esac
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1074 ac_sep=" "
1076 esac
1077 done
1078 done
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088 # Save into config.log some information that might help in debugging.
1090 echo
1092 cat <<\_ASBOX
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1096 _ASBOX
1097 echo
1098 # The following way of writing the cache mishandles newlines in values,
1100 (set) 2>&1 |
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102 *ac_space=\ *)
1103 sed -n \
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 sed -n \
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 esac;
1113 echo
1115 cat <<\_ASBOX
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1119 _ASBOX
1120 echo
1121 for ac_var in $ac_subst_vars
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1125 done | sort
1126 echo
1128 if test -n "$ac_subst_files"; then
1129 cat <<\_ASBOX
1130 ## ------------- ##
1131 ## Output files. ##
1132 ## ------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_files
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1143 if test -s confdefs.h; then
1144 cat <<\_ASBOX
1145 ## ----------- ##
1146 ## confdefs.h. ##
1147 ## ----------- ##
1148 _ASBOX
1149 echo
1150 sed "/^$/d" confdefs.h | sort
1151 echo
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1156 } >&5
1157 rm -f core *.core &&
1158 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159 exit $exit_status
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 done
1164 ac_signal=0
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169 echo >confdefs.h
1171 # Predefined preprocessor variables.
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 _ACEOF
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 else
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's/^/| /' "$ac_site_file" >&5
1212 . "$ac_site_file"
1214 done
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1222 case $cache_file in
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1225 esac
1227 else
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1230 >$cache_file
1233 # Check that the precious variables saved in the cache have kept the same
1234 # value.
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1243 set,)
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1247 ,set)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,);;
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted=:
1261 fi;;
1262 esac
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1265 case $ac_new_val in
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg=$ac_var=$ac_new_val ;;
1269 esac
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 esac
1275 done
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1284 ac_ext=c
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 ac_ext=cc
1310 ac_cpp='$CXXCPP $CPPFLAGS'
1311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1314 if test -n "$ac_tool_prefix"; then
1315 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1319 echo "$as_me:$LINENO: checking for $ac_word" >&5
1320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1321 if test "${ac_cv_prog_CXX+set}" = set; then
1322 echo $ECHO_N "(cached) $ECHO_C" >&6
1323 else
1324 if test -n "$CXX"; then
1325 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1326 else
1327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1328 for as_dir in $PATH
1330 IFS=$as_save_IFS
1331 test -z "$as_dir" && as_dir=.
1332 for ac_exec_ext in '' $ac_executable_extensions; do
1333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1334 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1336 break 2
1338 done
1339 done
1343 CXX=$ac_cv_prog_CXX
1344 if test -n "$CXX"; then
1345 echo "$as_me:$LINENO: result: $CXX" >&5
1346 echo "${ECHO_T}$CXX" >&6
1347 else
1348 echo "$as_me:$LINENO: result: no" >&5
1349 echo "${ECHO_T}no" >&6
1352 test -n "$CXX" && break
1353 done
1355 if test -z "$CXX"; then
1356 ac_ct_CXX=$CXX
1357 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1359 # Extract the first word of "$ac_prog", so it can be a program name with args.
1360 set dummy $ac_prog; 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_CXX+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 else
1366 if test -n "$ac_ct_CXX"; then
1367 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog"
1377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1378 break 2
1380 done
1381 done
1385 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1386 if test -n "$ac_ct_CXX"; then
1387 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1388 echo "${ECHO_T}$ac_ct_CXX" >&6
1389 else
1390 echo "$as_me:$LINENO: result: no" >&5
1391 echo "${ECHO_T}no" >&6
1394 test -n "$ac_ct_CXX" && break
1395 done
1396 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1398 CXX=$ac_ct_CXX
1402 # Provide some information about the compiler.
1403 echo "$as_me:$LINENO:" \
1404 "checking for C++ compiler version" >&5
1405 ac_compiler=`set X $ac_compile; echo $2`
1406 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1407 (eval $ac_compiler --version </dev/null >&5) 2>&5
1408 ac_status=$?
1409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1410 (exit $ac_status); }
1411 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1412 (eval $ac_compiler -v </dev/null >&5) 2>&5
1413 ac_status=$?
1414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1415 (exit $ac_status); }
1416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1417 (eval $ac_compiler -V </dev/null >&5) 2>&5
1418 ac_status=$?
1419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1420 (exit $ac_status); }
1422 cat >conftest.$ac_ext <<_ACEOF
1423 /* confdefs.h. */
1424 _ACEOF
1425 cat confdefs.h >>conftest.$ac_ext
1426 cat >>conftest.$ac_ext <<_ACEOF
1427 /* end confdefs.h. */
1430 main ()
1434 return 0;
1436 _ACEOF
1437 ac_clean_files_save=$ac_clean_files
1438 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1439 # Try to create an executable without -o first, disregard a.out.
1440 # It will help us diagnose broken compilers, and finding out an intuition
1441 # of exeext.
1442 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1443 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1444 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1445 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1446 (eval $ac_link_default) 2>&5
1447 ac_status=$?
1448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1449 (exit $ac_status); }; then
1450 # Find the output, starting from the most likely. This scheme is
1451 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1452 # resort.
1454 # Be careful to initialize this variable, since it used to be cached.
1455 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1456 ac_cv_exeext=
1457 # b.out is created by i960 compilers.
1458 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1460 test -f "$ac_file" || continue
1461 case $ac_file in
1462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1464 conftest.$ac_ext )
1465 # This is the source file.
1467 [ab].out )
1468 # We found the default executable, but exeext='' is most
1469 # certainly right.
1470 break;;
1471 *.* )
1472 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1473 # FIXME: I believe we export ac_cv_exeext for Libtool,
1474 # but it would be cool to find out if it's true. Does anybody
1475 # maintain Libtool? --akim.
1476 export ac_cv_exeext
1477 break;;
1479 break;;
1480 esac
1481 done
1482 else
1483 echo "$as_me: failed program was:" >&5
1484 sed 's/^/| /' conftest.$ac_ext >&5
1486 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1487 See \`config.log' for more details." >&5
1488 echo "$as_me: error: C++ compiler cannot create executables
1489 See \`config.log' for more details." >&2;}
1490 { (exit 77); exit 77; }; }
1493 ac_exeext=$ac_cv_exeext
1494 echo "$as_me:$LINENO: result: $ac_file" >&5
1495 echo "${ECHO_T}$ac_file" >&6
1497 # Check the compiler produces executables we can run. If not, either
1498 # the compiler is broken, or we cross compile.
1499 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1500 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1501 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1502 # If not cross compiling, check that we can run a simple program.
1503 if test "$cross_compiling" != yes; then
1504 if { ac_try='./$ac_file'
1505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1506 (eval $ac_try) 2>&5
1507 ac_status=$?
1508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1509 (exit $ac_status); }; }; then
1510 cross_compiling=no
1511 else
1512 if test "$cross_compiling" = maybe; then
1513 cross_compiling=yes
1514 else
1515 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1516 If you meant to cross compile, use \`--host'.
1517 See \`config.log' for more details." >&5
1518 echo "$as_me: error: cannot run C++ compiled programs.
1519 If you meant to cross compile, use \`--host'.
1520 See \`config.log' for more details." >&2;}
1521 { (exit 1); exit 1; }; }
1525 echo "$as_me:$LINENO: result: yes" >&5
1526 echo "${ECHO_T}yes" >&6
1528 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1529 ac_clean_files=$ac_clean_files_save
1530 # Check the compiler produces executables we can run. If not, either
1531 # the compiler is broken, or we cross compile.
1532 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1533 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1534 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1535 echo "${ECHO_T}$cross_compiling" >&6
1537 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1538 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1540 (eval $ac_link) 2>&5
1541 ac_status=$?
1542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1543 (exit $ac_status); }; then
1544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1546 # work properly (i.e., refer to `conftest.exe'), while it won't with
1547 # `rm'.
1548 for ac_file in conftest.exe conftest conftest.*; do
1549 test -f "$ac_file" || continue
1550 case $ac_file in
1551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1553 export ac_cv_exeext
1554 break;;
1555 * ) break;;
1556 esac
1557 done
1558 else
1559 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1560 See \`config.log' for more details." >&5
1561 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1562 See \`config.log' for more details." >&2;}
1563 { (exit 1); exit 1; }; }
1566 rm -f conftest$ac_cv_exeext
1567 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1568 echo "${ECHO_T}$ac_cv_exeext" >&6
1570 rm -f conftest.$ac_ext
1571 EXEEXT=$ac_cv_exeext
1572 ac_exeext=$EXEEXT
1573 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1574 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1575 if test "${ac_cv_objext+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 cat >conftest.$ac_ext <<_ACEOF
1579 /* confdefs.h. */
1580 _ACEOF
1581 cat confdefs.h >>conftest.$ac_ext
1582 cat >>conftest.$ac_ext <<_ACEOF
1583 /* end confdefs.h. */
1586 main ()
1590 return 0;
1592 _ACEOF
1593 rm -f conftest.o conftest.obj
1594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1595 (eval $ac_compile) 2>&5
1596 ac_status=$?
1597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1598 (exit $ac_status); }; then
1599 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1600 case $ac_file in
1601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1603 break;;
1604 esac
1605 done
1606 else
1607 echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1611 See \`config.log' for more details." >&5
1612 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1613 See \`config.log' for more details." >&2;}
1614 { (exit 1); exit 1; }; }
1617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1619 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1620 echo "${ECHO_T}$ac_cv_objext" >&6
1621 OBJEXT=$ac_cv_objext
1622 ac_objext=$OBJEXT
1623 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1624 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1625 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 cat >conftest.$ac_ext <<_ACEOF
1629 /* confdefs.h. */
1630 _ACEOF
1631 cat confdefs.h >>conftest.$ac_ext
1632 cat >>conftest.$ac_ext <<_ACEOF
1633 /* end confdefs.h. */
1636 main ()
1638 #ifndef __GNUC__
1639 choke me
1640 #endif
1643 return 0;
1645 _ACEOF
1646 rm -f conftest.$ac_objext
1647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1648 (eval $ac_compile) 2>conftest.er1
1649 ac_status=$?
1650 grep -v '^ *+' conftest.er1 >conftest.err
1651 rm -f conftest.er1
1652 cat conftest.err >&5
1653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1654 (exit $ac_status); } &&
1655 { ac_try='test -z "$ac_cxx_werror_flag"
1656 || test ! -s conftest.err'
1657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1658 (eval $ac_try) 2>&5
1659 ac_status=$?
1660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1661 (exit $ac_status); }; } &&
1662 { ac_try='test -s conftest.$ac_objext'
1663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1664 (eval $ac_try) 2>&5
1665 ac_status=$?
1666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667 (exit $ac_status); }; }; then
1668 ac_compiler_gnu=yes
1669 else
1670 echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_compiler_gnu=no
1675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1676 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1679 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1680 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1681 GXX=`test $ac_compiler_gnu = yes && echo yes`
1682 ac_test_CXXFLAGS=${CXXFLAGS+set}
1683 ac_save_CXXFLAGS=$CXXFLAGS
1684 CXXFLAGS="-g"
1685 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1686 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1687 if test "${ac_cv_prog_cxx_g+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 cat >conftest.$ac_ext <<_ACEOF
1691 /* confdefs.h. */
1692 _ACEOF
1693 cat confdefs.h >>conftest.$ac_ext
1694 cat >>conftest.$ac_ext <<_ACEOF
1695 /* end confdefs.h. */
1698 main ()
1702 return 0;
1704 _ACEOF
1705 rm -f conftest.$ac_objext
1706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1707 (eval $ac_compile) 2>conftest.er1
1708 ac_status=$?
1709 grep -v '^ *+' conftest.er1 >conftest.err
1710 rm -f conftest.er1
1711 cat conftest.err >&5
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); } &&
1714 { ac_try='test -z "$ac_cxx_werror_flag"
1715 || test ! -s conftest.err'
1716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1717 (eval $ac_try) 2>&5
1718 ac_status=$?
1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 (exit $ac_status); }; } &&
1721 { ac_try='test -s conftest.$ac_objext'
1722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1723 (eval $ac_try) 2>&5
1724 ac_status=$?
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }; }; then
1727 ac_cv_prog_cxx_g=yes
1728 else
1729 echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1732 ac_cv_prog_cxx_g=no
1734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1736 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1737 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1738 if test "$ac_test_CXXFLAGS" = set; then
1739 CXXFLAGS=$ac_save_CXXFLAGS
1740 elif test $ac_cv_prog_cxx_g = yes; then
1741 if test "$GXX" = yes; then
1742 CXXFLAGS="-g -O2"
1743 else
1744 CXXFLAGS="-g"
1746 else
1747 if test "$GXX" = yes; then
1748 CXXFLAGS="-O2"
1749 else
1750 CXXFLAGS=
1753 for ac_declaration in \
1754 '' \
1755 'extern "C" void std::exit (int) throw (); using std::exit;' \
1756 'extern "C" void std::exit (int); using std::exit;' \
1757 'extern "C" void exit (int) throw ();' \
1758 'extern "C" void exit (int);' \
1759 'void exit (int);'
1761 cat >conftest.$ac_ext <<_ACEOF
1762 /* confdefs.h. */
1763 _ACEOF
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1767 $ac_declaration
1768 #include <stdlib.h>
1770 main ()
1772 exit (42);
1774 return 0;
1776 _ACEOF
1777 rm -f conftest.$ac_objext
1778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1779 (eval $ac_compile) 2>conftest.er1
1780 ac_status=$?
1781 grep -v '^ *+' conftest.er1 >conftest.err
1782 rm -f conftest.er1
1783 cat conftest.err >&5
1784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785 (exit $ac_status); } &&
1786 { ac_try='test -z "$ac_cxx_werror_flag"
1787 || test ! -s conftest.err'
1788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 (eval $ac_try) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; } &&
1793 { ac_try='test -s conftest.$ac_objext'
1794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1795 (eval $ac_try) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; }; then
1800 else
1801 echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1804 continue
1806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1807 cat >conftest.$ac_ext <<_ACEOF
1808 /* confdefs.h. */
1809 _ACEOF
1810 cat confdefs.h >>conftest.$ac_ext
1811 cat >>conftest.$ac_ext <<_ACEOF
1812 /* end confdefs.h. */
1813 $ac_declaration
1815 main ()
1817 exit (42);
1819 return 0;
1821 _ACEOF
1822 rm -f conftest.$ac_objext
1823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1824 (eval $ac_compile) 2>conftest.er1
1825 ac_status=$?
1826 grep -v '^ *+' conftest.er1 >conftest.err
1827 rm -f conftest.er1
1828 cat conftest.err >&5
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); } &&
1831 { ac_try='test -z "$ac_cxx_werror_flag"
1832 || test ! -s conftest.err'
1833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1834 (eval $ac_try) 2>&5
1835 ac_status=$?
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; } &&
1838 { ac_try='test -s conftest.$ac_objext'
1839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1840 (eval $ac_try) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }; }; then
1844 break
1845 else
1846 echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1851 done
1852 rm -f conftest*
1853 if test -n "$ac_declaration"; then
1854 echo '#ifdef __cplusplus' >>confdefs.h
1855 echo $ac_declaration >>confdefs.h
1856 echo '#endif' >>confdefs.h
1859 ac_ext=c
1860 ac_cpp='$CPP $CPPFLAGS'
1861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1865 ac_ext=c
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 if test -n "$ac_tool_prefix"; then
1871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1884 IFS=$as_save_IFS
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 break 2
1892 done
1893 done
1897 CC=$ac_cv_prog_CC
1898 if test -n "$CC"; then
1899 echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1901 else
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1907 if test -z "$ac_cv_prog_CC"; then
1908 ac_ct_CC=$CC
1909 # Extract the first word of "gcc", so it can be a program name with args.
1910 set dummy gcc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_ac_ct_CC="gcc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1930 done
1931 done
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1939 else
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1944 CC=$ac_ct_CC
1945 else
1946 CC="$ac_cv_prog_CC"
1949 if test -z "$CC"; then
1950 if test -n "$ac_tool_prefix"; then
1951 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1952 set dummy ${ac_tool_prefix}cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1964 IFS=$as_save_IFS
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 ac_cv_prog_CC="${ac_tool_prefix}cc"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 break 2
1972 done
1973 done
1977 CC=$ac_cv_prog_CC
1978 if test -n "$CC"; then
1979 echo "$as_me:$LINENO: result: $CC" >&5
1980 echo "${ECHO_T}$CC" >&6
1981 else
1982 echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1987 if test -z "$ac_cv_prog_CC"; then
1988 ac_ct_CC=$CC
1989 # Extract the first word of "cc", so it can be a program name with args.
1990 set dummy cc; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_ac_ct_CC="cc"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2
2010 done
2011 done
2015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2016 if test -n "$ac_ct_CC"; then
2017 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2018 echo "${ECHO_T}$ac_ct_CC" >&6
2019 else
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2024 CC=$ac_ct_CC
2025 else
2026 CC="$ac_cv_prog_CC"
2030 if test -z "$CC"; then
2031 # Extract the first word of "cc", so it can be a program name with args.
2032 set dummy cc; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 else
2041 ac_prog_rejected=no
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2050 ac_prog_rejected=yes
2051 continue
2053 ac_cv_prog_CC="cc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2057 done
2058 done
2060 if test $ac_prog_rejected = yes; then
2061 # We found a bogon in the path, so make sure we never use it.
2062 set dummy $ac_cv_prog_CC
2063 shift
2064 if test $# != 0; then
2065 # We chose a different compiler from the bogus one.
2066 # However, it has the same basename, so the bogon will be chosen
2067 # first if we set CC to just the basename; use the full file name.
2068 shift
2069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2074 CC=$ac_cv_prog_CC
2075 if test -n "$CC"; then
2076 echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6
2078 else
2079 echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6
2084 if test -z "$CC"; then
2085 if test -n "$ac_tool_prefix"; then
2086 for ac_prog in cl
2088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095 if test -n "$CC"; then
2096 ac_cv_prog_CC="$CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 break 2
2109 done
2110 done
2114 CC=$ac_cv_prog_CC
2115 if test -n "$CC"; then
2116 echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6
2118 else
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2123 test -n "$CC" && break
2124 done
2126 if test -z "$CC"; then
2127 ac_ct_CC=$CC
2128 for ac_prog in cl
2130 # Extract the first word of "$ac_prog", so it can be a program name with args.
2131 set dummy $ac_prog; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 if test -n "$ac_ct_CC"; then
2138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_prog_ac_ct_CC="$ac_prog"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2151 done
2152 done
2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157 if test -n "$ac_ct_CC"; then
2158 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159 echo "${ECHO_T}$ac_ct_CC" >&6
2160 else
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2165 test -n "$ac_ct_CC" && break
2166 done
2168 CC=$ac_ct_CC
2174 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: no acceptable C compiler found in \$PATH
2177 See \`config.log' for more details." >&2;}
2178 { (exit 1); exit 1; }; }
2180 # Provide some information about the compiler.
2181 echo "$as_me:$LINENO:" \
2182 "checking for C compiler version" >&5
2183 ac_compiler=`set X $ac_compile; echo $2`
2184 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2185 (eval $ac_compiler --version </dev/null >&5) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }
2189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2190 (eval $ac_compiler -v </dev/null >&5) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }
2194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2195 (eval $ac_compiler -V </dev/null >&5) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h. */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2213 main ()
2215 #ifndef __GNUC__
2216 choke me
2217 #endif
2220 return 0;
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 ac_compiler_gnu=yes
2246 else
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 ac_compiler_gnu=no
2252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2256 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2257 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2258 GCC=`test $ac_compiler_gnu = yes && echo yes`
2259 ac_test_CFLAGS=${CFLAGS+set}
2260 ac_save_CFLAGS=$CFLAGS
2261 CFLAGS="-g"
2262 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2264 if test "${ac_cv_prog_cc_g+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267 cat >conftest.$ac_ext <<_ACEOF
2268 /* confdefs.h. */
2269 _ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2275 main ()
2279 return 0;
2281 _ACEOF
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>conftest.er1
2285 ac_status=$?
2286 grep -v '^ *+' conftest.er1 >conftest.err
2287 rm -f conftest.er1
2288 cat conftest.err >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -z "$ac_c_werror_flag"
2292 || test ! -s conftest.err'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 (eval $ac_try) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2304 ac_cv_prog_cc_g=yes
2305 else
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2309 ac_cv_prog_cc_g=no
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2314 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2315 if test "$ac_test_CFLAGS" = set; then
2316 CFLAGS=$ac_save_CFLAGS
2317 elif test $ac_cv_prog_cc_g = yes; then
2318 if test "$GCC" = yes; then
2319 CFLAGS="-g -O2"
2320 else
2321 CFLAGS="-g"
2323 else
2324 if test "$GCC" = yes; then
2325 CFLAGS="-O2"
2326 else
2327 CFLAGS=
2330 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2331 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2332 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 ac_cv_prog_cc_stdc=no
2336 ac_save_CC=$CC
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h. */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2343 #include <stdarg.h>
2344 #include <stdio.h>
2345 #include <sys/types.h>
2346 #include <sys/stat.h>
2347 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2348 struct buf { int x; };
2349 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2350 static char *e (p, i)
2351 char **p;
2352 int i;
2354 return p[i];
2356 static char *f (char * (*g) (char **, int), char **p, ...)
2358 char *s;
2359 va_list v;
2360 va_start (v,p);
2361 s = g (p, va_arg (v,int));
2362 va_end (v);
2363 return s;
2366 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2367 function prototypes and stuff, but not '\xHH' hex character constants.
2368 These don't provoke an error unfortunately, instead are silently treated
2369 as 'x'. The following induces an error, until -std1 is added to get
2370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2371 array size at least. It's necessary to write '\x00'==0 to get something
2372 that's true only with -std1. */
2373 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2375 int test (int i, double x);
2376 struct s1 {int (*f) (int a);};
2377 struct s2 {int (*f) (double a);};
2378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2379 int argc;
2380 char **argv;
2382 main ()
2384 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2386 return 0;
2388 _ACEOF
2389 # Don't try gcc -ansi; that turns off useful extensions and
2390 # breaks some systems' header files.
2391 # AIX -qlanglvl=ansi
2392 # Ultrix and OSF/1 -std1
2393 # HP-UX 10.20 and later -Ae
2394 # HP-UX older versions -Aa -D_HPUX_SOURCE
2395 # SVR4 -Xc -D__EXTENSIONS__
2396 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2398 CC="$ac_save_CC $ac_arg"
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_cv_prog_cc_stdc=$ac_arg
2422 break
2423 else
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f conftest.err conftest.$ac_objext
2429 done
2430 rm -f conftest.$ac_ext conftest.$ac_objext
2431 CC=$ac_save_CC
2435 case "x$ac_cv_prog_cc_stdc" in
2436 x|xno)
2437 echo "$as_me:$LINENO: result: none needed" >&5
2438 echo "${ECHO_T}none needed" >&6 ;;
2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2442 CC="$CC $ac_cv_prog_cc_stdc" ;;
2443 esac
2445 # Some people use a C++ compiler to compile C. Since we use `exit',
2446 # in C++ we need to declare it. In case someone uses the same compiler
2447 # for both compiling C and C++ we need to have the C++ compiler decide
2448 # the declaration of exit, since it's the most demanding environment.
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #ifndef __cplusplus
2451 choke me
2452 #endif
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 for ac_declaration in \
2477 '' \
2478 'extern "C" void std::exit (int) throw (); using std::exit;' \
2479 'extern "C" void std::exit (int); using std::exit;' \
2480 'extern "C" void exit (int) throw ();' \
2481 'extern "C" void exit (int);' \
2482 'void exit (int);'
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2490 $ac_declaration
2491 #include <stdlib.h>
2493 main ()
2495 exit (42);
2497 return 0;
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 continue
2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530 cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h. */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2536 $ac_declaration
2538 main ()
2540 exit (42);
2542 return 0;
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 break
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 done
2575 rm -f conftest*
2576 if test -n "$ac_declaration"; then
2577 echo '#ifdef __cplusplus' >>confdefs.h
2578 echo $ac_declaration >>confdefs.h
2579 echo '#endif' >>confdefs.h
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_ext=c
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2601 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2602 # On Suns, sometimes $CPP names a directory.
2603 if test -n "$CPP" && test -d "$CPP"; then
2604 CPP=
2606 if test -z "$CPP"; then
2607 if test "${ac_cv_prog_CPP+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610 # Double quotes because CPP needs to be expanded
2611 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2613 ac_preproc_ok=false
2614 for ac_c_preproc_warn_flag in '' yes
2616 # Use a header file that comes with gcc, so configuring glibc
2617 # with a fresh cross-compiler works.
2618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2619 # <limits.h> exists even on freestanding compilers.
2620 # On the NeXT, cc -E runs the code through the compiler's parser,
2621 # not just through cpp. "Syntax error" is here to catch this case.
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h. */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2628 #ifdef __STDC__
2629 # include <limits.h>
2630 #else
2631 # include <assert.h>
2632 #endif
2633 Syntax error
2634 _ACEOF
2635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } >/dev/null; then
2643 if test -s conftest.err; then
2644 ac_cpp_err=$ac_c_preproc_warn_flag
2645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2646 else
2647 ac_cpp_err=
2649 else
2650 ac_cpp_err=yes
2652 if test -z "$ac_cpp_err"; then
2654 else
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2658 # Broken: fails on valid input.
2659 continue
2661 rm -f conftest.err conftest.$ac_ext
2663 # OK, works on sane cases. Now check whether non-existent headers
2664 # can be detected and how.
2665 cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h. */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2671 #include <ac_nonexistent.h>
2672 _ACEOF
2673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } >/dev/null; then
2681 if test -s conftest.err; then
2682 ac_cpp_err=$ac_c_preproc_warn_flag
2683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2684 else
2685 ac_cpp_err=
2687 else
2688 ac_cpp_err=yes
2690 if test -z "$ac_cpp_err"; then
2691 # Broken: success on invalid input.
2692 continue
2693 else
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2697 # Passes both tests.
2698 ac_preproc_ok=:
2699 break
2701 rm -f conftest.err conftest.$ac_ext
2703 done
2704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2705 rm -f conftest.err conftest.$ac_ext
2706 if $ac_preproc_ok; then
2707 break
2710 done
2711 ac_cv_prog_CPP=$CPP
2714 CPP=$ac_cv_prog_CPP
2715 else
2716 ac_cv_prog_CPP=$CPP
2718 echo "$as_me:$LINENO: result: $CPP" >&5
2719 echo "${ECHO_T}$CPP" >&6
2720 ac_preproc_ok=false
2721 for ac_c_preproc_warn_flag in '' yes
2723 # Use a header file that comes with gcc, so configuring glibc
2724 # with a fresh cross-compiler works.
2725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2726 # <limits.h> exists even on freestanding compilers.
2727 # On the NeXT, cc -E runs the code through the compiler's parser,
2728 # not just through cpp. "Syntax error" is here to catch this case.
2729 cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h. */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2735 #ifdef __STDC__
2736 # include <limits.h>
2737 #else
2738 # include <assert.h>
2739 #endif
2740 Syntax error
2741 _ACEOF
2742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2744 ac_status=$?
2745 grep -v '^ *+' conftest.er1 >conftest.err
2746 rm -f conftest.er1
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } >/dev/null; then
2750 if test -s conftest.err; then
2751 ac_cpp_err=$ac_c_preproc_warn_flag
2752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2753 else
2754 ac_cpp_err=
2756 else
2757 ac_cpp_err=yes
2759 if test -z "$ac_cpp_err"; then
2761 else
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2765 # Broken: fails on valid input.
2766 continue
2768 rm -f conftest.err conftest.$ac_ext
2770 # OK, works on sane cases. Now check whether non-existent headers
2771 # can be detected and how.
2772 cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h. */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2778 #include <ac_nonexistent.h>
2779 _ACEOF
2780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } >/dev/null; then
2788 if test -s conftest.err; then
2789 ac_cpp_err=$ac_c_preproc_warn_flag
2790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2791 else
2792 ac_cpp_err=
2794 else
2795 ac_cpp_err=yes
2797 if test -z "$ac_cpp_err"; then
2798 # Broken: success on invalid input.
2799 continue
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 # Passes both tests.
2805 ac_preproc_ok=:
2806 break
2808 rm -f conftest.err conftest.$ac_ext
2810 done
2811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2812 rm -f conftest.err conftest.$ac_ext
2813 if $ac_preproc_ok; then
2815 else
2816 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2817 See \`config.log' for more details." >&5
2818 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2819 See \`config.log' for more details." >&2;}
2820 { (exit 1); exit 1; }; }
2823 ac_ext=c
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 echo "$as_me:$LINENO: checking for egrep" >&5
2831 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2832 if test "${ac_cv_prog_egrep+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2836 then ac_cv_prog_egrep='grep -E'
2837 else ac_cv_prog_egrep='egrep'
2840 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2841 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2842 EGREP=$ac_cv_prog_egrep
2845 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2847 if test "${ac_cv_header_stdc+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 cat >conftest.$ac_ext <<_ACEOF
2851 /* confdefs.h. */
2852 _ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2856 #include <stdlib.h>
2857 #include <stdarg.h>
2858 #include <string.h>
2859 #include <float.h>
2862 main ()
2866 return 0;
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_c_werror_flag"
2879 || test ! -s conftest.err'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; } &&
2885 { ac_try='test -s conftest.$ac_objext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_header_stdc=yes
2892 else
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2896 ac_cv_header_stdc=no
2898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 if test $ac_cv_header_stdc = yes; then
2901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2902 cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h. */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2908 #include <string.h>
2910 _ACEOF
2911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2912 $EGREP "memchr" >/dev/null 2>&1; then
2914 else
2915 ac_cv_header_stdc=no
2917 rm -f conftest*
2921 if test $ac_cv_header_stdc = yes; then
2922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2929 #include <stdlib.h>
2931 _ACEOF
2932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2933 $EGREP "free" >/dev/null 2>&1; then
2935 else
2936 ac_cv_header_stdc=no
2938 rm -f conftest*
2942 if test $ac_cv_header_stdc = yes; then
2943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2944 if test "$cross_compiling" = yes; then
2946 else
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 #include <ctype.h>
2954 #if ((' ' & 0x0FF) == 0x020)
2955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2957 #else
2958 # define ISLOWER(c) \
2959 (('a' <= (c) && (c) <= 'i') \
2960 || ('j' <= (c) && (c) <= 'r') \
2961 || ('s' <= (c) && (c) <= 'z'))
2962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2963 #endif
2965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2967 main ()
2969 int i;
2970 for (i = 0; i < 256; i++)
2971 if (XOR (islower (i), ISLOWER (i))
2972 || toupper (i) != TOUPPER (i))
2973 exit(2);
2974 exit (0);
2976 _ACEOF
2977 rm -f conftest$ac_exeext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2979 (eval $ac_link) 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2989 else
2990 echo "$as_me: program exited with status $ac_status" >&5
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2994 ( exit $ac_status )
2995 ac_cv_header_stdc=no
2997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3001 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3002 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3003 if test $ac_cv_header_stdc = yes; then
3005 cat >>confdefs.h <<\_ACEOF
3006 #define STDC_HEADERS 1
3007 _ACEOF
3012 if test "x$prefix" = "xNONE"; then
3013 INSTALLPREFIX="/usr/local"
3014 else
3015 INSTALLPREFIX="${prefix}"
3021 LIBDIR="${libdir}"
3025 ac_aux_dir=
3026 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3027 if test -f $ac_dir/install-sh; then
3028 ac_aux_dir=$ac_dir
3029 ac_install_sh="$ac_aux_dir/install-sh -c"
3030 break
3031 elif test -f $ac_dir/install.sh; then
3032 ac_aux_dir=$ac_dir
3033 ac_install_sh="$ac_aux_dir/install.sh -c"
3034 break
3035 elif test -f $ac_dir/shtool; then
3036 ac_aux_dir=$ac_dir
3037 ac_install_sh="$ac_aux_dir/shtool install -c"
3038 break
3040 done
3041 if test -z "$ac_aux_dir"; then
3042 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3043 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3044 { (exit 1); exit 1; }; }
3046 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3047 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3048 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3050 # Make sure we can run config.sub.
3051 $ac_config_sub sun4 >/dev/null 2>&1 ||
3052 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3053 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3054 { (exit 1); exit 1; }; }
3056 echo "$as_me:$LINENO: checking build system type" >&5
3057 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3058 if test "${ac_cv_build+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061 ac_cv_build_alias=$build_alias
3062 test -z "$ac_cv_build_alias" &&
3063 ac_cv_build_alias=`$ac_config_guess`
3064 test -z "$ac_cv_build_alias" &&
3065 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3066 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3067 { (exit 1); exit 1; }; }
3068 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3069 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3070 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3071 { (exit 1); exit 1; }; }
3074 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3075 echo "${ECHO_T}$ac_cv_build" >&6
3076 build=$ac_cv_build
3077 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3078 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3079 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3082 echo "$as_me:$LINENO: checking host system type" >&5
3083 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3084 if test "${ac_cv_host+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087 ac_cv_host_alias=$host_alias
3088 test -z "$ac_cv_host_alias" &&
3089 ac_cv_host_alias=$ac_cv_build_alias
3090 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3091 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3092 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3093 { (exit 1); exit 1; }; }
3096 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3097 echo "${ECHO_T}$ac_cv_host" >&6
3098 host=$ac_cv_host
3099 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3100 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3101 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3104 echo "$as_me:$LINENO: checking target system type" >&5
3105 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3106 if test "${ac_cv_target+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 ac_cv_target_alias=$target_alias
3110 test "x$ac_cv_target_alias" = "x" &&
3111 ac_cv_target_alias=$ac_cv_host_alias
3112 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3113 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3114 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3115 { (exit 1); exit 1; }; }
3118 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3119 echo "${ECHO_T}$ac_cv_target" >&6
3120 target=$ac_cv_target
3121 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3122 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3123 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3126 # The aliases save the names the user supplied, while $host etc.
3127 # will get canonicalized.
3128 test -n "$target_alias" &&
3129 test "$program_prefix$program_suffix$program_transform_name" = \
3130 NONENONEs,x,x, &&
3131 program_prefix=${target_alias}-
3132 LDSO=
3133 case "$target_os" in
3134 solaris*) LDSO="-Bdynamic -G -h" ;;
3135 darwin*) ;;
3136 *) LDSO="-shared -Wl,-soname,";;
3137 esac
3138 LDSO=${LDSO}
3142 H323_GSMAMR_NB_FLOAT=0
3143 if test -r "./audio/gsm-amr/src/interf_dec.h" ; then
3144 { echo "$as_me:$LINENO: Enabling GSM-AMR plugin" >&5
3145 echo "$as_me: Enabling GSM-AMR plugin" >&6;}
3146 H323_GSMAMR_NB_FLOAT=1
3147 else
3148 { echo "$as_me:$LINENO: GSM-AMR plugin disabled (no 3GPP source)" >&5
3149 echo "$as_me: GSM-AMR plugin disabled (no 3GPP source)" >&6;}
3151 H323_GSMAMR_NB_FLOAT=$H323_GSMAMR_NB_FLOAT
3156 H323_SYSTEM_GSM=0
3157 localgsm="xxx"
3158 # Check whether --enable-localgsm or --disable-localgsm was given.
3159 if test "${enable_localgsm+set}" = set; then
3160 enableval="$enable_localgsm"
3161 localgsm=$enableval
3164 if test "${localgsm}" = "yes" ; then
3165 { echo "$as_me:$LINENO: Forcing use of local GSM sources" >&5
3166 echo "$as_me: Forcing use of local GSM sources" >&6;}
3167 elif test "${localgsm}" = "no" ; then
3168 { echo "$as_me:$LINENO: Forcing use of system GSM library" >&5
3169 echo "$as_me: Forcing use of system GSM library" >&6;}
3170 H323_SYSTEM_GSM=1
3171 else
3172 echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
3173 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6
3174 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177 ac_check_lib_save_LIBS=$LIBS
3178 LIBS="-lgsm $LIBS"
3179 cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3186 /* Override any gcc2 internal prototype to avoid an error. */
3187 #ifdef __cplusplus
3188 extern "C"
3189 #endif
3190 /* We use char because int might match the return type of a gcc2
3191 builtin and then its argument prototype would still apply. */
3192 char gsm_create ();
3194 main ()
3196 gsm_create ();
3198 return 0;
3200 _ACEOF
3201 rm -f conftest.$ac_objext conftest$ac_exeext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3203 (eval $ac_link) 2>conftest.er1
3204 ac_status=$?
3205 grep -v '^ *+' conftest.er1 >conftest.err
3206 rm -f conftest.er1
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } &&
3210 { ac_try='test -z "$ac_c_werror_flag"
3211 || test ! -s conftest.err'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 (eval $ac_try) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest$ac_exeext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 (eval $ac_try) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3223 ac_cv_lib_gsm_gsm_create=yes
3224 else
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 ac_cv_lib_gsm_gsm_create=no
3230 rm -f conftest.err conftest.$ac_objext \
3231 conftest$ac_exeext conftest.$ac_ext
3232 LIBS=$ac_check_lib_save_LIBS
3234 echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
3235 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6
3236 if test $ac_cv_lib_gsm_gsm_create = yes; then
3237 GSM=1
3240 if test "x$GSM" != "x"; then
3241 echo "$as_me:$LINENO: checking if system GSM library has WAV49" >&5
3242 echo $ECHO_N "checking if system GSM library has WAV49... $ECHO_C" >&6
3243 OLD_LIBS=$LIBS
3244 LIBS="-lgsm"
3245 if test "$cross_compiling" = yes; then
3246 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3247 See \`config.log' for more details." >&5
3248 echo "$as_me: error: cannot run test program while cross compiling
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3251 else
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3259 #include <gsm.h>
3262 main ()
3265 int option = 0;
3266 gsm handle = gsm_create();
3267 return (gsm_option(handle, GSM_OPT_WAV49, &option) == -1) ? 1 : 0;
3270 return 0;
3272 _ACEOF
3273 rm -f conftest$ac_exeext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3275 (eval $ac_link) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 (eval $ac_try) 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3284 GSM=2
3285 else
3286 echo "$as_me: program exited with status $ac_status" >&5
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3291 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3293 if test "x$GSM" == "x2"; then
3294 H323_SYSTEM_GSM=1
3295 echo "$as_me:$LINENO: result: yes" >&5
3296 echo "${ECHO_T}yes" >&6
3297 { echo "$as_me:$LINENO: Using system gsm" >&5
3298 echo "$as_me: Using system gsm" >&6;}
3299 else
3300 echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6
3303 LIBS=$OLD_LIBS
3306 H323_SYSTEM_GSM=$H323_SYSTEM_GSM
3308 cat >>confdefs.h <<_ACEOF
3309 #define H323_SYSTEM_GSM $H323_SYSTEM_GSM
3310 _ACEOF
3314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3325 inttypes.h stdint.h unistd.h
3327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3328 echo "$as_me:$LINENO: checking for $ac_header" >&5
3329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 $ac_includes_default
3341 #include <$ac_header>
3342 _ACEOF
3343 rm -f conftest.$ac_objext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3345 (eval $ac_compile) 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -z "$ac_c_werror_flag"
3353 || test ! -s conftest.err'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 eval "$as_ac_Header=yes"
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 eval "$as_ac_Header=no"
3372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3377 cat >>confdefs.h <<_ACEOF
3378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3379 _ACEOF
3383 done
3386 echo "$as_me:$LINENO: checking for short" >&5
3387 echo $ECHO_N "checking for short... $ECHO_C" >&6
3388 if test "${ac_cv_type_short+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 $ac_includes_default
3399 main ()
3401 if ((short *) 0)
3402 return 0;
3403 if (sizeof (short))
3404 return 0;
3406 return 0;
3408 _ACEOF
3409 rm -f conftest.$ac_objext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } &&
3418 { ac_try='test -z "$ac_c_werror_flag"
3419 || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_type_short=yes
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_cv_type_short=no
3438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3440 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3441 echo "${ECHO_T}$ac_cv_type_short" >&6
3443 echo "$as_me:$LINENO: checking size of short" >&5
3444 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3445 if test "${ac_cv_sizeof_short+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 if test "$ac_cv_type_short" = yes; then
3449 # The cast to unsigned long works around a bug in the HP C Compiler
3450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3452 # This bug is HP SR number 8606223364.
3453 if test "$cross_compiling" = yes; then
3454 # Depending upon the size, compute the lo and hi bounds.
3455 cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h. */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3461 $ac_includes_default
3463 main ()
3465 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3466 test_array [0] = 0
3469 return 0;
3471 _ACEOF
3472 rm -f conftest.$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
3481 { ac_try='test -z "$ac_c_werror_flag"
3482 || test ! -s conftest.err'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 (eval $ac_try) 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; } &&
3488 { ac_try='test -s conftest.$ac_objext'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3494 ac_lo=0 ac_mid=0
3495 while :; do
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 $ac_includes_default
3504 main ()
3506 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3507 test_array [0] = 0
3510 return 0;
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -z "$ac_c_werror_flag"
3523 || test ! -s conftest.err'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 ac_hi=$ac_mid; break
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 ac_lo=`expr $ac_mid + 1`
3541 if test $ac_lo -le $ac_mid; then
3542 ac_lo= ac_hi=
3543 break
3545 ac_mid=`expr 2 '*' $ac_mid + 1`
3547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3548 done
3549 else
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 $ac_includes_default
3561 main ()
3563 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3564 test_array [0] = 0
3567 return 0;
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572 (eval $ac_compile) 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -z "$ac_c_werror_flag"
3580 || test ! -s conftest.err'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; } &&
3586 { ac_try='test -s conftest.$ac_objext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 (eval $ac_try) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 ac_hi=-1 ac_mid=-1
3593 while :; do
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))) >= $ac_mid)];
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"
3621 || test ! -s conftest.err'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; } &&
3627 { ac_try='test -s conftest.$ac_objext'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3633 ac_lo=$ac_mid; break
3634 else
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 ac_hi=`expr '(' $ac_mid ')' - 1`
3639 if test $ac_mid -le $ac_hi; then
3640 ac_lo= ac_hi=
3641 break
3643 ac_mid=`expr 2 '*' $ac_mid`
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646 done
3647 else
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 ac_lo= ac_hi=
3653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656 # Binary search between lo and hi bounds.
3657 while test "x$ac_lo" != "x$ac_hi"; do
3658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h. */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 $ac_includes_default
3667 main ()
3669 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3670 test_array [0] = 0
3673 return 0;
3675 _ACEOF
3676 rm -f conftest.$ac_objext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>conftest.er1
3679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -z "$ac_c_werror_flag"
3686 || test ! -s conftest.err'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 (eval $ac_try) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 ac_hi=$ac_mid
3699 else
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 ac_lo=`expr '(' $ac_mid ')' + 1`
3705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706 done
3707 case $ac_lo in
3708 ?*) ac_cv_sizeof_short=$ac_lo;;
3709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3710 See \`config.log' for more details." >&5
3711 echo "$as_me: error: cannot compute sizeof (short), 77
3712 See \`config.log' for more details." >&2;}
3713 { (exit 1); exit 1; }; } ;;
3714 esac
3715 else
3716 if test "$cross_compiling" = yes; then
3717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3718 See \`config.log' for more details." >&5
3719 echo "$as_me: error: cannot run test program while cross compiling
3720 See \`config.log' for more details." >&2;}
3721 { (exit 1); exit 1; }; }
3722 else
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 $ac_includes_default
3730 long longval () { return (long) (sizeof (short)); }
3731 unsigned long ulongval () { return (long) (sizeof (short)); }
3732 #include <stdio.h>
3733 #include <stdlib.h>
3735 main ()
3738 FILE *f = fopen ("conftest.val", "w");
3739 if (! f)
3740 exit (1);
3741 if (((long) (sizeof (short))) < 0)
3743 long i = longval ();
3744 if (i != ((long) (sizeof (short))))
3745 exit (1);
3746 fprintf (f, "%ld\n", i);
3748 else
3750 unsigned long i = ulongval ();
3751 if (i != ((long) (sizeof (short))))
3752 exit (1);
3753 fprintf (f, "%lu\n", i);
3755 exit (ferror (f) || fclose (f) != 0);
3758 return 0;
3760 _ACEOF
3761 rm -f conftest$ac_exeext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3763 (eval $ac_link) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 ac_cv_sizeof_short=`cat conftest.val`
3773 else
3774 echo "$as_me: program exited with status $ac_status" >&5
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 ( exit $ac_status )
3779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3780 See \`config.log' for more details." >&5
3781 echo "$as_me: error: cannot compute sizeof (short), 77
3782 See \`config.log' for more details." >&2;}
3783 { (exit 1); exit 1; }; }
3785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3788 rm -f conftest.val
3789 else
3790 ac_cv_sizeof_short=0
3793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3794 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3795 cat >>confdefs.h <<_ACEOF
3796 #define SIZEOF_SHORT $ac_cv_sizeof_short
3797 _ACEOF
3800 echo "$as_me:$LINENO: checking for int" >&5
3801 echo $ECHO_N "checking for int... $ECHO_C" >&6
3802 if test "${ac_cv_type_int+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 $ac_includes_default
3813 main ()
3815 if ((int *) 0)
3816 return 0;
3817 if (sizeof (int))
3818 return 0;
3820 return 0;
3822 _ACEOF
3823 rm -f conftest.$ac_objext
3824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3825 (eval $ac_compile) 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } &&
3832 { ac_try='test -z "$ac_c_werror_flag"
3833 || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest.$ac_objext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_type_int=yes
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_cv_type_int=no
3852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3854 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3855 echo "${ECHO_T}$ac_cv_type_int" >&6
3857 echo "$as_me:$LINENO: checking size of int" >&5
3858 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3859 if test "${ac_cv_sizeof_int+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862 if test "$ac_cv_type_int" = yes; then
3863 # The cast to unsigned long works around a bug in the HP C Compiler
3864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3866 # This bug is HP SR number 8606223364.
3867 if test "$cross_compiling" = yes; then
3868 # Depending upon the size, compute the lo and hi bounds.
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 $ac_includes_default
3877 main ()
3879 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3880 test_array [0] = 0
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -z "$ac_c_werror_flag"
3896 || test ! -s conftest.err'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3908 ac_lo=0 ac_mid=0
3909 while :; do
3910 cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h. */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 $ac_includes_default
3918 main ()
3920 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3921 test_array [0] = 0
3924 return 0;
3926 _ACEOF
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try='test -z "$ac_c_werror_flag"
3937 || test ! -s conftest.err'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try='test -s conftest.$ac_objext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 (eval $ac_try) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_hi=$ac_mid; break
3950 else
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 ac_lo=`expr $ac_mid + 1`
3955 if test $ac_lo -le $ac_mid; then
3956 ac_lo= ac_hi=
3957 break
3959 ac_mid=`expr 2 '*' $ac_mid + 1`
3961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3962 done
3963 else
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 $ac_includes_default
3975 main ()
3977 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3978 test_array [0] = 0
3981 return 0;
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_hi=-1 ac_mid=-1
4007 while :; do
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 $ac_includes_default
4016 main ()
4018 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4019 test_array [0] = 0
4022 return 0;
4024 _ACEOF
4025 rm -f conftest.$ac_objext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>conftest.er1
4028 ac_status=$?
4029 grep -v '^ *+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_c_werror_flag"
4035 || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 ac_lo=$ac_mid; break
4048 else
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 ac_hi=`expr '(' $ac_mid ')' - 1`
4053 if test $ac_mid -le $ac_hi; then
4054 ac_lo= ac_hi=
4055 break
4057 ac_mid=`expr 2 '*' $ac_mid`
4059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060 done
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 ac_lo= ac_hi=
4067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070 # Binary search between lo and hi bounds.
4071 while test "x$ac_lo" != "x$ac_hi"; do
4072 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 $ac_includes_default
4081 main ()
4083 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4084 test_array [0] = 0
4087 return 0;
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_c_werror_flag"
4100 || test ! -s conftest.err'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest.$ac_objext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 (eval $ac_try) 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 ac_hi=$ac_mid
4113 else
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 ac_lo=`expr '(' $ac_mid ')' + 1`
4119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4120 done
4121 case $ac_lo in
4122 ?*) ac_cv_sizeof_int=$ac_lo;;
4123 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4124 See \`config.log' for more details." >&5
4125 echo "$as_me: error: cannot compute sizeof (int), 77
4126 See \`config.log' for more details." >&2;}
4127 { (exit 1); exit 1; }; } ;;
4128 esac
4129 else
4130 if test "$cross_compiling" = yes; then
4131 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4132 See \`config.log' for more details." >&5
4133 echo "$as_me: error: cannot run test program while cross compiling
4134 See \`config.log' for more details." >&2;}
4135 { (exit 1); exit 1; }; }
4136 else
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 $ac_includes_default
4144 long longval () { return (long) (sizeof (int)); }
4145 unsigned long ulongval () { return (long) (sizeof (int)); }
4146 #include <stdio.h>
4147 #include <stdlib.h>
4149 main ()
4152 FILE *f = fopen ("conftest.val", "w");
4153 if (! f)
4154 exit (1);
4155 if (((long) (sizeof (int))) < 0)
4157 long i = longval ();
4158 if (i != ((long) (sizeof (int))))
4159 exit (1);
4160 fprintf (f, "%ld\n", i);
4162 else
4164 unsigned long i = ulongval ();
4165 if (i != ((long) (sizeof (int))))
4166 exit (1);
4167 fprintf (f, "%lu\n", i);
4169 exit (ferror (f) || fclose (f) != 0);
4172 return 0;
4174 _ACEOF
4175 rm -f conftest$ac_exeext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177 (eval $ac_link) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_cv_sizeof_int=`cat conftest.val`
4187 else
4188 echo "$as_me: program exited with status $ac_status" >&5
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 ( exit $ac_status )
4193 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4194 See \`config.log' for more details." >&5
4195 echo "$as_me: error: cannot compute sizeof (int), 77
4196 See \`config.log' for more details." >&2;}
4197 { (exit 1); exit 1; }; }
4199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4202 rm -f conftest.val
4203 else
4204 ac_cv_sizeof_int=0
4207 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4208 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4209 cat >>confdefs.h <<_ACEOF
4210 #define SIZEOF_INT $ac_cv_sizeof_int
4211 _ACEOF
4214 echo "$as_me:$LINENO: checking for long" >&5
4215 echo $ECHO_N "checking for long... $ECHO_C" >&6
4216 if test "${ac_cv_type_long+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h. */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 $ac_includes_default
4227 main ()
4229 if ((long *) 0)
4230 return 0;
4231 if (sizeof (long))
4232 return 0;
4234 return 0;
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239 (eval $ac_compile) 2>conftest.er1
4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -z "$ac_c_werror_flag"
4247 || test ! -s conftest.err'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try='test -s conftest.$ac_objext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 ac_cv_type_long=yes
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 ac_cv_type_long=no
4266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4268 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4269 echo "${ECHO_T}$ac_cv_type_long" >&6
4271 echo "$as_me:$LINENO: checking size of long" >&5
4272 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4273 if test "${ac_cv_sizeof_long+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 if test "$ac_cv_type_long" = yes; then
4277 # The cast to unsigned long works around a bug in the HP C Compiler
4278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4280 # This bug is HP SR number 8606223364.
4281 if test "$cross_compiling" = yes; then
4282 # Depending upon the size, compute the lo and hi bounds.
4283 cat >conftest.$ac_ext <<_ACEOF
4284 /* confdefs.h. */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289 $ac_includes_default
4291 main ()
4293 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4294 test_array [0] = 0
4297 return 0;
4299 _ACEOF
4300 rm -f conftest.$ac_objext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302 (eval $ac_compile) 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } &&
4309 { ac_try='test -z "$ac_c_werror_flag"
4310 || test ! -s conftest.err'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312 (eval $ac_try) 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; } &&
4316 { ac_try='test -s conftest.$ac_objext'
4317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 (eval $ac_try) 2>&5
4319 ac_status=$?
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4322 ac_lo=0 ac_mid=0
4323 while :; do
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 $ac_includes_default
4332 main ()
4334 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4335 test_array [0] = 0
4338 return 0;
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -z "$ac_c_werror_flag"
4351 || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest.$ac_objext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_hi=$ac_mid; break
4364 else
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 ac_lo=`expr $ac_mid + 1`
4369 if test $ac_lo -le $ac_mid; then
4370 ac_lo= ac_hi=
4371 break
4373 ac_mid=`expr 2 '*' $ac_mid + 1`
4375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4376 done
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 $ac_includes_default
4389 main ()
4391 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4392 test_array [0] = 0
4395 return 0;
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>conftest.er1
4401 ac_status=$?
4402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag"
4408 || test ! -s conftest.err'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; } &&
4414 { ac_try='test -s conftest.$ac_objext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_hi=-1 ac_mid=-1
4421 while :; do
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 $ac_includes_default
4430 main ()
4432 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4433 test_array [0] = 0
4436 return 0;
4438 _ACEOF
4439 rm -f conftest.$ac_objext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441 (eval $ac_compile) 2>conftest.er1
4442 ac_status=$?
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -z "$ac_c_werror_flag"
4449 || test ! -s conftest.err'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_lo=$ac_mid; break
4462 else
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 ac_hi=`expr '(' $ac_mid ')' - 1`
4467 if test $ac_mid -le $ac_hi; then
4468 ac_lo= ac_hi=
4469 break
4471 ac_mid=`expr 2 '*' $ac_mid`
4473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474 done
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 ac_lo= ac_hi=
4481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4484 # Binary search between lo and hi bounds.
4485 while test "x$ac_lo" != "x$ac_hi"; do
4486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4495 main ()
4497 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4498 test_array [0] = 0
4501 return 0;
4503 _ACEOF
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag"
4514 || test ! -s conftest.err'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; } &&
4520 { ac_try='test -s conftest.$ac_objext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_hi=$ac_mid
4527 else
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4531 ac_lo=`expr '(' $ac_mid ')' + 1`
4533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4534 done
4535 case $ac_lo in
4536 ?*) ac_cv_sizeof_long=$ac_lo;;
4537 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4538 See \`config.log' for more details." >&5
4539 echo "$as_me: error: cannot compute sizeof (long), 77
4540 See \`config.log' for more details." >&2;}
4541 { (exit 1); exit 1; }; } ;;
4542 esac
4543 else
4544 if test "$cross_compiling" = yes; then
4545 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4546 See \`config.log' for more details." >&5
4547 echo "$as_me: error: cannot run test program while cross compiling
4548 See \`config.log' for more details." >&2;}
4549 { (exit 1); exit 1; }; }
4550 else
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 $ac_includes_default
4558 long longval () { return (long) (sizeof (long)); }
4559 unsigned long ulongval () { return (long) (sizeof (long)); }
4560 #include <stdio.h>
4561 #include <stdlib.h>
4563 main ()
4566 FILE *f = fopen ("conftest.val", "w");
4567 if (! f)
4568 exit (1);
4569 if (((long) (sizeof (long))) < 0)
4571 long i = longval ();
4572 if (i != ((long) (sizeof (long))))
4573 exit (1);
4574 fprintf (f, "%ld\n", i);
4576 else
4578 unsigned long i = ulongval ();
4579 if (i != ((long) (sizeof (long))))
4580 exit (1);
4581 fprintf (f, "%lu\n", i);
4583 exit (ferror (f) || fclose (f) != 0);
4586 return 0;
4588 _ACEOF
4589 rm -f conftest$ac_exeext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 ac_cv_sizeof_long=`cat conftest.val`
4601 else
4602 echo "$as_me: program exited with status $ac_status" >&5
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4606 ( exit $ac_status )
4607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4608 See \`config.log' for more details." >&5
4609 echo "$as_me: error: cannot compute sizeof (long), 77
4610 See \`config.log' for more details." >&2;}
4611 { (exit 1); exit 1; }; }
4613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4616 rm -f conftest.val
4617 else
4618 ac_cv_sizeof_long=0
4621 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4622 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4623 cat >>confdefs.h <<_ACEOF
4624 #define SIZEOF_LONG $ac_cv_sizeof_long
4625 _ACEOF
4628 echo "$as_me:$LINENO: checking for long long" >&5
4629 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4630 if test "${ac_cv_type_long_long+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 $ac_includes_default
4641 main ()
4643 if ((long long *) 0)
4644 return 0;
4645 if (sizeof (long long))
4646 return 0;
4648 return 0;
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_cv_type_long_long=yes
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 ac_cv_type_long_long=no
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4683 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4685 echo "$as_me:$LINENO: checking size of long long" >&5
4686 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4687 if test "${ac_cv_sizeof_long_long+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690 if test "$ac_cv_type_long_long" = yes; then
4691 # The cast to unsigned long works around a bug in the HP C Compiler
4692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4694 # This bug is HP SR number 8606223364.
4695 if test "$cross_compiling" = yes; then
4696 # Depending upon the size, compute the lo and hi bounds.
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 $ac_includes_default
4705 main ()
4707 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4708 test_array [0] = 0
4711 return 0;
4713 _ACEOF
4714 rm -f conftest.$ac_objext
4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_c_werror_flag"
4724 || test ! -s conftest.err'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; } &&
4730 { ac_try='test -s conftest.$ac_objext'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; }; then
4736 ac_lo=0 ac_mid=0
4737 while :; do
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 $ac_includes_default
4746 main ()
4748 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4749 test_array [0] = 0
4752 return 0;
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } &&
4764 { ac_try='test -z "$ac_c_werror_flag"
4765 || test ! -s conftest.err'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 (eval $ac_try) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 ac_hi=$ac_mid; break
4778 else
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 ac_lo=`expr $ac_mid + 1`
4783 if test $ac_lo -le $ac_mid; then
4784 ac_lo= ac_hi=
4785 break
4787 ac_mid=`expr 2 '*' $ac_mid + 1`
4789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4790 done
4791 else
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795 cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h. */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 $ac_includes_default
4803 main ()
4805 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
4806 test_array [0] = 0
4809 return 0;
4811 _ACEOF
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>conftest.er1
4815 ac_status=$?
4816 grep -v '^ *+' conftest.er1 >conftest.err
4817 rm -f conftest.er1
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -z "$ac_c_werror_flag"
4822 || test ! -s conftest.err'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; } &&
4828 { ac_try='test -s conftest.$ac_objext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 (eval $ac_try) 2>&5
4831 ac_status=$?
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 ac_hi=-1 ac_mid=-1
4835 while :; do
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 $ac_includes_default
4844 main ()
4846 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
4847 test_array [0] = 0
4850 return 0;
4852 _ACEOF
4853 rm -f conftest.$ac_objext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>conftest.er1
4856 ac_status=$?
4857 grep -v '^ *+' conftest.er1 >conftest.err
4858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try='test -z "$ac_c_werror_flag"
4863 || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_lo=$ac_mid; break
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 ac_hi=`expr '(' $ac_mid ')' - 1`
4881 if test $ac_mid -le $ac_hi; then
4882 ac_lo= ac_hi=
4883 break
4885 ac_mid=`expr 2 '*' $ac_mid`
4887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4888 done
4889 else
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 ac_lo= ac_hi=
4895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4898 # Binary search between lo and hi bounds.
4899 while test "x$ac_lo" != "x$ac_hi"; do
4900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4901 cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h. */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 $ac_includes_default
4909 main ()
4911 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4912 test_array [0] = 0
4915 return 0;
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag"
4928 || test ! -s conftest.err'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_hi=$ac_mid
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 ac_lo=`expr '(' $ac_mid ')' + 1`
4947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948 done
4949 case $ac_lo in
4950 ?*) ac_cv_sizeof_long_long=$ac_lo;;
4951 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
4952 See \`config.log' for more details." >&5
4953 echo "$as_me: error: cannot compute sizeof (long long), 77
4954 See \`config.log' for more details." >&2;}
4955 { (exit 1); exit 1; }; } ;;
4956 esac
4957 else
4958 if test "$cross_compiling" = yes; then
4959 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4960 See \`config.log' for more details." >&5
4961 echo "$as_me: error: cannot run test program while cross compiling
4962 See \`config.log' for more details." >&2;}
4963 { (exit 1); exit 1; }; }
4964 else
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 $ac_includes_default
4972 long longval () { return (long) (sizeof (long long)); }
4973 unsigned long ulongval () { return (long) (sizeof (long long)); }
4974 #include <stdio.h>
4975 #include <stdlib.h>
4977 main ()
4980 FILE *f = fopen ("conftest.val", "w");
4981 if (! f)
4982 exit (1);
4983 if (((long) (sizeof (long long))) < 0)
4985 long i = longval ();
4986 if (i != ((long) (sizeof (long long))))
4987 exit (1);
4988 fprintf (f, "%ld\n", i);
4990 else
4992 unsigned long i = ulongval ();
4993 if (i != ((long) (sizeof (long long))))
4994 exit (1);
4995 fprintf (f, "%lu\n", i);
4997 exit (ferror (f) || fclose (f) != 0);
5000 return 0;
5002 _ACEOF
5003 rm -f conftest$ac_exeext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005 (eval $ac_link) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 ac_cv_sizeof_long_long=`cat conftest.val`
5015 else
5016 echo "$as_me: program exited with status $ac_status" >&5
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5020 ( exit $ac_status )
5021 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5022 See \`config.log' for more details." >&5
5023 echo "$as_me: error: cannot compute sizeof (long long), 77
5024 See \`config.log' for more details." >&2;}
5025 { (exit 1); exit 1; }; }
5027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5030 rm -f conftest.val
5031 else
5032 ac_cv_sizeof_long_long=0
5035 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5036 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5037 cat >>confdefs.h <<_ACEOF
5038 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5039 _ACEOF
5043 case 2 in
5044 $ac_cv_sizeof_short) SIZE16="short";;
5045 $ac_cv_sizeof_int) SIZE16="int";;
5046 esac
5048 case 4 in
5049 $ac_cv_sizeof_int) SIZE32="int";;
5050 $ac_cv_sizeof_long) SIZE32="long";;
5051 $ac_cv_sizeof_short) SIZE32="short";;
5052 esac
5058 localspeex="xxx"
5059 # Check whether --enable-localspeex or --disable-localspeex was given.
5060 if test "${enable_localspeex+set}" = set; then
5061 enableval="$enable_localspeex"
5062 localspeex=$enableval
5065 if test "${localspeex}" = "yes" ; then
5066 { echo "$as_me:$LINENO: Forcing use of local Speex sources" >&5
5067 echo "$as_me: Forcing use of local Speex sources" >&6;}
5068 elif test "${localspeex}" = "no" ; then
5069 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
5070 echo "$as_me: Forcing use of system Speex library" >&6;}
5071 cat >>confdefs.h <<\_ACEOF
5072 #define H323_SYSTEM_SPEEX 1
5073 _ACEOF
5075 H323_SYSTEM_SPEEX=1
5077 else
5078 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
5079 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
5080 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 ac_check_lib_save_LIBS=$LIBS
5084 LIBS="-lspeex $LIBS"
5085 cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h. */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5092 /* Override any gcc2 internal prototype to avoid an error. */
5093 #ifdef __cplusplus
5094 extern "C"
5095 #endif
5096 /* We use char because int might match the return type of a gcc2
5097 builtin and then its argument prototype would still apply. */
5098 char speex_encoder_destroy ();
5100 main ()
5102 speex_encoder_destroy ();
5104 return 0;
5106 _ACEOF
5107 rm -f conftest.$ac_objext conftest$ac_exeext
5108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5109 (eval $ac_link) 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } &&
5116 { ac_try='test -z "$ac_c_werror_flag"
5117 || test ! -s conftest.err'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; } &&
5123 { ac_try='test -s conftest$ac_exeext'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 (eval $ac_try) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 ac_cv_lib_speex_speex_encoder_destroy=yes
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ac_cv_lib_speex_speex_encoder_destroy=no
5136 rm -f conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5138 LIBS=$ac_check_lib_save_LIBS
5140 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
5141 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
5142 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
5143 SPEEX=1
5146 if test "x$SPEEX" = "x"; then
5147 { echo "$as_me:$LINENO: Forcing use of local Speex library" >&5
5148 echo "$as_me: Forcing use of local Speex library" >&6;}
5149 else
5150 echo "$as_me:$LINENO: checking system Speex version" >&5
5151 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
5152 cat > t.c <<C_FILE
5153 #include <speex.h>
5154 #include <speex_header.h>
5155 #include <stdio.h>
5156 int main(int argc,char *argv)
5158 SpeexHeader header;
5159 speex_init_header(&header, 1, 1, &speex_nb_mode);
5160 printf("%s\n", header.speex_version);
5162 C_FILE
5163 cc -o t t.c -lspeex > /dev/null 2>&1
5164 if test \! -x t ; then
5165 echo "$as_me:$LINENO: result: cannot determine - using library version" >&5
5166 echo "${ECHO_T}cannot determine - using library version" >&6
5167 else
5168 SYSVER=`./t`
5169 rm -f t t.c
5170 echo "$as_me:$LINENO: result: $SYSVER" >&5
5171 echo "${ECHO_T}$SYSVER" >&6
5172 echo "$as_me:$LINENO: checking library Speex version" >&5
5173 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6
5174 LIBVER=`grep "#define VERSION" ./audio/Speex/libspeex/misc.h | sed -e 's/^.*speex\-//' -e 's/\"//'`
5175 echo "$as_me:$LINENO: result: $LIBVER" >&5
5176 echo "${ECHO_T}$LIBVER" >&6
5177 echo "$as_me:$LINENO: checking Speex versions" >&5
5178 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
5179 cat > t.pl <<P_FILE
5181 \$sysver = @ARGV[0];
5182 \$libver = @ARGV[1];
5183 @lib = split /\./, \$libver;
5184 while (@lib < 3) {
5185 @lib[0+@lib] = "0";
5187 @sys = split /\./, \$sysver;
5188 while (@sys < 3) {
5189 @sys[0+@sys] = "0";
5191 \$i = 0;
5192 while (\$i < 3) {
5193 #print "comparing " . @sys[\$i] . " and " . @lib[\$i] . "\n";
5194 if (\@sys[\$i] < @lib[\$i]) {
5195 print "0";
5196 die;
5198 \$i++;
5200 print "1";
5202 P_FILE
5203 SPEEX=`perl t.pl $SYSVER $LIBVER`
5204 rm t.pl
5205 if test "x$SPEEX" = "x" ; then
5206 echo "$as_me:$LINENO: result: library version is more recent" >&5
5207 echo "${ECHO_T}library version is more recent" >&6
5208 else
5209 echo "$as_me:$LINENO: result: system version is more recent" >&5
5210 echo "${ECHO_T}system version is more recent" >&6
5211 cat >>confdefs.h <<\_ACEOF
5212 #define H323_SYSTEM_SPEEX 1
5213 _ACEOF
5215 H323_SYSTEM_SPEEX=1
5223 ac_config_files="$ac_config_files audio/gsm-amr/Makefile"
5225 ac_config_files="$ac_config_files audio/GSM0610/Makefile"
5227 ac_config_files="$ac_config_files audio/iLBC/Makefile"
5229 ac_config_files="$ac_config_files audio/Speex/Makefile"
5231 ac_config_files="$ac_config_files audio/LPC_10/Makefile"
5233 ac_config_files="$ac_config_files audio/G726/Makefile"
5235 ac_config_files="$ac_config_files audio/IMA_ADPCM/Makefile"
5237 ac_config_files="$ac_config_files video/H.261-vic/Makefile"
5239 ac_config_files="$ac_config_files video/H.263-ffmpeg/Makefile"
5244 ac_config_files="$ac_config_files audio/Speex/libspeex/speex_config_types.h"
5245 cat >confcache <<\_ACEOF
5246 # This file is a shell script that caches the results of configure
5247 # tests run on this system so they can be shared between configure
5248 # scripts and configure runs, see configure's option --config-cache.
5249 # It is not useful on other systems. If it contains results you don't
5250 # want to keep, you may remove or edit it.
5252 # config.status only pays attention to the cache file if you give it
5253 # the --recheck option to rerun configure.
5255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5257 # following values.
5259 _ACEOF
5261 # The following way of writing the cache mishandles newlines in values,
5262 # but we know of no workaround that is simple, portable, and efficient.
5263 # So, don't put newlines in cache variables' values.
5264 # Ultrix sh set writes to stderr and can't be redirected directly,
5265 # and sets the high bit in the cache file unless we assign to the vars.
5267 (set) 2>&1 |
5268 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5269 *ac_space=\ *)
5270 # `set' does not quote correctly, so add quotes (double-quote
5271 # substitution turns \\\\ into \\, and sed turns \\ into \).
5272 sed -n \
5273 "s/'/'\\\\''/g;
5274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5277 # `set' quotes correctly as required by POSIX, so do not add quotes.
5278 sed -n \
5279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5281 esac;
5283 sed '
5284 t clear
5285 : clear
5286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5287 t end
5288 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5289 : end' >>confcache
5290 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5291 if test -w $cache_file; then
5292 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5293 cat confcache >$cache_file
5294 else
5295 echo "not updating unwritable cache $cache_file"
5298 rm -f confcache
5300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5301 # Let make expand exec_prefix.
5302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5304 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5305 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5306 # trailing colons and then remove the whole line if VPATH becomes empty
5307 # (actually we leave an empty line to preserve line numbers).
5308 if test "x$srcdir" = x.; then
5309 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5310 s/:*\$(srcdir):*/:/;
5311 s/:*\${srcdir}:*/:/;
5312 s/:*@srcdir@:*/:/;
5313 s/^\([^=]*=[ ]*\):*/\1/;
5314 s/:*$//;
5315 s/^[^=]*=[ ]*$//;
5319 # Transform confdefs.h into DEFS.
5320 # Protect against shell expansion while executing Makefile rules.
5321 # Protect against Makefile macro expansion.
5323 # If the first sed substitution is executed (which looks for macros that
5324 # take arguments), then we branch to the quote section. Otherwise,
5325 # look for a macro that doesn't take arguments.
5326 cat >confdef2opt.sed <<\_ACEOF
5327 t clear
5328 : clear
5329 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5330 t quote
5331 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5332 t quote
5334 : quote
5335 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5336 s,\[,\\&,g
5337 s,\],\\&,g
5338 s,\$,$$,g
5340 _ACEOF
5341 # We use echo to avoid assuming a particular line-breaking character.
5342 # The extra dot is to prevent the shell from consuming trailing
5343 # line-breaks from the sub-command output. A line-break within
5344 # single-quotes doesn't work because, if this script is created in a
5345 # platform that uses two characters for line-breaks (e.g., DOS), tr
5346 # would break.
5347 ac_LF_and_DOT=`echo; echo .`
5348 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5349 rm -f confdef2opt.sed
5352 ac_libobjs=
5353 ac_ltlibobjs=
5354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5355 # 1. Remove the extension, and $U if already installed.
5356 ac_i=`echo "$ac_i" |
5357 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5358 # 2. Add them.
5359 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5360 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5361 done
5362 LIBOBJS=$ac_libobjs
5364 LTLIBOBJS=$ac_ltlibobjs
5368 : ${CONFIG_STATUS=./config.status}
5369 ac_clean_files_save=$ac_clean_files
5370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5373 cat >$CONFIG_STATUS <<_ACEOF
5374 #! $SHELL
5375 # Generated by $as_me.
5376 # Run this file to recreate the current configuration.
5377 # Compiler output produced by configure, useful for debugging
5378 # configure, is in config.log if it exists.
5380 debug=false
5381 ac_cs_recheck=false
5382 ac_cs_silent=false
5383 SHELL=\${CONFIG_SHELL-$SHELL}
5384 _ACEOF
5386 cat >>$CONFIG_STATUS <<\_ACEOF
5387 ## --------------------- ##
5388 ## M4sh Initialization. ##
5389 ## --------------------- ##
5391 # Be Bourne compatible
5392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5393 emulate sh
5394 NULLCMD=:
5395 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5396 # is contrary to our usage. Disable this feature.
5397 alias -g '${1+"$@"}'='"$@"'
5398 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5399 set -o posix
5401 DUALCASE=1; export DUALCASE # for MKS sh
5403 # Support unset when possible.
5404 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5405 as_unset=unset
5406 else
5407 as_unset=false
5411 # Work around bugs in pre-3.0 UWIN ksh.
5412 $as_unset ENV MAIL MAILPATH
5413 PS1='$ '
5414 PS2='> '
5415 PS4='+ '
5417 # NLS nuisances.
5418 for as_var in \
5419 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5420 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5421 LC_TELEPHONE LC_TIME
5423 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5424 eval $as_var=C; export $as_var
5425 else
5426 $as_unset $as_var
5428 done
5430 # Required to use basename.
5431 if expr a : '\(a\)' >/dev/null 2>&1; then
5432 as_expr=expr
5433 else
5434 as_expr=false
5437 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5438 as_basename=basename
5439 else
5440 as_basename=false
5444 # Name of the executable.
5445 as_me=`$as_basename "$0" ||
5446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5447 X"$0" : 'X\(//\)$' \| \
5448 X"$0" : 'X\(/\)$' \| \
5449 . : '\(.\)' 2>/dev/null ||
5450 echo X/"$0" |
5451 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5452 /^X\/\(\/\/\)$/{ s//\1/; q; }
5453 /^X\/\(\/\).*/{ s//\1/; q; }
5454 s/.*/./; q'`
5457 # PATH needs CR, and LINENO needs CR and PATH.
5458 # Avoid depending upon Character Ranges.
5459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5462 as_cr_digits='0123456789'
5463 as_cr_alnum=$as_cr_Letters$as_cr_digits
5465 # The user is always right.
5466 if test "${PATH_SEPARATOR+set}" != set; then
5467 echo "#! /bin/sh" >conf$$.sh
5468 echo "exit 0" >>conf$$.sh
5469 chmod +x conf$$.sh
5470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5471 PATH_SEPARATOR=';'
5472 else
5473 PATH_SEPARATOR=:
5475 rm -f conf$$.sh
5479 as_lineno_1=$LINENO
5480 as_lineno_2=$LINENO
5481 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5482 test "x$as_lineno_1" != "x$as_lineno_2" &&
5483 test "x$as_lineno_3" = "x$as_lineno_2" || {
5484 # Find who we are. Look in the path if we contain no path at all
5485 # relative or not.
5486 case $0 in
5487 *[\\/]* ) as_myself=$0 ;;
5488 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5494 done
5497 esac
5498 # We did not find ourselves, most probably we were run as `sh COMMAND'
5499 # in which case we are not to be found in the path.
5500 if test "x$as_myself" = x; then
5501 as_myself=$0
5503 if test ! -f "$as_myself"; then
5504 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5505 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5506 { (exit 1); exit 1; }; }
5508 case $CONFIG_SHELL in
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for as_base in sh bash ksh sh5; do
5516 case $as_dir in
5518 if ("$as_dir/$as_base" -c '
5519 as_lineno_1=$LINENO
5520 as_lineno_2=$LINENO
5521 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5522 test "x$as_lineno_1" != "x$as_lineno_2" &&
5523 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5524 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5525 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5526 CONFIG_SHELL=$as_dir/$as_base
5527 export CONFIG_SHELL
5528 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5529 fi;;
5530 esac
5531 done
5532 done
5534 esac
5536 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5537 # uniformly replaced by the line number. The first 'sed' inserts a
5538 # line-number line before each line; the second 'sed' does the real
5539 # work. The second script uses 'N' to pair each line-number line
5540 # with the numbered line, and appends trailing '-' during
5541 # substitution so that $LINENO is not a special case at line end.
5542 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5543 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5544 sed '=' <$as_myself |
5545 sed '
5547 s,$,-,
5548 : loop
5549 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5550 t loop
5551 s,-$,,
5552 s,^['$as_cr_digits']*\n,,
5553 ' >$as_me.lineno &&
5554 chmod +x $as_me.lineno ||
5555 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5556 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5557 { (exit 1); exit 1; }; }
5559 # Don't try to exec as it changes $[0], causing all sort of problems
5560 # (the dirname of $[0] is not the place where we might find the
5561 # original and so on. Autoconf is especially sensible to this).
5562 . ./$as_me.lineno
5563 # Exit status is that of the last command.
5564 exit
5568 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5569 *c*,-n*) ECHO_N= ECHO_C='
5570 ' ECHO_T=' ' ;;
5571 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5572 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5573 esac
5575 if expr a : '\(a\)' >/dev/null 2>&1; then
5576 as_expr=expr
5577 else
5578 as_expr=false
5581 rm -f conf$$ conf$$.exe conf$$.file
5582 echo >conf$$.file
5583 if ln -s conf$$.file conf$$ 2>/dev/null; then
5584 # We could just check for DJGPP; but this test a) works b) is more generic
5585 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5586 if test -f conf$$.exe; then
5587 # Don't use ln at all; we don't have any links
5588 as_ln_s='cp -p'
5589 else
5590 as_ln_s='ln -s'
5592 elif ln conf$$.file conf$$ 2>/dev/null; then
5593 as_ln_s=ln
5594 else
5595 as_ln_s='cp -p'
5597 rm -f conf$$ conf$$.exe conf$$.file
5599 if mkdir -p . 2>/dev/null; then
5600 as_mkdir_p=:
5601 else
5602 test -d ./-p && rmdir ./-p
5603 as_mkdir_p=false
5606 as_executable_p="test -f"
5608 # Sed expression to map a string onto a valid CPP name.
5609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5611 # Sed expression to map a string onto a valid variable name.
5612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5615 # IFS
5616 # We need space, tab and new line, in precisely that order.
5617 as_nl='
5619 IFS=" $as_nl"
5621 # CDPATH.
5622 $as_unset CDPATH
5624 exec 6>&1
5626 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5627 # report actual input values of CONFIG_FILES etc. instead of their
5628 # values after options handling. Logging --version etc. is OK.
5629 exec 5>>config.log
5631 echo
5632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5633 ## Running $as_me. ##
5634 _ASBOX
5635 } >&5
5636 cat >&5 <<_CSEOF
5638 This file was extended by $as_me, which was
5639 generated by GNU Autoconf 2.59. Invocation command line was
5641 CONFIG_FILES = $CONFIG_FILES
5642 CONFIG_HEADERS = $CONFIG_HEADERS
5643 CONFIG_LINKS = $CONFIG_LINKS
5644 CONFIG_COMMANDS = $CONFIG_COMMANDS
5645 $ $0 $@
5647 _CSEOF
5648 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5649 echo >&5
5650 _ACEOF
5652 # Files that config.status was made for.
5653 if test -n "$ac_config_files"; then
5654 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5657 if test -n "$ac_config_headers"; then
5658 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5661 if test -n "$ac_config_links"; then
5662 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5665 if test -n "$ac_config_commands"; then
5666 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5669 cat >>$CONFIG_STATUS <<\_ACEOF
5671 ac_cs_usage="\
5672 \`$as_me' instantiates files from templates according to the
5673 current configuration.
5675 Usage: $0 [OPTIONS] [FILE]...
5677 -h, --help print this help, then exit
5678 -V, --version print version number, then exit
5679 -q, --quiet do not print progress messages
5680 -d, --debug don't remove temporary files
5681 --recheck update $as_me by reconfiguring in the same conditions
5682 --file=FILE[:TEMPLATE]
5683 instantiate the configuration file FILE
5685 Configuration files:
5686 $config_files
5688 Report bugs to <bug-autoconf@gnu.org>."
5689 _ACEOF
5691 cat >>$CONFIG_STATUS <<_ACEOF
5692 ac_cs_version="\\
5693 config.status
5694 configured by $0, generated by GNU Autoconf 2.59,
5695 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5697 Copyright (C) 2003 Free Software Foundation, Inc.
5698 This config.status script is free software; the Free Software Foundation
5699 gives unlimited permission to copy, distribute and modify it."
5700 srcdir=$srcdir
5701 _ACEOF
5703 cat >>$CONFIG_STATUS <<\_ACEOF
5704 # If no file are specified by the user, then we need to provide default
5705 # value. By we need to know if files were specified by the user.
5706 ac_need_defaults=:
5707 while test $# != 0
5709 case $1 in
5710 --*=*)
5711 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5712 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5713 ac_shift=:
5716 ac_option=$1
5717 ac_optarg=$2
5718 ac_shift=shift
5720 *) # This is not an option, so the user has probably given explicit
5721 # arguments.
5722 ac_option=$1
5723 ac_need_defaults=false;;
5724 esac
5726 case $ac_option in
5727 # Handling of the options.
5728 _ACEOF
5729 cat >>$CONFIG_STATUS <<\_ACEOF
5730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5731 ac_cs_recheck=: ;;
5732 --version | --vers* | -V )
5733 echo "$ac_cs_version"; exit 0 ;;
5734 --he | --h)
5735 # Conflict between --help and --header
5736 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5737 Try \`$0 --help' for more information." >&5
5738 echo "$as_me: error: ambiguous option: $1
5739 Try \`$0 --help' for more information." >&2;}
5740 { (exit 1); exit 1; }; };;
5741 --help | --hel | -h )
5742 echo "$ac_cs_usage"; exit 0 ;;
5743 --debug | --d* | -d )
5744 debug=: ;;
5745 --file | --fil | --fi | --f )
5746 $ac_shift
5747 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5748 ac_need_defaults=false;;
5749 --header | --heade | --head | --hea )
5750 $ac_shift
5751 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5752 ac_need_defaults=false;;
5753 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5754 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5755 ac_cs_silent=: ;;
5757 # This is an error.
5758 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5759 Try \`$0 --help' for more information." >&5
5760 echo "$as_me: error: unrecognized option: $1
5761 Try \`$0 --help' for more information." >&2;}
5762 { (exit 1); exit 1; }; } ;;
5764 *) ac_config_targets="$ac_config_targets $1" ;;
5766 esac
5767 shift
5768 done
5770 ac_configure_extra_args=
5772 if $ac_cs_silent; then
5773 exec 6>/dev/null
5774 ac_configure_extra_args="$ac_configure_extra_args --silent"
5777 _ACEOF
5778 cat >>$CONFIG_STATUS <<_ACEOF
5779 if \$ac_cs_recheck; then
5780 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5781 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5784 _ACEOF
5790 cat >>$CONFIG_STATUS <<\_ACEOF
5791 for ac_config_target in $ac_config_targets
5793 case "$ac_config_target" in
5794 # Handling of arguments.
5795 "audio/gsm-amr/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/gsm-amr/Makefile" ;;
5796 "audio/GSM0610/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/GSM0610/Makefile" ;;
5797 "audio/iLBC/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/iLBC/Makefile" ;;
5798 "audio/Speex/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/Speex/Makefile" ;;
5799 "audio/LPC_10/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/LPC_10/Makefile" ;;
5800 "audio/G726/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/G726/Makefile" ;;
5801 "audio/IMA_ADPCM/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/IMA_ADPCM/Makefile" ;;
5802 "video/H.261-vic/Makefile" ) CONFIG_FILES="$CONFIG_FILES video/H.261-vic/Makefile" ;;
5803 "video/H.263-ffmpeg/Makefile" ) CONFIG_FILES="$CONFIG_FILES video/H.263-ffmpeg/Makefile" ;;
5804 "audio/Speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES audio/Speex/libspeex/speex_config_types.h" ;;
5805 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5806 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5807 { (exit 1); exit 1; }; };;
5808 esac
5809 done
5811 # If the user did not use the arguments to specify the items to instantiate,
5812 # then the envvar interface is used. Set only those that are not.
5813 # We use the long form for the default assignment because of an extremely
5814 # bizarre bug on SunOS 4.1.3.
5815 if $ac_need_defaults; then
5816 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5819 # Have a temporary directory for convenience. Make it in the build tree
5820 # simply because there is no reason to put it here, and in addition,
5821 # creating and moving files from /tmp can sometimes cause problems.
5822 # Create a temporary directory, and hook for its removal unless debugging.
5823 $debug ||
5825 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5826 trap '{ (exit 1); exit 1; }' 1 2 13 15
5829 # Create a (secure) tmp directory for tmp files.
5832 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5833 test -n "$tmp" && test -d "$tmp"
5834 } ||
5836 tmp=./confstat$$-$RANDOM
5837 (umask 077 && mkdir $tmp)
5838 } ||
5840 echo "$me: cannot create a temporary directory in ." >&2
5841 { (exit 1); exit 1; }
5844 _ACEOF
5846 cat >>$CONFIG_STATUS <<_ACEOF
5849 # CONFIG_FILES section.
5852 # No need to generate the scripts if there are no CONFIG_FILES.
5853 # This happens for instance when ./config.status config.h
5854 if test -n "\$CONFIG_FILES"; then
5855 # Protect against being on the right side of a sed subst in config.status.
5856 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5857 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5858 s,@SHELL@,$SHELL,;t t
5859 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5860 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5861 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5862 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5863 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5864 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5865 s,@exec_prefix@,$exec_prefix,;t t
5866 s,@prefix@,$prefix,;t t
5867 s,@program_transform_name@,$program_transform_name,;t t
5868 s,@bindir@,$bindir,;t t
5869 s,@sbindir@,$sbindir,;t t
5870 s,@libexecdir@,$libexecdir,;t t
5871 s,@datadir@,$datadir,;t t
5872 s,@sysconfdir@,$sysconfdir,;t t
5873 s,@sharedstatedir@,$sharedstatedir,;t t
5874 s,@localstatedir@,$localstatedir,;t t
5875 s,@libdir@,$libdir,;t t
5876 s,@includedir@,$includedir,;t t
5877 s,@oldincludedir@,$oldincludedir,;t t
5878 s,@infodir@,$infodir,;t t
5879 s,@mandir@,$mandir,;t t
5880 s,@build_alias@,$build_alias,;t t
5881 s,@host_alias@,$host_alias,;t t
5882 s,@target_alias@,$target_alias,;t t
5883 s,@DEFS@,$DEFS,;t t
5884 s,@ECHO_C@,$ECHO_C,;t t
5885 s,@ECHO_N@,$ECHO_N,;t t
5886 s,@ECHO_T@,$ECHO_T,;t t
5887 s,@LIBS@,$LIBS,;t t
5888 s,@CXX@,$CXX,;t t
5889 s,@CXXFLAGS@,$CXXFLAGS,;t t
5890 s,@LDFLAGS@,$LDFLAGS,;t t
5891 s,@CPPFLAGS@,$CPPFLAGS,;t t
5892 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5893 s,@EXEEXT@,$EXEEXT,;t t
5894 s,@OBJEXT@,$OBJEXT,;t t
5895 s,@CC@,$CC,;t t
5896 s,@CFLAGS@,$CFLAGS,;t t
5897 s,@ac_ct_CC@,$ac_ct_CC,;t t
5898 s,@CPP@,$CPP,;t t
5899 s,@EGREP@,$EGREP,;t t
5900 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
5901 s,@LIBDIR@,$LIBDIR,;t t
5902 s,@build@,$build,;t t
5903 s,@build_cpu@,$build_cpu,;t t
5904 s,@build_vendor@,$build_vendor,;t t
5905 s,@build_os@,$build_os,;t t
5906 s,@host@,$host,;t t
5907 s,@host_cpu@,$host_cpu,;t t
5908 s,@host_vendor@,$host_vendor,;t t
5909 s,@host_os@,$host_os,;t t
5910 s,@target@,$target,;t t
5911 s,@target_cpu@,$target_cpu,;t t
5912 s,@target_vendor@,$target_vendor,;t t
5913 s,@target_os@,$target_os,;t t
5914 s,@LDSO@,$LDSO,;t t
5915 s,@H323_GSMAMR_NB_FLOAT@,$H323_GSMAMR_NB_FLOAT,;t t
5916 s,@H323_SYSTEM_GSM@,$H323_SYSTEM_GSM,;t t
5917 s,@SIZE16@,$SIZE16,;t t
5918 s,@SIZE32@,$SIZE32,;t t
5919 s,@H323_SYSTEM_SPEEX@,$H323_SYSTEM_SPEEX,;t t
5920 s,@LIBOBJS@,$LIBOBJS,;t t
5921 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5922 CEOF
5924 _ACEOF
5926 cat >>$CONFIG_STATUS <<\_ACEOF
5927 # Split the substitutions into bite-sized pieces for seds with
5928 # small command number limits, like on Digital OSF/1 and HP-UX.
5929 ac_max_sed_lines=48
5930 ac_sed_frag=1 # Number of current file.
5931 ac_beg=1 # First line for current file.
5932 ac_end=$ac_max_sed_lines # Line after last line for current file.
5933 ac_more_lines=:
5934 ac_sed_cmds=
5935 while $ac_more_lines; do
5936 if test $ac_beg -gt 1; then
5937 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5938 else
5939 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5941 if test ! -s $tmp/subs.frag; then
5942 ac_more_lines=false
5943 else
5944 # The purpose of the label and of the branching condition is to
5945 # speed up the sed processing (if there are no `@' at all, there
5946 # is no need to browse any of the substitutions).
5947 # These are the two extra sed commands mentioned above.
5948 (echo ':t
5949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5950 if test -z "$ac_sed_cmds"; then
5951 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5952 else
5953 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5955 ac_sed_frag=`expr $ac_sed_frag + 1`
5956 ac_beg=$ac_end
5957 ac_end=`expr $ac_end + $ac_max_sed_lines`
5959 done
5960 if test -z "$ac_sed_cmds"; then
5961 ac_sed_cmds=cat
5963 fi # test -n "$CONFIG_FILES"
5965 _ACEOF
5966 cat >>$CONFIG_STATUS <<\_ACEOF
5967 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5969 case $ac_file in
5970 - | *:- | *:-:* ) # input from stdin
5971 cat >$tmp/stdin
5972 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5974 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5976 * ) ac_file_in=$ac_file.in ;;
5977 esac
5979 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5980 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5982 X"$ac_file" : 'X\(//\)[^/]' \| \
5983 X"$ac_file" : 'X\(//\)$' \| \
5984 X"$ac_file" : 'X\(/\)' \| \
5985 . : '\(.\)' 2>/dev/null ||
5986 echo X"$ac_file" |
5987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5989 /^X\(\/\/\)$/{ s//\1/; q; }
5990 /^X\(\/\).*/{ s//\1/; q; }
5991 s/.*/./; q'`
5992 { if $as_mkdir_p; then
5993 mkdir -p "$ac_dir"
5994 else
5995 as_dir="$ac_dir"
5996 as_dirs=
5997 while test ! -d "$as_dir"; do
5998 as_dirs="$as_dir $as_dirs"
5999 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6001 X"$as_dir" : 'X\(//\)[^/]' \| \
6002 X"$as_dir" : 'X\(//\)$' \| \
6003 X"$as_dir" : 'X\(/\)' \| \
6004 . : '\(.\)' 2>/dev/null ||
6005 echo X"$as_dir" |
6006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6008 /^X\(\/\/\)$/{ s//\1/; q; }
6009 /^X\(\/\).*/{ s//\1/; q; }
6010 s/.*/./; q'`
6011 done
6012 test ! -n "$as_dirs" || mkdir $as_dirs
6013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6015 { (exit 1); exit 1; }; }; }
6017 ac_builddir=.
6019 if test "$ac_dir" != .; then
6020 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6021 # A "../" for each directory in $ac_dir_suffix.
6022 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6023 else
6024 ac_dir_suffix= ac_top_builddir=
6027 case $srcdir in
6028 .) # No --srcdir option. We are building in place.
6029 ac_srcdir=.
6030 if test -z "$ac_top_builddir"; then
6031 ac_top_srcdir=.
6032 else
6033 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6034 fi ;;
6035 [\\/]* | ?:[\\/]* ) # Absolute path.
6036 ac_srcdir=$srcdir$ac_dir_suffix;
6037 ac_top_srcdir=$srcdir ;;
6038 *) # Relative path.
6039 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6040 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6041 esac
6043 # Do not use `cd foo && pwd` to compute absolute paths, because
6044 # the directories may not exist.
6045 case `pwd` in
6046 .) ac_abs_builddir="$ac_dir";;
6048 case "$ac_dir" in
6049 .) ac_abs_builddir=`pwd`;;
6050 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6051 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6052 esac;;
6053 esac
6054 case $ac_abs_builddir in
6055 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6057 case ${ac_top_builddir}. in
6058 .) ac_abs_top_builddir=$ac_abs_builddir;;
6059 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6060 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6061 esac;;
6062 esac
6063 case $ac_abs_builddir in
6064 .) ac_abs_srcdir=$ac_srcdir;;
6066 case $ac_srcdir in
6067 .) ac_abs_srcdir=$ac_abs_builddir;;
6068 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6069 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6070 esac;;
6071 esac
6072 case $ac_abs_builddir in
6073 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6075 case $ac_top_srcdir in
6076 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6077 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6078 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6079 esac;;
6080 esac
6084 if test x"$ac_file" != x-; then
6085 { echo "$as_me:$LINENO: creating $ac_file" >&5
6086 echo "$as_me: creating $ac_file" >&6;}
6087 rm -f "$ac_file"
6089 # Let's still pretend it is `configure' which instantiates (i.e., don't
6090 # use $as_me), people would be surprised to read:
6091 # /* config.h. Generated by config.status. */
6092 if test x"$ac_file" = x-; then
6093 configure_input=
6094 else
6095 configure_input="$ac_file. "
6097 configure_input=$configure_input"Generated from `echo $ac_file_in |
6098 sed 's,.*/,,'` by configure."
6100 # First look for the input files in the build tree, otherwise in the
6101 # src tree.
6102 ac_file_inputs=`IFS=:
6103 for f in $ac_file_in; do
6104 case $f in
6105 -) echo $tmp/stdin ;;
6106 [\\/$]*)
6107 # Absolute (can't be DOS-style, as IFS=:)
6108 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6109 echo "$as_me: error: cannot find input file: $f" >&2;}
6110 { (exit 1); exit 1; }; }
6111 echo "$f";;
6112 *) # Relative
6113 if test -f "$f"; then
6114 # Build tree
6115 echo "$f"
6116 elif test -f "$srcdir/$f"; then
6117 # Source tree
6118 echo "$srcdir/$f"
6119 else
6120 # /dev/null tree
6121 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6122 echo "$as_me: error: cannot find input file: $f" >&2;}
6123 { (exit 1); exit 1; }; }
6124 fi;;
6125 esac
6126 done` || { (exit 1); exit 1; }
6127 _ACEOF
6128 cat >>$CONFIG_STATUS <<_ACEOF
6129 sed "$ac_vpsub
6130 $extrasub
6131 _ACEOF
6132 cat >>$CONFIG_STATUS <<\_ACEOF
6134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6135 s,@configure_input@,$configure_input,;t t
6136 s,@srcdir@,$ac_srcdir,;t t
6137 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6138 s,@top_srcdir@,$ac_top_srcdir,;t t
6139 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6140 s,@builddir@,$ac_builddir,;t t
6141 s,@abs_builddir@,$ac_abs_builddir,;t t
6142 s,@top_builddir@,$ac_top_builddir,;t t
6143 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6144 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6145 rm -f $tmp/stdin
6146 if test x"$ac_file" != x-; then
6147 mv $tmp/out $ac_file
6148 else
6149 cat $tmp/out
6150 rm -f $tmp/out
6153 done
6154 _ACEOF
6156 cat >>$CONFIG_STATUS <<\_ACEOF
6158 { (exit 0); exit 0; }
6159 _ACEOF
6160 chmod +x $CONFIG_STATUS
6161 ac_clean_files=$ac_clean_files_save
6164 # configure is writing to config.log, and then calls config.status.
6165 # config.status does its own redirection, appending to config.log.
6166 # Unfortunately, on DOS this fails, as config.log is still kept open
6167 # by configure, so config.status won't be able to write to it; its
6168 # output is simply discarded. So we exec the FD to /dev/null,
6169 # effectively closing config.log, so it can be properly (re)opened and
6170 # appended to by config.status. When coming back to configure, we
6171 # need to make the FD available again.
6172 if test "$no_create" != yes; then
6173 ac_cs_success=:
6174 ac_config_status_args=
6175 test "$silent" = yes &&
6176 ac_config_status_args="$ac_config_status_args --quiet"
6177 exec 5>/dev/null
6178 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6179 exec 5>>config.log
6180 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6181 # would make configure fail if this is the last instruction.
6182 $ac_cs_success || { (exit 1); exit 1; }
6185 cat >confcache <<\_ACEOF
6186 # This file is a shell script that caches the results of configure
6187 # tests run on this system so they can be shared between configure
6188 # scripts and configure runs, see configure's option --config-cache.
6189 # It is not useful on other systems. If it contains results you don't
6190 # want to keep, you may remove or edit it.
6192 # config.status only pays attention to the cache file if you give it
6193 # the --recheck option to rerun configure.
6195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6197 # following values.
6199 _ACEOF
6201 # The following way of writing the cache mishandles newlines in values,
6202 # but we know of no workaround that is simple, portable, and efficient.
6203 # So, don't put newlines in cache variables' values.
6204 # Ultrix sh set writes to stderr and can't be redirected directly,
6205 # and sets the high bit in the cache file unless we assign to the vars.
6207 (set) 2>&1 |
6208 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6209 *ac_space=\ *)
6210 # `set' does not quote correctly, so add quotes (double-quote
6211 # substitution turns \\\\ into \\, and sed turns \\ into \).
6212 sed -n \
6213 "s/'/'\\\\''/g;
6214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6217 # `set' quotes correctly as required by POSIX, so do not add quotes.
6218 sed -n \
6219 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6221 esac;
6223 sed '
6224 t clear
6225 : clear
6226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6227 t end
6228 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6229 : end' >>confcache
6230 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6231 if test -w $cache_file; then
6232 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6233 cat confcache >$cache_file
6234 else
6235 echo "not updating unwritable cache $cache_file"
6238 rm -f confcache
6240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6241 # Let make expand exec_prefix.
6242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6244 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6245 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6246 # trailing colons and then remove the whole line if VPATH becomes empty
6247 # (actually we leave an empty line to preserve line numbers).
6248 if test "x$srcdir" = x.; then
6249 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6250 s/:*\$(srcdir):*/:/;
6251 s/:*\${srcdir}:*/:/;
6252 s/:*@srcdir@:*/:/;
6253 s/^\([^=]*=[ ]*\):*/\1/;
6254 s/:*$//;
6255 s/^[^=]*=[ ]*$//;
6259 # Transform confdefs.h into DEFS.
6260 # Protect against shell expansion while executing Makefile rules.
6261 # Protect against Makefile macro expansion.
6263 # If the first sed substitution is executed (which looks for macros that
6264 # take arguments), then we branch to the quote section. Otherwise,
6265 # look for a macro that doesn't take arguments.
6266 cat >confdef2opt.sed <<\_ACEOF
6267 t clear
6268 : clear
6269 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6270 t quote
6271 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6272 t quote
6274 : quote
6275 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6276 s,\[,\\&,g
6277 s,\],\\&,g
6278 s,\$,$$,g
6280 _ACEOF
6281 # We use echo to avoid assuming a particular line-breaking character.
6282 # The extra dot is to prevent the shell from consuming trailing
6283 # line-breaks from the sub-command output. A line-break within
6284 # single-quotes doesn't work because, if this script is created in a
6285 # platform that uses two characters for line-breaks (e.g., DOS), tr
6286 # would break.
6287 ac_LF_and_DOT=`echo; echo .`
6288 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6289 rm -f confdef2opt.sed
6292 ac_libobjs=
6293 ac_ltlibobjs=
6294 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6295 # 1. Remove the extension, and $U if already installed.
6296 ac_i=`echo "$ac_i" |
6297 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6298 # 2. Add them.
6299 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6300 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6301 done
6302 LIBOBJS=$ac_libobjs
6304 LTLIBOBJS=$ac_ltlibobjs
6308 : ${CONFIG_STATUS=./config.status}
6309 ac_clean_files_save=$ac_clean_files
6310 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6311 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6312 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6313 cat >$CONFIG_STATUS <<_ACEOF
6314 #! $SHELL
6315 # Generated by $as_me.
6316 # Run this file to recreate the current configuration.
6317 # Compiler output produced by configure, useful for debugging
6318 # configure, is in config.log if it exists.
6320 debug=false
6321 ac_cs_recheck=false
6322 ac_cs_silent=false
6323 SHELL=\${CONFIG_SHELL-$SHELL}
6324 _ACEOF
6326 cat >>$CONFIG_STATUS <<\_ACEOF
6327 ## --------------------- ##
6328 ## M4sh Initialization. ##
6329 ## --------------------- ##
6331 # Be Bourne compatible
6332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6333 emulate sh
6334 NULLCMD=:
6335 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6336 # is contrary to our usage. Disable this feature.
6337 alias -g '${1+"$@"}'='"$@"'
6338 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6339 set -o posix
6341 DUALCASE=1; export DUALCASE # for MKS sh
6343 # Support unset when possible.
6344 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6345 as_unset=unset
6346 else
6347 as_unset=false
6351 # Work around bugs in pre-3.0 UWIN ksh.
6352 $as_unset ENV MAIL MAILPATH
6353 PS1='$ '
6354 PS2='> '
6355 PS4='+ '
6357 # NLS nuisances.
6358 for as_var in \
6359 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6360 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6361 LC_TELEPHONE LC_TIME
6363 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6364 eval $as_var=C; export $as_var
6365 else
6366 $as_unset $as_var
6368 done
6370 # Required to use basename.
6371 if expr a : '\(a\)' >/dev/null 2>&1; then
6372 as_expr=expr
6373 else
6374 as_expr=false
6377 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6378 as_basename=basename
6379 else
6380 as_basename=false
6384 # Name of the executable.
6385 as_me=`$as_basename "$0" ||
6386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6387 X"$0" : 'X\(//\)$' \| \
6388 X"$0" : 'X\(/\)$' \| \
6389 . : '\(.\)' 2>/dev/null ||
6390 echo X/"$0" |
6391 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6392 /^X\/\(\/\/\)$/{ s//\1/; q; }
6393 /^X\/\(\/\).*/{ s//\1/; q; }
6394 s/.*/./; q'`
6397 # PATH needs CR, and LINENO needs CR and PATH.
6398 # Avoid depending upon Character Ranges.
6399 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6400 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6401 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6402 as_cr_digits='0123456789'
6403 as_cr_alnum=$as_cr_Letters$as_cr_digits
6405 # The user is always right.
6406 if test "${PATH_SEPARATOR+set}" != set; then
6407 echo "#! /bin/sh" >conf$$.sh
6408 echo "exit 0" >>conf$$.sh
6409 chmod +x conf$$.sh
6410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6411 PATH_SEPARATOR=';'
6412 else
6413 PATH_SEPARATOR=:
6415 rm -f conf$$.sh
6419 as_lineno_1=$LINENO
6420 as_lineno_2=$LINENO
6421 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6422 test "x$as_lineno_1" != "x$as_lineno_2" &&
6423 test "x$as_lineno_3" = "x$as_lineno_2" || {
6424 # Find who we are. Look in the path if we contain no path at all
6425 # relative or not.
6426 case $0 in
6427 *[\\/]* ) as_myself=$0 ;;
6428 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6434 done
6437 esac
6438 # We did not find ourselves, most probably we were run as `sh COMMAND'
6439 # in which case we are not to be found in the path.
6440 if test "x$as_myself" = x; then
6441 as_myself=$0
6443 if test ! -f "$as_myself"; then
6444 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6445 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6446 { (exit 1); exit 1; }; }
6448 case $CONFIG_SHELL in
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for as_base in sh bash ksh sh5; do
6456 case $as_dir in
6458 if ("$as_dir/$as_base" -c '
6459 as_lineno_1=$LINENO
6460 as_lineno_2=$LINENO
6461 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6462 test "x$as_lineno_1" != "x$as_lineno_2" &&
6463 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6464 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6465 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6466 CONFIG_SHELL=$as_dir/$as_base
6467 export CONFIG_SHELL
6468 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6469 fi;;
6470 esac
6471 done
6472 done
6474 esac
6476 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6477 # uniformly replaced by the line number. The first 'sed' inserts a
6478 # line-number line before each line; the second 'sed' does the real
6479 # work. The second script uses 'N' to pair each line-number line
6480 # with the numbered line, and appends trailing '-' during
6481 # substitution so that $LINENO is not a special case at line end.
6482 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6483 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6484 sed '=' <$as_myself |
6485 sed '
6487 s,$,-,
6488 : loop
6489 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6490 t loop
6491 s,-$,,
6492 s,^['$as_cr_digits']*\n,,
6493 ' >$as_me.lineno &&
6494 chmod +x $as_me.lineno ||
6495 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6496 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6497 { (exit 1); exit 1; }; }
6499 # Don't try to exec as it changes $[0], causing all sort of problems
6500 # (the dirname of $[0] is not the place where we might find the
6501 # original and so on. Autoconf is especially sensible to this).
6502 . ./$as_me.lineno
6503 # Exit status is that of the last command.
6504 exit
6508 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6509 *c*,-n*) ECHO_N= ECHO_C='
6510 ' ECHO_T=' ' ;;
6511 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6512 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6513 esac
6515 if expr a : '\(a\)' >/dev/null 2>&1; then
6516 as_expr=expr
6517 else
6518 as_expr=false
6521 rm -f conf$$ conf$$.exe conf$$.file
6522 echo >conf$$.file
6523 if ln -s conf$$.file conf$$ 2>/dev/null; then
6524 # We could just check for DJGPP; but this test a) works b) is more generic
6525 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6526 if test -f conf$$.exe; then
6527 # Don't use ln at all; we don't have any links
6528 as_ln_s='cp -p'
6529 else
6530 as_ln_s='ln -s'
6532 elif ln conf$$.file conf$$ 2>/dev/null; then
6533 as_ln_s=ln
6534 else
6535 as_ln_s='cp -p'
6537 rm -f conf$$ conf$$.exe conf$$.file
6539 if mkdir -p . 2>/dev/null; then
6540 as_mkdir_p=:
6541 else
6542 test -d ./-p && rmdir ./-p
6543 as_mkdir_p=false
6546 as_executable_p="test -f"
6548 # Sed expression to map a string onto a valid CPP name.
6549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6551 # Sed expression to map a string onto a valid variable name.
6552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6555 # IFS
6556 # We need space, tab and new line, in precisely that order.
6557 as_nl='
6559 IFS=" $as_nl"
6561 # CDPATH.
6562 $as_unset CDPATH
6564 exec 6>&1
6566 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6567 # report actual input values of CONFIG_FILES etc. instead of their
6568 # values after options handling. Logging --version etc. is OK.
6569 exec 5>>config.log
6571 echo
6572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6573 ## Running $as_me. ##
6574 _ASBOX
6575 } >&5
6576 cat >&5 <<_CSEOF
6578 This file was extended by $as_me, which was
6579 generated by GNU Autoconf 2.59. Invocation command line was
6581 CONFIG_FILES = $CONFIG_FILES
6582 CONFIG_HEADERS = $CONFIG_HEADERS
6583 CONFIG_LINKS = $CONFIG_LINKS
6584 CONFIG_COMMANDS = $CONFIG_COMMANDS
6585 $ $0 $@
6587 _CSEOF
6588 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6589 echo >&5
6590 _ACEOF
6592 # Files that config.status was made for.
6593 if test -n "$ac_config_files"; then
6594 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6597 if test -n "$ac_config_headers"; then
6598 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6601 if test -n "$ac_config_links"; then
6602 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6605 if test -n "$ac_config_commands"; then
6606 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6609 cat >>$CONFIG_STATUS <<\_ACEOF
6611 ac_cs_usage="\
6612 \`$as_me' instantiates files from templates according to the
6613 current configuration.
6615 Usage: $0 [OPTIONS] [FILE]...
6617 -h, --help print this help, then exit
6618 -V, --version print version number, then exit
6619 -q, --quiet do not print progress messages
6620 -d, --debug don't remove temporary files
6621 --recheck update $as_me by reconfiguring in the same conditions
6622 --file=FILE[:TEMPLATE]
6623 instantiate the configuration file FILE
6625 Configuration files:
6626 $config_files
6628 Report bugs to <bug-autoconf@gnu.org>."
6629 _ACEOF
6631 cat >>$CONFIG_STATUS <<_ACEOF
6632 ac_cs_version="\\
6633 config.status
6634 configured by $0, generated by GNU Autoconf 2.59,
6635 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6637 Copyright (C) 2003 Free Software Foundation, Inc.
6638 This config.status script is free software; the Free Software Foundation
6639 gives unlimited permission to copy, distribute and modify it."
6640 srcdir=$srcdir
6641 _ACEOF
6643 cat >>$CONFIG_STATUS <<\_ACEOF
6644 # If no file are specified by the user, then we need to provide default
6645 # value. By we need to know if files were specified by the user.
6646 ac_need_defaults=:
6647 while test $# != 0
6649 case $1 in
6650 --*=*)
6651 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6652 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6653 ac_shift=:
6656 ac_option=$1
6657 ac_optarg=$2
6658 ac_shift=shift
6660 *) # This is not an option, so the user has probably given explicit
6661 # arguments.
6662 ac_option=$1
6663 ac_need_defaults=false;;
6664 esac
6666 case $ac_option in
6667 # Handling of the options.
6668 _ACEOF
6669 cat >>$CONFIG_STATUS <<\_ACEOF
6670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6671 ac_cs_recheck=: ;;
6672 --version | --vers* | -V )
6673 echo "$ac_cs_version"; exit 0 ;;
6674 --he | --h)
6675 # Conflict between --help and --header
6676 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6677 Try \`$0 --help' for more information." >&5
6678 echo "$as_me: error: ambiguous option: $1
6679 Try \`$0 --help' for more information." >&2;}
6680 { (exit 1); exit 1; }; };;
6681 --help | --hel | -h )
6682 echo "$ac_cs_usage"; exit 0 ;;
6683 --debug | --d* | -d )
6684 debug=: ;;
6685 --file | --fil | --fi | --f )
6686 $ac_shift
6687 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6688 ac_need_defaults=false;;
6689 --header | --heade | --head | --hea )
6690 $ac_shift
6691 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6692 ac_need_defaults=false;;
6693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6694 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6695 ac_cs_silent=: ;;
6697 # This is an error.
6698 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6699 Try \`$0 --help' for more information." >&5
6700 echo "$as_me: error: unrecognized option: $1
6701 Try \`$0 --help' for more information." >&2;}
6702 { (exit 1); exit 1; }; } ;;
6704 *) ac_config_targets="$ac_config_targets $1" ;;
6706 esac
6707 shift
6708 done
6710 ac_configure_extra_args=
6712 if $ac_cs_silent; then
6713 exec 6>/dev/null
6714 ac_configure_extra_args="$ac_configure_extra_args --silent"
6717 _ACEOF
6718 cat >>$CONFIG_STATUS <<_ACEOF
6719 if \$ac_cs_recheck; then
6720 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6721 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6724 _ACEOF
6730 cat >>$CONFIG_STATUS <<\_ACEOF
6731 for ac_config_target in $ac_config_targets
6733 case "$ac_config_target" in
6734 # Handling of arguments.
6735 "audio/gsm-amr/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/gsm-amr/Makefile" ;;
6736 "audio/GSM0610/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/GSM0610/Makefile" ;;
6737 "audio/iLBC/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/iLBC/Makefile" ;;
6738 "audio/Speex/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/Speex/Makefile" ;;
6739 "audio/LPC_10/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/LPC_10/Makefile" ;;
6740 "audio/G726/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/G726/Makefile" ;;
6741 "audio/IMA_ADPCM/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/IMA_ADPCM/Makefile" ;;
6742 "video/H.261-vic/Makefile" ) CONFIG_FILES="$CONFIG_FILES video/H.261-vic/Makefile" ;;
6743 "video/H.263-ffmpeg/Makefile" ) CONFIG_FILES="$CONFIG_FILES video/H.263-ffmpeg/Makefile" ;;
6744 "audio/Speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES audio/Speex/libspeex/speex_config_types.h" ;;
6745 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6746 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6747 { (exit 1); exit 1; }; };;
6748 esac
6749 done
6751 # If the user did not use the arguments to specify the items to instantiate,
6752 # then the envvar interface is used. Set only those that are not.
6753 # We use the long form for the default assignment because of an extremely
6754 # bizarre bug on SunOS 4.1.3.
6755 if $ac_need_defaults; then
6756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6759 # Have a temporary directory for convenience. Make it in the build tree
6760 # simply because there is no reason to put it here, and in addition,
6761 # creating and moving files from /tmp can sometimes cause problems.
6762 # Create a temporary directory, and hook for its removal unless debugging.
6763 $debug ||
6765 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6766 trap '{ (exit 1); exit 1; }' 1 2 13 15
6769 # Create a (secure) tmp directory for tmp files.
6772 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6773 test -n "$tmp" && test -d "$tmp"
6774 } ||
6776 tmp=./confstat$$-$RANDOM
6777 (umask 077 && mkdir $tmp)
6778 } ||
6780 echo "$me: cannot create a temporary directory in ." >&2
6781 { (exit 1); exit 1; }
6784 _ACEOF
6786 cat >>$CONFIG_STATUS <<_ACEOF
6789 # CONFIG_FILES section.
6792 # No need to generate the scripts if there are no CONFIG_FILES.
6793 # This happens for instance when ./config.status config.h
6794 if test -n "\$CONFIG_FILES"; then
6795 # Protect against being on the right side of a sed subst in config.status.
6796 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6797 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6798 s,@SHELL@,$SHELL,;t t
6799 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6800 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6801 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6802 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6803 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6804 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6805 s,@exec_prefix@,$exec_prefix,;t t
6806 s,@prefix@,$prefix,;t t
6807 s,@program_transform_name@,$program_transform_name,;t t
6808 s,@bindir@,$bindir,;t t
6809 s,@sbindir@,$sbindir,;t t
6810 s,@libexecdir@,$libexecdir,;t t
6811 s,@datadir@,$datadir,;t t
6812 s,@sysconfdir@,$sysconfdir,;t t
6813 s,@sharedstatedir@,$sharedstatedir,;t t
6814 s,@localstatedir@,$localstatedir,;t t
6815 s,@libdir@,$libdir,;t t
6816 s,@includedir@,$includedir,;t t
6817 s,@oldincludedir@,$oldincludedir,;t t
6818 s,@infodir@,$infodir,;t t
6819 s,@mandir@,$mandir,;t t
6820 s,@build_alias@,$build_alias,;t t
6821 s,@host_alias@,$host_alias,;t t
6822 s,@target_alias@,$target_alias,;t t
6823 s,@DEFS@,$DEFS,;t t
6824 s,@ECHO_C@,$ECHO_C,;t t
6825 s,@ECHO_N@,$ECHO_N,;t t
6826 s,@ECHO_T@,$ECHO_T,;t t
6827 s,@LIBS@,$LIBS,;t t
6828 s,@CXX@,$CXX,;t t
6829 s,@CXXFLAGS@,$CXXFLAGS,;t t
6830 s,@LDFLAGS@,$LDFLAGS,;t t
6831 s,@CPPFLAGS@,$CPPFLAGS,;t t
6832 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6833 s,@EXEEXT@,$EXEEXT,;t t
6834 s,@OBJEXT@,$OBJEXT,;t t
6835 s,@CC@,$CC,;t t
6836 s,@CFLAGS@,$CFLAGS,;t t
6837 s,@ac_ct_CC@,$ac_ct_CC,;t t
6838 s,@CPP@,$CPP,;t t
6839 s,@EGREP@,$EGREP,;t t
6840 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6841 s,@LIBDIR@,$LIBDIR,;t t
6842 s,@build@,$build,;t t
6843 s,@build_cpu@,$build_cpu,;t t
6844 s,@build_vendor@,$build_vendor,;t t
6845 s,@build_os@,$build_os,;t t
6846 s,@host@,$host,;t t
6847 s,@host_cpu@,$host_cpu,;t t
6848 s,@host_vendor@,$host_vendor,;t t
6849 s,@host_os@,$host_os,;t t
6850 s,@target@,$target,;t t
6851 s,@target_cpu@,$target_cpu,;t t
6852 s,@target_vendor@,$target_vendor,;t t
6853 s,@target_os@,$target_os,;t t
6854 s,@LDSO@,$LDSO,;t t
6855 s,@H323_GSMAMR_NB_FLOAT@,$H323_GSMAMR_NB_FLOAT,;t t
6856 s,@H323_SYSTEM_GSM@,$H323_SYSTEM_GSM,;t t
6857 s,@SIZE16@,$SIZE16,;t t
6858 s,@SIZE32@,$SIZE32,;t t
6859 s,@H323_SYSTEM_SPEEX@,$H323_SYSTEM_SPEEX,;t t
6860 s,@LIBOBJS@,$LIBOBJS,;t t
6861 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6862 CEOF
6864 _ACEOF
6866 cat >>$CONFIG_STATUS <<\_ACEOF
6867 # Split the substitutions into bite-sized pieces for seds with
6868 # small command number limits, like on Digital OSF/1 and HP-UX.
6869 ac_max_sed_lines=48
6870 ac_sed_frag=1 # Number of current file.
6871 ac_beg=1 # First line for current file.
6872 ac_end=$ac_max_sed_lines # Line after last line for current file.
6873 ac_more_lines=:
6874 ac_sed_cmds=
6875 while $ac_more_lines; do
6876 if test $ac_beg -gt 1; then
6877 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6878 else
6879 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6881 if test ! -s $tmp/subs.frag; then
6882 ac_more_lines=false
6883 else
6884 # The purpose of the label and of the branching condition is to
6885 # speed up the sed processing (if there are no `@' at all, there
6886 # is no need to browse any of the substitutions).
6887 # These are the two extra sed commands mentioned above.
6888 (echo ':t
6889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6890 if test -z "$ac_sed_cmds"; then
6891 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6892 else
6893 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6895 ac_sed_frag=`expr $ac_sed_frag + 1`
6896 ac_beg=$ac_end
6897 ac_end=`expr $ac_end + $ac_max_sed_lines`
6899 done
6900 if test -z "$ac_sed_cmds"; then
6901 ac_sed_cmds=cat
6903 fi # test -n "$CONFIG_FILES"
6905 _ACEOF
6906 cat >>$CONFIG_STATUS <<\_ACEOF
6907 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6909 case $ac_file in
6910 - | *:- | *:-:* ) # input from stdin
6911 cat >$tmp/stdin
6912 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6914 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6916 * ) ac_file_in=$ac_file.in ;;
6917 esac
6919 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6920 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6921 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6922 X"$ac_file" : 'X\(//\)[^/]' \| \
6923 X"$ac_file" : 'X\(//\)$' \| \
6924 X"$ac_file" : 'X\(/\)' \| \
6925 . : '\(.\)' 2>/dev/null ||
6926 echo X"$ac_file" |
6927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6929 /^X\(\/\/\)$/{ s//\1/; q; }
6930 /^X\(\/\).*/{ s//\1/; q; }
6931 s/.*/./; q'`
6932 { if $as_mkdir_p; then
6933 mkdir -p "$ac_dir"
6934 else
6935 as_dir="$ac_dir"
6936 as_dirs=
6937 while test ! -d "$as_dir"; do
6938 as_dirs="$as_dir $as_dirs"
6939 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6941 X"$as_dir" : 'X\(//\)[^/]' \| \
6942 X"$as_dir" : 'X\(//\)$' \| \
6943 X"$as_dir" : 'X\(/\)' \| \
6944 . : '\(.\)' 2>/dev/null ||
6945 echo X"$as_dir" |
6946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6948 /^X\(\/\/\)$/{ s//\1/; q; }
6949 /^X\(\/\).*/{ s//\1/; q; }
6950 s/.*/./; q'`
6951 done
6952 test ! -n "$as_dirs" || mkdir $as_dirs
6953 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6954 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6955 { (exit 1); exit 1; }; }; }
6957 ac_builddir=.
6959 if test "$ac_dir" != .; then
6960 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6961 # A "../" for each directory in $ac_dir_suffix.
6962 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6963 else
6964 ac_dir_suffix= ac_top_builddir=
6967 case $srcdir in
6968 .) # No --srcdir option. We are building in place.
6969 ac_srcdir=.
6970 if test -z "$ac_top_builddir"; then
6971 ac_top_srcdir=.
6972 else
6973 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6974 fi ;;
6975 [\\/]* | ?:[\\/]* ) # Absolute path.
6976 ac_srcdir=$srcdir$ac_dir_suffix;
6977 ac_top_srcdir=$srcdir ;;
6978 *) # Relative path.
6979 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6980 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6981 esac
6983 # Do not use `cd foo && pwd` to compute absolute paths, because
6984 # the directories may not exist.
6985 case `pwd` in
6986 .) ac_abs_builddir="$ac_dir";;
6988 case "$ac_dir" in
6989 .) ac_abs_builddir=`pwd`;;
6990 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6991 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6992 esac;;
6993 esac
6994 case $ac_abs_builddir in
6995 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6997 case ${ac_top_builddir}. in
6998 .) ac_abs_top_builddir=$ac_abs_builddir;;
6999 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7000 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7001 esac;;
7002 esac
7003 case $ac_abs_builddir in
7004 .) ac_abs_srcdir=$ac_srcdir;;
7006 case $ac_srcdir in
7007 .) ac_abs_srcdir=$ac_abs_builddir;;
7008 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7009 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7010 esac;;
7011 esac
7012 case $ac_abs_builddir in
7013 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7015 case $ac_top_srcdir in
7016 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7017 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7018 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7019 esac;;
7020 esac
7024 if test x"$ac_file" != x-; then
7025 { echo "$as_me:$LINENO: creating $ac_file" >&5
7026 echo "$as_me: creating $ac_file" >&6;}
7027 rm -f "$ac_file"
7029 # Let's still pretend it is `configure' which instantiates (i.e., don't
7030 # use $as_me), people would be surprised to read:
7031 # /* config.h. Generated by config.status. */
7032 if test x"$ac_file" = x-; then
7033 configure_input=
7034 else
7035 configure_input="$ac_file. "
7037 configure_input=$configure_input"Generated from `echo $ac_file_in |
7038 sed 's,.*/,,'` by configure."
7040 # First look for the input files in the build tree, otherwise in the
7041 # src tree.
7042 ac_file_inputs=`IFS=:
7043 for f in $ac_file_in; do
7044 case $f in
7045 -) echo $tmp/stdin ;;
7046 [\\/$]*)
7047 # Absolute (can't be DOS-style, as IFS=:)
7048 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7049 echo "$as_me: error: cannot find input file: $f" >&2;}
7050 { (exit 1); exit 1; }; }
7051 echo "$f";;
7052 *) # Relative
7053 if test -f "$f"; then
7054 # Build tree
7055 echo "$f"
7056 elif test -f "$srcdir/$f"; then
7057 # Source tree
7058 echo "$srcdir/$f"
7059 else
7060 # /dev/null tree
7061 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7062 echo "$as_me: error: cannot find input file: $f" >&2;}
7063 { (exit 1); exit 1; }; }
7064 fi;;
7065 esac
7066 done` || { (exit 1); exit 1; }
7067 _ACEOF
7068 cat >>$CONFIG_STATUS <<_ACEOF
7069 sed "$ac_vpsub
7070 $extrasub
7071 _ACEOF
7072 cat >>$CONFIG_STATUS <<\_ACEOF
7074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7075 s,@configure_input@,$configure_input,;t t
7076 s,@srcdir@,$ac_srcdir,;t t
7077 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7078 s,@top_srcdir@,$ac_top_srcdir,;t t
7079 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7080 s,@builddir@,$ac_builddir,;t t
7081 s,@abs_builddir@,$ac_abs_builddir,;t t
7082 s,@top_builddir@,$ac_top_builddir,;t t
7083 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7084 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7085 rm -f $tmp/stdin
7086 if test x"$ac_file" != x-; then
7087 mv $tmp/out $ac_file
7088 else
7089 cat $tmp/out
7090 rm -f $tmp/out
7093 done
7094 _ACEOF
7096 cat >>$CONFIG_STATUS <<\_ACEOF
7098 { (exit 0); exit 0; }
7099 _ACEOF
7100 chmod +x $CONFIG_STATUS
7101 ac_clean_files=$ac_clean_files_save
7104 # configure is writing to config.log, and then calls config.status.
7105 # config.status does its own redirection, appending to config.log.
7106 # Unfortunately, on DOS this fails, as config.log is still kept open
7107 # by configure, so config.status won't be able to write to it; its
7108 # output is simply discarded. So we exec the FD to /dev/null,
7109 # effectively closing config.log, so it can be properly (re)opened and
7110 # appended to by config.status. When coming back to configure, we
7111 # need to make the FD available again.
7112 if test "$no_create" != yes; then
7113 ac_cs_success=:
7114 ac_config_status_args=
7115 test "$silent" = yes &&
7116 ac_config_status_args="$ac_config_status_args --quiet"
7117 exec 5>/dev/null
7118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7119 exec 5>>config.log
7120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7121 # would make configure fail if this is the last instruction.
7122 $ac_cs_success || { (exit 1); exit 1; }