Implemented partial support for LIDs
[opal/cbnco.git] / configure
blobdffdce71e6644155f5906fce1d72d348cbca9f61
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="include/opal/manager.h"
274 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 OPAL_VERSION PTLIB_CONFIG PWLIBDIR OPAL_SYSTEM_SPEEX CC CFLAGS ac_ct_CC OPAL_SIP OPAL_H323 STDCCFLAGS ENDLDLIBS LIBOBJS LTLIBOBJS'
275 ac_subst_files=''
277 # Initialize some variables set by options.
278 ac_init_help=
279 ac_init_version=false
280 # The variables have the same names as the options, with
281 # dashes changed to underlines.
282 cache_file=/dev/null
283 exec_prefix=NONE
284 no_create=
285 no_recursion=
286 prefix=NONE
287 program_prefix=NONE
288 program_suffix=NONE
289 program_transform_name=s,x,x,
290 silent=
291 site=
292 srcdir=
293 verbose=
294 x_includes=NONE
295 x_libraries=NONE
297 # Installation directory options.
298 # These are left unexpanded so users can "make install exec_prefix=/foo"
299 # and all the variables that are supposed to be based on exec_prefix
300 # by default will actually change.
301 # Use braces instead of parens because sh, perl, etc. also accept them.
302 bindir='${exec_prefix}/bin'
303 sbindir='${exec_prefix}/sbin'
304 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
306 sysconfdir='${prefix}/etc'
307 sharedstatedir='${prefix}/com'
308 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310 includedir='${prefix}/include'
311 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
315 ac_prev=
316 for ac_option
318 # If the previous option needs an argument, assign it.
319 if test -n "$ac_prev"; then
320 eval "$ac_prev=\$ac_option"
321 ac_prev=
322 continue
325 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327 # Accept the important Cygnus configure options, so we can diagnose typos.
329 case $ac_option in
331 -bindir | --bindir | --bindi | --bind | --bin | --bi)
332 ac_prev=bindir ;;
333 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334 bindir=$ac_optarg ;;
336 -build | --build | --buil | --bui | --bu)
337 ac_prev=build_alias ;;
338 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339 build_alias=$ac_optarg ;;
341 -cache-file | --cache-file | --cache-fil | --cache-fi \
342 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343 ac_prev=cache_file ;;
344 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346 cache_file=$ac_optarg ;;
348 --config-cache | -C)
349 cache_file=config.cache ;;
351 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352 ac_prev=datadir ;;
353 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354 | --da=*)
355 datadir=$ac_optarg ;;
357 -disable-* | --disable-*)
358 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359 # Reject names that are not valid shell variable names.
360 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362 { (exit 1); exit 1; }; }
363 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364 eval "enable_$ac_feature=no" ;;
366 -enable-* | --enable-*)
367 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368 # Reject names that are not valid shell variable names.
369 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371 { (exit 1); exit 1; }; }
372 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 case $ac_option in
374 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "enable_$ac_feature='$ac_optarg'" ;;
379 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381 | --exec | --exe | --ex)
382 ac_prev=exec_prefix ;;
383 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385 | --exec=* | --exe=* | --ex=*)
386 exec_prefix=$ac_optarg ;;
388 -gas | --gas | --ga | --g)
389 # Obsolete; use --with-gas.
390 with_gas=yes ;;
392 -help | --help | --hel | --he | -h)
393 ac_init_help=long ;;
394 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395 ac_init_help=recursive ;;
396 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397 ac_init_help=short ;;
399 -host | --host | --hos | --ho)
400 ac_prev=host_alias ;;
401 -host=* | --host=* | --hos=* | --ho=*)
402 host_alias=$ac_optarg ;;
404 -includedir | --includedir | --includedi | --included | --include \
405 | --includ | --inclu | --incl | --inc)
406 ac_prev=includedir ;;
407 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408 | --includ=* | --inclu=* | --incl=* | --inc=*)
409 includedir=$ac_optarg ;;
411 -infodir | --infodir | --infodi | --infod | --info | --inf)
412 ac_prev=infodir ;;
413 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414 infodir=$ac_optarg ;;
416 -libdir | --libdir | --libdi | --libd)
417 ac_prev=libdir ;;
418 -libdir=* | --libdir=* | --libdi=* | --libd=*)
419 libdir=$ac_optarg ;;
421 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422 | --libexe | --libex | --libe)
423 ac_prev=libexecdir ;;
424 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425 | --libexe=* | --libex=* | --libe=*)
426 libexecdir=$ac_optarg ;;
428 -localstatedir | --localstatedir | --localstatedi | --localstated \
429 | --localstate | --localstat | --localsta | --localst \
430 | --locals | --local | --loca | --loc | --lo)
431 ac_prev=localstatedir ;;
432 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435 localstatedir=$ac_optarg ;;
437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438 ac_prev=mandir ;;
439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440 mandir=$ac_optarg ;;
442 -nfp | --nfp | --nf)
443 # Obsolete; use --without-fp.
444 with_fp=no ;;
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c | -n)
448 no_create=yes ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452 no_recursion=yes ;;
454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456 | --oldin | --oldi | --old | --ol | --o)
457 ac_prev=oldincludedir ;;
458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461 oldincludedir=$ac_optarg ;;
463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464 ac_prev=prefix ;;
465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466 prefix=$ac_optarg ;;
468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
469 | --program-pre | --program-pr | --program-p)
470 ac_prev=program_prefix ;;
471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473 program_prefix=$ac_optarg ;;
475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
476 | --program-suf | --program-su | --program-s)
477 ac_prev=program_suffix ;;
478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480 program_suffix=$ac_optarg ;;
482 -program-transform-name | --program-transform-name \
483 | --program-transform-nam | --program-transform-na \
484 | --program-transform-n | --program-transform- \
485 | --program-transform | --program-transfor \
486 | --program-transfo | --program-transf \
487 | --program-trans | --program-tran \
488 | --progr-tra | --program-tr | --program-t)
489 ac_prev=program_transform_name ;;
490 -program-transform-name=* | --program-transform-name=* \
491 | --program-transform-nam=* | --program-transform-na=* \
492 | --program-transform-n=* | --program-transform-=* \
493 | --program-transform=* | --program-transfor=* \
494 | --program-transfo=* | --program-transf=* \
495 | --program-trans=* | --program-tran=* \
496 | --progr-tra=* | --program-tr=* | --program-t=*)
497 program_transform_name=$ac_optarg ;;
499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500 | -silent | --silent | --silen | --sile | --sil)
501 silent=yes ;;
503 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504 ac_prev=sbindir ;;
505 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506 | --sbi=* | --sb=*)
507 sbindir=$ac_optarg ;;
509 -sharedstatedir | --sharedstatedir | --sharedstatedi \
510 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511 | --sharedst | --shareds | --shared | --share | --shar \
512 | --sha | --sh)
513 ac_prev=sharedstatedir ;;
514 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517 | --sha=* | --sh=*)
518 sharedstatedir=$ac_optarg ;;
520 -site | --site | --sit)
521 ac_prev=site ;;
522 -site=* | --site=* | --sit=*)
523 site=$ac_optarg ;;
525 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526 ac_prev=srcdir ;;
527 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528 srcdir=$ac_optarg ;;
530 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531 | --syscon | --sysco | --sysc | --sys | --sy)
532 ac_prev=sysconfdir ;;
533 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535 sysconfdir=$ac_optarg ;;
537 -target | --target | --targe | --targ | --tar | --ta | --t)
538 ac_prev=target_alias ;;
539 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540 target_alias=$ac_optarg ;;
542 -v | -verbose | --verbose | --verbos | --verbo | --verb)
543 verbose=yes ;;
545 -version | --version | --versio | --versi | --vers | -V)
546 ac_init_version=: ;;
548 -with-* | --with-*)
549 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid package name: $ac_package" >&2
553 { (exit 1); exit 1; }; }
554 ac_package=`echo $ac_package| sed 's/-/_/g'`
555 case $ac_option in
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "with_$ac_package='$ac_optarg'" ;;
561 -without-* | --without-*)
562 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid package name: $ac_package" >&2
566 { (exit 1); exit 1; }; }
567 ac_package=`echo $ac_package | sed 's/-/_/g'`
568 eval "with_$ac_package=no" ;;
570 --x)
571 # Obsolete; use --with-x.
572 with_x=yes ;;
574 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575 | --x-incl | --x-inc | --x-in | --x-i)
576 ac_prev=x_includes ;;
577 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579 x_includes=$ac_optarg ;;
581 -x-libraries | --x-libraries | --x-librarie | --x-librari \
582 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583 ac_prev=x_libraries ;;
584 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586 x_libraries=$ac_optarg ;;
588 -*) { echo "$as_me: error: unrecognized option: $ac_option
589 Try \`$0 --help' for more information." >&2
590 { (exit 1); exit 1; }; }
593 *=*)
594 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595 # Reject names that are not valid shell variable names.
596 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598 { (exit 1); exit 1; }; }
599 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600 eval "$ac_envvar='$ac_optarg'"
601 export $ac_envvar ;;
604 # FIXME: should be removed in autoconf 3.0.
605 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 esac
612 done
614 if test -n "$ac_prev"; then
615 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616 { echo "$as_me: error: missing argument to $ac_option" >&2
617 { (exit 1); exit 1; }; }
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
623 eval ac_val=$`echo $ac_var`
624 case $ac_val in
625 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627 { (exit 1); exit 1; }; };;
628 esac
629 done
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633 localstatedir libdir includedir oldincludedir infodir mandir
635 eval ac_val=$`echo $ac_var`
636 case $ac_val in
637 [\\/$]* | ?:[\\/]* ) ;;
638 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639 { (exit 1); exit 1; }; };;
640 esac
641 done
643 # There might be people who depend on the old broken behavior: `$host'
644 # used to hold the argument of --host etc.
645 # FIXME: To remove some day.
646 build=$build_alias
647 host=$host_alias
648 target=$target_alias
650 # FIXME: To remove some day.
651 if test "x$host_alias" != x; then
652 if test "x$build_alias" = x; then
653 cross_compiling=maybe
654 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655 If a cross compiler is detected then cross compile mode will be used." >&2
656 elif test "x$build_alias" != "x$host_alias"; then
657 cross_compiling=yes
661 ac_tool_prefix=
662 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664 test "$silent" = yes && exec 6>/dev/null
667 # Find the source files, if location was not specified.
668 if test -z "$srcdir"; then
669 ac_srcdir_defaulted=yes
670 # Try the directory containing this script, then its parent.
671 ac_confdir=`(dirname "$0") 2>/dev/null ||
672 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673 X"$0" : 'X\(//\)[^/]' \| \
674 X"$0" : 'X\(//\)$' \| \
675 X"$0" : 'X\(/\)' \| \
676 . : '\(.\)' 2>/dev/null ||
677 echo X"$0" |
678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680 /^X\(\/\/\)$/{ s//\1/; q; }
681 /^X\(\/\).*/{ s//\1/; q; }
682 s/.*/./; q'`
683 srcdir=$ac_confdir
684 if test ! -r $srcdir/$ac_unique_file; then
685 srcdir=..
687 else
688 ac_srcdir_defaulted=no
690 if test ! -r $srcdir/$ac_unique_file; then
691 if test "$ac_srcdir_defaulted" = yes; then
692 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693 { (exit 1); exit 1; }; }
694 else
695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696 { (exit 1); exit 1; }; }
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701 { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
715 ac_env_CXX_set=${CXX+set}
716 ac_env_CXX_value=$CXX
717 ac_cv_env_CXX_set=${CXX+set}
718 ac_cv_env_CXX_value=$CXX
719 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
720 ac_env_CXXFLAGS_value=$CXXFLAGS
721 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
722 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
723 ac_env_LDFLAGS_set=${LDFLAGS+set}
724 ac_env_LDFLAGS_value=$LDFLAGS
725 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_cv_env_LDFLAGS_value=$LDFLAGS
727 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728 ac_env_CPPFLAGS_value=$CPPFLAGS
729 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731 ac_env_CC_set=${CC+set}
732 ac_env_CC_value=$CC
733 ac_cv_env_CC_set=${CC+set}
734 ac_cv_env_CC_value=$CC
735 ac_env_CFLAGS_set=${CFLAGS+set}
736 ac_env_CFLAGS_value=$CFLAGS
737 ac_cv_env_CFLAGS_set=${CFLAGS+set}
738 ac_cv_env_CFLAGS_value=$CFLAGS
741 # Report the --help message.
743 if test "$ac_init_help" = "long"; then
744 # Omit some internal or obsolete options to make the list less imposing.
745 # This message is too long to be a string in the A/UX 3.1 sh.
746 cat <<_ACEOF
747 \`configure' configures this package to adapt to many kinds of systems.
749 Usage: $0 [OPTION]... [VAR=VALUE]...
751 To assign environment variables (e.g., CC, CFLAGS...), specify them as
752 VAR=VALUE. See below for descriptions of some of the useful variables.
754 Defaults for the options are specified in brackets.
756 Configuration:
757 -h, --help display this help and exit
758 --help=short display options specific to this package
759 --help=recursive display the short help of all the included packages
760 -V, --version display version information and exit
761 -q, --quiet, --silent do not print \`checking...' messages
762 --cache-file=FILE cache test results in FILE [disabled]
763 -C, --config-cache alias for \`--cache-file=config.cache'
764 -n, --no-create do not create output files
765 --srcdir=DIR find the sources in DIR [configure dir or \`..']
767 _ACEOF
769 cat <<_ACEOF
770 Installation directories:
771 --prefix=PREFIX install architecture-independent files in PREFIX
772 [$ac_default_prefix]
773 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
774 [PREFIX]
776 By default, \`make install' will install all the files in
777 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
778 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
779 for instance \`--prefix=\$HOME'.
781 For better control, use the options below.
783 Fine tuning of the installation directories:
784 --bindir=DIR user executables [EPREFIX/bin]
785 --sbindir=DIR system admin executables [EPREFIX/sbin]
786 --libexecdir=DIR program executables [EPREFIX/libexec]
787 --datadir=DIR read-only architecture-independent data [PREFIX/share]
788 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
789 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
790 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
791 --libdir=DIR object code libraries [EPREFIX/lib]
792 --includedir=DIR C header files [PREFIX/include]
793 --oldincludedir=DIR C header files for non-gcc [/usr/include]
794 --infodir=DIR info documentation [PREFIX/info]
795 --mandir=DIR man documentation [PREFIX/man]
796 _ACEOF
798 cat <<\_ACEOF
799 _ACEOF
802 if test -n "$ac_init_help"; then
804 cat <<\_ACEOF
806 Optional Features:
807 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
808 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
809 --enable-localspeex use local version of Speex library rather than system version
810 --disable-sip disable SIP protocol support
811 --disable-h323 disable H.323 protocol support
813 Some influential environment variables:
814 CXX C++ compiler command
815 CXXFLAGS C++ compiler flags
816 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
817 nonstandard directory <lib dir>
818 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
819 headers in a nonstandard directory <include dir>
820 CC C compiler command
821 CFLAGS C compiler flags
823 Use these variables to override the choices made by `configure' or to help
824 it to find libraries and programs with nonstandard names/locations.
826 _ACEOF
829 if test "$ac_init_help" = "recursive"; then
830 # If there are subdirs, report their specific --help.
831 ac_popdir=`pwd`
832 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
833 test -d $ac_dir || continue
834 ac_builddir=.
836 if test "$ac_dir" != .; then
837 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
838 # A "../" for each directory in $ac_dir_suffix.
839 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
840 else
841 ac_dir_suffix= ac_top_builddir=
844 case $srcdir in
845 .) # No --srcdir option. We are building in place.
846 ac_srcdir=.
847 if test -z "$ac_top_builddir"; then
848 ac_top_srcdir=.
849 else
850 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
851 fi ;;
852 [\\/]* | ?:[\\/]* ) # Absolute path.
853 ac_srcdir=$srcdir$ac_dir_suffix;
854 ac_top_srcdir=$srcdir ;;
855 *) # Relative path.
856 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
857 ac_top_srcdir=$ac_top_builddir$srcdir ;;
858 esac
859 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
860 # absolute.
861 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
862 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
863 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
864 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
866 cd $ac_dir
867 # Check for guested configure; otherwise get Cygnus style configure.
868 if test -f $ac_srcdir/configure.gnu; then
869 echo
870 $SHELL $ac_srcdir/configure.gnu --help=recursive
871 elif test -f $ac_srcdir/configure; then
872 echo
873 $SHELL $ac_srcdir/configure --help=recursive
874 elif test -f $ac_srcdir/configure.ac ||
875 test -f $ac_srcdir/configure.in; then
876 echo
877 $ac_configure --help
878 else
879 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
881 cd $ac_popdir
882 done
885 test -n "$ac_init_help" && exit 0
886 if $ac_init_version; then
887 cat <<\_ACEOF
889 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
890 Free Software Foundation, Inc.
891 This configure script is free software; the Free Software Foundation
892 gives unlimited permission to copy, distribute and modify it.
893 _ACEOF
894 exit 0
896 exec 5>config.log
897 cat >&5 <<_ACEOF
898 This file contains any messages produced by compilers while
899 running configure, to aid debugging if configure makes a mistake.
901 It was created by $as_me, which was
902 generated by GNU Autoconf 2.57. Invocation command line was
904 $ $0 $@
906 _ACEOF
908 cat <<_ASUNAME
909 ## --------- ##
910 ## Platform. ##
911 ## --------- ##
913 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
914 uname -m = `(uname -m) 2>/dev/null || echo unknown`
915 uname -r = `(uname -r) 2>/dev/null || echo unknown`
916 uname -s = `(uname -s) 2>/dev/null || echo unknown`
917 uname -v = `(uname -v) 2>/dev/null || echo unknown`
919 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
920 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
922 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
923 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
924 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
925 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
926 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
927 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
928 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
930 _ASUNAME
932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
933 for as_dir in $PATH
935 IFS=$as_save_IFS
936 test -z "$as_dir" && as_dir=.
937 echo "PATH: $as_dir"
938 done
940 } >&5
942 cat >&5 <<_ACEOF
945 ## ----------- ##
946 ## Core tests. ##
947 ## ----------- ##
949 _ACEOF
952 # Keep a trace of the command line.
953 # Strip out --no-create and --no-recursion so they do not pile up.
954 # Strip out --silent because we don't want to record it for future runs.
955 # Also quote any args containing shell meta-characters.
956 # Make two passes to allow for proper duplicate-argument suppression.
957 ac_configure_args=
958 ac_configure_args0=
959 ac_configure_args1=
960 ac_sep=
961 ac_must_keep_next=false
962 for ac_pass in 1 2
964 for ac_arg
966 case $ac_arg in
967 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969 | -silent | --silent | --silen | --sile | --sil)
970 continue ;;
971 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
972 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
973 esac
974 case $ac_pass in
975 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
977 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
978 if test $ac_must_keep_next = true; then
979 ac_must_keep_next=false # Got value, back to normal.
980 else
981 case $ac_arg in
982 *=* | --config-cache | -C | -disable-* | --disable-* \
983 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
984 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
985 | -with-* | --with-* | -without-* | --without-* | --x)
986 case "$ac_configure_args0 " in
987 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
988 esac
990 -* ) ac_must_keep_next=true ;;
991 esac
993 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
994 # Get rid of the leading space.
995 ac_sep=" "
997 esac
998 done
999 done
1000 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1001 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1003 # When interrupted or exit'd, cleanup temporary files, and complete
1004 # config.log. We remove comments because anyway the quotes in there
1005 # would cause problems or look ugly.
1006 # WARNING: Be sure not to use single quotes in there, as some shells,
1007 # such as our DU 5.0 friend, will then `close' the trap.
1008 trap 'exit_status=$?
1009 # Save into config.log some information that might help in debugging.
1011 echo
1013 cat <<\_ASBOX
1014 ## ---------------- ##
1015 ## Cache variables. ##
1016 ## ---------------- ##
1017 _ASBOX
1018 echo
1019 # The following way of writing the cache mishandles newlines in values,
1021 (set) 2>&1 |
1022 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1023 *ac_space=\ *)
1024 sed -n \
1025 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1029 sed -n \
1030 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1032 esac;
1034 echo
1036 cat <<\_ASBOX
1037 ## ----------------- ##
1038 ## Output variables. ##
1039 ## ----------------- ##
1040 _ASBOX
1041 echo
1042 for ac_var in $ac_subst_vars
1044 eval ac_val=$`echo $ac_var`
1045 echo "$ac_var='"'"'$ac_val'"'"'"
1046 done | sort
1047 echo
1049 if test -n "$ac_subst_files"; then
1050 cat <<\_ASBOX
1051 ## ------------- ##
1052 ## Output files. ##
1053 ## ------------- ##
1054 _ASBOX
1055 echo
1056 for ac_var in $ac_subst_files
1058 eval ac_val=$`echo $ac_var`
1059 echo "$ac_var='"'"'$ac_val'"'"'"
1060 done | sort
1061 echo
1064 if test -s confdefs.h; then
1065 cat <<\_ASBOX
1066 ## ----------- ##
1067 ## confdefs.h. ##
1068 ## ----------- ##
1069 _ASBOX
1070 echo
1071 sed "/^$/d" confdefs.h | sort
1072 echo
1074 test "$ac_signal" != 0 &&
1075 echo "$as_me: caught signal $ac_signal"
1076 echo "$as_me: exit $exit_status"
1077 } >&5
1078 rm -f core core.* *.core &&
1079 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1080 exit $exit_status
1082 for ac_signal in 1 2 13 15; do
1083 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1084 done
1085 ac_signal=0
1087 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1088 rm -rf conftest* confdefs.h
1089 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1090 echo >confdefs.h
1092 # Predefined preprocessor variables.
1094 cat >>confdefs.h <<_ACEOF
1095 #define PACKAGE_NAME "$PACKAGE_NAME"
1096 _ACEOF
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1101 _ACEOF
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1106 _ACEOF
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_STRING "$PACKAGE_STRING"
1111 _ACEOF
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1116 _ACEOF
1119 # Let the site file select an alternate cache file if it wants to.
1120 # Prefer explicitly selected file to automatically selected ones.
1121 if test -z "$CONFIG_SITE"; then
1122 if test "x$prefix" != xNONE; then
1123 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1124 else
1125 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1128 for ac_site_file in $CONFIG_SITE; do
1129 if test -r "$ac_site_file"; then
1130 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1131 echo "$as_me: loading site script $ac_site_file" >&6;}
1132 sed 's/^/| /' "$ac_site_file" >&5
1133 . "$ac_site_file"
1135 done
1137 if test -r "$cache_file"; then
1138 # Some versions of bash will fail to source /dev/null (special
1139 # files actually), so we avoid doing that.
1140 if test -f "$cache_file"; then
1141 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1142 echo "$as_me: loading cache $cache_file" >&6;}
1143 case $cache_file in
1144 [\\/]* | ?:[\\/]* ) . $cache_file;;
1145 *) . ./$cache_file;;
1146 esac
1148 else
1149 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1150 echo "$as_me: creating cache $cache_file" >&6;}
1151 >$cache_file
1154 # Check that the precious variables saved in the cache have kept the same
1155 # value.
1156 ac_cache_corrupted=false
1157 for ac_var in `(set) 2>&1 |
1158 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1160 eval ac_new_set=\$ac_env_${ac_var}_set
1161 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1162 eval ac_new_val="\$ac_env_${ac_var}_value"
1163 case $ac_old_set,$ac_new_set in
1164 set,)
1165 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1166 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1167 ac_cache_corrupted=: ;;
1168 ,set)
1169 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1170 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1171 ac_cache_corrupted=: ;;
1172 ,);;
1174 if test "x$ac_old_val" != "x$ac_new_val"; then
1175 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1176 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1177 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1178 echo "$as_me: former value: $ac_old_val" >&2;}
1179 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1180 echo "$as_me: current value: $ac_new_val" >&2;}
1181 ac_cache_corrupted=:
1182 fi;;
1183 esac
1184 # Pass precious variables to config.status.
1185 if test "$ac_new_set" = set; then
1186 case $ac_new_val in
1187 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1188 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1189 *) ac_arg=$ac_var=$ac_new_val ;;
1190 esac
1191 case " $ac_configure_args " in
1192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1193 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1194 esac
1196 done
1197 if $ac_cache_corrupted; then
1198 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1199 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1200 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1201 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1202 { (exit 1); exit 1; }; }
1205 ac_ext=c
1206 ac_cpp='$CPP $CPPFLAGS'
1207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1230 ac_ext=cc
1231 ac_cpp='$CXXCPP $CPPFLAGS'
1232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1235 if test -n "$ac_tool_prefix"; then
1236 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1240 echo "$as_me:$LINENO: checking for $ac_word" >&5
1241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1242 if test "${ac_cv_prog_CXX+set}" = set; then
1243 echo $ECHO_N "(cached) $ECHO_C" >&6
1244 else
1245 if test -n "$CXX"; then
1246 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1247 else
1248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249 for as_dir in $PATH
1251 IFS=$as_save_IFS
1252 test -z "$as_dir" && as_dir=.
1253 for ac_exec_ext in '' $ac_executable_extensions; do
1254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1255 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1257 break 2
1259 done
1260 done
1264 CXX=$ac_cv_prog_CXX
1265 if test -n "$CXX"; then
1266 echo "$as_me:$LINENO: result: $CXX" >&5
1267 echo "${ECHO_T}$CXX" >&6
1268 else
1269 echo "$as_me:$LINENO: result: no" >&5
1270 echo "${ECHO_T}no" >&6
1273 test -n "$CXX" && break
1274 done
1276 if test -z "$CXX"; then
1277 ac_ct_CXX=$CXX
1278 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1280 # Extract the first word of "$ac_prog", so it can be a program name with args.
1281 set dummy $ac_prog; ac_word=$2
1282 echo "$as_me:$LINENO: checking for $ac_word" >&5
1283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1284 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1285 echo $ECHO_N "(cached) $ECHO_C" >&6
1286 else
1287 if test -n "$ac_ct_CXX"; then
1288 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1289 else
1290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1291 for as_dir in $PATH
1293 IFS=$as_save_IFS
1294 test -z "$as_dir" && as_dir=.
1295 for ac_exec_ext in '' $ac_executable_extensions; do
1296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1297 ac_cv_prog_ac_ct_CXX="$ac_prog"
1298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1299 break 2
1301 done
1302 done
1306 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1307 if test -n "$ac_ct_CXX"; then
1308 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1309 echo "${ECHO_T}$ac_ct_CXX" >&6
1310 else
1311 echo "$as_me:$LINENO: result: no" >&5
1312 echo "${ECHO_T}no" >&6
1315 test -n "$ac_ct_CXX" && break
1316 done
1317 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1319 CXX=$ac_ct_CXX
1323 # Provide some information about the compiler.
1324 echo "$as_me:$LINENO:" \
1325 "checking for C++ compiler version" >&5
1326 ac_compiler=`set X $ac_compile; echo $2`
1327 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1328 (eval $ac_compiler --version </dev/null >&5) 2>&5
1329 ac_status=$?
1330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1331 (exit $ac_status); }
1332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1333 (eval $ac_compiler -v </dev/null >&5) 2>&5
1334 ac_status=$?
1335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1336 (exit $ac_status); }
1337 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1338 (eval $ac_compiler -V </dev/null >&5) 2>&5
1339 ac_status=$?
1340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1341 (exit $ac_status); }
1343 cat >conftest.$ac_ext <<_ACEOF
1344 #line $LINENO "configure"
1345 /* confdefs.h. */
1346 _ACEOF
1347 cat confdefs.h >>conftest.$ac_ext
1348 cat >>conftest.$ac_ext <<_ACEOF
1349 /* end confdefs.h. */
1352 main ()
1356 return 0;
1358 _ACEOF
1359 ac_clean_files_save=$ac_clean_files
1360 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1361 # Try to create an executable without -o first, disregard a.out.
1362 # It will help us diagnose broken compilers, and finding out an intuition
1363 # of exeext.
1364 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1365 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1366 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1367 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1368 (eval $ac_link_default) 2>&5
1369 ac_status=$?
1370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1371 (exit $ac_status); }; then
1372 # Find the output, starting from the most likely. This scheme is
1373 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1374 # resort.
1376 # Be careful to initialize this variable, since it used to be cached.
1377 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1378 ac_cv_exeext=
1379 # b.out is created by i960 compilers.
1380 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1382 test -f "$ac_file" || continue
1383 case $ac_file in
1384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1386 conftest.$ac_ext )
1387 # This is the source file.
1389 [ab].out )
1390 # We found the default executable, but exeext='' is most
1391 # certainly right.
1392 break;;
1393 *.* )
1394 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1395 # FIXME: I believe we export ac_cv_exeext for Libtool,
1396 # but it would be cool to find out if it's true. Does anybody
1397 # maintain Libtool? --akim.
1398 export ac_cv_exeext
1399 break;;
1401 break;;
1402 esac
1403 done
1404 else
1405 echo "$as_me: failed program was:" >&5
1406 sed 's/^/| /' conftest.$ac_ext >&5
1408 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1409 See \`config.log' for more details." >&5
1410 echo "$as_me: error: C++ compiler cannot create executables
1411 See \`config.log' for more details." >&2;}
1412 { (exit 77); exit 77; }; }
1415 ac_exeext=$ac_cv_exeext
1416 echo "$as_me:$LINENO: result: $ac_file" >&5
1417 echo "${ECHO_T}$ac_file" >&6
1419 # Check the compiler produces executables we can run. If not, either
1420 # the compiler is broken, or we cross compile.
1421 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1422 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1423 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1424 # If not cross compiling, check that we can run a simple program.
1425 if test "$cross_compiling" != yes; then
1426 if { ac_try='./$ac_file'
1427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1428 (eval $ac_try) 2>&5
1429 ac_status=$?
1430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1431 (exit $ac_status); }; }; then
1432 cross_compiling=no
1433 else
1434 if test "$cross_compiling" = maybe; then
1435 cross_compiling=yes
1436 else
1437 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1438 If you meant to cross compile, use \`--host'.
1439 See \`config.log' for more details." >&5
1440 echo "$as_me: error: cannot run C++ compiled programs.
1441 If you meant to cross compile, use \`--host'.
1442 See \`config.log' for more details." >&2;}
1443 { (exit 1); exit 1; }; }
1447 echo "$as_me:$LINENO: result: yes" >&5
1448 echo "${ECHO_T}yes" >&6
1450 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1451 ac_clean_files=$ac_clean_files_save
1452 # Check the compiler produces executables we can run. If not, either
1453 # the compiler is broken, or we cross compile.
1454 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1455 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1456 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1457 echo "${ECHO_T}$cross_compiling" >&6
1459 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1460 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1462 (eval $ac_link) 2>&5
1463 ac_status=$?
1464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1465 (exit $ac_status); }; then
1466 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1467 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1468 # work properly (i.e., refer to `conftest.exe'), while it won't with
1469 # `rm'.
1470 for ac_file in conftest.exe conftest conftest.*; do
1471 test -f "$ac_file" || continue
1472 case $ac_file in
1473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1474 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1475 export ac_cv_exeext
1476 break;;
1477 * ) break;;
1478 esac
1479 done
1480 else
1481 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1482 See \`config.log' for more details." >&5
1483 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1484 See \`config.log' for more details." >&2;}
1485 { (exit 1); exit 1; }; }
1488 rm -f conftest$ac_cv_exeext
1489 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1490 echo "${ECHO_T}$ac_cv_exeext" >&6
1492 rm -f conftest.$ac_ext
1493 EXEEXT=$ac_cv_exeext
1494 ac_exeext=$EXEEXT
1495 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1496 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1497 if test "${ac_cv_objext+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 cat >conftest.$ac_ext <<_ACEOF
1501 #line $LINENO "configure"
1502 /* confdefs.h. */
1503 _ACEOF
1504 cat confdefs.h >>conftest.$ac_ext
1505 cat >>conftest.$ac_ext <<_ACEOF
1506 /* end confdefs.h. */
1509 main ()
1513 return 0;
1515 _ACEOF
1516 rm -f conftest.o conftest.obj
1517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1518 (eval $ac_compile) 2>&5
1519 ac_status=$?
1520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1521 (exit $ac_status); }; then
1522 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1523 case $ac_file in
1524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1525 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1526 break;;
1527 esac
1528 done
1529 else
1530 echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1533 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1534 See \`config.log' for more details." >&5
1535 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1536 See \`config.log' for more details." >&2;}
1537 { (exit 1); exit 1; }; }
1540 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1542 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1543 echo "${ECHO_T}$ac_cv_objext" >&6
1544 OBJEXT=$ac_cv_objext
1545 ac_objext=$OBJEXT
1546 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1547 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1548 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 cat >conftest.$ac_ext <<_ACEOF
1552 #line $LINENO "configure"
1553 /* confdefs.h. */
1554 _ACEOF
1555 cat confdefs.h >>conftest.$ac_ext
1556 cat >>conftest.$ac_ext <<_ACEOF
1557 /* end confdefs.h. */
1560 main ()
1562 #ifndef __GNUC__
1563 choke me
1564 #endif
1567 return 0;
1569 _ACEOF
1570 rm -f conftest.$ac_objext
1571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1572 (eval $ac_compile) 2>&5
1573 ac_status=$?
1574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1575 (exit $ac_status); } &&
1576 { ac_try='test -s conftest.$ac_objext'
1577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1578 (eval $ac_try) 2>&5
1579 ac_status=$?
1580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1581 (exit $ac_status); }; }; then
1582 ac_compiler_gnu=yes
1583 else
1584 echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1587 ac_compiler_gnu=no
1589 rm -f conftest.$ac_objext conftest.$ac_ext
1590 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1593 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1594 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1595 GXX=`test $ac_compiler_gnu = yes && echo yes`
1596 ac_test_CXXFLAGS=${CXXFLAGS+set}
1597 ac_save_CXXFLAGS=$CXXFLAGS
1598 CXXFLAGS="-g"
1599 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1600 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1601 if test "${ac_cv_prog_cxx_g+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604 cat >conftest.$ac_ext <<_ACEOF
1605 #line $LINENO "configure"
1606 /* confdefs.h. */
1607 _ACEOF
1608 cat confdefs.h >>conftest.$ac_ext
1609 cat >>conftest.$ac_ext <<_ACEOF
1610 /* end confdefs.h. */
1613 main ()
1617 return 0;
1619 _ACEOF
1620 rm -f conftest.$ac_objext
1621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1622 (eval $ac_compile) 2>&5
1623 ac_status=$?
1624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625 (exit $ac_status); } &&
1626 { ac_try='test -s conftest.$ac_objext'
1627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1628 (eval $ac_try) 2>&5
1629 ac_status=$?
1630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1631 (exit $ac_status); }; }; then
1632 ac_cv_prog_cxx_g=yes
1633 else
1634 echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1637 ac_cv_prog_cxx_g=no
1639 rm -f conftest.$ac_objext conftest.$ac_ext
1641 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1642 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1643 if test "$ac_test_CXXFLAGS" = set; then
1644 CXXFLAGS=$ac_save_CXXFLAGS
1645 elif test $ac_cv_prog_cxx_g = yes; then
1646 if test "$GXX" = yes; then
1647 CXXFLAGS="-g -O2"
1648 else
1649 CXXFLAGS="-g"
1651 else
1652 if test "$GXX" = yes; then
1653 CXXFLAGS="-O2"
1654 else
1655 CXXFLAGS=
1658 for ac_declaration in \
1660 '#include <stdlib.h>' \
1661 'extern "C" void std::exit (int) throw (); using std::exit;' \
1662 'extern "C" void std::exit (int); using std::exit;' \
1663 'extern "C" void exit (int) throw ();' \
1664 'extern "C" void exit (int);' \
1665 'void exit (int);'
1667 cat >conftest.$ac_ext <<_ACEOF
1668 #line $LINENO "configure"
1669 /* confdefs.h. */
1670 _ACEOF
1671 cat confdefs.h >>conftest.$ac_ext
1672 cat >>conftest.$ac_ext <<_ACEOF
1673 /* end confdefs.h. */
1674 #include <stdlib.h>
1675 $ac_declaration
1677 main ()
1679 exit (42);
1681 return 0;
1683 _ACEOF
1684 rm -f conftest.$ac_objext
1685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1686 (eval $ac_compile) 2>&5
1687 ac_status=$?
1688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1689 (exit $ac_status); } &&
1690 { ac_try='test -s conftest.$ac_objext'
1691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1692 (eval $ac_try) 2>&5
1693 ac_status=$?
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); }; }; then
1697 else
1698 echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 continue
1703 rm -f conftest.$ac_objext conftest.$ac_ext
1704 cat >conftest.$ac_ext <<_ACEOF
1705 #line $LINENO "configure"
1706 /* confdefs.h. */
1707 _ACEOF
1708 cat confdefs.h >>conftest.$ac_ext
1709 cat >>conftest.$ac_ext <<_ACEOF
1710 /* end confdefs.h. */
1711 $ac_declaration
1713 main ()
1715 exit (42);
1717 return 0;
1719 _ACEOF
1720 rm -f conftest.$ac_objext
1721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1722 (eval $ac_compile) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); } &&
1726 { ac_try='test -s conftest.$ac_objext'
1727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1728 (eval $ac_try) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; }; then
1732 break
1733 else
1734 echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1738 rm -f conftest.$ac_objext conftest.$ac_ext
1739 done
1740 rm -f conftest*
1741 if test -n "$ac_declaration"; then
1742 echo '#ifdef __cplusplus' >>confdefs.h
1743 echo $ac_declaration >>confdefs.h
1744 echo '#endif' >>confdefs.h
1747 ac_ext=c
1748 ac_cpp='$CPP $CPPFLAGS'
1749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1755 OPALDIR=`pwd`
1758 if test "x$prefix" = "xNONE"; then
1759 INSTALLPREFIX="/usr/local"
1760 else
1761 INSTALLPREFIX="${prefix}"
1766 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1767 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1768 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1769 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1772 echo "OPAL version is ${OPAL_VERSION}"
1776 if test "${PWLIBDIR:-unset}" != "unset" ; then
1777 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
1778 echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
1779 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
1780 if eval "test \"\${$as_ac_File+set}\" = set"; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783 test "$cross_compiling" = yes &&
1784 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
1785 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
1786 { (exit 1); exit 1; }; }
1787 if test -r "${PWLIBDIR}/version.h"; then
1788 eval "$as_ac_File=yes"
1789 else
1790 eval "$as_ac_File=no"
1793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
1794 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
1795 if test `eval echo '${'$as_ac_File'}'` = yes; then
1796 HAS_PTLIB=1
1800 if test "${HAS_PTLIB:-unset}" = "unset" ; then
1801 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
1802 echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
1803 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6
1804 if eval "test \"\${$as_ac_File+set}\" = set"; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807 test "$cross_compiling" = yes &&
1808 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
1809 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
1810 { (exit 1); exit 1; }; }
1811 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
1812 eval "$as_ac_File=yes"
1813 else
1814 eval "$as_ac_File=no"
1817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
1818 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
1819 if test `eval echo '${'$as_ac_File'}'` = yes; then
1820 HAS_PTLIB=1
1823 if test "${HAS_PTLIB:-unset}" != "unset" ; then
1824 PWLIBDIR="${OPENH323DIR}/../pwlib"
1825 else
1826 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
1827 echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
1828 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
1829 if eval "test \"\${$as_ac_File+set}\" = set"; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 test "$cross_compiling" = yes &&
1833 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
1834 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
1835 { (exit 1); exit 1; }; }
1836 if test -r "${HOME}/pwlib/include/ptlib.h"; then
1837 eval "$as_ac_File=yes"
1838 else
1839 eval "$as_ac_File=no"
1842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
1843 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
1844 if test `eval echo '${'$as_ac_File'}'` = yes; then
1845 HAS_PTLIB=1
1848 if test "${HAS_PTLIB:-unset}" != "unset" ; then
1849 PWLIBDIR="${HOME}/pwlib"
1850 else
1851 echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
1852 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
1853 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 test "$cross_compiling" = yes &&
1857 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
1858 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
1859 { (exit 1); exit 1; }; }
1860 if test -r "/usr/local/include/ptlib.h"; then
1861 ac_cv_file__usr_local_include_ptlib_h=yes
1862 else
1863 ac_cv_file__usr_local_include_ptlib_h=no
1866 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
1867 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
1868 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
1869 HAS_PTLIB=1
1872 if test "${HAS_PTLIB:-unset}" != "unset" ; then
1873 # Extract the first word of "ptlib-config", so it can be a program name with args.
1874 set dummy ptlib-config; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 case $PTLIB_CONFIG in
1881 [\\/]* | ?:[\\/]*)
1882 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in /usr/local/bin
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
1896 done
1897 done
1900 esac
1902 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
1904 if test -n "$PTLIB_CONFIG"; then
1905 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
1906 echo "${ECHO_T}$PTLIB_CONFIG" >&6
1907 else
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 else
1913 echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
1914 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
1915 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 test "$cross_compiling" = yes &&
1919 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
1920 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
1921 { (exit 1); exit 1; }; }
1922 if test -r "/usr/include/ptlib.h"; then
1923 ac_cv_file__usr_include_ptlib_h=yes
1924 else
1925 ac_cv_file__usr_include_ptlib_h=no
1928 echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
1929 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
1930 if test $ac_cv_file__usr_include_ptlib_h = yes; then
1931 HAS_PTLIB=1
1934 if test "${HAS_PTLIB:-unset}" != "unset" ; then
1935 # Extract the first word of "ptlib-config", so it can be a program name with args.
1936 set dummy ptlib-config; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 case $PTLIB_CONFIG in
1943 [\\/]* | ?:[\\/]*)
1944 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in /usr/share/pwlib/make/
1950 IFS=$as_save_IFS
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 break 2
1958 done
1959 done
1962 esac
1964 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
1966 if test -n "$PTLIB_CONFIG"; then
1967 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
1968 echo "${ECHO_T}$PTLIB_CONFIG" >&6
1969 else
1970 echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6
1980 if test "${HAS_PTLIB:-unset}" = "unset" ; then
1981 echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
1982 exit
1985 if test "${PWLIBDIR:-unset}" = "unset" ; then
1986 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
1987 echo "Cannot find ptlib-config - please install and try again"
1988 exit
1990 PWLIBDIR=`$PTLIB_CONFIG --prefix`
1993 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
1994 PWLIBDIR="/usr/share/pwlib/"
1996 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
1997 PWLIBDIR="/usr/local/share/pwlib/"
2000 echo "PWLib prefix set to.... $PWLIBDIR"
2009 localspeex="xxx"
2010 # Check whether --enable-localspeex or --disable-localspeex was given.
2011 if test "${enable_localspeex+set}" = set; then
2012 enableval="$enable_localspeex"
2013 localspeex=$enableval
2016 if test "${localspeex}" = "yes" ; then
2017 { echo "$as_me:$LINENO: Forcing use of local Speex sources" >&5
2018 echo "$as_me: Forcing use of local Speex sources" >&6;}
2019 elif test "${localspeex}" = "no" ; then
2020 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
2021 echo "$as_me: Forcing use of system Speex library" >&6;}
2022 cat >>confdefs.h <<\_ACEOF
2023 #define OPAL_SYSTEM_SPEEX 1
2024 _ACEOF
2026 OPAL_SYSTEM_SPEEX=1
2028 else
2029 ac_ext=c
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2056 done
2057 done
2061 CC=$ac_cv_prog_CC
2062 if test -n "$CC"; then
2063 echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2065 else
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2071 if test -z "$ac_cv_prog_CC"; then
2072 ac_ct_CC=$CC
2073 # Extract the first word of "gcc", so it can be a program name with args.
2074 set dummy gcc; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 ac_cv_prog_ac_ct_CC="gcc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2094 done
2095 done
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6
2103 else
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2108 CC=$ac_ct_CC
2109 else
2110 CC="$ac_cv_prog_CC"
2113 if test -z "$CC"; then
2114 if test -n "$ac_tool_prefix"; then
2115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2116 set dummy ${ac_tool_prefix}cc; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_CC+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122 if test -n "$CC"; then
2123 ac_cv_prog_CC="$CC" # Let the user override the test.
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_CC="${ac_tool_prefix}cc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2136 done
2137 done
2141 CC=$ac_cv_prog_CC
2142 if test -n "$CC"; then
2143 echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6
2145 else
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2151 if test -z "$ac_cv_prog_CC"; then
2152 ac_ct_CC=$CC
2153 # Extract the first word of "cc", so it can be a program name with args.
2154 set dummy cc; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_prog_ac_ct_CC="cc"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2174 done
2175 done
2179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2180 if test -n "$ac_ct_CC"; then
2181 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2182 echo "${ECHO_T}$ac_ct_CC" >&6
2183 else
2184 echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2188 CC=$ac_ct_CC
2189 else
2190 CC="$ac_cv_prog_CC"
2194 if test -z "$CC"; then
2195 # Extract the first word of "cc", so it can be a program name with args.
2196 set dummy cc; ac_word=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 if test -n "$CC"; then
2203 ac_cv_prog_CC="$CC" # Let the user override the test.
2204 else
2205 ac_prog_rejected=no
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2209 IFS=$as_save_IFS
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2213 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2214 ac_prog_rejected=yes
2215 continue
2217 ac_cv_prog_CC="cc"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2221 done
2222 done
2224 if test $ac_prog_rejected = yes; then
2225 # We found a bogon in the path, so make sure we never use it.
2226 set dummy $ac_cv_prog_CC
2227 shift
2228 if test $# != 0; then
2229 # We chose a different compiler from the bogus one.
2230 # However, it has the same basename, so the bogon will be chosen
2231 # first if we set CC to just the basename; use the full file name.
2232 shift
2233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240 echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2242 else
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2248 if test -z "$CC"; then
2249 if test -n "$ac_tool_prefix"; then
2250 for ac_prog in cl
2252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC="$CC" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 break 2
2273 done
2274 done
2278 CC=$ac_cv_prog_CC
2279 if test -n "$CC"; then
2280 echo "$as_me:$LINENO: result: $CC" >&5
2281 echo "${ECHO_T}$CC" >&6
2282 else
2283 echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2287 test -n "$CC" && break
2288 done
2290 if test -z "$CC"; then
2291 ac_ct_CC=$CC
2292 for ac_prog in cl
2294 # Extract the first word of "$ac_prog", so it can be a program name with args.
2295 set dummy $ac_prog; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 if test -n "$ac_ct_CC"; then
2302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_ac_ct_CC="$ac_prog"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2315 done
2316 done
2320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2321 if test -n "$ac_ct_CC"; then
2322 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2323 echo "${ECHO_T}$ac_ct_CC" >&6
2324 else
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2329 test -n "$ac_ct_CC" && break
2330 done
2332 CC=$ac_ct_CC
2338 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: no acceptable C compiler found in \$PATH
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2344 # Provide some information about the compiler.
2345 echo "$as_me:$LINENO:" \
2346 "checking for C compiler version" >&5
2347 ac_compiler=`set X $ac_compile; echo $2`
2348 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2349 (eval $ac_compiler --version </dev/null >&5) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2353 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2354 (eval $ac_compiler -v </dev/null >&5) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
2358 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2359 (eval $ac_compiler -V </dev/null >&5) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
2364 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2365 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2366 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2378 main ()
2380 #ifndef __GNUC__
2381 choke me
2382 #endif
2385 return 0;
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_compiler_gnu=yes
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 ac_compiler_gnu=no
2407 rm -f conftest.$ac_objext conftest.$ac_ext
2408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2411 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2412 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2413 GCC=`test $ac_compiler_gnu = yes && echo yes`
2414 ac_test_CFLAGS=${CFLAGS+set}
2415 ac_save_CFLAGS=$CFLAGS
2416 CFLAGS="-g"
2417 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 cat >conftest.$ac_ext <<_ACEOF
2423 #line $LINENO "configure"
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2431 main ()
2435 return 0;
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 ac_cv_prog_cc_g=yes
2451 else
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2455 ac_cv_prog_cc_g=no
2457 rm -f conftest.$ac_objext conftest.$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462 CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464 if test "$GCC" = yes; then
2465 CFLAGS="-g -O2"
2466 else
2467 CFLAGS="-g"
2469 else
2470 if test "$GCC" = yes; then
2471 CFLAGS="-O2"
2472 else
2473 CFLAGS=
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481 ac_cv_prog_cc_stdc=no
2482 ac_save_CC=$CC
2483 cat >conftest.$ac_ext <<_ACEOF
2484 #line $LINENO "configure"
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2490 #include <stdarg.h>
2491 #include <stdio.h>
2492 #include <sys/types.h>
2493 #include <sys/stat.h>
2494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2495 struct buf { int x; };
2496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497 static char *e (p, i)
2498 char **p;
2499 int i;
2501 return p[i];
2503 static char *f (char * (*g) (char **, int), char **p, ...)
2505 char *s;
2506 va_list v;
2507 va_start (v,p);
2508 s = g (p, va_arg (v,int));
2509 va_end (v);
2510 return s;
2512 int test (int i, double x);
2513 struct s1 {int (*f) (int a);};
2514 struct s2 {int (*f) (double a);};
2515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2516 int argc;
2517 char **argv;
2519 main ()
2521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2523 return 0;
2525 _ACEOF
2526 # Don't try gcc -ansi; that turns off useful extensions and
2527 # breaks some systems' header files.
2528 # AIX -qlanglvl=ansi
2529 # Ultrix and OSF/1 -std1
2530 # HP-UX 10.20 and later -Ae
2531 # HP-UX older versions -Aa -D_HPUX_SOURCE
2532 # SVR4 -Xc -D__EXTENSIONS__
2533 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2535 CC="$ac_save_CC $ac_arg"
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 ac_cv_prog_cc_stdc=$ac_arg
2549 break
2550 else
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2555 rm -f conftest.$ac_objext
2556 done
2557 rm -f conftest.$ac_ext conftest.$ac_objext
2558 CC=$ac_save_CC
2562 case "x$ac_cv_prog_cc_stdc" in
2563 x|xno)
2564 echo "$as_me:$LINENO: result: none needed" >&5
2565 echo "${ECHO_T}none needed" >&6 ;;
2567 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2568 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2569 CC="$CC $ac_cv_prog_cc_stdc" ;;
2570 esac
2572 # Some people use a C++ compiler to compile C. Since we use `exit',
2573 # in C++ we need to declare it. In case someone uses the same compiler
2574 # for both compiling C and C++ we need to have the C++ compiler decide
2575 # the declaration of exit, since it's the most demanding environment.
2576 cat >conftest.$ac_ext <<_ACEOF
2577 #ifndef __cplusplus
2578 choke me
2579 #endif
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 for ac_declaration in \
2595 '#include <stdlib.h>' \
2596 'extern "C" void std::exit (int) throw (); using std::exit;' \
2597 'extern "C" void std::exit (int); using std::exit;' \
2598 'extern "C" void exit (int) throw ();' \
2599 'extern "C" void exit (int);' \
2600 'void exit (int);'
2602 cat >conftest.$ac_ext <<_ACEOF
2603 #line $LINENO "configure"
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2609 #include <stdlib.h>
2610 $ac_declaration
2612 main ()
2614 exit (42);
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2636 continue
2638 rm -f conftest.$ac_objext conftest.$ac_ext
2639 cat >conftest.$ac_ext <<_ACEOF
2640 #line $LINENO "configure"
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646 $ac_declaration
2648 main ()
2650 exit (42);
2652 return 0;
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 break
2668 else
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2673 rm -f conftest.$ac_objext conftest.$ac_ext
2674 done
2675 rm -f conftest*
2676 if test -n "$ac_declaration"; then
2677 echo '#ifdef __cplusplus' >>confdefs.h
2678 echo $ac_declaration >>confdefs.h
2679 echo '#endif' >>confdefs.h
2682 else
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2687 rm -f conftest.$ac_objext conftest.$ac_ext
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
2696 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
2697 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 ac_check_lib_save_LIBS=$LIBS
2701 LIBS="-lspeex $LIBS"
2702 cat >conftest.$ac_ext <<_ACEOF
2703 #line $LINENO "configure"
2704 /* confdefs.h. */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2710 /* Override any gcc2 internal prototype to avoid an error. */
2711 #ifdef __cplusplus
2712 extern "C"
2713 #endif
2714 /* We use char because int might match the return type of a gcc2
2715 builtin and then its argument prototype would still apply. */
2716 char speex_encoder_destroy ();
2718 main ()
2720 speex_encoder_destroy ();
2722 return 0;
2724 _ACEOF
2725 rm -f conftest.$ac_objext conftest$ac_exeext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2727 (eval $ac_link) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -s conftest$ac_exeext'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 (eval $ac_try) 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 ac_cv_lib_speex_speex_encoder_destroy=yes
2738 else
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2742 ac_cv_lib_speex_speex_encoder_destroy=no
2744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2745 LIBS=$ac_check_lib_save_LIBS
2747 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
2748 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
2749 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
2750 SPEEX=1
2753 if test "x$SPEEX" = "x"; then
2754 { echo "$as_me:$LINENO: Forcing use of local Speex library" >&5
2755 echo "$as_me: Forcing use of local Speex library" >&6;}
2756 else
2757 echo "$as_me:$LINENO: checking system Speex version" >&5
2758 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
2759 cat > t.c <<C_FILE
2760 #include <speex.h>
2761 #include <speex_header.h>
2762 #include <stdio.h>
2763 int main(int argc,char *argv)
2765 SpeexHeader header;
2766 speex_init_header(&header, 1, 1, &speex_nb_mode);
2767 printf("%s\n", header.speex_version);
2769 C_FILE
2770 cc -o t t.c -lspeex > /dev/null 2>&1
2771 if test \! -x t ; then
2772 echo "$as_me:$LINENO: result: cannot determine - using library version" >&5
2773 echo "${ECHO_T}cannot determine - using library version" >&6
2774 else
2775 SYSVER=`./t`
2776 rm -f t t.c
2777 echo "$as_me:$LINENO: result: $SYSVER" >&5
2778 echo "${ECHO_T}$SYSVER" >&6
2779 echo "$as_me:$LINENO: checking library Speex version" >&5
2780 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6
2781 LIBVER=`grep "#define VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//'`
2782 echo "$as_me:$LINENO: result: $LIBVER" >&5
2783 echo "${ECHO_T}$LIBVER" >&6
2784 echo "$as_me:$LINENO: checking Speex versions" >&5
2785 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
2786 cat > t.pl <<P_FILE
2788 \$sysver = @ARGV[0];
2789 \$libver = @ARGV[1];
2790 @lib = split /\./, \$libver;
2791 while (@lib < 3) {
2792 @lib[0+@lib] = "0";
2794 @sys = split /\./, \$sysver;
2795 while (@sys < 3) {
2796 @sys[0+@sys] = "0";
2798 \$i = 0;
2799 while (\$i < 3) {
2800 print "comparing " . @sys[\$i] . " and " . @lib[\$i] . "\n";
2801 if (\@sys[\$i] < @lib[\$i]) {
2802 print "0";
2803 die;
2805 \$i++;
2807 print "1";
2809 P_FILE
2810 SPEEX=`perl t.pl $SYSVER $LIBVER`
2811 rm t.pl
2812 if test "x$SPEEX" = "x" ; then
2813 echo "$as_me:$LINENO: result: library version is more recent" >&5
2814 echo "${ECHO_T}library version is more recent" >&6
2815 else
2816 echo "$as_me:$LINENO: result: system version is more recent" >&5
2817 echo "${ECHO_T}system version is more recent" >&6
2818 cat >>confdefs.h <<\_ACEOF
2819 #define OPAL_SYSTEM_SPEEX 1
2820 _ACEOF
2822 OPAL_SYSTEM_SPEEX=1
2832 sip=yes
2833 # Check whether --enable-sip or --disable-sip was given.
2834 if test "${enable_sip+set}" = set; then
2835 enableval="$enable_sip"
2836 sip=$enableval
2838 echo "$as_me:$LINENO: checking SIP protocol" >&5
2839 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6
2840 if test "$sip" = "yes" ; then
2841 OPAL_SIP=1
2843 cat >>confdefs.h <<\_ACEOF
2844 #define OPAL_SIP 1
2845 _ACEOF
2847 echo "$as_me:$LINENO: result: enabled" >&5
2848 echo "${ECHO_T}enabled" >&6
2849 else
2850 OPAL_SIP=0
2852 echo "$as_me:$LINENO: result: disabled" >&5
2853 echo "${ECHO_T}disabled" >&6
2857 h323=yes
2858 # Check whether --enable-h323 or --disable-h323 was given.
2859 if test "${enable_h323+set}" = set; then
2860 enableval="$enable_h323"
2861 h323=$enableval
2863 echo "$as_me:$LINENO: checking H.323 protocol" >&5
2864 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6
2865 if test "$h323" = "yes" ; then
2866 OPAL_H323=1
2868 cat >>confdefs.h <<\_ACEOF
2869 #define OPAL_H323 1
2870 _ACEOF
2872 echo "$as_me:$LINENO: result: enabled" >&5
2873 echo "${ECHO_T}enabled" >&6
2874 else
2875 OPAL_H323=0
2877 echo "$as_me:$LINENO: result: disabled" >&5
2878 echo "${ECHO_T}disabled" >&6
2880 OPAL_H323=$OPAL_H323
2890 ac_config_files="$ac_config_files opal_inc.mak"
2892 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
2895 cat >confcache <<\_ACEOF
2896 # This file is a shell script that caches the results of configure
2897 # tests run on this system so they can be shared between configure
2898 # scripts and configure runs, see configure's option --config-cache.
2899 # It is not useful on other systems. If it contains results you don't
2900 # want to keep, you may remove or edit it.
2902 # config.status only pays attention to the cache file if you give it
2903 # the --recheck option to rerun configure.
2905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2907 # following values.
2909 _ACEOF
2911 # The following way of writing the cache mishandles newlines in values,
2912 # but we know of no workaround that is simple, portable, and efficient.
2913 # So, don't put newlines in cache variables' values.
2914 # Ultrix sh set writes to stderr and can't be redirected directly,
2915 # and sets the high bit in the cache file unless we assign to the vars.
2917 (set) 2>&1 |
2918 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2919 *ac_space=\ *)
2920 # `set' does not quote correctly, so add quotes (double-quote
2921 # substitution turns \\\\ into \\, and sed turns \\ into \).
2922 sed -n \
2923 "s/'/'\\\\''/g;
2924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2927 # `set' quotes correctly as required by POSIX, so do not add quotes.
2928 sed -n \
2929 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2931 esac;
2933 sed '
2934 t clear
2935 : clear
2936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2937 t end
2938 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2939 : end' >>confcache
2940 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2941 if test -w $cache_file; then
2942 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2943 cat confcache >$cache_file
2944 else
2945 echo "not updating unwritable cache $cache_file"
2948 rm -f confcache
2950 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2951 # Let make expand exec_prefix.
2952 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2956 # trailing colons and then remove the whole line if VPATH becomes empty
2957 # (actually we leave an empty line to preserve line numbers).
2958 if test "x$srcdir" = x.; then
2959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2960 s/:*\$(srcdir):*/:/;
2961 s/:*\${srcdir}:*/:/;
2962 s/:*@srcdir@:*/:/;
2963 s/^\([^=]*=[ ]*\):*/\1/;
2964 s/:*$//;
2965 s/^[^=]*=[ ]*$//;
2969 DEFS=-DHAVE_CONFIG_H
2971 ac_libobjs=
2972 ac_ltlibobjs=
2973 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2974 # 1. Remove the extension, and $U if already installed.
2975 ac_i=`echo "$ac_i" |
2976 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2977 # 2. Add them.
2978 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2979 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2980 done
2981 LIBOBJS=$ac_libobjs
2983 LTLIBOBJS=$ac_ltlibobjs
2987 : ${CONFIG_STATUS=./config.status}
2988 ac_clean_files_save=$ac_clean_files
2989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2990 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2991 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2992 cat >$CONFIG_STATUS <<_ACEOF
2993 #! $SHELL
2994 # Generated by $as_me.
2995 # Run this file to recreate the current configuration.
2996 # Compiler output produced by configure, useful for debugging
2997 # configure, is in config.log if it exists.
2999 debug=false
3000 ac_cs_recheck=false
3001 ac_cs_silent=false
3002 SHELL=\${CONFIG_SHELL-$SHELL}
3003 _ACEOF
3005 cat >>$CONFIG_STATUS <<\_ACEOF
3006 ## --------------------- ##
3007 ## M4sh Initialization. ##
3008 ## --------------------- ##
3010 # Be Bourne compatible
3011 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3012 emulate sh
3013 NULLCMD=:
3014 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3015 # is contrary to our usage. Disable this feature.
3016 alias -g '${1+"$@"}'='"$@"'
3017 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3018 set -o posix
3021 # Support unset when possible.
3022 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3023 as_unset=unset
3024 else
3025 as_unset=false
3029 # Work around bugs in pre-3.0 UWIN ksh.
3030 $as_unset ENV MAIL MAILPATH
3031 PS1='$ '
3032 PS2='> '
3033 PS4='+ '
3035 # NLS nuisances.
3036 for as_var in \
3037 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3038 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3039 LC_TELEPHONE LC_TIME
3041 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3042 eval $as_var=C; export $as_var
3043 else
3044 $as_unset $as_var
3046 done
3048 # Required to use basename.
3049 if expr a : '\(a\)' >/dev/null 2>&1; then
3050 as_expr=expr
3051 else
3052 as_expr=false
3055 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3056 as_basename=basename
3057 else
3058 as_basename=false
3062 # Name of the executable.
3063 as_me=`$as_basename "$0" ||
3064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3065 X"$0" : 'X\(//\)$' \| \
3066 X"$0" : 'X\(/\)$' \| \
3067 . : '\(.\)' 2>/dev/null ||
3068 echo X/"$0" |
3069 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3070 /^X\/\(\/\/\)$/{ s//\1/; q; }
3071 /^X\/\(\/\).*/{ s//\1/; q; }
3072 s/.*/./; q'`
3075 # PATH needs CR, and LINENO needs CR and PATH.
3076 # Avoid depending upon Character Ranges.
3077 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3078 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3079 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3080 as_cr_digits='0123456789'
3081 as_cr_alnum=$as_cr_Letters$as_cr_digits
3083 # The user is always right.
3084 if test "${PATH_SEPARATOR+set}" != set; then
3085 echo "#! /bin/sh" >conf$$.sh
3086 echo "exit 0" >>conf$$.sh
3087 chmod +x conf$$.sh
3088 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3089 PATH_SEPARATOR=';'
3090 else
3091 PATH_SEPARATOR=:
3093 rm -f conf$$.sh
3097 as_lineno_1=$LINENO
3098 as_lineno_2=$LINENO
3099 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3100 test "x$as_lineno_1" != "x$as_lineno_2" &&
3101 test "x$as_lineno_3" = "x$as_lineno_2" || {
3102 # Find who we are. Look in the path if we contain no path at all
3103 # relative or not.
3104 case $0 in
3105 *[\\/]* ) as_myself=$0 ;;
3106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3112 done
3115 esac
3116 # We did not find ourselves, most probably we were run as `sh COMMAND'
3117 # in which case we are not to be found in the path.
3118 if test "x$as_myself" = x; then
3119 as_myself=$0
3121 if test ! -f "$as_myself"; then
3122 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3123 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3124 { (exit 1); exit 1; }; }
3126 case $CONFIG_SHELL in
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for as_base in sh bash ksh sh5; do
3134 case $as_dir in
3136 if ("$as_dir/$as_base" -c '
3137 as_lineno_1=$LINENO
3138 as_lineno_2=$LINENO
3139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3140 test "x$as_lineno_1" != "x$as_lineno_2" &&
3141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3142 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3143 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3144 CONFIG_SHELL=$as_dir/$as_base
3145 export CONFIG_SHELL
3146 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3147 fi;;
3148 esac
3149 done
3150 done
3152 esac
3154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3155 # uniformly replaced by the line number. The first 'sed' inserts a
3156 # line-number line before each line; the second 'sed' does the real
3157 # work. The second script uses 'N' to pair each line-number line
3158 # with the numbered line, and appends trailing '-' during
3159 # substitution so that $LINENO is not a special case at line end.
3160 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3161 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3162 sed '=' <$as_myself |
3163 sed '
3165 s,$,-,
3166 : loop
3167 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3168 t loop
3169 s,-$,,
3170 s,^['$as_cr_digits']*\n,,
3171 ' >$as_me.lineno &&
3172 chmod +x $as_me.lineno ||
3173 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3174 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3175 { (exit 1); exit 1; }; }
3177 # Don't try to exec as it changes $[0], causing all sort of problems
3178 # (the dirname of $[0] is not the place where we might find the
3179 # original and so on. Autoconf is especially sensible to this).
3180 . ./$as_me.lineno
3181 # Exit status is that of the last command.
3182 exit
3186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3187 *c*,-n*) ECHO_N= ECHO_C='
3188 ' ECHO_T=' ' ;;
3189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3191 esac
3193 if expr a : '\(a\)' >/dev/null 2>&1; then
3194 as_expr=expr
3195 else
3196 as_expr=false
3199 rm -f conf$$ conf$$.exe conf$$.file
3200 echo >conf$$.file
3201 if ln -s conf$$.file conf$$ 2>/dev/null; then
3202 # We could just check for DJGPP; but this test a) works b) is more generic
3203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3204 if test -f conf$$.exe; then
3205 # Don't use ln at all; we don't have any links
3206 as_ln_s='cp -p'
3207 else
3208 as_ln_s='ln -s'
3210 elif ln conf$$.file conf$$ 2>/dev/null; then
3211 as_ln_s=ln
3212 else
3213 as_ln_s='cp -p'
3215 rm -f conf$$ conf$$.exe conf$$.file
3217 if mkdir -p . 2>/dev/null; then
3218 as_mkdir_p=:
3219 else
3220 as_mkdir_p=false
3223 as_executable_p="test -f"
3225 # Sed expression to map a string onto a valid CPP name.
3226 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3228 # Sed expression to map a string onto a valid variable name.
3229 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3232 # IFS
3233 # We need space, tab and new line, in precisely that order.
3234 as_nl='
3236 IFS=" $as_nl"
3238 # CDPATH.
3239 $as_unset CDPATH
3241 exec 6>&1
3243 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3244 # report actual input values of CONFIG_FILES etc. instead of their
3245 # values after options handling. Logging --version etc. is OK.
3246 exec 5>>config.log
3248 echo
3249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3250 ## Running $as_me. ##
3251 _ASBOX
3252 } >&5
3253 cat >&5 <<_CSEOF
3255 This file was extended by $as_me, which was
3256 generated by GNU Autoconf 2.57. Invocation command line was
3258 CONFIG_FILES = $CONFIG_FILES
3259 CONFIG_HEADERS = $CONFIG_HEADERS
3260 CONFIG_LINKS = $CONFIG_LINKS
3261 CONFIG_COMMANDS = $CONFIG_COMMANDS
3262 $ $0 $@
3264 _CSEOF
3265 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3266 echo >&5
3267 _ACEOF
3269 # Files that config.status was made for.
3270 if test -n "$ac_config_files"; then
3271 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3274 if test -n "$ac_config_headers"; then
3275 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3278 if test -n "$ac_config_links"; then
3279 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3282 if test -n "$ac_config_commands"; then
3283 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3286 cat >>$CONFIG_STATUS <<\_ACEOF
3288 ac_cs_usage="\
3289 \`$as_me' instantiates files from templates according to the
3290 current configuration.
3292 Usage: $0 [OPTIONS] [FILE]...
3294 -h, --help print this help, then exit
3295 -V, --version print version number, then exit
3296 -q, --quiet do not print progress messages
3297 -d, --debug don't remove temporary files
3298 --recheck update $as_me by reconfiguring in the same conditions
3299 --file=FILE[:TEMPLATE]
3300 instantiate the configuration file FILE
3301 --header=FILE[:TEMPLATE]
3302 instantiate the configuration header FILE
3304 Configuration files:
3305 $config_files
3307 Configuration headers:
3308 $config_headers
3310 Report bugs to <bug-autoconf@gnu.org>."
3311 _ACEOF
3313 cat >>$CONFIG_STATUS <<_ACEOF
3314 ac_cs_version="\\
3315 config.status
3316 configured by $0, generated by GNU Autoconf 2.57,
3317 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3319 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3320 Free Software Foundation, Inc.
3321 This config.status script is free software; the Free Software Foundation
3322 gives unlimited permission to copy, distribute and modify it."
3323 srcdir=$srcdir
3324 _ACEOF
3326 cat >>$CONFIG_STATUS <<\_ACEOF
3327 # If no file are specified by the user, then we need to provide default
3328 # value. By we need to know if files were specified by the user.
3329 ac_need_defaults=:
3330 while test $# != 0
3332 case $1 in
3333 --*=*)
3334 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3335 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3336 ac_shift=:
3339 ac_option=$1
3340 ac_optarg=$2
3341 ac_shift=shift
3343 *) # This is not an option, so the user has probably given explicit
3344 # arguments.
3345 ac_option=$1
3346 ac_need_defaults=false;;
3347 esac
3349 case $ac_option in
3350 # Handling of the options.
3351 _ACEOF
3352 cat >>$CONFIG_STATUS <<\_ACEOF
3353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3354 ac_cs_recheck=: ;;
3355 --version | --vers* | -V )
3356 echo "$ac_cs_version"; exit 0 ;;
3357 --he | --h)
3358 # Conflict between --help and --header
3359 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3360 Try \`$0 --help' for more information." >&5
3361 echo "$as_me: error: ambiguous option: $1
3362 Try \`$0 --help' for more information." >&2;}
3363 { (exit 1); exit 1; }; };;
3364 --help | --hel | -h )
3365 echo "$ac_cs_usage"; exit 0 ;;
3366 --debug | --d* | -d )
3367 debug=: ;;
3368 --file | --fil | --fi | --f )
3369 $ac_shift
3370 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3371 ac_need_defaults=false;;
3372 --header | --heade | --head | --hea )
3373 $ac_shift
3374 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3375 ac_need_defaults=false;;
3376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3378 ac_cs_silent=: ;;
3380 # This is an error.
3381 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3382 Try \`$0 --help' for more information." >&5
3383 echo "$as_me: error: unrecognized option: $1
3384 Try \`$0 --help' for more information." >&2;}
3385 { (exit 1); exit 1; }; } ;;
3387 *) ac_config_targets="$ac_config_targets $1" ;;
3389 esac
3390 shift
3391 done
3393 ac_configure_extra_args=
3395 if $ac_cs_silent; then
3396 exec 6>/dev/null
3397 ac_configure_extra_args="$ac_configure_extra_args --silent"
3400 _ACEOF
3401 cat >>$CONFIG_STATUS <<_ACEOF
3402 if \$ac_cs_recheck; then
3403 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3404 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3407 _ACEOF
3413 cat >>$CONFIG_STATUS <<\_ACEOF
3414 for ac_config_target in $ac_config_targets
3416 case "$ac_config_target" in
3417 # Handling of arguments.
3418 "opal_inc.mak" ) CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
3419 "include/opal/buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
3420 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3421 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3422 { (exit 1); exit 1; }; };;
3423 esac
3424 done
3426 # If the user did not use the arguments to specify the items to instantiate,
3427 # then the envvar interface is used. Set only those that are not.
3428 # We use the long form for the default assignment because of an extremely
3429 # bizarre bug on SunOS 4.1.3.
3430 if $ac_need_defaults; then
3431 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3432 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3435 # Have a temporary directory for convenience. Make it in the build tree
3436 # simply because there is no reason to put it here, and in addition,
3437 # creating and moving files from /tmp can sometimes cause problems.
3438 # Create a temporary directory, and hook for its removal unless debugging.
3439 $debug ||
3441 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3442 trap '{ (exit 1); exit 1; }' 1 2 13 15
3445 # Create a (secure) tmp directory for tmp files.
3448 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3449 test -n "$tmp" && test -d "$tmp"
3450 } ||
3452 tmp=./confstat$$-$RANDOM
3453 (umask 077 && mkdir $tmp)
3454 } ||
3456 echo "$me: cannot create a temporary directory in ." >&2
3457 { (exit 1); exit 1; }
3460 _ACEOF
3462 cat >>$CONFIG_STATUS <<_ACEOF
3465 # CONFIG_FILES section.
3468 # No need to generate the scripts if there are no CONFIG_FILES.
3469 # This happens for instance when ./config.status config.h
3470 if test -n "\$CONFIG_FILES"; then
3471 # Protect against being on the right side of a sed subst in config.status.
3472 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3473 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3474 s,@SHELL@,$SHELL,;t t
3475 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3476 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3477 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3478 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3479 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3480 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3481 s,@exec_prefix@,$exec_prefix,;t t
3482 s,@prefix@,$prefix,;t t
3483 s,@program_transform_name@,$program_transform_name,;t t
3484 s,@bindir@,$bindir,;t t
3485 s,@sbindir@,$sbindir,;t t
3486 s,@libexecdir@,$libexecdir,;t t
3487 s,@datadir@,$datadir,;t t
3488 s,@sysconfdir@,$sysconfdir,;t t
3489 s,@sharedstatedir@,$sharedstatedir,;t t
3490 s,@localstatedir@,$localstatedir,;t t
3491 s,@libdir@,$libdir,;t t
3492 s,@includedir@,$includedir,;t t
3493 s,@oldincludedir@,$oldincludedir,;t t
3494 s,@infodir@,$infodir,;t t
3495 s,@mandir@,$mandir,;t t
3496 s,@build_alias@,$build_alias,;t t
3497 s,@host_alias@,$host_alias,;t t
3498 s,@target_alias@,$target_alias,;t t
3499 s,@DEFS@,$DEFS,;t t
3500 s,@ECHO_C@,$ECHO_C,;t t
3501 s,@ECHO_N@,$ECHO_N,;t t
3502 s,@ECHO_T@,$ECHO_T,;t t
3503 s,@LIBS@,$LIBS,;t t
3504 s,@CXX@,$CXX,;t t
3505 s,@CXXFLAGS@,$CXXFLAGS,;t t
3506 s,@LDFLAGS@,$LDFLAGS,;t t
3507 s,@CPPFLAGS@,$CPPFLAGS,;t t
3508 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
3509 s,@EXEEXT@,$EXEEXT,;t t
3510 s,@OBJEXT@,$OBJEXT,;t t
3511 s,@OPALDIR@,$OPALDIR,;t t
3512 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
3513 s,@OPAL_VERSION@,$OPAL_VERSION,;t t
3514 s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
3515 s,@PWLIBDIR@,$PWLIBDIR,;t t
3516 s,@OPAL_SYSTEM_SPEEX@,$OPAL_SYSTEM_SPEEX,;t t
3517 s,@CC@,$CC,;t t
3518 s,@CFLAGS@,$CFLAGS,;t t
3519 s,@ac_ct_CC@,$ac_ct_CC,;t t
3520 s,@OPAL_SIP@,$OPAL_SIP,;t t
3521 s,@OPAL_H323@,$OPAL_H323,;t t
3522 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
3523 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
3524 s,@LIBOBJS@,$LIBOBJS,;t t
3525 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3526 CEOF
3528 _ACEOF
3530 cat >>$CONFIG_STATUS <<\_ACEOF
3531 # Split the substitutions into bite-sized pieces for seds with
3532 # small command number limits, like on Digital OSF/1 and HP-UX.
3533 ac_max_sed_lines=48
3534 ac_sed_frag=1 # Number of current file.
3535 ac_beg=1 # First line for current file.
3536 ac_end=$ac_max_sed_lines # Line after last line for current file.
3537 ac_more_lines=:
3538 ac_sed_cmds=
3539 while $ac_more_lines; do
3540 if test $ac_beg -gt 1; then
3541 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3542 else
3543 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3545 if test ! -s $tmp/subs.frag; then
3546 ac_more_lines=false
3547 else
3548 # The purpose of the label and of the branching condition is to
3549 # speed up the sed processing (if there are no `@' at all, there
3550 # is no need to browse any of the substitutions).
3551 # These are the two extra sed commands mentioned above.
3552 (echo ':t
3553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3554 if test -z "$ac_sed_cmds"; then
3555 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3556 else
3557 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3559 ac_sed_frag=`expr $ac_sed_frag + 1`
3560 ac_beg=$ac_end
3561 ac_end=`expr $ac_end + $ac_max_sed_lines`
3563 done
3564 if test -z "$ac_sed_cmds"; then
3565 ac_sed_cmds=cat
3567 fi # test -n "$CONFIG_FILES"
3569 _ACEOF
3570 cat >>$CONFIG_STATUS <<\_ACEOF
3571 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3573 case $ac_file in
3574 - | *:- | *:-:* ) # input from stdin
3575 cat >$tmp/stdin
3576 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3577 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3578 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3579 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3580 * ) ac_file_in=$ac_file.in ;;
3581 esac
3583 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3584 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3586 X"$ac_file" : 'X\(//\)[^/]' \| \
3587 X"$ac_file" : 'X\(//\)$' \| \
3588 X"$ac_file" : 'X\(/\)' \| \
3589 . : '\(.\)' 2>/dev/null ||
3590 echo X"$ac_file" |
3591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3593 /^X\(\/\/\)$/{ s//\1/; q; }
3594 /^X\(\/\).*/{ s//\1/; q; }
3595 s/.*/./; q'`
3596 { if $as_mkdir_p; then
3597 mkdir -p "$ac_dir"
3598 else
3599 as_dir="$ac_dir"
3600 as_dirs=
3601 while test ! -d "$as_dir"; do
3602 as_dirs="$as_dir $as_dirs"
3603 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3605 X"$as_dir" : 'X\(//\)[^/]' \| \
3606 X"$as_dir" : 'X\(//\)$' \| \
3607 X"$as_dir" : 'X\(/\)' \| \
3608 . : '\(.\)' 2>/dev/null ||
3609 echo X"$as_dir" |
3610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3612 /^X\(\/\/\)$/{ s//\1/; q; }
3613 /^X\(\/\).*/{ s//\1/; q; }
3614 s/.*/./; q'`
3615 done
3616 test ! -n "$as_dirs" || mkdir $as_dirs
3617 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3619 { (exit 1); exit 1; }; }; }
3621 ac_builddir=.
3623 if test "$ac_dir" != .; then
3624 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3625 # A "../" for each directory in $ac_dir_suffix.
3626 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3627 else
3628 ac_dir_suffix= ac_top_builddir=
3631 case $srcdir in
3632 .) # No --srcdir option. We are building in place.
3633 ac_srcdir=.
3634 if test -z "$ac_top_builddir"; then
3635 ac_top_srcdir=.
3636 else
3637 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3638 fi ;;
3639 [\\/]* | ?:[\\/]* ) # Absolute path.
3640 ac_srcdir=$srcdir$ac_dir_suffix;
3641 ac_top_srcdir=$srcdir ;;
3642 *) # Relative path.
3643 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3644 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3645 esac
3646 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3647 # absolute.
3648 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3649 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
3650 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3651 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3655 if test x"$ac_file" != x-; then
3656 { echo "$as_me:$LINENO: creating $ac_file" >&5
3657 echo "$as_me: creating $ac_file" >&6;}
3658 rm -f "$ac_file"
3660 # Let's still pretend it is `configure' which instantiates (i.e., don't
3661 # use $as_me), people would be surprised to read:
3662 # /* config.h. Generated by config.status. */
3663 if test x"$ac_file" = x-; then
3664 configure_input=
3665 else
3666 configure_input="$ac_file. "
3668 configure_input=$configure_input"Generated from `echo $ac_file_in |
3669 sed 's,.*/,,'` by configure."
3671 # First look for the input files in the build tree, otherwise in the
3672 # src tree.
3673 ac_file_inputs=`IFS=:
3674 for f in $ac_file_in; do
3675 case $f in
3676 -) echo $tmp/stdin ;;
3677 [\\/$]*)
3678 # Absolute (can't be DOS-style, as IFS=:)
3679 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3680 echo "$as_me: error: cannot find input file: $f" >&2;}
3681 { (exit 1); exit 1; }; }
3682 echo $f;;
3683 *) # Relative
3684 if test -f "$f"; then
3685 # Build tree
3686 echo $f
3687 elif test -f "$srcdir/$f"; then
3688 # Source tree
3689 echo $srcdir/$f
3690 else
3691 # /dev/null tree
3692 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3693 echo "$as_me: error: cannot find input file: $f" >&2;}
3694 { (exit 1); exit 1; }; }
3695 fi;;
3696 esac
3697 done` || { (exit 1); exit 1; }
3698 _ACEOF
3699 cat >>$CONFIG_STATUS <<_ACEOF
3700 sed "$ac_vpsub
3701 $extrasub
3702 _ACEOF
3703 cat >>$CONFIG_STATUS <<\_ACEOF
3705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3706 s,@configure_input@,$configure_input,;t t
3707 s,@srcdir@,$ac_srcdir,;t t
3708 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3709 s,@top_srcdir@,$ac_top_srcdir,;t t
3710 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3711 s,@builddir@,$ac_builddir,;t t
3712 s,@abs_builddir@,$ac_abs_builddir,;t t
3713 s,@top_builddir@,$ac_top_builddir,;t t
3714 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3715 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3716 rm -f $tmp/stdin
3717 if test x"$ac_file" != x-; then
3718 mv $tmp/out $ac_file
3719 else
3720 cat $tmp/out
3721 rm -f $tmp/out
3724 done
3725 _ACEOF
3726 cat >>$CONFIG_STATUS <<\_ACEOF
3729 # CONFIG_HEADER section.
3732 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3733 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3735 # ac_d sets the value in "#define NAME VALUE" lines.
3736 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3737 ac_dB='[ ].*$,\1#\2'
3738 ac_dC=' '
3739 ac_dD=',;t'
3740 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3741 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3742 ac_uB='$,\1#\2define\3'
3743 ac_uC=' '
3744 ac_uD=',;t'
3746 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3747 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3748 case $ac_file in
3749 - | *:- | *:-:* ) # input from stdin
3750 cat >$tmp/stdin
3751 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3752 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3753 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3754 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3755 * ) ac_file_in=$ac_file.in ;;
3756 esac
3758 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
3759 echo "$as_me: creating $ac_file" >&6;}
3761 # First look for the input files in the build tree, otherwise in the
3762 # src tree.
3763 ac_file_inputs=`IFS=:
3764 for f in $ac_file_in; do
3765 case $f in
3766 -) echo $tmp/stdin ;;
3767 [\\/$]*)
3768 # Absolute (can't be DOS-style, as IFS=:)
3769 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3770 echo "$as_me: error: cannot find input file: $f" >&2;}
3771 { (exit 1); exit 1; }; }
3772 echo $f;;
3773 *) # Relative
3774 if test -f "$f"; then
3775 # Build tree
3776 echo $f
3777 elif test -f "$srcdir/$f"; then
3778 # Source tree
3779 echo $srcdir/$f
3780 else
3781 # /dev/null tree
3782 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3783 echo "$as_me: error: cannot find input file: $f" >&2;}
3784 { (exit 1); exit 1; }; }
3785 fi;;
3786 esac
3787 done` || { (exit 1); exit 1; }
3788 # Remove the trailing spaces.
3789 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3791 _ACEOF
3793 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3794 # `conftest.undefs', that substitutes the proper values into
3795 # config.h.in to produce config.h. The first handles `#define'
3796 # templates, and the second `#undef' templates.
3797 # And first: Protect against being on the right side of a sed subst in
3798 # config.status. Protect against being in an unquoted here document
3799 # in config.status.
3800 rm -f conftest.defines conftest.undefs
3801 # Using a here document instead of a string reduces the quoting nightmare.
3802 # Putting comments in sed scripts is not portable.
3804 # `end' is used to avoid that the second main sed command (meant for
3805 # 0-ary CPP macros) applies to n-ary macro definitions.
3806 # See the Autoconf documentation for `clear'.
3807 cat >confdef2sed.sed <<\_ACEOF
3808 s/[\\&,]/\\&/g
3809 s,[\\$`],\\&,g
3810 t clear
3811 : clear
3812 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3813 t end
3814 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3815 : end
3816 _ACEOF
3817 # If some macros were called several times there might be several times
3818 # the same #defines, which is useless. Nevertheless, we may not want to
3819 # sort them, since we want the *last* AC-DEFINE to be honored.
3820 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3821 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3822 rm -f confdef2sed.sed
3824 # This sed command replaces #undef with comments. This is necessary, for
3825 # example, in the case of _POSIX_SOURCE, which is predefined and required
3826 # on some systems where configure will not decide to define it.
3827 cat >>conftest.undefs <<\_ACEOF
3828 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3829 _ACEOF
3831 # Break up conftest.defines because some shells have a limit on the size
3832 # of here documents, and old seds have small limits too (100 cmds).
3833 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3834 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3835 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3836 echo ' :' >>$CONFIG_STATUS
3837 rm -f conftest.tail
3838 while grep . conftest.defines >/dev/null
3840 # Write a limited-size here document to $tmp/defines.sed.
3841 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3842 # Speed up: don't consider the non `#define' lines.
3843 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3844 # Work around the forget-to-reset-the-flag bug.
3845 echo 't clr' >>$CONFIG_STATUS
3846 echo ': clr' >>$CONFIG_STATUS
3847 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3848 echo 'CEOF
3849 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3850 rm -f $tmp/in
3851 mv $tmp/out $tmp/in
3852 ' >>$CONFIG_STATUS
3853 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3854 rm -f conftest.defines
3855 mv conftest.tail conftest.defines
3856 done
3857 rm -f conftest.defines
3858 echo ' fi # grep' >>$CONFIG_STATUS
3859 echo >>$CONFIG_STATUS
3861 # Break up conftest.undefs because some shells have a limit on the size
3862 # of here documents, and old seds have small limits too (100 cmds).
3863 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3864 rm -f conftest.tail
3865 while grep . conftest.undefs >/dev/null
3867 # Write a limited-size here document to $tmp/undefs.sed.
3868 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3869 # Speed up: don't consider the non `#undef'
3870 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3871 # Work around the forget-to-reset-the-flag bug.
3872 echo 't clr' >>$CONFIG_STATUS
3873 echo ': clr' >>$CONFIG_STATUS
3874 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3875 echo 'CEOF
3876 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3877 rm -f $tmp/in
3878 mv $tmp/out $tmp/in
3879 ' >>$CONFIG_STATUS
3880 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3881 rm -f conftest.undefs
3882 mv conftest.tail conftest.undefs
3883 done
3884 rm -f conftest.undefs
3886 cat >>$CONFIG_STATUS <<\_ACEOF
3887 # Let's still pretend it is `configure' which instantiates (i.e., don't
3888 # use $as_me), people would be surprised to read:
3889 # /* config.h. Generated by config.status. */
3890 if test x"$ac_file" = x-; then
3891 echo "/* Generated by configure. */" >$tmp/config.h
3892 else
3893 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
3895 cat $tmp/in >>$tmp/config.h
3896 rm -f $tmp/in
3897 if test x"$ac_file" != x-; then
3898 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
3899 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
3900 echo "$as_me: $ac_file is unchanged" >&6;}
3901 else
3902 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3904 X"$ac_file" : 'X\(//\)[^/]' \| \
3905 X"$ac_file" : 'X\(//\)$' \| \
3906 X"$ac_file" : 'X\(/\)' \| \
3907 . : '\(.\)' 2>/dev/null ||
3908 echo X"$ac_file" |
3909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3911 /^X\(\/\/\)$/{ s//\1/; q; }
3912 /^X\(\/\).*/{ s//\1/; q; }
3913 s/.*/./; q'`
3914 { if $as_mkdir_p; then
3915 mkdir -p "$ac_dir"
3916 else
3917 as_dir="$ac_dir"
3918 as_dirs=
3919 while test ! -d "$as_dir"; do
3920 as_dirs="$as_dir $as_dirs"
3921 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3923 X"$as_dir" : 'X\(//\)[^/]' \| \
3924 X"$as_dir" : 'X\(//\)$' \| \
3925 X"$as_dir" : 'X\(/\)' \| \
3926 . : '\(.\)' 2>/dev/null ||
3927 echo X"$as_dir" |
3928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3930 /^X\(\/\/\)$/{ s//\1/; q; }
3931 /^X\(\/\).*/{ s//\1/; q; }
3932 s/.*/./; q'`
3933 done
3934 test ! -n "$as_dirs" || mkdir $as_dirs
3935 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3936 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3937 { (exit 1); exit 1; }; }; }
3939 rm -f $ac_file
3940 mv $tmp/config.h $ac_file
3942 else
3943 cat $tmp/config.h
3944 rm -f $tmp/config.h
3946 done
3947 _ACEOF
3949 cat >>$CONFIG_STATUS <<\_ACEOF
3951 { (exit 0); exit 0; }
3952 _ACEOF
3953 chmod +x $CONFIG_STATUS
3954 ac_clean_files=$ac_clean_files_save
3957 # configure is writing to config.log, and then calls config.status.
3958 # config.status does its own redirection, appending to config.log.
3959 # Unfortunately, on DOS this fails, as config.log is still kept open
3960 # by configure, so config.status won't be able to write to it; its
3961 # output is simply discarded. So we exec the FD to /dev/null,
3962 # effectively closing config.log, so it can be properly (re)opened and
3963 # appended to by config.status. When coming back to configure, we
3964 # need to make the FD available again.
3965 if test "$no_create" != yes; then
3966 ac_cs_success=:
3967 ac_config_status_args=
3968 test "$silent" = yes &&
3969 ac_config_status_args="$ac_config_status_args --quiet"
3970 exec 5>/dev/null
3971 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3972 exec 5>>config.log
3973 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3974 # would make configure fail if this is the last instruction.
3975 $ac_cs_success || { (exit 1); exit 1; }