Added additional checking for recvmsg function
[pwlib.git] / plugins / configure
blobbe46991bbd89a57ef3e5bbd6c9d595690171d29b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="../include/ptlib.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT PWLIBDIR PWINSTDIR INSTALLPREFIX LIBDIR CC CFLAGS ac_ct_CC CPP EGREP HAS_ALSA HAS_OSS HAS_V4L HAS_V4L2 HAS_BSDVIDEOCAP HAS_AVC1394 HAS_DC1394 DC_CFLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXX_set=${CXX+set}
754 ac_env_CXX_value=$CXX
755 ac_cv_env_CXX_set=${CXX+set}
756 ac_cv_env_CXX_value=$CXX
757 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_env_CXXFLAGS_value=$CXXFLAGS
759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CC_set=${CC+set}
770 ac_env_CC_value=$CC
771 ac_cv_env_CC_set=${CC+set}
772 ac_cv_env_CC_value=$CC
773 ac_env_CFLAGS_set=${CFLAGS+set}
774 ac_env_CFLAGS_value=$CFLAGS
775 ac_cv_env_CFLAGS_set=${CFLAGS+set}
776 ac_cv_env_CFLAGS_value=$CFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
841 _ACEOF
844 if test -n "$ac_init_help"; then
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-alsa enable ALSA audio support
852 --enable-oss enable OSS audio support
853 --disable-video disable video device support in PWLIB
854 --enable-v4l enable V4L video support
855 --enable-v4l2 enable V4L2 video support
856 --enable-bsdvideo enable BSD video support
857 --enable-avc enable IEEE1394/AVC video support
858 --enable-dc enable IEEE1394/DC video support
860 Some influential environment variables:
861 CXX C++ compiler command
862 CXXFLAGS C++ compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CC C compiler command
868 CFLAGS C compiler flags
869 CPP C preprocessor
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
874 _ACEOF
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
908 # Do not use `cd foo && pwd` to compute absolute paths, because
909 # the directories may not exist.
910 case `pwd` in
911 .) ac_abs_builddir="$ac_dir";;
913 case "$ac_dir" in
914 .) ac_abs_builddir=`pwd`;;
915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 case ${ac_top_builddir}. in
923 .) ac_abs_top_builddir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_srcdir=$ac_srcdir;;
931 case $ac_srcdir in
932 .) ac_abs_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 case $ac_top_srcdir in
941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
944 esac;;
945 esac
947 cd $ac_dir
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
950 echo
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
953 echo
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
957 echo
958 $ac_configure --help
959 else
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 cd "$ac_popdir"
963 done
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
968 cat <<\_ACEOF
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974 exit 0
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by $as_me, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
984 $ $0 $@
986 _ACEOF
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010 _ASUNAME
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018 done
1020 } >&5
1022 cat >&5 <<_ACEOF
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1029 _ACEOF
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1044 for ac_arg
1046 case $ac_arg in
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1060 else
1061 case $ac_arg in
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 esac
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1077 esac
1078 done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1091 echo
1093 cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 esac;
1114 echo
1116 cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1215 done
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1228 else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1262 fi;;
1263 esac
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1266 case $ac_new_val in
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1270 esac
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274 esac
1276 done
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310 ac_ext=cc
1311 ac_cpp='$CXXCPP $CPPFLAGS'
1312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1315 if test -n "$ac_tool_prefix"; then
1316 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1320 echo "$as_me:$LINENO: checking for $ac_word" >&5
1321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1322 if test "${ac_cv_prog_CXX+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1324 else
1325 if test -n "$CXX"; then
1326 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1327 else
1328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1329 for as_dir in $PATH
1331 IFS=$as_save_IFS
1332 test -z "$as_dir" && as_dir=.
1333 for ac_exec_ext in '' $ac_executable_extensions; do
1334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1335 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1337 break 2
1339 done
1340 done
1344 CXX=$ac_cv_prog_CXX
1345 if test -n "$CXX"; then
1346 echo "$as_me:$LINENO: result: $CXX" >&5
1347 echo "${ECHO_T}$CXX" >&6
1348 else
1349 echo "$as_me:$LINENO: result: no" >&5
1350 echo "${ECHO_T}no" >&6
1353 test -n "$CXX" && break
1354 done
1356 if test -z "$CXX"; then
1357 ac_ct_CXX=$CXX
1358 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1360 # Extract the first word of "$ac_prog", so it can be a program name with args.
1361 set dummy $ac_prog; ac_word=$2
1362 echo "$as_me:$LINENO: checking for $ac_word" >&5
1363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367 if test -n "$ac_ct_CXX"; then
1368 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1369 else
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1373 IFS=$as_save_IFS
1374 test -z "$as_dir" && as_dir=.
1375 for ac_exec_ext in '' $ac_executable_extensions; do
1376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1377 ac_cv_prog_ac_ct_CXX="$ac_prog"
1378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1379 break 2
1381 done
1382 done
1386 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1387 if test -n "$ac_ct_CXX"; then
1388 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1389 echo "${ECHO_T}$ac_ct_CXX" >&6
1390 else
1391 echo "$as_me:$LINENO: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1395 test -n "$ac_ct_CXX" && break
1396 done
1397 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1399 CXX=$ac_ct_CXX
1403 # Provide some information about the compiler.
1404 echo "$as_me:$LINENO:" \
1405 "checking for C++ compiler version" >&5
1406 ac_compiler=`set X $ac_compile; echo $2`
1407 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1408 (eval $ac_compiler --version </dev/null >&5) 2>&5
1409 ac_status=$?
1410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1411 (exit $ac_status); }
1412 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1413 (eval $ac_compiler -v </dev/null >&5) 2>&5
1414 ac_status=$?
1415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1416 (exit $ac_status); }
1417 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1418 (eval $ac_compiler -V </dev/null >&5) 2>&5
1419 ac_status=$?
1420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1421 (exit $ac_status); }
1423 cat >conftest.$ac_ext <<_ACEOF
1424 /* confdefs.h. */
1425 _ACEOF
1426 cat confdefs.h >>conftest.$ac_ext
1427 cat >>conftest.$ac_ext <<_ACEOF
1428 /* end confdefs.h. */
1431 main ()
1435 return 0;
1437 _ACEOF
1438 ac_clean_files_save=$ac_clean_files
1439 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1440 # Try to create an executable without -o first, disregard a.out.
1441 # It will help us diagnose broken compilers, and finding out an intuition
1442 # of exeext.
1443 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1444 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1445 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1446 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1447 (eval $ac_link_default) 2>&5
1448 ac_status=$?
1449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1450 (exit $ac_status); }; then
1451 # Find the output, starting from the most likely. This scheme is
1452 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1453 # resort.
1455 # Be careful to initialize this variable, since it used to be cached.
1456 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1457 ac_cv_exeext=
1458 # b.out is created by i960 compilers.
1459 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1461 test -f "$ac_file" || continue
1462 case $ac_file in
1463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1465 conftest.$ac_ext )
1466 # This is the source file.
1468 [ab].out )
1469 # We found the default executable, but exeext='' is most
1470 # certainly right.
1471 break;;
1472 *.* )
1473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1474 # FIXME: I believe we export ac_cv_exeext for Libtool,
1475 # but it would be cool to find out if it's true. Does anybody
1476 # maintain Libtool? --akim.
1477 export ac_cv_exeext
1478 break;;
1480 break;;
1481 esac
1482 done
1483 else
1484 echo "$as_me: failed program was:" >&5
1485 sed 's/^/| /' conftest.$ac_ext >&5
1487 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1488 See \`config.log' for more details." >&5
1489 echo "$as_me: error: C++ compiler cannot create executables
1490 See \`config.log' for more details." >&2;}
1491 { (exit 77); exit 77; }; }
1494 ac_exeext=$ac_cv_exeext
1495 echo "$as_me:$LINENO: result: $ac_file" >&5
1496 echo "${ECHO_T}$ac_file" >&6
1498 # Check the compiler produces executables we can run. If not, either
1499 # the compiler is broken, or we cross compile.
1500 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1501 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1502 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1503 # If not cross compiling, check that we can run a simple program.
1504 if test "$cross_compiling" != yes; then
1505 if { ac_try='./$ac_file'
1506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1507 (eval $ac_try) 2>&5
1508 ac_status=$?
1509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1510 (exit $ac_status); }; }; then
1511 cross_compiling=no
1512 else
1513 if test "$cross_compiling" = maybe; then
1514 cross_compiling=yes
1515 else
1516 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1517 If you meant to cross compile, use \`--host'.
1518 See \`config.log' for more details." >&5
1519 echo "$as_me: error: cannot run C++ compiled programs.
1520 If you meant to cross compile, use \`--host'.
1521 See \`config.log' for more details." >&2;}
1522 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: result: yes" >&5
1527 echo "${ECHO_T}yes" >&6
1529 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1530 ac_clean_files=$ac_clean_files_save
1531 # Check the compiler produces executables we can run. If not, either
1532 # the compiler is broken, or we cross compile.
1533 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1534 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1535 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1536 echo "${ECHO_T}$cross_compiling" >&6
1538 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1539 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1541 (eval $ac_link) 2>&5
1542 ac_status=$?
1543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1544 (exit $ac_status); }; then
1545 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1546 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1547 # work properly (i.e., refer to `conftest.exe'), while it won't with
1548 # `rm'.
1549 for ac_file in conftest.exe conftest conftest.*; do
1550 test -f "$ac_file" || continue
1551 case $ac_file in
1552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1553 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1554 export ac_cv_exeext
1555 break;;
1556 * ) break;;
1557 esac
1558 done
1559 else
1560 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1561 See \`config.log' for more details." >&5
1562 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1563 See \`config.log' for more details." >&2;}
1564 { (exit 1); exit 1; }; }
1567 rm -f conftest$ac_cv_exeext
1568 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1569 echo "${ECHO_T}$ac_cv_exeext" >&6
1571 rm -f conftest.$ac_ext
1572 EXEEXT=$ac_cv_exeext
1573 ac_exeext=$EXEEXT
1574 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1575 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1576 if test "${ac_cv_objext+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 cat >conftest.$ac_ext <<_ACEOF
1580 /* confdefs.h. */
1581 _ACEOF
1582 cat confdefs.h >>conftest.$ac_ext
1583 cat >>conftest.$ac_ext <<_ACEOF
1584 /* end confdefs.h. */
1587 main ()
1591 return 0;
1593 _ACEOF
1594 rm -f conftest.o conftest.obj
1595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1596 (eval $ac_compile) 2>&5
1597 ac_status=$?
1598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1599 (exit $ac_status); }; then
1600 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1601 case $ac_file in
1602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1604 break;;
1605 esac
1606 done
1607 else
1608 echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1612 See \`config.log' for more details." >&5
1613 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1614 See \`config.log' for more details." >&2;}
1615 { (exit 1); exit 1; }; }
1618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1620 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1621 echo "${ECHO_T}$ac_cv_objext" >&6
1622 OBJEXT=$ac_cv_objext
1623 ac_objext=$OBJEXT
1624 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1625 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1626 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 cat >conftest.$ac_ext <<_ACEOF
1630 /* confdefs.h. */
1631 _ACEOF
1632 cat confdefs.h >>conftest.$ac_ext
1633 cat >>conftest.$ac_ext <<_ACEOF
1634 /* end confdefs.h. */
1637 main ()
1639 #ifndef __GNUC__
1640 choke me
1641 #endif
1644 return 0;
1646 _ACEOF
1647 rm -f conftest.$ac_objext
1648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1649 (eval $ac_compile) 2>conftest.er1
1650 ac_status=$?
1651 grep -v '^ *+' conftest.er1 >conftest.err
1652 rm -f conftest.er1
1653 cat conftest.err >&5
1654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655 (exit $ac_status); } &&
1656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1658 (eval $ac_try) 2>&5
1659 ac_status=$?
1660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1661 (exit $ac_status); }; } &&
1662 { ac_try='test -s conftest.$ac_objext'
1663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1664 (eval $ac_try) 2>&5
1665 ac_status=$?
1666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667 (exit $ac_status); }; }; then
1668 ac_compiler_gnu=yes
1669 else
1670 echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_compiler_gnu=no
1675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1676 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1679 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1680 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1681 GXX=`test $ac_compiler_gnu = yes && echo yes`
1682 ac_test_CXXFLAGS=${CXXFLAGS+set}
1683 ac_save_CXXFLAGS=$CXXFLAGS
1684 CXXFLAGS="-g"
1685 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1686 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1687 if test "${ac_cv_prog_cxx_g+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 cat >conftest.$ac_ext <<_ACEOF
1691 /* confdefs.h. */
1692 _ACEOF
1693 cat confdefs.h >>conftest.$ac_ext
1694 cat >>conftest.$ac_ext <<_ACEOF
1695 /* end confdefs.h. */
1698 main ()
1702 return 0;
1704 _ACEOF
1705 rm -f conftest.$ac_objext
1706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1707 (eval $ac_compile) 2>conftest.er1
1708 ac_status=$?
1709 grep -v '^ *+' conftest.er1 >conftest.err
1710 rm -f conftest.er1
1711 cat conftest.err >&5
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); } &&
1714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1716 (eval $ac_try) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }; } &&
1720 { ac_try='test -s conftest.$ac_objext'
1721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1722 (eval $ac_try) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }; }; then
1726 ac_cv_prog_cxx_g=yes
1727 else
1728 echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1731 ac_cv_prog_cxx_g=no
1733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1735 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1736 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1737 if test "$ac_test_CXXFLAGS" = set; then
1738 CXXFLAGS=$ac_save_CXXFLAGS
1739 elif test $ac_cv_prog_cxx_g = yes; then
1740 if test "$GXX" = yes; then
1741 CXXFLAGS="-g -O2"
1742 else
1743 CXXFLAGS="-g"
1745 else
1746 if test "$GXX" = yes; then
1747 CXXFLAGS="-O2"
1748 else
1749 CXXFLAGS=
1752 for ac_declaration in \
1753 '' \
1754 'extern "C" void std::exit (int) throw (); using std::exit;' \
1755 'extern "C" void std::exit (int); using std::exit;' \
1756 'extern "C" void exit (int) throw ();' \
1757 'extern "C" void exit (int);' \
1758 'void exit (int);'
1760 cat >conftest.$ac_ext <<_ACEOF
1761 /* confdefs.h. */
1762 _ACEOF
1763 cat confdefs.h >>conftest.$ac_ext
1764 cat >>conftest.$ac_ext <<_ACEOF
1765 /* end confdefs.h. */
1766 $ac_declaration
1767 #include <stdlib.h>
1769 main ()
1771 exit (42);
1773 return 0;
1775 _ACEOF
1776 rm -f conftest.$ac_objext
1777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1778 (eval $ac_compile) 2>conftest.er1
1779 ac_status=$?
1780 grep -v '^ *+' conftest.er1 >conftest.err
1781 rm -f conftest.er1
1782 cat conftest.err >&5
1783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784 (exit $ac_status); } &&
1785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1787 (eval $ac_try) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; } &&
1791 { ac_try='test -s conftest.$ac_objext'
1792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1793 (eval $ac_try) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; }; then
1798 else
1799 echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 continue
1804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1805 cat >conftest.$ac_ext <<_ACEOF
1806 /* confdefs.h. */
1807 _ACEOF
1808 cat confdefs.h >>conftest.$ac_ext
1809 cat >>conftest.$ac_ext <<_ACEOF
1810 /* end confdefs.h. */
1811 $ac_declaration
1813 main ()
1815 exit (42);
1817 return 0;
1819 _ACEOF
1820 rm -f conftest.$ac_objext
1821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1822 (eval $ac_compile) 2>conftest.er1
1823 ac_status=$?
1824 grep -v '^ *+' conftest.er1 >conftest.err
1825 rm -f conftest.er1
1826 cat conftest.err >&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); } &&
1829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1831 (eval $ac_try) 2>&5
1832 ac_status=$?
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; } &&
1835 { ac_try='test -s conftest.$ac_objext'
1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 (eval $ac_try) 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1841 break
1842 else
1843 echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1848 done
1849 rm -f conftest*
1850 if test -n "$ac_declaration"; then
1851 echo '#ifdef __cplusplus' >>confdefs.h
1852 echo $ac_declaration >>confdefs.h
1853 echo '#endif' >>confdefs.h
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1864 PWLIBDIR=`pwd`
1865 echo "Plugin source directory is $PWLIBDIR";
1869 if test "x$prefix" = "xNONE"; then
1870 INSTALLPREFIX="/usr/local"
1871 else
1872 INSTALLPREFIX="${prefix}"
1877 LIBDIR="${libdir}"
1881 # Check whether --enable-alsa or --disable-alsa was given.
1882 if test "${enable_alsa+set}" = set; then
1883 enableval="$enable_alsa"
1885 else
1886 enable_alsa=yes
1889 if test "$enable_alsa" = "yes" ; then
1890 ac_ext=c
1891 ac_cpp='$CPP $CPPFLAGS'
1892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1895 if test -n "$ac_tool_prefix"; then
1896 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 break 2
1917 done
1918 done
1922 CC=$ac_cv_prog_CC
1923 if test -n "$CC"; then
1924 echo "$as_me:$LINENO: result: $CC" >&5
1925 echo "${ECHO_T}$CC" >&6
1926 else
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1932 if test -z "$ac_cv_prog_CC"; then
1933 ac_ct_CC=$CC
1934 # Extract the first word of "gcc", so it can be a program name with args.
1935 set dummy gcc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941 if test -n "$ac_ct_CC"; then
1942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951 ac_cv_prog_ac_ct_CC="gcc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1955 done
1956 done
1960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961 if test -n "$ac_ct_CC"; then
1962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963 echo "${ECHO_T}$ac_ct_CC" >&6
1964 else
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1969 CC=$ac_ct_CC
1970 else
1971 CC="$ac_cv_prog_CC"
1974 if test -z "$CC"; then
1975 if test -n "$ac_tool_prefix"; then
1976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1977 set dummy ${ac_tool_prefix}cc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 ac_cv_prog_CC="${ac_tool_prefix}cc"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 break 2
1997 done
1998 done
2002 CC=$ac_cv_prog_CC
2003 if test -n "$CC"; then
2004 echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6
2006 else
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2012 if test -z "$ac_cv_prog_CC"; then
2013 ac_ct_CC=$CC
2014 # Extract the first word of "cc", so it can be a program name with args.
2015 set dummy cc; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 if test -n "$ac_ct_CC"; then
2022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_ac_ct_CC="cc"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 break 2
2035 done
2036 done
2040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041 if test -n "$ac_ct_CC"; then
2042 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043 echo "${ECHO_T}$ac_ct_CC" >&6
2044 else
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2049 CC=$ac_ct_CC
2050 else
2051 CC="$ac_cv_prog_CC"
2055 if test -z "$CC"; then
2056 # Extract the first word of "cc", so it can be a program name with args.
2057 set dummy cc; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063 if test -n "$CC"; then
2064 ac_cv_prog_CC="$CC" # Let the user override the test.
2065 else
2066 ac_prog_rejected=no
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2075 ac_prog_rejected=yes
2076 continue
2078 ac_cv_prog_CC="cc"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 break 2
2082 done
2083 done
2085 if test $ac_prog_rejected = yes; then
2086 # We found a bogon in the path, so make sure we never use it.
2087 set dummy $ac_cv_prog_CC
2088 shift
2089 if test $# != 0; then
2090 # We chose a different compiler from the bogus one.
2091 # However, it has the same basename, so the bogon will be chosen
2092 # first if we set CC to just the basename; use the full file name.
2093 shift
2094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2099 CC=$ac_cv_prog_CC
2100 if test -n "$CC"; then
2101 echo "$as_me:$LINENO: result: $CC" >&5
2102 echo "${ECHO_T}$CC" >&6
2103 else
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2109 if test -z "$CC"; then
2110 if test -n "$ac_tool_prefix"; then
2111 for ac_prog in cl
2113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2115 echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 break 2
2134 done
2135 done
2139 CC=$ac_cv_prog_CC
2140 if test -n "$CC"; then
2141 echo "$as_me:$LINENO: result: $CC" >&5
2142 echo "${ECHO_T}$CC" >&6
2143 else
2144 echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6
2148 test -n "$CC" && break
2149 done
2151 if test -z "$CC"; then
2152 ac_ct_CC=$CC
2153 for ac_prog in cl
2155 # Extract the first word of "$ac_prog", so it can be a program name with args.
2156 set dummy $ac_prog; ac_word=$2
2157 echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162 if test -n "$ac_ct_CC"; then
2163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2164 else
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172 ac_cv_prog_ac_ct_CC="$ac_prog"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2176 done
2177 done
2181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6
2185 else
2186 echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6
2190 test -n "$ac_ct_CC" && break
2191 done
2193 CC=$ac_ct_CC
2199 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: no acceptable C compiler found in \$PATH
2202 See \`config.log' for more details." >&2;}
2203 { (exit 1); exit 1; }; }
2205 # Provide some information about the compiler.
2206 echo "$as_me:$LINENO:" \
2207 "checking for C compiler version" >&5
2208 ac_compiler=`set X $ac_compile; echo $2`
2209 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2210 (eval $ac_compiler --version </dev/null >&5) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }
2214 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2215 (eval $ac_compiler -v </dev/null >&5) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }
2219 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2220 (eval $ac_compiler -V </dev/null >&5) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }
2225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 cat >conftest.$ac_ext <<_ACEOF
2231 /* confdefs.h. */
2232 _ACEOF
2233 cat confdefs.h >>conftest.$ac_ext
2234 cat >>conftest.$ac_ext <<_ACEOF
2235 /* end confdefs.h. */
2238 main ()
2240 #ifndef __GNUC__
2241 choke me
2242 #endif
2245 return 0;
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2251 ac_status=$?
2252 grep -v '^ *+' conftest.er1 >conftest.err
2253 rm -f conftest.er1
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2269 ac_compiler_gnu=yes
2270 else
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2274 ac_compiler_gnu=no
2276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2280 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2281 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2282 GCC=`test $ac_compiler_gnu = yes && echo yes`
2283 ac_test_CFLAGS=${CFLAGS+set}
2284 ac_save_CFLAGS=$CFLAGS
2285 CFLAGS="-g"
2286 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2288 if test "${ac_cv_prog_cc_g+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291 cat >conftest.$ac_ext <<_ACEOF
2292 /* confdefs.h. */
2293 _ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2299 main ()
2303 return 0;
2305 _ACEOF
2306 rm -f conftest.$ac_objext
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308 (eval $ac_compile) 2>conftest.er1
2309 ac_status=$?
2310 grep -v '^ *+' conftest.er1 >conftest.err
2311 rm -f conftest.er1
2312 cat conftest.err >&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 ac_cv_prog_cc_g=yes
2328 else
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2332 ac_cv_prog_cc_g=no
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2337 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2338 if test "$ac_test_CFLAGS" = set; then
2339 CFLAGS=$ac_save_CFLAGS
2340 elif test $ac_cv_prog_cc_g = yes; then
2341 if test "$GCC" = yes; then
2342 CFLAGS="-g -O2"
2343 else
2344 CFLAGS="-g"
2346 else
2347 if test "$GCC" = yes; then
2348 CFLAGS="-O2"
2349 else
2350 CFLAGS=
2353 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2354 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2355 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358 ac_cv_prog_cc_stdc=no
2359 ac_save_CC=$CC
2360 cat >conftest.$ac_ext <<_ACEOF
2361 /* confdefs.h. */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2366 #include <stdarg.h>
2367 #include <stdio.h>
2368 #include <sys/types.h>
2369 #include <sys/stat.h>
2370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2371 struct buf { int x; };
2372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2373 static char *e (p, i)
2374 char **p;
2375 int i;
2377 return p[i];
2379 static char *f (char * (*g) (char **, int), char **p, ...)
2381 char *s;
2382 va_list v;
2383 va_start (v,p);
2384 s = g (p, va_arg (v,int));
2385 va_end (v);
2386 return s;
2389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2390 function prototypes and stuff, but not '\xHH' hex character constants.
2391 These don't provoke an error unfortunately, instead are silently treated
2392 as 'x'. The following induces an error, until -std1 is added to get
2393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2394 array size at least. It's necessary to write '\x00'==0 to get something
2395 that's true only with -std1. */
2396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2398 int test (int i, double x);
2399 struct s1 {int (*f) (int a);};
2400 struct s2 {int (*f) (double a);};
2401 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2402 int argc;
2403 char **argv;
2405 main ()
2407 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2409 return 0;
2411 _ACEOF
2412 # Don't try gcc -ansi; that turns off useful extensions and
2413 # breaks some systems' header files.
2414 # AIX -qlanglvl=ansi
2415 # Ultrix and OSF/1 -std1
2416 # HP-UX 10.20 and later -Ae
2417 # HP-UX older versions -Aa -D_HPUX_SOURCE
2418 # SVR4 -Xc -D__EXTENSIONS__
2419 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2421 CC="$ac_save_CC $ac_arg"
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2425 ac_status=$?
2426 grep -v '^ *+' conftest.er1 >conftest.err
2427 rm -f conftest.er1
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 ac_cv_prog_cc_stdc=$ac_arg
2444 break
2445 else
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2450 rm -f conftest.err conftest.$ac_objext
2451 done
2452 rm -f conftest.$ac_ext conftest.$ac_objext
2453 CC=$ac_save_CC
2457 case "x$ac_cv_prog_cc_stdc" in
2458 x|xno)
2459 echo "$as_me:$LINENO: result: none needed" >&5
2460 echo "${ECHO_T}none needed" >&6 ;;
2462 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2463 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2464 CC="$CC $ac_cv_prog_cc_stdc" ;;
2465 esac
2467 # Some people use a C++ compiler to compile C. Since we use `exit',
2468 # in C++ we need to declare it. In case someone uses the same compiler
2469 # for both compiling C and C++ we need to have the C++ compiler decide
2470 # the declaration of exit, since it's the most demanding environment.
2471 cat >conftest.$ac_ext <<_ACEOF
2472 #ifndef __cplusplus
2473 choke me
2474 #endif
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>conftest.er1
2479 ac_status=$?
2480 grep -v '^ *+' conftest.er1 >conftest.err
2481 rm -f conftest.er1
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 for ac_declaration in \
2498 '' \
2499 'extern "C" void std::exit (int) throw (); using std::exit;' \
2500 'extern "C" void std::exit (int); using std::exit;' \
2501 'extern "C" void exit (int) throw ();' \
2502 'extern "C" void exit (int);' \
2503 'void exit (int);'
2505 cat >conftest.$ac_ext <<_ACEOF
2506 /* confdefs.h. */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2511 $ac_declaration
2512 #include <stdlib.h>
2514 main ()
2516 exit (42);
2518 return 0;
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2547 continue
2549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550 cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h. */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2556 $ac_declaration
2558 main ()
2560 exit (42);
2562 return 0;
2564 _ACEOF
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 break
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2593 done
2594 rm -f conftest*
2595 if test -n "$ac_declaration"; then
2596 echo '#ifdef __cplusplus' >>confdefs.h
2597 echo $ac_declaration >>confdefs.h
2598 echo '#endif' >>confdefs.h
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_ext=c
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2620 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2621 # On Suns, sometimes $CPP names a directory.
2622 if test -n "$CPP" && test -d "$CPP"; then
2623 CPP=
2625 if test -z "$CPP"; then
2626 if test "${ac_cv_prog_CPP+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629 # Double quotes because CPP needs to be expanded
2630 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2632 ac_preproc_ok=false
2633 for ac_c_preproc_warn_flag in '' yes
2635 # Use a header file that comes with gcc, so configuring glibc
2636 # with a fresh cross-compiler works.
2637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2638 # <limits.h> exists even on freestanding compilers.
2639 # On the NeXT, cc -E runs the code through the compiler's parser,
2640 # not just through cpp. "Syntax error" is here to catch this case.
2641 cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h. */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2647 #ifdef __STDC__
2648 # include <limits.h>
2649 #else
2650 # include <assert.h>
2651 #endif
2652 Syntax error
2653 _ACEOF
2654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2656 ac_status=$?
2657 grep -v '^ *+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } >/dev/null; then
2662 if test -s conftest.err; then
2663 ac_cpp_err=$ac_c_preproc_warn_flag
2664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2665 else
2666 ac_cpp_err=
2668 else
2669 ac_cpp_err=yes
2671 if test -z "$ac_cpp_err"; then
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 # Broken: fails on valid input.
2678 continue
2680 rm -f conftest.err conftest.$ac_ext
2682 # OK, works on sane cases. Now check whether non-existent headers
2683 # can be detected and how.
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2690 #include <ac_nonexistent.h>
2691 _ACEOF
2692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } >/dev/null; then
2700 if test -s conftest.err; then
2701 ac_cpp_err=$ac_c_preproc_warn_flag
2702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2703 else
2704 ac_cpp_err=
2706 else
2707 ac_cpp_err=yes
2709 if test -z "$ac_cpp_err"; then
2710 # Broken: success on invalid input.
2711 continue
2712 else
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2716 # Passes both tests.
2717 ac_preproc_ok=:
2718 break
2720 rm -f conftest.err conftest.$ac_ext
2722 done
2723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2724 rm -f conftest.err conftest.$ac_ext
2725 if $ac_preproc_ok; then
2726 break
2729 done
2730 ac_cv_prog_CPP=$CPP
2733 CPP=$ac_cv_prog_CPP
2734 else
2735 ac_cv_prog_CPP=$CPP
2737 echo "$as_me:$LINENO: result: $CPP" >&5
2738 echo "${ECHO_T}$CPP" >&6
2739 ac_preproc_ok=false
2740 for ac_c_preproc_warn_flag in '' yes
2742 # Use a header file that comes with gcc, so configuring glibc
2743 # with a fresh cross-compiler works.
2744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2745 # <limits.h> exists even on freestanding compilers.
2746 # On the NeXT, cc -E runs the code through the compiler's parser,
2747 # not just through cpp. "Syntax error" is here to catch this case.
2748 cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h. */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2754 #ifdef __STDC__
2755 # include <limits.h>
2756 #else
2757 # include <assert.h>
2758 #endif
2759 Syntax error
2760 _ACEOF
2761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2763 ac_status=$?
2764 grep -v '^ *+' conftest.er1 >conftest.err
2765 rm -f conftest.er1
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } >/dev/null; then
2769 if test -s conftest.err; then
2770 ac_cpp_err=$ac_c_preproc_warn_flag
2771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2772 else
2773 ac_cpp_err=
2775 else
2776 ac_cpp_err=yes
2778 if test -z "$ac_cpp_err"; then
2780 else
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2784 # Broken: fails on valid input.
2785 continue
2787 rm -f conftest.err conftest.$ac_ext
2789 # OK, works on sane cases. Now check whether non-existent headers
2790 # can be detected and how.
2791 cat >conftest.$ac_ext <<_ACEOF
2792 /* confdefs.h. */
2793 _ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2797 #include <ac_nonexistent.h>
2798 _ACEOF
2799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2801 ac_status=$?
2802 grep -v '^ *+' conftest.er1 >conftest.err
2803 rm -f conftest.er1
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } >/dev/null; then
2807 if test -s conftest.err; then
2808 ac_cpp_err=$ac_c_preproc_warn_flag
2809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2810 else
2811 ac_cpp_err=
2813 else
2814 ac_cpp_err=yes
2816 if test -z "$ac_cpp_err"; then
2817 # Broken: success on invalid input.
2818 continue
2819 else
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2823 # Passes both tests.
2824 ac_preproc_ok=:
2825 break
2827 rm -f conftest.err conftest.$ac_ext
2829 done
2830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2831 rm -f conftest.err conftest.$ac_ext
2832 if $ac_preproc_ok; then
2834 else
2835 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2836 See \`config.log' for more details." >&5
2837 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2838 See \`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2842 ac_ext=c
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 echo "$as_me:$LINENO: checking for egrep" >&5
2850 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2851 if test "${ac_cv_prog_egrep+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2855 then ac_cv_prog_egrep='grep -E'
2856 else ac_cv_prog_egrep='egrep'
2859 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2860 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2861 EGREP=$ac_cv_prog_egrep
2864 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2866 if test "${ac_cv_header_stdc+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2875 #include <stdlib.h>
2876 #include <stdarg.h>
2877 #include <string.h>
2878 #include <float.h>
2881 main ()
2885 return 0;
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 ac_cv_header_stdc=yes
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 ac_cv_header_stdc=no
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 if test $ac_cv_header_stdc = yes; then
2919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 #include <string.h>
2928 _ACEOF
2929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2930 $EGREP "memchr" >/dev/null 2>&1; then
2932 else
2933 ac_cv_header_stdc=no
2935 rm -f conftest*
2939 if test $ac_cv_header_stdc = yes; then
2940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <stdlib.h>
2949 _ACEOF
2950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2951 $EGREP "free" >/dev/null 2>&1; then
2953 else
2954 ac_cv_header_stdc=no
2956 rm -f conftest*
2960 if test $ac_cv_header_stdc = yes; then
2961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2962 if test "$cross_compiling" = yes; then
2964 else
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2971 #include <ctype.h>
2972 #if ((' ' & 0x0FF) == 0x020)
2973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2975 #else
2976 # define ISLOWER(c) \
2977 (('a' <= (c) && (c) <= 'i') \
2978 || ('j' <= (c) && (c) <= 'r') \
2979 || ('s' <= (c) && (c) <= 'z'))
2980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2981 #endif
2983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2985 main ()
2987 int i;
2988 for (i = 0; i < 256; i++)
2989 if (XOR (islower (i), ISLOWER (i))
2990 || toupper (i) != TOUPPER (i))
2991 exit(2);
2992 exit (0);
2994 _ACEOF
2995 rm -f conftest$ac_exeext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2997 (eval $ac_link) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 (eval $ac_try) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3007 else
3008 echo "$as_me: program exited with status $ac_status" >&5
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3012 ( exit $ac_status )
3013 ac_cv_header_stdc=no
3015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3019 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3020 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3021 if test $ac_cv_header_stdc = yes; then
3023 cat >>confdefs.h <<\_ACEOF
3024 #define STDC_HEADERS 1
3025 _ACEOF
3029 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3040 inttypes.h stdint.h unistd.h
3042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3043 echo "$as_me:$LINENO: checking for $ac_header" >&5
3044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054 $ac_includes_default
3056 #include <$ac_header>
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 (eval $ac_try) 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; } &&
3073 { ac_try='test -s conftest.$ac_objext'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 (eval $ac_try) 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 eval "$as_ac_Header=yes"
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 eval "$as_ac_Header=no"
3086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3091 cat >>confdefs.h <<_ACEOF
3092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3093 _ACEOF
3097 done
3100 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
3101 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
3102 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
3103 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
3107 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
3108 else
3109 # Is the header compilable?
3110 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
3111 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
3112 cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h. */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3118 $ac_includes_default
3119 #include <alsa/asoundlib.h>
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123 (eval $ac_compile) 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 (eval $ac_try) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 (eval $ac_try) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 ac_header_compiler=yes
3143 else
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 ac_header_compiler=no
3149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3151 echo "${ECHO_T}$ac_header_compiler" >&6
3153 # Is the header present?
3154 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
3155 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162 #include <alsa/asoundlib.h>
3163 _ACEOF
3164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } >/dev/null; then
3172 if test -s conftest.err; then
3173 ac_cpp_err=$ac_c_preproc_warn_flag
3174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3175 else
3176 ac_cpp_err=
3178 else
3179 ac_cpp_err=yes
3181 if test -z "$ac_cpp_err"; then
3182 ac_header_preproc=yes
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_header_preproc=no
3189 rm -f conftest.err conftest.$ac_ext
3190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3191 echo "${ECHO_T}$ac_header_preproc" >&6
3193 # So? What about this header?
3194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3195 yes:no: )
3196 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3197 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3198 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
3199 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
3200 ac_header_preproc=yes
3202 no:yes:* )
3203 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
3204 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
3205 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
3206 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
3207 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
3208 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
3209 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
3210 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
3211 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
3212 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
3213 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
3214 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
3216 cat <<\_ASBOX
3217 ## ------------------------------------------ ##
3218 ## Report this to the AC_PACKAGE_NAME lists. ##
3219 ## ------------------------------------------ ##
3220 _ASBOX
3222 sed "s/^/$as_me: WARNING: /" >&2
3224 esac
3225 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
3226 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
3227 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
3232 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
3233 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
3236 if test $ac_cv_header_alsa_asoundlib_h = yes; then
3237 ALSAHDR=1
3241 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
3242 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
3243 if test "${ALSAHDR:-unset}" != "unset"; then
3244 HAS_ALSA=1
3246 echo "$as_me:$LINENO: result: yes" >&5
3247 echo "${ECHO_T}yes" >&6
3248 else
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3255 # Check whether --enable-oss or --disable-oss was given.
3256 if test "${enable_oss+set}" = set; then
3257 enableval="$enable_oss"
3259 else
3260 enable_oss=yes
3263 if test "$enable_oss" = "yes" ; then
3264 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
3265 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
3266 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
3267 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
3271 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
3272 else
3273 # Is the header compilable?
3274 echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
3275 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 $ac_includes_default
3283 #include <sys/soundcard.h>
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3287 (eval $ac_compile) 2>conftest.er1
3288 ac_status=$?
3289 grep -v '^ *+' conftest.er1 >conftest.err
3290 rm -f conftest.er1
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 (eval $ac_try) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; } &&
3300 { ac_try='test -s conftest.$ac_objext'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3306 ac_header_compiler=yes
3307 else
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 ac_header_compiler=no
3313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3315 echo "${ECHO_T}$ac_header_compiler" >&6
3317 # Is the header present?
3318 echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
3319 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326 #include <sys/soundcard.h>
3327 _ACEOF
3328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null; then
3336 if test -s conftest.err; then
3337 ac_cpp_err=$ac_c_preproc_warn_flag
3338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3339 else
3340 ac_cpp_err=
3342 else
3343 ac_cpp_err=yes
3345 if test -z "$ac_cpp_err"; then
3346 ac_header_preproc=yes
3347 else
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3351 ac_header_preproc=no
3353 rm -f conftest.err conftest.$ac_ext
3354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3355 echo "${ECHO_T}$ac_header_preproc" >&6
3357 # So? What about this header?
3358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3359 yes:no: )
3360 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
3361 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3362 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
3363 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
3364 ac_header_preproc=yes
3366 no:yes:* )
3367 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
3368 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
3369 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
3370 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
3371 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
3372 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
3373 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
3374 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
3375 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
3376 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
3377 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
3378 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
3380 cat <<\_ASBOX
3381 ## ------------------------------------------ ##
3382 ## Report this to the AC_PACKAGE_NAME lists. ##
3383 ## ------------------------------------------ ##
3384 _ASBOX
3386 sed "s/^/$as_me: WARNING: /" >&2
3388 esac
3389 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
3390 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
3391 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 ac_cv_header_sys_soundcard_h=$ac_header_preproc
3396 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
3397 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
3400 if test $ac_cv_header_sys_soundcard_h = yes; then
3401 SNDCARDHDR=1
3405 echo "$as_me:$LINENO: checking for OSS sound support" >&5
3406 echo $ECHO_N "checking for OSS sound support... $ECHO_C" >&6
3407 if test "${SNDCARDHDR:-unset}" != "unset"; then
3408 HAS_OSS=1
3410 echo "$as_me:$LINENO: result: yes" >&5
3411 echo "${ECHO_T}yes" >&6
3412 else
3413 echo "$as_me:$LINENO: result: no" >&5
3414 echo "${ECHO_T}no" >&6
3418 # Check whether --enable-video or --disable-video was given.
3419 if test "${enable_video+set}" = set; then
3420 enableval="$enable_video"
3421 video=$enableval
3424 if test "$video" != "no" ; then
3427 # Check whether --enable-v4l or --disable-v4l was given.
3428 if test "${enable_v4l+set}" = set; then
3429 enableval="$enable_v4l"
3431 else
3432 enable_v4l=yes
3435 if test "$enable_v4l" = "yes" ; then
3436 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
3437 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
3438 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
3439 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
3443 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
3444 else
3445 # Is the header compilable?
3446 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
3447 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 $ac_includes_default
3455 #include <linux/videodev.h>
3456 _ACEOF
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; } &&
3472 { ac_try='test -s conftest.$ac_objext'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; }; then
3478 ac_header_compiler=yes
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 ac_header_compiler=no
3485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3487 echo "${ECHO_T}$ac_header_compiler" >&6
3489 # Is the header present?
3490 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
3491 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
3492 cat >conftest.$ac_ext <<_ACEOF
3493 /* confdefs.h. */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 #include <linux/videodev.h>
3499 _ACEOF
3500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } >/dev/null; then
3508 if test -s conftest.err; then
3509 ac_cpp_err=$ac_c_preproc_warn_flag
3510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3511 else
3512 ac_cpp_err=
3514 else
3515 ac_cpp_err=yes
3517 if test -z "$ac_cpp_err"; then
3518 ac_header_preproc=yes
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 ac_header_preproc=no
3525 rm -f conftest.err conftest.$ac_ext
3526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3527 echo "${ECHO_T}$ac_header_preproc" >&6
3529 # So? What about this header?
3530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3531 yes:no: )
3532 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
3533 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3534 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
3535 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
3536 ac_header_preproc=yes
3538 no:yes:* )
3539 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
3540 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
3541 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
3542 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
3543 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
3544 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
3545 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
3546 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
3547 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
3548 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
3549 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
3550 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
3552 cat <<\_ASBOX
3553 ## ------------------------------------------ ##
3554 ## Report this to the AC_PACKAGE_NAME lists. ##
3555 ## ------------------------------------------ ##
3556 _ASBOX
3558 sed "s/^/$as_me: WARNING: /" >&2
3560 esac
3561 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
3562 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
3563 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566 ac_cv_header_linux_videodev_h=$ac_header_preproc
3568 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
3569 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
3572 if test $ac_cv_header_linux_videodev_h = yes; then
3573 V4LHDR=1
3577 echo "$as_me:$LINENO: checking for V4L video support" >&5
3578 echo $ECHO_N "checking for V4L video support... $ECHO_C" >&6
3579 if test "${V4LHDR:-unset}" != "unset"; then
3580 HAS_V4L=1
3582 echo "$as_me:$LINENO: result: yes" >&5
3583 echo "${ECHO_T}yes" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3591 # Check whether --enable-v4l2 or --disable-v4l2 was given.
3592 if test "${enable_v4l2+set}" = set; then
3593 enableval="$enable_v4l2"
3595 else
3596 enable_v4l2=no
3599 if test "$enable_v4l2" = "yes" ; then
3600 if test "${ac_cv_header_linux_videodev2_h+set}" = set; then
3601 echo "$as_me:$LINENO: checking for linux/videodev2.h" >&5
3602 echo $ECHO_N "checking for linux/videodev2.h... $ECHO_C" >&6
3603 if test "${ac_cv_header_linux_videodev2_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev2_h" >&5
3607 echo "${ECHO_T}$ac_cv_header_linux_videodev2_h" >&6
3608 else
3609 # Is the header compilable?
3610 echo "$as_me:$LINENO: checking linux/videodev2.h usability" >&5
3611 echo $ECHO_N "checking linux/videodev2.h usability... $ECHO_C" >&6
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 $ac_includes_default
3619 #include <linux/videodev2.h>
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3623 (eval $ac_compile) 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3642 ac_header_compiler=yes
3643 else
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 ac_header_compiler=no
3649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3651 echo "${ECHO_T}$ac_header_compiler" >&6
3653 # Is the header present?
3654 echo "$as_me:$LINENO: checking linux/videodev2.h presence" >&5
3655 echo $ECHO_N "checking linux/videodev2.h presence... $ECHO_C" >&6
3656 cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h. */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 #include <linux/videodev2.h>
3663 _ACEOF
3664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3666 ac_status=$?
3667 grep -v '^ *+' conftest.er1 >conftest.err
3668 rm -f conftest.er1
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } >/dev/null; then
3672 if test -s conftest.err; then
3673 ac_cpp_err=$ac_c_preproc_warn_flag
3674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3675 else
3676 ac_cpp_err=
3678 else
3679 ac_cpp_err=yes
3681 if test -z "$ac_cpp_err"; then
3682 ac_header_preproc=yes
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_header_preproc=no
3689 rm -f conftest.err conftest.$ac_ext
3690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3691 echo "${ECHO_T}$ac_header_preproc" >&6
3693 # So? What about this header?
3694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3695 yes:no: )
3696 { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: accepted by the compiler, rejected by the preprocessor!" >&5
3697 echo "$as_me: WARNING: linux/videodev2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3698 { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: proceeding with the compiler's result" >&5
3699 echo "$as_me: WARNING: linux/videodev2.h: proceeding with the compiler's result" >&2;}
3700 ac_header_preproc=yes
3702 no:yes:* )
3703 { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: present but cannot be compiled" >&5
3704 echo "$as_me: WARNING: linux/videodev2.h: present but cannot be compiled" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: check for missing prerequisite headers?" >&5
3706 echo "$as_me: WARNING: linux/videodev2.h: check for missing prerequisite headers?" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: see the Autoconf documentation" >&5
3708 echo "$as_me: WARNING: linux/videodev2.h: see the Autoconf documentation" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: section \"Present But Cannot Be Compiled\"" >&5
3710 echo "$as_me: WARNING: linux/videodev2.h: section \"Present But Cannot Be Compiled\"" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: proceeding with the preprocessor's result" >&5
3712 echo "$as_me: WARNING: linux/videodev2.h: proceeding with the preprocessor's result" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/videodev2.h: in the future, the compiler will take precedence" >&5
3714 echo "$as_me: WARNING: linux/videodev2.h: in the future, the compiler will take precedence" >&2;}
3716 cat <<\_ASBOX
3717 ## ------------------------------------------ ##
3718 ## Report this to the AC_PACKAGE_NAME lists. ##
3719 ## ------------------------------------------ ##
3720 _ASBOX
3722 sed "s/^/$as_me: WARNING: /" >&2
3724 esac
3725 echo "$as_me:$LINENO: checking for linux/videodev2.h" >&5
3726 echo $ECHO_N "checking for linux/videodev2.h... $ECHO_C" >&6
3727 if test "${ac_cv_header_linux_videodev2_h+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 ac_cv_header_linux_videodev2_h=$ac_header_preproc
3732 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev2_h" >&5
3733 echo "${ECHO_T}$ac_cv_header_linux_videodev2_h" >&6
3736 if test $ac_cv_header_linux_videodev2_h = yes; then
3737 V4L2HDR=1
3741 echo "$as_me:$LINENO: checking for V4L2 video support" >&5
3742 echo $ECHO_N "checking for V4L2 video support... $ECHO_C" >&6
3743 if test "${V4LHDR:-unset}" != "unset"; then
3744 HAS_V4L2=1
3746 echo "$as_me:$LINENO: result: yes" >&5
3747 echo "${ECHO_T}yes" >&6
3748 else
3749 echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6
3755 # Check whether --enable-bsdvideo or --disable-bsdvideo was given.
3756 if test "${enable_bsdvideo+set}" = set; then
3757 enableval="$enable_bsdvideo"
3759 else
3760 enable_bsdvideo=yes
3763 if test "$enable_bsdvideo" = "yes" ; then
3764 if test "${ac_cv_header_machine_ioctl_meteor_h+set}" = set; then
3765 echo "$as_me:$LINENO: checking for machine/ioctl_meteor.h" >&5
3766 echo $ECHO_N "checking for machine/ioctl_meteor.h... $ECHO_C" >&6
3767 if test "${ac_cv_header_machine_ioctl_meteor_h+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 echo "$as_me:$LINENO: result: $ac_cv_header_machine_ioctl_meteor_h" >&5
3771 echo "${ECHO_T}$ac_cv_header_machine_ioctl_meteor_h" >&6
3772 else
3773 # Is the header compilable?
3774 echo "$as_me:$LINENO: checking machine/ioctl_meteor.h usability" >&5
3775 echo $ECHO_N "checking machine/ioctl_meteor.h usability... $ECHO_C" >&6
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 $ac_includes_default
3783 #include <machine/ioctl_meteor.h>
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_header_compiler=yes
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 ac_header_compiler=no
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3815 echo "${ECHO_T}$ac_header_compiler" >&6
3817 # Is the header present?
3818 echo "$as_me:$LINENO: checking machine/ioctl_meteor.h presence" >&5
3819 echo $ECHO_N "checking machine/ioctl_meteor.h presence... $ECHO_C" >&6
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #include <machine/ioctl_meteor.h>
3827 _ACEOF
3828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } >/dev/null; then
3836 if test -s conftest.err; then
3837 ac_cpp_err=$ac_c_preproc_warn_flag
3838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3839 else
3840 ac_cpp_err=
3842 else
3843 ac_cpp_err=yes
3845 if test -z "$ac_cpp_err"; then
3846 ac_header_preproc=yes
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_header_preproc=no
3853 rm -f conftest.err conftest.$ac_ext
3854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3855 echo "${ECHO_T}$ac_header_preproc" >&6
3857 # So? What about this header?
3858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3859 yes:no: )
3860 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&5
3861 echo "$as_me: WARNING: machine/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3862 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: proceeding with the compiler's result" >&5
3863 echo "$as_me: WARNING: machine/ioctl_meteor.h: proceeding with the compiler's result" >&2;}
3864 ac_header_preproc=yes
3866 no:yes:* )
3867 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: present but cannot be compiled" >&5
3868 echo "$as_me: WARNING: machine/ioctl_meteor.h: present but cannot be compiled" >&2;}
3869 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: check for missing prerequisite headers?" >&5
3870 echo "$as_me: WARNING: machine/ioctl_meteor.h: check for missing prerequisite headers?" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: see the Autoconf documentation" >&5
3872 echo "$as_me: WARNING: machine/ioctl_meteor.h: see the Autoconf documentation" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: section \"Present But Cannot Be Compiled\"" >&5
3874 echo "$as_me: WARNING: machine/ioctl_meteor.h: section \"Present But Cannot Be Compiled\"" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: proceeding with the preprocessor's result" >&5
3876 echo "$as_me: WARNING: machine/ioctl_meteor.h: proceeding with the preprocessor's result" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: in the future, the compiler will take precedence" >&5
3878 echo "$as_me: WARNING: machine/ioctl_meteor.h: in the future, the compiler will take precedence" >&2;}
3880 cat <<\_ASBOX
3881 ## ------------------------------------------ ##
3882 ## Report this to the AC_PACKAGE_NAME lists. ##
3883 ## ------------------------------------------ ##
3884 _ASBOX
3886 sed "s/^/$as_me: WARNING: /" >&2
3888 esac
3889 echo "$as_me:$LINENO: checking for machine/ioctl_meteor.h" >&5
3890 echo $ECHO_N "checking for machine/ioctl_meteor.h... $ECHO_C" >&6
3891 if test "${ac_cv_header_machine_ioctl_meteor_h+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 ac_cv_header_machine_ioctl_meteor_h=$ac_header_preproc
3896 echo "$as_me:$LINENO: result: $ac_cv_header_machine_ioctl_meteor_h" >&5
3897 echo "${ECHO_T}$ac_cv_header_machine_ioctl_meteor_h" >&6
3900 if test $ac_cv_header_machine_ioctl_meteor_h = yes; then
3901 BSDVIDEOHDR=1
3905 if test "${ac_cv_header_i386_ioctl_meteor_h+set}" = set; then
3906 echo "$as_me:$LINENO: checking for i386/ioctl_meteor.h" >&5
3907 echo $ECHO_N "checking for i386/ioctl_meteor.h... $ECHO_C" >&6
3908 if test "${ac_cv_header_i386_ioctl_meteor_h+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 echo "$as_me:$LINENO: result: $ac_cv_header_i386_ioctl_meteor_h" >&5
3912 echo "${ECHO_T}$ac_cv_header_i386_ioctl_meteor_h" >&6
3913 else
3914 # Is the header compilable?
3915 echo "$as_me:$LINENO: checking i386/ioctl_meteor.h usability" >&5
3916 echo $ECHO_N "checking i386/ioctl_meteor.h usability... $ECHO_C" >&6
3917 cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h. */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3923 $ac_includes_default
3924 #include <i386/ioctl_meteor.h>
3925 _ACEOF
3926 rm -f conftest.$ac_objext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try='test -s conftest.$ac_objext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_header_compiler=yes
3948 else
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3952 ac_header_compiler=no
3954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3956 echo "${ECHO_T}$ac_header_compiler" >&6
3958 # Is the header present?
3959 echo "$as_me:$LINENO: checking i386/ioctl_meteor.h presence" >&5
3960 echo $ECHO_N "checking i386/ioctl_meteor.h presence... $ECHO_C" >&6
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 #include <i386/ioctl_meteor.h>
3968 _ACEOF
3969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } >/dev/null; then
3977 if test -s conftest.err; then
3978 ac_cpp_err=$ac_c_preproc_warn_flag
3979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3980 else
3981 ac_cpp_err=
3983 else
3984 ac_cpp_err=yes
3986 if test -z "$ac_cpp_err"; then
3987 ac_header_preproc=yes
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 ac_header_preproc=no
3994 rm -f conftest.err conftest.$ac_ext
3995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3996 echo "${ECHO_T}$ac_header_preproc" >&6
3998 # So? What about this header?
3999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4000 yes:no: )
4001 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&5
4002 echo "$as_me: WARNING: i386/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: proceeding with the compiler's result" >&5
4004 echo "$as_me: WARNING: i386/ioctl_meteor.h: proceeding with the compiler's result" >&2;}
4005 ac_header_preproc=yes
4007 no:yes:* )
4008 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: present but cannot be compiled" >&5
4009 echo "$as_me: WARNING: i386/ioctl_meteor.h: present but cannot be compiled" >&2;}
4010 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: check for missing prerequisite headers?" >&5
4011 echo "$as_me: WARNING: i386/ioctl_meteor.h: check for missing prerequisite headers?" >&2;}
4012 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: see the Autoconf documentation" >&5
4013 echo "$as_me: WARNING: i386/ioctl_meteor.h: see the Autoconf documentation" >&2;}
4014 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: section \"Present But Cannot Be Compiled\"" >&5
4015 echo "$as_me: WARNING: i386/ioctl_meteor.h: section \"Present But Cannot Be Compiled\"" >&2;}
4016 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: proceeding with the preprocessor's result" >&5
4017 echo "$as_me: WARNING: i386/ioctl_meteor.h: proceeding with the preprocessor's result" >&2;}
4018 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: in the future, the compiler will take precedence" >&5
4019 echo "$as_me: WARNING: i386/ioctl_meteor.h: in the future, the compiler will take precedence" >&2;}
4021 cat <<\_ASBOX
4022 ## ------------------------------------------ ##
4023 ## Report this to the AC_PACKAGE_NAME lists. ##
4024 ## ------------------------------------------ ##
4025 _ASBOX
4027 sed "s/^/$as_me: WARNING: /" >&2
4029 esac
4030 echo "$as_me:$LINENO: checking for i386/ioctl_meteor.h" >&5
4031 echo $ECHO_N "checking for i386/ioctl_meteor.h... $ECHO_C" >&6
4032 if test "${ac_cv_header_i386_ioctl_meteor_h+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 ac_cv_header_i386_ioctl_meteor_h=$ac_header_preproc
4037 echo "$as_me:$LINENO: result: $ac_cv_header_i386_ioctl_meteor_h" >&5
4038 echo "${ECHO_T}$ac_cv_header_i386_ioctl_meteor_h" >&6
4041 if test $ac_cv_header_i386_ioctl_meteor_h = yes; then
4042 BSDVIDEOHDR=1
4046 if test "${ac_cv_header_dev_ic_bt8xx_h+set}" = set; then
4047 echo "$as_me:$LINENO: checking for dev/ic/bt8xx.h" >&5
4048 echo $ECHO_N "checking for dev/ic/bt8xx.h... $ECHO_C" >&6
4049 if test "${ac_cv_header_dev_ic_bt8xx_h+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 echo "$as_me:$LINENO: result: $ac_cv_header_dev_ic_bt8xx_h" >&5
4053 echo "${ECHO_T}$ac_cv_header_dev_ic_bt8xx_h" >&6
4054 else
4055 # Is the header compilable?
4056 echo "$as_me:$LINENO: checking dev/ic/bt8xx.h usability" >&5
4057 echo $ECHO_N "checking dev/ic/bt8xx.h usability... $ECHO_C" >&6
4058 cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 $ac_includes_default
4065 #include <dev/ic/bt8xx.h>
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069 (eval $ac_compile) 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4088 ac_header_compiler=yes
4089 else
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 ac_header_compiler=no
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4097 echo "${ECHO_T}$ac_header_compiler" >&6
4099 # Is the header present?
4100 echo "$as_me:$LINENO: checking dev/ic/bt8xx.h presence" >&5
4101 echo $ECHO_N "checking dev/ic/bt8xx.h presence... $ECHO_C" >&6
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <dev/ic/bt8xx.h>
4109 _ACEOF
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null; then
4118 if test -s conftest.err; then
4119 ac_cpp_err=$ac_c_preproc_warn_flag
4120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4121 else
4122 ac_cpp_err=
4124 else
4125 ac_cpp_err=yes
4127 if test -z "$ac_cpp_err"; then
4128 ac_header_preproc=yes
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_header_preproc=no
4135 rm -f conftest.err conftest.$ac_ext
4136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4137 echo "${ECHO_T}$ac_header_preproc" >&6
4139 # So? What about this header?
4140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4141 yes:no: )
4142 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: accepted by the compiler, rejected by the preprocessor!" >&5
4143 echo "$as_me: WARNING: dev/ic/bt8xx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4144 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: proceeding with the compiler's result" >&5
4145 echo "$as_me: WARNING: dev/ic/bt8xx.h: proceeding with the compiler's result" >&2;}
4146 ac_header_preproc=yes
4148 no:yes:* )
4149 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: present but cannot be compiled" >&5
4150 echo "$as_me: WARNING: dev/ic/bt8xx.h: present but cannot be compiled" >&2;}
4151 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: check for missing prerequisite headers?" >&5
4152 echo "$as_me: WARNING: dev/ic/bt8xx.h: check for missing prerequisite headers?" >&2;}
4153 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: see the Autoconf documentation" >&5
4154 echo "$as_me: WARNING: dev/ic/bt8xx.h: see the Autoconf documentation" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: section \"Present But Cannot Be Compiled\"" >&5
4156 echo "$as_me: WARNING: dev/ic/bt8xx.h: section \"Present But Cannot Be Compiled\"" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: proceeding with the preprocessor's result" >&5
4158 echo "$as_me: WARNING: dev/ic/bt8xx.h: proceeding with the preprocessor's result" >&2;}
4159 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: in the future, the compiler will take precedence" >&5
4160 echo "$as_me: WARNING: dev/ic/bt8xx.h: in the future, the compiler will take precedence" >&2;}
4162 cat <<\_ASBOX
4163 ## ------------------------------------------ ##
4164 ## Report this to the AC_PACKAGE_NAME lists. ##
4165 ## ------------------------------------------ ##
4166 _ASBOX
4168 sed "s/^/$as_me: WARNING: /" >&2
4170 esac
4171 echo "$as_me:$LINENO: checking for dev/ic/bt8xx.h" >&5
4172 echo $ECHO_N "checking for dev/ic/bt8xx.h... $ECHO_C" >&6
4173 if test "${ac_cv_header_dev_ic_bt8xx_h+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 ac_cv_header_dev_ic_bt8xx_h=$ac_header_preproc
4178 echo "$as_me:$LINENO: result: $ac_cv_header_dev_ic_bt8xx_h" >&5
4179 echo "${ECHO_T}$ac_cv_header_dev_ic_bt8xx_h" >&6
4182 if test $ac_cv_header_dev_ic_bt8xx_h = yes; then
4183 BSDVIDEOHDR=1
4187 echo "$as_me:$LINENO: checking for BSD video support" >&5
4188 echo $ECHO_N "checking for BSD video support... $ECHO_C" >&6
4189 if test "${BSDVIDEOHDR:-unset}" != "unset"; then
4190 HAS_BSDVIDEOCAP=1
4192 echo "$as_me:$LINENO: result: yes" >&5
4193 echo "${ECHO_T}yes" >&6
4194 else
4195 echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4201 # Check whether --enable-avc or --disable-avc was given.
4202 if test "${enable_avc+set}" = set; then
4203 enableval="$enable_avc"
4205 else
4206 enable_avc=yes
4209 if test "$enable_avc" = "yes" ; then
4210 if test "${ac_cv_header_libavc1394_avc1394_h+set}" = set; then
4211 echo "$as_me:$LINENO: checking for libavc1394/avc1394.h" >&5
4212 echo $ECHO_N "checking for libavc1394/avc1394.h... $ECHO_C" >&6
4213 if test "${ac_cv_header_libavc1394_avc1394_h+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 echo "$as_me:$LINENO: result: $ac_cv_header_libavc1394_avc1394_h" >&5
4217 echo "${ECHO_T}$ac_cv_header_libavc1394_avc1394_h" >&6
4218 else
4219 # Is the header compilable?
4220 echo "$as_me:$LINENO: checking libavc1394/avc1394.h usability" >&5
4221 echo $ECHO_N "checking libavc1394/avc1394.h usability... $ECHO_C" >&6
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 $ac_includes_default
4229 #include <libavc1394/avc1394.h>
4230 _ACEOF
4231 rm -f conftest.$ac_objext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233 (eval $ac_compile) 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; } &&
4246 { ac_try='test -s conftest.$ac_objext'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 (eval $ac_try) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4252 ac_header_compiler=yes
4253 else
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4257 ac_header_compiler=no
4259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4261 echo "${ECHO_T}$ac_header_compiler" >&6
4263 # Is the header present?
4264 echo "$as_me:$LINENO: checking libavc1394/avc1394.h presence" >&5
4265 echo $ECHO_N "checking libavc1394/avc1394.h presence... $ECHO_C" >&6
4266 cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h. */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 #include <libavc1394/avc1394.h>
4273 _ACEOF
4274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } >/dev/null; then
4282 if test -s conftest.err; then
4283 ac_cpp_err=$ac_c_preproc_warn_flag
4284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4285 else
4286 ac_cpp_err=
4288 else
4289 ac_cpp_err=yes
4291 if test -z "$ac_cpp_err"; then
4292 ac_header_preproc=yes
4293 else
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_header_preproc=no
4299 rm -f conftest.err conftest.$ac_ext
4300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4301 echo "${ECHO_T}$ac_header_preproc" >&6
4303 # So? What about this header?
4304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4305 yes:no: )
4306 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
4307 echo "$as_me: WARNING: libavc1394/avc1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: proceeding with the compiler's result" >&5
4309 echo "$as_me: WARNING: libavc1394/avc1394.h: proceeding with the compiler's result" >&2;}
4310 ac_header_preproc=yes
4312 no:yes:* )
4313 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: present but cannot be compiled" >&5
4314 echo "$as_me: WARNING: libavc1394/avc1394.h: present but cannot be compiled" >&2;}
4315 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: check for missing prerequisite headers?" >&5
4316 echo "$as_me: WARNING: libavc1394/avc1394.h: check for missing prerequisite headers?" >&2;}
4317 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: see the Autoconf documentation" >&5
4318 echo "$as_me: WARNING: libavc1394/avc1394.h: see the Autoconf documentation" >&2;}
4319 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: section \"Present But Cannot Be Compiled\"" >&5
4320 echo "$as_me: WARNING: libavc1394/avc1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
4321 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: proceeding with the preprocessor's result" >&5
4322 echo "$as_me: WARNING: libavc1394/avc1394.h: proceeding with the preprocessor's result" >&2;}
4323 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: in the future, the compiler will take precedence" >&5
4324 echo "$as_me: WARNING: libavc1394/avc1394.h: in the future, the compiler will take precedence" >&2;}
4326 cat <<\_ASBOX
4327 ## ------------------------------------------ ##
4328 ## Report this to the AC_PACKAGE_NAME lists. ##
4329 ## ------------------------------------------ ##
4330 _ASBOX
4332 sed "s/^/$as_me: WARNING: /" >&2
4334 esac
4335 echo "$as_me:$LINENO: checking for libavc1394/avc1394.h" >&5
4336 echo $ECHO_N "checking for libavc1394/avc1394.h... $ECHO_C" >&6
4337 if test "${ac_cv_header_libavc1394_avc1394_h+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340 ac_cv_header_libavc1394_avc1394_h=$ac_header_preproc
4342 echo "$as_me:$LINENO: result: $ac_cv_header_libavc1394_avc1394_h" >&5
4343 echo "${ECHO_T}$ac_cv_header_libavc1394_avc1394_h" >&6
4346 if test $ac_cv_header_libavc1394_avc1394_h = yes; then
4347 AVC1394HDR=1
4351 if test "${ac_cv_header_libdv_dv_h+set}" = set; then
4352 echo "$as_me:$LINENO: checking for libdv/dv.h" >&5
4353 echo $ECHO_N "checking for libdv/dv.h... $ECHO_C" >&6
4354 if test "${ac_cv_header_libdv_dv_h+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 echo "$as_me:$LINENO: result: $ac_cv_header_libdv_dv_h" >&5
4358 echo "${ECHO_T}$ac_cv_header_libdv_dv_h" >&6
4359 else
4360 # Is the header compilable?
4361 echo "$as_me:$LINENO: checking libdv/dv.h usability" >&5
4362 echo $ECHO_N "checking libdv/dv.h usability... $ECHO_C" >&6
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 $ac_includes_default
4370 #include <libdv/dv.h>
4371 _ACEOF
4372 rm -f conftest.$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_header_compiler=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_header_compiler=no
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4402 echo "${ECHO_T}$ac_header_compiler" >&6
4404 # Is the header present?
4405 echo "$as_me:$LINENO: checking libdv/dv.h presence" >&5
4406 echo $ECHO_N "checking libdv/dv.h presence... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <libdv/dv.h>
4414 _ACEOF
4415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4417 ac_status=$?
4418 grep -v '^ *+' conftest.er1 >conftest.err
4419 rm -f conftest.er1
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } >/dev/null; then
4423 if test -s conftest.err; then
4424 ac_cpp_err=$ac_c_preproc_warn_flag
4425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4426 else
4427 ac_cpp_err=
4429 else
4430 ac_cpp_err=yes
4432 if test -z "$ac_cpp_err"; then
4433 ac_header_preproc=yes
4434 else
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_header_preproc=no
4440 rm -f conftest.err conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4442 echo "${ECHO_T}$ac_header_preproc" >&6
4444 # So? What about this header?
4445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4446 yes:no: )
4447 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: accepted by the compiler, rejected by the preprocessor!" >&5
4448 echo "$as_me: WARNING: libdv/dv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: proceeding with the compiler's result" >&5
4450 echo "$as_me: WARNING: libdv/dv.h: proceeding with the compiler's result" >&2;}
4451 ac_header_preproc=yes
4453 no:yes:* )
4454 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: present but cannot be compiled" >&5
4455 echo "$as_me: WARNING: libdv/dv.h: present but cannot be compiled" >&2;}
4456 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: check for missing prerequisite headers?" >&5
4457 echo "$as_me: WARNING: libdv/dv.h: check for missing prerequisite headers?" >&2;}
4458 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: see the Autoconf documentation" >&5
4459 echo "$as_me: WARNING: libdv/dv.h: see the Autoconf documentation" >&2;}
4460 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: section \"Present But Cannot Be Compiled\"" >&5
4461 echo "$as_me: WARNING: libdv/dv.h: section \"Present But Cannot Be Compiled\"" >&2;}
4462 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: proceeding with the preprocessor's result" >&5
4463 echo "$as_me: WARNING: libdv/dv.h: proceeding with the preprocessor's result" >&2;}
4464 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: in the future, the compiler will take precedence" >&5
4465 echo "$as_me: WARNING: libdv/dv.h: in the future, the compiler will take precedence" >&2;}
4467 cat <<\_ASBOX
4468 ## ------------------------------------------ ##
4469 ## Report this to the AC_PACKAGE_NAME lists. ##
4470 ## ------------------------------------------ ##
4471 _ASBOX
4473 sed "s/^/$as_me: WARNING: /" >&2
4475 esac
4476 echo "$as_me:$LINENO: checking for libdv/dv.h" >&5
4477 echo $ECHO_N "checking for libdv/dv.h... $ECHO_C" >&6
4478 if test "${ac_cv_header_libdv_dv_h+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 ac_cv_header_libdv_dv_h=$ac_header_preproc
4483 echo "$as_me:$LINENO: result: $ac_cv_header_libdv_dv_h" >&5
4484 echo "${ECHO_T}$ac_cv_header_libdv_dv_h" >&6
4487 if test $ac_cv_header_libdv_dv_h = yes; then
4488 DVHDR=1
4492 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
4493 echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
4494 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6
4495 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
4499 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6
4500 else
4501 # Is the header compilable?
4502 echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
4503 echo $ECHO_N "checking libraw1394/raw1394.h usability... $ECHO_C" >&6
4504 cat >conftest.$ac_ext <<_ACEOF
4505 /* confdefs.h. */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4510 $ac_includes_default
4511 #include <libraw1394/raw1394.h>
4512 _ACEOF
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>conftest.er1
4516 ac_status=$?
4517 grep -v '^ *+' conftest.er1 >conftest.err
4518 rm -f conftest.er1
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 ac_header_compiler=yes
4535 else
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 ac_header_compiler=no
4541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4543 echo "${ECHO_T}$ac_header_compiler" >&6
4545 # Is the header present?
4546 echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
4547 echo $ECHO_N "checking libraw1394/raw1394.h presence... $ECHO_C" >&6
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 #include <libraw1394/raw1394.h>
4555 _ACEOF
4556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } >/dev/null; then
4564 if test -s conftest.err; then
4565 ac_cpp_err=$ac_c_preproc_warn_flag
4566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4567 else
4568 ac_cpp_err=
4570 else
4571 ac_cpp_err=yes
4573 if test -z "$ac_cpp_err"; then
4574 ac_header_preproc=yes
4575 else
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4579 ac_header_preproc=no
4581 rm -f conftest.err conftest.$ac_ext
4582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4583 echo "${ECHO_T}$ac_header_preproc" >&6
4585 # So? What about this header?
4586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4587 yes:no: )
4588 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
4589 echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4590 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
4591 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
4592 ac_header_preproc=yes
4594 no:yes:* )
4595 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
4596 echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&5
4598 echo "$as_me: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
4600 echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&5
4602 echo "$as_me: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
4604 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
4606 echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
4608 cat <<\_ASBOX
4609 ## ------------------------------------------ ##
4610 ## Report this to the AC_PACKAGE_NAME lists. ##
4611 ## ------------------------------------------ ##
4612 _ASBOX
4614 sed "s/^/$as_me: WARNING: /" >&2
4616 esac
4617 echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
4618 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6
4619 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622 ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
4624 echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
4625 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6
4628 if test $ac_cv_header_libraw1394_raw1394_h = yes; then
4629 RAW1394HDR=1
4633 echo "$as_me:$LINENO: checking for IEEE1394/AVC video support" >&5
4634 echo $ECHO_N "checking for IEEE1394/AVC video support... $ECHO_C" >&6
4635 if test "${AVC1394HDR:-unset}" != "unset" -a ${DVHDR:-unset} != "unset" -a "${RAW1394HDR:-unset}" != "unset"; then
4636 HAS_AVC1394=1
4638 echo "$as_me:$LINENO: result: yes" >&5
4639 echo "${ECHO_T}yes" >&6
4640 else
4641 echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6
4647 # Check whether --enable-dc or --disable-dc was given.
4648 if test "${enable_dc+set}" = set; then
4649 enableval="$enable_dc"
4651 else
4652 enable_dc=yes
4655 if test "$enable_dc" = "yes" ; then
4656 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
4657 echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
4658 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6
4659 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
4663 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6
4664 else
4665 # Is the header compilable?
4666 echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h usability" >&5
4667 echo $ECHO_N "checking libdc1394/dc1394_control.h usability... $ECHO_C" >&6
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 #include <libdc1394/dc1394_control.h>
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>conftest.er1
4680 ac_status=$?
4681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try='test -s conftest.$ac_objext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 ac_header_compiler=yes
4699 else
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4703 ac_header_compiler=no
4705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4707 echo "${ECHO_T}$ac_header_compiler" >&6
4709 # Is the header present?
4710 echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h presence" >&5
4711 echo $ECHO_N "checking libdc1394/dc1394_control.h presence... $ECHO_C" >&6
4712 cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 #include <libdc1394/dc1394_control.h>
4719 _ACEOF
4720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4722 ac_status=$?
4723 grep -v '^ *+' conftest.er1 >conftest.err
4724 rm -f conftest.er1
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } >/dev/null; then
4728 if test -s conftest.err; then
4729 ac_cpp_err=$ac_c_preproc_warn_flag
4730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4731 else
4732 ac_cpp_err=
4734 else
4735 ac_cpp_err=yes
4737 if test -z "$ac_cpp_err"; then
4738 ac_header_preproc=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ac_header_preproc=no
4745 rm -f conftest.err conftest.$ac_ext
4746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4747 echo "${ECHO_T}$ac_header_preproc" >&6
4749 # So? What about this header?
4750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4751 yes:no: )
4752 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&5
4753 echo "$as_me: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&5
4755 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&2;}
4756 ac_header_preproc=yes
4758 no:yes:* )
4759 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&5
4760 echo "$as_me: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&2;}
4761 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&5
4762 echo "$as_me: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&2;}
4763 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&5
4764 echo "$as_me: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&2;}
4765 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&5
4766 echo "$as_me: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&2;}
4767 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&5
4768 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&2;}
4769 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&5
4770 echo "$as_me: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&2;}
4772 cat <<\_ASBOX
4773 ## ------------------------------------------ ##
4774 ## Report this to the AC_PACKAGE_NAME lists. ##
4775 ## ------------------------------------------ ##
4776 _ASBOX
4778 sed "s/^/$as_me: WARNING: /" >&2
4780 esac
4781 echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
4782 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6
4783 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786 ac_cv_header_libdc1394_dc1394_control_h=$ac_header_preproc
4788 echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
4789 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6
4792 if test $ac_cv_header_libdc1394_dc1394_control_h = yes; then
4793 DC1394HDR=1
4797 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
4798 echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
4799 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6
4800 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
4804 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6
4805 else
4806 # Is the header compilable?
4807 echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
4808 echo $ECHO_N "checking libraw1394/raw1394.h usability... $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h. */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 $ac_includes_default
4816 #include <libraw1394/raw1394.h>
4817 _ACEOF
4818 rm -f conftest.$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>conftest.er1
4821 ac_status=$?
4822 grep -v '^ *+' conftest.er1 >conftest.err
4823 rm -f conftest.er1
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } &&
4827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 (eval $ac_try) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; } &&
4833 { ac_try='test -s conftest.$ac_objext'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 (eval $ac_try) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4839 ac_header_compiler=yes
4840 else
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4844 ac_header_compiler=no
4846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848 echo "${ECHO_T}$ac_header_compiler" >&6
4850 # Is the header present?
4851 echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
4852 echo $ECHO_N "checking libraw1394/raw1394.h presence... $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include <libraw1394/raw1394.h>
4860 _ACEOF
4861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } >/dev/null; then
4869 if test -s conftest.err; then
4870 ac_cpp_err=$ac_c_preproc_warn_flag
4871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4872 else
4873 ac_cpp_err=
4875 else
4876 ac_cpp_err=yes
4878 if test -z "$ac_cpp_err"; then
4879 ac_header_preproc=yes
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 ac_header_preproc=no
4886 rm -f conftest.err conftest.$ac_ext
4887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4888 echo "${ECHO_T}$ac_header_preproc" >&6
4890 # So? What about this header?
4891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4892 yes:no: )
4893 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
4894 echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4895 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
4896 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
4897 ac_header_preproc=yes
4899 no:yes:* )
4900 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
4901 echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
4902 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&5
4903 echo "$as_me: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&2;}
4904 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
4905 echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
4906 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&5
4907 echo "$as_me: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
4908 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
4909 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
4910 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
4911 echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
4913 cat <<\_ASBOX
4914 ## ------------------------------------------ ##
4915 ## Report this to the AC_PACKAGE_NAME lists. ##
4916 ## ------------------------------------------ ##
4917 _ASBOX
4919 sed "s/^/$as_me: WARNING: /" >&2
4921 esac
4922 echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
4923 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6
4924 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927 ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
4929 echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
4930 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6
4933 if test $ac_cv_header_libraw1394_raw1394_h = yes; then
4934 RAW1394HDR=1
4938 echo "$as_me:$LINENO: checking for IEEE1394/DC video support" >&5
4939 echo $ECHO_N "checking for IEEE1394/DC video support... $ECHO_C" >&6
4940 if test "${DC1394HDR:-unset}" != "unset" -a ${RAW1394HDR:-unset} != "unset"; then
4941 HAS_DC1394=1
4943 echo "$as_me:$LINENO: result: yes" >&5
4944 echo "${ECHO_T}yes" >&6
4945 echo "$as_me:$LINENO: checking if dc1394_dma_setup_capture has 12 parms" >&5
4946 echo $ECHO_N "checking if dc1394_dma_setup_capture has 12 parms... $ECHO_C" >&6
4947 cat >conftest.$ac_ext <<_ACEOF
4949 #include "libdc1394/dc1394_control.h"
4950 int main(int ac,char **av)
4952 raw1394handle_t handle;
4953 nodeid_t node;
4954 int channel;
4955 int format;
4956 int mode;
4957 int speed;
4958 int frame_rate;
4959 int num_dma_buffers;
4960 int do_extra_buffering;
4961 int drop_frames;
4962 const char *dma_device_file;
4963 dc1394_cameracapture *camera;
4964 dc1394_dma_setup_capture(handle, node, channel, format, mode, speed, frame_rate, num_dma_buffers,
4965 do_extra_buffering, drop_frames, dma_device_file, camera);
4966 return 0;
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>conftest.er1
4973 ac_status=$?
4974 grep -v '^ *+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try='test -s conftest.$ac_objext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 NEW_DC_API=1
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 NEW_DC_API=0
4998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4999 if test "$NEW_DC_API" = "1" ; then
5000 DC_CFLAGS=-DNEW_DC_API
5002 echo "$as_me:$LINENO: result: yes" >&5
5003 echo "${ECHO_T}yes" >&6
5004 else
5006 echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5009 else
5010 echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5018 ac_config_files="$ac_config_files Makefile"
5020 ac_config_files="$ac_config_files vidinput_dc/Makefile"
5023 cat >confcache <<\_ACEOF
5024 # This file is a shell script that caches the results of configure
5025 # tests run on this system so they can be shared between configure
5026 # scripts and configure runs, see configure's option --config-cache.
5027 # It is not useful on other systems. If it contains results you don't
5028 # want to keep, you may remove or edit it.
5030 # config.status only pays attention to the cache file if you give it
5031 # the --recheck option to rerun configure.
5033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5035 # following values.
5037 _ACEOF
5039 # The following way of writing the cache mishandles newlines in values,
5040 # but we know of no workaround that is simple, portable, and efficient.
5041 # So, don't put newlines in cache variables' values.
5042 # Ultrix sh set writes to stderr and can't be redirected directly,
5043 # and sets the high bit in the cache file unless we assign to the vars.
5045 (set) 2>&1 |
5046 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5047 *ac_space=\ *)
5048 # `set' does not quote correctly, so add quotes (double-quote
5049 # substitution turns \\\\ into \\, and sed turns \\ into \).
5050 sed -n \
5051 "s/'/'\\\\''/g;
5052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5055 # `set' quotes correctly as required by POSIX, so do not add quotes.
5056 sed -n \
5057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5059 esac;
5061 sed '
5062 t clear
5063 : clear
5064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5065 t end
5066 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5067 : end' >>confcache
5068 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5069 if test -w $cache_file; then
5070 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5071 cat confcache >$cache_file
5072 else
5073 echo "not updating unwritable cache $cache_file"
5076 rm -f confcache
5078 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5079 # Let make expand exec_prefix.
5080 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5082 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5083 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5084 # trailing colons and then remove the whole line if VPATH becomes empty
5085 # (actually we leave an empty line to preserve line numbers).
5086 if test "x$srcdir" = x.; then
5087 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5088 s/:*\$(srcdir):*/:/;
5089 s/:*\${srcdir}:*/:/;
5090 s/:*@srcdir@:*/:/;
5091 s/^\([^=]*=[ ]*\):*/\1/;
5092 s/:*$//;
5093 s/^[^=]*=[ ]*$//;
5097 # Transform confdefs.h into DEFS.
5098 # Protect against shell expansion while executing Makefile rules.
5099 # Protect against Makefile macro expansion.
5101 # If the first sed substitution is executed (which looks for macros that
5102 # take arguments), then we branch to the quote section. Otherwise,
5103 # look for a macro that doesn't take arguments.
5104 cat >confdef2opt.sed <<\_ACEOF
5105 t clear
5106 : clear
5107 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5108 t quote
5109 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5110 t quote
5112 : quote
5113 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5114 s,\[,\\&,g
5115 s,\],\\&,g
5116 s,\$,$$,g
5118 _ACEOF
5119 # We use echo to avoid assuming a particular line-breaking character.
5120 # The extra dot is to prevent the shell from consuming trailing
5121 # line-breaks from the sub-command output. A line-break within
5122 # single-quotes doesn't work because, if this script is created in a
5123 # platform that uses two characters for line-breaks (e.g., DOS), tr
5124 # would break.
5125 ac_LF_and_DOT=`echo; echo .`
5126 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5127 rm -f confdef2opt.sed
5130 ac_libobjs=
5131 ac_ltlibobjs=
5132 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5133 # 1. Remove the extension, and $U if already installed.
5134 ac_i=`echo "$ac_i" |
5135 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5136 # 2. Add them.
5137 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5138 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5139 done
5140 LIBOBJS=$ac_libobjs
5142 LTLIBOBJS=$ac_ltlibobjs
5146 : ${CONFIG_STATUS=./config.status}
5147 ac_clean_files_save=$ac_clean_files
5148 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5149 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5150 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5151 cat >$CONFIG_STATUS <<_ACEOF
5152 #! $SHELL
5153 # Generated by $as_me.
5154 # Run this file to recreate the current configuration.
5155 # Compiler output produced by configure, useful for debugging
5156 # configure, is in config.log if it exists.
5158 debug=false
5159 ac_cs_recheck=false
5160 ac_cs_silent=false
5161 SHELL=\${CONFIG_SHELL-$SHELL}
5162 _ACEOF
5164 cat >>$CONFIG_STATUS <<\_ACEOF
5165 ## --------------------- ##
5166 ## M4sh Initialization. ##
5167 ## --------------------- ##
5169 # Be Bourne compatible
5170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5171 emulate sh
5172 NULLCMD=:
5173 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5174 # is contrary to our usage. Disable this feature.
5175 alias -g '${1+"$@"}'='"$@"'
5176 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5177 set -o posix
5179 DUALCASE=1; export DUALCASE # for MKS sh
5181 # Support unset when possible.
5182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5183 as_unset=unset
5184 else
5185 as_unset=false
5189 # Work around bugs in pre-3.0 UWIN ksh.
5190 $as_unset ENV MAIL MAILPATH
5191 PS1='$ '
5192 PS2='> '
5193 PS4='+ '
5195 # NLS nuisances.
5196 for as_var in \
5197 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5198 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5199 LC_TELEPHONE LC_TIME
5201 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5202 eval $as_var=C; export $as_var
5203 else
5204 $as_unset $as_var
5206 done
5208 # Required to use basename.
5209 if expr a : '\(a\)' >/dev/null 2>&1; then
5210 as_expr=expr
5211 else
5212 as_expr=false
5215 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5216 as_basename=basename
5217 else
5218 as_basename=false
5222 # Name of the executable.
5223 as_me=`$as_basename "$0" ||
5224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5225 X"$0" : 'X\(//\)$' \| \
5226 X"$0" : 'X\(/\)$' \| \
5227 . : '\(.\)' 2>/dev/null ||
5228 echo X/"$0" |
5229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5230 /^X\/\(\/\/\)$/{ s//\1/; q; }
5231 /^X\/\(\/\).*/{ s//\1/; q; }
5232 s/.*/./; q'`
5235 # PATH needs CR, and LINENO needs CR and PATH.
5236 # Avoid depending upon Character Ranges.
5237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5240 as_cr_digits='0123456789'
5241 as_cr_alnum=$as_cr_Letters$as_cr_digits
5243 # The user is always right.
5244 if test "${PATH_SEPARATOR+set}" != set; then
5245 echo "#! /bin/sh" >conf$$.sh
5246 echo "exit 0" >>conf$$.sh
5247 chmod +x conf$$.sh
5248 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5249 PATH_SEPARATOR=';'
5250 else
5251 PATH_SEPARATOR=:
5253 rm -f conf$$.sh
5257 as_lineno_1=$LINENO
5258 as_lineno_2=$LINENO
5259 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5260 test "x$as_lineno_1" != "x$as_lineno_2" &&
5261 test "x$as_lineno_3" = "x$as_lineno_2" || {
5262 # Find who we are. Look in the path if we contain no path at all
5263 # relative or not.
5264 case $0 in
5265 *[\\/]* ) as_myself=$0 ;;
5266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5272 done
5275 esac
5276 # We did not find ourselves, most probably we were run as `sh COMMAND'
5277 # in which case we are not to be found in the path.
5278 if test "x$as_myself" = x; then
5279 as_myself=$0
5281 if test ! -f "$as_myself"; then
5282 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5283 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5284 { (exit 1); exit 1; }; }
5286 case $CONFIG_SHELL in
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for as_base in sh bash ksh sh5; do
5294 case $as_dir in
5296 if ("$as_dir/$as_base" -c '
5297 as_lineno_1=$LINENO
5298 as_lineno_2=$LINENO
5299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5300 test "x$as_lineno_1" != "x$as_lineno_2" &&
5301 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5302 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5303 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5304 CONFIG_SHELL=$as_dir/$as_base
5305 export CONFIG_SHELL
5306 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5307 fi;;
5308 esac
5309 done
5310 done
5312 esac
5314 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5315 # uniformly replaced by the line number. The first 'sed' inserts a
5316 # line-number line before each line; the second 'sed' does the real
5317 # work. The second script uses 'N' to pair each line-number line
5318 # with the numbered line, and appends trailing '-' during
5319 # substitution so that $LINENO is not a special case at line end.
5320 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5321 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5322 sed '=' <$as_myself |
5323 sed '
5325 s,$,-,
5326 : loop
5327 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5328 t loop
5329 s,-$,,
5330 s,^['$as_cr_digits']*\n,,
5331 ' >$as_me.lineno &&
5332 chmod +x $as_me.lineno ||
5333 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5334 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5335 { (exit 1); exit 1; }; }
5337 # Don't try to exec as it changes $[0], causing all sort of problems
5338 # (the dirname of $[0] is not the place where we might find the
5339 # original and so on. Autoconf is especially sensible to this).
5340 . ./$as_me.lineno
5341 # Exit status is that of the last command.
5342 exit
5346 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5347 *c*,-n*) ECHO_N= ECHO_C='
5348 ' ECHO_T=' ' ;;
5349 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5350 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5351 esac
5353 if expr a : '\(a\)' >/dev/null 2>&1; then
5354 as_expr=expr
5355 else
5356 as_expr=false
5359 rm -f conf$$ conf$$.exe conf$$.file
5360 echo >conf$$.file
5361 if ln -s conf$$.file conf$$ 2>/dev/null; then
5362 # We could just check for DJGPP; but this test a) works b) is more generic
5363 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5364 if test -f conf$$.exe; then
5365 # Don't use ln at all; we don't have any links
5366 as_ln_s='cp -p'
5367 else
5368 as_ln_s='ln -s'
5370 elif ln conf$$.file conf$$ 2>/dev/null; then
5371 as_ln_s=ln
5372 else
5373 as_ln_s='cp -p'
5375 rm -f conf$$ conf$$.exe conf$$.file
5377 if mkdir -p . 2>/dev/null; then
5378 as_mkdir_p=:
5379 else
5380 test -d ./-p && rmdir ./-p
5381 as_mkdir_p=false
5384 as_executable_p="test -f"
5386 # Sed expression to map a string onto a valid CPP name.
5387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5389 # Sed expression to map a string onto a valid variable name.
5390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5393 # IFS
5394 # We need space, tab and new line, in precisely that order.
5395 as_nl='
5397 IFS=" $as_nl"
5399 # CDPATH.
5400 $as_unset CDPATH
5402 exec 6>&1
5404 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5405 # report actual input values of CONFIG_FILES etc. instead of their
5406 # values after options handling. Logging --version etc. is OK.
5407 exec 5>>config.log
5409 echo
5410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5411 ## Running $as_me. ##
5412 _ASBOX
5413 } >&5
5414 cat >&5 <<_CSEOF
5416 This file was extended by $as_me, which was
5417 generated by GNU Autoconf 2.59. Invocation command line was
5419 CONFIG_FILES = $CONFIG_FILES
5420 CONFIG_HEADERS = $CONFIG_HEADERS
5421 CONFIG_LINKS = $CONFIG_LINKS
5422 CONFIG_COMMANDS = $CONFIG_COMMANDS
5423 $ $0 $@
5425 _CSEOF
5426 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5427 echo >&5
5428 _ACEOF
5430 # Files that config.status was made for.
5431 if test -n "$ac_config_files"; then
5432 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5435 if test -n "$ac_config_headers"; then
5436 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5439 if test -n "$ac_config_links"; then
5440 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5443 if test -n "$ac_config_commands"; then
5444 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5447 cat >>$CONFIG_STATUS <<\_ACEOF
5449 ac_cs_usage="\
5450 \`$as_me' instantiates files from templates according to the
5451 current configuration.
5453 Usage: $0 [OPTIONS] [FILE]...
5455 -h, --help print this help, then exit
5456 -V, --version print version number, then exit
5457 -q, --quiet do not print progress messages
5458 -d, --debug don't remove temporary files
5459 --recheck update $as_me by reconfiguring in the same conditions
5460 --file=FILE[:TEMPLATE]
5461 instantiate the configuration file FILE
5463 Configuration files:
5464 $config_files
5466 Report bugs to <bug-autoconf@gnu.org>."
5467 _ACEOF
5469 cat >>$CONFIG_STATUS <<_ACEOF
5470 ac_cs_version="\\
5471 config.status
5472 configured by $0, generated by GNU Autoconf 2.59,
5473 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5475 Copyright (C) 2003 Free Software Foundation, Inc.
5476 This config.status script is free software; the Free Software Foundation
5477 gives unlimited permission to copy, distribute and modify it."
5478 srcdir=$srcdir
5479 _ACEOF
5481 cat >>$CONFIG_STATUS <<\_ACEOF
5482 # If no file are specified by the user, then we need to provide default
5483 # value. By we need to know if files were specified by the user.
5484 ac_need_defaults=:
5485 while test $# != 0
5487 case $1 in
5488 --*=*)
5489 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5490 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5491 ac_shift=:
5494 ac_option=$1
5495 ac_optarg=$2
5496 ac_shift=shift
5498 *) # This is not an option, so the user has probably given explicit
5499 # arguments.
5500 ac_option=$1
5501 ac_need_defaults=false;;
5502 esac
5504 case $ac_option in
5505 # Handling of the options.
5506 _ACEOF
5507 cat >>$CONFIG_STATUS <<\_ACEOF
5508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5509 ac_cs_recheck=: ;;
5510 --version | --vers* | -V )
5511 echo "$ac_cs_version"; exit 0 ;;
5512 --he | --h)
5513 # Conflict between --help and --header
5514 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5515 Try \`$0 --help' for more information." >&5
5516 echo "$as_me: error: ambiguous option: $1
5517 Try \`$0 --help' for more information." >&2;}
5518 { (exit 1); exit 1; }; };;
5519 --help | --hel | -h )
5520 echo "$ac_cs_usage"; exit 0 ;;
5521 --debug | --d* | -d )
5522 debug=: ;;
5523 --file | --fil | --fi | --f )
5524 $ac_shift
5525 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5526 ac_need_defaults=false;;
5527 --header | --heade | --head | --hea )
5528 $ac_shift
5529 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5530 ac_need_defaults=false;;
5531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5532 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5533 ac_cs_silent=: ;;
5535 # This is an error.
5536 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5537 Try \`$0 --help' for more information." >&5
5538 echo "$as_me: error: unrecognized option: $1
5539 Try \`$0 --help' for more information." >&2;}
5540 { (exit 1); exit 1; }; } ;;
5542 *) ac_config_targets="$ac_config_targets $1" ;;
5544 esac
5545 shift
5546 done
5548 ac_configure_extra_args=
5550 if $ac_cs_silent; then
5551 exec 6>/dev/null
5552 ac_configure_extra_args="$ac_configure_extra_args --silent"
5555 _ACEOF
5556 cat >>$CONFIG_STATUS <<_ACEOF
5557 if \$ac_cs_recheck; then
5558 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5559 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5562 _ACEOF
5568 cat >>$CONFIG_STATUS <<\_ACEOF
5569 for ac_config_target in $ac_config_targets
5571 case "$ac_config_target" in
5572 # Handling of arguments.
5573 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5574 "vidinput_dc/Makefile" ) CONFIG_FILES="$CONFIG_FILES vidinput_dc/Makefile" ;;
5575 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5576 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5577 { (exit 1); exit 1; }; };;
5578 esac
5579 done
5581 # If the user did not use the arguments to specify the items to instantiate,
5582 # then the envvar interface is used. Set only those that are not.
5583 # We use the long form for the default assignment because of an extremely
5584 # bizarre bug on SunOS 4.1.3.
5585 if $ac_need_defaults; then
5586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5589 # Have a temporary directory for convenience. Make it in the build tree
5590 # simply because there is no reason to put it here, and in addition,
5591 # creating and moving files from /tmp can sometimes cause problems.
5592 # Create a temporary directory, and hook for its removal unless debugging.
5593 $debug ||
5595 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5596 trap '{ (exit 1); exit 1; }' 1 2 13 15
5599 # Create a (secure) tmp directory for tmp files.
5602 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5603 test -n "$tmp" && test -d "$tmp"
5604 } ||
5606 tmp=./confstat$$-$RANDOM
5607 (umask 077 && mkdir $tmp)
5608 } ||
5610 echo "$me: cannot create a temporary directory in ." >&2
5611 { (exit 1); exit 1; }
5614 _ACEOF
5616 cat >>$CONFIG_STATUS <<_ACEOF
5619 # CONFIG_FILES section.
5622 # No need to generate the scripts if there are no CONFIG_FILES.
5623 # This happens for instance when ./config.status config.h
5624 if test -n "\$CONFIG_FILES"; then
5625 # Protect against being on the right side of a sed subst in config.status.
5626 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5627 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5628 s,@SHELL@,$SHELL,;t t
5629 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5630 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5631 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5632 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5633 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5634 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5635 s,@exec_prefix@,$exec_prefix,;t t
5636 s,@prefix@,$prefix,;t t
5637 s,@program_transform_name@,$program_transform_name,;t t
5638 s,@bindir@,$bindir,;t t
5639 s,@sbindir@,$sbindir,;t t
5640 s,@libexecdir@,$libexecdir,;t t
5641 s,@datadir@,$datadir,;t t
5642 s,@sysconfdir@,$sysconfdir,;t t
5643 s,@sharedstatedir@,$sharedstatedir,;t t
5644 s,@localstatedir@,$localstatedir,;t t
5645 s,@libdir@,$libdir,;t t
5646 s,@includedir@,$includedir,;t t
5647 s,@oldincludedir@,$oldincludedir,;t t
5648 s,@infodir@,$infodir,;t t
5649 s,@mandir@,$mandir,;t t
5650 s,@build_alias@,$build_alias,;t t
5651 s,@host_alias@,$host_alias,;t t
5652 s,@target_alias@,$target_alias,;t t
5653 s,@DEFS@,$DEFS,;t t
5654 s,@ECHO_C@,$ECHO_C,;t t
5655 s,@ECHO_N@,$ECHO_N,;t t
5656 s,@ECHO_T@,$ECHO_T,;t t
5657 s,@LIBS@,$LIBS,;t t
5658 s,@CXX@,$CXX,;t t
5659 s,@CXXFLAGS@,$CXXFLAGS,;t t
5660 s,@LDFLAGS@,$LDFLAGS,;t t
5661 s,@CPPFLAGS@,$CPPFLAGS,;t t
5662 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5663 s,@EXEEXT@,$EXEEXT,;t t
5664 s,@OBJEXT@,$OBJEXT,;t t
5665 s,@PWLIBDIR@,$PWLIBDIR,;t t
5666 s,@PWINSTDIR@,$PWINSTDIR,;t t
5667 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
5668 s,@LIBDIR@,$LIBDIR,;t t
5669 s,@CC@,$CC,;t t
5670 s,@CFLAGS@,$CFLAGS,;t t
5671 s,@ac_ct_CC@,$ac_ct_CC,;t t
5672 s,@CPP@,$CPP,;t t
5673 s,@EGREP@,$EGREP,;t t
5674 s,@HAS_ALSA@,$HAS_ALSA,;t t
5675 s,@HAS_OSS@,$HAS_OSS,;t t
5676 s,@HAS_V4L@,$HAS_V4L,;t t
5677 s,@HAS_V4L2@,$HAS_V4L2,;t t
5678 s,@HAS_BSDVIDEOCAP@,$HAS_BSDVIDEOCAP,;t t
5679 s,@HAS_AVC1394@,$HAS_AVC1394,;t t
5680 s,@HAS_DC1394@,$HAS_DC1394,;t t
5681 s,@DC_CFLAGS@,$DC_CFLAGS,;t t
5682 s,@LIBOBJS@,$LIBOBJS,;t t
5683 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5684 CEOF
5686 _ACEOF
5688 cat >>$CONFIG_STATUS <<\_ACEOF
5689 # Split the substitutions into bite-sized pieces for seds with
5690 # small command number limits, like on Digital OSF/1 and HP-UX.
5691 ac_max_sed_lines=48
5692 ac_sed_frag=1 # Number of current file.
5693 ac_beg=1 # First line for current file.
5694 ac_end=$ac_max_sed_lines # Line after last line for current file.
5695 ac_more_lines=:
5696 ac_sed_cmds=
5697 while $ac_more_lines; do
5698 if test $ac_beg -gt 1; then
5699 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5700 else
5701 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5703 if test ! -s $tmp/subs.frag; then
5704 ac_more_lines=false
5705 else
5706 # The purpose of the label and of the branching condition is to
5707 # speed up the sed processing (if there are no `@' at all, there
5708 # is no need to browse any of the substitutions).
5709 # These are the two extra sed commands mentioned above.
5710 (echo ':t
5711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5712 if test -z "$ac_sed_cmds"; then
5713 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5714 else
5715 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5717 ac_sed_frag=`expr $ac_sed_frag + 1`
5718 ac_beg=$ac_end
5719 ac_end=`expr $ac_end + $ac_max_sed_lines`
5721 done
5722 if test -z "$ac_sed_cmds"; then
5723 ac_sed_cmds=cat
5725 fi # test -n "$CONFIG_FILES"
5727 _ACEOF
5728 cat >>$CONFIG_STATUS <<\_ACEOF
5729 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5731 case $ac_file in
5732 - | *:- | *:-:* ) # input from stdin
5733 cat >$tmp/stdin
5734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5738 * ) ac_file_in=$ac_file.in ;;
5739 esac
5741 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5744 X"$ac_file" : 'X\(//\)[^/]' \| \
5745 X"$ac_file" : 'X\(//\)$' \| \
5746 X"$ac_file" : 'X\(/\)' \| \
5747 . : '\(.\)' 2>/dev/null ||
5748 echo X"$ac_file" |
5749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5751 /^X\(\/\/\)$/{ s//\1/; q; }
5752 /^X\(\/\).*/{ s//\1/; q; }
5753 s/.*/./; q'`
5754 { if $as_mkdir_p; then
5755 mkdir -p "$ac_dir"
5756 else
5757 as_dir="$ac_dir"
5758 as_dirs=
5759 while test ! -d "$as_dir"; do
5760 as_dirs="$as_dir $as_dirs"
5761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5763 X"$as_dir" : 'X\(//\)[^/]' \| \
5764 X"$as_dir" : 'X\(//\)$' \| \
5765 X"$as_dir" : 'X\(/\)' \| \
5766 . : '\(.\)' 2>/dev/null ||
5767 echo X"$as_dir" |
5768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5770 /^X\(\/\/\)$/{ s//\1/; q; }
5771 /^X\(\/\).*/{ s//\1/; q; }
5772 s/.*/./; q'`
5773 done
5774 test ! -n "$as_dirs" || mkdir $as_dirs
5775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5777 { (exit 1); exit 1; }; }; }
5779 ac_builddir=.
5781 if test "$ac_dir" != .; then
5782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5783 # A "../" for each directory in $ac_dir_suffix.
5784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5785 else
5786 ac_dir_suffix= ac_top_builddir=
5789 case $srcdir in
5790 .) # No --srcdir option. We are building in place.
5791 ac_srcdir=.
5792 if test -z "$ac_top_builddir"; then
5793 ac_top_srcdir=.
5794 else
5795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5796 fi ;;
5797 [\\/]* | ?:[\\/]* ) # Absolute path.
5798 ac_srcdir=$srcdir$ac_dir_suffix;
5799 ac_top_srcdir=$srcdir ;;
5800 *) # Relative path.
5801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5803 esac
5805 # Do not use `cd foo && pwd` to compute absolute paths, because
5806 # the directories may not exist.
5807 case `pwd` in
5808 .) ac_abs_builddir="$ac_dir";;
5810 case "$ac_dir" in
5811 .) ac_abs_builddir=`pwd`;;
5812 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5813 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5814 esac;;
5815 esac
5816 case $ac_abs_builddir in
5817 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5819 case ${ac_top_builddir}. in
5820 .) ac_abs_top_builddir=$ac_abs_builddir;;
5821 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5822 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5823 esac;;
5824 esac
5825 case $ac_abs_builddir in
5826 .) ac_abs_srcdir=$ac_srcdir;;
5828 case $ac_srcdir in
5829 .) ac_abs_srcdir=$ac_abs_builddir;;
5830 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5831 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5832 esac;;
5833 esac
5834 case $ac_abs_builddir in
5835 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5837 case $ac_top_srcdir in
5838 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5839 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5840 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5841 esac;;
5842 esac
5846 # Let's still pretend it is `configure' which instantiates (i.e., don't
5847 # use $as_me), people would be surprised to read:
5848 # /* config.h. Generated by config.status. */
5849 if test x"$ac_file" = x-; then
5850 configure_input=
5851 else
5852 configure_input="$ac_file. "
5854 configure_input=$configure_input"Generated from `echo $ac_file_in |
5855 sed 's,.*/,,'` by configure."
5857 # First look for the input files in the build tree, otherwise in the
5858 # src tree.
5859 ac_file_inputs=`IFS=:
5860 for f in $ac_file_in; do
5861 case $f in
5862 -) echo $tmp/stdin ;;
5863 [\\/$]*)
5864 # Absolute (can't be DOS-style, as IFS=:)
5865 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5866 echo "$as_me: error: cannot find input file: $f" >&2;}
5867 { (exit 1); exit 1; }; }
5868 echo "$f";;
5869 *) # Relative
5870 if test -f "$f"; then
5871 # Build tree
5872 echo "$f"
5873 elif test -f "$srcdir/$f"; then
5874 # Source tree
5875 echo "$srcdir/$f"
5876 else
5877 # /dev/null tree
5878 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5879 echo "$as_me: error: cannot find input file: $f" >&2;}
5880 { (exit 1); exit 1; }; }
5881 fi;;
5882 esac
5883 done` || { (exit 1); exit 1; }
5885 if test x"$ac_file" != x-; then
5886 { echo "$as_me:$LINENO: creating $ac_file" >&5
5887 echo "$as_me: creating $ac_file" >&6;}
5888 rm -f "$ac_file"
5890 _ACEOF
5891 cat >>$CONFIG_STATUS <<_ACEOF
5892 sed "$ac_vpsub
5893 $extrasub
5894 _ACEOF
5895 cat >>$CONFIG_STATUS <<\_ACEOF
5897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5898 s,@configure_input@,$configure_input,;t t
5899 s,@srcdir@,$ac_srcdir,;t t
5900 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5901 s,@top_srcdir@,$ac_top_srcdir,;t t
5902 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5903 s,@builddir@,$ac_builddir,;t t
5904 s,@abs_builddir@,$ac_abs_builddir,;t t
5905 s,@top_builddir@,$ac_top_builddir,;t t
5906 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5907 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5908 rm -f $tmp/stdin
5909 if test x"$ac_file" != x-; then
5910 mv $tmp/out $ac_file
5911 else
5912 cat $tmp/out
5913 rm -f $tmp/out
5916 done
5917 _ACEOF
5919 cat >>$CONFIG_STATUS <<\_ACEOF
5921 { (exit 0); exit 0; }
5922 _ACEOF
5923 chmod +x $CONFIG_STATUS
5924 ac_clean_files=$ac_clean_files_save
5927 # configure is writing to config.log, and then calls config.status.
5928 # config.status does its own redirection, appending to config.log.
5929 # Unfortunately, on DOS this fails, as config.log is still kept open
5930 # by configure, so config.status won't be able to write to it; its
5931 # output is simply discarded. So we exec the FD to /dev/null,
5932 # effectively closing config.log, so it can be properly (re)opened and
5933 # appended to by config.status. When coming back to configure, we
5934 # need to make the FD available again.
5935 if test "$no_create" != yes; then
5936 ac_cs_success=:
5937 ac_config_status_args=
5938 test "$silent" = yes &&
5939 ac_config_status_args="$ac_config_status_args --quiet"
5940 exec 5>/dev/null
5941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5942 exec 5>>config.log
5943 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5944 # would make configure fail if this is the last instruction.
5945 $ac_cs_success || { (exit 1); exit 1; }