OSDN Git Service

Add MS7619SE
[uclinux-h8/uClinux-dist.git] / lib / libopenh323 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117        ;;
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
123   fi
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; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137          /*)
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
153 ;;
154   esac
155
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 '
166       N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
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'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="include/h323.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subdirs_all="$ac_subdirs_all plugins"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP EGREP OPENH323DIR INSTALLPREFIX LIBDIR MAJOR_VERSION MINOR_VERSION BUILD_NUMBER OPENH323_VERSION PWLIBDIR NOTRACE NOAUDIOCODECS NOVIDEO H323_RFC2190_AVCODEC H323_RFC2190_AVCODEC_DIR H323_AVCODEC H323_VICH263 H323_TRANSNEXUS_OSP H323_T38 H323_H248 H323_H450 H323_H460 H323_H501 H323_T120 H323_IXJ STDCCFLAGS LDLIBS ENDLDLIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA subdirs LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXX_set=${CXX+set}
755 ac_env_CXX_value=$CXX
756 ac_cv_env_CXX_set=${CXX+set}
757 ac_cv_env_CXX_value=$CXX
758 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
759 ac_env_CXXFLAGS_value=$CXXFLAGS
760 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
761 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CC_set=${CC+set}
771 ac_env_CC_value=$CC
772 ac_cv_env_CC_set=${CC+set}
773 ac_cv_env_CC_value=$CC
774 ac_env_CFLAGS_set=${CFLAGS+set}
775 ac_env_CFLAGS_value=$CFLAGS
776 ac_cv_env_CFLAGS_set=${CFLAGS+set}
777 ac_cv_env_CFLAGS_value=$CFLAGS
778 ac_env_CPP_set=${CPP+set}
779 ac_env_CPP_value=$CPP
780 ac_cv_env_CPP_set=${CPP+set}
781 ac_cv_env_CPP_value=$CPP
782
783 #
784 # Report the --help message.
785 #
786 if test "$ac_init_help" = "long"; then
787   # Omit some internal or obsolete options to make the list less imposing.
788   # This message is too long to be a string in the A/UX 3.1 sh.
789   cat <<_ACEOF
790 \`configure' configures this package to adapt to many kinds of systems.
791
792 Usage: $0 [OPTION]... [VAR=VALUE]...
793
794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
795 VAR=VALUE.  See below for descriptions of some of the useful variables.
796
797 Defaults for the options are specified in brackets.
798
799 Configuration:
800   -h, --help              display this help and exit
801       --help=short        display options specific to this package
802       --help=recursive    display the short help of all the included packages
803   -V, --version           display version information and exit
804   -q, --quiet, --silent   do not print \`checking...' messages
805       --cache-file=FILE   cache test results in FILE [disabled]
806   -C, --config-cache      alias for \`--cache-file=config.cache'
807   -n, --no-create         do not create output files
808       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
809
810 _ACEOF
811
812   cat <<_ACEOF
813 Installation directories:
814   --prefix=PREFIX         install architecture-independent files in PREFIX
815                           [$ac_default_prefix]
816   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
817                           [PREFIX]
818
819 By default, \`make install' will install all the files in
820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822 for instance \`--prefix=\$HOME'.
823
824 For better control, use the options below.
825
826 Fine tuning of the installation directories:
827   --bindir=DIR           user executables [EPREFIX/bin]
828   --sbindir=DIR          system admin executables [EPREFIX/sbin]
829   --libexecdir=DIR       program executables [EPREFIX/libexec]
830   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
831   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
832   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
833   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
834   --libdir=DIR           object code libraries [EPREFIX/lib]
835   --includedir=DIR       C header files [PREFIX/include]
836   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
837   --infodir=DIR          info documentation [PREFIX/info]
838   --mandir=DIR           man documentation [PREFIX/man]
839 _ACEOF
840
841   cat <<\_ACEOF
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-versioncheck    disable PWLib version check
853   --enable-minsize        minimise the size of the lib by disabling least used options
854   --disable-asntracing    disable ASN tracing
855   --disable-audio         disable audio codecs
856   --enable-embeddedgsm    embed GSM codec via static linking
857   --disable-video         disable video functions
858   --enable-rfc2190avcodec   set directory for H263 using RFC2190-compatible ffmpeg
859   --enable-h263avcodec  enable search for H.263 using non-RFC2190-compatible ffmpeg
860   --enable-vich263        enable search for H.263 using VIC
861   --disable-transnexusosp disable support for the Transnexus OSP toolkit
862   --disable-t38           disable T.38
863   --disable-h248          enable H.248
864   --disable-h450          disable H.450
865   --disable-h460          disable H.460
866   --disable-h501          disable H.501
867   --disable-t120          disable T.120
868   --disable-ixj           disable Quicknet card support
869
870 Some influential environment variables:
871   CXX         C++ compiler command
872   CXXFLAGS    C++ compiler flags
873   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
874               nonstandard directory <lib dir>
875   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
876               headers in a nonstandard directory <include dir>
877   CC          C compiler command
878   CFLAGS      C compiler flags
879   CPP         C preprocessor
880
881 Use these variables to override the choices made by `configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
883
884 _ACEOF
885 fi
886
887 if test "$ac_init_help" = "recursive"; then
888   # If there are subdirs, report their specific --help.
889   ac_popdir=`pwd`
890   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891     test -d $ac_dir || continue
892     ac_builddir=.
893
894 if test "$ac_dir" != .; then
895   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896   # A "../" for each directory in $ac_dir_suffix.
897   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 else
899   ac_dir_suffix= ac_top_builddir=
900 fi
901
902 case $srcdir in
903   .)  # No --srcdir option.  We are building in place.
904     ac_srcdir=.
905     if test -z "$ac_top_builddir"; then
906        ac_top_srcdir=.
907     else
908        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909     fi ;;
910   [\\/]* | ?:[\\/]* )  # Absolute path.
911     ac_srcdir=$srcdir$ac_dir_suffix;
912     ac_top_srcdir=$srcdir ;;
913   *) # Relative path.
914     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915     ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 esac
917
918 # Do not use `cd foo && pwd` to compute absolute paths, because
919 # the directories may not exist.
920 case `pwd` in
921 .) ac_abs_builddir="$ac_dir";;
922 *)
923   case "$ac_dir" in
924   .) ac_abs_builddir=`pwd`;;
925   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926   *) ac_abs_builddir=`pwd`/"$ac_dir";;
927   esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *)
932   case ${ac_top_builddir}. in
933   .) ac_abs_top_builddir=$ac_abs_builddir;;
934   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936   esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_srcdir=$ac_srcdir;;
940 *)
941   case $ac_srcdir in
942   .) ac_abs_srcdir=$ac_abs_builddir;;
943   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945   esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *)
950   case $ac_top_srcdir in
951   .) ac_abs_top_srcdir=$ac_abs_builddir;;
952   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954   esac;;
955 esac
956
957     cd $ac_dir
958     # Check for guested configure; otherwise get Cygnus style configure.
959     if test -f $ac_srcdir/configure.gnu; then
960       echo
961       $SHELL $ac_srcdir/configure.gnu  --help=recursive
962     elif test -f $ac_srcdir/configure; then
963       echo
964       $SHELL $ac_srcdir/configure  --help=recursive
965     elif test -f $ac_srcdir/configure.ac ||
966            test -f $ac_srcdir/configure.in; then
967       echo
968       $ac_configure --help
969     else
970       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971     fi
972     cd "$ac_popdir"
973   done
974 fi
975
976 test -n "$ac_init_help" && exit 0
977 if $ac_init_version; then
978   cat <<\_ACEOF
979
980 Copyright (C) 2003 Free Software Foundation, Inc.
981 This configure script is free software; the Free Software Foundation
982 gives unlimited permission to copy, distribute and modify it.
983 _ACEOF
984   exit 0
985 fi
986 exec 5>config.log
987 cat >&5 <<_ACEOF
988 This file contains any messages produced by compilers while
989 running configure, to aid debugging if configure makes a mistake.
990
991 It was created by $as_me, which was
992 generated by GNU Autoconf 2.59.  Invocation command line was
993
994   $ $0 $@
995
996 _ACEOF
997 {
998 cat <<_ASUNAME
999 ## --------- ##
1000 ## Platform. ##
1001 ## --------- ##
1002
1003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1008
1009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1010 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1011
1012 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1013 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1015 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1016 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1017 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1018 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1019
1020 _ASUNAME
1021
1022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 for as_dir in $PATH
1024 do
1025   IFS=$as_save_IFS
1026   test -z "$as_dir" && as_dir=.
1027   echo "PATH: $as_dir"
1028 done
1029
1030 } >&5
1031
1032 cat >&5 <<_ACEOF
1033
1034
1035 ## ----------- ##
1036 ## Core tests. ##
1037 ## ----------- ##
1038
1039 _ACEOF
1040
1041
1042 # Keep a trace of the command line.
1043 # Strip out --no-create and --no-recursion so they do not pile up.
1044 # Strip out --silent because we don't want to record it for future runs.
1045 # Also quote any args containing shell meta-characters.
1046 # Make two passes to allow for proper duplicate-argument suppression.
1047 ac_configure_args=
1048 ac_configure_args0=
1049 ac_configure_args1=
1050 ac_sep=
1051 ac_must_keep_next=false
1052 for ac_pass in 1 2
1053 do
1054   for ac_arg
1055   do
1056     case $ac_arg in
1057     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1058     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059     | -silent | --silent | --silen | --sile | --sil)
1060       continue ;;
1061     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063     esac
1064     case $ac_pass in
1065     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1066     2)
1067       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1068       if test $ac_must_keep_next = true; then
1069         ac_must_keep_next=false # Got value, back to normal.
1070       else
1071         case $ac_arg in
1072           *=* | --config-cache | -C | -disable-* | --disable-* \
1073           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1074           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1075           | -with-* | --with-* | -without-* | --without-* | --x)
1076             case "$ac_configure_args0 " in
1077               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078             esac
1079             ;;
1080           -* ) ac_must_keep_next=true ;;
1081         esac
1082       fi
1083       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1084       # Get rid of the leading space.
1085       ac_sep=" "
1086       ;;
1087     esac
1088   done
1089 done
1090 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1091 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1092
1093 # When interrupted or exit'd, cleanup temporary files, and complete
1094 # config.log.  We remove comments because anyway the quotes in there
1095 # would cause problems or look ugly.
1096 # WARNING: Be sure not to use single quotes in there, as some shells,
1097 # such as our DU 5.0 friend, will then `close' the trap.
1098 trap 'exit_status=$?
1099   # Save into config.log some information that might help in debugging.
1100   {
1101     echo
1102
1103     cat <<\_ASBOX
1104 ## ---------------- ##
1105 ## Cache variables. ##
1106 ## ---------------- ##
1107 _ASBOX
1108     echo
1109     # The following way of writing the cache mishandles newlines in values,
1110 {
1111   (set) 2>&1 |
1112     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113     *ac_space=\ *)
1114       sed -n \
1115         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1116           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117       ;;
1118     *)
1119       sed -n \
1120         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121       ;;
1122     esac;
1123 }
1124     echo
1125
1126     cat <<\_ASBOX
1127 ## ----------------- ##
1128 ## Output variables. ##
1129 ## ----------------- ##
1130 _ASBOX
1131     echo
1132     for ac_var in $ac_subst_vars
1133     do
1134       eval ac_val=$`echo $ac_var`
1135       echo "$ac_var='"'"'$ac_val'"'"'"
1136     done | sort
1137     echo
1138
1139     if test -n "$ac_subst_files"; then
1140       cat <<\_ASBOX
1141 ## ------------- ##
1142 ## Output files. ##
1143 ## ------------- ##
1144 _ASBOX
1145       echo
1146       for ac_var in $ac_subst_files
1147       do
1148         eval ac_val=$`echo $ac_var`
1149         echo "$ac_var='"'"'$ac_val'"'"'"
1150       done | sort
1151       echo
1152     fi
1153
1154     if test -s confdefs.h; then
1155       cat <<\_ASBOX
1156 ## ----------- ##
1157 ## confdefs.h. ##
1158 ## ----------- ##
1159 _ASBOX
1160       echo
1161       sed "/^$/d" confdefs.h | sort
1162       echo
1163     fi
1164     test "$ac_signal" != 0 &&
1165       echo "$as_me: caught signal $ac_signal"
1166     echo "$as_me: exit $exit_status"
1167   } >&5
1168   rm -f core *.core &&
1169   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170     exit $exit_status
1171      ' 0
1172 for ac_signal in 1 2 13 15; do
1173   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 done
1175 ac_signal=0
1176
1177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1178 rm -rf conftest* confdefs.h
1179 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180 echo >confdefs.h
1181
1182 # Predefined preprocessor variables.
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 _ACEOF
1207
1208
1209 # Let the site file select an alternate cache file if it wants to.
1210 # Prefer explicitly selected file to automatically selected ones.
1211 if test -z "$CONFIG_SITE"; then
1212   if test "x$prefix" != xNONE; then
1213     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1214   else
1215     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216   fi
1217 fi
1218 for ac_site_file in $CONFIG_SITE; do
1219   if test -r "$ac_site_file"; then
1220     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1221 echo "$as_me: loading site script $ac_site_file" >&6;}
1222     sed 's/^/| /' "$ac_site_file" >&5
1223     . "$ac_site_file"
1224   fi
1225 done
1226
1227 if test -r "$cache_file"; then
1228   # Some versions of bash will fail to source /dev/null (special
1229   # files actually), so we avoid doing that.
1230   if test -f "$cache_file"; then
1231     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1232 echo "$as_me: loading cache $cache_file" >&6;}
1233     case $cache_file in
1234       [\\/]* | ?:[\\/]* ) . $cache_file;;
1235       *)                      . ./$cache_file;;
1236     esac
1237   fi
1238 else
1239   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1240 echo "$as_me: creating cache $cache_file" >&6;}
1241   >$cache_file
1242 fi
1243
1244 # Check that the precious variables saved in the cache have kept the same
1245 # value.
1246 ac_cache_corrupted=false
1247 for ac_var in `(set) 2>&1 |
1248                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1249   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1250   eval ac_new_set=\$ac_env_${ac_var}_set
1251   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1252   eval ac_new_val="\$ac_env_${ac_var}_value"
1253   case $ac_old_set,$ac_new_set in
1254     set,)
1255       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1257       ac_cache_corrupted=: ;;
1258     ,set)
1259       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1261       ac_cache_corrupted=: ;;
1262     ,);;
1263     *)
1264       if test "x$ac_old_val" != "x$ac_new_val"; then
1265         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1266 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1267         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1268 echo "$as_me:   former value:  $ac_old_val" >&2;}
1269         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1270 echo "$as_me:   current value: $ac_new_val" >&2;}
1271         ac_cache_corrupted=:
1272       fi;;
1273   esac
1274   # Pass precious variables to config.status.
1275   if test "$ac_new_set" = set; then
1276     case $ac_new_val in
1277     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279     *) ac_arg=$ac_var=$ac_new_val ;;
1280     esac
1281     case " $ac_configure_args " in
1282       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1283       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284     esac
1285   fi
1286 done
1287 if $ac_cache_corrupted; then
1288   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1289 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1290   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1291 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1292    { (exit 1); exit 1; }; }
1293 fi
1294
1295 ac_ext=c
1296 ac_cpp='$CPP $CPPFLAGS'
1297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320 ac_ext=cc
1321 ac_cpp='$CXXCPP $CPPFLAGS'
1322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1325 if test -n "$ac_tool_prefix"; then
1326   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1327   do
1328     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1330 echo "$as_me:$LINENO: checking for $ac_word" >&5
1331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1332 if test "${ac_cv_prog_CXX+set}" = set; then
1333   echo $ECHO_N "(cached) $ECHO_C" >&6
1334 else
1335   if test -n "$CXX"; then
1336   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1337 else
1338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1339 for as_dir in $PATH
1340 do
1341   IFS=$as_save_IFS
1342   test -z "$as_dir" && as_dir=.
1343   for ac_exec_ext in '' $ac_executable_extensions; do
1344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1345     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1347     break 2
1348   fi
1349 done
1350 done
1351
1352 fi
1353 fi
1354 CXX=$ac_cv_prog_CXX
1355 if test -n "$CXX"; then
1356   echo "$as_me:$LINENO: result: $CXX" >&5
1357 echo "${ECHO_T}$CXX" >&6
1358 else
1359   echo "$as_me:$LINENO: result: no" >&5
1360 echo "${ECHO_T}no" >&6
1361 fi
1362
1363     test -n "$CXX" && break
1364   done
1365 fi
1366 if test -z "$CXX"; then
1367   ac_ct_CXX=$CXX
1368   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1369 do
1370   # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   if test -n "$ac_ct_CXX"; then
1378   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1379 else
1380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381 for as_dir in $PATH
1382 do
1383   IFS=$as_save_IFS
1384   test -z "$as_dir" && as_dir=.
1385   for ac_exec_ext in '' $ac_executable_extensions; do
1386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1387     ac_cv_prog_ac_ct_CXX="$ac_prog"
1388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1389     break 2
1390   fi
1391 done
1392 done
1393
1394 fi
1395 fi
1396 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1397 if test -n "$ac_ct_CXX"; then
1398   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1399 echo "${ECHO_T}$ac_ct_CXX" >&6
1400 else
1401   echo "$as_me:$LINENO: result: no" >&5
1402 echo "${ECHO_T}no" >&6
1403 fi
1404
1405   test -n "$ac_ct_CXX" && break
1406 done
1407 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1408
1409   CXX=$ac_ct_CXX
1410 fi
1411
1412
1413 # Provide some information about the compiler.
1414 echo "$as_me:$LINENO:" \
1415      "checking for C++ compiler version" >&5
1416 ac_compiler=`set X $ac_compile; echo $2`
1417 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1418   (eval $ac_compiler --version </dev/null >&5) 2>&5
1419   ac_status=$?
1420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1421   (exit $ac_status); }
1422 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1423   (eval $ac_compiler -v </dev/null >&5) 2>&5
1424   ac_status=$?
1425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1426   (exit $ac_status); }
1427 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1428   (eval $ac_compiler -V </dev/null >&5) 2>&5
1429   ac_status=$?
1430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1431   (exit $ac_status); }
1432
1433 cat >conftest.$ac_ext <<_ACEOF
1434 /* confdefs.h.  */
1435 _ACEOF
1436 cat confdefs.h >>conftest.$ac_ext
1437 cat >>conftest.$ac_ext <<_ACEOF
1438 /* end confdefs.h.  */
1439
1440 int
1441 main ()
1442 {
1443
1444   ;
1445   return 0;
1446 }
1447 _ACEOF
1448 ac_clean_files_save=$ac_clean_files
1449 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1450 # Try to create an executable without -o first, disregard a.out.
1451 # It will help us diagnose broken compilers, and finding out an intuition
1452 # of exeext.
1453 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1454 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1455 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1456 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1457   (eval $ac_link_default) 2>&5
1458   ac_status=$?
1459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1460   (exit $ac_status); }; then
1461   # Find the output, starting from the most likely.  This scheme is
1462 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1463 # resort.
1464
1465 # Be careful to initialize this variable, since it used to be cached.
1466 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1467 ac_cv_exeext=
1468 # b.out is created by i960 compilers.
1469 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1470 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         ;;
1475     conftest.$ac_ext )
1476         # This is the source file.
1477         ;;
1478     [ab].out )
1479         # We found the default executable, but exeext='' is most
1480         # certainly right.
1481         break;;
1482     *.* )
1483         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1484         # FIXME: I believe we export ac_cv_exeext for Libtool,
1485         # but it would be cool to find out if it's true.  Does anybody
1486         # maintain Libtool? --akim.
1487         export ac_cv_exeext
1488         break;;
1489     * )
1490         break;;
1491   esac
1492 done
1493 else
1494   echo "$as_me: failed program was:" >&5
1495 sed 's/^/| /' conftest.$ac_ext >&5
1496
1497 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1498 See \`config.log' for more details." >&5
1499 echo "$as_me: error: C++ compiler cannot create executables
1500 See \`config.log' for more details." >&2;}
1501    { (exit 77); exit 77; }; }
1502 fi
1503
1504 ac_exeext=$ac_cv_exeext
1505 echo "$as_me:$LINENO: result: $ac_file" >&5
1506 echo "${ECHO_T}$ac_file" >&6
1507
1508 # Check the compiler produces executables we can run.  If not, either
1509 # the compiler is broken, or we cross compile.
1510 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1511 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1512 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1513 # If not cross compiling, check that we can run a simple program.
1514 if test "$cross_compiling" != yes; then
1515   if { ac_try='./$ac_file'
1516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1517   (eval $ac_try) 2>&5
1518   ac_status=$?
1519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1520   (exit $ac_status); }; }; then
1521     cross_compiling=no
1522   else
1523     if test "$cross_compiling" = maybe; then
1524         cross_compiling=yes
1525     else
1526         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1527 If you meant to cross compile, use \`--host'.
1528 See \`config.log' for more details." >&5
1529 echo "$as_me: error: cannot run C++ compiled programs.
1530 If you meant to cross compile, use \`--host'.
1531 See \`config.log' for more details." >&2;}
1532    { (exit 1); exit 1; }; }
1533     fi
1534   fi
1535 fi
1536 echo "$as_me:$LINENO: result: yes" >&5
1537 echo "${ECHO_T}yes" >&6
1538
1539 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1540 ac_clean_files=$ac_clean_files_save
1541 # Check the compiler produces executables we can run.  If not, either
1542 # the compiler is broken, or we cross compile.
1543 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1544 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1545 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1546 echo "${ECHO_T}$cross_compiling" >&6
1547
1548 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1549 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1551   (eval $ac_link) 2>&5
1552   ac_status=$?
1553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1554   (exit $ac_status); }; then
1555   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1556 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1557 # work properly (i.e., refer to `conftest.exe'), while it won't with
1558 # `rm'.
1559 for ac_file in conftest.exe conftest conftest.*; do
1560   test -f "$ac_file" || continue
1561   case $ac_file in
1562     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1563     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1564           export ac_cv_exeext
1565           break;;
1566     * ) break;;
1567   esac
1568 done
1569 else
1570   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1571 See \`config.log' for more details." >&5
1572 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1573 See \`config.log' for more details." >&2;}
1574    { (exit 1); exit 1; }; }
1575 fi
1576
1577 rm -f conftest$ac_cv_exeext
1578 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1579 echo "${ECHO_T}$ac_cv_exeext" >&6
1580
1581 rm -f conftest.$ac_ext
1582 EXEEXT=$ac_cv_exeext
1583 ac_exeext=$EXEEXT
1584 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1585 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1586 if test "${ac_cv_objext+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   cat >conftest.$ac_ext <<_ACEOF
1590 /* confdefs.h.  */
1591 _ACEOF
1592 cat confdefs.h >>conftest.$ac_ext
1593 cat >>conftest.$ac_ext <<_ACEOF
1594 /* end confdefs.h.  */
1595
1596 int
1597 main ()
1598 {
1599
1600   ;
1601   return 0;
1602 }
1603 _ACEOF
1604 rm -f conftest.o conftest.obj
1605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1606   (eval $ac_compile) 2>&5
1607   ac_status=$?
1608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1609   (exit $ac_status); }; then
1610   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1611   case $ac_file in
1612     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1613     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1614        break;;
1615   esac
1616 done
1617 else
1618   echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1622 See \`config.log' for more details." >&5
1623 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1624 See \`config.log' for more details." >&2;}
1625    { (exit 1); exit 1; }; }
1626 fi
1627
1628 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1629 fi
1630 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1631 echo "${ECHO_T}$ac_cv_objext" >&6
1632 OBJEXT=$ac_cv_objext
1633 ac_objext=$OBJEXT
1634 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1635 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1636 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1637   echo $ECHO_N "(cached) $ECHO_C" >&6
1638 else
1639   cat >conftest.$ac_ext <<_ACEOF
1640 /* confdefs.h.  */
1641 _ACEOF
1642 cat confdefs.h >>conftest.$ac_ext
1643 cat >>conftest.$ac_ext <<_ACEOF
1644 /* end confdefs.h.  */
1645
1646 int
1647 main ()
1648 {
1649 #ifndef __GNUC__
1650        choke me
1651 #endif
1652
1653   ;
1654   return 0;
1655 }
1656 _ACEOF
1657 rm -f conftest.$ac_objext
1658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1659   (eval $ac_compile) 2>conftest.er1
1660   ac_status=$?
1661   grep -v '^ *+' conftest.er1 >conftest.err
1662   rm -f conftest.er1
1663   cat conftest.err >&5
1664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1665   (exit $ac_status); } &&
1666          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
1667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1668   (eval $ac_try) 2>&5
1669   ac_status=$?
1670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1671   (exit $ac_status); }; } &&
1672          { ac_try='test -s conftest.$ac_objext'
1673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1674   (eval $ac_try) 2>&5
1675   ac_status=$?
1676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677   (exit $ac_status); }; }; then
1678   ac_compiler_gnu=yes
1679 else
1680   echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_compiler_gnu=no
1684 fi
1685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1686 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1687
1688 fi
1689 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1690 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1691 GXX=`test $ac_compiler_gnu = yes && echo yes`
1692 ac_test_CXXFLAGS=${CXXFLAGS+set}
1693 ac_save_CXXFLAGS=$CXXFLAGS
1694 CXXFLAGS="-g"
1695 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1696 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1697 if test "${ac_cv_prog_cxx_g+set}" = set; then
1698   echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700   cat >conftest.$ac_ext <<_ACEOF
1701 /* confdefs.h.  */
1702 _ACEOF
1703 cat confdefs.h >>conftest.$ac_ext
1704 cat >>conftest.$ac_ext <<_ACEOF
1705 /* end confdefs.h.  */
1706
1707 int
1708 main ()
1709 {
1710
1711   ;
1712   return 0;
1713 }
1714 _ACEOF
1715 rm -f conftest.$ac_objext
1716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1717   (eval $ac_compile) 2>conftest.er1
1718   ac_status=$?
1719   grep -v '^ *+' conftest.er1 >conftest.err
1720   rm -f conftest.er1
1721   cat conftest.err >&5
1722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723   (exit $ac_status); } &&
1724          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
1725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1726   (eval $ac_try) 2>&5
1727   ac_status=$?
1728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729   (exit $ac_status); }; } &&
1730          { ac_try='test -s conftest.$ac_objext'
1731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1732   (eval $ac_try) 2>&5
1733   ac_status=$?
1734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735   (exit $ac_status); }; }; then
1736   ac_cv_prog_cxx_g=yes
1737 else
1738   echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_cv_prog_cxx_g=no
1742 fi
1743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1744 fi
1745 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1746 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1747 if test "$ac_test_CXXFLAGS" = set; then
1748   CXXFLAGS=$ac_save_CXXFLAGS
1749 elif test $ac_cv_prog_cxx_g = yes; then
1750   if test "$GXX" = yes; then
1751     CXXFLAGS="-g -O2"
1752   else
1753     CXXFLAGS="-g"
1754   fi
1755 else
1756   if test "$GXX" = yes; then
1757     CXXFLAGS="-O2"
1758   else
1759     CXXFLAGS=
1760   fi
1761 fi
1762 for ac_declaration in \
1763    '' \
1764    'extern "C" void std::exit (int) throw (); using std::exit;' \
1765    'extern "C" void std::exit (int); using std::exit;' \
1766    'extern "C" void exit (int) throw ();' \
1767    'extern "C" void exit (int);' \
1768    'void exit (int);'
1769 do
1770   cat >conftest.$ac_ext <<_ACEOF
1771 /* confdefs.h.  */
1772 _ACEOF
1773 cat confdefs.h >>conftest.$ac_ext
1774 cat >>conftest.$ac_ext <<_ACEOF
1775 /* end confdefs.h.  */
1776 $ac_declaration
1777 #include <stdlib.h>
1778 int
1779 main ()
1780 {
1781 exit (42);
1782   ;
1783   return 0;
1784 }
1785 _ACEOF
1786 rm -f conftest.$ac_objext
1787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1788   (eval $ac_compile) 2>conftest.er1
1789   ac_status=$?
1790   grep -v '^ *+' conftest.er1 >conftest.err
1791   rm -f conftest.er1
1792   cat conftest.err >&5
1793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794   (exit $ac_status); } &&
1795          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
1796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1797   (eval $ac_try) 2>&5
1798   ac_status=$?
1799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800   (exit $ac_status); }; } &&
1801          { ac_try='test -s conftest.$ac_objext'
1802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1803   (eval $ac_try) 2>&5
1804   ac_status=$?
1805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806   (exit $ac_status); }; }; then
1807   :
1808 else
1809   echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 continue
1813 fi
1814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1815   cat >conftest.$ac_ext <<_ACEOF
1816 /* confdefs.h.  */
1817 _ACEOF
1818 cat confdefs.h >>conftest.$ac_ext
1819 cat >>conftest.$ac_ext <<_ACEOF
1820 /* end confdefs.h.  */
1821 $ac_declaration
1822 int
1823 main ()
1824 {
1825 exit (42);
1826   ;
1827   return 0;
1828 }
1829 _ACEOF
1830 rm -f conftest.$ac_objext
1831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1832   (eval $ac_compile) 2>conftest.er1
1833   ac_status=$?
1834   grep -v '^ *+' conftest.er1 >conftest.err
1835   rm -f conftest.er1
1836   cat conftest.err >&5
1837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838   (exit $ac_status); } &&
1839          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
1840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1841   (eval $ac_try) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }; } &&
1845          { ac_try='test -s conftest.$ac_objext'
1846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847   (eval $ac_try) 2>&5
1848   ac_status=$?
1849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850   (exit $ac_status); }; }; then
1851   break
1852 else
1853   echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 fi
1857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1858 done
1859 rm -f conftest*
1860 if test -n "$ac_declaration"; then
1861   echo '#ifdef __cplusplus' >>confdefs.h
1862   echo $ac_declaration      >>confdefs.h
1863   echo '#endif'             >>confdefs.h
1864 fi
1865
1866 ac_ext=c
1867 ac_cpp='$CPP $CPPFLAGS'
1868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1871
1872 ac_ext=c
1873 ac_cpp='$CPP $CPPFLAGS'
1874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877 if test -n "$ac_tool_prefix"; then
1878   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1879 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$CC"; then
1886   ac_cv_prog_CC="$CC" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 CC=$ac_cv_prog_CC
1905 if test -n "$CC"; then
1906   echo "$as_me:$LINENO: result: $CC" >&5
1907 echo "${ECHO_T}$CC" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913 fi
1914 if test -z "$ac_cv_prog_CC"; then
1915   ac_ct_CC=$CC
1916   # Extract the first word of "gcc", so it can be a program name with args.
1917 set dummy gcc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$ac_ct_CC"; then
1924   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_prog_ac_ct_CC="gcc"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939
1940 fi
1941 fi
1942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1943 if test -n "$ac_ct_CC"; then
1944   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1945 echo "${ECHO_T}$ac_ct_CC" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951   CC=$ac_ct_CC
1952 else
1953   CC="$ac_cv_prog_CC"
1954 fi
1955
1956 if test -z "$CC"; then
1957   if test -n "$ac_tool_prefix"; then
1958   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1959 set dummy ${ac_tool_prefix}cc; ac_word=$2
1960 echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963   echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965   if test -n "$CC"; then
1966   ac_cv_prog_CC="$CC" # Let the user override the test.
1967 else
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971   IFS=$as_save_IFS
1972   test -z "$as_dir" && as_dir=.
1973   for ac_exec_ext in '' $ac_executable_extensions; do
1974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975     ac_cv_prog_CC="${ac_tool_prefix}cc"
1976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977     break 2
1978   fi
1979 done
1980 done
1981
1982 fi
1983 fi
1984 CC=$ac_cv_prog_CC
1985 if test -n "$CC"; then
1986   echo "$as_me:$LINENO: result: $CC" >&5
1987 echo "${ECHO_T}$CC" >&6
1988 else
1989   echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6
1991 fi
1992
1993 fi
1994 if test -z "$ac_cv_prog_CC"; then
1995   ac_ct_CC=$CC
1996   # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   if test -n "$ac_ct_CC"; then
2004   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009   IFS=$as_save_IFS
2010   test -z "$as_dir" && as_dir=.
2011   for ac_exec_ext in '' $ac_executable_extensions; do
2012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013     ac_cv_prog_ac_ct_CC="cc"
2014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015     break 2
2016   fi
2017 done
2018 done
2019
2020 fi
2021 fi
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6
2026 else
2027   echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2029 fi
2030
2031   CC=$ac_ct_CC
2032 else
2033   CC="$ac_cv_prog_CC"
2034 fi
2035
2036 fi
2037 if test -z "$CC"; then
2038   # Extract the first word of "cc", so it can be a program name with args.
2039 set dummy cc; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_CC+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$CC"; then
2046   ac_cv_prog_CC="$CC" # Let the user override the test.
2047 else
2048   ac_prog_rejected=no
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2057        ac_prog_rejected=yes
2058        continue
2059      fi
2060     ac_cv_prog_CC="cc"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066
2067 if test $ac_prog_rejected = yes; then
2068   # We found a bogon in the path, so make sure we never use it.
2069   set dummy $ac_cv_prog_CC
2070   shift
2071   if test $# != 0; then
2072     # We chose a different compiler from the bogus one.
2073     # However, it has the same basename, so the bogon will be chosen
2074     # first if we set CC to just the basename; use the full file name.
2075     shift
2076     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2077   fi
2078 fi
2079 fi
2080 fi
2081 CC=$ac_cv_prog_CC
2082 if test -n "$CC"; then
2083   echo "$as_me:$LINENO: result: $CC" >&5
2084 echo "${ECHO_T}$CC" >&6
2085 else
2086   echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2088 fi
2089
2090 fi
2091 if test -z "$CC"; then
2092   if test -n "$ac_tool_prefix"; then
2093   for ac_prog in cl
2094   do
2095     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2097 echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   if test -n "$CC"; then
2103   ac_cv_prog_CC="$CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114     break 2
2115   fi
2116 done
2117 done
2118
2119 fi
2120 fi
2121 CC=$ac_cv_prog_CC
2122 if test -n "$CC"; then
2123   echo "$as_me:$LINENO: result: $CC" >&5
2124 echo "${ECHO_T}$CC" >&6
2125 else
2126   echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2128 fi
2129
2130     test -n "$CC" && break
2131   done
2132 fi
2133 if test -z "$CC"; then
2134   ac_ct_CC=$CC
2135   for ac_prog in cl
2136 do
2137   # Extract the first word of "$ac_prog", so it can be a program name with args.
2138 set dummy $ac_prog; ac_word=$2
2139 echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   if test -n "$ac_ct_CC"; then
2145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2146 else
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150   IFS=$as_save_IFS
2151   test -z "$as_dir" && as_dir=.
2152   for ac_exec_ext in '' $ac_executable_extensions; do
2153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154     ac_cv_prog_ac_ct_CC="$ac_prog"
2155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156     break 2
2157   fi
2158 done
2159 done
2160
2161 fi
2162 fi
2163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2164 if test -n "$ac_ct_CC"; then
2165   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2166 echo "${ECHO_T}$ac_ct_CC" >&6
2167 else
2168   echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2170 fi
2171
2172   test -n "$ac_ct_CC" && break
2173 done
2174
2175   CC=$ac_ct_CC
2176 fi
2177
2178 fi
2179
2180
2181 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2182 See \`config.log' for more details." >&5
2183 echo "$as_me: error: no acceptable C compiler found in \$PATH
2184 See \`config.log' for more details." >&2;}
2185    { (exit 1); exit 1; }; }
2186
2187 # Provide some information about the compiler.
2188 echo "$as_me:$LINENO:" \
2189      "checking for C compiler version" >&5
2190 ac_compiler=`set X $ac_compile; echo $2`
2191 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2192   (eval $ac_compiler --version </dev/null >&5) 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }
2196 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2197   (eval $ac_compiler -v </dev/null >&5) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }
2201 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2202   (eval $ac_compiler -V </dev/null >&5) 2>&5
2203   ac_status=$?
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); }
2206
2207 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2208 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2209 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h.  */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h.  */
2218
2219 int
2220 main ()
2221 {
2222 #ifndef __GNUC__
2223        choke me
2224 #endif
2225
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232   (eval $ac_compile) 2>conftest.er1
2233   ac_status=$?
2234   grep -v '^ *+' conftest.er1 >conftest.err
2235   rm -f conftest.er1
2236   cat conftest.err >&5
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); } &&
2239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; } &&
2245          { ac_try='test -s conftest.$ac_objext'
2246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247   (eval $ac_try) 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); }; }; then
2251   ac_compiler_gnu=yes
2252 else
2253   echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 ac_compiler_gnu=no
2257 fi
2258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2260
2261 fi
2262 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2263 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2264 GCC=`test $ac_compiler_gnu = yes && echo yes`
2265 ac_test_CFLAGS=${CFLAGS+set}
2266 ac_save_CFLAGS=$CFLAGS
2267 CFLAGS="-g"
2268 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2269 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2270 if test "${ac_cv_prog_cc_g+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h.  */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h.  */
2279
2280 int
2281 main ()
2282 {
2283
2284   ;
2285   return 0;
2286 }
2287 _ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290   (eval $ac_compile) 2>conftest.er1
2291   ac_status=$?
2292   grep -v '^ *+' conftest.er1 >conftest.err
2293   rm -f conftest.er1
2294   cat conftest.err >&5
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); } &&
2297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299   (eval $ac_try) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); }; } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   ac_cv_prog_cc_g=yes
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 ac_cv_prog_cc_g=no
2315 fi
2316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317 fi
2318 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2319 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2320 if test "$ac_test_CFLAGS" = set; then
2321   CFLAGS=$ac_save_CFLAGS
2322 elif test $ac_cv_prog_cc_g = yes; then
2323   if test "$GCC" = yes; then
2324     CFLAGS="-g -O2"
2325   else
2326     CFLAGS="-g"
2327   fi
2328 else
2329   if test "$GCC" = yes; then
2330     CFLAGS="-O2"
2331   else
2332     CFLAGS=
2333   fi
2334 fi
2335 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2336 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2337 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   ac_cv_prog_cc_stdc=no
2341 ac_save_CC=$CC
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h.  */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h.  */
2348 #include <stdarg.h>
2349 #include <stdio.h>
2350 #include <sys/types.h>
2351 #include <sys/stat.h>
2352 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2353 struct buf { int x; };
2354 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2355 static char *e (p, i)
2356      char **p;
2357      int i;
2358 {
2359   return p[i];
2360 }
2361 static char *f (char * (*g) (char **, int), char **p, ...)
2362 {
2363   char *s;
2364   va_list v;
2365   va_start (v,p);
2366   s = g (p, va_arg (v,int));
2367   va_end (v);
2368   return s;
2369 }
2370
2371 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2372    function prototypes and stuff, but not '\xHH' hex character constants.
2373    These don't provoke an error unfortunately, instead are silently treated
2374    as 'x'.  The following induces an error, until -std1 is added to get
2375    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2376    array size at least.  It's necessary to write '\x00'==0 to get something
2377    that's true only with -std1.  */
2378 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2379
2380 int test (int i, double x);
2381 struct s1 {int (*f) (int a);};
2382 struct s2 {int (*f) (double a);};
2383 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2384 int argc;
2385 char **argv;
2386 int
2387 main ()
2388 {
2389 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 # Don't try gcc -ansi; that turns off useful extensions and
2395 # breaks some systems' header files.
2396 # AIX                   -qlanglvl=ansi
2397 # Ultrix and OSF/1      -std1
2398 # HP-UX 10.20 and later -Ae
2399 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2400 # SVR4                  -Xc -D__EXTENSIONS__
2401 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2402 do
2403   CC="$ac_save_CC $ac_arg"
2404   rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406   (eval $ac_compile) 2>conftest.er1
2407   ac_status=$?
2408   grep -v '^ *+' conftest.er1 >conftest.err
2409   rm -f conftest.er1
2410   cat conftest.err >&5
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); } &&
2413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415   (eval $ac_try) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; } &&
2419          { ac_try='test -s conftest.$ac_objext'
2420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421   (eval $ac_try) 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; }; then
2425   ac_cv_prog_cc_stdc=$ac_arg
2426 break
2427 else
2428   echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 fi
2432 rm -f conftest.err conftest.$ac_objext
2433 done
2434 rm -f conftest.$ac_ext conftest.$ac_objext
2435 CC=$ac_save_CC
2436
2437 fi
2438
2439 case "x$ac_cv_prog_cc_stdc" in
2440   x|xno)
2441     echo "$as_me:$LINENO: result: none needed" >&5
2442 echo "${ECHO_T}none needed" >&6 ;;
2443   *)
2444     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2445 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2446     CC="$CC $ac_cv_prog_cc_stdc" ;;
2447 esac
2448
2449 # Some people use a C++ compiler to compile C.  Since we use `exit',
2450 # in C++ we need to declare it.  In case someone uses the same compiler
2451 # for both compiling C and C++ we need to have the C++ compiler decide
2452 # the declaration of exit, since it's the most demanding environment.
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #ifndef __cplusplus
2455   choke me
2456 #endif
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460   (eval $ac_compile) 2>conftest.er1
2461   ac_status=$?
2462   grep -v '^ *+' conftest.er1 >conftest.err
2463   rm -f conftest.er1
2464   cat conftest.err >&5
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); } &&
2467          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469   (eval $ac_try) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; } &&
2473          { ac_try='test -s conftest.$ac_objext'
2474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475   (eval $ac_try) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; }; then
2479   for ac_declaration in \
2480    '' \
2481    'extern "C" void std::exit (int) throw (); using std::exit;' \
2482    'extern "C" void std::exit (int); using std::exit;' \
2483    'extern "C" void exit (int) throw ();' \
2484    'extern "C" void exit (int);' \
2485    'void exit (int);'
2486 do
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493 $ac_declaration
2494 #include <stdlib.h>
2495 int
2496 main ()
2497 {
2498 exit (42);
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505   (eval $ac_compile) 2>conftest.er1
2506   ac_status=$?
2507   grep -v '^ *+' conftest.er1 >conftest.err
2508   rm -f conftest.er1
2509   cat conftest.err >&5
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } &&
2512          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514   (eval $ac_try) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; } &&
2518          { ac_try='test -s conftest.$ac_objext'
2519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520   (eval $ac_try) 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; }; then
2524   :
2525 else
2526   echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 continue
2530 fi
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532   cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h.  */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h.  */
2538 $ac_declaration
2539 int
2540 main ()
2541 {
2542 exit (42);
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549   (eval $ac_compile) 2>conftest.er1
2550   ac_status=$?
2551   grep -v '^ *+' conftest.er1 >conftest.err
2552   rm -f conftest.er1
2553   cat conftest.err >&5
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); } &&
2556          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; } &&
2562          { ac_try='test -s conftest.$ac_objext'
2563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564   (eval $ac_try) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; }; then
2568   break
2569 else
2570   echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 fi
2574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2575 done
2576 rm -f conftest*
2577 if test -n "$ac_declaration"; then
2578   echo '#ifdef __cplusplus' >>confdefs.h
2579   echo $ac_declaration      >>confdefs.h
2580   echo '#endif'             >>confdefs.h
2581 fi
2582
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587 fi
2588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594
2595
2596 ac_ext=c
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2602 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2603 # On Suns, sometimes $CPP names a directory.
2604 if test -n "$CPP" && test -d "$CPP"; then
2605   CPP=
2606 fi
2607 if test -z "$CPP"; then
2608   if test "${ac_cv_prog_CPP+set}" = set; then
2609   echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611       # Double quotes because CPP needs to be expanded
2612     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2613     do
2614       ac_preproc_ok=false
2615 for ac_c_preproc_warn_flag in '' yes
2616 do
2617   # Use a header file that comes with gcc, so configuring glibc
2618   # with a fresh cross-compiler works.
2619   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2620   # <limits.h> exists even on freestanding compilers.
2621   # On the NeXT, cc -E runs the code through the compiler's parser,
2622   # not just through cpp. "Syntax error" is here to catch this case.
2623   cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629 #ifdef __STDC__
2630 # include <limits.h>
2631 #else
2632 # include <assert.h>
2633 #endif
2634                      Syntax error
2635 _ACEOF
2636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2638   ac_status=$?
2639   grep -v '^ *+' conftest.er1 >conftest.err
2640   rm -f conftest.er1
2641   cat conftest.err >&5
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } >/dev/null; then
2644   if test -s conftest.err; then
2645     ac_cpp_err=$ac_c_preproc_warn_flag
2646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2647   else
2648     ac_cpp_err=
2649   fi
2650 else
2651   ac_cpp_err=yes
2652 fi
2653 if test -z "$ac_cpp_err"; then
2654   :
2655 else
2656   echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659   # Broken: fails on valid input.
2660 continue
2661 fi
2662 rm -f conftest.err conftest.$ac_ext
2663
2664   # OK, works on sane cases.  Now check whether non-existent headers
2665   # can be detected and how.
2666   cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h.  */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h.  */
2672 #include <ac_nonexistent.h>
2673 _ACEOF
2674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2675   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2676   ac_status=$?
2677   grep -v '^ *+' conftest.er1 >conftest.err
2678   rm -f conftest.er1
2679   cat conftest.err >&5
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); } >/dev/null; then
2682   if test -s conftest.err; then
2683     ac_cpp_err=$ac_c_preproc_warn_flag
2684     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2685   else
2686     ac_cpp_err=
2687   fi
2688 else
2689   ac_cpp_err=yes
2690 fi
2691 if test -z "$ac_cpp_err"; then
2692   # Broken: success on invalid input.
2693 continue
2694 else
2695   echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698   # Passes both tests.
2699 ac_preproc_ok=:
2700 break
2701 fi
2702 rm -f conftest.err conftest.$ac_ext
2703
2704 done
2705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2706 rm -f conftest.err conftest.$ac_ext
2707 if $ac_preproc_ok; then
2708   break
2709 fi
2710
2711     done
2712     ac_cv_prog_CPP=$CPP
2713
2714 fi
2715   CPP=$ac_cv_prog_CPP
2716 else
2717   ac_cv_prog_CPP=$CPP
2718 fi
2719 echo "$as_me:$LINENO: result: $CPP" >&5
2720 echo "${ECHO_T}$CPP" >&6
2721 ac_preproc_ok=false
2722 for ac_c_preproc_warn_flag in '' yes
2723 do
2724   # Use a header file that comes with gcc, so configuring glibc
2725   # with a fresh cross-compiler works.
2726   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2727   # <limits.h> exists even on freestanding compilers.
2728   # On the NeXT, cc -E runs the code through the compiler's parser,
2729   # not just through cpp. "Syntax error" is here to catch this case.
2730   cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h.  */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h.  */
2736 #ifdef __STDC__
2737 # include <limits.h>
2738 #else
2739 # include <assert.h>
2740 #endif
2741                      Syntax error
2742 _ACEOF
2743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2745   ac_status=$?
2746   grep -v '^ *+' conftest.er1 >conftest.err
2747   rm -f conftest.er1
2748   cat conftest.err >&5
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); } >/dev/null; then
2751   if test -s conftest.err; then
2752     ac_cpp_err=$ac_c_preproc_warn_flag
2753     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2754   else
2755     ac_cpp_err=
2756   fi
2757 else
2758   ac_cpp_err=yes
2759 fi
2760 if test -z "$ac_cpp_err"; then
2761   :
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766   # Broken: fails on valid input.
2767 continue
2768 fi
2769 rm -f conftest.err conftest.$ac_ext
2770
2771   # OK, works on sane cases.  Now check whether non-existent headers
2772   # can be detected and how.
2773   cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779 #include <ac_nonexistent.h>
2780 _ACEOF
2781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2782   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2783   ac_status=$?
2784   grep -v '^ *+' conftest.er1 >conftest.err
2785   rm -f conftest.er1
2786   cat conftest.err >&5
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); } >/dev/null; then
2789   if test -s conftest.err; then
2790     ac_cpp_err=$ac_c_preproc_warn_flag
2791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2792   else
2793     ac_cpp_err=
2794   fi
2795 else
2796   ac_cpp_err=yes
2797 fi
2798 if test -z "$ac_cpp_err"; then
2799   # Broken: success on invalid input.
2800 continue
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805   # Passes both tests.
2806 ac_preproc_ok=:
2807 break
2808 fi
2809 rm -f conftest.err conftest.$ac_ext
2810
2811 done
2812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2813 rm -f conftest.err conftest.$ac_ext
2814 if $ac_preproc_ok; then
2815   :
2816 else
2817   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2818 See \`config.log' for more details." >&5
2819 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2820 See \`config.log' for more details." >&2;}
2821    { (exit 1); exit 1; }; }
2822 fi
2823
2824 ac_ext=c
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829
2830
2831 echo "$as_me:$LINENO: checking for egrep" >&5
2832 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2833 if test "${ac_cv_prog_egrep+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2837     then ac_cv_prog_egrep='grep -E'
2838     else ac_cv_prog_egrep='egrep'
2839     fi
2840 fi
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2842 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2843  EGREP=$ac_cv_prog_egrep
2844
2845
2846 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2847 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2848 if test "${ac_cv_header_stdc+set}" = set; then
2849   echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851   cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h.  */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h.  */
2857 #include <stdlib.h>
2858 #include <stdarg.h>
2859 #include <string.h>
2860 #include <float.h>
2861
2862 int
2863 main ()
2864 {
2865
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872   (eval $ac_compile) 2>conftest.er1
2873   ac_status=$?
2874   grep -v '^ *+' conftest.er1 >conftest.err
2875   rm -f conftest.er1
2876   cat conftest.err >&5
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); } &&
2879          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881   (eval $ac_try) 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }; } &&
2885          { ac_try='test -s conftest.$ac_objext'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   ac_cv_header_stdc=yes
2892 else
2893   echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896 ac_cv_header_stdc=no
2897 fi
2898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2899
2900 if test $ac_cv_header_stdc = yes; then
2901   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2902   cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908 #include <string.h>
2909
2910 _ACEOF
2911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2912   $EGREP "memchr" >/dev/null 2>&1; then
2913   :
2914 else
2915   ac_cv_header_stdc=no
2916 fi
2917 rm -f conftest*
2918
2919 fi
2920
2921 if test $ac_cv_header_stdc = yes; then
2922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2923   cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929 #include <stdlib.h>
2930
2931 _ACEOF
2932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2933   $EGREP "free" >/dev/null 2>&1; then
2934   :
2935 else
2936   ac_cv_header_stdc=no
2937 fi
2938 rm -f conftest*
2939
2940 fi
2941
2942 if test $ac_cv_header_stdc = yes; then
2943   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2944   if test "$cross_compiling" = yes; then
2945   :
2946 else
2947   cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h.  */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h.  */
2953 #include <ctype.h>
2954 #if ((' ' & 0x0FF) == 0x020)
2955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2957 #else
2958 # define ISLOWER(c) \
2959                    (('a' <= (c) && (c) <= 'i') \
2960                      || ('j' <= (c) && (c) <= 'r') \
2961                      || ('s' <= (c) && (c) <= 'z'))
2962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2963 #endif
2964
2965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2966 int
2967 main ()
2968 {
2969   int i;
2970   for (i = 0; i < 256; i++)
2971     if (XOR (islower (i), ISLOWER (i))
2972         || toupper (i) != TOUPPER (i))
2973       exit(2);
2974   exit (0);
2975 }
2976 _ACEOF
2977 rm -f conftest$ac_exeext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2979   (eval $ac_link) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; }; then
2988   :
2989 else
2990   echo "$as_me: program exited with status $ac_status" >&5
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 ( exit $ac_status )
2995 ac_cv_header_stdc=no
2996 fi
2997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2998 fi
2999 fi
3000 fi
3001 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3002 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3003 if test $ac_cv_header_stdc = yes; then
3004
3005 cat >>confdefs.h <<\_ACEOF
3006 #define STDC_HEADERS 1
3007 _ACEOF
3008
3009 fi
3010
3011
3012 REQUIRED_PWLIB_MAJOR=1
3013 REQUIRED_PWLIB_MINOR=10
3014 REQUIRED_PWLIB_BUILD=0
3015
3016
3017 OPENH323DIR=`pwd`
3018
3019
3020 if test "x$prefix" = "xNONE"; then
3021    INSTALLPREFIX="/usr/local"
3022 else
3023    INSTALLPREFIX="${prefix}"
3024 fi
3025
3026
3027
3028
3029 LIBDIR="${libdir}"
3030
3031
3032
3033
3034 MAJOR_VERSION=`cat ${OPENH323DIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
3035 MINOR_VERSION=`cat ${OPENH323DIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
3036 BUILD_NUMBER=`cat ${OPENH323DIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
3037 OPENH323_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
3038
3039
3040
3041
3042 MAJOR_VERSION=$MAJOR_VERSION
3043
3044 MINOR_VERSION=$MINOR_VERSION
3045
3046 BUILD_NUMBER=$BUILD_NUMBER
3047
3048
3049 echo "OpenH323 version is ${OPENH323_VERSION}"
3050
3051 cat >>confdefs.h <<_ACEOF
3052 #define OPENH323_MAJOR ${MAJOR_VERSION}
3053 _ACEOF
3054
3055 cat >>confdefs.h <<_ACEOF
3056 #define OPENH323_MINOR ${MINOR_VERSION}
3057 _ACEOF
3058
3059 cat >>confdefs.h <<_ACEOF
3060 #define OPENH323_BUILD ${BUILD_NUMBER}
3061 _ACEOF
3062
3063 cat >>confdefs.h <<_ACEOF
3064 #define OPENH323_VERSION "$OPENH323_VERSION"
3065 _ACEOF
3066
3067
3068
3069 #if test "${PWLIBDIR:-unset}" != "unset" ; then
3070 #  AC_CHECK_FILE(${PWLIBDIR}/version.h, HAS_PTLIB=1)
3071 #fi
3072 #if test "${HAS_PTLIB:-unset}" = "unset" ; then
3073 #  AC_CHECK_FILE(${OPENH323DIR}/../pwlib/version.h, HAS_PTLIB=1)
3074 #  if test "${HAS_PTLIB:-unset}" != "unset" ; then
3075 #    PWLIBDIR="${OPENH323DIR}/../pwlib"
3076 #  else
3077 #    AC_CHECK_FILE(${HOME}/pwlib/include/ptlib.h, HAS_PTLIB=1)
3078 #    if test "${HAS_PTLIB:-unset}" != "unset" ; then
3079 #      PWLIBDIR="${HOME}/pwlib"
3080 #    else
3081 #      AC_CHECK_FILE(/usr/local/include/ptlib.h, HAS_PTLIB=1)
3082 #      if test "${HAS_PTLIB:-unset}" != "unset" ; then
3083 #        AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/local/bin)
3084 #      else
3085 #        AC_CHECK_FILE(/usr/include/ptlib.h, HAS_PTLIB=1)
3086 #        if test "${HAS_PTLIB:-unset}" != "unset" ; then
3087 #          AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/share/pwlib/make/)
3088 #        fi
3089 #      fi
3090 #    fi
3091 #  fi
3092 #fi
3093
3094 if test "${HAS_PTLIB:-unset}" = "unset" ; then
3095   echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
3096   exit
3097 fi
3098
3099 if test "${PWLIBDIR:-unset}" = "unset" ; then
3100   if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
3101     echo "Cannot find ptlib-config - please install and try again"
3102     exit
3103   fi
3104   PWLIBDIR=`$PTLIB_CONFIG --prefix`
3105 fi
3106
3107 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
3108   PWLIBDIR="/usr/share/pwlib/"
3109 fi
3110 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
3111   PWLIBDIR="/usr/local/share/pwlib/"
3112 fi
3113
3114 echo "PWLib prefix set to.... $PWLIBDIR"
3115
3116 if test "${PWLIBDIR:-unset}" = "unset" ; then
3117   PWVERSION=`$PTLIB_CONFIG --version`
3118   PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
3119   PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
3120   PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
3121
3122 else
3123   PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
3124   PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
3125   PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
3126   PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
3127 fi
3128
3129 # Check whether --enable-versioncheck or --disable-versioncheck was given.
3130 if test "${enable_versioncheck+set}" = set; then
3131   enableval="$enable_versioncheck"
3132   PWLIB_VERSION_CHECK=$enableval
3133 fi;
3134
3135 echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
3136 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6
3137 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
3138   echo "$as_me:$LINENO: result: check disabled" >&5
3139 echo "${ECHO_T}check disabled" >&6
3140 else
3141   if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
3142     echo "$as_me:$LINENO: result: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
3143 echo "${ECHO_T}Major version less than required $REQUIRED_PWLIB_MAJOR" >&6
3144     exit 1
3145   fi
3146   if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
3147     echo "$as_me:$LINENO: result: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
3148 echo "${ECHO_T}Minor version less than required $REQUIRED_PWLIB_MINOR" >&6
3149     exit 1
3150   fi
3151   if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
3152     echo "$as_me:$LINENO: result: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
3153 echo "${ECHO_T}Build version less than required $REQUIRED_PWLIB_BUILD" >&6
3154     exit 1
3155   fi
3156   echo "$as_me:$LINENO: result: ok" >&5
3157 echo "${ECHO_T}ok" >&6
3158 fi
3159
3160
3161
3162
3163 # Check whether --enable-minsize or --disable-minsize was given.
3164 if test "${enable_minsize+set}" = set; then
3165   enableval="$enable_minsize"
3166
3167 fi;
3168
3169 default_ixj=yes
3170 default_audio=yes
3171 default_video=yes
3172 default_asntracing=yes
3173 default_h450=yes
3174 default_h501=yes
3175 default_t38=yes
3176 default_h248=yes
3177 default_h460=yes
3178 default_t120=yes
3179 default_transnexusosp=yes
3180 default_h263avcodec=no
3181 default_vich263=no
3182 { echo "$as_me:$LINENO: 2345" >&5
3183 echo "$as_me: 2345" >&6;}
3184
3185 if test "${enable_minsize}x" = "yesx" ; then
3186         { echo "$as_me:$LINENO: 1234" >&5
3187 echo "$as_me: 1234" >&6;}
3188   default_ixj=no
3189   default_audio=yes
3190   default_video=yes
3191   default_asntracing=no
3192   default_h450=no
3193   default_h501=no
3194   default_t38=no
3195   default_h248=no
3196   default_h460=no
3197   default_t120=no
3198   default_transnexusosp=no
3199   default_h263avcodec=no
3200   default_vich263=no
3201 fi
3202
3203
3204
3205 # Check whether --enable-asntracing or --disable-asntracing was given.
3206 if test "${enable_asntracing+set}" = set; then
3207   enableval="$enable_asntracing"
3208
3209 fi;
3210
3211 if test "${enable_asntracing}z" = "z" ; then
3212   enable_asntracing=$default_asntracing
3213 fi
3214
3215 if test "$enable_asntracing" = "no" ; then
3216   { echo "$as_me:$LINENO: Disabling ASN tracing" >&5
3217 echo "$as_me: Disabling ASN tracing" >&6;}
3218   NOTRACE=1
3219
3220 fi
3221
3222
3223
3224 # Check whether --enable-audio or --disable-audio was given.
3225 if test "${enable_audio+set}" = set; then
3226   enableval="$enable_audio"
3227
3228 fi;
3229
3230 if test "${enable_audio}z" = "z" ; then
3231   enable_audio=yes
3232 fi
3233
3234 if test "$enable_audio" = "no" ; then
3235   { echo "$as_me:$LINENO: Disabling audio functions" >&5
3236 echo "$as_me: Disabling audio functions" >&6;}
3237   NOAUDIOCODECS=1
3238
3239 else
3240   cat >>confdefs.h <<\_ACEOF
3241 #define H323_AUDIO_CODECS 1
3242 _ACEOF
3243
3244
3245   # Check whether --enable-embeddedgsm or --disable-embeddedgsm was given.
3246 if test "${enable_embeddedgsm+set}" = set; then
3247   enableval="$enable_embeddedgsm"
3248   EMBEDDED_GSM=$enableval
3249 fi;
3250   if test "${EMBEDDED_GSM}x" != "x" ; then
3251     { echo "$as_me:$LINENO: Embedding GSM codec" >&5
3252 echo "$as_me: Embedding GSM codec" >&6;}
3253     LDFLAGS="$LDFLAGS -L${OPENH323DIR}/plugins/audio/GSM0610"
3254     ENDLDLIBS="$ENDLDLIBS -lgsm0610_audio_s"
3255     echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
3256 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6
3257 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260   ac_check_lib_save_LIBS=$LIBS
3261 LIBS="-lgsm  $LIBS"
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268
3269 /* Override any gcc2 internal prototype to avoid an error.  */
3270 #ifdef __cplusplus
3271 extern "C"
3272 #endif
3273 /* We use char because int might match the return type of a gcc2
3274    builtin and then its argument prototype would still apply.  */
3275 char gsm_create ();
3276 int
3277 main ()
3278 {
3279 gsm_create ();
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.$ac_objext conftest$ac_exeext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3286   (eval $ac_link) 2>conftest.er1
3287   ac_status=$?
3288   grep -v '^ *+' conftest.er1 >conftest.err
3289   rm -f conftest.er1
3290   cat conftest.err >&5
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); } &&
3293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295   (eval $ac_try) 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); }; } &&
3299          { ac_try='test -s conftest$ac_exeext'
3300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301   (eval $ac_try) 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; }; then
3305   ac_cv_lib_gsm_gsm_create=yes
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 ac_cv_lib_gsm_gsm_create=no
3311 fi
3312 rm -f conftest.err conftest.$ac_objext \
3313       conftest$ac_exeext conftest.$ac_ext
3314 LIBS=$ac_check_lib_save_LIBS
3315 fi
3316 echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
3317 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6
3318 if test $ac_cv_lib_gsm_gsm_create = yes; then
3319   GSM=1
3320 fi
3321
3322     if test "x$GSM" != "x"; then
3323       ENDLDLIBS="$ENDLDLIBS -lgsm"
3324     fi
3325     cat >>confdefs.h <<\_ACEOF
3326 #define H323_EMBEDDED_GSM 1
3327 _ACEOF
3328
3329   fi
3330 fi
3331
3332
3333
3334 # Check whether --enable-video or --disable-video was given.
3335 if test "${enable_video+set}" = set; then
3336   enableval="$enable_video"
3337
3338 fi;
3339
3340 if test "${enable_video}z" = "z" ; then
3341   enable_video=$default_video
3342 fi
3343
3344 if test "$enable_video" = "no" ; then
3345   { echo "$as_me:$LINENO: Disabling video support" >&5
3346 echo "$as_me: Disabling video support" >&6;}
3347   NOVIDEO=1
3348
3349 else
3350   cat >>confdefs.h <<\_ACEOF
3351 #define H323_VIDEO 1
3352 _ACEOF
3353
3354 fi
3355
3356
3357
3358 H323_RFC2190_AVCODEC=
3359 H323_RFC2190_AVCODEC_DIR=
3360 H323_AVCODEC=
3361 H323_VICH263=
3362
3363 if test "$enable_video" = "yes" ; then
3364
3365   # Check whether --enable-rfc2190avcodec or --disable-rfc2190avcodec was given.
3366 if test "${enable_rfc2190avcodec+set}" = set; then
3367   enableval="$enable_rfc2190avcodec"
3368
3369 fi;
3370
3371   if test "${enable_rfc2190avcodec}x" = "x" ; then
3372     { echo "$as_me:$LINENO: Skipping tests for RFC 2190 H.263 support" >&5
3373 echo "$as_me: Skipping tests for RFC 2190 H.263 support" >&6;}
3374   else
3375     { echo "$as_me:$LINENO: Checking for RFC2190 H.263 codec" >&5
3376 echo "$as_me: Checking for RFC2190 H.263 codec" >&6;}
3377     H323_RFC2190_AVCODEC_DIR=$enable_rfc2190avcodec
3378     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3389                   inttypes.h stdint.h unistd.h
3390 do
3391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3392 echo "$as_me:$LINENO: checking for $ac_header" >&5
3393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 $ac_includes_default
3404
3405 #include <$ac_header>
3406 _ACEOF
3407 rm -f conftest.$ac_objext
3408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3409   (eval $ac_compile) 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } &&
3416          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418   (eval $ac_try) 2>&5
3419   ac_status=$?
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); }; } &&
3422          { ac_try='test -s conftest.$ac_objext'
3423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424   (eval $ac_try) 2>&5
3425   ac_status=$?
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); }; }; then
3428   eval "$as_ac_Header=yes"
3429 else
3430   echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 eval "$as_ac_Header=no"
3434 fi
3435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3436 fi
3437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3440   cat >>confdefs.h <<_ACEOF
3441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3442 _ACEOF
3443
3444 fi
3445
3446 done
3447
3448
3449 as_ac_Header=`echo "ac_cv_header_${H323_RFC2190_AVCODEC_DIR}/avcodec.h" | $as_tr_sh`
3450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3451   echo "$as_me:$LINENO: checking for ${H323_RFC2190_AVCODEC_DIR}/avcodec.h" >&5
3452 echo $ECHO_N "checking for ${H323_RFC2190_AVCODEC_DIR}/avcodec.h... $ECHO_C" >&6
3453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 fi
3456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3458 else
3459   # Is the header compilable?
3460 echo "$as_me:$LINENO: checking ${H323_RFC2190_AVCODEC_DIR}/avcodec.h usability" >&5
3461 echo $ECHO_N "checking ${H323_RFC2190_AVCODEC_DIR}/avcodec.h usability... $ECHO_C" >&6
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468 $ac_includes_default
3469 #include <${H323_RFC2190_AVCODEC_DIR}/avcodec.h>
3470 _ACEOF
3471 rm -f conftest.$ac_objext
3472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473   (eval $ac_compile) 2>conftest.er1
3474   ac_status=$?
3475   grep -v '^ *+' conftest.er1 >conftest.err
3476   rm -f conftest.er1
3477   cat conftest.err >&5
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); } &&
3480          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; } &&
3486          { ac_try='test -s conftest.$ac_objext'
3487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488   (eval $ac_try) 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }; }; then
3492   ac_header_compiler=yes
3493 else
3494   echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 ac_header_compiler=no
3498 fi
3499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3501 echo "${ECHO_T}$ac_header_compiler" >&6
3502
3503 # Is the header present?
3504 echo "$as_me:$LINENO: checking ${H323_RFC2190_AVCODEC_DIR}/avcodec.h presence" >&5
3505 echo $ECHO_N "checking ${H323_RFC2190_AVCODEC_DIR}/avcodec.h presence... $ECHO_C" >&6
3506 cat >conftest.$ac_ext <<_ACEOF
3507 /* confdefs.h.  */
3508 _ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h.  */
3512 #include <${H323_RFC2190_AVCODEC_DIR}/avcodec.h>
3513 _ACEOF
3514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3515   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3516   ac_status=$?
3517   grep -v '^ *+' conftest.er1 >conftest.err
3518   rm -f conftest.er1
3519   cat conftest.err >&5
3520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); } >/dev/null; then
3522   if test -s conftest.err; then
3523     ac_cpp_err=$ac_c_preproc_warn_flag
3524     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3525   else
3526     ac_cpp_err=
3527   fi
3528 else
3529   ac_cpp_err=yes
3530 fi
3531 if test -z "$ac_cpp_err"; then
3532   ac_header_preproc=yes
3533 else
3534   echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3536
3537   ac_header_preproc=no
3538 fi
3539 rm -f conftest.err conftest.$ac_ext
3540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3541 echo "${ECHO_T}$ac_header_preproc" >&6
3542
3543 # So?  What about this header?
3544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3545   yes:no: )
3546     { echo "$as_me:$LINENO: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
3547 echo "$as_me: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3548     { echo "$as_me:$LINENO: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: proceeding with the compiler's result" >&5
3549 echo "$as_me: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: proceeding with the compiler's result" >&2;}
3550     ac_header_preproc=yes
3551     ;;
3552   no:yes:* )
3553     { echo "$as_me:$LINENO: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: present but cannot be compiled" >&5
3554 echo "$as_me: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: present but cannot be compiled" >&2;}
3555     { echo "$as_me:$LINENO: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h:     check for missing prerequisite headers?" >&5
3556 echo "$as_me: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h:     check for missing prerequisite headers?" >&2;}
3557     { echo "$as_me:$LINENO: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: see the Autoconf documentation" >&5
3558 echo "$as_me: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: see the Autoconf documentation" >&2;}
3559     { echo "$as_me:$LINENO: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h:     section \"Present But Cannot Be Compiled\"" >&5
3560 echo "$as_me: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3561     { echo "$as_me:$LINENO: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: proceeding with the preprocessor's result" >&5
3562 echo "$as_me: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: proceeding with the preprocessor's result" >&2;}
3563     { echo "$as_me:$LINENO: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: in the future, the compiler will take precedence" >&5
3564 echo "$as_me: WARNING: ${H323_RFC2190_AVCODEC_DIR}/avcodec.h: in the future, the compiler will take precedence" >&2;}
3565     (
3566       cat <<\_ASBOX
3567 ## ------------------------------------------ ##
3568 ## Report this to the AC_PACKAGE_NAME lists.  ##
3569 ## ------------------------------------------ ##
3570 _ASBOX
3571     ) |
3572       sed "s/^/$as_me: WARNING:     /" >&2
3573     ;;
3574 esac
3575 echo "$as_me:$LINENO: checking for ${H323_RFC2190_AVCODEC_DIR}/avcodec.h" >&5
3576 echo $ECHO_N "checking for ${H323_RFC2190_AVCODEC_DIR}/avcodec.h... $ECHO_C" >&6
3577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   eval "$as_ac_Header=\$ac_header_preproc"
3581 fi
3582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3584
3585 fi
3586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3587   H323_RFC2190_AVCODEC=1
3588 fi
3589
3590
3591     if test "${H323_RFC2190_AVCODEC}" == "1" ; then
3592       cat >>confdefs.h <<\_ACEOF
3593 #define H323_RFC2190_AVCODEC 1
3594 _ACEOF
3595
3596       H323_RFC2190_AVCODEC=1
3597       H323_RFC2190_AVCODEC_DIR=${H323_RFC2190_AVCODEC_DIR}
3598       STDCCFLAGS="${STDCCFLAGS} -I${H323_RFC2190_AVCODEC_DIR}"
3599     fi
3600   fi
3601
3602
3603
3604   # Check whether --enable-h263avcodec or --disable-h263avcodec was given.
3605 if test "${enable_h263avcodec+set}" = set; then
3606   enableval="$enable_h263avcodec"
3607
3608 fi;
3609   if test "${enable_h263avcodec}z" = "z" ; then
3610     enable_h263avcodec=$default_h263avcodec
3611   fi
3612
3613   if test "$enable_h263avcodec" = "no" ; then
3614     { echo "$as_me:$LINENO: Disabled non-RFC2190 H.263 using ffmpeg" >&5
3615 echo "$as_me: Disabled non-RFC2190 H.263 using ffmpeg" >&6;}
3616   else
3617
3618 for ac_header in avcodec.h
3619 do
3620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3622   echo "$as_me:$LINENO: checking for $ac_header" >&5
3623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 fi
3627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3629 else
3630   # Is the header compilable?
3631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3633 cat >conftest.$ac_ext <<_ACEOF
3634 /* confdefs.h.  */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h.  */
3639 $ac_includes_default
3640 #include <$ac_header>
3641 _ACEOF
3642 rm -f conftest.$ac_objext
3643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644   (eval $ac_compile) 2>conftest.er1
3645   ac_status=$?
3646   grep -v '^ *+' conftest.er1 >conftest.err
3647   rm -f conftest.er1
3648   cat conftest.err >&5
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } &&
3651          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; } &&
3657          { ac_try='test -s conftest.$ac_objext'
3658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659   (eval $ac_try) 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); }; }; then
3663   ac_header_compiler=yes
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 ac_header_compiler=no
3669 fi
3670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3672 echo "${ECHO_T}$ac_header_compiler" >&6
3673
3674 # Is the header present?
3675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h.  */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h.  */
3683 #include <$ac_header>
3684 _ACEOF
3685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3686   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3687   ac_status=$?
3688   grep -v '^ *+' conftest.er1 >conftest.err
3689   rm -f conftest.er1
3690   cat conftest.err >&5
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } >/dev/null; then
3693   if test -s conftest.err; then
3694     ac_cpp_err=$ac_c_preproc_warn_flag
3695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3696   else
3697     ac_cpp_err=
3698   fi
3699 else
3700   ac_cpp_err=yes
3701 fi
3702 if test -z "$ac_cpp_err"; then
3703   ac_header_preproc=yes
3704 else
3705   echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708   ac_header_preproc=no
3709 fi
3710 rm -f conftest.err conftest.$ac_ext
3711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3712 echo "${ECHO_T}$ac_header_preproc" >&6
3713
3714 # So?  What about this header?
3715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3716   yes:no: )
3717     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3721     ac_header_preproc=yes
3722     ;;
3723   no:yes:* )
3724     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3726     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3727 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3728     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3730     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3731 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3734     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3736     (
3737       cat <<\_ASBOX
3738 ## ------------------------------------------ ##
3739 ## Report this to the AC_PACKAGE_NAME lists.  ##
3740 ## ------------------------------------------ ##
3741 _ASBOX
3742     ) |
3743       sed "s/^/$as_me: WARNING:     /" >&2
3744     ;;
3745 esac
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   eval "$as_ac_Header=\$ac_header_preproc"
3752 fi
3753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3755
3756 fi
3757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3758   cat >>confdefs.h <<_ACEOF
3759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3760 _ACEOF
3761  H323_AVCODEC=1
3762 fi
3763
3764 done
3765
3766
3767     if test "${H323_AVCODEC}z" != "z" ; then
3768       echo "$as_me:$LINENO: checking for avcodec_open in -lavcodec" >&5
3769 echo $ECHO_N "checking for avcodec_open in -lavcodec... $ECHO_C" >&6
3770 if test "${ac_cv_lib_avcodec_avcodec_open+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   ac_check_lib_save_LIBS=$LIBS
3774 LIBS="-lavcodec  $LIBS"
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781
3782 /* Override any gcc2 internal prototype to avoid an error.  */
3783 #ifdef __cplusplus
3784 extern "C"
3785 #endif
3786 /* We use char because int might match the return type of a gcc2
3787    builtin and then its argument prototype would still apply.  */
3788 char avcodec_open ();
3789 int
3790 main ()
3791 {
3792 avcodec_open ();
3793   ;
3794   return 0;
3795 }
3796 _ACEOF
3797 rm -f conftest.$ac_objext conftest$ac_exeext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799   (eval $ac_link) 2>conftest.er1
3800   ac_status=$?
3801   grep -v '^ *+' conftest.er1 >conftest.err
3802   rm -f conftest.er1
3803   cat conftest.err >&5
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } &&
3806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808   (eval $ac_try) 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }; } &&
3812          { ac_try='test -s conftest$ac_exeext'
3813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814   (eval $ac_try) 2>&5
3815   ac_status=$?
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); }; }; then
3818   ac_cv_lib_avcodec_avcodec_open=yes
3819 else
3820   echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823 ac_cv_lib_avcodec_avcodec_open=no
3824 fi
3825 rm -f conftest.err conftest.$ac_objext \
3826       conftest$ac_exeext conftest.$ac_ext
3827 LIBS=$ac_check_lib_save_LIBS
3828 fi
3829 echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_open" >&5
3830 echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_open" >&6
3831 if test $ac_cv_lib_avcodec_avcodec_open = yes; then
3832   H323_AVCODEC=1
3833 else
3834   H323_AVCODEC=
3835 fi
3836
3837     fi
3838
3839     if test "${H323_AVCODEC}z" != "z" ; then
3840       echo "$as_me:$LINENO: checking for /usr/local/include/ffmpeg/avcodec.h" >&5
3841 echo $ECHO_N "checking for /usr/local/include/ffmpeg/avcodec.h... $ECHO_C" >&6
3842 if test "${ac_cv_file__usr_local_include_ffmpeg_avcodec_h+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   test "$cross_compiling" = yes &&
3846   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3847 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3848    { (exit 1); exit 1; }; }
3849 if test -r "/usr/local/include/ffmpeg/avcodec.h"; then
3850   ac_cv_file__usr_local_include_ffmpeg_avcodec_h=yes
3851 else
3852   ac_cv_file__usr_local_include_ffmpeg_avcodec_h=no
3853 fi
3854 fi
3855 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ffmpeg_avcodec_h" >&5
3856 echo "${ECHO_T}$ac_cv_file__usr_local_include_ffmpeg_avcodec_h" >&6
3857 if test $ac_cv_file__usr_local_include_ffmpeg_avcodec_h = yes; then
3858   H323_AVCODEC=1
3859 fi
3860
3861     fi
3862
3863     if test "${H323_AVCODEC}z" = "z" ; then
3864       { echo "$as_me:$LINENO: Unable to find non-RFC2190 H.263 using ffmpeg" >&5
3865 echo "$as_me: Unable to find non-RFC2190 H.263 using ffmpeg" >&6;}
3866     else
3867       H323_AVCODEC=1
3868
3869 cat >>confdefs.h <<\_ACEOF
3870 #define H323_AVCODEC 1
3871 _ACEOF
3872
3873       AVCODECINCLUDEDIR=/usr/local/include/ffmpeg
3874       AVCODECLIBDIR=/usr/local/lib
3875       STDCCFLAGS="$STDCCFLAGS -I${AVCODECINCLUDEDIR}"
3876
3877       { echo "$as_me:$LINENO: Enabled non-RFC2190 H.263 using ffmpeg" >&5
3878 echo "$as_me: Enabled non-RFC2190 H.263 using ffmpeg" >&6;}
3879     fi
3880   fi
3881
3882
3883
3884   # Check whether --enable-vich263 or --disable-vich263 was given.
3885 if test "${enable_vich263+set}" = set; then
3886   enableval="$enable_vich263"
3887
3888 fi;
3889   if test "${enable_vich263}z" = "z" ; then
3890     enable_vich263=$default_vich263
3891   fi
3892
3893   if test "$enable_vich263" = "no" ; then
3894     { echo "$as_me:$LINENO: Disabled H.263 using VIC" >&5
3895 echo "$as_me: Disabled H.263 using VIC" >&6;}
3896   else
3897
3898 for ac_header in encoder-h263.h
3899 do
3900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3902   echo "$as_me:$LINENO: checking for $ac_header" >&5
3903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 fi
3907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3909 else
3910   # Is the header compilable?
3911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919 $ac_includes_default
3920 #include <$ac_header>
3921 _ACEOF
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924   (eval $ac_compile) 2>conftest.er1
3925   ac_status=$?
3926   grep -v '^ *+' conftest.er1 >conftest.err
3927   rm -f conftest.er1
3928   cat conftest.err >&5
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } &&
3931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933   (eval $ac_try) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }; } &&
3937          { ac_try='test -s conftest.$ac_objext'
3938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939   (eval $ac_try) 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }; }; then
3943   ac_header_compiler=yes
3944 else
3945   echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 ac_header_compiler=no
3949 fi
3950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3952 echo "${ECHO_T}$ac_header_compiler" >&6
3953
3954 # Is the header present?
3955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h.  */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h.  */
3963 #include <$ac_header>
3964 _ACEOF
3965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3967   ac_status=$?
3968   grep -v '^ *+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } >/dev/null; then
3973   if test -s conftest.err; then
3974     ac_cpp_err=$ac_c_preproc_warn_flag
3975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3976   else
3977     ac_cpp_err=
3978   fi
3979 else
3980   ac_cpp_err=yes
3981 fi
3982 if test -z "$ac_cpp_err"; then
3983   ac_header_preproc=yes
3984 else
3985   echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988   ac_header_preproc=no
3989 fi
3990 rm -f conftest.err conftest.$ac_ext
3991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3992 echo "${ECHO_T}$ac_header_preproc" >&6
3993
3994 # So?  What about this header?
3995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3996   yes:no: )
3997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4001     ac_header_preproc=yes
4002     ;;
4003   no:yes:* )
4004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4016     (
4017       cat <<\_ASBOX
4018 ## ------------------------------------------ ##
4019 ## Report this to the AC_PACKAGE_NAME lists.  ##
4020 ## ------------------------------------------ ##
4021 _ASBOX
4022     ) |
4023       sed "s/^/$as_me: WARNING:     /" >&2
4024     ;;
4025 esac
4026 echo "$as_me:$LINENO: checking for $ac_header" >&5
4027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   eval "$as_ac_Header=\$ac_header_preproc"
4032 fi
4033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4035
4036 fi
4037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4038   cat >>confdefs.h <<_ACEOF
4039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4040 _ACEOF
4041  H323_VICH263=1
4042 fi
4043
4044 done
4045
4046     if test "${H323_VICH263}z" != "z" ; then
4047       echo "$as_me:$LINENO: checking for /usr/local/lib/libvich263.so" >&5
4048 echo $ECHO_N "checking for /usr/local/lib/libvich263.so... $ECHO_C" >&6
4049 if test "${ac_cv_file__usr_local_lib_libvich263_so+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   test "$cross_compiling" = yes &&
4053   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4054 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4055    { (exit 1); exit 1; }; }
4056 if test -r "/usr/local/lib/libvich263.so"; then
4057   ac_cv_file__usr_local_lib_libvich263_so=yes
4058 else
4059   ac_cv_file__usr_local_lib_libvich263_so=no
4060 fi
4061 fi
4062 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_lib_libvich263_so" >&5
4063 echo "${ECHO_T}$ac_cv_file__usr_local_lib_libvich263_so" >&6
4064 if test $ac_cv_file__usr_local_lib_libvich263_so = yes; then
4065   H323_VICH263=1
4066 else
4067   H323_VICH263=
4068 fi
4069
4070     fi
4071
4072     if test "${H323_VICH263}z" != "z" ; then
4073      echo "$as_me:$LINENO: checking for /usr/local/include/vich263/encoder-h263.h" >&5
4074 echo $ECHO_N "checking for /usr/local/include/vich263/encoder-h263.h... $ECHO_C" >&6
4075 if test "${ac_cv_file__usr_local_include_vich263_encoder_h263_h+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078   test "$cross_compiling" = yes &&
4079   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4080 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4081    { (exit 1); exit 1; }; }
4082 if test -r "/usr/local/include/vich263/encoder-h263.h"; then
4083   ac_cv_file__usr_local_include_vich263_encoder_h263_h=yes
4084 else
4085   ac_cv_file__usr_local_include_vich263_encoder_h263_h=no
4086 fi
4087 fi
4088 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_vich263_encoder_h263_h" >&5
4089 echo "${ECHO_T}$ac_cv_file__usr_local_include_vich263_encoder_h263_h" >&6
4090 if test $ac_cv_file__usr_local_include_vich263_encoder_h263_h = yes; then
4091   H323_VICH263=1
4092 fi
4093
4094     fi
4095
4096     if test "${H323_VICH263}z" = "z" ; then
4097       { echo "$as_me:$LINENO: Unable to find H.263 using VIC" >&5
4098 echo "$as_me: Unable to find H.263 using VIC" >&6;}
4099     else
4100       H323_VICH263=1
4101
4102 cat >>confdefs.h <<\_ACEOF
4103 #define H323_VICH263 1
4104 _ACEOF
4105
4106       VICH263INCLUDEDIR=/usr/local/include/vich263
4107       VICH263LIBDIR=/usr/local/lib
4108       STDCCFLAGS="$STDCCFLAGS -I${VICH263INCLUDEDIR}"
4109       { echo "$as_me:$LINENO: Enabled H.263 using VIC" >&5
4110 echo "$as_me: Enabled H.263 using VIC" >&6;}
4111     fi
4112   fi
4113 fi
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123 # Check whether --enable-transnexusosp or --disable-transnexusosp was given.
4124 if test "${enable_transnexusosp+set}" = set; then
4125   enableval="$enable_transnexusosp"
4126
4127 fi;
4128
4129 if test "${enable_transnexusosp}z" = "z" ; then
4130   enable_transnexusosp=$default_transnexusosp
4131 fi
4132
4133 OLD_LDFLAGS=$LDFLAGS
4134
4135 if test "$enable_transnexusosp" = "no" ; then
4136   { echo "$as_me:$LINENO: Disabling support for the Transnexus OSP toolkit" >&5
4137 echo "$as_me: Disabling support for the Transnexus OSP toolkit" >&6;}
4138 else
4139
4140 for ac_header in osp/osp.h
4141 do
4142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4144   echo "$as_me:$LINENO: checking for $ac_header" >&5
4145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 fi
4149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4151 else
4152   # Is the header compilable?
4153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161 $ac_includes_default
4162 #include <$ac_header>
4163 _ACEOF
4164 rm -f conftest.$ac_objext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166   (eval $ac_compile) 2>conftest.er1
4167   ac_status=$?
4168   grep -v '^ *+' conftest.er1 >conftest.err
4169   rm -f conftest.er1
4170   cat conftest.err >&5
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); } &&
4173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175   (eval $ac_try) 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; } &&
4179          { ac_try='test -s conftest.$ac_objext'
4180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181   (eval $ac_try) 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); }; }; then
4185   ac_header_compiler=yes
4186 else
4187   echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190 ac_header_compiler=no
4191 fi
4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4194 echo "${ECHO_T}$ac_header_compiler" >&6
4195
4196 # Is the header present?
4197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h.  */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h.  */
4205 #include <$ac_header>
4206 _ACEOF
4207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } >/dev/null; then
4215   if test -s conftest.err; then
4216     ac_cpp_err=$ac_c_preproc_warn_flag
4217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4218   else
4219     ac_cpp_err=
4220   fi
4221 else
4222   ac_cpp_err=yes
4223 fi
4224 if test -z "$ac_cpp_err"; then
4225   ac_header_preproc=yes
4226 else
4227   echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4229
4230   ac_header_preproc=no
4231 fi
4232 rm -f conftest.err conftest.$ac_ext
4233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4234 echo "${ECHO_T}$ac_header_preproc" >&6
4235
4236 # So?  What about this header?
4237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4238   yes:no: )
4239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4243     ac_header_preproc=yes
4244     ;;
4245   no:yes:* )
4246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4258     (
4259       cat <<\_ASBOX
4260 ## ------------------------------------------ ##
4261 ## Report this to the AC_PACKAGE_NAME lists.  ##
4262 ## ------------------------------------------ ##
4263 _ASBOX
4264     ) |
4265       sed "s/^/$as_me: WARNING:     /" >&2
4266     ;;
4267 esac
4268 echo "$as_me:$LINENO: checking for $ac_header" >&5
4269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   eval "$as_ac_Header=\$ac_header_preproc"
4274 fi
4275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4277
4278 fi
4279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4280   cat >>confdefs.h <<_ACEOF
4281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4282 _ACEOF
4283  HAS_TRANSNEXUS_OSP=1
4284 fi
4285
4286 done
4287
4288   if test "${HAS_TRANSNEXUS_OSP}x" = "1x" ; then
4289     echo "$as_me:$LINENO: checking for OSPPInit in -losp" >&5
4290 echo $ECHO_N "checking for OSPPInit in -losp... $ECHO_C" >&6
4291 if test "${ac_cv_lib_osp_OSPPInit+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   ac_check_lib_save_LIBS=$LIBS
4295 LIBS="-losp -lssl $LIBS"
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h.  */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h.  */
4302
4303 /* Override any gcc2 internal prototype to avoid an error.  */
4304 #ifdef __cplusplus
4305 extern "C"
4306 #endif
4307 /* We use char because int might match the return type of a gcc2
4308    builtin and then its argument prototype would still apply.  */
4309 char OSPPInit ();
4310 int
4311 main ()
4312 {
4313 OSPPInit ();
4314   ;
4315   return 0;
4316 }
4317 _ACEOF
4318 rm -f conftest.$ac_objext conftest$ac_exeext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320   (eval $ac_link) 2>conftest.er1
4321   ac_status=$?
4322   grep -v '^ *+' conftest.er1 >conftest.err
4323   rm -f conftest.er1
4324   cat conftest.err >&5
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } &&
4327          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; } &&
4333          { ac_try='test -s conftest$ac_exeext'
4334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335   (eval $ac_try) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   ac_cv_lib_osp_OSPPInit=yes
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ac_cv_lib_osp_OSPPInit=no
4345 fi
4346 rm -f conftest.err conftest.$ac_objext \
4347       conftest$ac_exeext conftest.$ac_ext
4348 LIBS=$ac_check_lib_save_LIBS
4349 fi
4350 echo "$as_me:$LINENO: result: $ac_cv_lib_osp_OSPPInit" >&5
4351 echo "${ECHO_T}$ac_cv_lib_osp_OSPPInit" >&6
4352 if test $ac_cv_lib_osp_OSPPInit = yes; then
4353   HAS_TRANSNEXUS_OSP=1
4354 else
4355   HAS_TRANSNEXUS_OSP=
4356 fi
4357
4358     if test "${HAS_TRANSNEXUS_OSP}x" = "1x" ; then
4359       H323_TRANSNEXUS_OSP=1
4360       cat >>confdefs.h <<\_ACEOF
4361 #define H323_TRANSNEXUS_OSP 1
4362 _ACEOF
4363
4364       LDLIBS="${LDLIBS} -losp"
4365       OSP_INCLUDE="#include <osp/osp.h>"
4366     else
4367       unset ac_cv_lib_osp_OSPPInit
4368       LDFLAGS="-L/usr/local/lib $OLD_LDFLAGS"
4369       echo "$as_me:$LINENO: checking for OSPPInit in -losp" >&5
4370 echo $ECHO_N "checking for OSPPInit in -losp... $ECHO_C" >&6
4371 if test "${ac_cv_lib_osp_OSPPInit+set}" = set; then
4372   echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374   ac_check_lib_save_LIBS=$LIBS
4375 LIBS="-losp -lssl $LIBS"
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h.  */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h.  */
4382
4383 /* Override any gcc2 internal prototype to avoid an error.  */
4384 #ifdef __cplusplus
4385 extern "C"
4386 #endif
4387 /* We use char because int might match the return type of a gcc2
4388    builtin and then its argument prototype would still apply.  */
4389 char OSPPInit ();
4390 int
4391 main ()
4392 {
4393 OSPPInit ();
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext conftest$ac_exeext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4400   (eval $ac_link) 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } &&
4407          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409   (eval $ac_try) 2>&5
4410   ac_status=$?
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); }; } &&
4413          { ac_try='test -s conftest$ac_exeext'
4414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415   (eval $ac_try) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; }; then
4419   ac_cv_lib_osp_OSPPInit=yes
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ac_cv_lib_osp_OSPPInit=no
4425 fi
4426 rm -f conftest.err conftest.$ac_objext \
4427       conftest$ac_exeext conftest.$ac_ext
4428 LIBS=$ac_check_lib_save_LIBS
4429 fi
4430 echo "$as_me:$LINENO: result: $ac_cv_lib_osp_OSPPInit" >&5
4431 echo "${ECHO_T}$ac_cv_lib_osp_OSPPInit" >&6
4432 if test $ac_cv_lib_osp_OSPPInit = yes; then
4433   HAS_TRANSNEXUS_OSP=1
4434 else
4435   HAS_TRANSNEXUS_OSP=
4436 fi
4437
4438       if test "${HAS_TRANSNEXUS_OSP}x" = "1x" ; then
4439         H323_TRANSNEXUS_OSP=1
4440         cat >>confdefs.h <<\_ACEOF
4441 #define H323_TRANSNEXUS_OSP 1
4442 _ACEOF
4443
4444         STDCCFLAGS="$STDCCFLAGS -I/usr/local/include"
4445         LDLIBS="${LDLIBS} -losp"
4446         OSP_INCLUDE='#include "/usr/local/include/osp/osp.h"'
4447       else
4448         unset ac_cv_lib_osp_OSPPInit
4449         LDFLAGS="$OLD_LDFLAGS"
4450         echo "$as_me:$LINENO: checking for OSPPInit in -losptk" >&5
4451 echo $ECHO_N "checking for OSPPInit in -losptk... $ECHO_C" >&6
4452 if test "${ac_cv_lib_osptk_OSPPInit+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   ac_check_lib_save_LIBS=$LIBS
4456 LIBS="-losptk -lssl $LIBS"
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463
4464 /* Override any gcc2 internal prototype to avoid an error.  */
4465 #ifdef __cplusplus
4466 extern "C"
4467 #endif
4468 /* We use char because int might match the return type of a gcc2
4469    builtin and then its argument prototype would still apply.  */
4470 char OSPPInit ();
4471 int
4472 main ()
4473 {
4474 OSPPInit ();
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 rm -f conftest.$ac_objext conftest$ac_exeext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4481   (eval $ac_link) 2>conftest.er1
4482   ac_status=$?
4483   grep -v '^ *+' conftest.er1 >conftest.err
4484   rm -f conftest.er1
4485   cat conftest.err >&5
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } &&
4488          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490   (eval $ac_try) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; } &&
4494          { ac_try='test -s conftest$ac_exeext'
4495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496   (eval $ac_try) 2>&5
4497   ac_status=$?
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); }; }; then
4500   ac_cv_lib_osptk_OSPPInit=yes
4501 else
4502   echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4504
4505 ac_cv_lib_osptk_OSPPInit=no
4506 fi
4507 rm -f conftest.err conftest.$ac_objext \
4508       conftest$ac_exeext conftest.$ac_ext
4509 LIBS=$ac_check_lib_save_LIBS
4510 fi
4511 echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPInit" >&5
4512 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPInit" >&6
4513 if test $ac_cv_lib_osptk_OSPPInit = yes; then
4514   HAS_TRANSNEXUS_OSP=1
4515 else
4516   HAS_TRANSNEXUS_OSP=
4517 fi
4518
4519         if test "${HAS_TRANSNEXUS_OSP}x" = "1x" ; then
4520           H323_TRANSNEXUS_OSP=1
4521           cat >>confdefs.h <<\_ACEOF
4522 #define H323_TRANSNEXUS_OSP 1
4523 _ACEOF
4524
4525           LDLIBS="${LDLIBS} -losptk"
4526           OSP_INCLUDE="#include <osp/osp.h>"
4527         else
4528           unset ac_cv_lib_osp_OSPPInit
4529           LDFLAGS="-L/usr/local/lib $OLD_LDFLAGS"
4530           echo "$as_me:$LINENO: checking for OSPPInit in -losptk" >&5
4531 echo $ECHO_N "checking for OSPPInit in -losptk... $ECHO_C" >&6
4532 if test "${ac_cv_lib_osptk_OSPPInit+set}" = set; then
4533   echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535   ac_check_lib_save_LIBS=$LIBS
4536 LIBS="-losptk -lssl $LIBS"
4537 cat >conftest.$ac_ext <<_ACEOF
4538 /* confdefs.h.  */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h.  */
4543
4544 /* Override any gcc2 internal prototype to avoid an error.  */
4545 #ifdef __cplusplus
4546 extern "C"
4547 #endif
4548 /* We use char because int might match the return type of a gcc2
4549    builtin and then its argument prototype would still apply.  */
4550 char OSPPInit ();
4551 int
4552 main ()
4553 {
4554 OSPPInit ();
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext conftest$ac_exeext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4561   (eval $ac_link) 2>conftest.er1
4562   ac_status=$?
4563   grep -v '^ *+' conftest.er1 >conftest.err
4564   rm -f conftest.er1
4565   cat conftest.err >&5
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); } &&
4568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570   (eval $ac_try) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); }; } &&
4574          { ac_try='test -s conftest$ac_exeext'
4575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576   (eval $ac_try) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; }; then
4580   ac_cv_lib_osptk_OSPPInit=yes
4581 else
4582   echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585 ac_cv_lib_osptk_OSPPInit=no
4586 fi
4587 rm -f conftest.err conftest.$ac_objext \
4588       conftest$ac_exeext conftest.$ac_ext
4589 LIBS=$ac_check_lib_save_LIBS
4590 fi
4591 echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPInit" >&5
4592 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPInit" >&6
4593 if test $ac_cv_lib_osptk_OSPPInit = yes; then
4594   HAS_TRANSNEXUS_OSP=1
4595 else
4596   HAS_TRANSNEXUS_OSP=
4597 fi
4598
4599           if test "${HAS_TRANSNEXUS_OSP}x" = "1x" ; then
4600             H323_TRANSNEXUS_OSP=1
4601             cat >>confdefs.h <<\_ACEOF
4602 #define H323_TRANSNEXUS_OSP 1
4603 _ACEOF
4604
4605             STDCCFLAGS="$STDCCFLAGS -I/usr/local/include"
4606             LDLIBS="${LDLIBS} -losptk"
4607             OSP_INCLUDE='#include "/usr/local/include/osp/osp.h"'
4608           fi
4609         fi
4610       fi
4611     fi
4612   fi
4613 fi
4614
4615 LDFLAGS=$OLD_LDFLAGS
4616
4617 if test "${H323_TRANSNEXUS_OSP}x" != "x" ; then
4618   if test "${OSP_INCLUDE}x" != "x" ; then
4619     echo "$as_me:$LINENO: checking for new OSP toolkit API" >&5
4620 echo $ECHO_N "checking for new OSP toolkit API... $ECHO_C" >&6
4621     cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627 ${OSP_INCLUDE}
4628 int
4629 main ()
4630 {
4631 int main(int ac,char **av) { OSPTTRANHANDLE h; OSPTTIME t; OSPPTransactionReportUsage(h, 0, t, 0, 0, 0, 0, NULL, NULL); return 0; }
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638   (eval $ac_compile) 2>conftest.er1
4639   ac_status=$?
4640   grep -v '^ *+' conftest.er1 >conftest.err
4641   rm -f conftest.er1
4642   cat conftest.err >&5
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } &&
4645          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647   (eval $ac_try) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; } &&
4651          { ac_try='test -s conftest.$ac_objext'
4652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653   (eval $ac_try) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657   H323_NEW_OSP_API=
4658 else
4659   echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 H323_NEW_OSP_API=1
4663 fi
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665     if test "${H323_NEW_OSP_API}x" != "x" ; then
4666       echo "$as_me:$LINENO: result: yes" >&5
4667 echo "${ECHO_T}yes" >&6
4668       cat >>confdefs.h <<\_ACEOF
4669 #define H323_NEW_OSP_API 1
4670 _ACEOF
4671
4672     else
4673       echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6
4675     fi
4676   fi
4677 fi
4678
4679
4680
4681
4682
4683 # Check whether --enable-t38 or --disable-t38 was given.
4684 if test "${enable_t38+set}" = set; then
4685   enableval="$enable_t38"
4686
4687 fi;
4688 if test "${enable_t38}x" = "x" ; then
4689   enable_t38=$default_t38
4690 fi
4691 if test "$enable_t38" = "yes" ; then
4692   { echo "$as_me:$LINENO: Enabling T.38" >&5
4693 echo "$as_me: Enabling T.38" >&6;}
4694   H323_T38=1
4695   cat >>confdefs.h <<\_ACEOF
4696 #define H323_T38 1
4697 _ACEOF
4698
4699 else
4700   H323_T38=
4701   { echo "$as_me:$LINENO: Disabling T.38" >&5
4702 echo "$as_me: Disabling T.38" >&6;}
4703 fi
4704
4705
4706
4707
4708 # Check whether --enable-h248 or --disable-h248 was given.
4709 if test "${enable_h248+set}" = set; then
4710   enableval="$enable_h248"
4711
4712 fi;
4713 if test "${enable_h248}x" = "x" ; then
4714   enable_h248=$default_h248
4715 fi
4716 if test "$enable_h248" = "yes" ; then
4717   H323_H248=1
4718   cat >>confdefs.h <<\_ACEOF
4719 #define H323_H248 1
4720 _ACEOF
4721
4722 else
4723   H323_H248=
4724   { echo "$as_me:$LINENO: Disabling H.248" >&5
4725 echo "$as_me: Disabling H.248" >&6;}
4726 fi
4727
4728
4729
4730
4731 # Check whether --enable-h450 or --disable-h450 was given.
4732 if test "${enable_h450+set}" = set; then
4733   enableval="$enable_h450"
4734
4735 fi;
4736 if test "${enable_h450}x" = "x" ; then
4737   enable_h450=$default_h450
4738 fi
4739 if test "$enable_h450" = "yes" ; then
4740   H323_H450=1
4741   cat >>confdefs.h <<\_ACEOF
4742 #define H323_H450 1
4743 _ACEOF
4744
4745 else
4746   H323_H450=
4747   { echo "$as_me:$LINENO: Disabling H.450" >&5
4748 echo "$as_me: Disabling H.450" >&6;}
4749 fi
4750
4751
4752
4753
4754 # Check whether --enable-h460 or --disable-h460 was given.
4755 if test "${enable_h460+set}" = set; then
4756   enableval="$enable_h460"
4757
4758 fi;
4759 if test "${enable_h460}x" = "x" ; then
4760   enable_h460=$default_h460
4761 fi
4762 if test "$enable_h460" = "yes" ; then
4763   H323_H460=1
4764   cat >>confdefs.h <<\_ACEOF
4765 #define H323_H460 1
4766 _ACEOF
4767
4768 else
4769   H323_H460=
4770   { echo "$as_me:$LINENO: Disabling H.460" >&5
4771 echo "$as_me: Disabling H.460" >&6;}
4772 fi
4773
4774
4775
4776
4777 # Check whether --enable-h501 or --disable-h501 was given.
4778 if test "${enable_h501+set}" = set; then
4779   enableval="$enable_h501"
4780
4781 fi;
4782 if test "${enable_h501}x" = "x" ; then
4783   enable_h501=$default_h501
4784 fi
4785 if test "$enable_h501" = "yes" ; then
4786   H323_H501=1
4787   cat >>confdefs.h <<\_ACEOF
4788 #define H323_H501 1
4789 _ACEOF
4790
4791 else
4792   H323_H501=
4793   { echo "$as_me:$LINENO: Disabling H.501" >&5
4794 echo "$as_me: Disabling H.501" >&6;}
4795 fi
4796
4797
4798
4799
4800 # Check whether --enable-t120 or --disable-t120 was given.
4801 if test "${enable_t120+set}" = set; then
4802   enableval="$enable_t120"
4803
4804 fi;
4805 if test "${enable_t120}x" = "x" ; then
4806   enable_t120=$default_t120
4807 fi
4808 if test "$enable_t120" = "no" ; then
4809   H323_T120=
4810   { echo "$as_me:$LINENO: Disabling T.120" >&5
4811 echo "$as_me: Disabling T.120" >&6;}
4812 else
4813   H323_T20=1
4814   cat >>confdefs.h <<\_ACEOF
4815 #define H323_T120 1
4816 _ACEOF
4817
4818 fi
4819
4820
4821
4822
4823 # Check whether --enable-ixj or --disable-ixj was given.
4824 if test "${enable_ixj+set}" = set; then
4825   enableval="$enable_ixj"
4826
4827 fi;
4828 if test "${enable_ixj}x" = "x" ; then
4829   enable_ixj=$default_ixj
4830 fi
4831
4832 HAS_IXJ=
4833 H323_IXJ=
4834 if test "$enable_ixj" = "no" ; then
4835   { echo "$as_me:$LINENO: Disabling IXJ support" >&5
4836 echo "$as_me: Disabling IXJ support" >&6;}
4837 else
4838
4839
4840
4841 for ac_header in linux/telephony.h sys/telephony.h /usr/local/include/sys/telephony.h
4842 do
4843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4845   echo "$as_me:$LINENO: checking for $ac_header" >&5
4846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4848   echo $ECHO_N "(cached) $ECHO_C" >&6
4849 fi
4850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4852 else
4853   # Is the header compilable?
4854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862 $ac_includes_default
4863 #include <$ac_header>
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867   (eval $ac_compile) 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } &&
4874          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876   (eval $ac_try) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; } &&
4880          { ac_try='test -s conftest.$ac_objext'
4881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882   (eval $ac_try) 2>&5
4883   ac_status=$?
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); }; }; then
4886   ac_header_compiler=yes
4887 else
4888   echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 ac_header_compiler=no
4892 fi
4893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4895 echo "${ECHO_T}$ac_header_compiler" >&6
4896
4897 # Is the header present?
4898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4900 cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h.  */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h.  */
4906 #include <$ac_header>
4907 _ACEOF
4908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } >/dev/null; then
4916   if test -s conftest.err; then
4917     ac_cpp_err=$ac_c_preproc_warn_flag
4918     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4919   else
4920     ac_cpp_err=
4921   fi
4922 else
4923   ac_cpp_err=yes
4924 fi
4925 if test -z "$ac_cpp_err"; then
4926   ac_header_preproc=yes
4927 else
4928   echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4930
4931   ac_header_preproc=no
4932 fi
4933 rm -f conftest.err conftest.$ac_ext
4934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4935 echo "${ECHO_T}$ac_header_preproc" >&6
4936
4937 # So?  What about this header?
4938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4939   yes:no: )
4940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4944     ac_header_preproc=yes
4945     ;;
4946   no:yes:* )
4947     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4949     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4950 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4951     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4953     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4954 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4957     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4959     (
4960       cat <<\_ASBOX
4961 ## ------------------------------------------ ##
4962 ## Report this to the AC_PACKAGE_NAME lists.  ##
4963 ## ------------------------------------------ ##
4964 _ASBOX
4965     ) |
4966       sed "s/^/$as_me: WARNING:     /" >&2
4967     ;;
4968 esac
4969 echo "$as_me:$LINENO: checking for $ac_header" >&5
4970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   eval "$as_ac_Header=\$ac_header_preproc"
4975 fi
4976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4978
4979 fi
4980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4981   cat >>confdefs.h <<_ACEOF
4982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4983 _ACEOF
4984  HAS_IXJ=1
4985 fi
4986
4987 done
4988
4989   if test "${HAS_IXJ}z" != "z" ; then
4990     echo "$as_me:$LINENO: checking if ixjuser.h actually compiles" >&5
4991 echo $ECHO_N "checking if ixjuser.h actually compiles... $ECHO_C" >&6
4992     cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h.  */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h.  */
4998 #include <linux/ixjuser.h>
4999 int
5000 main ()
5001 {
5002 int main(int ac,char **av) { return 0; }
5003   ;
5004   return 0;
5005 }
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009   (eval $ac_compile) 2>conftest.er1
5010   ac_status=$?
5011   grep -v '^ *+' conftest.er1 >conftest.err
5012   rm -f conftest.er1
5013   cat conftest.err >&5
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); } &&
5016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; } &&
5022          { ac_try='test -s conftest.$ac_objext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   HAS_IXJ=1
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 HAS_IXJ=
5034 fi
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036     if test "x$HAS_IXJ" != "x" ; then
5037       H323_IXJ=1
5038       cat >>confdefs.h <<\_ACEOF
5039 #define HAS_IXJ 1
5040 _ACEOF
5041
5042       echo "$as_me:$LINENO: result: yes" >&5
5043 echo "${ECHO_T}yes" >&6
5044     else
5045       echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047     fi
5048   fi
5049 fi
5050
5051
5052
5053
5054
5055
5056
5057 ac_aux_dir=
5058 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5059   if test -f $ac_dir/install-sh; then
5060     ac_aux_dir=$ac_dir
5061     ac_install_sh="$ac_aux_dir/install-sh -c"
5062     break
5063   elif test -f $ac_dir/install.sh; then
5064     ac_aux_dir=$ac_dir
5065     ac_install_sh="$ac_aux_dir/install.sh -c"
5066     break
5067   elif test -f $ac_dir/shtool; then
5068     ac_aux_dir=$ac_dir
5069     ac_install_sh="$ac_aux_dir/shtool install -c"
5070     break
5071   fi
5072 done
5073 if test -z "$ac_aux_dir"; then
5074   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5075 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5076    { (exit 1); exit 1; }; }
5077 fi
5078 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
5079 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
5080 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5081
5082 # Find a good install program.  We prefer a C program (faster),
5083 # so one script is as good as another.  But avoid the broken or
5084 # incompatible versions:
5085 # SysV /etc/install, /usr/sbin/install
5086 # SunOS /usr/etc/install
5087 # IRIX /sbin/install
5088 # AIX /bin/install
5089 # AmigaOS /C/install, which installs bootblocks on floppy discs
5090 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5091 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5092 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5093 # OS/2's system install, which has a completely different semantic
5094 # ./install, which can be erroneously created by make from ./install.sh.
5095 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5096 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5097 if test -z "$INSTALL"; then
5098 if test "${ac_cv_path_install+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   # Account for people who put trailing slashes in PATH elements.
5107 case $as_dir/ in
5108   ./ | .// | /cC/* | \
5109   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5110   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5111   /usr/ucb/* ) ;;
5112   *)
5113     # OSF1 and SCO ODT 3.0 have their own names for install.
5114     # Don't use installbsd from OSF since it installs stuff as root
5115     # by default.
5116     for ac_prog in ginstall scoinst install; do
5117       for ac_exec_ext in '' $ac_executable_extensions; do
5118         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5119           if test $ac_prog = install &&
5120             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5121             # AIX install.  It has an incompatible calling convention.
5122             :
5123           elif test $ac_prog = install &&
5124             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5125             # program-specific install script used by HP pwplus--don't use.
5126             :
5127           else
5128             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5129             break 3
5130           fi
5131         fi
5132       done
5133     done
5134     ;;
5135 esac
5136 done
5137
5138
5139 fi
5140   if test "${ac_cv_path_install+set}" = set; then
5141     INSTALL=$ac_cv_path_install
5142   else
5143     # As a last resort, use the slow shell script.  We don't cache a
5144     # path for INSTALL within a source directory, because that will
5145     # break other packages using the cache if that directory is
5146     # removed, or if the path is relative.
5147     INSTALL=$ac_install_sh
5148   fi
5149 fi
5150 echo "$as_me:$LINENO: result: $INSTALL" >&5
5151 echo "${ECHO_T}$INSTALL" >&6
5152
5153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5154 # It thinks the first close brace ends the variable substitution.
5155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5156
5157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5158
5159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5160
5161
5162           ac_config_files="$ac_config_files openh323u.mak"
5163
5164           ac_config_files="$ac_config_files Makefile"
5165
5166
5167
5168
5169           ac_config_headers="$ac_config_headers include/openh323buildopts.h"
5170
5171
5172
5173
5174
5175
5176 subdirs="$subdirs plugins"
5177
5178
5179 cat >confcache <<\_ACEOF
5180 # This file is a shell script that caches the results of configure
5181 # tests run on this system so they can be shared between configure
5182 # scripts and configure runs, see configure's option --config-cache.
5183 # It is not useful on other systems.  If it contains results you don't
5184 # want to keep, you may remove or edit it.
5185 #
5186 # config.status only pays attention to the cache file if you give it
5187 # the --recheck option to rerun configure.
5188 #
5189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5191 # following values.
5192
5193 _ACEOF
5194
5195 # The following way of writing the cache mishandles newlines in values,
5196 # but we know of no workaround that is simple, portable, and efficient.
5197 # So, don't put newlines in cache variables' values.
5198 # Ultrix sh set writes to stderr and can't be redirected directly,
5199 # and sets the high bit in the cache file unless we assign to the vars.
5200 {
5201   (set) 2>&1 |
5202     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5203     *ac_space=\ *)
5204       # `set' does not quote correctly, so add quotes (double-quote
5205       # substitution turns \\\\ into \\, and sed turns \\ into \).
5206       sed -n \
5207         "s/'/'\\\\''/g;
5208           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5209       ;;
5210     *)
5211       # `set' quotes correctly as required by POSIX, so do not add quotes.
5212       sed -n \
5213         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5214       ;;
5215     esac;
5216 } |
5217   sed '
5218      t clear
5219      : clear
5220      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5221      t end
5222      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5223      : end' >>confcache
5224 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5225   if test -w $cache_file; then
5226     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5227     cat confcache >$cache_file
5228   else
5229     echo "not updating unwritable cache $cache_file"
5230   fi
5231 fi
5232 rm -f confcache
5233
5234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5235 # Let make expand exec_prefix.
5236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5237
5238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5240 # trailing colons and then remove the whole line if VPATH becomes empty
5241 # (actually we leave an empty line to preserve line numbers).
5242 if test "x$srcdir" = x.; then
5243   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5244 s/:*\$(srcdir):*/:/;
5245 s/:*\${srcdir}:*/:/;
5246 s/:*@srcdir@:*/:/;
5247 s/^\([^=]*=[     ]*\):*/\1/;
5248 s/:*$//;
5249 s/^[^=]*=[       ]*$//;
5250 }'
5251 fi
5252
5253 DEFS=-DHAVE_CONFIG_H
5254
5255 ac_libobjs=
5256 ac_ltlibobjs=
5257 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5258   # 1. Remove the extension, and $U if already installed.
5259   ac_i=`echo "$ac_i" |
5260          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5261   # 2. Add them.
5262   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5263   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5264 done
5265 LIBOBJS=$ac_libobjs
5266
5267 LTLIBOBJS=$ac_ltlibobjs
5268
5269
5270
5271 : ${CONFIG_STATUS=./config.status}
5272 ac_clean_files_save=$ac_clean_files
5273 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5274 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5275 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5276 cat >$CONFIG_STATUS <<_ACEOF
5277 #! $SHELL
5278 # Generated by $as_me.
5279 # Run this file to recreate the current configuration.
5280 # Compiler output produced by configure, useful for debugging
5281 # configure, is in config.log if it exists.
5282
5283 debug=false
5284 ac_cs_recheck=false
5285 ac_cs_silent=false
5286 SHELL=\${CONFIG_SHELL-$SHELL}
5287 _ACEOF
5288
5289 cat >>$CONFIG_STATUS <<\_ACEOF
5290 ## --------------------- ##
5291 ## M4sh Initialization.  ##
5292 ## --------------------- ##
5293
5294 # Be Bourne compatible
5295 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5296   emulate sh
5297   NULLCMD=:
5298   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5299   # is contrary to our usage.  Disable this feature.
5300   alias -g '${1+"$@"}'='"$@"'
5301 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5302   set -o posix
5303 fi
5304 DUALCASE=1; export DUALCASE # for MKS sh
5305
5306 # Support unset when possible.
5307 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5308   as_unset=unset
5309 else
5310   as_unset=false
5311 fi
5312
5313
5314 # Work around bugs in pre-3.0 UWIN ksh.
5315 $as_unset ENV MAIL MAILPATH
5316 PS1='$ '
5317 PS2='> '
5318 PS4='+ '
5319
5320 # NLS nuisances.
5321 for as_var in \
5322   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5323   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5324   LC_TELEPHONE LC_TIME
5325 do
5326   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5327     eval $as_var=C; export $as_var
5328   else
5329     $as_unset $as_var
5330   fi
5331 done
5332
5333 # Required to use basename.
5334 if expr a : '\(a\)' >/dev/null 2>&1; then
5335   as_expr=expr
5336 else
5337   as_expr=false
5338 fi
5339
5340 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5341   as_basename=basename
5342 else
5343   as_basename=false
5344 fi
5345
5346
5347 # Name of the executable.
5348 as_me=`$as_basename "$0" ||
5349 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5350          X"$0" : 'X\(//\)$' \| \
5351          X"$0" : 'X\(/\)$' \| \
5352          .     : '\(.\)' 2>/dev/null ||
5353 echo X/"$0" |
5354     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5355           /^X\/\(\/\/\)$/{ s//\1/; q; }
5356           /^X\/\(\/\).*/{ s//\1/; q; }
5357           s/.*/./; q'`
5358
5359
5360 # PATH needs CR, and LINENO needs CR and PATH.
5361 # Avoid depending upon Character Ranges.
5362 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5363 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5364 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5365 as_cr_digits='0123456789'
5366 as_cr_alnum=$as_cr_Letters$as_cr_digits
5367
5368 # The user is always right.
5369 if test "${PATH_SEPARATOR+set}" != set; then
5370   echo "#! /bin/sh" >conf$$.sh
5371   echo  "exit 0"   >>conf$$.sh
5372   chmod +x conf$$.sh
5373   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5374     PATH_SEPARATOR=';'
5375   else
5376     PATH_SEPARATOR=:
5377   fi
5378   rm -f conf$$.sh
5379 fi
5380
5381
5382   as_lineno_1=$LINENO
5383   as_lineno_2=$LINENO
5384   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5385   test "x$as_lineno_1" != "x$as_lineno_2" &&
5386   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5387   # Find who we are.  Look in the path if we contain no path at all
5388   # relative or not.
5389   case $0 in
5390     *[\\/]* ) as_myself=$0 ;;
5391     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5397 done
5398
5399        ;;
5400   esac
5401   # We did not find ourselves, most probably we were run as `sh COMMAND'
5402   # in which case we are not to be found in the path.
5403   if test "x$as_myself" = x; then
5404     as_myself=$0
5405   fi
5406   if test ! -f "$as_myself"; then
5407     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5408 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5409    { (exit 1); exit 1; }; }
5410   fi
5411   case $CONFIG_SHELL in
5412   '')
5413     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418   for as_base in sh bash ksh sh5; do
5419          case $as_dir in
5420          /*)
5421            if ("$as_dir/$as_base" -c '
5422   as_lineno_1=$LINENO
5423   as_lineno_2=$LINENO
5424   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5425   test "x$as_lineno_1" != "x$as_lineno_2" &&
5426   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5427              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5428              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5429              CONFIG_SHELL=$as_dir/$as_base
5430              export CONFIG_SHELL
5431              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5432            fi;;
5433          esac
5434        done
5435 done
5436 ;;
5437   esac
5438
5439   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5440   # uniformly replaced by the line number.  The first 'sed' inserts a
5441   # line-number line before each line; the second 'sed' does the real
5442   # work.  The second script uses 'N' to pair each line-number line
5443   # with the numbered line, and appends trailing '-' during
5444   # substitution so that $LINENO is not a special case at line end.
5445   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5446   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5447   sed '=' <$as_myself |
5448     sed '
5449       N
5450       s,$,-,
5451       : loop
5452       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5453       t loop
5454       s,-$,,
5455       s,^['$as_cr_digits']*\n,,
5456     ' >$as_me.lineno &&
5457   chmod +x $as_me.lineno ||
5458     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5459 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5460    { (exit 1); exit 1; }; }
5461
5462   # Don't try to exec as it changes $[0], causing all sort of problems
5463   # (the dirname of $[0] is not the place where we might find the
5464   # original and so on.  Autoconf is especially sensible to this).
5465   . ./$as_me.lineno
5466   # Exit status is that of the last command.
5467   exit
5468 }
5469
5470
5471 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5472   *c*,-n*) ECHO_N= ECHO_C='
5473 ' ECHO_T='      ' ;;
5474   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5475   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5476 esac
5477
5478 if expr a : '\(a\)' >/dev/null 2>&1; then
5479   as_expr=expr
5480 else
5481   as_expr=false
5482 fi
5483
5484 rm -f conf$$ conf$$.exe conf$$.file
5485 echo >conf$$.file
5486 if ln -s conf$$.file conf$$ 2>/dev/null; then
5487   # We could just check for DJGPP; but this test a) works b) is more generic
5488   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5489   if test -f conf$$.exe; then
5490     # Don't use ln at all; we don't have any links
5491     as_ln_s='cp -p'
5492   else
5493     as_ln_s='ln -s'
5494   fi
5495 elif ln conf$$.file conf$$ 2>/dev/null; then
5496   as_ln_s=ln
5497 else
5498   as_ln_s='cp -p'
5499 fi
5500 rm -f conf$$ conf$$.exe conf$$.file
5501
5502 if mkdir -p . 2>/dev/null; then
5503   as_mkdir_p=:
5504 else
5505   test -d ./-p && rmdir ./-p
5506   as_mkdir_p=false
5507 fi
5508
5509 as_executable_p="test -f"
5510
5511 # Sed expression to map a string onto a valid CPP name.
5512 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5513
5514 # Sed expression to map a string onto a valid variable name.
5515 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5516
5517
5518 # IFS
5519 # We need space, tab and new line, in precisely that order.
5520 as_nl='
5521 '
5522 IFS="   $as_nl"
5523
5524 # CDPATH.
5525 $as_unset CDPATH
5526
5527 exec 6>&1
5528
5529 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5530 # report actual input values of CONFIG_FILES etc. instead of their
5531 # values after options handling.  Logging --version etc. is OK.
5532 exec 5>>config.log
5533 {
5534   echo
5535   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5536 ## Running $as_me. ##
5537 _ASBOX
5538 } >&5
5539 cat >&5 <<_CSEOF
5540
5541 This file was extended by $as_me, which was
5542 generated by GNU Autoconf 2.59.  Invocation command line was
5543
5544   CONFIG_FILES    = $CONFIG_FILES
5545   CONFIG_HEADERS  = $CONFIG_HEADERS
5546   CONFIG_LINKS    = $CONFIG_LINKS
5547   CONFIG_COMMANDS = $CONFIG_COMMANDS
5548   $ $0 $@
5549
5550 _CSEOF
5551 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5552 echo >&5
5553 _ACEOF
5554
5555 # Files that config.status was made for.
5556 if test -n "$ac_config_files"; then
5557   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5558 fi
5559
5560 if test -n "$ac_config_headers"; then
5561   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5562 fi
5563
5564 if test -n "$ac_config_links"; then
5565   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5566 fi
5567
5568 if test -n "$ac_config_commands"; then
5569   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5570 fi
5571
5572 cat >>$CONFIG_STATUS <<\_ACEOF
5573
5574 ac_cs_usage="\
5575 \`$as_me' instantiates files from templates according to the
5576 current configuration.
5577
5578 Usage: $0 [OPTIONS] [FILE]...
5579
5580   -h, --help       print this help, then exit
5581   -V, --version    print version number, then exit
5582   -q, --quiet      do not print progress messages
5583   -d, --debug      don't remove temporary files
5584       --recheck    update $as_me by reconfiguring in the same conditions
5585   --file=FILE[:TEMPLATE]
5586                    instantiate the configuration file FILE
5587   --header=FILE[:TEMPLATE]
5588                    instantiate the configuration header FILE
5589
5590 Configuration files:
5591 $config_files
5592
5593 Configuration headers:
5594 $config_headers
5595
5596 Report bugs to <bug-autoconf@gnu.org>."
5597 _ACEOF
5598
5599 cat >>$CONFIG_STATUS <<_ACEOF
5600 ac_cs_version="\\
5601 config.status
5602 configured by $0, generated by GNU Autoconf 2.59,
5603   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5604
5605 Copyright (C) 2003 Free Software Foundation, Inc.
5606 This config.status script is free software; the Free Software Foundation
5607 gives unlimited permission to copy, distribute and modify it."
5608 srcdir=$srcdir
5609 INSTALL="$INSTALL"
5610 _ACEOF
5611
5612 cat >>$CONFIG_STATUS <<\_ACEOF
5613 # If no file are specified by the user, then we need to provide default
5614 # value.  By we need to know if files were specified by the user.
5615 ac_need_defaults=:
5616 while test $# != 0
5617 do
5618   case $1 in
5619   --*=*)
5620     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5621     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5622     ac_shift=:
5623     ;;
5624   -*)
5625     ac_option=$1
5626     ac_optarg=$2
5627     ac_shift=shift
5628     ;;
5629   *) # This is not an option, so the user has probably given explicit
5630      # arguments.
5631      ac_option=$1
5632      ac_need_defaults=false;;
5633   esac
5634
5635   case $ac_option in
5636   # Handling of the options.
5637 _ACEOF
5638 cat >>$CONFIG_STATUS <<\_ACEOF
5639   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5640     ac_cs_recheck=: ;;
5641   --version | --vers* | -V )
5642     echo "$ac_cs_version"; exit 0 ;;
5643   --he | --h)
5644     # Conflict between --help and --header
5645     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5646 Try \`$0 --help' for more information." >&5
5647 echo "$as_me: error: ambiguous option: $1
5648 Try \`$0 --help' for more information." >&2;}
5649    { (exit 1); exit 1; }; };;
5650   --help | --hel | -h )
5651     echo "$ac_cs_usage"; exit 0 ;;
5652   --debug | --d* | -d )
5653     debug=: ;;
5654   --file | --fil | --fi | --f )
5655     $ac_shift
5656     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5657     ac_need_defaults=false;;
5658   --header | --heade | --head | --hea )
5659     $ac_shift
5660     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5661     ac_need_defaults=false;;
5662   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5663   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5664     ac_cs_silent=: ;;
5665
5666   # This is an error.
5667   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5668 Try \`$0 --help' for more information." >&5
5669 echo "$as_me: error: unrecognized option: $1
5670 Try \`$0 --help' for more information." >&2;}
5671    { (exit 1); exit 1; }; } ;;
5672
5673   *) ac_config_targets="$ac_config_targets $1" ;;
5674
5675   esac
5676   shift
5677 done
5678
5679 ac_configure_extra_args=
5680
5681 if $ac_cs_silent; then
5682   exec 6>/dev/null
5683   ac_configure_extra_args="$ac_configure_extra_args --silent"
5684 fi
5685
5686 _ACEOF
5687 cat >>$CONFIG_STATUS <<_ACEOF
5688 if \$ac_cs_recheck; then
5689   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5690   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5691 fi
5692
5693 _ACEOF
5694
5695
5696
5697
5698
5699 cat >>$CONFIG_STATUS <<\_ACEOF
5700 for ac_config_target in $ac_config_targets
5701 do
5702   case "$ac_config_target" in
5703   # Handling of arguments.
5704   "openh323u.mak" ) CONFIG_FILES="$CONFIG_FILES openh323u.mak" ;;
5705   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5706   "include/openh323buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/openh323buildopts.h" ;;
5707   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5708 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5709    { (exit 1); exit 1; }; };;
5710   esac
5711 done
5712
5713 # If the user did not use the arguments to specify the items to instantiate,
5714 # then the envvar interface is used.  Set only those that are not.
5715 # We use the long form for the default assignment because of an extremely
5716 # bizarre bug on SunOS 4.1.3.
5717 if $ac_need_defaults; then
5718   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5719   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5720 fi
5721
5722 # Have a temporary directory for convenience.  Make it in the build tree
5723 # simply because there is no reason to put it here, and in addition,
5724 # creating and moving files from /tmp can sometimes cause problems.
5725 # Create a temporary directory, and hook for its removal unless debugging.
5726 $debug ||
5727 {
5728   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5729   trap '{ (exit 1); exit 1; }' 1 2 13 15
5730 }
5731
5732 # Create a (secure) tmp directory for tmp files.
5733
5734 {
5735   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5736   test -n "$tmp" && test -d "$tmp"
5737 }  ||
5738 {
5739   tmp=./confstat$$-$RANDOM
5740   (umask 077 && mkdir $tmp)
5741 } ||
5742 {
5743    echo "$me: cannot create a temporary directory in ." >&2
5744    { (exit 1); exit 1; }
5745 }
5746
5747 _ACEOF
5748
5749 cat >>$CONFIG_STATUS <<_ACEOF
5750
5751 #
5752 # CONFIG_FILES section.
5753 #
5754
5755 # No need to generate the scripts if there are no CONFIG_FILES.
5756 # This happens for instance when ./config.status config.h
5757 if test -n "\$CONFIG_FILES"; then
5758   # Protect against being on the right side of a sed subst in config.status.
5759   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5760    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5761 s,@SHELL@,$SHELL,;t t
5762 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5763 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5764 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5765 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5766 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5767 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5768 s,@exec_prefix@,$exec_prefix,;t t
5769 s,@prefix@,$prefix,;t t
5770 s,@program_transform_name@,$program_transform_name,;t t
5771 s,@bindir@,$bindir,;t t
5772 s,@sbindir@,$sbindir,;t t
5773 s,@libexecdir@,$libexecdir,;t t
5774 s,@datadir@,$datadir,;t t
5775 s,@sysconfdir@,$sysconfdir,;t t
5776 s,@sharedstatedir@,$sharedstatedir,;t t
5777 s,@localstatedir@,$localstatedir,;t t
5778 s,@libdir@,$libdir,;t t
5779 s,@includedir@,$includedir,;t t
5780 s,@oldincludedir@,$oldincludedir,;t t
5781 s,@infodir@,$infodir,;t t
5782 s,@mandir@,$mandir,;t t
5783 s,@build_alias@,$build_alias,;t t
5784 s,@host_alias@,$host_alias,;t t
5785 s,@target_alias@,$target_alias,;t t
5786 s,@DEFS@,$DEFS,;t t
5787 s,@ECHO_C@,$ECHO_C,;t t
5788 s,@ECHO_N@,$ECHO_N,;t t
5789 s,@ECHO_T@,$ECHO_T,;t t
5790 s,@LIBS@,$LIBS,;t t
5791 s,@CXX@,$CXX,;t t
5792 s,@CXXFLAGS@,$CXXFLAGS,;t t
5793 s,@LDFLAGS@,$LDFLAGS,;t t
5794 s,@CPPFLAGS@,$CPPFLAGS,;t t
5795 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5796 s,@EXEEXT@,$EXEEXT,;t t
5797 s,@OBJEXT@,$OBJEXT,;t t
5798 s,@CC@,$CC,;t t
5799 s,@CFLAGS@,$CFLAGS,;t t
5800 s,@ac_ct_CC@,$ac_ct_CC,;t t
5801 s,@CPP@,$CPP,;t t
5802 s,@EGREP@,$EGREP,;t t
5803 s,@OPENH323DIR@,$OPENH323DIR,;t t
5804 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
5805 s,@LIBDIR@,$LIBDIR,;t t
5806 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
5807 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
5808 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
5809 s,@OPENH323_VERSION@,$OPENH323_VERSION,;t t
5810 s,@PWLIBDIR@,$PWLIBDIR,;t t
5811 s,@NOTRACE@,$NOTRACE,;t t
5812 s,@NOAUDIOCODECS@,$NOAUDIOCODECS,;t t
5813 s,@NOVIDEO@,$NOVIDEO,;t t
5814 s,@H323_RFC2190_AVCODEC@,$H323_RFC2190_AVCODEC,;t t
5815 s,@H323_RFC2190_AVCODEC_DIR@,$H323_RFC2190_AVCODEC_DIR,;t t
5816 s,@H323_AVCODEC@,$H323_AVCODEC,;t t
5817 s,@H323_VICH263@,$H323_VICH263,;t t
5818 s,@H323_TRANSNEXUS_OSP@,$H323_TRANSNEXUS_OSP,;t t
5819 s,@H323_T38@,$H323_T38,;t t
5820 s,@H323_H248@,$H323_H248,;t t
5821 s,@H323_H450@,$H323_H450,;t t
5822 s,@H323_H460@,$H323_H460,;t t
5823 s,@H323_H501@,$H323_H501,;t t
5824 s,@H323_T120@,$H323_T120,;t t
5825 s,@H323_IXJ@,$H323_IXJ,;t t
5826 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
5827 s,@LDLIBS@,$LDLIBS,;t t
5828 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
5829 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5830 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5831 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5832 s,@subdirs@,$subdirs,;t t
5833 s,@LIBOBJS@,$LIBOBJS,;t t
5834 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5835 CEOF
5836
5837 _ACEOF
5838
5839   cat >>$CONFIG_STATUS <<\_ACEOF
5840   # Split the substitutions into bite-sized pieces for seds with
5841   # small command number limits, like on Digital OSF/1 and HP-UX.
5842   ac_max_sed_lines=48
5843   ac_sed_frag=1 # Number of current file.
5844   ac_beg=1 # First line for current file.
5845   ac_end=$ac_max_sed_lines # Line after last line for current file.
5846   ac_more_lines=:
5847   ac_sed_cmds=
5848   while $ac_more_lines; do
5849     if test $ac_beg -gt 1; then
5850       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5851     else
5852       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5853     fi
5854     if test ! -s $tmp/subs.frag; then
5855       ac_more_lines=false
5856     else
5857       # The purpose of the label and of the branching condition is to
5858       # speed up the sed processing (if there are no `@' at all, there
5859       # is no need to browse any of the substitutions).
5860       # These are the two extra sed commands mentioned above.
5861       (echo ':t
5862   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5863       if test -z "$ac_sed_cmds"; then
5864         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5865       else
5866         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5867       fi
5868       ac_sed_frag=`expr $ac_sed_frag + 1`
5869       ac_beg=$ac_end
5870       ac_end=`expr $ac_end + $ac_max_sed_lines`
5871     fi
5872   done
5873   if test -z "$ac_sed_cmds"; then
5874     ac_sed_cmds=cat
5875   fi
5876 fi # test -n "$CONFIG_FILES"
5877
5878 _ACEOF
5879 cat >>$CONFIG_STATUS <<\_ACEOF
5880 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5881   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5882   case $ac_file in
5883   - | *:- | *:-:* ) # input from stdin
5884         cat >$tmp/stdin
5885         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5886         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5887   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5888         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5889   * )   ac_file_in=$ac_file.in ;;
5890   esac
5891
5892   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5893   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5895          X"$ac_file" : 'X\(//\)[^/]' \| \
5896          X"$ac_file" : 'X\(//\)$' \| \
5897          X"$ac_file" : 'X\(/\)' \| \
5898          .     : '\(.\)' 2>/dev/null ||
5899 echo X"$ac_file" |
5900     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5901           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5902           /^X\(\/\/\)$/{ s//\1/; q; }
5903           /^X\(\/\).*/{ s//\1/; q; }
5904           s/.*/./; q'`
5905   { if $as_mkdir_p; then
5906     mkdir -p "$ac_dir"
5907   else
5908     as_dir="$ac_dir"
5909     as_dirs=
5910     while test ! -d "$as_dir"; do
5911       as_dirs="$as_dir $as_dirs"
5912       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5914          X"$as_dir" : 'X\(//\)[^/]' \| \
5915          X"$as_dir" : 'X\(//\)$' \| \
5916          X"$as_dir" : 'X\(/\)' \| \
5917          .     : '\(.\)' 2>/dev/null ||
5918 echo X"$as_dir" |
5919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5920           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5921           /^X\(\/\/\)$/{ s//\1/; q; }
5922           /^X\(\/\).*/{ s//\1/; q; }
5923           s/.*/./; q'`
5924     done
5925     test ! -n "$as_dirs" || mkdir $as_dirs
5926   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5928    { (exit 1); exit 1; }; }; }
5929
5930   ac_builddir=.
5931
5932 if test "$ac_dir" != .; then
5933   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5934   # A "../" for each directory in $ac_dir_suffix.
5935   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5936 else
5937   ac_dir_suffix= ac_top_builddir=
5938 fi
5939
5940 case $srcdir in
5941   .)  # No --srcdir option.  We are building in place.
5942     ac_srcdir=.
5943     if test -z "$ac_top_builddir"; then
5944        ac_top_srcdir=.
5945     else
5946        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5947     fi ;;
5948   [\\/]* | ?:[\\/]* )  # Absolute path.
5949     ac_srcdir=$srcdir$ac_dir_suffix;
5950     ac_top_srcdir=$srcdir ;;
5951   *) # Relative path.
5952     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5953     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5954 esac
5955
5956 # Do not use `cd foo && pwd` to compute absolute paths, because
5957 # the directories may not exist.
5958 case `pwd` in
5959 .) ac_abs_builddir="$ac_dir";;
5960 *)
5961   case "$ac_dir" in
5962   .) ac_abs_builddir=`pwd`;;
5963   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5964   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5965   esac;;
5966 esac
5967 case $ac_abs_builddir in
5968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5969 *)
5970   case ${ac_top_builddir}. in
5971   .) ac_abs_top_builddir=$ac_abs_builddir;;
5972   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5973   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5974   esac;;
5975 esac
5976 case $ac_abs_builddir in
5977 .) ac_abs_srcdir=$ac_srcdir;;
5978 *)
5979   case $ac_srcdir in
5980   .) ac_abs_srcdir=$ac_abs_builddir;;
5981   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5982   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5983   esac;;
5984 esac
5985 case $ac_abs_builddir in
5986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5987 *)
5988   case $ac_top_srcdir in
5989   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5990   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5991   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5992   esac;;
5993 esac
5994
5995
5996   case $INSTALL in
5997   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5998   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5999   esac
6000
6001   # Let's still pretend it is `configure' which instantiates (i.e., don't
6002   # use $as_me), people would be surprised to read:
6003   #    /* config.h.  Generated by config.status.  */
6004   if test x"$ac_file" = x-; then
6005     configure_input=
6006   else
6007     configure_input="$ac_file.  "
6008   fi
6009   configure_input=$configure_input"Generated from `echo $ac_file_in |
6010                                      sed 's,.*/,,'` by configure."
6011
6012   # First look for the input files in the build tree, otherwise in the
6013   # src tree.
6014   ac_file_inputs=`IFS=:
6015     for f in $ac_file_in; do
6016       case $f in
6017       -) echo $tmp/stdin ;;
6018       [\\/$]*)
6019          # Absolute (can't be DOS-style, as IFS=:)
6020          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6021 echo "$as_me: error: cannot find input file: $f" >&2;}
6022    { (exit 1); exit 1; }; }
6023          echo "$f";;
6024       *) # Relative
6025          if test -f "$f"; then
6026            # Build tree
6027            echo "$f"
6028          elif test -f "$srcdir/$f"; then
6029            # Source tree
6030            echo "$srcdir/$f"
6031          else
6032            # /dev/null tree
6033            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6034 echo "$as_me: error: cannot find input file: $f" >&2;}
6035    { (exit 1); exit 1; }; }
6036          fi;;
6037       esac
6038     done` || { (exit 1); exit 1; }
6039
6040   if test x"$ac_file" != x-; then
6041     { echo "$as_me:$LINENO: creating $ac_file" >&5
6042 echo "$as_me: creating $ac_file" >&6;}
6043     rm -f "$ac_file"
6044   fi
6045 _ACEOF
6046 cat >>$CONFIG_STATUS <<_ACEOF
6047   sed "$ac_vpsub
6048 $extrasub
6049 _ACEOF
6050 cat >>$CONFIG_STATUS <<\_ACEOF
6051 :t
6052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6053 s,@configure_input@,$configure_input,;t t
6054 s,@srcdir@,$ac_srcdir,;t t
6055 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6056 s,@top_srcdir@,$ac_top_srcdir,;t t
6057 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6058 s,@builddir@,$ac_builddir,;t t
6059 s,@abs_builddir@,$ac_abs_builddir,;t t
6060 s,@top_builddir@,$ac_top_builddir,;t t
6061 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6062 s,@INSTALL@,$ac_INSTALL,;t t
6063 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6064   rm -f $tmp/stdin
6065   if test x"$ac_file" != x-; then
6066     mv $tmp/out $ac_file
6067   else
6068     cat $tmp/out
6069     rm -f $tmp/out
6070   fi
6071
6072 done
6073 _ACEOF
6074 cat >>$CONFIG_STATUS <<\_ACEOF
6075
6076 #
6077 # CONFIG_HEADER section.
6078 #
6079
6080 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6081 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6082 #
6083 # ac_d sets the value in "#define NAME VALUE" lines.
6084 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
6085 ac_dB='[         ].*$,\1#\2'
6086 ac_dC=' '
6087 ac_dD=',;t'
6088 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6089 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6090 ac_uB='$,\1#\2define\3'
6091 ac_uC=' '
6092 ac_uD=',;t'
6093
6094 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6095   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6096   case $ac_file in
6097   - | *:- | *:-:* ) # input from stdin
6098         cat >$tmp/stdin
6099         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6100         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6101   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6102         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6103   * )   ac_file_in=$ac_file.in ;;
6104   esac
6105
6106   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6107 echo "$as_me: creating $ac_file" >&6;}
6108
6109   # First look for the input files in the build tree, otherwise in the
6110   # src tree.
6111   ac_file_inputs=`IFS=:
6112     for f in $ac_file_in; do
6113       case $f in
6114       -) echo $tmp/stdin ;;
6115       [\\/$]*)
6116          # Absolute (can't be DOS-style, as IFS=:)
6117          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6118 echo "$as_me: error: cannot find input file: $f" >&2;}
6119    { (exit 1); exit 1; }; }
6120          # Do quote $f, to prevent DOS paths from being IFS'd.
6121          echo "$f";;
6122       *) # Relative
6123          if test -f "$f"; then
6124            # Build tree
6125            echo "$f"
6126          elif test -f "$srcdir/$f"; then
6127            # Source tree
6128            echo "$srcdir/$f"
6129          else
6130            # /dev/null tree
6131            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6132 echo "$as_me: error: cannot find input file: $f" >&2;}
6133    { (exit 1); exit 1; }; }
6134          fi;;
6135       esac
6136     done` || { (exit 1); exit 1; }
6137   # Remove the trailing spaces.
6138   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
6139
6140 _ACEOF
6141
6142 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6143 # `conftest.undefs', that substitutes the proper values into
6144 # config.h.in to produce config.h.  The first handles `#define'
6145 # templates, and the second `#undef' templates.
6146 # And first: Protect against being on the right side of a sed subst in
6147 # config.status.  Protect against being in an unquoted here document
6148 # in config.status.
6149 rm -f conftest.defines conftest.undefs
6150 # Using a here document instead of a string reduces the quoting nightmare.
6151 # Putting comments in sed scripts is not portable.
6152 #
6153 # `end' is used to avoid that the second main sed command (meant for
6154 # 0-ary CPP macros) applies to n-ary macro definitions.
6155 # See the Autoconf documentation for `clear'.
6156 cat >confdef2sed.sed <<\_ACEOF
6157 s/[\\&,]/\\&/g
6158 s,[\\$`],\\&,g
6159 t clear
6160 : clear
6161 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6162 t end
6163 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6164 : end
6165 _ACEOF
6166 # If some macros were called several times there might be several times
6167 # the same #defines, which is useless.  Nevertheless, we may not want to
6168 # sort them, since we want the *last* AC-DEFINE to be honored.
6169 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6170 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6171 rm -f confdef2sed.sed
6172
6173 # This sed command replaces #undef with comments.  This is necessary, for
6174 # example, in the case of _POSIX_SOURCE, which is predefined and required
6175 # on some systems where configure will not decide to define it.
6176 cat >>conftest.undefs <<\_ACEOF
6177 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6178 _ACEOF
6179
6180 # Break up conftest.defines because some shells have a limit on the size
6181 # of here documents, and old seds have small limits too (100 cmds).
6182 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6183 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6184 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6185 echo '  :' >>$CONFIG_STATUS
6186 rm -f conftest.tail
6187 while grep . conftest.defines >/dev/null
6188 do
6189   # Write a limited-size here document to $tmp/defines.sed.
6190   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6191   # Speed up: don't consider the non `#define' lines.
6192   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6193   # Work around the forget-to-reset-the-flag bug.
6194   echo 't clr' >>$CONFIG_STATUS
6195   echo ': clr' >>$CONFIG_STATUS
6196   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6197   echo 'CEOF
6198   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6199   rm -f $tmp/in
6200   mv $tmp/out $tmp/in
6201 ' >>$CONFIG_STATUS
6202   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6203   rm -f conftest.defines
6204   mv conftest.tail conftest.defines
6205 done
6206 rm -f conftest.defines
6207 echo '  fi # grep' >>$CONFIG_STATUS
6208 echo >>$CONFIG_STATUS
6209
6210 # Break up conftest.undefs because some shells have a limit on the size
6211 # of here documents, and old seds have small limits too (100 cmds).
6212 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6213 rm -f conftest.tail
6214 while grep . conftest.undefs >/dev/null
6215 do
6216   # Write a limited-size here document to $tmp/undefs.sed.
6217   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6218   # Speed up: don't consider the non `#undef'
6219   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6220   # Work around the forget-to-reset-the-flag bug.
6221   echo 't clr' >>$CONFIG_STATUS
6222   echo ': clr' >>$CONFIG_STATUS
6223   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6224   echo 'CEOF
6225   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6226   rm -f $tmp/in
6227   mv $tmp/out $tmp/in
6228 ' >>$CONFIG_STATUS
6229   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6230   rm -f conftest.undefs
6231   mv conftest.tail conftest.undefs
6232 done
6233 rm -f conftest.undefs
6234
6235 cat >>$CONFIG_STATUS <<\_ACEOF
6236   # Let's still pretend it is `configure' which instantiates (i.e., don't
6237   # use $as_me), people would be surprised to read:
6238   #    /* config.h.  Generated by config.status.  */
6239   if test x"$ac_file" = x-; then
6240     echo "/* Generated by configure.  */" >$tmp/config.h
6241   else
6242     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6243   fi
6244   cat $tmp/in >>$tmp/config.h
6245   rm -f $tmp/in
6246   if test x"$ac_file" != x-; then
6247     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6248       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6249 echo "$as_me: $ac_file is unchanged" >&6;}
6250     else
6251       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6253          X"$ac_file" : 'X\(//\)[^/]' \| \
6254          X"$ac_file" : 'X\(//\)$' \| \
6255          X"$ac_file" : 'X\(/\)' \| \
6256          .     : '\(.\)' 2>/dev/null ||
6257 echo X"$ac_file" |
6258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6259           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6260           /^X\(\/\/\)$/{ s//\1/; q; }
6261           /^X\(\/\).*/{ s//\1/; q; }
6262           s/.*/./; q'`
6263       { if $as_mkdir_p; then
6264     mkdir -p "$ac_dir"
6265   else
6266     as_dir="$ac_dir"
6267     as_dirs=
6268     while test ! -d "$as_dir"; do
6269       as_dirs="$as_dir $as_dirs"
6270       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6272          X"$as_dir" : 'X\(//\)[^/]' \| \
6273          X"$as_dir" : 'X\(//\)$' \| \
6274          X"$as_dir" : 'X\(/\)' \| \
6275          .     : '\(.\)' 2>/dev/null ||
6276 echo X"$as_dir" |
6277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6278           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6279           /^X\(\/\/\)$/{ s//\1/; q; }
6280           /^X\(\/\).*/{ s//\1/; q; }
6281           s/.*/./; q'`
6282     done
6283     test ! -n "$as_dirs" || mkdir $as_dirs
6284   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6285 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6286    { (exit 1); exit 1; }; }; }
6287
6288       rm -f $ac_file
6289       mv $tmp/config.h $ac_file
6290     fi
6291   else
6292     cat $tmp/config.h
6293     rm -f $tmp/config.h
6294   fi
6295 done
6296 _ACEOF
6297
6298 cat >>$CONFIG_STATUS <<\_ACEOF
6299
6300 { (exit 0); exit 0; }
6301 _ACEOF
6302 chmod +x $CONFIG_STATUS
6303 ac_clean_files=$ac_clean_files_save
6304
6305
6306 # configure is writing to config.log, and then calls config.status.
6307 # config.status does its own redirection, appending to config.log.
6308 # Unfortunately, on DOS this fails, as config.log is still kept open
6309 # by configure, so config.status won't be able to write to it; its
6310 # output is simply discarded.  So we exec the FD to /dev/null,
6311 # effectively closing config.log, so it can be properly (re)opened and
6312 # appended to by config.status.  When coming back to configure, we
6313 # need to make the FD available again.
6314 if test "$no_create" != yes; then
6315   ac_cs_success=:
6316   ac_config_status_args=
6317   test "$silent" = yes &&
6318     ac_config_status_args="$ac_config_status_args --quiet"
6319   exec 5>/dev/null
6320   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6321   exec 5>>config.log
6322   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6323   # would make configure fail if this is the last instruction.
6324   $ac_cs_success || { (exit 1); exit 1; }
6325 fi
6326
6327 #
6328 # CONFIG_SUBDIRS section.
6329 #
6330 if test "$no_recursion" != yes; then
6331
6332   # Remove --cache-file and --srcdir arguments so they do not pile up.
6333   ac_sub_configure_args=
6334   ac_prev=
6335   for ac_arg in $ac_configure_args; do
6336     if test -n "$ac_prev"; then
6337       ac_prev=
6338       continue
6339     fi
6340     case $ac_arg in
6341     -cache-file | --cache-file | --cache-fil | --cache-fi \
6342     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6343       ac_prev=cache_file ;;
6344     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6345     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6346     | --c=*)
6347       ;;
6348     --config-cache | -C)
6349       ;;
6350     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6351       ac_prev=srcdir ;;
6352     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6353       ;;
6354     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6355       ac_prev=prefix ;;
6356     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6357       ;;
6358     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6359     esac
6360   done
6361
6362   # Always prepend --prefix to ensure using the same prefix
6363   # in subdir configurations.
6364   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
6365
6366   ac_popdir=`pwd`
6367   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
6368
6369     # Do not complain, so a configure script can configure whichever
6370     # parts of a large source tree are present.
6371     test -d $srcdir/$ac_dir || continue
6372
6373     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
6374 echo "$as_me: configuring in $ac_dir" >&6;}
6375     { if $as_mkdir_p; then
6376     mkdir -p "$ac_dir"
6377   else
6378     as_dir="$ac_dir"
6379     as_dirs=
6380     while test ! -d "$as_dir"; do
6381       as_dirs="$as_dir $as_dirs"
6382       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6383 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6384          X"$as_dir" : 'X\(//\)[^/]' \| \
6385          X"$as_dir" : 'X\(//\)$' \| \
6386          X"$as_dir" : 'X\(/\)' \| \
6387          .     : '\(.\)' 2>/dev/null ||
6388 echo X"$as_dir" |
6389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6390           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6391           /^X\(\/\/\)$/{ s//\1/; q; }
6392           /^X\(\/\).*/{ s//\1/; q; }
6393           s/.*/./; q'`
6394     done
6395     test ! -n "$as_dirs" || mkdir $as_dirs
6396   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6397 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6398    { (exit 1); exit 1; }; }; }
6399
6400     ac_builddir=.
6401
6402 if test "$ac_dir" != .; then
6403   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6404   # A "../" for each directory in $ac_dir_suffix.
6405   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6406 else
6407   ac_dir_suffix= ac_top_builddir=
6408 fi
6409
6410 case $srcdir in
6411   .)  # No --srcdir option.  We are building in place.
6412     ac_srcdir=.
6413     if test -z "$ac_top_builddir"; then
6414        ac_top_srcdir=.
6415     else
6416        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6417     fi ;;
6418   [\\/]* | ?:[\\/]* )  # Absolute path.
6419     ac_srcdir=$srcdir$ac_dir_suffix;
6420     ac_top_srcdir=$srcdir ;;
6421   *) # Relative path.
6422     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6423     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6424 esac
6425
6426 # Do not use `cd foo && pwd` to compute absolute paths, because
6427 # the directories may not exist.
6428 case `pwd` in
6429 .) ac_abs_builddir="$ac_dir";;
6430 *)
6431   case "$ac_dir" in
6432   .) ac_abs_builddir=`pwd`;;
6433   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6434   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6435   esac;;
6436 esac
6437 case $ac_abs_builddir in
6438 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6439 *)
6440   case ${ac_top_builddir}. in
6441   .) ac_abs_top_builddir=$ac_abs_builddir;;
6442   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6443   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6444   esac;;
6445 esac
6446 case $ac_abs_builddir in
6447 .) ac_abs_srcdir=$ac_srcdir;;
6448 *)
6449   case $ac_srcdir in
6450   .) ac_abs_srcdir=$ac_abs_builddir;;
6451   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6452   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6453   esac;;
6454 esac
6455 case $ac_abs_builddir in
6456 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6457 *)
6458   case $ac_top_srcdir in
6459   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6460   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6461   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6462   esac;;
6463 esac
6464
6465
6466     cd $ac_dir
6467
6468     # Check for guested configure; otherwise get Cygnus style configure.
6469     if test -f $ac_srcdir/configure.gnu; then
6470       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
6471     elif test -f $ac_srcdir/configure; then
6472       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
6473     elif test -f $ac_srcdir/configure.in; then
6474       ac_sub_configure=$ac_configure
6475     else
6476       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
6477 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6478       ac_sub_configure=
6479     fi
6480
6481     # The recursion is here.
6482     if test -n "$ac_sub_configure"; then
6483       # Make the cache file name correct relative to the subdirectory.
6484       case $cache_file in
6485       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6486       *) # Relative path.
6487         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
6488       esac
6489
6490       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6491 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6492       # The eval makes quoting arguments work.
6493       eval $ac_sub_configure $ac_sub_configure_args \
6494            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
6495         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
6496 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
6497    { (exit 1); exit 1; }; }
6498     fi
6499
6500     cd "$ac_popdir"
6501   done
6502 fi
6503
6504
6505
6506
6507 if test "${OSTYPE:-unknown}" = "solaris"; then
6508   echo "$as_me:$LINENO: checking for upad128_t" >&5
6509 echo $ECHO_N "checking for upad128_t... $ECHO_C" >&6
6510   cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h.  */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h.  */
6516 #include <sys/types.h>
6517 int
6518 main ()
6519 {
6520 upad128_t upad; upad._q = 0.0;
6521   ;
6522   return 0;
6523 }
6524 _ACEOF
6525 rm -f conftest.$ac_objext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527   (eval $ac_compile) 2>conftest.er1
6528   ac_status=$?
6529   grep -v '^ *+' conftest.er1 >conftest.err
6530   rm -f conftest.er1
6531   cat conftest.err >&5
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); } &&
6534          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; } &&
6540          { ac_try='test -s conftest.$ac_objext'
6541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542   (eval $ac_try) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   has_upad128_t=y
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 fi
6552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553   if test ${has_upad128_t} == "y"; then
6554     echo "$as_me:$LINENO: result: yes" >&5
6555 echo "${ECHO_T}yes" >&6
6556     cat >>confdefs.h <<\_ACEOF
6557 #define P_HAS_UPAD128_T 1
6558 _ACEOF
6559
6560   else
6561     echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6
6563   fi
6564 fi
6565
6566