Fixed build with wxWidgets 2.6
[opal/cbnco.git] / configure
blob640de79a5c9ad4066e5ec446b8cd8872013cd7a8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="include/opal/manager.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_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 OPALDIR INSTALLPREFIX LIBDIR PTLIB_CONFIG PWLIBDIR OPAL_SYSTEM_SPEEX CC CFLAGS ac_ct_CC OPAL_SIP OPAL_H323 OPAL_IAX2 CPP EGREP HAS_IXJ STDCCFLAGS ENDLDLIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA 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
841 _ACEOF
844 if test -n "$ac_init_help"; then
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-localspeex use local version of Speex library rather than system version
852 --disable-sip disable SIP protocol support
853 --disable-h323 disable H.323 protocol support
854 --disable-iax disable IAX2 protocol support
856 Some influential environment variables:
857 CXX C++ compiler command
858 CXXFLAGS C++ compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
863 CC C compiler command
864 CFLAGS C compiler flags
865 CPP C preprocessor
867 Use these variables to override the choices made by `configure' or to help
868 it to find libraries and programs with nonstandard names/locations.
870 _ACEOF
873 if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
875 ac_popdir=`pwd`
876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877 test -d $ac_dir || continue
878 ac_builddir=.
880 if test "$ac_dir" != .; then
881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 else
885 ac_dir_suffix= ac_top_builddir=
888 case $srcdir in
889 .) # No --srcdir option. We are building in place.
890 ac_srcdir=.
891 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=.
893 else
894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 fi ;;
896 [\\/]* | ?:[\\/]* ) # Absolute path.
897 ac_srcdir=$srcdir$ac_dir_suffix;
898 ac_top_srcdir=$srcdir ;;
899 *) # Relative path.
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 esac
904 # Do not use `cd foo && pwd` to compute absolute paths, because
905 # the directories may not exist.
906 case `pwd` in
907 .) ac_abs_builddir="$ac_dir";;
909 case "$ac_dir" in
910 .) ac_abs_builddir=`pwd`;;
911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
913 esac;;
914 esac
915 case $ac_abs_builddir in
916 .) ac_abs_top_builddir=${ac_top_builddir}.;;
918 case ${ac_top_builddir}. in
919 .) ac_abs_top_builddir=$ac_abs_builddir;;
920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
922 esac;;
923 esac
924 case $ac_abs_builddir in
925 .) ac_abs_srcdir=$ac_srcdir;;
927 case $ac_srcdir in
928 .) ac_abs_srcdir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_srcdir=$ac_top_srcdir;;
936 case $ac_top_srcdir in
937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
940 esac;;
941 esac
943 cd $ac_dir
944 # Check for guested configure; otherwise get Cygnus style configure.
945 if test -f $ac_srcdir/configure.gnu; then
946 echo
947 $SHELL $ac_srcdir/configure.gnu --help=recursive
948 elif test -f $ac_srcdir/configure; then
949 echo
950 $SHELL $ac_srcdir/configure --help=recursive
951 elif test -f $ac_srcdir/configure.ac ||
952 test -f $ac_srcdir/configure.in; then
953 echo
954 $ac_configure --help
955 else
956 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958 cd $ac_popdir
959 done
962 test -n "$ac_init_help" && exit 0
963 if $ac_init_version; then
964 cat <<\_ACEOF
966 Copyright (C) 2003 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
969 _ACEOF
970 exit 0
972 exec 5>config.log
973 cat >&5 <<_ACEOF
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.59. Invocation command line was
980 $ $0 $@
982 _ACEOF
984 cat <<_ASUNAME
985 ## --------- ##
986 ## Platform. ##
987 ## --------- ##
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006 _ASUNAME
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 for as_dir in $PATH
1011 IFS=$as_save_IFS
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1014 done
1016 } >&5
1018 cat >&5 <<_ACEOF
1021 ## ----------- ##
1022 ## Core tests. ##
1023 ## ----------- ##
1025 _ACEOF
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_configure_args=
1034 ac_configure_args0=
1035 ac_configure_args1=
1036 ac_sep=
1037 ac_must_keep_next=false
1038 for ac_pass in 1 2
1040 for ac_arg
1042 case $ac_arg in
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 continue ;;
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 esac
1050 case $ac_pass in
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1056 else
1057 case $ac_arg in
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 esac
1066 -* ) ac_must_keep_next=true ;;
1067 esac
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1071 ac_sep=" "
1073 esac
1074 done
1075 done
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1087 echo
1089 cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094 echo
1095 # The following way of writing the cache mishandles newlines in values,
1097 (set) 2>&1 |
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
1100 sed -n \
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 esac;
1110 echo
1112 cat <<\_ASBOX
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1116 _ASBOX
1117 echo
1118 for ac_var in $ac_subst_vars
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1122 done | sort
1123 echo
1125 if test -n "$ac_subst_files"; then
1126 cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_files
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1140 if test -s confdefs.h; then
1141 cat <<\_ASBOX
1142 ## ----------- ##
1143 ## confdefs.h. ##
1144 ## ----------- ##
1145 _ASBOX
1146 echo
1147 sed "/^$/d" confdefs.h | sort
1148 echo
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1153 } >&5
1154 rm -f core *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156 exit $exit_status
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 done
1161 ac_signal=0
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1168 # Predefined preprocessor variables.
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 _ACEOF
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 _ACEOF
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 else
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1209 . "$ac_site_file"
1211 done
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1219 case $cache_file in
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1222 esac
1224 else
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1227 >$cache_file
1230 # Check that the precious variables saved in the cache have kept the same
1231 # value.
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1240 set,)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,set)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,);;
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1258 fi;;
1259 esac
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1262 case $ac_new_val in
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1266 esac
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270 esac
1272 done
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1281 ac_ext=c
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306 ac_ext=cc
1307 ac_cpp='$CXXCPP $CPPFLAGS'
1308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1311 if test -n "$ac_tool_prefix"; then
1312 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1316 echo "$as_me:$LINENO: checking for $ac_word" >&5
1317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318 if test "${ac_cv_prog_CXX+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 else
1321 if test -n "$CXX"; then
1322 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1323 else
1324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325 for as_dir in $PATH
1327 IFS=$as_save_IFS
1328 test -z "$as_dir" && as_dir=.
1329 for ac_exec_ext in '' $ac_executable_extensions; do
1330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1331 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1333 break 2
1335 done
1336 done
1340 CXX=$ac_cv_prog_CXX
1341 if test -n "$CXX"; then
1342 echo "$as_me:$LINENO: result: $CXX" >&5
1343 echo "${ECHO_T}$CXX" >&6
1344 else
1345 echo "$as_me:$LINENO: result: no" >&5
1346 echo "${ECHO_T}no" >&6
1349 test -n "$CXX" && break
1350 done
1352 if test -z "$CXX"; then
1353 ac_ct_CXX=$CXX
1354 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy $ac_prog; ac_word=$2
1358 echo "$as_me:$LINENO: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 if test -n "$ac_ct_CXX"; then
1364 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1365 else
1366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 for as_dir in $PATH
1369 IFS=$as_save_IFS
1370 test -z "$as_dir" && as_dir=.
1371 for ac_exec_ext in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373 ac_cv_prog_ac_ct_CXX="$ac_prog"
1374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1375 break 2
1377 done
1378 done
1382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1383 if test -n "$ac_ct_CXX"; then
1384 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1385 echo "${ECHO_T}$ac_ct_CXX" >&6
1386 else
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1391 test -n "$ac_ct_CXX" && break
1392 done
1393 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1395 CXX=$ac_ct_CXX
1399 # Provide some information about the compiler.
1400 echo "$as_me:$LINENO:" \
1401 "checking for C++ compiler version" >&5
1402 ac_compiler=`set X $ac_compile; echo $2`
1403 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1404 (eval $ac_compiler --version </dev/null >&5) 2>&5
1405 ac_status=$?
1406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1407 (exit $ac_status); }
1408 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1409 (eval $ac_compiler -v </dev/null >&5) 2>&5
1410 ac_status=$?
1411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1412 (exit $ac_status); }
1413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1414 (eval $ac_compiler -V </dev/null >&5) 2>&5
1415 ac_status=$?
1416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1417 (exit $ac_status); }
1419 cat >conftest.$ac_ext <<_ACEOF
1420 /* confdefs.h. */
1421 _ACEOF
1422 cat confdefs.h >>conftest.$ac_ext
1423 cat >>conftest.$ac_ext <<_ACEOF
1424 /* end confdefs.h. */
1427 main ()
1431 return 0;
1433 _ACEOF
1434 ac_clean_files_save=$ac_clean_files
1435 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1436 # Try to create an executable without -o first, disregard a.out.
1437 # It will help us diagnose broken compilers, and finding out an intuition
1438 # of exeext.
1439 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1440 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1441 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1442 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1443 (eval $ac_link_default) 2>&5
1444 ac_status=$?
1445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1446 (exit $ac_status); }; then
1447 # Find the output, starting from the most likely. This scheme is
1448 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1449 # resort.
1451 # Be careful to initialize this variable, since it used to be cached.
1452 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1453 ac_cv_exeext=
1454 # b.out is created by i960 compilers.
1455 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1457 test -f "$ac_file" || continue
1458 case $ac_file in
1459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1461 conftest.$ac_ext )
1462 # This is the source file.
1464 [ab].out )
1465 # We found the default executable, but exeext='' is most
1466 # certainly right.
1467 break;;
1468 *.* )
1469 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1470 # FIXME: I believe we export ac_cv_exeext for Libtool,
1471 # but it would be cool to find out if it's true. Does anybody
1472 # maintain Libtool? --akim.
1473 export ac_cv_exeext
1474 break;;
1476 break;;
1477 esac
1478 done
1479 else
1480 echo "$as_me: failed program was:" >&5
1481 sed 's/^/| /' conftest.$ac_ext >&5
1483 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1484 See \`config.log' for more details." >&5
1485 echo "$as_me: error: C++ compiler cannot create executables
1486 See \`config.log' for more details." >&2;}
1487 { (exit 77); exit 77; }; }
1490 ac_exeext=$ac_cv_exeext
1491 echo "$as_me:$LINENO: result: $ac_file" >&5
1492 echo "${ECHO_T}$ac_file" >&6
1494 # Check the compiler produces executables we can run. If not, either
1495 # the compiler is broken, or we cross compile.
1496 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1497 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1498 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1499 # If not cross compiling, check that we can run a simple program.
1500 if test "$cross_compiling" != yes; then
1501 if { ac_try='./$ac_file'
1502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1503 (eval $ac_try) 2>&5
1504 ac_status=$?
1505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1506 (exit $ac_status); }; }; then
1507 cross_compiling=no
1508 else
1509 if test "$cross_compiling" = maybe; then
1510 cross_compiling=yes
1511 else
1512 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1513 If you meant to cross compile, use \`--host'.
1514 See \`config.log' for more details." >&5
1515 echo "$as_me: error: cannot run C++ compiled programs.
1516 If you meant to cross compile, use \`--host'.
1517 See \`config.log' for more details." >&2;}
1518 { (exit 1); exit 1; }; }
1522 echo "$as_me:$LINENO: result: yes" >&5
1523 echo "${ECHO_T}yes" >&6
1525 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1526 ac_clean_files=$ac_clean_files_save
1527 # Check the compiler produces executables we can run. If not, either
1528 # the compiler is broken, or we cross compile.
1529 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1530 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1531 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1532 echo "${ECHO_T}$cross_compiling" >&6
1534 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1535 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1537 (eval $ac_link) 2>&5
1538 ac_status=$?
1539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1540 (exit $ac_status); }; then
1541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1542 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1543 # work properly (i.e., refer to `conftest.exe'), while it won't with
1544 # `rm'.
1545 for ac_file in conftest.exe conftest conftest.*; do
1546 test -f "$ac_file" || continue
1547 case $ac_file in
1548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1549 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1550 export ac_cv_exeext
1551 break;;
1552 * ) break;;
1553 esac
1554 done
1555 else
1556 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1557 See \`config.log' for more details." >&5
1558 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1559 See \`config.log' for more details." >&2;}
1560 { (exit 1); exit 1; }; }
1563 rm -f conftest$ac_cv_exeext
1564 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1565 echo "${ECHO_T}$ac_cv_exeext" >&6
1567 rm -f conftest.$ac_ext
1568 EXEEXT=$ac_cv_exeext
1569 ac_exeext=$EXEEXT
1570 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1571 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1572 if test "${ac_cv_objext+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 cat >conftest.$ac_ext <<_ACEOF
1576 /* confdefs.h. */
1577 _ACEOF
1578 cat confdefs.h >>conftest.$ac_ext
1579 cat >>conftest.$ac_ext <<_ACEOF
1580 /* end confdefs.h. */
1583 main ()
1587 return 0;
1589 _ACEOF
1590 rm -f conftest.o conftest.obj
1591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1592 (eval $ac_compile) 2>&5
1593 ac_status=$?
1594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1595 (exit $ac_status); }; then
1596 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1597 case $ac_file in
1598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1600 break;;
1601 esac
1602 done
1603 else
1604 echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1607 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1608 See \`config.log' for more details." >&5
1609 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1610 See \`config.log' for more details." >&2;}
1611 { (exit 1); exit 1; }; }
1614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1616 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1617 echo "${ECHO_T}$ac_cv_objext" >&6
1618 OBJEXT=$ac_cv_objext
1619 ac_objext=$OBJEXT
1620 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1621 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1622 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625 cat >conftest.$ac_ext <<_ACEOF
1626 /* confdefs.h. */
1627 _ACEOF
1628 cat confdefs.h >>conftest.$ac_ext
1629 cat >>conftest.$ac_ext <<_ACEOF
1630 /* end confdefs.h. */
1633 main ()
1635 #ifndef __GNUC__
1636 choke me
1637 #endif
1640 return 0;
1642 _ACEOF
1643 rm -f conftest.$ac_objext
1644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1645 (eval $ac_compile) 2>conftest.er1
1646 ac_status=$?
1647 grep -v '^ *+' conftest.er1 >conftest.err
1648 rm -f conftest.er1
1649 cat conftest.err >&5
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); } &&
1652 { ac_try='test -z "$ac_cxx_werror_flag"
1653 || test ! -s conftest.err'
1654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1655 (eval $ac_try) 2>&5
1656 ac_status=$?
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }; } &&
1659 { ac_try='test -s conftest.$ac_objext'
1660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1661 (eval $ac_try) 2>&5
1662 ac_status=$?
1663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1664 (exit $ac_status); }; }; then
1665 ac_compiler_gnu=yes
1666 else
1667 echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1670 ac_compiler_gnu=no
1672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1673 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1676 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1677 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1678 GXX=`test $ac_compiler_gnu = yes && echo yes`
1679 ac_test_CXXFLAGS=${CXXFLAGS+set}
1680 ac_save_CXXFLAGS=$CXXFLAGS
1681 CXXFLAGS="-g"
1682 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1683 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1684 if test "${ac_cv_prog_cxx_g+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687 cat >conftest.$ac_ext <<_ACEOF
1688 /* confdefs.h. */
1689 _ACEOF
1690 cat confdefs.h >>conftest.$ac_ext
1691 cat >>conftest.$ac_ext <<_ACEOF
1692 /* end confdefs.h. */
1695 main ()
1699 return 0;
1701 _ACEOF
1702 rm -f conftest.$ac_objext
1703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1704 (eval $ac_compile) 2>conftest.er1
1705 ac_status=$?
1706 grep -v '^ *+' conftest.er1 >conftest.err
1707 rm -f conftest.er1
1708 cat conftest.err >&5
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); } &&
1711 { ac_try='test -z "$ac_cxx_werror_flag"
1712 || test ! -s conftest.err'
1713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1714 (eval $ac_try) 2>&5
1715 ac_status=$?
1716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717 (exit $ac_status); }; } &&
1718 { ac_try='test -s conftest.$ac_objext'
1719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1720 (eval $ac_try) 2>&5
1721 ac_status=$?
1722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723 (exit $ac_status); }; }; then
1724 ac_cv_prog_cxx_g=yes
1725 else
1726 echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1729 ac_cv_prog_cxx_g=no
1731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1733 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1734 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1735 if test "$ac_test_CXXFLAGS" = set; then
1736 CXXFLAGS=$ac_save_CXXFLAGS
1737 elif test $ac_cv_prog_cxx_g = yes; then
1738 if test "$GXX" = yes; then
1739 CXXFLAGS="-g -O2"
1740 else
1741 CXXFLAGS="-g"
1743 else
1744 if test "$GXX" = yes; then
1745 CXXFLAGS="-O2"
1746 else
1747 CXXFLAGS=
1750 for ac_declaration in \
1751 '' \
1752 'extern "C" void std::exit (int) throw (); using std::exit;' \
1753 'extern "C" void std::exit (int); using std::exit;' \
1754 'extern "C" void exit (int) throw ();' \
1755 'extern "C" void exit (int);' \
1756 'void exit (int);'
1758 cat >conftest.$ac_ext <<_ACEOF
1759 /* confdefs.h. */
1760 _ACEOF
1761 cat confdefs.h >>conftest.$ac_ext
1762 cat >>conftest.$ac_ext <<_ACEOF
1763 /* end confdefs.h. */
1764 $ac_declaration
1765 #include <stdlib.h>
1767 main ()
1769 exit (42);
1771 return 0;
1773 _ACEOF
1774 rm -f conftest.$ac_objext
1775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1776 (eval $ac_compile) 2>conftest.er1
1777 ac_status=$?
1778 grep -v '^ *+' conftest.er1 >conftest.err
1779 rm -f conftest.er1
1780 cat conftest.err >&5
1781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782 (exit $ac_status); } &&
1783 { ac_try='test -z "$ac_cxx_werror_flag"
1784 || test ! -s conftest.err'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1786 (eval $ac_try) 2>&5
1787 ac_status=$?
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; } &&
1790 { ac_try='test -s conftest.$ac_objext'
1791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1792 (eval $ac_try) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; }; then
1797 else
1798 echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 continue
1803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1804 cat >conftest.$ac_ext <<_ACEOF
1805 /* confdefs.h. */
1806 _ACEOF
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h. */
1810 $ac_declaration
1812 main ()
1814 exit (42);
1816 return 0;
1818 _ACEOF
1819 rm -f conftest.$ac_objext
1820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1821 (eval $ac_compile) 2>conftest.er1
1822 ac_status=$?
1823 grep -v '^ *+' conftest.er1 >conftest.err
1824 rm -f conftest.er1
1825 cat conftest.err >&5
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); } &&
1828 { ac_try='test -z "$ac_cxx_werror_flag"
1829 || test ! -s conftest.err'
1830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1831 (eval $ac_try) 2>&5
1832 ac_status=$?
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; } &&
1835 { ac_try='test -s conftest.$ac_objext'
1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 (eval $ac_try) 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1841 break
1842 else
1843 echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1848 done
1849 rm -f conftest*
1850 if test -n "$ac_declaration"; then
1851 echo '#ifdef __cplusplus' >>confdefs.h
1852 echo $ac_declaration >>confdefs.h
1853 echo '#endif' >>confdefs.h
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1864 OPALDIR=`pwd`
1867 if test "x$prefix" = "xNONE"; then
1868 INSTALLPREFIX="/usr/local"
1869 else
1870 INSTALLPREFIX="${prefix}"
1875 LIBDIR="${libdir}"
1879 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1880 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1881 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1882 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1883 cat >>confdefs.h <<_ACEOF
1884 #define OPAL_MAJOR ${MAJOR_VERSION}
1885 _ACEOF
1887 cat >>confdefs.h <<_ACEOF
1888 #define OPAL_MINOR ${MINOR_VERSION}
1889 _ACEOF
1891 cat >>confdefs.h <<_ACEOF
1892 #define OPAL_BUILD ${BUILD_NUMBER}
1893 _ACEOF
1895 cat >>confdefs.h <<_ACEOF
1896 #define OPAL_VERSION "$OPAL_VERSION"
1897 _ACEOF
1902 if test "${PWLIBDIR:-unset}" != "unset" ; then
1903 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
1904 echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
1905 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
1906 if eval "test \"\${$as_ac_File+set}\" = set"; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 test "$cross_compiling" = yes &&
1910 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
1911 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
1912 { (exit 1); exit 1; }; }
1913 if test -r "${PWLIBDIR}/version.h"; then
1914 eval "$as_ac_File=yes"
1915 else
1916 eval "$as_ac_File=no"
1919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
1920 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
1921 if test `eval echo '${'$as_ac_File'}'` = yes; then
1922 HAS_PTLIB=1
1926 if test "${HAS_PTLIB:-unset}" = "unset" ; then
1927 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
1928 echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
1929 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6
1930 if eval "test \"\${$as_ac_File+set}\" = set"; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 test "$cross_compiling" = yes &&
1934 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
1935 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
1936 { (exit 1); exit 1; }; }
1937 if test -r "${OPALDIR}/../pwlib/version.h"; then
1938 eval "$as_ac_File=yes"
1939 else
1940 eval "$as_ac_File=no"
1943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
1944 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
1945 if test `eval echo '${'$as_ac_File'}'` = yes; then
1946 HAS_PTLIB=1
1949 if test "${HAS_PTLIB:-unset}" != "unset" ; then
1950 PWLIBDIR="${OPALDIR}/../pwlib"
1951 else
1952 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
1953 echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
1954 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
1955 if eval "test \"\${$as_ac_File+set}\" = set"; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958 test "$cross_compiling" = yes &&
1959 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
1960 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
1961 { (exit 1); exit 1; }; }
1962 if test -r "${HOME}/pwlib/include/ptlib.h"; then
1963 eval "$as_ac_File=yes"
1964 else
1965 eval "$as_ac_File=no"
1968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
1969 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
1970 if test `eval echo '${'$as_ac_File'}'` = yes; then
1971 HAS_PTLIB=1
1974 if test "${HAS_PTLIB:-unset}" != "unset" ; then
1975 PWLIBDIR="${HOME}/pwlib"
1976 else
1977 echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
1978 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
1979 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 test "$cross_compiling" = yes &&
1983 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
1984 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
1985 { (exit 1); exit 1; }; }
1986 if test -r "/usr/local/include/ptlib.h"; then
1987 ac_cv_file__usr_local_include_ptlib_h=yes
1988 else
1989 ac_cv_file__usr_local_include_ptlib_h=no
1992 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
1993 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
1994 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
1995 HAS_PTLIB=1
1998 if test "${HAS_PTLIB:-unset}" != "unset" ; then
1999 # Extract the first word of "ptlib-config", so it can be a program name with args.
2000 set dummy ptlib-config; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006 case $PTLIB_CONFIG in
2007 [\\/]* | ?:[\\/]*)
2008 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in /usr/local/bin
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 break 2
2022 done
2023 done
2026 esac
2028 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2030 if test -n "$PTLIB_CONFIG"; then
2031 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2032 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2033 else
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2038 else
2039 echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
2040 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
2041 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044 test "$cross_compiling" = yes &&
2045 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2046 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2047 { (exit 1); exit 1; }; }
2048 if test -r "/usr/include/ptlib.h"; then
2049 ac_cv_file__usr_include_ptlib_h=yes
2050 else
2051 ac_cv_file__usr_include_ptlib_h=no
2054 echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
2055 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
2056 if test $ac_cv_file__usr_include_ptlib_h = yes; then
2057 HAS_PTLIB=1
2060 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2061 # Extract the first word of "ptlib-config", so it can be a program name with args.
2062 set dummy ptlib-config; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 case $PTLIB_CONFIG in
2069 [\\/]* | ?:[\\/]*)
2070 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in /usr/share/pwlib/make/
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2084 done
2085 done
2088 esac
2090 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2092 if test -n "$PTLIB_CONFIG"; then
2093 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2094 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2095 else
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2106 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2107 echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
2108 exit
2111 if test "${PWLIBDIR:-unset}" = "unset" ; then
2112 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
2113 echo "Cannot find ptlib-config - please install and try again"
2114 exit
2116 PWLIBDIR=`$PTLIB_CONFIG --prefix`
2119 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
2120 PWLIBDIR="/usr/share/pwlib/"
2122 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
2123 PWLIBDIR="/usr/local/share/pwlib/"
2126 echo "PWLib prefix set to.... $PWLIBDIR"
2135 localspeex="xxx"
2136 # Check whether --enable-localspeex or --disable-localspeex was given.
2137 if test "${enable_localspeex+set}" = set; then
2138 enableval="$enable_localspeex"
2139 localspeex=$enableval
2142 if test "${localspeex}" = "yes" ; then
2143 { echo "$as_me:$LINENO: Forcing use of local Speex sources" >&5
2144 echo "$as_me: Forcing use of local Speex sources" >&6;}
2145 elif test "${localspeex}" = "no" ; then
2146 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
2147 echo "$as_me: Forcing use of system Speex library" >&6;}
2148 cat >>confdefs.h <<\_ACEOF
2149 #define OPAL_SYSTEM_SPEEX 1
2150 _ACEOF
2152 OPAL_SYSTEM_SPEEX=1
2154 else
2155 ac_ext=c
2156 ac_cpp='$CPP $CPPFLAGS'
2157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2160 if test -n "$ac_tool_prefix"; then
2161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2163 echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_CC+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 if test -n "$CC"; then
2169 ac_cv_prog_CC="$CC" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2182 done
2183 done
2187 CC=$ac_cv_prog_CC
2188 if test -n "$CC"; then
2189 echo "$as_me:$LINENO: result: $CC" >&5
2190 echo "${ECHO_T}$CC" >&6
2191 else
2192 echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2197 if test -z "$ac_cv_prog_CC"; then
2198 ac_ct_CC=$CC
2199 # Extract the first word of "gcc", so it can be a program name with args.
2200 set dummy gcc; ac_word=$2
2201 echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 if test -n "$ac_ct_CC"; then
2207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 ac_cv_prog_ac_ct_CC="gcc"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 break 2
2220 done
2221 done
2225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2226 if test -n "$ac_ct_CC"; then
2227 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2228 echo "${ECHO_T}$ac_ct_CC" >&6
2229 else
2230 echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6
2234 CC=$ac_ct_CC
2235 else
2236 CC="$ac_cv_prog_CC"
2239 if test -z "$CC"; then
2240 if test -n "$ac_tool_prefix"; then
2241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2242 set dummy ${ac_tool_prefix}cc; ac_word=$2
2243 echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245 if test "${ac_cv_prog_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248 if test -n "$CC"; then
2249 ac_cv_prog_CC="$CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 ac_cv_prog_CC="${ac_tool_prefix}cc"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2262 done
2263 done
2267 CC=$ac_cv_prog_CC
2268 if test -n "$CC"; then
2269 echo "$as_me:$LINENO: result: $CC" >&5
2270 echo "${ECHO_T}$CC" >&6
2271 else
2272 echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2277 if test -z "$ac_cv_prog_CC"; then
2278 ac_ct_CC=$CC
2279 # Extract the first word of "cc", so it can be a program name with args.
2280 set dummy cc; ac_word=$2
2281 echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 if test -n "$ac_ct_CC"; then
2287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2296 ac_cv_prog_ac_ct_CC="cc"
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2300 done
2301 done
2305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2306 if test -n "$ac_ct_CC"; then
2307 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2308 echo "${ECHO_T}$ac_ct_CC" >&6
2309 else
2310 echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2314 CC=$ac_ct_CC
2315 else
2316 CC="$ac_cv_prog_CC"
2320 if test -z "$CC"; then
2321 # Extract the first word of "cc", so it can be a program name with args.
2322 set dummy cc; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC="$CC" # Let the user override the test.
2330 else
2331 ac_prog_rejected=no
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2339 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2340 ac_prog_rejected=yes
2341 continue
2343 ac_cv_prog_CC="cc"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 break 2
2347 done
2348 done
2350 if test $ac_prog_rejected = yes; then
2351 # We found a bogon in the path, so make sure we never use it.
2352 set dummy $ac_cv_prog_CC
2353 shift
2354 if test $# != 0; then
2355 # We chose a different compiler from the bogus one.
2356 # However, it has the same basename, so the bogon will be chosen
2357 # first if we set CC to just the basename; use the full file name.
2358 shift
2359 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366 echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6
2368 else
2369 echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2374 if test -z "$CC"; then
2375 if test -n "$ac_tool_prefix"; then
2376 for ac_prog in cl
2378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2399 done
2400 done
2404 CC=$ac_cv_prog_CC
2405 if test -n "$CC"; then
2406 echo "$as_me:$LINENO: result: $CC" >&5
2407 echo "${ECHO_T}$CC" >&6
2408 else
2409 echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6
2413 test -n "$CC" && break
2414 done
2416 if test -z "$CC"; then
2417 ac_ct_CC=$CC
2418 for ac_prog in cl
2420 # Extract the first word of "$ac_prog", so it can be a program name with args.
2421 set dummy $ac_prog; ac_word=$2
2422 echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 if test -n "$ac_ct_CC"; then
2428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2437 ac_cv_prog_ac_ct_CC="$ac_prog"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2441 done
2442 done
2446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2447 if test -n "$ac_ct_CC"; then
2448 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2449 echo "${ECHO_T}$ac_ct_CC" >&6
2450 else
2451 echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6
2455 test -n "$ac_ct_CC" && break
2456 done
2458 CC=$ac_ct_CC
2464 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: no acceptable C compiler found in \$PATH
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2470 # Provide some information about the compiler.
2471 echo "$as_me:$LINENO:" \
2472 "checking for C compiler version" >&5
2473 ac_compiler=`set X $ac_compile; echo $2`
2474 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2475 (eval $ac_compiler --version </dev/null >&5) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }
2479 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2480 (eval $ac_compiler -v </dev/null >&5) 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2485 (eval $ac_compiler -V </dev/null >&5) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }
2490 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2491 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2492 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495 cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h. */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2503 main ()
2505 #ifndef __GNUC__
2506 choke me
2507 #endif
2510 return 0;
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_c_werror_flag"
2523 || test ! -s conftest.err'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525 (eval $ac_try) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 ac_compiler_gnu=yes
2536 else
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2540 ac_compiler_gnu=no
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2546 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2547 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2548 GCC=`test $ac_compiler_gnu = yes && echo yes`
2549 ac_test_CFLAGS=${CFLAGS+set}
2550 ac_save_CFLAGS=$CFLAGS
2551 CFLAGS="-g"
2552 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2553 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2554 if test "${ac_cv_prog_cc_g+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2565 main ()
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 ac_cv_prog_cc_g=yes
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 ac_cv_prog_cc_g=no
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2605 if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2609 CFLAGS="-g -O2"
2610 else
2611 CFLAGS="-g"
2613 else
2614 if test "$GCC" = yes; then
2615 CFLAGS="-O2"
2616 else
2617 CFLAGS=
2620 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2621 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625 ac_cv_prog_cc_stdc=no
2626 ac_save_CC=$CC
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h. */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2633 #include <stdarg.h>
2634 #include <stdio.h>
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2641 char **p;
2642 int i;
2644 return p[i];
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2648 char *s;
2649 va_list v;
2650 va_start (v,p);
2651 s = g (p, va_arg (v,int));
2652 va_end (v);
2653 return s;
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
2659 as 'x'. The following induces an error, until -std1 is added to get
2660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
2662 that's true only with -std1. */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2665 int test (int i, double x);
2666 struct s1 {int (*f) (int a);};
2667 struct s2 {int (*f) (double a);};
2668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2669 int argc;
2670 char **argv;
2672 main ()
2674 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2676 return 0;
2678 _ACEOF
2679 # Don't try gcc -ansi; that turns off useful extensions and
2680 # breaks some systems' header files.
2681 # AIX -qlanglvl=ansi
2682 # Ultrix and OSF/1 -std1
2683 # HP-UX 10.20 and later -Ae
2684 # HP-UX older versions -Aa -D_HPUX_SOURCE
2685 # SVR4 -Xc -D__EXTENSIONS__
2686 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2688 CC="$ac_save_CC $ac_arg"
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag"
2699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 ac_cv_prog_cc_stdc=$ac_arg
2712 break
2713 else
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f conftest.err conftest.$ac_objext
2719 done
2720 rm -f conftest.$ac_ext conftest.$ac_objext
2721 CC=$ac_save_CC
2725 case "x$ac_cv_prog_cc_stdc" in
2726 x|xno)
2727 echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6 ;;
2730 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2732 CC="$CC $ac_cv_prog_cc_stdc" ;;
2733 esac
2735 # Some people use a C++ compiler to compile C. Since we use `exit',
2736 # in C++ we need to declare it. In case someone uses the same compiler
2737 # for both compiling C and C++ we need to have the C++ compiler decide
2738 # the declaration of exit, since it's the most demanding environment.
2739 cat >conftest.$ac_ext <<_ACEOF
2740 #ifndef __cplusplus
2741 choke me
2742 #endif
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2747 ac_status=$?
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 for ac_declaration in \
2767 '' \
2768 'extern "C" void std::exit (int) throw (); using std::exit;' \
2769 'extern "C" void std::exit (int); using std::exit;' \
2770 'extern "C" void exit (int) throw ();' \
2771 'extern "C" void exit (int);' \
2772 'void exit (int);'
2774 cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h. */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2780 $ac_declaration
2781 #include <stdlib.h>
2783 main ()
2785 exit (42);
2787 return 0;
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 { ac_try='test -z "$ac_c_werror_flag"
2800 || test ! -s conftest.err'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2813 else
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2817 continue
2819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2826 $ac_declaration
2828 main ()
2830 exit (42);
2832 return 0;
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 break
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864 done
2865 rm -f conftest*
2866 if test -n "$ac_declaration"; then
2867 echo '#ifdef __cplusplus' >>confdefs.h
2868 echo $ac_declaration >>confdefs.h
2869 echo '#endif' >>confdefs.h
2872 else
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
2886 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
2887 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 ac_check_lib_save_LIBS=$LIBS
2891 LIBS="-lspeex $LIBS"
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2899 /* Override any gcc2 internal prototype to avoid an error. */
2900 #ifdef __cplusplus
2901 extern "C"
2902 #endif
2903 /* We use char because int might match the return type of a gcc2
2904 builtin and then its argument prototype would still apply. */
2905 char speex_encoder_destroy ();
2907 main ()
2909 speex_encoder_destroy ();
2911 return 0;
2913 _ACEOF
2914 rm -f conftest.$ac_objext conftest$ac_exeext
2915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2916 (eval $ac_link) 2>conftest.er1
2917 ac_status=$?
2918 grep -v '^ *+' conftest.er1 >conftest.err
2919 rm -f conftest.er1
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } &&
2923 { ac_try='test -z "$ac_c_werror_flag"
2924 || test ! -s conftest.err'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 (eval $ac_try) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; } &&
2930 { ac_try='test -s conftest$ac_exeext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 ac_cv_lib_speex_speex_encoder_destroy=yes
2937 else
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2941 ac_cv_lib_speex_speex_encoder_destroy=no
2943 rm -f conftest.err conftest.$ac_objext \
2944 conftest$ac_exeext conftest.$ac_ext
2945 LIBS=$ac_check_lib_save_LIBS
2947 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
2948 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
2949 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
2950 SPEEX=1
2953 if test "x$SPEEX" = "x"; then
2954 { echo "$as_me:$LINENO: Forcing use of local Speex library" >&5
2955 echo "$as_me: Forcing use of local Speex library" >&6;}
2956 else
2957 echo "$as_me:$LINENO: checking system Speex version" >&5
2958 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
2959 cat > t.c <<C_FILE
2960 #include <speex.h>
2961 #include <speex_header.h>
2962 #include <stdio.h>
2963 int main(int argc,char *argv)
2965 SpeexHeader header;
2966 speex_init_header(&header, 1, 1, &speex_nb_mode);
2967 printf("%s\n", header.speex_version);
2969 C_FILE
2970 cc -o t t.c -lspeex > /dev/null 2>&1
2971 if test \! -x t ; then
2972 echo "$as_me:$LINENO: result: cannot determine - using library version" >&5
2973 echo "${ECHO_T}cannot determine - using library version" >&6
2974 else
2975 SYSVER=`./t`
2976 rm -f t t.c
2977 echo "$as_me:$LINENO: result: $SYSVER" >&5
2978 echo "${ECHO_T}$SYSVER" >&6
2979 echo "$as_me:$LINENO: checking library Speex version" >&5
2980 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6
2981 LIBVER=`grep "#define VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//'`
2982 echo "$as_me:$LINENO: result: $LIBVER" >&5
2983 echo "${ECHO_T}$LIBVER" >&6
2984 echo "$as_me:$LINENO: checking Speex versions" >&5
2985 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
2986 cat > t.pl <<P_FILE
2988 \$sysver = @ARGV[0];
2989 \$libver = @ARGV[1];
2990 @lib = split /\./, \$libver;
2991 while (@lib < 3) {
2992 @lib[0+@lib] = "0";
2994 @sys = split /\./, \$sysver;
2995 while (@sys < 3) {
2996 @sys[0+@sys] = "0";
2998 \$i = 0;
2999 while (\$i < 3) {
3000 print "comparing " . @sys[\$i] . " and " . @lib[\$i] . "\n";
3001 if (\@sys[\$i] < @lib[\$i]) {
3002 print "0";
3003 die;
3005 \$i++;
3007 print "1";
3009 P_FILE
3010 SPEEX=`perl t.pl $SYSVER $LIBVER`
3011 rm t.pl
3012 if test "x$SPEEX" = "x" ; then
3013 echo "$as_me:$LINENO: result: library version is more recent" >&5
3014 echo "${ECHO_T}library version is more recent" >&6
3015 else
3016 echo "$as_me:$LINENO: result: system version is more recent" >&5
3017 echo "${ECHO_T}system version is more recent" >&6
3018 cat >>confdefs.h <<\_ACEOF
3019 #define OPAL_SYSTEM_SPEEX 1
3020 _ACEOF
3022 OPAL_SYSTEM_SPEEX=1
3032 sip=yes
3033 # Check whether --enable-sip or --disable-sip was given.
3034 if test "${enable_sip+set}" = set; then
3035 enableval="$enable_sip"
3036 sip=$enableval
3038 echo "$as_me:$LINENO: checking SIP protocol" >&5
3039 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6
3040 if test "$sip" = "yes" ; then
3041 OPAL_SIP=1
3043 cat >>confdefs.h <<\_ACEOF
3044 #define OPAL_SIP 1
3045 _ACEOF
3047 echo "$as_me:$LINENO: result: enabled" >&5
3048 echo "${ECHO_T}enabled" >&6
3049 else
3050 OPAL_SIP=0
3052 echo "$as_me:$LINENO: result: disabled" >&5
3053 echo "${ECHO_T}disabled" >&6
3057 h323=yes
3058 # Check whether --enable-h323 or --disable-h323 was given.
3059 if test "${enable_h323+set}" = set; then
3060 enableval="$enable_h323"
3061 h323=$enableval
3063 echo "$as_me:$LINENO: checking H.323 protocol" >&5
3064 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6
3065 if test "$h323" = "yes" ; then
3066 OPAL_H323=1
3068 cat >>confdefs.h <<\_ACEOF
3069 #define OPAL_H323 1
3070 _ACEOF
3072 echo "$as_me:$LINENO: result: enabled" >&5
3073 echo "${ECHO_T}enabled" >&6
3074 else
3075 OPAL_H323=0
3077 echo "$as_me:$LINENO: result: disabled" >&5
3078 echo "${ECHO_T}disabled" >&6
3080 OPAL_H323=$OPAL_H323
3084 iax=yes
3085 # Check whether --enable-iax or --disable-iax was given.
3086 if test "${enable_iax+set}" = set; then
3087 enableval="$enable_iax"
3088 iax=$enableval
3090 echo "$as_me:$LINENO: checking IAX2 protocol" >&5
3091 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6
3092 if test "$iax" = "yes" ; then
3093 OPAL_IAX2=1
3095 cat >>confdefs.h <<\_ACEOF
3096 #define OPAL_IAX2 1
3097 _ACEOF
3099 echo "$as_me:$LINENO: result: enabled" >&5
3100 echo "${ECHO_T}enabled" >&6
3101 else
3102 OPAL_IAX2=0
3104 echo "$as_me:$LINENO: result: disabled" >&5
3105 echo "${ECHO_T}disabled" >&6
3109 HAS_IXJ=
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3116 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3117 # On Suns, sometimes $CPP names a directory.
3118 if test -n "$CPP" && test -d "$CPP"; then
3119 CPP=
3121 if test -z "$CPP"; then
3122 if test "${ac_cv_prog_CPP+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 # Double quotes because CPP needs to be expanded
3126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3128 ac_preproc_ok=false
3129 for ac_c_preproc_warn_flag in '' yes
3131 # Use a header file that comes with gcc, so configuring glibc
3132 # with a fresh cross-compiler works.
3133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134 # <limits.h> exists even on freestanding compilers.
3135 # On the NeXT, cc -E runs the code through the compiler's parser,
3136 # not just through cpp. "Syntax error" is here to catch this case.
3137 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h. */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 #ifdef __STDC__
3144 # include <limits.h>
3145 #else
3146 # include <assert.h>
3147 #endif
3148 Syntax error
3149 _ACEOF
3150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3152 ac_status=$?
3153 grep -v '^ *+' conftest.er1 >conftest.err
3154 rm -f conftest.er1
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } >/dev/null; then
3158 if test -s conftest.err; then
3159 ac_cpp_err=$ac_c_preproc_warn_flag
3160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3161 else
3162 ac_cpp_err=
3164 else
3165 ac_cpp_err=yes
3167 if test -z "$ac_cpp_err"; then
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3173 # Broken: fails on valid input.
3174 continue
3176 rm -f conftest.err conftest.$ac_ext
3178 # OK, works on sane cases. Now check whether non-existent headers
3179 # can be detected and how.
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #include <ac_nonexistent.h>
3187 _ACEOF
3188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev/null; then
3196 if test -s conftest.err; then
3197 ac_cpp_err=$ac_c_preproc_warn_flag
3198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3199 else
3200 ac_cpp_err=
3202 else
3203 ac_cpp_err=yes
3205 if test -z "$ac_cpp_err"; then
3206 # Broken: success on invalid input.
3207 continue
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 # Passes both tests.
3213 ac_preproc_ok=:
3214 break
3216 rm -f conftest.err conftest.$ac_ext
3218 done
3219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3220 rm -f conftest.err conftest.$ac_ext
3221 if $ac_preproc_ok; then
3222 break
3225 done
3226 ac_cv_prog_CPP=$CPP
3229 CPP=$ac_cv_prog_CPP
3230 else
3231 ac_cv_prog_CPP=$CPP
3233 echo "$as_me:$LINENO: result: $CPP" >&5
3234 echo "${ECHO_T}$CPP" >&6
3235 ac_preproc_ok=false
3236 for ac_c_preproc_warn_flag in '' yes
3238 # Use a header file that comes with gcc, so configuring glibc
3239 # with a fresh cross-compiler works.
3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241 # <limits.h> exists even on freestanding compilers.
3242 # On the NeXT, cc -E runs the code through the compiler's parser,
3243 # not just through cpp. "Syntax error" is here to catch this case.
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3250 #ifdef __STDC__
3251 # include <limits.h>
3252 #else
3253 # include <assert.h>
3254 #endif
3255 Syntax error
3256 _ACEOF
3257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } >/dev/null; then
3265 if test -s conftest.err; then
3266 ac_cpp_err=$ac_c_preproc_warn_flag
3267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 else
3269 ac_cpp_err=
3271 else
3272 ac_cpp_err=yes
3274 if test -z "$ac_cpp_err"; then
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 # Broken: fails on valid input.
3281 continue
3283 rm -f conftest.err conftest.$ac_ext
3285 # OK, works on sane cases. Now check whether non-existent headers
3286 # can be detected and how.
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 #include <ac_nonexistent.h>
3294 _ACEOF
3295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306 else
3307 ac_cpp_err=
3309 else
3310 ac_cpp_err=yes
3312 if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3314 continue
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Passes both tests.
3320 ac_preproc_ok=:
3321 break
3323 rm -f conftest.err conftest.$ac_ext
3325 done
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3330 else
3331 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3332 See \`config.log' for more details." >&5
3333 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3334 See \`config.log' for more details." >&2;}
3335 { (exit 1); exit 1; }; }
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 echo "$as_me:$LINENO: checking for egrep" >&5
3346 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3347 if test "${ac_cv_prog_egrep+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3351 then ac_cv_prog_egrep='grep -E'
3352 else ac_cv_prog_egrep='egrep'
3355 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3356 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3357 EGREP=$ac_cv_prog_egrep
3360 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3362 if test "${ac_cv_header_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h. */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3371 #include <stdlib.h>
3372 #include <stdarg.h>
3373 #include <string.h>
3374 #include <float.h>
3377 main ()
3381 return 0;
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_cv_header_stdc=yes
3407 else
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 ac_cv_header_stdc=no
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3415 if test $ac_cv_header_stdc = yes; then
3416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3417 cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include <string.h>
3425 _ACEOF
3426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3427 $EGREP "memchr" >/dev/null 2>&1; then
3429 else
3430 ac_cv_header_stdc=no
3432 rm -f conftest*
3436 if test $ac_cv_header_stdc = yes; then
3437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444 #include <stdlib.h>
3446 _ACEOF
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448 $EGREP "free" >/dev/null 2>&1; then
3450 else
3451 ac_cv_header_stdc=no
3453 rm -f conftest*
3457 if test $ac_cv_header_stdc = yes; then
3458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3459 if test "$cross_compiling" = yes; then
3461 else
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #include <ctype.h>
3469 #if ((' ' & 0x0FF) == 0x020)
3470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3472 #else
3473 # define ISLOWER(c) \
3474 (('a' <= (c) && (c) <= 'i') \
3475 || ('j' <= (c) && (c) <= 'r') \
3476 || ('s' <= (c) && (c) <= 'z'))
3477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3478 #endif
3480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3482 main ()
3484 int i;
3485 for (i = 0; i < 256; i++)
3486 if (XOR (islower (i), ISLOWER (i))
3487 || toupper (i) != TOUPPER (i))
3488 exit(2);
3489 exit (0);
3491 _ACEOF
3492 rm -f conftest$ac_exeext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3494 (eval $ac_link) 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 (eval $ac_try) 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3504 else
3505 echo "$as_me: program exited with status $ac_status" >&5
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 ( exit $ac_status )
3510 ac_cv_header_stdc=no
3512 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3516 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3517 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3518 if test $ac_cv_header_stdc = yes; then
3520 cat >>confdefs.h <<\_ACEOF
3521 #define STDC_HEADERS 1
3522 _ACEOF
3526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3537 inttypes.h stdint.h unistd.h
3539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3540 echo "$as_me:$LINENO: checking for $ac_header" >&5
3541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 $ac_includes_default
3553 #include <$ac_header>
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 { ac_try='test -z "$ac_c_werror_flag"
3565 || test ! -s conftest.err'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; } &&
3571 { ac_try='test -s conftest.$ac_objext'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; }; then
3577 eval "$as_ac_Header=yes"
3578 else
3579 echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 eval "$as_ac_Header=no"
3584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3589 cat >>confdefs.h <<_ACEOF
3590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3591 _ACEOF
3595 done
3601 for ac_header in linux/telephony.h sys/telephony.h /usr/local/include/sys/telephony.h
3603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3605 echo "$as_me:$LINENO: checking for $ac_header" >&5
3606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3612 else
3613 # Is the header compilable?
3614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3616 cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 $ac_includes_default
3623 #include <$ac_header>
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_c_werror_flag"
3635 || test ! -s conftest.err'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 (eval $ac_try) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3647 ac_header_compiler=yes
3648 else
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3652 ac_header_compiler=no
3654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3656 echo "${ECHO_T}$ac_header_compiler" >&6
3658 # Is the header present?
3659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #include <$ac_header>
3668 _ACEOF
3669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } >/dev/null; then
3677 if test -s conftest.err; then
3678 ac_cpp_err=$ac_c_preproc_warn_flag
3679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3680 else
3681 ac_cpp_err=
3683 else
3684 ac_cpp_err=yes
3686 if test -z "$ac_cpp_err"; then
3687 ac_header_preproc=yes
3688 else
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 ac_header_preproc=no
3694 rm -f conftest.err conftest.$ac_ext
3695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3696 echo "${ECHO_T}$ac_header_preproc" >&6
3698 # So? What about this header?
3699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3700 yes:no: )
3701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3705 ac_header_preproc=yes
3707 no:yes:* )
3708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3721 cat <<\_ASBOX
3722 ## ------------------------------------------ ##
3723 ## Report this to the AC_PACKAGE_NAME lists. ##
3724 ## ------------------------------------------ ##
3725 _ASBOX
3727 sed "s/^/$as_me: WARNING: /" >&2
3729 esac
3730 echo "$as_me:$LINENO: checking for $ac_header" >&5
3731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 eval "$as_ac_Header=\$ac_header_preproc"
3737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3742 cat >>confdefs.h <<_ACEOF
3743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3744 _ACEOF
3745 HAS_IXJ=1
3748 done
3750 if test "x$HAS_IXJ" != "x" ; then
3751 cat >>confdefs.h <<\_ACEOF
3752 #define HAS_IXJ 1
3753 _ACEOF
3755 HAS_IXJ=1
3768 ac_aux_dir=
3769 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3770 if test -f $ac_dir/install-sh; then
3771 ac_aux_dir=$ac_dir
3772 ac_install_sh="$ac_aux_dir/install-sh -c"
3773 break
3774 elif test -f $ac_dir/install.sh; then
3775 ac_aux_dir=$ac_dir
3776 ac_install_sh="$ac_aux_dir/install.sh -c"
3777 break
3778 elif test -f $ac_dir/shtool; then
3779 ac_aux_dir=$ac_dir
3780 ac_install_sh="$ac_aux_dir/shtool install -c"
3781 break
3783 done
3784 if test -z "$ac_aux_dir"; then
3785 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3786 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3787 { (exit 1); exit 1; }; }
3789 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3790 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3791 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3793 # Find a good install program. We prefer a C program (faster),
3794 # so one script is as good as another. But avoid the broken or
3795 # incompatible versions:
3796 # SysV /etc/install, /usr/sbin/install
3797 # SunOS /usr/etc/install
3798 # IRIX /sbin/install
3799 # AIX /bin/install
3800 # AmigaOS /C/install, which installs bootblocks on floppy discs
3801 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3802 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3803 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3804 # OS/2's system install, which has a completely different semantic
3805 # ./install, which can be erroneously created by make from ./install.sh.
3806 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3807 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3808 if test -z "$INSTALL"; then
3809 if test "${ac_cv_path_install+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 # Account for people who put trailing slashes in PATH elements.
3818 case $as_dir/ in
3819 ./ | .// | /cC/* | \
3820 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3821 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3822 /usr/ucb/* ) ;;
3824 # OSF1 and SCO ODT 3.0 have their own names for install.
3825 # Don't use installbsd from OSF since it installs stuff as root
3826 # by default.
3827 for ac_prog in ginstall scoinst install; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3830 if test $ac_prog = install &&
3831 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3832 # AIX install. It has an incompatible calling convention.
3834 elif test $ac_prog = install &&
3835 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3836 # program-specific install script used by HP pwplus--don't use.
3838 else
3839 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3840 break 3
3843 done
3844 done
3846 esac
3847 done
3851 if test "${ac_cv_path_install+set}" = set; then
3852 INSTALL=$ac_cv_path_install
3853 else
3854 # As a last resort, use the slow shell script. We don't cache a
3855 # path for INSTALL within a source directory, because that will
3856 # break other packages using the cache if that directory is
3857 # removed, or if the path is relative.
3858 INSTALL=$ac_install_sh
3861 echo "$as_me:$LINENO: result: $INSTALL" >&5
3862 echo "${ECHO_T}$INSTALL" >&6
3864 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3865 # It thinks the first close brace ends the variable substitution.
3866 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3868 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3870 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3874 ac_config_files="$ac_config_files opal_inc.mak"
3876 ac_config_files="$ac_config_files Makefile"
3878 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
3881 cat >confcache <<\_ACEOF
3882 # This file is a shell script that caches the results of configure
3883 # tests run on this system so they can be shared between configure
3884 # scripts and configure runs, see configure's option --config-cache.
3885 # It is not useful on other systems. If it contains results you don't
3886 # want to keep, you may remove or edit it.
3888 # config.status only pays attention to the cache file if you give it
3889 # the --recheck option to rerun configure.
3891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3893 # following values.
3895 _ACEOF
3897 # The following way of writing the cache mishandles newlines in values,
3898 # but we know of no workaround that is simple, portable, and efficient.
3899 # So, don't put newlines in cache variables' values.
3900 # Ultrix sh set writes to stderr and can't be redirected directly,
3901 # and sets the high bit in the cache file unless we assign to the vars.
3903 (set) 2>&1 |
3904 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3905 *ac_space=\ *)
3906 # `set' does not quote correctly, so add quotes (double-quote
3907 # substitution turns \\\\ into \\, and sed turns \\ into \).
3908 sed -n \
3909 "s/'/'\\\\''/g;
3910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3913 # `set' quotes correctly as required by POSIX, so do not add quotes.
3914 sed -n \
3915 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3917 esac;
3919 sed '
3920 t clear
3921 : clear
3922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3923 t end
3924 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3925 : end' >>confcache
3926 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3927 if test -w $cache_file; then
3928 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3929 cat confcache >$cache_file
3930 else
3931 echo "not updating unwritable cache $cache_file"
3934 rm -f confcache
3936 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3937 # Let make expand exec_prefix.
3938 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3940 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3941 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3942 # trailing colons and then remove the whole line if VPATH becomes empty
3943 # (actually we leave an empty line to preserve line numbers).
3944 if test "x$srcdir" = x.; then
3945 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3946 s/:*\$(srcdir):*/:/;
3947 s/:*\${srcdir}:*/:/;
3948 s/:*@srcdir@:*/:/;
3949 s/^\([^=]*=[ ]*\):*/\1/;
3950 s/:*$//;
3951 s/^[^=]*=[ ]*$//;
3955 DEFS=-DHAVE_CONFIG_H
3957 ac_libobjs=
3958 ac_ltlibobjs=
3959 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3960 # 1. Remove the extension, and $U if already installed.
3961 ac_i=`echo "$ac_i" |
3962 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3963 # 2. Add them.
3964 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3965 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3966 done
3967 LIBOBJS=$ac_libobjs
3969 LTLIBOBJS=$ac_ltlibobjs
3973 : ${CONFIG_STATUS=./config.status}
3974 ac_clean_files_save=$ac_clean_files
3975 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3976 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3977 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3978 cat >$CONFIG_STATUS <<_ACEOF
3979 #! $SHELL
3980 # Generated by $as_me.
3981 # Run this file to recreate the current configuration.
3982 # Compiler output produced by configure, useful for debugging
3983 # configure, is in config.log if it exists.
3985 debug=false
3986 ac_cs_recheck=false
3987 ac_cs_silent=false
3988 SHELL=\${CONFIG_SHELL-$SHELL}
3989 _ACEOF
3991 cat >>$CONFIG_STATUS <<\_ACEOF
3992 ## --------------------- ##
3993 ## M4sh Initialization. ##
3994 ## --------------------- ##
3996 # Be Bourne compatible
3997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3998 emulate sh
3999 NULLCMD=:
4000 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4001 # is contrary to our usage. Disable this feature.
4002 alias -g '${1+"$@"}'='"$@"'
4003 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4004 set -o posix
4006 DUALCASE=1; export DUALCASE # for MKS sh
4008 # Support unset when possible.
4009 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4010 as_unset=unset
4011 else
4012 as_unset=false
4016 # Work around bugs in pre-3.0 UWIN ksh.
4017 $as_unset ENV MAIL MAILPATH
4018 PS1='$ '
4019 PS2='> '
4020 PS4='+ '
4022 # NLS nuisances.
4023 for as_var in \
4024 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4025 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4026 LC_TELEPHONE LC_TIME
4028 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4029 eval $as_var=C; export $as_var
4030 else
4031 $as_unset $as_var
4033 done
4035 # Required to use basename.
4036 if expr a : '\(a\)' >/dev/null 2>&1; then
4037 as_expr=expr
4038 else
4039 as_expr=false
4042 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4043 as_basename=basename
4044 else
4045 as_basename=false
4049 # Name of the executable.
4050 as_me=`$as_basename "$0" ||
4051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4052 X"$0" : 'X\(//\)$' \| \
4053 X"$0" : 'X\(/\)$' \| \
4054 . : '\(.\)' 2>/dev/null ||
4055 echo X/"$0" |
4056 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4057 /^X\/\(\/\/\)$/{ s//\1/; q; }
4058 /^X\/\(\/\).*/{ s//\1/; q; }
4059 s/.*/./; q'`
4062 # PATH needs CR, and LINENO needs CR and PATH.
4063 # Avoid depending upon Character Ranges.
4064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4067 as_cr_digits='0123456789'
4068 as_cr_alnum=$as_cr_Letters$as_cr_digits
4070 # The user is always right.
4071 if test "${PATH_SEPARATOR+set}" != set; then
4072 echo "#! /bin/sh" >conf$$.sh
4073 echo "exit 0" >>conf$$.sh
4074 chmod +x conf$$.sh
4075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4076 PATH_SEPARATOR=';'
4077 else
4078 PATH_SEPARATOR=:
4080 rm -f conf$$.sh
4084 as_lineno_1=$LINENO
4085 as_lineno_2=$LINENO
4086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4087 test "x$as_lineno_1" != "x$as_lineno_2" &&
4088 test "x$as_lineno_3" = "x$as_lineno_2" || {
4089 # Find who we are. Look in the path if we contain no path at all
4090 # relative or not.
4091 case $0 in
4092 *[\\/]* ) as_myself=$0 ;;
4093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4099 done
4102 esac
4103 # We did not find ourselves, most probably we were run as `sh COMMAND'
4104 # in which case we are not to be found in the path.
4105 if test "x$as_myself" = x; then
4106 as_myself=$0
4108 if test ! -f "$as_myself"; then
4109 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4110 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4111 { (exit 1); exit 1; }; }
4113 case $CONFIG_SHELL in
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for as_base in sh bash ksh sh5; do
4121 case $as_dir in
4123 if ("$as_dir/$as_base" -c '
4124 as_lineno_1=$LINENO
4125 as_lineno_2=$LINENO
4126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4127 test "x$as_lineno_1" != "x$as_lineno_2" &&
4128 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4129 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4130 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4131 CONFIG_SHELL=$as_dir/$as_base
4132 export CONFIG_SHELL
4133 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4134 fi;;
4135 esac
4136 done
4137 done
4139 esac
4141 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4142 # uniformly replaced by the line number. The first 'sed' inserts a
4143 # line-number line before each line; the second 'sed' does the real
4144 # work. The second script uses 'N' to pair each line-number line
4145 # with the numbered line, and appends trailing '-' during
4146 # substitution so that $LINENO is not a special case at line end.
4147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4148 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4149 sed '=' <$as_myself |
4150 sed '
4152 s,$,-,
4153 : loop
4154 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4155 t loop
4156 s,-$,,
4157 s,^['$as_cr_digits']*\n,,
4158 ' >$as_me.lineno &&
4159 chmod +x $as_me.lineno ||
4160 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4161 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4162 { (exit 1); exit 1; }; }
4164 # Don't try to exec as it changes $[0], causing all sort of problems
4165 # (the dirname of $[0] is not the place where we might find the
4166 # original and so on. Autoconf is especially sensible to this).
4167 . ./$as_me.lineno
4168 # Exit status is that of the last command.
4169 exit
4173 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4174 *c*,-n*) ECHO_N= ECHO_C='
4175 ' ECHO_T=' ' ;;
4176 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4177 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4178 esac
4180 if expr a : '\(a\)' >/dev/null 2>&1; then
4181 as_expr=expr
4182 else
4183 as_expr=false
4186 rm -f conf$$ conf$$.exe conf$$.file
4187 echo >conf$$.file
4188 if ln -s conf$$.file conf$$ 2>/dev/null; then
4189 # We could just check for DJGPP; but this test a) works b) is more generic
4190 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4191 if test -f conf$$.exe; then
4192 # Don't use ln at all; we don't have any links
4193 as_ln_s='cp -p'
4194 else
4195 as_ln_s='ln -s'
4197 elif ln conf$$.file conf$$ 2>/dev/null; then
4198 as_ln_s=ln
4199 else
4200 as_ln_s='cp -p'
4202 rm -f conf$$ conf$$.exe conf$$.file
4204 if mkdir -p . 2>/dev/null; then
4205 as_mkdir_p=:
4206 else
4207 test -d ./-p && rmdir ./-p
4208 as_mkdir_p=false
4211 as_executable_p="test -f"
4213 # Sed expression to map a string onto a valid CPP name.
4214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4216 # Sed expression to map a string onto a valid variable name.
4217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4220 # IFS
4221 # We need space, tab and new line, in precisely that order.
4222 as_nl='
4224 IFS=" $as_nl"
4226 # CDPATH.
4227 $as_unset CDPATH
4229 exec 6>&1
4231 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4232 # report actual input values of CONFIG_FILES etc. instead of their
4233 # values after options handling. Logging --version etc. is OK.
4234 exec 5>>config.log
4236 echo
4237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4238 ## Running $as_me. ##
4239 _ASBOX
4240 } >&5
4241 cat >&5 <<_CSEOF
4243 This file was extended by $as_me, which was
4244 generated by GNU Autoconf 2.59. Invocation command line was
4246 CONFIG_FILES = $CONFIG_FILES
4247 CONFIG_HEADERS = $CONFIG_HEADERS
4248 CONFIG_LINKS = $CONFIG_LINKS
4249 CONFIG_COMMANDS = $CONFIG_COMMANDS
4250 $ $0 $@
4252 _CSEOF
4253 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4254 echo >&5
4255 _ACEOF
4257 # Files that config.status was made for.
4258 if test -n "$ac_config_files"; then
4259 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4262 if test -n "$ac_config_headers"; then
4263 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4266 if test -n "$ac_config_links"; then
4267 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4270 if test -n "$ac_config_commands"; then
4271 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4274 cat >>$CONFIG_STATUS <<\_ACEOF
4276 ac_cs_usage="\
4277 \`$as_me' instantiates files from templates according to the
4278 current configuration.
4280 Usage: $0 [OPTIONS] [FILE]...
4282 -h, --help print this help, then exit
4283 -V, --version print version number, then exit
4284 -q, --quiet do not print progress messages
4285 -d, --debug don't remove temporary files
4286 --recheck update $as_me by reconfiguring in the same conditions
4287 --file=FILE[:TEMPLATE]
4288 instantiate the configuration file FILE
4289 --header=FILE[:TEMPLATE]
4290 instantiate the configuration header FILE
4292 Configuration files:
4293 $config_files
4295 Configuration headers:
4296 $config_headers
4298 Report bugs to <bug-autoconf@gnu.org>."
4299 _ACEOF
4301 cat >>$CONFIG_STATUS <<_ACEOF
4302 ac_cs_version="\\
4303 config.status
4304 configured by $0, generated by GNU Autoconf 2.59,
4305 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4307 Copyright (C) 2003 Free Software Foundation, Inc.
4308 This config.status script is free software; the Free Software Foundation
4309 gives unlimited permission to copy, distribute and modify it."
4310 srcdir=$srcdir
4311 INSTALL="$INSTALL"
4312 _ACEOF
4314 cat >>$CONFIG_STATUS <<\_ACEOF
4315 # If no file are specified by the user, then we need to provide default
4316 # value. By we need to know if files were specified by the user.
4317 ac_need_defaults=:
4318 while test $# != 0
4320 case $1 in
4321 --*=*)
4322 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4323 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4324 ac_shift=:
4327 ac_option=$1
4328 ac_optarg=$2
4329 ac_shift=shift
4331 *) # This is not an option, so the user has probably given explicit
4332 # arguments.
4333 ac_option=$1
4334 ac_need_defaults=false;;
4335 esac
4337 case $ac_option in
4338 # Handling of the options.
4339 _ACEOF
4340 cat >>$CONFIG_STATUS <<\_ACEOF
4341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4342 ac_cs_recheck=: ;;
4343 --version | --vers* | -V )
4344 echo "$ac_cs_version"; exit 0 ;;
4345 --he | --h)
4346 # Conflict between --help and --header
4347 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4348 Try \`$0 --help' for more information." >&5
4349 echo "$as_me: error: ambiguous option: $1
4350 Try \`$0 --help' for more information." >&2;}
4351 { (exit 1); exit 1; }; };;
4352 --help | --hel | -h )
4353 echo "$ac_cs_usage"; exit 0 ;;
4354 --debug | --d* | -d )
4355 debug=: ;;
4356 --file | --fil | --fi | --f )
4357 $ac_shift
4358 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4359 ac_need_defaults=false;;
4360 --header | --heade | --head | --hea )
4361 $ac_shift
4362 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4363 ac_need_defaults=false;;
4364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4365 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4366 ac_cs_silent=: ;;
4368 # This is an error.
4369 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4370 Try \`$0 --help' for more information." >&5
4371 echo "$as_me: error: unrecognized option: $1
4372 Try \`$0 --help' for more information." >&2;}
4373 { (exit 1); exit 1; }; } ;;
4375 *) ac_config_targets="$ac_config_targets $1" ;;
4377 esac
4378 shift
4379 done
4381 ac_configure_extra_args=
4383 if $ac_cs_silent; then
4384 exec 6>/dev/null
4385 ac_configure_extra_args="$ac_configure_extra_args --silent"
4388 _ACEOF
4389 cat >>$CONFIG_STATUS <<_ACEOF
4390 if \$ac_cs_recheck; then
4391 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4392 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4395 _ACEOF
4401 cat >>$CONFIG_STATUS <<\_ACEOF
4402 for ac_config_target in $ac_config_targets
4404 case "$ac_config_target" in
4405 # Handling of arguments.
4406 "opal_inc.mak" ) CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
4407 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4408 "include/opal/buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
4409 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4410 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4411 { (exit 1); exit 1; }; };;
4412 esac
4413 done
4415 # If the user did not use the arguments to specify the items to instantiate,
4416 # then the envvar interface is used. Set only those that are not.
4417 # We use the long form for the default assignment because of an extremely
4418 # bizarre bug on SunOS 4.1.3.
4419 if $ac_need_defaults; then
4420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4424 # Have a temporary directory for convenience. Make it in the build tree
4425 # simply because there is no reason to put it here, and in addition,
4426 # creating and moving files from /tmp can sometimes cause problems.
4427 # Create a temporary directory, and hook for its removal unless debugging.
4428 $debug ||
4430 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4431 trap '{ (exit 1); exit 1; }' 1 2 13 15
4434 # Create a (secure) tmp directory for tmp files.
4437 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4438 test -n "$tmp" && test -d "$tmp"
4439 } ||
4441 tmp=./confstat$$-$RANDOM
4442 (umask 077 && mkdir $tmp)
4443 } ||
4445 echo "$me: cannot create a temporary directory in ." >&2
4446 { (exit 1); exit 1; }
4449 _ACEOF
4451 cat >>$CONFIG_STATUS <<_ACEOF
4454 # CONFIG_FILES section.
4457 # No need to generate the scripts if there are no CONFIG_FILES.
4458 # This happens for instance when ./config.status config.h
4459 if test -n "\$CONFIG_FILES"; then
4460 # Protect against being on the right side of a sed subst in config.status.
4461 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4462 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4463 s,@SHELL@,$SHELL,;t t
4464 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4465 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4466 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4467 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4468 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4469 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4470 s,@exec_prefix@,$exec_prefix,;t t
4471 s,@prefix@,$prefix,;t t
4472 s,@program_transform_name@,$program_transform_name,;t t
4473 s,@bindir@,$bindir,;t t
4474 s,@sbindir@,$sbindir,;t t
4475 s,@libexecdir@,$libexecdir,;t t
4476 s,@datadir@,$datadir,;t t
4477 s,@sysconfdir@,$sysconfdir,;t t
4478 s,@sharedstatedir@,$sharedstatedir,;t t
4479 s,@localstatedir@,$localstatedir,;t t
4480 s,@libdir@,$libdir,;t t
4481 s,@includedir@,$includedir,;t t
4482 s,@oldincludedir@,$oldincludedir,;t t
4483 s,@infodir@,$infodir,;t t
4484 s,@mandir@,$mandir,;t t
4485 s,@build_alias@,$build_alias,;t t
4486 s,@host_alias@,$host_alias,;t t
4487 s,@target_alias@,$target_alias,;t t
4488 s,@DEFS@,$DEFS,;t t
4489 s,@ECHO_C@,$ECHO_C,;t t
4490 s,@ECHO_N@,$ECHO_N,;t t
4491 s,@ECHO_T@,$ECHO_T,;t t
4492 s,@LIBS@,$LIBS,;t t
4493 s,@CXX@,$CXX,;t t
4494 s,@CXXFLAGS@,$CXXFLAGS,;t t
4495 s,@LDFLAGS@,$LDFLAGS,;t t
4496 s,@CPPFLAGS@,$CPPFLAGS,;t t
4497 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4498 s,@EXEEXT@,$EXEEXT,;t t
4499 s,@OBJEXT@,$OBJEXT,;t t
4500 s,@OPALDIR@,$OPALDIR,;t t
4501 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
4502 s,@LIBDIR@,$LIBDIR,;t t
4503 s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
4504 s,@PWLIBDIR@,$PWLIBDIR,;t t
4505 s,@OPAL_SYSTEM_SPEEX@,$OPAL_SYSTEM_SPEEX,;t t
4506 s,@CC@,$CC,;t t
4507 s,@CFLAGS@,$CFLAGS,;t t
4508 s,@ac_ct_CC@,$ac_ct_CC,;t t
4509 s,@OPAL_SIP@,$OPAL_SIP,;t t
4510 s,@OPAL_H323@,$OPAL_H323,;t t
4511 s,@OPAL_IAX2@,$OPAL_IAX2,;t t
4512 s,@CPP@,$CPP,;t t
4513 s,@EGREP@,$EGREP,;t t
4514 s,@HAS_IXJ@,$HAS_IXJ,;t t
4515 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
4516 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
4517 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4518 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4519 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4520 s,@LIBOBJS@,$LIBOBJS,;t t
4521 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4522 CEOF
4524 _ACEOF
4526 cat >>$CONFIG_STATUS <<\_ACEOF
4527 # Split the substitutions into bite-sized pieces for seds with
4528 # small command number limits, like on Digital OSF/1 and HP-UX.
4529 ac_max_sed_lines=48
4530 ac_sed_frag=1 # Number of current file.
4531 ac_beg=1 # First line for current file.
4532 ac_end=$ac_max_sed_lines # Line after last line for current file.
4533 ac_more_lines=:
4534 ac_sed_cmds=
4535 while $ac_more_lines; do
4536 if test $ac_beg -gt 1; then
4537 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4538 else
4539 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4541 if test ! -s $tmp/subs.frag; then
4542 ac_more_lines=false
4543 else
4544 # The purpose of the label and of the branching condition is to
4545 # speed up the sed processing (if there are no `@' at all, there
4546 # is no need to browse any of the substitutions).
4547 # These are the two extra sed commands mentioned above.
4548 (echo ':t
4549 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4550 if test -z "$ac_sed_cmds"; then
4551 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4552 else
4553 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4555 ac_sed_frag=`expr $ac_sed_frag + 1`
4556 ac_beg=$ac_end
4557 ac_end=`expr $ac_end + $ac_max_sed_lines`
4559 done
4560 if test -z "$ac_sed_cmds"; then
4561 ac_sed_cmds=cat
4563 fi # test -n "$CONFIG_FILES"
4565 _ACEOF
4566 cat >>$CONFIG_STATUS <<\_ACEOF
4567 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4568 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4569 case $ac_file in
4570 - | *:- | *:-:* ) # input from stdin
4571 cat >$tmp/stdin
4572 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4573 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4574 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4575 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4576 * ) ac_file_in=$ac_file.in ;;
4577 esac
4579 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4580 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4582 X"$ac_file" : 'X\(//\)[^/]' \| \
4583 X"$ac_file" : 'X\(//\)$' \| \
4584 X"$ac_file" : 'X\(/\)' \| \
4585 . : '\(.\)' 2>/dev/null ||
4586 echo X"$ac_file" |
4587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4589 /^X\(\/\/\)$/{ s//\1/; q; }
4590 /^X\(\/\).*/{ s//\1/; q; }
4591 s/.*/./; q'`
4592 { if $as_mkdir_p; then
4593 mkdir -p "$ac_dir"
4594 else
4595 as_dir="$ac_dir"
4596 as_dirs=
4597 while test ! -d "$as_dir"; do
4598 as_dirs="$as_dir $as_dirs"
4599 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4601 X"$as_dir" : 'X\(//\)[^/]' \| \
4602 X"$as_dir" : 'X\(//\)$' \| \
4603 X"$as_dir" : 'X\(/\)' \| \
4604 . : '\(.\)' 2>/dev/null ||
4605 echo X"$as_dir" |
4606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4608 /^X\(\/\/\)$/{ s//\1/; q; }
4609 /^X\(\/\).*/{ s//\1/; q; }
4610 s/.*/./; q'`
4611 done
4612 test ! -n "$as_dirs" || mkdir $as_dirs
4613 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4614 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4615 { (exit 1); exit 1; }; }; }
4617 ac_builddir=.
4619 if test "$ac_dir" != .; then
4620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4621 # A "../" for each directory in $ac_dir_suffix.
4622 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4623 else
4624 ac_dir_suffix= ac_top_builddir=
4627 case $srcdir in
4628 .) # No --srcdir option. We are building in place.
4629 ac_srcdir=.
4630 if test -z "$ac_top_builddir"; then
4631 ac_top_srcdir=.
4632 else
4633 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4634 fi ;;
4635 [\\/]* | ?:[\\/]* ) # Absolute path.
4636 ac_srcdir=$srcdir$ac_dir_suffix;
4637 ac_top_srcdir=$srcdir ;;
4638 *) # Relative path.
4639 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4640 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4641 esac
4643 # Do not use `cd foo && pwd` to compute absolute paths, because
4644 # the directories may not exist.
4645 case `pwd` in
4646 .) ac_abs_builddir="$ac_dir";;
4648 case "$ac_dir" in
4649 .) ac_abs_builddir=`pwd`;;
4650 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4651 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4652 esac;;
4653 esac
4654 case $ac_abs_builddir in
4655 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4657 case ${ac_top_builddir}. in
4658 .) ac_abs_top_builddir=$ac_abs_builddir;;
4659 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4660 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4661 esac;;
4662 esac
4663 case $ac_abs_builddir in
4664 .) ac_abs_srcdir=$ac_srcdir;;
4666 case $ac_srcdir in
4667 .) ac_abs_srcdir=$ac_abs_builddir;;
4668 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4669 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4670 esac;;
4671 esac
4672 case $ac_abs_builddir in
4673 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4675 case $ac_top_srcdir in
4676 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4677 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4678 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4679 esac;;
4680 esac
4683 case $INSTALL in
4684 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4685 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4686 esac
4688 if test x"$ac_file" != x-; then
4689 { echo "$as_me:$LINENO: creating $ac_file" >&5
4690 echo "$as_me: creating $ac_file" >&6;}
4691 rm -f "$ac_file"
4693 # Let's still pretend it is `configure' which instantiates (i.e., don't
4694 # use $as_me), people would be surprised to read:
4695 # /* config.h. Generated by config.status. */
4696 if test x"$ac_file" = x-; then
4697 configure_input=
4698 else
4699 configure_input="$ac_file. "
4701 configure_input=$configure_input"Generated from `echo $ac_file_in |
4702 sed 's,.*/,,'` by configure."
4704 # First look for the input files in the build tree, otherwise in the
4705 # src tree.
4706 ac_file_inputs=`IFS=:
4707 for f in $ac_file_in; do
4708 case $f in
4709 -) echo $tmp/stdin ;;
4710 [\\/$]*)
4711 # Absolute (can't be DOS-style, as IFS=:)
4712 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4713 echo "$as_me: error: cannot find input file: $f" >&2;}
4714 { (exit 1); exit 1; }; }
4715 echo "$f";;
4716 *) # Relative
4717 if test -f "$f"; then
4718 # Build tree
4719 echo "$f"
4720 elif test -f "$srcdir/$f"; then
4721 # Source tree
4722 echo "$srcdir/$f"
4723 else
4724 # /dev/null tree
4725 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4726 echo "$as_me: error: cannot find input file: $f" >&2;}
4727 { (exit 1); exit 1; }; }
4728 fi;;
4729 esac
4730 done` || { (exit 1); exit 1; }
4731 _ACEOF
4732 cat >>$CONFIG_STATUS <<_ACEOF
4733 sed "$ac_vpsub
4734 $extrasub
4735 _ACEOF
4736 cat >>$CONFIG_STATUS <<\_ACEOF
4738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4739 s,@configure_input@,$configure_input,;t t
4740 s,@srcdir@,$ac_srcdir,;t t
4741 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4742 s,@top_srcdir@,$ac_top_srcdir,;t t
4743 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4744 s,@builddir@,$ac_builddir,;t t
4745 s,@abs_builddir@,$ac_abs_builddir,;t t
4746 s,@top_builddir@,$ac_top_builddir,;t t
4747 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4748 s,@INSTALL@,$ac_INSTALL,;t t
4749 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4750 rm -f $tmp/stdin
4751 if test x"$ac_file" != x-; then
4752 mv $tmp/out $ac_file
4753 else
4754 cat $tmp/out
4755 rm -f $tmp/out
4758 done
4759 _ACEOF
4760 cat >>$CONFIG_STATUS <<\_ACEOF
4763 # CONFIG_HEADER section.
4766 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4767 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4769 # ac_d sets the value in "#define NAME VALUE" lines.
4770 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4771 ac_dB='[ ].*$,\1#\2'
4772 ac_dC=' '
4773 ac_dD=',;t'
4774 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4775 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4776 ac_uB='$,\1#\2define\3'
4777 ac_uC=' '
4778 ac_uD=',;t'
4780 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4781 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4782 case $ac_file in
4783 - | *:- | *:-:* ) # input from stdin
4784 cat >$tmp/stdin
4785 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4786 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4787 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4788 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4789 * ) ac_file_in=$ac_file.in ;;
4790 esac
4792 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4793 echo "$as_me: creating $ac_file" >&6;}
4795 # First look for the input files in the build tree, otherwise in the
4796 # src tree.
4797 ac_file_inputs=`IFS=:
4798 for f in $ac_file_in; do
4799 case $f in
4800 -) echo $tmp/stdin ;;
4801 [\\/$]*)
4802 # Absolute (can't be DOS-style, as IFS=:)
4803 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4804 echo "$as_me: error: cannot find input file: $f" >&2;}
4805 { (exit 1); exit 1; }; }
4806 # Do quote $f, to prevent DOS paths from being IFS'd.
4807 echo "$f";;
4808 *) # Relative
4809 if test -f "$f"; then
4810 # Build tree
4811 echo "$f"
4812 elif test -f "$srcdir/$f"; then
4813 # Source tree
4814 echo "$srcdir/$f"
4815 else
4816 # /dev/null tree
4817 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4818 echo "$as_me: error: cannot find input file: $f" >&2;}
4819 { (exit 1); exit 1; }; }
4820 fi;;
4821 esac
4822 done` || { (exit 1); exit 1; }
4823 # Remove the trailing spaces.
4824 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4826 _ACEOF
4828 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4829 # `conftest.undefs', that substitutes the proper values into
4830 # config.h.in to produce config.h. The first handles `#define'
4831 # templates, and the second `#undef' templates.
4832 # And first: Protect against being on the right side of a sed subst in
4833 # config.status. Protect against being in an unquoted here document
4834 # in config.status.
4835 rm -f conftest.defines conftest.undefs
4836 # Using a here document instead of a string reduces the quoting nightmare.
4837 # Putting comments in sed scripts is not portable.
4839 # `end' is used to avoid that the second main sed command (meant for
4840 # 0-ary CPP macros) applies to n-ary macro definitions.
4841 # See the Autoconf documentation for `clear'.
4842 cat >confdef2sed.sed <<\_ACEOF
4843 s/[\\&,]/\\&/g
4844 s,[\\$`],\\&,g
4845 t clear
4846 : clear
4847 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4848 t end
4849 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4850 : end
4851 _ACEOF
4852 # If some macros were called several times there might be several times
4853 # the same #defines, which is useless. Nevertheless, we may not want to
4854 # sort them, since we want the *last* AC-DEFINE to be honored.
4855 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4856 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4857 rm -f confdef2sed.sed
4859 # This sed command replaces #undef with comments. This is necessary, for
4860 # example, in the case of _POSIX_SOURCE, which is predefined and required
4861 # on some systems where configure will not decide to define it.
4862 cat >>conftest.undefs <<\_ACEOF
4863 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4864 _ACEOF
4866 # Break up conftest.defines because some shells have a limit on the size
4867 # of here documents, and old seds have small limits too (100 cmds).
4868 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4869 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4870 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4871 echo ' :' >>$CONFIG_STATUS
4872 rm -f conftest.tail
4873 while grep . conftest.defines >/dev/null
4875 # Write a limited-size here document to $tmp/defines.sed.
4876 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4877 # Speed up: don't consider the non `#define' lines.
4878 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4879 # Work around the forget-to-reset-the-flag bug.
4880 echo 't clr' >>$CONFIG_STATUS
4881 echo ': clr' >>$CONFIG_STATUS
4882 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4883 echo 'CEOF
4884 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4885 rm -f $tmp/in
4886 mv $tmp/out $tmp/in
4887 ' >>$CONFIG_STATUS
4888 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4889 rm -f conftest.defines
4890 mv conftest.tail conftest.defines
4891 done
4892 rm -f conftest.defines
4893 echo ' fi # grep' >>$CONFIG_STATUS
4894 echo >>$CONFIG_STATUS
4896 # Break up conftest.undefs because some shells have a limit on the size
4897 # of here documents, and old seds have small limits too (100 cmds).
4898 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4899 rm -f conftest.tail
4900 while grep . conftest.undefs >/dev/null
4902 # Write a limited-size here document to $tmp/undefs.sed.
4903 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4904 # Speed up: don't consider the non `#undef'
4905 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4906 # Work around the forget-to-reset-the-flag bug.
4907 echo 't clr' >>$CONFIG_STATUS
4908 echo ': clr' >>$CONFIG_STATUS
4909 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4910 echo 'CEOF
4911 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4912 rm -f $tmp/in
4913 mv $tmp/out $tmp/in
4914 ' >>$CONFIG_STATUS
4915 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4916 rm -f conftest.undefs
4917 mv conftest.tail conftest.undefs
4918 done
4919 rm -f conftest.undefs
4921 cat >>$CONFIG_STATUS <<\_ACEOF
4922 # Let's still pretend it is `configure' which instantiates (i.e., don't
4923 # use $as_me), people would be surprised to read:
4924 # /* config.h. Generated by config.status. */
4925 if test x"$ac_file" = x-; then
4926 echo "/* Generated by configure. */" >$tmp/config.h
4927 else
4928 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4930 cat $tmp/in >>$tmp/config.h
4931 rm -f $tmp/in
4932 if test x"$ac_file" != x-; then
4933 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4934 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4935 echo "$as_me: $ac_file is unchanged" >&6;}
4936 else
4937 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4938 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4939 X"$ac_file" : 'X\(//\)[^/]' \| \
4940 X"$ac_file" : 'X\(//\)$' \| \
4941 X"$ac_file" : 'X\(/\)' \| \
4942 . : '\(.\)' 2>/dev/null ||
4943 echo X"$ac_file" |
4944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4946 /^X\(\/\/\)$/{ s//\1/; q; }
4947 /^X\(\/\).*/{ s//\1/; q; }
4948 s/.*/./; q'`
4949 { if $as_mkdir_p; then
4950 mkdir -p "$ac_dir"
4951 else
4952 as_dir="$ac_dir"
4953 as_dirs=
4954 while test ! -d "$as_dir"; do
4955 as_dirs="$as_dir $as_dirs"
4956 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4958 X"$as_dir" : 'X\(//\)[^/]' \| \
4959 X"$as_dir" : 'X\(//\)$' \| \
4960 X"$as_dir" : 'X\(/\)' \| \
4961 . : '\(.\)' 2>/dev/null ||
4962 echo X"$as_dir" |
4963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4965 /^X\(\/\/\)$/{ s//\1/; q; }
4966 /^X\(\/\).*/{ s//\1/; q; }
4967 s/.*/./; q'`
4968 done
4969 test ! -n "$as_dirs" || mkdir $as_dirs
4970 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4971 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4972 { (exit 1); exit 1; }; }; }
4974 rm -f $ac_file
4975 mv $tmp/config.h $ac_file
4977 else
4978 cat $tmp/config.h
4979 rm -f $tmp/config.h
4981 done
4982 _ACEOF
4984 cat >>$CONFIG_STATUS <<\_ACEOF
4986 { (exit 0); exit 0; }
4987 _ACEOF
4988 chmod +x $CONFIG_STATUS
4989 ac_clean_files=$ac_clean_files_save
4992 # configure is writing to config.log, and then calls config.status.
4993 # config.status does its own redirection, appending to config.log.
4994 # Unfortunately, on DOS this fails, as config.log is still kept open
4995 # by configure, so config.status won't be able to write to it; its
4996 # output is simply discarded. So we exec the FD to /dev/null,
4997 # effectively closing config.log, so it can be properly (re)opened and
4998 # appended to by config.status. When coming back to configure, we
4999 # need to make the FD available again.
5000 if test "$no_create" != yes; then
5001 ac_cs_success=:
5002 ac_config_status_args=
5003 test "$silent" = yes &&
5004 ac_config_status_args="$ac_config_status_args --quiet"
5005 exec 5>/dev/null
5006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5007 exec 5>>config.log
5008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5009 # would make configure fail if this is the last instruction.
5010 $ac_cs_success || { (exit 1); exit 1; }