2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="include/main.h"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he | -h)
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers | -V)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --build=BUILD configure for building on BUILD [guessed]
659 --host=HOST build programs to run on HOST [BUILD]
660 --target=TARGET configure for building compilers for TARGET [HOST]
664 if test -n "$ac_init_help"; then
669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
671 --disable-nls do not use Native Language Support
672 --disable-optimizations disable compiler optimizations (default enabled)
673 --disable-altivec disable altivec optimizations (default enabled on PPC)
674 --enable-debug debug mode (default disabled)
675 --enable-release activate extra optimizations (default disabled)
676 --enable-dvd DVD input module (default enabled)
677 --enable-dvdread dvdread input module (default disabled)
678 --enable-dvbpsi dvbpsi ts demux module (default disabled)
679 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)
680 --enable-satellite satellite card support (default disabled)
681 --enable-avi AVI demux module (default enabled)
682 --enable-mad libmad module (default disabled)
683 --enable-ffmpeg ffmpeg codec (default disabled)
684 --enable-a52 AC3 support with liba52 (default enabled)
685 --enable-vorbis Ogg/Vorbis decoder support (default enabled)
686 --enable-x11 X11 support (default enabled)
687 --enable-xvideo XVideo support (default enabled)
688 --enable-sdl SDL support (default enabled)
689 --enable-qte QT Embedded support (default disabled)
690 --enable-directx Win32 DirectX support (default enabled on Win32)
691 --enable-fb Linux framebuffer support (default enabled on Linux)
692 --enable-mga Linux kernel Matrox support (default disabled)
693 --enable-ggi GGI support (default disabled)
694 --enable-glide Glide (3dfx) support (default disabled)
695 --enable-aa aalib output (default disabled)
696 --enable-dsp Linux /dev/dsp support (enabled on Linux)
697 --enable-esd Esound library support (default disabled)
698 --enable-arts aRts sound server (default disabled)
699 --enable-alsa ALSA sound support for Linux (default disabled)
700 --enable-waveout Win32 waveOut module (default enabled on Win32)
701 --enable-gtk Gtk+ support (default enabled)
702 --enable-familiar Familiar Gtk+ support (default disabled)
703 --enable-gnome Gnome interface support (default disabled)
704 --enable-qt Qt interface support (default disabled)
705 --enable-kde KDE interface support (default disabled)
706 --enable-opie Qt embedded interface support (default disabled)
707 --enable-macosx MacOS X support (default enabled on MacOS X)
708 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)
709 --enable-intfwin Win32 interface support (default disabled)
710 --enable-ncurses ncurses interface support (default disabled)
711 --enable-lirc lirc support (default disabled)
712 --enable-gprof gprof profiling (default disabled)
713 --enable-cprof cprof profiling (default disabled)
714 --enable-pth GNU Pth support (default disabled)
715 --enable-st State Threads (default disabled)
716 --disable-plugins make all plug-ins built-in (default plug-ins enabled)
719 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
720 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
721 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
722 --with-included-gettext use the GNU gettext library included here
724 Optimization options:
725 --with-tuning=ARCH enable special tuning for an architecture
726 (default i686 on IA-32 and 750 on PPC)
728 --with-dvdcss=PATH libdvdcss headers and libraries
729 --with-dvdcss-tree=PATH libdvdcss tree for static linking
730 --with-dvdread=PATH libdvdread headers and libraries
731 --with-dvbpsi=PATH libdvbpsi headers and libraries
732 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking
734 --with-mad=PATH path to libmad
735 --with-mad-tree=PATH mad tree for static linking
736 --with-ffmpeg=PATH path to ffmpeg installation
737 --with-ffmpeg-tree=PATH ffmpeg tree for static linking
738 --with-a52-tree=PATH a52dec tree for static linking
740 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)
741 --with-qte=PATH Qt Embedded headers and libraries
742 --with-directx=PATH Win32 DirectX headers and libraries
743 --with-ggi=PATH path to libggi
744 --with-glide=PATH path to libglide
747 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)
748 --with-bcbuilder=PATH Borland C++ Builder installation path
750 --with-words=endianness set endianness (big or little)
752 Some influential environment variables:
753 CC C compiler command
754 CFLAGS C compiler flags
755 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
756 nonstandard directory <lib dir>
757 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
758 headers in a nonstandard directory <include dir>
761 Use these variables to override the choices made by `configure' or to help
762 it to find libraries and programs with nonstandard names/locations.
767 if test "$ac_init_help" = "recursive"; then
768 # If there are subdirs, report their specific --help.
770 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
772 # A "../" for each directory in /$ac_subdir.
773 ac_dots=`echo $ac_subdir |
774 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
777 .) # No --srcdir option. We are building in place.
778 ac_sub_srcdir=$srcdir ;;
779 [\\/]* | ?:[\\/]* ) # Absolute path.
780 ac_sub_srcdir=$srcdir/$ac_subdir ;;
782 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
785 # Check for guested configure; otherwise get Cygnus style configure.
786 if test -f $ac_sub_srcdir/configure.gnu; then
788 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
789 elif test -f $ac_sub_srcdir/configure; then
791 $SHELL $ac_sub_srcdir/configure --help=recursive
792 elif test -f $ac_sub_srcdir/configure.ac ||
793 test -f $ac_sub_srcdir/configure.in; then
797 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
803 test -n "$ac_init_help" && exit 0
804 if $ac_init_version; then
807 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
808 Free Software Foundation, Inc.
809 This configure script is free software; the Free Software Foundation
810 gives unlimited permission to copy, distribute and modify it.
816 This file contains any messages produced by compilers while
817 running configure, to aid debugging if configure makes a mistake.
819 It was created by $as_me, which was
820 generated by GNU Autoconf 2.52. Invocation command line was
831 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
832 uname -m = `(uname -m) 2>/dev/null || echo unknown`
833 uname -r = `(uname -r) 2>/dev/null || echo unknown`
834 uname -s = `(uname -s) 2>/dev/null || echo unknown`
835 uname -v = `(uname -v) 2>/dev/null || echo unknown`
837 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
838 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
840 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
841 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
842 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
843 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
844 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
845 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
846 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
860 # Keep a trace of the command line.
861 # Strip out --no-create and --no-recursion so they do not pile up.
862 # Also quote any args containing shell meta-characters.
868 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
869 | --no-cr | --no-c) ;;
870 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
871 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
872 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
873 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
874 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
876 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
879 # Get rid of the leading space.
882 # When interrupted or exit'd, cleanup temporary files, and complete
883 # config.log. We remove comments because anyway the quotes in there
884 # would cause problems or look ugly.
886 # Save into config.log some information that might help in debugging.
888 echo "## ----------------- ##" >&5
889 echo "## Cache variables. ##" >&5
890 echo "## ----------------- ##" >&5
892 # The following way of writing the cache mishandles newlines in values,
895 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
898 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
903 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
907 sed "/^$/d" confdefs.h >conftest.log
908 if test -s conftest.log; then
910 echo "## ------------ ##" >&5
911 echo "## confdefs.h. ##" >&5
912 echo "## ------------ ##" >&5
917 test "$ac_signal" != 0 &&
918 echo "$as_me: caught signal $ac_signal" >&5
919 echo "$as_me: exit $exit_status" >&5
920 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
923 for ac_signal in 1 2 13 15; do
924 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
928 # confdefs.h avoids OS command line length limits that DEFS can exceed.
929 rm -rf conftest* confdefs.h
930 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
933 # Let the site file select an alternate cache file if it wants to.
934 # Prefer explicitly selected file to automatically selected ones.
935 if test -z "$CONFIG_SITE"; then
936 if test "x$prefix" != xNONE; then
937 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
939 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
942 for ac_site_file in $CONFIG_SITE; do
943 if test -r "$ac_site_file"; then
944 { echo "$as_me:944: loading site script $ac_site_file" >&5
945 echo "$as_me: loading site script $ac_site_file" >&6;}
946 cat "$ac_site_file" >&5
951 if test -r "$cache_file"; then
952 # Some versions of bash will fail to source /dev/null (special
953 # files actually), so we avoid doing that.
954 if test -f "$cache_file"; then
955 { echo "$as_me:955: loading cache $cache_file" >&5
956 echo "$as_me: loading cache $cache_file" >&6;}
958 [\\/]* | ?:[\\/]* ) . $cache_file;;
963 { echo "$as_me:963: creating cache $cache_file" >&5
964 echo "$as_me: creating cache $cache_file" >&6;}
968 # Check that the precious variables saved in the cache have kept the same
970 ac_cache_corrupted=false
971 for ac_var in `(set) 2>&1 |
972 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
973 eval ac_old_set=\$ac_cv_env_${ac_var}_set
974 eval ac_new_set=\$ac_env_${ac_var}_set
975 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
976 eval ac_new_val="\$ac_env_${ac_var}_value"
977 case $ac_old_set,$ac_new_set in
979 { echo "$as_me:979: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
980 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
981 ac_cache_corrupted=: ;;
983 { echo "$as_me:983: error: \`$ac_var' was not set in the previous run" >&5
984 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
985 ac_cache_corrupted=: ;;
988 if test "x$ac_old_val" != "x$ac_new_val"; then
989 { echo "$as_me:989: error: \`$ac_var' has changed since the previous run:" >&5
990 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
991 { echo "$as_me:991: former value: $ac_old_val" >&5
992 echo "$as_me: former value: $ac_old_val" >&2;}
993 { echo "$as_me:993: current value: $ac_new_val" >&5
994 echo "$as_me: current value: $ac_new_val" >&2;}
998 # Pass precious variables to config.status. It doesn't matter if
999 # we pass some twice (in addition to the command line arguments).
1000 if test "$ac_new_set" = set; then
1002 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1004 ac_configure_args="$ac_configure_args '$ac_arg'"
1006 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1011 if $ac_cache_corrupted; then
1012 { echo "$as_me:1012: error: changes in the environment can compromise the build" >&5
1013 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1014 { { echo "$as_me:1014: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1015 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1016 { (exit 1); exit 1; }; }
1020 ac_cpp='$CPP $CPPFLAGS'
1021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1025 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1026 *c*,-n*) ECHO_N= ECHO_C='
1028 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1029 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1031 echo "#! $SHELL" >conftest.sh
1032 echo "exit 0" >>conftest.sh
1033 chmod +x conftest.sh
1034 if { (echo "$as_me:1034: PATH=\".;.\"; conftest.sh") >&5
1035 (PATH=".;."; conftest.sh) 2>&5
1037 echo "$as_me:1037: \$? = $ac_status" >&5
1038 (exit $ac_status); }; then
1039 ac_path_separator=';'
1043 PATH_SEPARATOR="$ac_path_separator"
1046 ac_config_headers="$ac_config_headers include/defs.h"
1049 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1050 if test -f $ac_dir/install-sh; then
1052 ac_install_sh="$ac_aux_dir/install-sh -c"
1054 elif test -f $ac_dir/install.sh; then
1056 ac_install_sh="$ac_aux_dir/install.sh -c"
1058 elif test -f $ac_dir/shtool; then
1060 ac_install_sh="$ac_aux_dir/shtool install -c"
1064 if test -z "$ac_aux_dir"; then
1065 { { echo "$as_me:1065: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1066 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1067 { (exit 1); exit 1; }; }
1069 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1070 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1071 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1073 # Make sure we can run config.sub.
1074 $ac_config_sub sun4 >/dev/null 2>&1 ||
1075 { { echo "$as_me:1075: error: cannot run $ac_config_sub" >&5
1076 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1077 { (exit 1); exit 1; }; }
1079 echo "$as_me:1079: checking build system type" >&5
1080 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1081 if test "${ac_cv_build+set}" = set; then
1082 echo $ECHO_N "(cached) $ECHO_C" >&6
1084 ac_cv_build_alias=$build_alias
1085 test -z "$ac_cv_build_alias" &&
1086 ac_cv_build_alias=`$ac_config_guess`
1087 test -z "$ac_cv_build_alias" &&
1088 { { echo "$as_me:1088: error: cannot guess build type; you must specify one" >&5
1089 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1090 { (exit 1); exit 1; }; }
1091 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1092 { { echo "$as_me:1092: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1093 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1094 { (exit 1); exit 1; }; }
1097 echo "$as_me:1097: result: $ac_cv_build" >&5
1098 echo "${ECHO_T}$ac_cv_build" >&6
1100 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1101 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1102 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1104 echo "$as_me:1104: checking host system type" >&5
1105 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1106 if test "${ac_cv_host+set}" = set; then
1107 echo $ECHO_N "(cached) $ECHO_C" >&6
1109 ac_cv_host_alias=$host_alias
1110 test -z "$ac_cv_host_alias" &&
1111 ac_cv_host_alias=$ac_cv_build_alias
1112 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1113 { { echo "$as_me:1113: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1114 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1115 { (exit 1); exit 1; }; }
1118 echo "$as_me:1118: result: $ac_cv_host" >&5
1119 echo "${ECHO_T}$ac_cv_host" >&6
1121 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1122 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1123 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1125 echo "$as_me:1125: checking target system type" >&5
1126 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1127 if test "${ac_cv_target+set}" = set; then
1128 echo $ECHO_N "(cached) $ECHO_C" >&6
1130 ac_cv_target_alias=$target_alias
1131 test "x$ac_cv_target_alias" = "x" &&
1132 ac_cv_target_alias=$ac_cv_host_alias
1133 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1134 { { echo "$as_me:1134: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1135 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1136 { (exit 1); exit 1; }; }
1139 echo "$as_me:1139: result: $ac_cv_target" >&5
1140 echo "${ECHO_T}$ac_cv_target" >&6
1141 target=$ac_cv_target
1142 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1146 # The aliases save the names the user supplied, while $host etc.
1147 # will get canonicalized.
1148 test -n "$target_alias" &&
1149 test "$program_prefix$program_suffix$program_transform_name" = \
1151 program_prefix=${target_alias}-
1157 save_CFLAGS="${CFLAGS}"
1158 save_CPPFLAGS="${CPPFLAGS}"
1159 save_LDFLAGS="${LDFLAGS}"
1161 echo "$as_me:1161: checking whether ${MAKE-make} sets \${MAKE}" >&5
1162 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1163 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1164 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1165 echo $ECHO_N "(cached) $ECHO_C" >&6
1167 cat >conftest.make <<\EOF
1169 @echo 'ac_maketemp="${MAKE}"'
1171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1172 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1173 if test -n "$ac_maketemp"; then
1174 eval ac_cv_prog_make_${ac_make}_set=yes
1176 eval ac_cv_prog_make_${ac_make}_set=no
1180 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1181 echo "$as_me:1181: result: yes" >&5
1182 echo "${ECHO_T}yes" >&6
1185 echo "$as_me:1185: result: no" >&5
1186 echo "${ECHO_T}no" >&6
1187 SET_MAKE="MAKE=${MAKE-make}"
1191 ac_cpp='$CPP $CPPFLAGS'
1192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1195 if test -n "$ac_tool_prefix"; then
1196 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1197 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1198 echo "$as_me:1198: checking for $ac_word" >&5
1199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1200 if test "${ac_cv_prog_CC+set}" = set; then
1201 echo $ECHO_N "(cached) $ECHO_C" >&6
1203 if test -n "$CC"; then
1204 ac_cv_prog_CC="$CC" # Let the user override the test.
1206 ac_save_IFS=$IFS; IFS=$ac_path_separator
1208 for ac_dir in $ac_dummy; do
1210 test -z "$ac_dir" && ac_dir=.
1211 $as_executable_p "$ac_dir/$ac_word" || continue
1212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1213 echo "$as_me:1213: found $ac_dir/$ac_word" >&5
1220 if test -n "$CC"; then
1221 echo "$as_me:1221: result: $CC" >&5
1222 echo "${ECHO_T}$CC" >&6
1224 echo "$as_me:1224: result: no" >&5
1225 echo "${ECHO_T}no" >&6
1229 if test -z "$ac_cv_prog_CC"; then
1231 # Extract the first word of "gcc", so it can be a program name with args.
1232 set dummy gcc; ac_word=$2
1233 echo "$as_me:1233: checking for $ac_word" >&5
1234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1236 echo $ECHO_N "(cached) $ECHO_C" >&6
1238 if test -n "$ac_ct_CC"; then
1239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1241 ac_save_IFS=$IFS; IFS=$ac_path_separator
1243 for ac_dir in $ac_dummy; do
1245 test -z "$ac_dir" && ac_dir=.
1246 $as_executable_p "$ac_dir/$ac_word" || continue
1247 ac_cv_prog_ac_ct_CC="gcc"
1248 echo "$as_me:1248: found $ac_dir/$ac_word" >&5
1254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1255 if test -n "$ac_ct_CC"; then
1256 echo "$as_me:1256: result: $ac_ct_CC" >&5
1257 echo "${ECHO_T}$ac_ct_CC" >&6
1259 echo "$as_me:1259: result: no" >&5
1260 echo "${ECHO_T}no" >&6
1268 if test -z "$CC"; then
1269 if test -n "$ac_tool_prefix"; then
1270 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1271 set dummy ${ac_tool_prefix}cc; ac_word=$2
1272 echo "$as_me:1272: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_prog_CC+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 if test -n "$CC"; then
1278 ac_cv_prog_CC="$CC" # Let the user override the test.
1280 ac_save_IFS=$IFS; IFS=$ac_path_separator
1282 for ac_dir in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir=.
1285 $as_executable_p "$ac_dir/$ac_word" || continue
1286 ac_cv_prog_CC="${ac_tool_prefix}cc"
1287 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1294 if test -n "$CC"; then
1295 echo "$as_me:1295: result: $CC" >&5
1296 echo "${ECHO_T}$CC" >&6
1298 echo "$as_me:1298: result: no" >&5
1299 echo "${ECHO_T}no" >&6
1303 if test -z "$ac_cv_prog_CC"; then
1305 # Extract the first word of "cc", so it can be a program name with args.
1306 set dummy cc; ac_word=$2
1307 echo "$as_me:1307: checking for $ac_word" >&5
1308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 if test -n "$ac_ct_CC"; then
1313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1315 ac_save_IFS=$IFS; IFS=$ac_path_separator
1317 for ac_dir in $ac_dummy; do
1319 test -z "$ac_dir" && ac_dir=.
1320 $as_executable_p "$ac_dir/$ac_word" || continue
1321 ac_cv_prog_ac_ct_CC="cc"
1322 echo "$as_me:1322: found $ac_dir/$ac_word" >&5
1328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1329 if test -n "$ac_ct_CC"; then
1330 echo "$as_me:1330: result: $ac_ct_CC" >&5
1331 echo "${ECHO_T}$ac_ct_CC" >&6
1333 echo "$as_me:1333: result: no" >&5
1334 echo "${ECHO_T}no" >&6
1343 if test -z "$CC"; then
1344 # Extract the first word of "cc", so it can be a program name with args.
1345 set dummy cc; ac_word=$2
1346 echo "$as_me:1346: checking for $ac_word" >&5
1347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1348 if test "${ac_cv_prog_CC+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1351 if test -n "$CC"; then
1352 ac_cv_prog_CC="$CC" # Let the user override the test.
1355 ac_save_IFS=$IFS; IFS=$ac_path_separator
1357 for ac_dir in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir=.
1360 $as_executable_p "$ac_dir/$ac_word" || continue
1361 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1362 ac_prog_rejected=yes
1366 echo "$as_me:1366: found $ac_dir/$ac_word" >&5
1370 if test $ac_prog_rejected = yes; then
1371 # We found a bogon in the path, so make sure we never use it.
1372 set dummy $ac_cv_prog_CC
1374 if test $# != 0; then
1375 # We chose a different compiler from the bogus one.
1376 # However, it has the same basename, so the bogon will be chosen
1377 # first if we set CC to just the basename; use the full file name.
1379 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1387 if test -n "$CC"; then
1388 echo "$as_me:1388: result: $CC" >&5
1389 echo "${ECHO_T}$CC" >&6
1391 echo "$as_me:1391: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1396 if test -z "$CC"; then
1397 if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1402 echo "$as_me:1402: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1410 ac_save_IFS=$IFS; IFS=$ac_path_separator
1412 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 $as_executable_p "$ac_dir/$ac_word" || continue
1416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1417 echo "$as_me:1417: found $ac_dir/$ac_word" >&5
1424 if test -n "$CC"; then
1425 echo "$as_me:1425: result: $CC" >&5
1426 echo "${ECHO_T}$CC" >&6
1428 echo "$as_me:1428: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1432 test -n "$CC" && break
1435 if test -z "$CC"; then
1439 # Extract the first word of "$ac_prog", so it can be a program name with args.
1440 set dummy $ac_prog; ac_word=$2
1441 echo "$as_me:1441: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 if test -n "$ac_ct_CC"; then
1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449 ac_save_IFS=$IFS; IFS=$ac_path_separator
1451 for ac_dir in $ac_dummy; do
1453 test -z "$ac_dir" && ac_dir=.
1454 $as_executable_p "$ac_dir/$ac_word" || continue
1455 ac_cv_prog_ac_ct_CC="$ac_prog"
1456 echo "$as_me:1456: found $ac_dir/$ac_word" >&5
1462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1463 if test -n "$ac_ct_CC"; then
1464 echo "$as_me:1464: result: $ac_ct_CC" >&5
1465 echo "${ECHO_T}$ac_ct_CC" >&6
1467 echo "$as_me:1467: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1471 test -n "$ac_ct_CC" && break
1479 test -z "$CC" && { { echo "$as_me:1479: error: no acceptable cc found in \$PATH" >&5
1480 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1481 { (exit 1); exit 1; }; }
1483 # Provide some information about the compiler.
1484 echo "$as_me:1484:" \
1485 "checking for C compiler version" >&5
1486 ac_compiler=`set X $ac_compile; echo $2`
1487 { (eval echo "$as_me:1487: \"$ac_compiler --version </dev/null >&5\"") >&5
1488 (eval $ac_compiler --version </dev/null >&5) 2>&5
1490 echo "$as_me:1490: \$? = $ac_status" >&5
1491 (exit $ac_status); }
1492 { (eval echo "$as_me:1492: \"$ac_compiler -v </dev/null >&5\"") >&5
1493 (eval $ac_compiler -v </dev/null >&5) 2>&5
1495 echo "$as_me:1495: \$? = $ac_status" >&5
1496 (exit $ac_status); }
1497 { (eval echo "$as_me:1497: \"$ac_compiler -V </dev/null >&5\"") >&5
1498 (eval $ac_compiler -V </dev/null >&5) 2>&5
1500 echo "$as_me:1500: \$? = $ac_status" >&5
1501 (exit $ac_status); }
1503 cat >conftest.$ac_ext <<_ACEOF
1504 #line 1504 "configure"
1505 #include "confdefs.h"
1515 ac_clean_files_save=$ac_clean_files
1516 ac_clean_files="$ac_clean_files a.out a.exe"
1517 # Try to create an executable without -o first, disregard a.out.
1518 # It will help us diagnose broken compilers, and finding out an intuition
1520 echo "$as_me:1520: checking for C compiler default output" >&5
1521 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1522 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1523 if { (eval echo "$as_me:1523: \"$ac_link_default\"") >&5
1524 (eval $ac_link_default) 2>&5
1526 echo "$as_me:1526: \$? = $ac_status" >&5
1527 (exit $ac_status); }; then
1528 # Find the output, starting from the most likely. This scheme is
1529 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1531 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1532 ls a.out conftest 2>/dev/null;
1533 ls a.* conftest.* 2>/dev/null`; do
1535 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1536 a.out ) # We found the default executable, but exeext='' is most
1539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1540 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1547 echo "$as_me: failed program was:" >&5
1548 cat conftest.$ac_ext >&5
1549 { { echo "$as_me:1549: error: C compiler cannot create executables" >&5
1550 echo "$as_me: error: C compiler cannot create executables" >&2;}
1551 { (exit 77); exit 77; }; }
1554 ac_exeext=$ac_cv_exeext
1555 echo "$as_me:1555: result: $ac_file" >&5
1556 echo "${ECHO_T}$ac_file" >&6
1558 # Check the compiler produces executables we can run. If not, either
1559 # the compiler is broken, or we cross compile.
1560 echo "$as_me:1560: checking whether the C compiler works" >&5
1561 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1562 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1563 # If not cross compiling, check that we can run a simple program.
1564 if test "$cross_compiling" != yes; then
1565 if { ac_try='./$ac_file'
1566 { (eval echo "$as_me:1566: \"$ac_try\"") >&5
1569 echo "$as_me:1569: \$? = $ac_status" >&5
1570 (exit $ac_status); }; }; then
1573 if test "$cross_compiling" = maybe; then
1576 { { echo "$as_me:1576: error: cannot run C compiled programs.
1577 If you meant to cross compile, use \`--host'." >&5
1578 echo "$as_me: error: cannot run C compiled programs.
1579 If you meant to cross compile, use \`--host'." >&2;}
1580 { (exit 1); exit 1; }; }
1584 echo "$as_me:1584: result: yes" >&5
1585 echo "${ECHO_T}yes" >&6
1587 rm -f a.out a.exe conftest$ac_cv_exeext
1588 ac_clean_files=$ac_clean_files_save
1589 # Check the compiler produces executables we can run. If not, either
1590 # the compiler is broken, or we cross compile.
1591 echo "$as_me:1591: checking whether we are cross compiling" >&5
1592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1593 echo "$as_me:1593: result: $cross_compiling" >&5
1594 echo "${ECHO_T}$cross_compiling" >&6
1596 echo "$as_me:1596: checking for executable suffix" >&5
1597 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1598 if { (eval echo "$as_me:1598: \"$ac_link\"") >&5
1599 (eval $ac_link) 2>&5
1601 echo "$as_me:1601: \$? = $ac_status" >&5
1602 (exit $ac_status); }; then
1603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1605 # work properly (i.e., refer to `conftest.exe'), while it won't with
1607 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1609 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1610 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1617 { { echo "$as_me:1617: error: cannot compute EXEEXT: cannot compile and link" >&5
1618 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1619 { (exit 1); exit 1; }; }
1622 rm -f conftest$ac_cv_exeext
1623 echo "$as_me:1623: result: $ac_cv_exeext" >&5
1624 echo "${ECHO_T}$ac_cv_exeext" >&6
1626 rm -f conftest.$ac_ext
1627 EXEEXT=$ac_cv_exeext
1629 echo "$as_me:1629: checking for object suffix" >&5
1630 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1631 if test "${ac_cv_objext+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 cat >conftest.$ac_ext <<_ACEOF
1635 #line 1635 "configure"
1636 #include "confdefs.h"
1646 rm -f conftest.o conftest.obj
1647 if { (eval echo "$as_me:1647: \"$ac_compile\"") >&5
1648 (eval $ac_compile) 2>&5
1650 echo "$as_me:1650: \$? = $ac_status" >&5
1651 (exit $ac_status); }; then
1652 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1655 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1660 echo "$as_me: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1662 { { echo "$as_me:1662: error: cannot compute OBJEXT: cannot compile" >&5
1663 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1664 { (exit 1); exit 1; }; }
1667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1669 echo "$as_me:1669: result: $ac_cv_objext" >&5
1670 echo "${ECHO_T}$ac_cv_objext" >&6
1671 OBJEXT=$ac_cv_objext
1673 echo "$as_me:1673: checking whether we are using the GNU C compiler" >&5
1674 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1675 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 cat >conftest.$ac_ext <<_ACEOF
1679 #line 1679 "configure"
1680 #include "confdefs.h"
1693 rm -f conftest.$ac_objext
1694 if { (eval echo "$as_me:1694: \"$ac_compile\"") >&5
1695 (eval $ac_compile) 2>&5
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); } &&
1699 { ac_try='test -s conftest.$ac_objext'
1700 { (eval echo "$as_me:1700: \"$ac_try\"") >&5
1703 echo "$as_me:1703: \$? = $ac_status" >&5
1704 (exit $ac_status); }; }; then
1707 echo "$as_me: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1711 rm -f conftest.$ac_objext conftest.$ac_ext
1712 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1715 echo "$as_me:1715: result: $ac_cv_c_compiler_gnu" >&5
1716 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1717 GCC=`test $ac_compiler_gnu = yes && echo yes`
1718 ac_test_CFLAGS=${CFLAGS+set}
1719 ac_save_CFLAGS=$CFLAGS
1721 echo "$as_me:1721: checking whether $CC accepts -g" >&5
1722 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1723 if test "${ac_cv_prog_cc_g+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 cat >conftest.$ac_ext <<_ACEOF
1727 #line 1727 "configure"
1728 #include "confdefs.h"
1738 rm -f conftest.$ac_objext
1739 if { (eval echo "$as_me:1739: \"$ac_compile\"") >&5
1740 (eval $ac_compile) 2>&5
1742 echo "$as_me:1742: \$? = $ac_status" >&5
1743 (exit $ac_status); } &&
1744 { ac_try='test -s conftest.$ac_objext'
1745 { (eval echo "$as_me:1745: \"$ac_try\"") >&5
1748 echo "$as_me:1748: \$? = $ac_status" >&5
1749 (exit $ac_status); }; }; then
1752 echo "$as_me: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1756 rm -f conftest.$ac_objext conftest.$ac_ext
1758 echo "$as_me:1758: result: $ac_cv_prog_cc_g" >&5
1759 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1760 if test "$ac_test_CFLAGS" = set; then
1761 CFLAGS=$ac_save_CFLAGS
1762 elif test $ac_cv_prog_cc_g = yes; then
1763 if test "$GCC" = yes; then
1769 if test "$GCC" = yes; then
1775 # Some people use a C++ compiler to compile C. Since we use `exit',
1776 # in C++ we need to declare it. In case someone uses the same compiler
1777 # for both compiling C and C++ we need to have the C++ compiler decide
1778 # the declaration of exit, since it's the most demanding environment.
1779 cat >conftest.$ac_ext <<_ACEOF
1784 rm -f conftest.$ac_objext
1785 if { (eval echo "$as_me:1785: \"$ac_compile\"") >&5
1786 (eval $ac_compile) 2>&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); } &&
1790 { ac_try='test -s conftest.$ac_objext'
1791 { (eval echo "$as_me:1791: \"$ac_try\"") >&5
1794 echo "$as_me:1794: \$? = $ac_status" >&5
1795 (exit $ac_status); }; }; then
1796 for ac_declaration in \
1798 '#include <stdlib.h>' \
1799 'extern "C" void std::exit (int) throw (); using std::exit;' \
1800 'extern "C" void std::exit (int); using std::exit;' \
1801 'extern "C" void exit (int) throw ();' \
1802 'extern "C" void exit (int);' \
1805 cat >conftest.$ac_ext <<_ACEOF
1806 #line 1806 "configure"
1807 #include "confdefs.h"
1818 rm -f conftest.$ac_objext
1819 if { (eval echo "$as_me:1819: \"$ac_compile\"") >&5
1820 (eval $ac_compile) 2>&5
1822 echo "$as_me:1822: \$? = $ac_status" >&5
1823 (exit $ac_status); } &&
1824 { ac_try='test -s conftest.$ac_objext'
1825 { (eval echo "$as_me:1825: \"$ac_try\"") >&5
1828 echo "$as_me:1828: \$? = $ac_status" >&5
1829 (exit $ac_status); }; }; then
1832 echo "$as_me: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1836 rm -f conftest.$ac_objext conftest.$ac_ext
1837 cat >conftest.$ac_ext <<_ACEOF
1838 #line 1838 "configure"
1839 #include "confdefs.h"
1849 rm -f conftest.$ac_objext
1850 if { (eval echo "$as_me:1850: \"$ac_compile\"") >&5
1851 (eval $ac_compile) 2>&5
1853 echo "$as_me:1853: \$? = $ac_status" >&5
1854 (exit $ac_status); } &&
1855 { ac_try='test -s conftest.$ac_objext'
1856 { (eval echo "$as_me:1856: \"$ac_try\"") >&5
1859 echo "$as_me:1859: \$? = $ac_status" >&5
1860 (exit $ac_status); }; }; then
1863 echo "$as_me: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1866 rm -f conftest.$ac_objext conftest.$ac_ext
1869 if test -n "$ac_declaration"; then
1870 echo '#ifdef __cplusplus' >>confdefs.h
1871 echo $ac_declaration >>confdefs.h
1872 echo '#endif' >>confdefs.h
1876 echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1879 rm -f conftest.$ac_objext conftest.$ac_ext
1881 ac_cpp='$CPP $CPPFLAGS'
1882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887 ac_cpp='$CPP $CPPFLAGS'
1888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891 echo "$as_me:1891: checking how to run the C preprocessor" >&5
1892 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1893 # On Suns, sometimes $CPP names a directory.
1894 if test -n "$CPP" && test -d "$CPP"; then
1897 if test -z "$CPP"; then
1898 if test "${ac_cv_prog_CPP+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 # Double quotes because CPP needs to be expanded
1902 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1905 for ac_c_preproc_warn_flag in '' yes
1907 # Use a header file that comes with gcc, so configuring glibc
1908 # with a fresh cross-compiler works.
1909 # On the NeXT, cc -E runs the code through the compiler's parser,
1910 # not just through cpp. "Syntax error" is here to catch this case.
1911 cat >conftest.$ac_ext <<_ACEOF
1912 #line 1912 "configure"
1913 #include "confdefs.h"
1917 if { (eval echo "$as_me:1917: \"$ac_cpp conftest.$ac_ext\"") >&5
1918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1920 egrep -v '^ *\+' conftest.er1 >conftest.err
1922 cat conftest.err >&5
1923 echo "$as_me:1923: \$? = $ac_status" >&5
1924 (exit $ac_status); } >/dev/null; then
1925 if test -s conftest.err; then
1926 ac_cpp_err=$ac_c_preproc_warn_flag
1933 if test -z "$ac_cpp_err"; then
1936 echo "$as_me: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1938 # Broken: fails on valid input.
1941 rm -f conftest.err conftest.$ac_ext
1943 # OK, works on sane cases. Now check whether non-existent headers
1944 # can be detected and how.
1945 cat >conftest.$ac_ext <<_ACEOF
1946 #line 1946 "configure"
1947 #include "confdefs.h"
1948 #include <ac_nonexistent.h>
1950 if { (eval echo "$as_me:1950: \"$ac_cpp conftest.$ac_ext\"") >&5
1951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1953 egrep -v '^ *\+' conftest.er1 >conftest.err
1955 cat conftest.err >&5
1956 echo "$as_me:1956: \$? = $ac_status" >&5
1957 (exit $ac_status); } >/dev/null; then
1958 if test -s conftest.err; then
1959 ac_cpp_err=$ac_c_preproc_warn_flag
1966 if test -z "$ac_cpp_err"; then
1967 # Broken: success on invalid input.
1970 echo "$as_me: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1972 # Passes both tests.
1976 rm -f conftest.err conftest.$ac_ext
1979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1980 rm -f conftest.err conftest.$ac_ext
1981 if $ac_preproc_ok; then
1993 echo "$as_me:1993: result: $CPP" >&5
1994 echo "${ECHO_T}$CPP" >&6
1996 for ac_c_preproc_warn_flag in '' yes
1998 # Use a header file that comes with gcc, so configuring glibc
1999 # with a fresh cross-compiler works.
2000 # On the NeXT, cc -E runs the code through the compiler's parser,
2001 # not just through cpp. "Syntax error" is here to catch this case.
2002 cat >conftest.$ac_ext <<_ACEOF
2003 #line 2003 "configure"
2004 #include "confdefs.h"
2008 if { (eval echo "$as_me:2008: \"$ac_cpp conftest.$ac_ext\"") >&5
2009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2011 egrep -v '^ *\+' conftest.er1 >conftest.err
2013 cat conftest.err >&5
2014 echo "$as_me:2014: \$? = $ac_status" >&5
2015 (exit $ac_status); } >/dev/null; then
2016 if test -s conftest.err; then
2017 ac_cpp_err=$ac_c_preproc_warn_flag
2024 if test -z "$ac_cpp_err"; then
2027 echo "$as_me: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 # Broken: fails on valid input.
2032 rm -f conftest.err conftest.$ac_ext
2034 # OK, works on sane cases. Now check whether non-existent headers
2035 # can be detected and how.
2036 cat >conftest.$ac_ext <<_ACEOF
2037 #line 2037 "configure"
2038 #include "confdefs.h"
2039 #include <ac_nonexistent.h>
2041 if { (eval echo "$as_me:2041: \"$ac_cpp conftest.$ac_ext\"") >&5
2042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2044 egrep -v '^ *\+' conftest.er1 >conftest.err
2046 cat conftest.err >&5
2047 echo "$as_me:2047: \$? = $ac_status" >&5
2048 (exit $ac_status); } >/dev/null; then
2049 if test -s conftest.err; then
2050 ac_cpp_err=$ac_c_preproc_warn_flag
2057 if test -z "$ac_cpp_err"; then
2058 # Broken: success on invalid input.
2061 echo "$as_me: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2063 # Passes both tests.
2067 rm -f conftest.err conftest.$ac_ext
2070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2071 rm -f conftest.err conftest.$ac_ext
2072 if $ac_preproc_ok; then
2075 { { echo "$as_me:2075: error: C preprocessor \"$CPP\" fails sanity check" >&5
2076 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2077 { (exit 1); exit 1; }; }
2081 ac_cpp='$CPP $CPPFLAGS'
2082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086 if test -n "$ac_tool_prefix"; then
2087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2089 echo "$as_me:2089: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_RANLIB+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$RANLIB"; then
2095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2097 ac_save_IFS=$IFS; IFS=$ac_path_separator
2099 for ac_dir in $ac_dummy; do
2101 test -z "$ac_dir" && ac_dir=.
2102 $as_executable_p "$ac_dir/$ac_word" || continue
2103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2104 echo "$as_me:2104: found $ac_dir/$ac_word" >&5
2110 RANLIB=$ac_cv_prog_RANLIB
2111 if test -n "$RANLIB"; then
2112 echo "$as_me:2112: result: $RANLIB" >&5
2113 echo "${ECHO_T}$RANLIB" >&6
2115 echo "$as_me:2115: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2120 if test -z "$ac_cv_prog_RANLIB"; then
2121 ac_ct_RANLIB=$RANLIB
2122 # Extract the first word of "ranlib", so it can be a program name with args.
2123 set dummy ranlib; ac_word=$2
2124 echo "$as_me:2124: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 if test -n "$ac_ct_RANLIB"; then
2130 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2132 ac_save_IFS=$IFS; IFS=$ac_path_separator
2134 for ac_dir in $ac_dummy; do
2136 test -z "$ac_dir" && ac_dir=.
2137 $as_executable_p "$ac_dir/$ac_word" || continue
2138 ac_cv_prog_ac_ct_RANLIB="ranlib"
2139 echo "$as_me:2139: found $ac_dir/$ac_word" >&5
2143 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2147 if test -n "$ac_ct_RANLIB"; then
2148 echo "$as_me:2148: result: $ac_ct_RANLIB" >&5
2149 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2151 echo "$as_me:2151: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2155 RANLIB=$ac_ct_RANLIB
2157 RANLIB="$ac_cv_prog_RANLIB"
2160 if test -n "$ac_tool_prefix"; then
2161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2162 set dummy ${ac_tool_prefix}strip; ac_word=$2
2163 echo "$as_me:2163: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_STRIP+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 if test -n "$STRIP"; then
2169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2171 ac_save_IFS=$IFS; IFS=$ac_path_separator
2173 for ac_dir in $ac_dummy; do
2175 test -z "$ac_dir" && ac_dir=.
2176 $as_executable_p "$ac_dir/$ac_word" || continue
2177 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2178 echo "$as_me:2178: found $ac_dir/$ac_word" >&5
2184 STRIP=$ac_cv_prog_STRIP
2185 if test -n "$STRIP"; then
2186 echo "$as_me:2186: result: $STRIP" >&5
2187 echo "${ECHO_T}$STRIP" >&6
2189 echo "$as_me:2189: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2194 if test -z "$ac_cv_prog_STRIP"; then
2196 # Extract the first word of "strip", so it can be a program name with args.
2197 set dummy strip; ac_word=$2
2198 echo "$as_me:2198: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2200 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 if test -n "$ac_ct_STRIP"; then
2204 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2206 ac_save_IFS=$IFS; IFS=$ac_path_separator
2208 for ac_dir in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir=.
2211 $as_executable_p "$ac_dir/$ac_word" || continue
2212 ac_cv_prog_ac_ct_STRIP="strip"
2213 echo "$as_me:2213: found $ac_dir/$ac_word" >&5
2217 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2221 if test -n "$ac_ct_STRIP"; then
2222 echo "$as_me:2222: result: $ac_ct_STRIP" >&5
2223 echo "${ECHO_T}$ac_ct_STRIP" >&6
2225 echo "$as_me:2225: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2231 STRIP="$ac_cv_prog_STRIP"
2234 # Extract the first word of "gmake", so it can be a program name with args.
2235 set dummy gmake; ac_word=$2
2236 echo "$as_me:2236: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238 if test "${ac_cv_path_GMAKE+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2246 ac_save_IFS=$IFS; IFS=$ac_path_separator
2248 for ac_dir in $ac_dummy; do
2250 test -z "$ac_dir" && ac_dir=.
2251 if $as_executable_p "$ac_dir/$ac_word"; then
2252 ac_cv_path_GMAKE="$ac_dir/$ac_word"
2253 echo "$as_me:2253: found $ac_dir/$ac_word" >&5
2258 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
2262 GMAKE=$ac_cv_path_GMAKE
2264 if test -n "$GMAKE"; then
2265 echo "$as_me:2265: result: $GMAKE" >&5
2266 echo "${ECHO_T}$GMAKE" >&6
2268 echo "$as_me:2268: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2272 if test "x$GMAKE" = "xno"; then
2273 echo "$as_me:2273: checking whether GNU make is installed" >&5
2274 echo $ECHO_N "checking whether GNU make is installed... $ECHO_C" >&6
2275 if test "${ac_cv_gmake+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 if make --version | grep -q -i gnu; then
2281 echo "This software needs you to install GNU make to compile properly."
2282 echo "You can get it from http://www.gnu.org/."
2286 echo "$as_me:2286: result: $ac_cv_gmake" >&5
2287 echo "${ECHO_T}$ac_cv_gmake" >&6
2293 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
2295 cat >>confdefs.h <<EOF
2296 #define VLC_PACKAGE "$PACKAGE"
2299 cat >>confdefs.h <<EOF
2300 #define VLC_VERSION "$VERSION"
2303 if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2306 echo "$as_me:2306: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_RANLIB+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 if test -n "$RANLIB"; then
2312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2314 ac_save_IFS=$IFS; IFS=$ac_path_separator
2316 for ac_dir in $ac_dummy; do
2318 test -z "$ac_dir" && ac_dir=.
2319 $as_executable_p "$ac_dir/$ac_word" || continue
2320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2321 echo "$as_me:2321: found $ac_dir/$ac_word" >&5
2327 RANLIB=$ac_cv_prog_RANLIB
2328 if test -n "$RANLIB"; then
2329 echo "$as_me:2329: result: $RANLIB" >&5
2330 echo "${ECHO_T}$RANLIB" >&6
2332 echo "$as_me:2332: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2337 if test -z "$ac_cv_prog_RANLIB"; then
2338 ac_ct_RANLIB=$RANLIB
2339 # Extract the first word of "ranlib", so it can be a program name with args.
2340 set dummy ranlib; ac_word=$2
2341 echo "$as_me:2341: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$ac_ct_RANLIB"; then
2347 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2349 ac_save_IFS=$IFS; IFS=$ac_path_separator
2351 for ac_dir in $ac_dummy; do
2353 test -z "$ac_dir" && ac_dir=.
2354 $as_executable_p "$ac_dir/$ac_word" || continue
2355 ac_cv_prog_ac_ct_RANLIB="ranlib"
2356 echo "$as_me:2356: found $ac_dir/$ac_word" >&5
2360 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2364 if test -n "$ac_ct_RANLIB"; then
2365 echo "$as_me:2365: result: $ac_ct_RANLIB" >&5
2366 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2368 echo "$as_me:2368: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2372 RANLIB=$ac_ct_RANLIB
2374 RANLIB="$ac_cv_prog_RANLIB"
2377 echo "$as_me:2377: checking for strerror in -lcposix" >&5
2378 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2379 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 ac_check_lib_save_LIBS=$LIBS
2383 LIBS="-lcposix $LIBS"
2384 cat >conftest.$ac_ext <<_ACEOF
2385 #line 2385 "configure"
2386 #include "confdefs.h"
2388 /* Override any gcc2 internal prototype to avoid an error. */
2392 /* We use char because int might match the return type of a gcc2
2393 builtin and then its argument prototype would still apply. */
2403 rm -f conftest.$ac_objext conftest$ac_exeext
2404 if { (eval echo "$as_me:2404: \"$ac_link\"") >&5
2405 (eval $ac_link) 2>&5
2407 echo "$as_me:2407: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -s conftest$ac_exeext'
2410 { (eval echo "$as_me:2410: \"$ac_try\"") >&5
2413 echo "$as_me:2413: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 ac_cv_lib_cposix_strerror=yes
2417 echo "$as_me: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2419 ac_cv_lib_cposix_strerror=no
2421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2422 LIBS=$ac_check_lib_save_LIBS
2424 echo "$as_me:2424: result: $ac_cv_lib_cposix_strerror" >&5
2425 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2426 if test $ac_cv_lib_cposix_strerror = yes; then
2427 LIBS="$LIBS -lcposix"
2430 echo "$as_me:2430: checking for ANSI C header files" >&5
2431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2432 if test "${ac_cv_header_stdc+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 cat >conftest.$ac_ext <<_ACEOF
2436 #line 2436 "configure"
2437 #include "confdefs.h"
2444 if { (eval echo "$as_me:2444: \"$ac_cpp conftest.$ac_ext\"") >&5
2445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2447 egrep -v '^ *\+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:2450: \$? = $ac_status" >&5
2451 (exit $ac_status); } >/dev/null; then
2452 if test -s conftest.err; then
2453 ac_cpp_err=$ac_c_preproc_warn_flag
2460 if test -z "$ac_cpp_err"; then
2461 ac_cv_header_stdc=yes
2463 echo "$as_me: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2465 ac_cv_header_stdc=no
2467 rm -f conftest.err conftest.$ac_ext
2469 if test $ac_cv_header_stdc = yes; then
2470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2471 cat >conftest.$ac_ext <<_ACEOF
2472 #line 2472 "configure"
2473 #include "confdefs.h"
2477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2478 egrep "memchr" >/dev/null 2>&1; then
2481 ac_cv_header_stdc=no
2487 if test $ac_cv_header_stdc = yes; then
2488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line 2490 "configure"
2491 #include "confdefs.h"
2495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2496 egrep "free" >/dev/null 2>&1; then
2499 ac_cv_header_stdc=no
2505 if test $ac_cv_header_stdc = yes; then
2506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2507 if test "$cross_compiling" = yes; then
2510 cat >conftest.$ac_ext <<_ACEOF
2511 #line 2511 "configure"
2512 #include "confdefs.h"
2514 #if ((' ' & 0x0FF) == 0x020)
2515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2518 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2519 || ('j' <= (c) && (c) <= 'r') \
2520 || ('s' <= (c) && (c) <= 'z'))
2521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2529 for (i = 0; i < 256; i++)
2530 if (XOR (islower (i), ISLOWER (i))
2531 || toupper (i) != TOUPPER (i))
2536 rm -f conftest$ac_exeext
2537 if { (eval echo "$as_me:2537: \"$ac_link\"") >&5
2538 (eval $ac_link) 2>&5
2540 echo "$as_me:2540: \$? = $ac_status" >&5
2541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2542 { (eval echo "$as_me:2542: \"$ac_try\"") >&5
2545 echo "$as_me:2545: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2549 echo "$as_me: program exited with status $ac_status" >&5
2550 echo "$as_me: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 ac_cv_header_stdc=no
2554 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2558 echo "$as_me:2558: result: $ac_cv_header_stdc" >&5
2559 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2560 if test $ac_cv_header_stdc = yes; then
2562 cat >>confdefs.h <<\EOF
2563 #define STDC_HEADERS 1
2568 echo "$as_me:2568: checking for $CC option to accept ANSI C" >&5
2569 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2570 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 ac_cv_prog_cc_stdc=no
2575 cat >conftest.$ac_ext <<_ACEOF
2576 #line 2576 "configure"
2577 #include "confdefs.h"
2580 #include <sys/types.h>
2581 #include <sys/stat.h>
2582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2583 struct buf { int x; };
2584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2585 static char *e (p, i)
2591 static char *f (char * (*g) (char **, int), char **p, ...)
2596 s = g (p, va_arg (v,int));
2600 int test (int i, double x);
2601 struct s1 {int (*f) (int a);};
2602 struct s2 {int (*f) (double a);};
2603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2614 # Don't try gcc -ansi; that turns off useful extensions and
2615 # breaks some systems' header files.
2616 # AIX -qlanglvl=ansi
2617 # Ultrix and OSF/1 -std1
2618 # HP-UX 10.20 and later -Ae
2619 # HP-UX older versions -Aa -D_HPUX_SOURCE
2620 # SVR4 -Xc -D__EXTENSIONS__
2621 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2623 CC="$ac_save_CC $ac_arg"
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:2625: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>&5
2628 echo "$as_me:2628: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:2631: \"$ac_try\"") >&5
2634 echo "$as_me:2634: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 ac_cv_prog_cc_stdc=$ac_arg
2639 echo "$as_me: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 rm -f conftest.$ac_objext
2644 rm -f conftest.$ac_ext conftest.$ac_objext
2649 case "x$ac_cv_prog_cc_stdc" in
2651 echo "$as_me:2651: result: none needed" >&5
2652 echo "${ECHO_T}none needed" >&6 ;;
2654 echo "$as_me:2654: result: $ac_cv_prog_cc_stdc" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2656 CC="$CC $ac_cv_prog_cc_stdc" ;;
2659 echo "$as_me:2659: checking for an ANSI C-conforming const" >&5
2660 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2661 if test "${ac_cv_c_const+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 cat >conftest.$ac_ext <<_ACEOF
2665 #line 2665 "configure"
2666 #include "confdefs.h"
2671 /* FIXME: Include the comments suggested by Paul. */
2673 /* Ultrix mips cc rejects this. */
2674 typedef int charset[2];
2676 /* SunOS 4.1.1 cc rejects this. */
2677 char const *const *ccp;
2679 /* NEC SVR4.0.2 mips cc rejects this. */
2680 struct point {int x, y;};
2681 static struct point const zero = {0,0};
2682 /* AIX XL C 1.02.0.0 rejects this.
2683 It does not let you subtract one const X* pointer from another in
2684 an arm of an if-expression whose if-part is not a constant
2686 const char *g = "string";
2687 ccp = &g + (g ? g-g : 0);
2688 /* HPUX 7.0 cc rejects these. */
2691 ccp = (char const *const *) p;
2692 { /* SCO 3.2v4 cc rejects this. */
2694 char const *s = 0 ? (char *) 0 : (char const *) 0;
2698 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2700 const int *foo = &x[0];
2703 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2704 typedef const int *iptr;
2708 { /* AIX XL C 1.02.0.0 rejects this saying
2709 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2710 struct s { int j; const int *ap[3]; };
2711 struct s *b; b->j = 5;
2713 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:2723: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>&5
2726 echo "$as_me:2726: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:2729: \"$ac_try\"") >&5
2732 echo "$as_me:2732: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2736 echo "$as_me: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2740 rm -f conftest.$ac_objext conftest.$ac_ext
2742 echo "$as_me:2742: result: $ac_cv_c_const" >&5
2743 echo "${ECHO_T}$ac_cv_c_const" >&6
2744 if test $ac_cv_c_const = no; then
2746 cat >>confdefs.h <<\EOF
2752 echo "$as_me:2752: checking for inline" >&5
2753 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2754 if test "${ac_cv_c_inline+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 for ac_kw in inline __inline__ __inline; do
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line 2760 "configure"
2761 #include "confdefs.h"
2763 static $ac_kw int static_foo () {return 0; }
2764 $ac_kw int foo () {return 0; }
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:2769: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>&5
2772 echo "$as_me:2772: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -s conftest.$ac_objext'
2775 { (eval echo "$as_me:2775: \"$ac_try\"") >&5
2778 echo "$as_me:2778: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 ac_cv_c_inline=$ac_kw; break
2782 echo "$as_me: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2785 rm -f conftest.$ac_objext conftest.$ac_ext
2789 echo "$as_me:2789: result: $ac_cv_c_inline" >&5
2790 echo "${ECHO_T}$ac_cv_c_inline" >&6
2791 case $ac_cv_c_inline in
2794 cat >>confdefs.h <<\EOF
2798 *) cat >>confdefs.h <<EOF
2799 #define inline $ac_cv_c_inline
2804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2806 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2807 inttypes.h stdint.h unistd.h
2809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2810 echo "$as_me:2810: checking for $ac_header" >&5
2811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 cat >conftest.$ac_ext <<_ACEOF
2816 #line 2816 "configure"
2817 #include "confdefs.h"
2818 $ac_includes_default
2819 #include <$ac_header>
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:2822: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>&5
2825 echo "$as_me:2825: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -s conftest.$ac_objext'
2828 { (eval echo "$as_me:2828: \"$ac_try\"") >&5
2831 echo "$as_me:2831: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2833 eval "$as_ac_Header=yes"
2835 echo "$as_me: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2837 eval "$as_ac_Header=no"
2839 rm -f conftest.$ac_objext conftest.$ac_ext
2841 echo "$as_me:2841: result: `eval echo '${'$as_ac_Header'}'`" >&5
2842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2844 cat >>confdefs.h <<EOF
2845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2851 echo "$as_me:2851: checking for off_t" >&5
2852 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2853 if test "${ac_cv_type_off_t+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 cat >conftest.$ac_ext <<_ACEOF
2857 #line 2857 "configure"
2858 #include "confdefs.h"
2859 $ac_includes_default
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:2872: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>&5
2875 echo "$as_me:2875: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:2878: \"$ac_try\"") >&5
2881 echo "$as_me:2881: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 ac_cv_type_off_t=yes
2885 echo "$as_me: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2889 rm -f conftest.$ac_objext conftest.$ac_ext
2891 echo "$as_me:2891: result: $ac_cv_type_off_t" >&5
2892 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2893 if test $ac_cv_type_off_t = yes; then
2897 cat >>confdefs.h <<EOF
2903 echo "$as_me:2903: checking for size_t" >&5
2904 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2905 if test "${ac_cv_type_size_t+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 cat >conftest.$ac_ext <<_ACEOF
2909 #line 2909 "configure"
2910 #include "confdefs.h"
2911 $ac_includes_default
2917 if (sizeof (size_t))
2923 rm -f conftest.$ac_objext
2924 if { (eval echo "$as_me:2924: \"$ac_compile\"") >&5
2925 (eval $ac_compile) 2>&5
2927 echo "$as_me:2927: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -s conftest.$ac_objext'
2930 { (eval echo "$as_me:2930: \"$ac_try\"") >&5
2933 echo "$as_me:2933: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2935 ac_cv_type_size_t=yes
2937 echo "$as_me: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2939 ac_cv_type_size_t=no
2941 rm -f conftest.$ac_objext conftest.$ac_ext
2943 echo "$as_me:2943: result: $ac_cv_type_size_t" >&5
2944 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2945 if test $ac_cv_type_size_t = yes; then
2949 cat >>confdefs.h <<EOF
2950 #define size_t unsigned
2955 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2956 # for constant arguments. Useless!
2957 echo "$as_me:2957: checking for working alloca.h" >&5
2958 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2959 if test "${ac_cv_working_alloca_h+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 cat >conftest.$ac_ext <<_ACEOF
2963 #line 2963 "configure"
2964 #include "confdefs.h"
2969 char *p = (char *) alloca (2 * sizeof (int));
2974 rm -f conftest.$ac_objext conftest$ac_exeext
2975 if { (eval echo "$as_me:2975: \"$ac_link\"") >&5
2976 (eval $ac_link) 2>&5
2978 echo "$as_me:2978: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -s conftest$ac_exeext'
2981 { (eval echo "$as_me:2981: \"$ac_try\"") >&5
2984 echo "$as_me:2984: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2986 ac_cv_working_alloca_h=yes
2988 echo "$as_me: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2990 ac_cv_working_alloca_h=no
2992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2994 echo "$as_me:2994: result: $ac_cv_working_alloca_h" >&5
2995 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2996 if test $ac_cv_working_alloca_h = yes; then
2998 cat >>confdefs.h <<\EOF
2999 #define HAVE_ALLOCA_H 1
3004 echo "$as_me:3004: checking for alloca" >&5
3005 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3006 if test "${ac_cv_func_alloca_works+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 cat >conftest.$ac_ext <<_ACEOF
3010 #line 3010 "configure"
3011 #include "confdefs.h"
3013 # define alloca __builtin_alloca
3016 # include <malloc.h>
3017 # define alloca _alloca
3020 # include <alloca.h>
3025 # ifndef alloca /* predefined by HP cc +Olibcalls */
3036 char *p = (char *) alloca (1);
3041 rm -f conftest.$ac_objext conftest$ac_exeext
3042 if { (eval echo "$as_me:3042: \"$ac_link\"") >&5
3043 (eval $ac_link) 2>&5
3045 echo "$as_me:3045: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -s conftest$ac_exeext'
3048 { (eval echo "$as_me:3048: \"$ac_try\"") >&5
3051 echo "$as_me:3051: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_func_alloca_works=yes
3055 echo "$as_me: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 ac_cv_func_alloca_works=no
3059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3061 echo "$as_me:3061: result: $ac_cv_func_alloca_works" >&5
3062 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3064 if test $ac_cv_func_alloca_works = yes; then
3066 cat >>confdefs.h <<\EOF
3067 #define HAVE_ALLOCA 1
3071 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3072 # that cause trouble. Some versions do not even contain alloca or
3073 # contain a buggy version. If you still want to use their alloca,
3074 # use ar to extract alloca.o from them instead of compiling alloca.c.
3076 ALLOCA=alloca.$ac_objext
3078 cat >>confdefs.h <<\EOF
3082 echo "$as_me:3082: checking whether \`alloca.c' needs Cray hooks" >&5
3083 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3084 if test "${ac_cv_os_cray+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3090 #if defined(CRAY) && ! defined(CRAY2)
3097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3098 egrep "webecray" >/dev/null 2>&1; then
3106 echo "$as_me:3106: result: $ac_cv_os_cray" >&5
3107 echo "${ECHO_T}$ac_cv_os_cray" >&6
3108 if test $ac_cv_os_cray = yes; then
3109 for ac_func in _getb67 GETB67 getb67; do
3110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3111 echo "$as_me:3111: checking for $ac_func" >&5
3112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3113 if eval "test \"\${$as_ac_var+set}\" = set"; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 cat >conftest.$ac_ext <<_ACEOF
3117 #line 3117 "configure"
3118 #include "confdefs.h"
3119 /* System header to define __stub macros and hopefully few prototypes,
3120 which can conflict with char $ac_func (); below. */
3122 /* Override any gcc2 internal prototype to avoid an error. */
3126 /* We use char because int might match the return type of a gcc2
3127 builtin and then its argument prototype would still apply. */
3134 /* The GNU C library defines this for functions which it implements
3135 to always fail with ENOSYS. Some functions are actually named
3136 something starting with __ and the normal name is an alias. */
3137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3147 rm -f conftest.$ac_objext conftest$ac_exeext
3148 if { (eval echo "$as_me:3148: \"$ac_link\"") >&5
3149 (eval $ac_link) 2>&5
3151 echo "$as_me:3151: \$? = $ac_status" >&5
3152 (exit $ac_status); } &&
3153 { ac_try='test -s conftest$ac_exeext'
3154 { (eval echo "$as_me:3154: \"$ac_try\"") >&5
3157 echo "$as_me:3157: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 eval "$as_ac_var=yes"
3161 echo "$as_me: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3163 eval "$as_ac_var=no"
3165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3167 echo "$as_me:3167: result: `eval echo '${'$as_ac_var'}'`" >&5
3168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3169 if test `eval echo '${'$as_ac_var'}'` = yes; then
3171 cat >>confdefs.h <<EOF
3172 #define CRAY_STACKSEG_END $ac_func
3181 echo "$as_me:3181: checking stack direction for C alloca" >&5
3182 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3183 if test "${ac_cv_c_stack_direction+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test "$cross_compiling" = yes; then
3187 ac_cv_c_stack_direction=0
3189 cat >conftest.$ac_ext <<_ACEOF
3190 #line 3190 "configure"
3191 #include "confdefs.h"
3193 find_stack_direction ()
3195 static char *addr = 0;
3200 return find_stack_direction ();
3203 return (&dummy > addr) ? 1 : -1;
3209 exit (find_stack_direction () < 0);
3212 rm -f conftest$ac_exeext
3213 if { (eval echo "$as_me:3213: \"$ac_link\"") >&5
3214 (eval $ac_link) 2>&5
3216 echo "$as_me:3216: \$? = $ac_status" >&5
3217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3218 { (eval echo "$as_me:3218: \"$ac_try\"") >&5
3221 echo "$as_me:3221: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3223 ac_cv_c_stack_direction=1
3225 echo "$as_me: program exited with status $ac_status" >&5
3226 echo "$as_me: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3228 ac_cv_c_stack_direction=-1
3230 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3233 echo "$as_me:3233: result: $ac_cv_c_stack_direction" >&5
3234 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3236 cat >>confdefs.h <<EOF
3237 #define STACK_DIRECTION $ac_cv_c_stack_direction
3242 for ac_header in stdlib.h unistd.h
3244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3245 echo "$as_me:3245: checking for $ac_header" >&5
3246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 cat >conftest.$ac_ext <<_ACEOF
3251 #line 3251 "configure"
3252 #include "confdefs.h"
3253 #include <$ac_header>
3255 if { (eval echo "$as_me:3255: \"$ac_cpp conftest.$ac_ext\"") >&5
3256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3258 egrep -v '^ *\+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:3261: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3271 if test -z "$ac_cpp_err"; then
3272 eval "$as_ac_Header=yes"
3274 echo "$as_me: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3276 eval "$as_ac_Header=no"
3278 rm -f conftest.err conftest.$ac_ext
3280 echo "$as_me:3280: result: `eval echo '${'$as_ac_Header'}'`" >&5
3281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3283 cat >>confdefs.h <<EOF
3284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3290 for ac_func in getpagesize
3292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3293 echo "$as_me:3293: checking for $ac_func" >&5
3294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3295 if eval "test \"\${$as_ac_var+set}\" = set"; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3299 #line 3299 "configure"
3300 #include "confdefs.h"
3301 /* System header to define __stub macros and hopefully few prototypes,
3302 which can conflict with char $ac_func (); below. */
3304 /* Override any gcc2 internal prototype to avoid an error. */
3308 /* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3316 /* The GNU C library defines this for functions which it implements
3317 to always fail with ENOSYS. Some functions are actually named
3318 something starting with __ and the normal name is an alias. */
3319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3329 rm -f conftest.$ac_objext conftest$ac_exeext
3330 if { (eval echo "$as_me:3330: \"$ac_link\"") >&5
3331 (eval $ac_link) 2>&5
3333 echo "$as_me:3333: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -s conftest$ac_exeext'
3336 { (eval echo "$as_me:3336: \"$ac_try\"") >&5
3339 echo "$as_me:3339: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3341 eval "$as_ac_var=yes"
3343 echo "$as_me: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 eval "$as_ac_var=no"
3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3349 echo "$as_me:3349: result: `eval echo '${'$as_ac_var'}'`" >&5
3350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3351 if test `eval echo '${'$as_ac_var'}'` = yes; then
3352 cat >>confdefs.h <<EOF
3353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3359 echo "$as_me:3359: checking for working mmap" >&5
3360 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3361 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 if test "$cross_compiling" = yes; then
3365 ac_cv_func_mmap_fixed_mapped=no
3367 cat >conftest.$ac_ext <<_ACEOF
3368 #line 3368 "configure"
3369 #include "confdefs.h"
3370 $ac_includes_default
3371 /* Thanks to Mike Haertel and Jim Avera for this test.
3372 Here is a matrix of mmap possibilities:
3373 mmap private not fixed
3374 mmap private fixed at somewhere currently unmapped
3375 mmap private fixed at somewhere already mapped
3376 mmap shared not fixed
3377 mmap shared fixed at somewhere currently unmapped
3378 mmap shared fixed at somewhere already mapped
3379 For private mappings, we should verify that changes cannot be read()
3380 back from the file, nor mmap's back from the file at a different
3381 address. (There have been systems where private was not correctly
3382 implemented like the infamous i386 svr4.0, and systems where the
3383 VM page cache was not coherent with the file system buffer cache
3384 like early versions of FreeBSD and possibly contemporary NetBSD.)
3385 For shared mappings, we should conversely verify that changes get
3386 propogated back to all the places they're supposed to be.
3388 Grep wants private fixed already mapped.
3389 The main things grep needs to know about mmap are:
3390 * does it exist and is it safe to write into the mmap'd area
3391 * how to use it (BSD variants) */
3394 #include <sys/mman.h>
3396 #if !STDC_HEADERS && !HAVE_STDLIB_H
3400 /* This mess was copied from the GNU getpagesize.h. */
3401 #if !HAVE_GETPAGESIZE
3402 /* Assume that all systems that can run configure have sys/param.h. */
3403 # if !HAVE_SYS_PARAM_H
3404 # define HAVE_SYS_PARAM_H 1
3407 # ifdef _SC_PAGESIZE
3408 # define getpagesize() sysconf(_SC_PAGESIZE)
3409 # else /* no _SC_PAGESIZE */
3410 # if HAVE_SYS_PARAM_H
3411 # include <sys/param.h>
3412 # ifdef EXEC_PAGESIZE
3413 # define getpagesize() EXEC_PAGESIZE
3414 # else /* no EXEC_PAGESIZE */
3416 # define getpagesize() NBPG * CLSIZE
3419 # endif /* no CLSIZE */
3420 # else /* no NBPG */
3422 # define getpagesize() NBPC
3423 # else /* no NBPC */
3425 # define getpagesize() PAGESIZE
3426 # endif /* PAGESIZE */
3427 # endif /* no NBPC */
3428 # endif /* no NBPG */
3429 # endif /* no EXEC_PAGESIZE */
3430 # else /* no HAVE_SYS_PARAM_H */
3431 # define getpagesize() 8192 /* punt totally */
3432 # endif /* no HAVE_SYS_PARAM_H */
3433 # endif /* no _SC_PAGESIZE */
3435 #endif /* no HAVE_GETPAGESIZE */
3440 char *data, *data2, *data3;
3444 pagesize = getpagesize ();
3446 /* First, make a file with some known garbage in it. */
3447 data = (char *) malloc (pagesize);
3450 for (i = 0; i < pagesize; ++i)
3451 *(data + i) = rand ();
3453 fd = creat ("conftest.mmap", 0600);
3456 if (write (fd, data, pagesize) != pagesize)
3460 /* Next, try to mmap the file at a fixed address which already has
3461 something else allocated at it. If we can, also make sure that
3462 we see the same garbage. */
3463 fd = open ("conftest.mmap", O_RDWR);
3466 data2 = (char *) malloc (2 * pagesize);
3469 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3470 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3471 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3473 for (i = 0; i < pagesize; ++i)
3474 if (*(data + i) != *(data2 + i))
3477 /* Finally, make sure that changes to the mapped area do not
3478 percolate back to the file as seen by read(). (This is a bug on
3479 some variants of i386 svr4.0.) */
3480 for (i = 0; i < pagesize; ++i)
3481 *(data2 + i) = *(data2 + i) + 1;
3482 data3 = (char *) malloc (pagesize);
3485 if (read (fd, data3, pagesize) != pagesize)
3487 for (i = 0; i < pagesize; ++i)
3488 if (*(data + i) != *(data3 + i))
3494 rm -f conftest$ac_exeext
3495 if { (eval echo "$as_me:3495: \"$ac_link\"") >&5
3496 (eval $ac_link) 2>&5
3498 echo "$as_me:3498: \$? = $ac_status" >&5
3499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3500 { (eval echo "$as_me:3500: \"$ac_try\"") >&5
3503 echo "$as_me:3503: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_cv_func_mmap_fixed_mapped=yes
3507 echo "$as_me: program exited with status $ac_status" >&5
3508 echo "$as_me: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3510 ac_cv_func_mmap_fixed_mapped=no
3512 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3515 echo "$as_me:3515: result: $ac_cv_func_mmap_fixed_mapped" >&5
3516 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3517 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3519 cat >>confdefs.h <<\EOF
3526 echo "$as_me:3526: checking whether we are using the GNU C Library 2.1 or newer" >&5
3527 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
3528 if test "${ac_cv_gnu_library_2_1+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 cat >conftest.$ac_ext <<_ACEOF
3532 #line 3532 "configure"
3533 #include "confdefs.h"
3535 #include <features.h>
3536 #ifdef __GNU_LIBRARY__
3537 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3544 egrep "Lucky GNU user" >/dev/null 2>&1; then
3545 ac_cv_gnu_library_2_1=yes
3547 ac_cv_gnu_library_2_1=no
3552 echo "$as_me:3552: result: $ac_cv_gnu_library_2_1" >&5
3553 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
3555 GLIBC21="$ac_cv_gnu_library_2_1"
3557 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3558 stdlib.h string.h unistd.h sys/param.h
3560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3561 echo "$as_me:3561: checking for $ac_header" >&5
3562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line 3567 "configure"
3568 #include "confdefs.h"
3569 #include <$ac_header>
3571 if { (eval echo "$as_me:3571: \"$ac_cpp conftest.$ac_ext\"") >&5
3572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3574 egrep -v '^ *\+' conftest.er1 >conftest.err
3576 cat conftest.err >&5
3577 echo "$as_me:3577: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev/null; then
3579 if test -s conftest.err; then
3580 ac_cpp_err=$ac_c_preproc_warn_flag
3587 if test -z "$ac_cpp_err"; then
3588 eval "$as_ac_Header=yes"
3590 echo "$as_me: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3592 eval "$as_ac_Header=no"
3594 rm -f conftest.err conftest.$ac_ext
3596 echo "$as_me:3596: result: `eval echo '${'$as_ac_Header'}'`" >&5
3597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3599 cat >>confdefs.h <<EOF
3600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3606 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
3607 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
3608 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
3610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3611 echo "$as_me:3611: checking for $ac_func" >&5
3612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3613 if eval "test \"\${$as_ac_var+set}\" = set"; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 cat >conftest.$ac_ext <<_ACEOF
3617 #line 3617 "configure"
3618 #include "confdefs.h"
3619 /* System header to define __stub macros and hopefully few prototypes,
3620 which can conflict with char $ac_func (); below. */
3622 /* Override any gcc2 internal prototype to avoid an error. */
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3634 /* The GNU C library defines this for functions which it implements
3635 to always fail with ENOSYS. Some functions are actually named
3636 something starting with __ and the normal name is an alias. */
3637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3647 rm -f conftest.$ac_objext conftest$ac_exeext
3648 if { (eval echo "$as_me:3648: \"$ac_link\"") >&5
3649 (eval $ac_link) 2>&5
3651 echo "$as_me:3651: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -s conftest$ac_exeext'
3654 { (eval echo "$as_me:3654: \"$ac_try\"") >&5
3657 echo "$as_me:3657: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 eval "$as_ac_var=yes"
3661 echo "$as_me: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3663 eval "$as_ac_var=no"
3665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3667 echo "$as_me:3667: result: `eval echo '${'$as_ac_var'}'`" >&5
3668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3669 if test `eval echo '${'$as_ac_var'}'` = yes; then
3670 cat >>confdefs.h <<EOF
3671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3677 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3678 if test "${with_libiconv_prefix+set}" = set; then
3679 withval="$with_libiconv_prefix"
3681 for dir in `echo "$withval" | tr : ' '`; do
3682 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3683 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
3688 echo "$as_me:3688: checking for iconv" >&5
3689 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
3690 if test "${am_cv_func_iconv+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 am_cv_func_iconv="no, consider installing GNU libiconv"
3696 cat >conftest.$ac_ext <<_ACEOF
3697 #line 3697 "configure"
3698 #include "confdefs.h"
3704 iconv_t cd = iconv_open("","");
3705 iconv(cd,NULL,NULL,NULL,NULL);
3711 rm -f conftest.$ac_objext conftest$ac_exeext
3712 if { (eval echo "$as_me:3712: \"$ac_link\"") >&5
3713 (eval $ac_link) 2>&5
3715 echo "$as_me:3715: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -s conftest$ac_exeext'
3718 { (eval echo "$as_me:3718: \"$ac_try\"") >&5
3721 echo "$as_me:3721: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 am_cv_func_iconv=yes
3725 echo "$as_me: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3729 if test "$am_cv_func_iconv" != yes; then
3730 am_save_LIBS="$LIBS"
3731 LIBS="$LIBS -liconv"
3732 cat >conftest.$ac_ext <<_ACEOF
3733 #line 3733 "configure"
3734 #include "confdefs.h"
3740 iconv_t cd = iconv_open("","");
3741 iconv(cd,NULL,NULL,NULL,NULL);
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:3748: \"$ac_link\"") >&5
3749 (eval $ac_link) 2>&5
3751 echo "$as_me:3751: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -s conftest$ac_exeext'
3754 { (eval echo "$as_me:3754: \"$ac_try\"") >&5
3757 echo "$as_me:3757: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3760 am_cv_func_iconv=yes
3762 echo "$as_me: failed program was:" >&5
3763 cat conftest.$ac_ext >&5
3765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3766 LIBS="$am_save_LIBS"
3770 echo "$as_me:3770: result: $am_cv_func_iconv" >&5
3771 echo "${ECHO_T}$am_cv_func_iconv" >&6
3772 if test "$am_cv_func_iconv" = yes; then
3774 cat >>confdefs.h <<\EOF
3775 #define HAVE_ICONV 1
3778 echo "$as_me:3778: checking for iconv declaration" >&5
3779 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
3780 if test "${am_cv_proto_iconv+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 cat >conftest.$ac_ext <<_ACEOF
3785 #line 3785 "configure"
3786 #include "confdefs.h"
3794 #if defined(__STDC__) || defined(__cplusplus)
3795 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:3809: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>&5
3812 echo "$as_me:3812: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:3815: \"$ac_try\"") >&5
3818 echo "$as_me:3818: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 am_cv_proto_iconv_arg1=""
3822 echo "$as_me: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3824 am_cv_proto_iconv_arg1="const"
3826 rm -f conftest.$ac_objext conftest.$ac_ext
3827 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
3830 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3831 echo "$as_me:3831: result: ${ac_t:-
3832 }$am_cv_proto_iconv" >&5
3833 echo "${ECHO_T}${ac_t:-
3834 }$am_cv_proto_iconv" >&6
3836 cat >>confdefs.h <<EOF
3837 #define ICONV_CONST $am_cv_proto_iconv_arg1
3842 if test "$am_cv_lib_iconv" = yes; then
3846 echo "$as_me:3846: checking for nl_langinfo and CODESET" >&5
3847 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
3848 if test "${am_cv_langinfo_codeset+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 cat >conftest.$ac_ext <<_ACEOF
3852 #line 3852 "configure"
3853 #include "confdefs.h"
3854 #include <langinfo.h>
3858 char* cs = nl_langinfo(CODESET);
3863 rm -f conftest.$ac_objext conftest$ac_exeext
3864 if { (eval echo "$as_me:3864: \"$ac_link\"") >&5
3865 (eval $ac_link) 2>&5
3867 echo "$as_me:3867: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -s conftest$ac_exeext'
3870 { (eval echo "$as_me:3870: \"$ac_try\"") >&5
3873 echo "$as_me:3873: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 am_cv_langinfo_codeset=yes
3877 echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 am_cv_langinfo_codeset=no
3881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3884 echo "$as_me:3884: result: $am_cv_langinfo_codeset" >&5
3885 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
3886 if test $am_cv_langinfo_codeset = yes; then
3888 cat >>confdefs.h <<\EOF
3889 #define HAVE_LANGINFO_CODESET 1
3894 if test $ac_cv_header_locale_h = yes; then
3895 echo "$as_me:3895: checking for LC_MESSAGES" >&5
3896 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
3897 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 cat >conftest.$ac_ext <<_ACEOF
3901 #line 3901 "configure"
3902 #include "confdefs.h"
3912 rm -f conftest.$ac_objext conftest$ac_exeext
3913 if { (eval echo "$as_me:3913: \"$ac_link\"") >&5
3914 (eval $ac_link) 2>&5
3916 echo "$as_me:3916: \$? = $ac_status" >&5
3917 (exit $ac_status); } &&
3918 { ac_try='test -s conftest$ac_exeext'
3919 { (eval echo "$as_me:3919: \"$ac_try\"") >&5
3922 echo "$as_me:3922: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 am_cv_val_LC_MESSAGES=yes
3926 echo "$as_me: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 am_cv_val_LC_MESSAGES=no
3930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3932 echo "$as_me:3932: result: $am_cv_val_LC_MESSAGES" >&5
3933 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
3934 if test $am_cv_val_LC_MESSAGES = yes; then
3936 cat >>confdefs.h <<\EOF
3937 #define HAVE_LC_MESSAGES 1
3942 echo "$as_me:3942: checking whether NLS is requested" >&5
3943 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3944 # Check whether --enable-nls or --disable-nls was given.
3945 if test "${enable_nls+set}" = set; then
3946 enableval="$enable_nls"
3951 echo "$as_me:3951: result: $USE_NLS" >&5
3952 echo "${ECHO_T}$USE_NLS" >&6
3954 BUILD_INCLUDED_LIBINTL=no
3955 USE_INCLUDED_LIBINTL=no
3958 if test "$USE_NLS" = "yes"; then
3960 cat >>confdefs.h <<\EOF
3961 #define ENABLE_NLS 1
3964 echo "$as_me:3964: checking whether included gettext is requested" >&5
3965 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
3967 # Check whether --with-included-gettext or --without-included-gettext was given.
3968 if test "${with_included_gettext+set}" = set; then
3969 withval="$with_included_gettext"
3970 nls_cv_force_use_gnu_gettext=$withval
3972 nls_cv_force_use_gnu_gettext=no
3974 echo "$as_me:3974: result: $nls_cv_force_use_gnu_gettext" >&5
3975 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
3977 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3978 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3981 echo "$as_me:3981: checking for libintl.h" >&5
3982 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
3983 if test "${ac_cv_header_libintl_h+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 cat >conftest.$ac_ext <<_ACEOF
3987 #line 3987 "configure"
3988 #include "confdefs.h"
3989 #include <libintl.h>
3991 if { (eval echo "$as_me:3991: \"$ac_cpp conftest.$ac_ext\"") >&5
3992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3994 egrep -v '^ *\+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 echo "$as_me:3997: \$? = $ac_status" >&5
3998 (exit $ac_status); } >/dev/null; then
3999 if test -s conftest.err; then
4000 ac_cpp_err=$ac_c_preproc_warn_flag
4007 if test -z "$ac_cpp_err"; then
4008 ac_cv_header_libintl_h=yes
4010 echo "$as_me: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4012 ac_cv_header_libintl_h=no
4014 rm -f conftest.err conftest.$ac_ext
4016 echo "$as_me:4016: result: $ac_cv_header_libintl_h" >&5
4017 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4018 if test $ac_cv_header_libintl_h = yes; then
4019 echo "$as_me:4019: checking for GNU gettext in libc" >&5
4020 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4021 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #line 4025 "configure"
4026 #include "confdefs.h"
4027 #include <libintl.h>
4028 extern int _nl_msg_cat_cntr;
4032 bindtextdomain ("", "");
4033 return (int) gettext ("") + _nl_msg_cat_cntr
4038 rm -f conftest.$ac_objext conftest$ac_exeext
4039 if { (eval echo "$as_me:4039: \"$ac_link\"") >&5
4040 (eval $ac_link) 2>&5
4042 echo "$as_me:4042: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -s conftest$ac_exeext'
4045 { (eval echo "$as_me:4045: \"$ac_try\"") >&5
4048 echo "$as_me:4048: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 gt_cv_func_gnugettext1_libc=yes
4052 echo "$as_me: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4054 gt_cv_func_gnugettext1_libc=no
4056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4058 echo "$as_me:4058: result: $gt_cv_func_gnugettext1_libc" >&5
4059 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
4061 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4062 echo "$as_me:4062: checking for GNU gettext in libintl" >&5
4063 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4064 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 gt_save_LIBS="$LIBS"
4068 LIBS="$LIBS -lintl $LIBICONV"
4069 cat >conftest.$ac_ext <<_ACEOF
4070 #line 4070 "configure"
4071 #include "confdefs.h"
4072 #include <libintl.h>
4073 extern int _nl_msg_cat_cntr;
4077 bindtextdomain ("", "");
4078 return (int) gettext ("") + _nl_msg_cat_cntr
4083 rm -f conftest.$ac_objext conftest$ac_exeext
4084 if { (eval echo "$as_me:4084: \"$ac_link\"") >&5
4085 (eval $ac_link) 2>&5
4087 echo "$as_me:4087: \$? = $ac_status" >&5
4088 (exit $ac_status); } &&
4089 { ac_try='test -s conftest$ac_exeext'
4090 { (eval echo "$as_me:4090: \"$ac_try\"") >&5
4093 echo "$as_me:4093: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 gt_cv_func_gnugettext1_libintl=yes
4097 echo "$as_me: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4099 gt_cv_func_gnugettext1_libintl=no
4101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4102 LIBS="$gt_save_LIBS"
4104 echo "$as_me:4104: result: $gt_cv_func_gnugettext1_libintl" >&5
4105 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4108 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4109 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4110 && test "$PACKAGE" != gettext; }; then
4112 cat >>confdefs.h <<\EOF
4113 #define HAVE_GETTEXT 1
4116 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4117 INTLLIBS="-lintl $LIBICONV"
4120 gt_save_LIBS="$LIBS"
4121 LIBS="$LIBS $INTLLIBS"
4123 for ac_func in dcgettext
4125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4126 echo "$as_me:4126: checking for $ac_func" >&5
4127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4128 if eval "test \"\${$as_ac_var+set}\" = set"; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line 4132 "configure"
4133 #include "confdefs.h"
4134 /* System header to define __stub macros and hopefully few prototypes,
4135 which can conflict with char $ac_func (); below. */
4137 /* Override any gcc2 internal prototype to avoid an error. */
4141 /* We use char because int might match the return type of a gcc2
4142 builtin and then its argument prototype would still apply. */
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4162 rm -f conftest.$ac_objext conftest$ac_exeext
4163 if { (eval echo "$as_me:4163: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>&5
4166 echo "$as_me:4166: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -s conftest$ac_exeext'
4169 { (eval echo "$as_me:4169: \"$ac_try\"") >&5
4172 echo "$as_me:4172: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 eval "$as_ac_var=yes"
4176 echo "$as_me: failed program was:" >&5
4177 cat conftest.$ac_ext >&5
4178 eval "$as_ac_var=no"
4180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4182 echo "$as_me:4182: result: `eval echo '${'$as_ac_var'}'`" >&5
4183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4184 if test `eval echo '${'$as_ac_var'}'` = yes; then
4185 cat >>confdefs.h <<EOF
4186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4192 LIBS="$gt_save_LIBS"
4194 # Extract the first word of "msgfmt", so it can be a program name with args.
4195 set dummy msgfmt; ac_word=$2
4196 echo "$as_me:4196: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_path_MSGFMT+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4207 for ac_dir in $PATH; do
4208 test -z "$ac_dir" && ac_dir=.
4209 if test -f $ac_dir/$ac_word; then
4210 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
4211 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4217 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4221 MSGFMT="$ac_cv_path_MSGFMT"
4222 if test "$MSGFMT" != ":"; then
4223 echo "$as_me:4223: result: $MSGFMT" >&5
4224 echo "${ECHO_T}$MSGFMT" >&6
4226 echo "$as_me:4226: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4230 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4231 set dummy gmsgfmt; ac_word=$2
4232 echo "$as_me:4232: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4242 ac_save_IFS=$IFS; IFS=$ac_path_separator
4244 for ac_dir in $ac_dummy; do
4246 test -z "$ac_dir" && ac_dir=.
4247 if $as_executable_p "$ac_dir/$ac_word"; then
4248 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4249 echo "$as_me:4249: found $ac_dir/$ac_word" >&5
4254 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4258 GMSGFMT=$ac_cv_path_GMSGFMT
4260 if test -n "$GMSGFMT"; then
4261 echo "$as_me:4261: result: $GMSGFMT" >&5
4262 echo "${ECHO_T}$GMSGFMT" >&6
4264 echo "$as_me:4264: result: no" >&5
4265 echo "${ECHO_T}no" >&6
4268 # Extract the first word of "xgettext", so it can be a program name with args.
4269 set dummy xgettext; ac_word=$2
4270 echo "$as_me:4270: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4281 for ac_dir in $PATH; do
4282 test -z "$ac_dir" && ac_dir=.
4283 if test -f $ac_dir/$ac_word; then
4284 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
4285 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4291 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4295 XGETTEXT="$ac_cv_path_XGETTEXT"
4296 if test "$XGETTEXT" != ":"; then
4297 echo "$as_me:4297: result: $XGETTEXT" >&5
4298 echo "${ECHO_T}$XGETTEXT" >&6
4300 echo "$as_me:4300: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4309 if test "$CATOBJEXT" = "NONE"; then
4310 nls_cv_use_gnu_gettext=yes
4314 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4315 INTLOBJS="\$(GETTOBJS)"
4316 # Extract the first word of "msgfmt", so it can be a program name with args.
4317 set dummy msgfmt; ac_word=$2
4318 echo "$as_me:4318: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_path_MSGFMT+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4329 for ac_dir in $PATH; do
4330 test -z "$ac_dir" && ac_dir=.
4331 if test -f $ac_dir/$ac_word; then
4332 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
4333 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4339 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4343 MSGFMT="$ac_cv_path_MSGFMT"
4344 if test "$MSGFMT" != ":"; then
4345 echo "$as_me:4345: result: $MSGFMT" >&5
4346 echo "${ECHO_T}$MSGFMT" >&6
4348 echo "$as_me:4348: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4352 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4353 set dummy gmsgfmt; ac_word=$2
4354 echo "$as_me:4354: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4364 ac_save_IFS=$IFS; IFS=$ac_path_separator
4366 for ac_dir in $ac_dummy; do
4368 test -z "$ac_dir" && ac_dir=.
4369 if $as_executable_p "$ac_dir/$ac_word"; then
4370 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4371 echo "$as_me:4371: found $ac_dir/$ac_word" >&5
4376 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4380 GMSGFMT=$ac_cv_path_GMSGFMT
4382 if test -n "$GMSGFMT"; then
4383 echo "$as_me:4383: result: $GMSGFMT" >&5
4384 echo "${ECHO_T}$GMSGFMT" >&6
4386 echo "$as_me:4386: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4390 # Extract the first word of "xgettext", so it can be a program name with args.
4391 set dummy xgettext; ac_word=$2
4392 echo "$as_me:4392: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4403 for ac_dir in $PATH; do
4404 test -z "$ac_dir" && ac_dir=.
4405 if test -f $ac_dir/$ac_word; then
4406 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
4407 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4413 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4417 XGETTEXT="$ac_cv_path_XGETTEXT"
4418 if test "$XGETTEXT" != ":"; then
4419 echo "$as_me:4419: result: $XGETTEXT" >&5
4420 echo "${ECHO_T}$XGETTEXT" >&6
4422 echo "$as_me:4422: result: no" >&5
4423 echo "${ECHO_T}no" >&6
4426 BUILD_INCLUDED_LIBINTL=yes
4427 USE_INCLUDED_LIBINTL=yes
4429 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
4430 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
4433 if test "$GMSGFMT" != ":"; then
4434 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
4437 echo "$as_me:4437: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
4438 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
4443 if test "$XGETTEXT" != ":"; then
4444 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
4447 echo "$as_me:4447: result: found xgettext program is not GNU xgettext; ignore it" >&5
4448 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4455 ac_config_commands="$ac_config_commands default-1"
4457 if test "$PACKAGE" = gettext; then
4458 BUILD_INCLUDED_LIBINTL=yes
4461 for ac_prog in bison
4463 # Extract the first word of "$ac_prog", so it can be a program name with args.
4464 set dummy $ac_prog; ac_word=$2
4465 echo "$as_me:4465: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467 if test "${ac_cv_prog_INTLBISON+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 if test -n "$INTLBISON"; then
4471 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
4473 ac_save_IFS=$IFS; IFS=$ac_path_separator
4475 for ac_dir in $ac_dummy; do
4477 test -z "$ac_dir" && ac_dir=.
4478 $as_executable_p "$ac_dir/$ac_word" || continue
4479 ac_cv_prog_INTLBISON="$ac_prog"
4480 echo "$as_me:4480: found $ac_dir/$ac_word" >&5
4486 INTLBISON=$ac_cv_prog_INTLBISON
4487 if test -n "$INTLBISON"; then
4488 echo "$as_me:4488: result: $INTLBISON" >&5
4489 echo "${ECHO_T}$INTLBISON" >&6
4491 echo "$as_me:4491: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4495 test -n "$INTLBISON" && break
4498 if test -z "$INTLBISON"; then
4501 echo "$as_me:4501: checking version of bison" >&5
4502 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
4503 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4504 case $ac_prog_version in
4505 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4506 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
4507 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4508 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4510 echo "$as_me:4510: result: $ac_prog_version" >&5
4511 echo "${ECHO_T}$ac_prog_version" >&6
4513 if test $ac_verc_fail = yes; then
4517 for lang in $ALL_LINGUAS; do
4518 GMOFILES="$GMOFILES $lang.gmo"
4519 POFILES="$POFILES $lang.po"
4523 nls_cv_header_libgt=
4531 if test "x$CATOBJEXT" != "x"; then
4532 if test "x$ALL_LINGUAS" = "x"; then
4535 echo "$as_me:4535: checking for catalogs to be installed" >&5
4536 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
4538 for presentlang in $ALL_LINGUAS; do
4540 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
4541 # Use the presentlang catalog if desiredlang is
4542 # a. equal to presentlang, or
4543 # b. a variant of presentlang (because in this case,
4544 # presentlang can be used as a fallback for messages
4545 # which are not translated in the desiredlang catalog).
4546 case "$desiredlang" in
4547 "$presentlang"*) useit=yes;;
4550 if test $useit = yes; then
4551 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
4554 LINGUAS=$NEW_LINGUAS
4555 echo "$as_me:4555: result: $LINGUAS" >&5
4556 echo "${ECHO_T}$LINGUAS" >&6
4559 if test -n "$LINGUAS"; then
4560 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4565 if test -n "$ac_aux_dir"; then
4566 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4568 if test -z "$MKINSTALLDIRS"; then
4569 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4572 INTL_LIBTOOL_SUFFIX_PREFIX=
4574 # Find a good install program. We prefer a C program (faster),
4575 # so one script is as good as another. But avoid the broken or
4576 # incompatible versions:
4577 # SysV /etc/install, /usr/sbin/install
4578 # SunOS /usr/etc/install
4579 # IRIX /sbin/install
4581 # AmigaOS /C/install, which installs bootblocks on floppy discs
4582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4585 # ./install, which can be erroneously created by make from ./install.sh.
4586 echo "$as_me:4586: checking for a BSD compatible install" >&5
4587 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4588 if test -z "$INSTALL"; then
4589 if test "${ac_cv_path_install+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 ac_save_IFS=$IFS; IFS=$ac_path_separator
4593 for ac_dir in $PATH; do
4595 # Account for people who put trailing slashes in PATH elements.
4597 / | ./ | .// | /cC/* \
4598 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
4601 # OSF1 and SCO ODT 3.0 have their own names for install.
4602 # Don't use installbsd from OSF since it installs stuff as root
4604 for ac_prog in ginstall scoinst install; do
4605 if $as_executable_p "$ac_dir/$ac_prog"; then
4606 if test $ac_prog = install &&
4607 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4608 # AIX install. It has an incompatible calling convention.
4610 elif test $ac_prog = install &&
4611 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4612 # program-specific install script used by HP pwplus--don't use.
4615 ac_cv_path_install="$ac_dir/$ac_prog -c"
4625 if test "${ac_cv_path_install+set}" = set; then
4626 INSTALL=$ac_cv_path_install
4628 # As a last resort, use the slow shell script. We don't cache a
4629 # path for INSTALL within a source directory, because that will
4630 # break other packages using the cache if that directory is
4631 # removed, or if the path is relative.
4632 INSTALL=$ac_install_sh
4635 echo "$as_me:4635: result: $INSTALL" >&5
4636 echo "${ECHO_T}$INSTALL" >&6
4638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4639 # It thinks the first close brace ends the variable substitution.
4640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4646 case x"${target_os}" in
4655 save_CFLAGS="${save_CFLAGS} -pthread"
4656 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
4657 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
4661 save_CFLAGS="${save_CFLAGS} -pthread"
4665 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
4669 if test -n "$ac_tool_prefix"; then
4670 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4671 set dummy ${ac_tool_prefix}windres; ac_word=$2
4672 echo "$as_me:4672: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_prog_WINDRES+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 if test -n "$WINDRES"; then
4678 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4680 ac_save_IFS=$IFS; IFS=$ac_path_separator
4682 for ac_dir in $ac_dummy; do
4684 test -z "$ac_dir" && ac_dir=.
4685 $as_executable_p "$ac_dir/$ac_word" || continue
4686 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4687 echo "$as_me:4687: found $ac_dir/$ac_word" >&5
4693 WINDRES=$ac_cv_prog_WINDRES
4694 if test -n "$WINDRES"; then
4695 echo "$as_me:4695: result: $WINDRES" >&5
4696 echo "${ECHO_T}$WINDRES" >&6
4698 echo "$as_me:4698: result: no" >&5
4699 echo "${ECHO_T}no" >&6
4703 if test -z "$ac_cv_prog_WINDRES"; then
4704 ac_ct_WINDRES=$WINDRES
4705 # Extract the first word of "windres", so it can be a program name with args.
4706 set dummy windres; ac_word=$2
4707 echo "$as_me:4707: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4709 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 if test -n "$ac_ct_WINDRES"; then
4713 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4715 ac_save_IFS=$IFS; IFS=$ac_path_separator
4717 for ac_dir in $ac_dummy; do
4719 test -z "$ac_dir" && ac_dir=.
4720 $as_executable_p "$ac_dir/$ac_word" || continue
4721 ac_cv_prog_ac_ct_WINDRES="windres"
4722 echo "$as_me:4722: found $ac_dir/$ac_word" >&5
4726 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
4729 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4730 if test -n "$ac_ct_WINDRES"; then
4731 echo "$as_me:4731: result: $ac_ct_WINDRES" >&5
4732 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4734 echo "$as_me:4734: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4738 WINDRES=$ac_ct_WINDRES
4740 WINDRES="$ac_cv_prog_WINDRES"
4743 save_CFLAGS="${save_CFLAGS} -D_OFF_T_ -D_off_t=long"
4744 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
4745 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
4746 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
4747 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
4748 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
4749 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
4753 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
4754 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
4758 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
4759 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
4760 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
4761 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -ltranslation -lstdc++.r4"
4762 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
4769 if test x"${SYS}" != xmingw32; then
4770 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
4773 if test x$SYS = xmingw32
4775 echo "$as_me:4775: checking for opendir in -lmingwex" >&5
4776 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6
4777 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 ac_check_lib_save_LIBS=$LIBS
4781 LIBS="-lmingwex $LIBS"
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #line 4783 "configure"
4784 #include "confdefs.h"
4786 /* Override any gcc2 internal prototype to avoid an error. */
4790 /* We use char because int might match the return type of a gcc2
4791 builtin and then its argument prototype would still apply. */
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:4802: \"$ac_link\"") >&5
4803 (eval $ac_link) 2>&5
4805 echo "$as_me:4805: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -s conftest$ac_exeext'
4808 { (eval echo "$as_me:4808: \"$ac_try\"") >&5
4811 echo "$as_me:4811: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 ac_cv_lib_mingwex_opendir=yes
4815 echo "$as_me: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 ac_cv_lib_mingwex_opendir=no
4819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 LIBS=$ac_check_lib_save_LIBS
4822 echo "$as_me:4822: result: $ac_cv_lib_mingwex_opendir" >&5
4823 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6
4824 if test $ac_cv_lib_mingwex_opendir = yes; then
4825 echo "$as_me:4825: checking for opendir in -lmingw32" >&5
4826 echo $ECHO_N "checking for opendir in -lmingw32... $ECHO_C" >&6
4827 if test "${ac_cv_lib_mingw32_opendir+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 ac_check_lib_save_LIBS=$LIBS
4831 LIBS="-lmingw32 $LIBS"
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #line 4833 "configure"
4834 #include "confdefs.h"
4836 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4851 rm -f conftest.$ac_objext conftest$ac_exeext
4852 if { (eval echo "$as_me:4852: \"$ac_link\"") >&5
4853 (eval $ac_link) 2>&5
4855 echo "$as_me:4855: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -s conftest$ac_exeext'
4858 { (eval echo "$as_me:4858: \"$ac_try\"") >&5
4861 echo "$as_me:4861: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_cv_lib_mingw32_opendir=yes
4865 echo "$as_me: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4867 ac_cv_lib_mingw32_opendir=no
4869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4870 LIBS=$ac_check_lib_save_LIBS
4872 echo "$as_me:4872: result: $ac_cv_lib_mingw32_opendir" >&5
4873 echo "${ECHO_T}$ac_cv_lib_mingw32_opendir" >&6
4874 if test $ac_cv_lib_mingw32_opendir = yes; then
4875 vlc_LDFLAGS="${vlc_LDFLAGS}"
4877 vlc_LDFLAGS="${vlc_LDFLAGS} -lmingwex"
4878 gtk_LDFLAGS="${gtk_LDFLAGS} -lmingwex"
4885 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
4887 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
4889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4890 echo "$as_me:4890: checking for $ac_func" >&5
4891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4892 if eval "test \"\${$as_ac_var+set}\" = set"; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 cat >conftest.$ac_ext <<_ACEOF
4896 #line 4896 "configure"
4897 #include "confdefs.h"
4898 /* System header to define __stub macros and hopefully few prototypes,
4899 which can conflict with char $ac_func (); below. */
4901 /* Override any gcc2 internal prototype to avoid an error. */
4905 /* We use char because int might match the return type of a gcc2
4906 builtin and then its argument prototype would still apply. */
4913 /* The GNU C library defines this for functions which it implements
4914 to always fail with ENOSYS. Some functions are actually named
4915 something starting with __ and the normal name is an alias. */
4916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4926 rm -f conftest.$ac_objext conftest$ac_exeext
4927 if { (eval echo "$as_me:4927: \"$ac_link\"") >&5
4928 (eval $ac_link) 2>&5
4930 echo "$as_me:4930: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try='test -s conftest$ac_exeext'
4933 { (eval echo "$as_me:4933: \"$ac_try\"") >&5
4936 echo "$as_me:4936: \$? = $ac_status" >&5
4937 (exit $ac_status); }; }; then
4938 eval "$as_ac_var=yes"
4940 echo "$as_me: failed program was:" >&5
4941 cat conftest.$ac_ext >&5
4942 eval "$as_ac_var=no"
4944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4946 echo "$as_me:4946: result: `eval echo '${'$as_ac_var'}'`" >&5
4947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4948 if test `eval echo '${'$as_ac_var'}'` = yes; then
4949 cat >>confdefs.h <<EOF
4950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4956 echo "$as_me:4956: checking for connect" >&5
4957 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4958 if test "${ac_cv_func_connect+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 cat >conftest.$ac_ext <<_ACEOF
4962 #line 4962 "configure"
4963 #include "confdefs.h"
4964 /* System header to define __stub macros and hopefully few prototypes,
4965 which can conflict with char connect (); below. */
4967 /* Override any gcc2 internal prototype to avoid an error. */
4971 /* We use char because int might match the return type of a gcc2
4972 builtin and then its argument prototype would still apply. */
4979 /* The GNU C library defines this for functions which it implements
4980 to always fail with ENOSYS. Some functions are actually named
4981 something starting with __ and the normal name is an alias. */
4982 #if defined (__stub_connect) || defined (__stub___connect)
4992 rm -f conftest.$ac_objext conftest$ac_exeext
4993 if { (eval echo "$as_me:4993: \"$ac_link\"") >&5
4994 (eval $ac_link) 2>&5
4996 echo "$as_me:4996: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -s conftest$ac_exeext'
4999 { (eval echo "$as_me:4999: \"$ac_try\"") >&5
5002 echo "$as_me:5002: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_cv_func_connect=yes
5006 echo "$as_me: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5008 ac_cv_func_connect=no
5010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5012 echo "$as_me:5012: result: $ac_cv_func_connect" >&5
5013 echo "${ECHO_T}$ac_cv_func_connect" >&6
5014 if test $ac_cv_func_connect = yes; then
5018 echo "$as_me:5018: checking for connect in -lsocket" >&5
5019 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5020 if test "${ac_cv_lib_socket_connect+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 ac_check_lib_save_LIBS=$LIBS
5024 LIBS="-lsocket $LIBS"
5025 cat >conftest.$ac_ext <<_ACEOF
5026 #line 5026 "configure"
5027 #include "confdefs.h"
5029 /* Override any gcc2 internal prototype to avoid an error. */
5033 /* We use char because int might match the return type of a gcc2
5034 builtin and then its argument prototype would still apply. */
5044 rm -f conftest.$ac_objext conftest$ac_exeext
5045 if { (eval echo "$as_me:5045: \"$ac_link\"") >&5
5046 (eval $ac_link) 2>&5
5048 echo "$as_me:5048: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
5050 { ac_try='test -s conftest$ac_exeext'
5051 { (eval echo "$as_me:5051: \"$ac_try\"") >&5
5054 echo "$as_me:5054: \$? = $ac_status" >&5
5055 (exit $ac_status); }; }; then
5056 ac_cv_lib_socket_connect=yes
5058 echo "$as_me: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5060 ac_cv_lib_socket_connect=no
5062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5063 LIBS=$ac_check_lib_save_LIBS
5065 echo "$as_me:5065: result: $ac_cv_lib_socket_connect" >&5
5066 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5067 if test $ac_cv_lib_socket_connect = yes; then
5068 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
5069 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
5075 echo "$as_me:5075: checking for gethostbyname" >&5
5076 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5077 if test "${ac_cv_func_gethostbyname+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 cat >conftest.$ac_ext <<_ACEOF
5081 #line 5081 "configure"
5082 #include "confdefs.h"
5083 /* System header to define __stub macros and hopefully few prototypes,
5084 which can conflict with char gethostbyname (); below. */
5086 /* Override any gcc2 internal prototype to avoid an error. */
5090 /* We use char because int might match the return type of a gcc2
5091 builtin and then its argument prototype would still apply. */
5092 char gethostbyname ();
5098 /* The GNU C library defines this for functions which it implements
5099 to always fail with ENOSYS. Some functions are actually named
5100 something starting with __ and the normal name is an alias. */
5101 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5111 rm -f conftest.$ac_objext conftest$ac_exeext
5112 if { (eval echo "$as_me:5112: \"$ac_link\"") >&5
5113 (eval $ac_link) 2>&5
5115 echo "$as_me:5115: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -s conftest$ac_exeext'
5118 { (eval echo "$as_me:5118: \"$ac_try\"") >&5
5121 echo "$as_me:5121: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_cv_func_gethostbyname=yes
5125 echo "$as_me: failed program was:" >&5
5126 cat conftest.$ac_ext >&5
5127 ac_cv_func_gethostbyname=no
5129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5131 echo "$as_me:5131: result: $ac_cv_func_gethostbyname" >&5
5132 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5133 if test $ac_cv_func_gethostbyname = yes; then
5137 echo "$as_me:5137: checking for gethostbyname in -lnsl" >&5
5138 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5139 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 ac_check_lib_save_LIBS=$LIBS
5144 cat >conftest.$ac_ext <<_ACEOF
5145 #line 5145 "configure"
5146 #include "confdefs.h"
5148 /* Override any gcc2 internal prototype to avoid an error. */
5152 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5154 char gethostbyname ();
5163 rm -f conftest.$ac_objext conftest$ac_exeext
5164 if { (eval echo "$as_me:5164: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>&5
5167 echo "$as_me:5167: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try='test -s conftest$ac_exeext'
5170 { (eval echo "$as_me:5170: \"$ac_try\"") >&5
5173 echo "$as_me:5173: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 ac_cv_lib_nsl_gethostbyname=yes
5177 echo "$as_me: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5179 ac_cv_lib_nsl_gethostbyname=no
5181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5182 LIBS=$ac_check_lib_save_LIBS
5184 echo "$as_me:5184: result: $ac_cv_lib_nsl_gethostbyname" >&5
5185 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5186 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5187 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
5192 echo "$as_me:5192: checking for gethostbyname" >&5
5193 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5194 if test "${ac_cv_func_gethostbyname+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 cat >conftest.$ac_ext <<_ACEOF
5198 #line 5198 "configure"
5199 #include "confdefs.h"
5200 /* System header to define __stub macros and hopefully few prototypes,
5201 which can conflict with char gethostbyname (); below. */
5203 /* Override any gcc2 internal prototype to avoid an error. */
5207 /* We use char because int might match the return type of a gcc2
5208 builtin and then its argument prototype would still apply. */
5209 char gethostbyname ();
5215 /* The GNU C library defines this for functions which it implements
5216 to always fail with ENOSYS. Some functions are actually named
5217 something starting with __ and the normal name is an alias. */
5218 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5228 rm -f conftest.$ac_objext conftest$ac_exeext
5229 if { (eval echo "$as_me:5229: \"$ac_link\"") >&5
5230 (eval $ac_link) 2>&5
5232 echo "$as_me:5232: \$? = $ac_status" >&5
5233 (exit $ac_status); } &&
5234 { ac_try='test -s conftest$ac_exeext'
5235 { (eval echo "$as_me:5235: \"$ac_try\"") >&5
5238 echo "$as_me:5238: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 ac_cv_func_gethostbyname=yes
5242 echo "$as_me: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5244 ac_cv_func_gethostbyname=no
5246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5248 echo "$as_me:5248: result: $ac_cv_func_gethostbyname" >&5
5249 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5250 if test $ac_cv_func_gethostbyname = yes; then
5254 echo "$as_me:5254: checking for gethostbyname in -lbind" >&5
5255 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
5256 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 ac_check_lib_save_LIBS=$LIBS
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line 5262 "configure"
5263 #include "confdefs.h"
5265 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5271 char gethostbyname ();
5280 rm -f conftest.$ac_objext conftest$ac_exeext
5281 if { (eval echo "$as_me:5281: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5284 echo "$as_me:5284: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:5287: \"$ac_try\"") >&5
5290 echo "$as_me:5290: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_lib_bind_gethostbyname=yes
5294 echo "$as_me: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5296 ac_cv_lib_bind_gethostbyname=no
5298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5299 LIBS=$ac_check_lib_save_LIBS
5301 echo "$as_me:5301: result: $ac_cv_lib_bind_gethostbyname" >&5
5302 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
5303 if test $ac_cv_lib_bind_gethostbyname = yes; then
5304 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5310 echo "$as_me:5310: checking for nanosleep" >&5
5311 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
5312 if test "${ac_cv_func_nanosleep+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5316 #line 5316 "configure"
5317 #include "confdefs.h"
5318 /* System header to define __stub macros and hopefully few prototypes,
5319 which can conflict with char nanosleep (); below. */
5321 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5333 /* The GNU C library defines this for functions which it implements
5334 to always fail with ENOSYS. Some functions are actually named
5335 something starting with __ and the normal name is an alias. */
5336 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
5346 rm -f conftest.$ac_objext conftest$ac_exeext
5347 if { (eval echo "$as_me:5347: \"$ac_link\"") >&5
5348 (eval $ac_link) 2>&5
5350 echo "$as_me:5350: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try='test -s conftest$ac_exeext'
5353 { (eval echo "$as_me:5353: \"$ac_try\"") >&5
5356 echo "$as_me:5356: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_func_nanosleep=yes
5360 echo "$as_me: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5362 ac_cv_func_nanosleep=no
5364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5366 echo "$as_me:5366: result: $ac_cv_func_nanosleep" >&5
5367 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
5368 if test $ac_cv_func_nanosleep = yes; then
5372 echo "$as_me:5372: checking for nanosleep in -lrt" >&5
5373 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
5374 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 ac_check_lib_save_LIBS=$LIBS
5379 cat >conftest.$ac_ext <<_ACEOF
5380 #line 5380 "configure"
5381 #include "confdefs.h"
5383 /* Override any gcc2 internal prototype to avoid an error. */
5387 /* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5398 rm -f conftest.$ac_objext conftest$ac_exeext
5399 if { (eval echo "$as_me:5399: \"$ac_link\"") >&5
5400 (eval $ac_link) 2>&5
5402 echo "$as_me:5402: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -s conftest$ac_exeext'
5405 { (eval echo "$as_me:5405: \"$ac_try\"") >&5
5408 echo "$as_me:5408: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_cv_lib_rt_nanosleep=yes
5412 echo "$as_me: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5414 ac_cv_lib_rt_nanosleep=no
5416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5417 LIBS=$ac_check_lib_save_LIBS
5419 echo "$as_me:5419: result: $ac_cv_lib_rt_nanosleep" >&5
5420 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
5421 if test $ac_cv_lib_rt_nanosleep = yes; then
5422 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
5424 echo "$as_me:5424: checking for nanosleep in -lposix4" >&5
5425 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
5426 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 ac_check_lib_save_LIBS=$LIBS
5430 LIBS="-lposix4 $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line 5432 "configure"
5433 #include "confdefs.h"
5435 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5450 rm -f conftest.$ac_objext conftest$ac_exeext
5451 if { (eval echo "$as_me:5451: \"$ac_link\"") >&5
5452 (eval $ac_link) 2>&5
5454 echo "$as_me:5454: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -s conftest$ac_exeext'
5457 { (eval echo "$as_me:5457: \"$ac_try\"") >&5
5460 echo "$as_me:5460: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_cv_lib_posix4_nanosleep=yes
5464 echo "$as_me: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5466 ac_cv_lib_posix4_nanosleep=no
5468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5469 LIBS=$ac_check_lib_save_LIBS
5471 echo "$as_me:5471: result: $ac_cv_lib_posix4_nanosleep" >&5
5472 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
5473 if test $ac_cv_lib_posix4_nanosleep = yes; then
5474 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
5481 if test x$have_nanosleep = x1; then
5483 cat >>confdefs.h <<\EOF
5484 #define HAVE_NANOSLEEP 1
5488 echo "$as_me:5488: checking for inet_aton" >&5
5489 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
5490 if test "${ac_cv_func_inet_aton+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 cat >conftest.$ac_ext <<_ACEOF
5494 #line 5494 "configure"
5495 #include "confdefs.h"
5496 /* System header to define __stub macros and hopefully few prototypes,
5497 which can conflict with char inet_aton (); below. */
5499 /* Override any gcc2 internal prototype to avoid an error. */
5503 /* We use char because int might match the return type of a gcc2
5504 builtin and then its argument prototype would still apply. */
5511 /* The GNU C library defines this for functions which it implements
5512 to always fail with ENOSYS. Some functions are actually named
5513 something starting with __ and the normal name is an alias. */
5514 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
5524 rm -f conftest.$ac_objext conftest$ac_exeext
5525 if { (eval echo "$as_me:5525: \"$ac_link\"") >&5
5526 (eval $ac_link) 2>&5
5528 echo "$as_me:5528: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -s conftest$ac_exeext'
5531 { (eval echo "$as_me:5531: \"$ac_try\"") >&5
5534 echo "$as_me:5534: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_cv_func_inet_aton=yes
5538 echo "$as_me: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5540 ac_cv_func_inet_aton=no
5542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5544 echo "$as_me:5544: result: $ac_cv_func_inet_aton" >&5
5545 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
5546 if test $ac_cv_func_inet_aton = yes; then
5550 echo "$as_me:5550: checking for inet_aton in -lresolv" >&5
5551 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5552 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 ac_check_lib_save_LIBS=$LIBS
5556 LIBS="-lresolv $LIBS"
5557 cat >conftest.$ac_ext <<_ACEOF
5558 #line 5558 "configure"
5559 #include "confdefs.h"
5561 /* Override any gcc2 internal prototype to avoid an error. */
5565 /* We use char because int might match the return type of a gcc2
5566 builtin and then its argument prototype would still apply. */
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (eval echo "$as_me:5577: \"$ac_link\"") >&5
5578 (eval $ac_link) 2>&5
5580 echo "$as_me:5580: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -s conftest$ac_exeext'
5583 { (eval echo "$as_me:5583: \"$ac_try\"") >&5
5586 echo "$as_me:5586: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5588 ac_cv_lib_resolv_inet_aton=yes
5590 echo "$as_me: failed program was:" >&5
5591 cat conftest.$ac_ext >&5
5592 ac_cv_lib_resolv_inet_aton=no
5594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5595 LIBS=$ac_check_lib_save_LIBS
5597 echo "$as_me:5597: result: $ac_cv_lib_resolv_inet_aton" >&5
5598 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5599 if test $ac_cv_lib_resolv_inet_aton = yes; then
5600 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
5605 echo "$as_me:5605: checking for textdomain" >&5
5606 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
5607 if test "${ac_cv_func_textdomain+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 cat >conftest.$ac_ext <<_ACEOF
5611 #line 5611 "configure"
5612 #include "confdefs.h"
5613 /* System header to define __stub macros and hopefully few prototypes,
5614 which can conflict with char textdomain (); below. */
5616 /* Override any gcc2 internal prototype to avoid an error. */
5620 /* We use char because int might match the return type of a gcc2
5621 builtin and then its argument prototype would still apply. */
5628 /* The GNU C library defines this for functions which it implements
5629 to always fail with ENOSYS. Some functions are actually named
5630 something starting with __ and the normal name is an alias. */
5631 #if defined (__stub_textdomain) || defined (__stub___textdomain)
5641 rm -f conftest.$ac_objext conftest$ac_exeext
5642 if { (eval echo "$as_me:5642: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>&5
5645 echo "$as_me:5645: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -s conftest$ac_exeext'
5648 { (eval echo "$as_me:5648: \"$ac_try\"") >&5
5651 echo "$as_me:5651: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_cv_func_textdomain=yes
5655 echo "$as_me: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5657 ac_cv_func_textdomain=no
5659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5661 echo "$as_me:5661: result: $ac_cv_func_textdomain" >&5
5662 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
5663 if test $ac_cv_func_textdomain = yes; then
5667 echo "$as_me:5667: checking for textdomain in -lintl" >&5
5668 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
5669 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 ac_check_lib_save_LIBS=$LIBS
5674 cat >conftest.$ac_ext <<_ACEOF
5675 #line 5675 "configure"
5676 #include "confdefs.h"
5678 /* Override any gcc2 internal prototype to avoid an error. */
5682 /* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5693 rm -f conftest.$ac_objext conftest$ac_exeext
5694 if { (eval echo "$as_me:5694: \"$ac_link\"") >&5
5695 (eval $ac_link) 2>&5
5697 echo "$as_me:5697: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -s conftest$ac_exeext'
5700 { (eval echo "$as_me:5700: \"$ac_try\"") >&5
5703 echo "$as_me:5703: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_cv_lib_intl_textdomain=yes
5707 echo "$as_me: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5709 ac_cv_lib_intl_textdomain=no
5711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5712 LIBS=$ac_check_lib_save_LIBS
5714 echo "$as_me:5714: result: $ac_cv_lib_intl_textdomain" >&5
5715 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
5716 if test $ac_cv_lib_intl_textdomain = yes; then
5717 save_LDFLAGS="${save_LDFLAGS} -lintl"
5723 echo "$as_me:5723: checking for getopt_long" >&5
5724 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
5725 if test "${ac_cv_func_getopt_long+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5729 #line 5729 "configure"
5730 #include "confdefs.h"
5731 /* System header to define __stub macros and hopefully few prototypes,
5732 which can conflict with char getopt_long (); below. */
5734 /* Override any gcc2 internal prototype to avoid an error. */
5738 /* We use char because int might match the return type of a gcc2
5739 builtin and then its argument prototype would still apply. */
5740 char getopt_long ();
5746 /* The GNU C library defines this for functions which it implements
5747 to always fail with ENOSYS. Some functions are actually named
5748 something starting with __ and the normal name is an alias. */
5749 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
5759 rm -f conftest.$ac_objext conftest$ac_exeext
5760 if { (eval echo "$as_me:5760: \"$ac_link\"") >&5
5761 (eval $ac_link) 2>&5
5763 echo "$as_me:5763: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -s conftest$ac_exeext'
5766 { (eval echo "$as_me:5766: \"$ac_try\"") >&5
5769 echo "$as_me:5769: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_cv_func_getopt_long=yes
5773 echo "$as_me: failed program was:" >&5
5774 cat conftest.$ac_ext >&5
5775 ac_cv_func_getopt_long=no
5777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5779 echo "$as_me:5779: result: $ac_cv_func_getopt_long" >&5
5780 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
5781 if test $ac_cv_func_getopt_long = yes; then
5783 cat >>confdefs.h <<\EOF
5784 #define HAVE_GETOPT_LONG 1
5788 # FreeBSD has a gnugetopt library for this:
5789 echo "$as_me:5789: checking for getopt_long in -lgnugetopt" >&5
5790 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5791 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 ac_check_lib_save_LIBS=$LIBS
5795 LIBS="-lgnugetopt $LIBS"
5796 cat >conftest.$ac_ext <<_ACEOF
5797 #line 5797 "configure"
5798 #include "confdefs.h"
5800 /* Override any gcc2 internal prototype to avoid an error. */
5804 /* We use char because int might match the return type of a gcc2
5805 builtin and then its argument prototype would still apply. */
5806 char getopt_long ();
5815 rm -f conftest.$ac_objext conftest$ac_exeext
5816 if { (eval echo "$as_me:5816: \"$ac_link\"") >&5
5817 (eval $ac_link) 2>&5
5819 echo "$as_me:5819: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -s conftest$ac_exeext'
5822 { (eval echo "$as_me:5822: \"$ac_try\"") >&5
5825 echo "$as_me:5825: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 ac_cv_lib_gnugetopt_getopt_long=yes
5829 echo "$as_me: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 ac_cv_lib_gnugetopt_getopt_long=no
5833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5834 LIBS=$ac_check_lib_save_LIBS
5836 echo "$as_me:5836: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5837 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5838 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5840 cat >>confdefs.h <<\EOF
5841 #define HAVE_GETOPT_LONG 1
5843 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
5850 echo "$as_me:5850: checking return type of signal handlers" >&5
5851 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5852 if test "${ac_cv_type_signal+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 cat >conftest.$ac_ext <<_ACEOF
5856 #line 5856 "configure"
5857 #include "confdefs.h"
5858 #include <sys/types.h>
5864 extern "C" void (*signal (int, void (*)(int)))(int);
5866 void (*signal ()) ();
5877 rm -f conftest.$ac_objext
5878 if { (eval echo "$as_me:5878: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>&5
5881 echo "$as_me:5881: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:5884: \"$ac_try\"") >&5
5887 echo "$as_me:5887: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_cv_type_signal=void
5891 echo "$as_me: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5893 ac_cv_type_signal=int
5895 rm -f conftest.$ac_objext conftest.$ac_ext
5897 echo "$as_me:5897: result: $ac_cv_type_signal" >&5
5898 echo "${ECHO_T}$ac_cv_type_signal" >&6
5900 cat >>confdefs.h <<EOF
5901 #define RETSIGTYPE $ac_cv_type_signal
5904 echo "$as_me:5904: checking for dlopen in -ldl" >&5
5905 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5906 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 ac_check_lib_save_LIBS=$LIBS
5911 cat >conftest.$ac_ext <<_ACEOF
5912 #line 5912 "configure"
5913 #include "confdefs.h"
5915 /* Override any gcc2 internal prototype to avoid an error. */
5919 /* We use char because int might match the return type of a gcc2
5920 builtin and then its argument prototype would still apply. */
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (eval echo "$as_me:5931: \"$ac_link\"") >&5
5932 (eval $ac_link) 2>&5
5934 echo "$as_me:5934: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -s conftest$ac_exeext'
5937 { (eval echo "$as_me:5937: \"$ac_try\"") >&5
5940 echo "$as_me:5940: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_cv_lib_dl_dlopen=yes
5944 echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 ac_cv_lib_dl_dlopen=no
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 LIBS=$ac_check_lib_save_LIBS
5951 echo "$as_me:5951: result: $ac_cv_lib_dl_dlopen" >&5
5952 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5953 if test $ac_cv_lib_dl_dlopen = yes; then
5954 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
5957 echo "$as_me:5957: checking for cos in -lm" >&5
5958 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
5959 if test "${ac_cv_lib_m_cos+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 ac_check_lib_save_LIBS=$LIBS
5964 cat >conftest.$ac_ext <<_ACEOF
5965 #line 5965 "configure"
5966 #include "confdefs.h"
5968 /* Override any gcc2 internal prototype to avoid an error. */
5972 /* We use char because int might match the return type of a gcc2
5973 builtin and then its argument prototype would still apply. */
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (eval echo "$as_me:5984: \"$ac_link\"") >&5
5985 (eval $ac_link) 2>&5
5987 echo "$as_me:5987: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -s conftest$ac_exeext'
5990 { (eval echo "$as_me:5990: \"$ac_try\"") >&5
5993 echo "$as_me:5993: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5997 echo "$as_me: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6002 LIBS=$ac_check_lib_save_LIBS
6004 echo "$as_me:6004: result: $ac_cv_lib_m_cos" >&5
6005 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
6006 if test $ac_cv_lib_m_cos = yes; then
6007 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
6008 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
6011 echo "$as_me:6011: checking for pow in -lm" >&5
6012 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
6013 if test "${ac_cv_lib_m_pow+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 ac_check_lib_save_LIBS=$LIBS
6018 cat >conftest.$ac_ext <<_ACEOF
6019 #line 6019 "configure"
6020 #include "confdefs.h"
6022 /* Override any gcc2 internal prototype to avoid an error. */
6026 /* We use char because int might match the return type of a gcc2
6027 builtin and then its argument prototype would still apply. */
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (eval echo "$as_me:6038: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>&5
6041 echo "$as_me:6041: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try='test -s conftest$ac_exeext'
6044 { (eval echo "$as_me:6044: \"$ac_try\"") >&5
6047 echo "$as_me:6047: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6051 echo "$as_me: failed program was:" >&5
6052 cat conftest.$ac_ext >&5
6055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$ac_check_lib_save_LIBS
6058 echo "$as_me:6058: result: $ac_cv_lib_m_pow" >&5
6059 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
6060 if test $ac_cv_lib_m_pow = yes; then
6061 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
6062 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
6063 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
6064 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
6069 if test "x${THREAD_LIB}" = xerror; then
6070 echo "$as_me:6070: checking for pthread_attr_init in -lpthread" >&5
6071 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
6072 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 ac_check_lib_save_LIBS=$LIBS
6076 LIBS="-lpthread $LIBS"
6077 cat >conftest.$ac_ext <<_ACEOF
6078 #line 6078 "configure"
6079 #include "confdefs.h"
6081 /* Override any gcc2 internal prototype to avoid an error. */
6085 /* We use char because int might match the return type of a gcc2
6086 builtin and then its argument prototype would still apply. */
6087 char pthread_attr_init ();
6091 pthread_attr_init ();
6096 rm -f conftest.$ac_objext conftest$ac_exeext
6097 if { (eval echo "$as_me:6097: \"$ac_link\"") >&5
6098 (eval $ac_link) 2>&5
6100 echo "$as_me:6100: \$? = $ac_status" >&5
6101 (exit $ac_status); } &&
6102 { ac_try='test -s conftest$ac_exeext'
6103 { (eval echo "$as_me:6103: \"$ac_try\"") >&5
6106 echo "$as_me:6106: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_lib_pthread_pthread_attr_init=yes
6110 echo "$as_me: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6112 ac_cv_lib_pthread_pthread_attr_init=no
6114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6115 LIBS=$ac_check_lib_save_LIBS
6117 echo "$as_me:6117: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6118 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
6119 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6120 THREAD_LIB="-lpthread"
6124 if test "x${THREAD_LIB}" = xerror; then
6125 echo "$as_me:6125: checking for pthread_attr_init in -lpthreads" >&5
6126 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
6127 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_check_lib_save_LIBS=$LIBS
6131 LIBS="-lpthreads $LIBS"
6132 cat >conftest.$ac_ext <<_ACEOF
6133 #line 6133 "configure"
6134 #include "confdefs.h"
6136 /* Override any gcc2 internal prototype to avoid an error. */
6140 /* We use char because int might match the return type of a gcc2
6141 builtin and then its argument prototype would still apply. */
6142 char pthread_attr_init ();
6146 pthread_attr_init ();
6151 rm -f conftest.$ac_objext conftest$ac_exeext
6152 if { (eval echo "$as_me:6152: \"$ac_link\"") >&5
6153 (eval $ac_link) 2>&5
6155 echo "$as_me:6155: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try='test -s conftest$ac_exeext'
6158 { (eval echo "$as_me:6158: \"$ac_try\"") >&5
6161 echo "$as_me:6161: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_lib_pthreads_pthread_attr_init=yes
6165 echo "$as_me: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6167 ac_cv_lib_pthreads_pthread_attr_init=no
6169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6170 LIBS=$ac_check_lib_save_LIBS
6172 echo "$as_me:6172: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
6173 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
6174 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
6175 THREAD_LIB="-lpthreads"
6179 if test "x${THREAD_LIB}" = xerror; then
6180 echo "$as_me:6180: checking for pthread_attr_init in -lc_r" >&5
6181 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
6182 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 ac_check_lib_save_LIBS=$LIBS
6187 cat >conftest.$ac_ext <<_ACEOF
6188 #line 6188 "configure"
6189 #include "confdefs.h"
6191 /* Override any gcc2 internal prototype to avoid an error. */
6195 /* We use char because int might match the return type of a gcc2
6196 builtin and then its argument prototype would still apply. */
6197 char pthread_attr_init ();
6201 pthread_attr_init ();
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (eval echo "$as_me:6207: \"$ac_link\"") >&5
6208 (eval $ac_link) 2>&5
6210 echo "$as_me:6210: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -s conftest$ac_exeext'
6213 { (eval echo "$as_me:6213: \"$ac_try\"") >&5
6216 echo "$as_me:6216: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_lib_c_r_pthread_attr_init=yes
6220 echo "$as_me: failed program was:" >&5
6221 cat conftest.$ac_ext >&5
6222 ac_cv_lib_c_r_pthread_attr_init=no
6224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6225 LIBS=$ac_check_lib_save_LIBS
6227 echo "$as_me:6227: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
6228 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
6229 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
6234 if test "x${THREAD_LIB}" = xerror; then
6235 echo "$as_me:6235: checking for pthread_attr_init" >&5
6236 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
6237 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6241 #line 6241 "configure"
6242 #include "confdefs.h"
6243 /* System header to define __stub macros and hopefully few prototypes,
6244 which can conflict with char pthread_attr_init (); below. */
6246 /* Override any gcc2 internal prototype to avoid an error. */
6250 /* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6252 char pthread_attr_init ();
6258 /* The GNU C library defines this for functions which it implements
6259 to always fail with ENOSYS. Some functions are actually named
6260 something starting with __ and the normal name is an alias. */
6261 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
6264 f = pthread_attr_init;
6271 rm -f conftest.$ac_objext conftest$ac_exeext
6272 if { (eval echo "$as_me:6272: \"$ac_link\"") >&5
6273 (eval $ac_link) 2>&5
6275 echo "$as_me:6275: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -s conftest$ac_exeext'
6278 { (eval echo "$as_me:6278: \"$ac_try\"") >&5
6281 echo "$as_me:6281: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_func_pthread_attr_init=yes
6285 echo "$as_me: failed program was:" >&5
6286 cat conftest.$ac_ext >&5
6287 ac_cv_func_pthread_attr_init=no
6289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6291 echo "$as_me:6291: result: $ac_cv_func_pthread_attr_init" >&5
6292 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
6297 echo "$as_me:6297: checking for cthread_fork in -lthreads" >&5
6298 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
6299 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 ac_check_lib_save_LIBS=$LIBS
6303 LIBS="-lthreads $LIBS"
6304 cat >conftest.$ac_ext <<_ACEOF
6305 #line 6305 "configure"
6306 #include "confdefs.h"
6308 /* Override any gcc2 internal prototype to avoid an error. */
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6314 char cthread_fork ();
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (eval echo "$as_me:6324: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>&5
6327 echo "$as_me:6327: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -s conftest$ac_exeext'
6330 { (eval echo "$as_me:6330: \"$ac_try\"") >&5
6333 echo "$as_me:6333: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_lib_threads_cthread_fork=yes
6337 echo "$as_me: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6339 ac_cv_lib_threads_cthread_fork=no
6341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6342 LIBS=$ac_check_lib_save_LIBS
6344 echo "$as_me:6344: result: $ac_cv_lib_threads_cthread_fork" >&5
6345 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
6346 if test $ac_cv_lib_threads_cthread_fork = yes; then
6347 THREAD_LIB="-lthreads"
6350 cat >conftest.$ac_ext <<_ACEOF
6351 #line 6351 "configure"
6352 #include "confdefs.h"
6353 #include <pthread.h>
6356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6357 egrep "pthread_cond_t" >/dev/null 2>&1; then
6359 cat >>confdefs.h <<\EOF
6360 #define PTHREAD_COND_T_IN_PTHREAD_H 1
6366 cat >conftest.$ac_ext <<_ACEOF
6367 #line 6367 "configure"
6368 #include "confdefs.h"
6369 #include <strings.h>
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373 egrep "strncasecmp" >/dev/null 2>&1; then
6375 cat >>confdefs.h <<\EOF
6376 #define STRNCASECMP_IN_STRINGS_H 1
6382 for ac_header in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 echo "$as_me:6385: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6391 #line 6391 "configure"
6392 #include "confdefs.h"
6393 #include <$ac_header>
6395 if { (eval echo "$as_me:6395: \"$ac_cpp conftest.$ac_ext\"") >&5
6396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6398 egrep -v '^ *\+' conftest.er1 >conftest.err
6400 cat conftest.err >&5
6401 echo "$as_me:6401: \$? = $ac_status" >&5
6402 (exit $ac_status); } >/dev/null; then
6403 if test -s conftest.err; then
6404 ac_cpp_err=$ac_c_preproc_warn_flag
6411 if test -z "$ac_cpp_err"; then
6412 eval "$as_ac_Header=yes"
6414 echo "$as_me: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 eval "$as_ac_Header=no"
6418 rm -f conftest.err conftest.$ac_ext
6420 echo "$as_me:6420: result: `eval echo '${'$as_ac_Header'}'`" >&5
6421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423 cat >>confdefs.h <<EOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6430 for ac_header in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
6432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6433 echo "$as_me:6433: checking for $ac_header" >&5
6434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 cat >conftest.$ac_ext <<_ACEOF
6439 #line 6439 "configure"
6440 #include "confdefs.h"
6441 #include <$ac_header>
6443 if { (eval echo "$as_me:6443: \"$ac_cpp conftest.$ac_ext\"") >&5
6444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6446 egrep -v '^ *\+' conftest.er1 >conftest.err
6448 cat conftest.err >&5
6449 echo "$as_me:6449: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null; then
6451 if test -s conftest.err; then
6452 ac_cpp_err=$ac_c_preproc_warn_flag
6459 if test -z "$ac_cpp_err"; then
6460 eval "$as_ac_Header=yes"
6462 echo "$as_me: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6464 eval "$as_ac_Header=no"
6466 rm -f conftest.err conftest.$ac_ext
6468 echo "$as_me:6468: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<EOF
6472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6478 for ac_header in dlfcn.h image.h
6480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6481 echo "$as_me:6481: checking for $ac_header" >&5
6482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 cat >conftest.$ac_ext <<_ACEOF
6487 #line 6487 "configure"
6488 #include "confdefs.h"
6489 #include <$ac_header>
6491 if { (eval echo "$as_me:6491: \"$ac_cpp conftest.$ac_ext\"") >&5
6492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6494 egrep -v '^ *\+' conftest.er1 >conftest.err
6496 cat conftest.err >&5
6497 echo "$as_me:6497: \$? = $ac_status" >&5
6498 (exit $ac_status); } >/dev/null; then
6499 if test -s conftest.err; then
6500 ac_cpp_err=$ac_c_preproc_warn_flag
6507 if test -z "$ac_cpp_err"; then
6508 eval "$as_ac_Header=yes"
6510 echo "$as_me: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6512 eval "$as_ac_Header=no"
6514 rm -f conftest.err conftest.$ac_ext
6516 echo "$as_me:6516: result: `eval echo '${'$as_ac_Header'}'`" >&5
6517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6519 cat >>confdefs.h <<EOF
6520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6526 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
6528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6529 echo "$as_me:6529: checking for $ac_header" >&5
6530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 cat >conftest.$ac_ext <<_ACEOF
6535 #line 6535 "configure"
6536 #include "confdefs.h"
6537 #include <$ac_header>
6539 if { (eval echo "$as_me:6539: \"$ac_cpp conftest.$ac_ext\"") >&5
6540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6542 egrep -v '^ *\+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:6545: \$? = $ac_status" >&5
6546 (exit $ac_status); } >/dev/null; then
6547 if test -s conftest.err; then
6548 ac_cpp_err=$ac_c_preproc_warn_flag
6555 if test -z "$ac_cpp_err"; then
6556 eval "$as_ac_Header=yes"
6558 echo "$as_me: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6560 eval "$as_ac_Header=no"
6562 rm -f conftest.err conftest.$ac_ext
6564 echo "$as_me:6564: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6567 cat >>confdefs.h <<EOF
6568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6574 for ac_header in machine/param.h sys/shm.h
6576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6577 echo "$as_me:6577: checking for $ac_header" >&5
6578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line 6583 "configure"
6584 #include "confdefs.h"
6585 #include <$ac_header>
6587 if { (eval echo "$as_me:6587: \"$ac_cpp conftest.$ac_ext\"") >&5
6588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6590 egrep -v '^ *\+' conftest.er1 >conftest.err
6592 cat conftest.err >&5
6593 echo "$as_me:6593: \$? = $ac_status" >&5
6594 (exit $ac_status); } >/dev/null; then
6595 if test -s conftest.err; then
6596 ac_cpp_err=$ac_c_preproc_warn_flag
6603 if test -z "$ac_cpp_err"; then
6604 eval "$as_ac_Header=yes"
6606 echo "$as_me: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6608 eval "$as_ac_Header=no"
6610 rm -f conftest.err conftest.$ac_ext
6612 echo "$as_me:6612: result: `eval echo '${'$as_ac_Header'}'`" >&5
6613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6615 cat >>confdefs.h <<EOF
6616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6622 for ac_header in linux/version.h
6624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 echo "$as_me:6625: checking for $ac_header" >&5
6626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 cat >conftest.$ac_ext <<_ACEOF
6631 #line 6631 "configure"
6632 #include "confdefs.h"
6633 #include <$ac_header>
6635 if { (eval echo "$as_me:6635: \"$ac_cpp conftest.$ac_ext\"") >&5
6636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6638 egrep -v '^ *\+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:6641: \$? = $ac_status" >&5
6642 (exit $ac_status); } >/dev/null; then
6643 if test -s conftest.err; then
6644 ac_cpp_err=$ac_c_preproc_warn_flag
6651 if test -z "$ac_cpp_err"; then
6652 eval "$as_ac_Header=yes"
6654 echo "$as_me: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6656 eval "$as_ac_Header=no"
6658 rm -f conftest.err conftest.$ac_ext
6660 echo "$as_me:6660: result: `eval echo '${'$as_ac_Header'}'`" >&5
6661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6663 cat >>confdefs.h <<EOF
6664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6670 echo "$as_me:6670: checking whether time.h and sys/time.h may both be included" >&5
6671 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6672 if test "${ac_cv_header_time+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 cat >conftest.$ac_ext <<_ACEOF
6676 #line 6676 "configure"
6677 #include "confdefs.h"
6678 #include <sys/types.h>
6679 #include <sys/time.h>
6685 if ((struct tm *) 0)
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:6692: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>&5
6695 echo "$as_me:6695: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:6698: \"$ac_try\"") >&5
6701 echo "$as_me:6701: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_header_time=yes
6705 echo "$as_me: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6707 ac_cv_header_time=no
6709 rm -f conftest.$ac_objext conftest.$ac_ext
6711 echo "$as_me:6711: result: $ac_cv_header_time" >&5
6712 echo "${ECHO_T}$ac_cv_header_time" >&6
6713 if test $ac_cv_header_time = yes; then
6715 cat >>confdefs.h <<\EOF
6716 #define TIME_WITH_SYS_TIME 1
6721 cat >conftest.$ac_ext <<_ACEOF
6722 #line 6722 "configure"
6723 #include "confdefs.h"
6727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6728 egrep "nanosleep" >/dev/null 2>&1; then
6730 cat >>confdefs.h <<\EOF
6731 #define HAVE_DECL_NANOSLEEP 1
6737 cat >conftest.$ac_ext <<_ACEOF
6738 #line 6738 "configure"
6739 #include "confdefs.h"
6740 #include <sys/time.h>
6743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6744 egrep "timespec" >/dev/null 2>&1; then
6746 cat >>confdefs.h <<\EOF
6747 #define HAVE_STRUCT_TIMESPEC 1
6753 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
6755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6756 echo "$as_me:6756: checking for $ac_header" >&5
6757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 cat >conftest.$ac_ext <<_ACEOF
6762 #line 6762 "configure"
6763 #include "confdefs.h"
6764 #include <$ac_header>
6766 if { (eval echo "$as_me:6766: \"$ac_cpp conftest.$ac_ext\"") >&5
6767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6769 egrep -v '^ *\+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 echo "$as_me:6772: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev/null; then
6774 if test -s conftest.err; then
6775 ac_cpp_err=$ac_c_preproc_warn_flag
6782 if test -z "$ac_cpp_err"; then
6783 eval "$as_ac_Header=yes"
6785 echo "$as_me: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 eval "$as_ac_Header=no"
6789 rm -f conftest.err conftest.$ac_ext
6791 echo "$as_me:6791: result: `eval echo '${'$as_ac_Header'}'`" >&5
6792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6794 cat >>confdefs.h <<EOF
6795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6801 if test x$SYS != xmingw32
6803 if test x$x_includes = xNONE; then
6804 x_includes=/usr/X11R6/include
6806 if test x$x_libraries = xNONE; then
6807 x_libraries=/usr/X11R6/lib
6809 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6811 for ac_header in X11/extensions/dpms.h
6813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6814 echo "$as_me:6814: checking for $ac_header" >&5
6815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 cat >conftest.$ac_ext <<_ACEOF
6820 #line 6820 "configure"
6821 #include "confdefs.h"
6822 #include <$ac_header>
6824 if { (eval echo "$as_me:6824: \"$ac_cpp conftest.$ac_ext\"") >&5
6825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827 egrep -v '^ *\+' conftest.er1 >conftest.err
6829 cat conftest.err >&5
6830 echo "$as_me:6830: \$? = $ac_status" >&5
6831 (exit $ac_status); } >/dev/null; then
6832 if test -s conftest.err; then
6833 ac_cpp_err=$ac_c_preproc_warn_flag
6840 if test -z "$ac_cpp_err"; then
6841 eval "$as_ac_Header=yes"
6843 echo "$as_me: failed program was:" >&5
6844 cat conftest.$ac_ext >&5
6845 eval "$as_ac_Header=no"
6847 rm -f conftest.err conftest.$ac_ext
6849 echo "$as_me:6849: result: `eval echo '${'$as_ac_Header'}'`" >&5
6850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6852 cat >>confdefs.h <<EOF
6853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6856 cat >conftest.$ac_ext <<_ACEOF
6857 #line 6857 "configure"
6858 #include "confdefs.h"
6859 #include <X11/extensions/dpms.h>
6862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6863 egrep "DPMSInfo" >/dev/null 2>&1; then
6865 cat >>confdefs.h <<\EOF
6866 #define DPMSINFO_IN_DPMS_H 1
6875 CPPFLAGS="$save_CPPFLAGS"
6878 echo "$as_me:6878: checking for ntohl in sys/param.h" >&5
6879 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
6880 if test "${ac_cv_c_ntohl_sys_param_h+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 CFLAGS="${save_CFLAGS} -Wall -Werror"
6884 cat >conftest.$ac_ext <<_ACEOF
6885 #line 6885 "configure"
6886 #include "confdefs.h"
6887 #include <sys/param.h>
6891 void foo() { int meuh; ntohl(meuh); }
6896 rm -f conftest.$ac_objext
6897 if { (eval echo "$as_me:6897: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>&5
6900 echo "$as_me:6900: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -s conftest.$ac_objext'
6903 { (eval echo "$as_me:6903: \"$ac_try\"") >&5
6906 echo "$as_me:6906: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 ac_cv_c_ntohl_sys_param_h=yes
6910 echo "$as_me: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6912 ac_cv_c_ntohl_sys_param_h=no
6914 rm -f conftest.$ac_objext conftest.$ac_ext
6916 echo "$as_me:6916: result: $ac_cv_c_ntohl_sys_param_h" >&5
6917 echo "${ECHO_T}$ac_cv_c_ntohl_sys_param_h" >&6
6918 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
6920 cat >>confdefs.h <<\EOF
6921 #define NTOHL_IN_SYS_PARAM_H 1
6926 echo "$as_me:6926: checking if \$CC accepts -finline-limit" >&5
6927 echo $ECHO_N "checking if \$CC accepts -finline-limit... $ECHO_C" >&6
6928 if test "${ac_cv_c_inline_limit+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 CFLAGS="${save_CFLAGS} -finline-limit-30000"
6932 cat >conftest.$ac_ext <<_ACEOF
6933 #line 6933 "configure"
6934 #include "confdefs.h"
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:6945: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>&5
6948 echo "$as_me:6948: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -s conftest.$ac_objext'
6951 { (eval echo "$as_me:6951: \"$ac_try\"") >&5
6954 echo "$as_me:6954: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 ac_cv_c_inline_limit=yes
6958 echo "$as_me: failed program was:" >&5
6959 cat conftest.$ac_ext >&5
6960 ac_cv_c_inline_limit=no
6962 rm -f conftest.$ac_objext conftest.$ac_ext
6964 echo "$as_me:6964: result: $ac_cv_c_inline_limit" >&5
6965 echo "${ECHO_T}$ac_cv_c_inline_limit" >&6
6966 if test x"$ac_cv_c_inline_limit" != x"no"; then
6967 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
6970 echo "$as_me:6970: checking if \$CC accepts -Wall -Winline" >&5
6971 echo $ECHO_N "checking if \$CC accepts -Wall -Winline... $ECHO_C" >&6
6972 if test "${ac_cv_c_Wall_Winline+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 CFLAGS="${save_CFLAGS} -Wall -Winline"
6976 cat >conftest.$ac_ext <<_ACEOF
6977 #line 6977 "configure"
6978 #include "confdefs.h"
6988 rm -f conftest.$ac_objext
6989 if { (eval echo "$as_me:6989: \"$ac_compile\"") >&5
6990 (eval $ac_compile) 2>&5
6992 echo "$as_me:6992: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -s conftest.$ac_objext'
6995 { (eval echo "$as_me:6995: \"$ac_try\"") >&5
6998 echo "$as_me:6998: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_cv_c_Wall_Winline=yes
7002 echo "$as_me: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7004 ac_cv_c_Wall_Winline=no
7006 rm -f conftest.$ac_objext conftest.$ac_ext
7008 echo "$as_me:7008: result: $ac_cv_c_Wall_Winline" >&5
7009 echo "${ECHO_T}$ac_cv_c_Wall_Winline" >&6
7010 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
7011 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
7013 echo "$as_me:7013: checking if \$CC accepts -wall -winline" >&5
7014 echo $ECHO_N "checking if \$CC accepts -wall -winline... $ECHO_C" >&6
7015 if test "${ac_cv_c_wall_winline+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 CFLAGS="${save_CFLAGS} -wall -winline"
7019 cat >conftest.$ac_ext <<_ACEOF
7020 #line 7020 "configure"
7021 #include "confdefs.h"
7031 rm -f conftest.$ac_objext
7032 if { (eval echo "$as_me:7032: \"$ac_compile\"") >&5
7033 (eval $ac_compile) 2>&5
7035 echo "$as_me:7035: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try='test -s conftest.$ac_objext'
7038 { (eval echo "$as_me:7038: \"$ac_try\"") >&5
7041 echo "$as_me:7041: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_c_wall_winline=yes
7045 echo "$as_me: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 ac_cv_c_wall_winline=no
7049 rm -f conftest.$ac_objext conftest.$ac_ext
7051 echo "$as_me:7051: result: $ac_cv_c_wall_winline" >&5
7052 echo "${ECHO_T}$ac_cv_c_wall_winline" >&6
7053 if test x"$ac_cv_c_wall_winline" != x"no"; then
7054 save_CFLAGS="${save_CFLAGS} -wall -winline"
7058 echo "$as_me:7058: checking if \$CC accepts -pipe" >&5
7059 echo $ECHO_N "checking if \$CC accepts -pipe... $ECHO_C" >&6
7060 if test "${ac_cv_c_pipe+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 CFLAGS="${save_CFLAGS} -pipe"
7064 cat >conftest.$ac_ext <<_ACEOF
7065 #line 7065 "configure"
7066 #include "confdefs.h"
7076 rm -f conftest.$ac_objext
7077 if { (eval echo "$as_me:7077: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>&5
7080 echo "$as_me:7080: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -s conftest.$ac_objext'
7083 { (eval echo "$as_me:7083: \"$ac_try\"") >&5
7086 echo "$as_me:7086: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7090 echo "$as_me: failed program was:" >&5
7091 cat conftest.$ac_ext >&5
7094 rm -f conftest.$ac_objext conftest.$ac_ext
7096 echo "$as_me:7096: result: $ac_cv_c_pipe" >&5
7097 echo "${ECHO_T}$ac_cv_c_pipe" >&6
7098 if test x"$ac_cv_c_pipe" != x"no"; then
7099 save_CFLAGS="${save_CFLAGS} -pipe"
7102 echo "$as_me:7102: checking if \$CC accepts -O3" >&5
7103 echo $ECHO_N "checking if \$CC accepts -O3... $ECHO_C" >&6
7104 if test "${ac_cv_c_o3+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 CFLAGS="${save_CFLAGS} -O3"
7108 cat >conftest.$ac_ext <<_ACEOF
7109 #line 7109 "configure"
7110 #include "confdefs.h"
7120 rm -f conftest.$ac_objext
7121 if { (eval echo "$as_me:7121: \"$ac_compile\"") >&5
7122 (eval $ac_compile) 2>&5
7124 echo "$as_me:7124: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -s conftest.$ac_objext'
7127 { (eval echo "$as_me:7127: \"$ac_try\"") >&5
7130 echo "$as_me:7130: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7134 echo "$as_me: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7138 rm -f conftest.$ac_objext conftest.$ac_ext
7140 echo "$as_me:7140: result: $ac_cv_c_o3" >&5
7141 echo "${ECHO_T}$ac_cv_c_o3" >&6
7142 if test x"$ac_cv_c_o3" != x"no"; then
7143 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
7145 echo "$as_me:7145: checking if \$CC accepts -O2" >&5
7146 echo $ECHO_N "checking if \$CC accepts -O2... $ECHO_C" >&6
7147 if test "${ac_cv_c_o2+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 CFLAGS="${save_CFLAGS} -O2"
7151 cat >conftest.$ac_ext <<_ACEOF
7152 #line 7152 "configure"
7153 #include "confdefs.h"
7163 rm -f conftest.$ac_objext
7164 if { (eval echo "$as_me:7164: \"$ac_compile\"") >&5
7165 (eval $ac_compile) 2>&5
7167 echo "$as_me:7167: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try='test -s conftest.$ac_objext'
7170 { (eval echo "$as_me:7170: \"$ac_try\"") >&5
7173 echo "$as_me:7173: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7177 echo "$as_me: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7181 rm -f conftest.$ac_objext conftest.$ac_ext
7183 echo "$as_me:7183: result: $ac_cv_c_o2" >&5
7184 echo "${ECHO_T}$ac_cv_c_o2" >&6
7185 if test x"$ac_cv_c_o2" != x"no"; then
7186 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
7188 echo "$as_me:7188: checking if \$CC accepts -O" >&5
7189 echo $ECHO_N "checking if \$CC accepts -O... $ECHO_C" >&6
7190 if test "${ac_cv_c_o+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 CFLAGS="${save_CFLAGS} -O"
7194 cat >conftest.$ac_ext <<_ACEOF
7195 #line 7195 "configure"
7196 #include "confdefs.h"
7206 rm -f conftest.$ac_objext
7207 if { (eval echo "$as_me:7207: \"$ac_compile\"") >&5
7208 (eval $ac_compile) 2>&5
7210 echo "$as_me:7210: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:7213: \"$ac_try\"") >&5
7216 echo "$as_me:7216: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7220 echo "$as_me: failed program was:" >&5
7221 cat conftest.$ac_ext >&5
7224 rm -f conftest.$ac_objext conftest.$ac_ext
7226 echo "$as_me:7226: result: $ac_cv_c_o" >&5
7227 echo "${ECHO_T}$ac_cv_c_o" >&6
7228 if test x"$ac_cv_c_o" != x"no"; then
7229 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
7234 echo "$as_me:7234: checking if \$CC accepts -ffast-math" >&5
7235 echo $ECHO_N "checking if \$CC accepts -ffast-math... $ECHO_C" >&6
7236 if test "${ac_cv_c_fast_math+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 CFLAGS="${save_CFLAGS} -ffast-math"
7240 cat >conftest.$ac_ext <<_ACEOF
7241 #line 7241 "configure"
7242 #include "confdefs.h"
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:7253: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>&5
7256 echo "$as_me:7256: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try='test -s conftest.$ac_objext'
7259 { (eval echo "$as_me:7259: \"$ac_try\"") >&5
7262 echo "$as_me:7262: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_c_fast_math=yes
7266 echo "$as_me: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7268 ac_cv_c_fast_math=no
7270 rm -f conftest.$ac_objext conftest.$ac_ext
7272 echo "$as_me:7272: result: $ac_cv_c_fast_math" >&5
7273 echo "${ECHO_T}$ac_cv_c_fast_math" >&6
7274 if test x"$ac_cv_c_fast_math" != x"no"; then
7275 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
7278 echo "$as_me:7278: checking if \$CC accepts -funroll-loops" >&5
7279 echo $ECHO_N "checking if \$CC accepts -funroll-loops... $ECHO_C" >&6
7280 if test "${ac_cv_c_unroll_loops+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 CFLAGS="${save_CFLAGS} -funroll-loops"
7284 cat >conftest.$ac_ext <<_ACEOF
7285 #line 7285 "configure"
7286 #include "confdefs.h"
7296 rm -f conftest.$ac_objext
7297 if { (eval echo "$as_me:7297: \"$ac_compile\"") >&5
7298 (eval $ac_compile) 2>&5
7300 echo "$as_me:7300: \$? = $ac_status" >&5
7301 (exit $ac_status); } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:7303: \"$ac_try\"") >&5
7306 echo "$as_me:7306: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_c_unroll_loops=yes
7310 echo "$as_me: failed program was:" >&5
7311 cat conftest.$ac_ext >&5
7312 ac_cv_c_unroll_loops=no
7314 rm -f conftest.$ac_objext conftest.$ac_ext
7316 echo "$as_me:7316: result: $ac_cv_c_unroll_loops" >&5
7317 echo "${ECHO_T}$ac_cv_c_unroll_loops" >&6
7318 if test x"$ac_cv_c_unroll_loops" != x"no"; then
7319 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
7322 echo "$as_me:7322: checking if \$CC accepts -fomit-frame-pointer" >&5
7323 echo $ECHO_N "checking if \$CC accepts -fomit-frame-pointer... $ECHO_C" >&6
7324 if test "${ac_cv_c_omit_frame_pointer+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
7328 cat >conftest.$ac_ext <<_ACEOF
7329 #line 7329 "configure"
7330 #include "confdefs.h"
7340 rm -f conftest.$ac_objext
7341 if { (eval echo "$as_me:7341: \"$ac_compile\"") >&5
7342 (eval $ac_compile) 2>&5
7344 echo "$as_me:7344: \$? = $ac_status" >&5
7345 (exit $ac_status); } &&
7346 { ac_try='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:7347: \"$ac_try\"") >&5
7350 echo "$as_me:7350: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_cv_c_omit_frame_pointer=yes
7354 echo "$as_me: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7356 ac_cv_c_omit_frame_pointer=no
7358 rm -f conftest.$ac_objext conftest.$ac_ext
7360 echo "$as_me:7360: result: $ac_cv_c_omit_frame_pointer" >&5
7361 echo "${ECHO_T}$ac_cv_c_omit_frame_pointer" >&6
7362 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
7363 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
7366 if test x$SYS = xmingw32
7368 echo "$as_me:7368: checking if \$CC accepts -mms-bitfields" >&5
7369 echo $ECHO_N "checking if \$CC accepts -mms-bitfields... $ECHO_C" >&6
7370 if test "${ac_cv_c_mms_bitfields+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 CFLAGS="${save_CFLAGS} -mms-bitfields"
7374 cat >conftest.$ac_ext <<_ACEOF
7375 #line 7375 "configure"
7376 #include "confdefs.h"
7386 rm -f conftest.$ac_objext
7387 if { (eval echo "$as_me:7387: \"$ac_compile\"") >&5
7388 (eval $ac_compile) 2>&5
7390 echo "$as_me:7390: \$? = $ac_status" >&5
7391 (exit $ac_status); } &&
7392 { ac_try='test -s conftest.$ac_objext'
7393 { (eval echo "$as_me:7393: \"$ac_try\"") >&5
7396 echo "$as_me:7396: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7398 ac_cv_c_mms_bitfields=yes
7400 echo "$as_me: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7402 ac_cv_c_mms_bitfields=no
7404 rm -f conftest.$ac_objext conftest.$ac_ext
7406 echo "$as_me:7406: result: $ac_cv_c_mms_bitfields" >&5
7407 echo "${ECHO_T}$ac_cv_c_mms_bitfields" >&6
7408 if test x"$ac_cv_c_mms_bitfields" != x"no"; then
7409 save_CFLAGS="${save_CFLAGS} -mms-bitfields"
7410 plugins_CFLAGS="${plugins_CFLAGS} -mms-bitfields"
7412 save_CFLAGS="${save_CFLAGS} -fnative-struct"
7413 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
7417 echo "$as_me:7417: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
7418 echo $ECHO_N "checking if \$CC accepts -bundle -undefined error -lcc_dynamic... $ECHO_C" >&6
7419 if test "${ac_cv_ld_darwin+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
7423 cat >conftest.$ac_ext <<_ACEOF
7424 #line 7424 "configure"
7425 #include "confdefs.h"
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:7436: \"$ac_compile\"") >&5
7437 (eval $ac_compile) 2>&5
7439 echo "$as_me:7439: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try='test -s conftest.$ac_objext'
7442 { (eval echo "$as_me:7442: \"$ac_try\"") >&5
7445 echo "$as_me:7445: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7449 echo "$as_me: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7453 rm -f conftest.$ac_objext conftest.$ac_ext
7455 echo "$as_me:7455: result: $ac_cv_ld_darwin" >&5
7456 echo "${ECHO_T}$ac_cv_ld_darwin" >&6
7457 if test x"$ac_cv_ld_darwin" != x"no"; then
7458 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
7461 echo "$as_me:7461: checking if \$CC accepts -shared" >&5
7462 echo $ECHO_N "checking if \$CC accepts -shared... $ECHO_C" >&6
7463 if test "${ac_cv_ld_plugins+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 CFLAGS="${save_CFLAGS} -shared"
7467 cat >conftest.$ac_ext <<_ACEOF
7468 #line 7468 "configure"
7469 #include "confdefs.h"
7479 rm -f conftest.$ac_objext
7480 if { (eval echo "$as_me:7480: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>&5
7483 echo "$as_me:7483: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -s conftest.$ac_objext'
7486 { (eval echo "$as_me:7486: \"$ac_try\"") >&5
7489 echo "$as_me:7489: \$? = $ac_status" >&5
7490 (exit $ac_status); }; }; then
7491 ac_cv_ld_plugins=yes
7493 echo "$as_me: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7497 rm -f conftest.$ac_objext conftest.$ac_ext
7499 echo "$as_me:7499: result: $ac_cv_ld_plugins" >&5
7500 echo "${ECHO_T}$ac_cv_ld_plugins" >&6
7501 if test x"$ac_cv_ld_plugins" != x"no"; then
7502 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
7505 echo "$as_me:7505: checking for variadic cpp macros" >&5
7506 echo $ECHO_N "checking for variadic cpp macros... $ECHO_C" >&6
7507 if test "${ac_cv_cpp_variadic_macros+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 CFLAGS="${save_CFLAGS}"
7511 cat >conftest.$ac_ext <<_ACEOF
7512 #line 7512 "configure"
7513 #include "confdefs.h"
7515 #define a(b,c...) printf(b,##c)
7519 a("foo");a("%s","bar");a("%s%s","baz","quux");
7524 rm -f conftest.$ac_objext
7525 if { (eval echo "$as_me:7525: \"$ac_compile\"") >&5
7526 (eval $ac_compile) 2>&5
7528 echo "$as_me:7528: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -s conftest.$ac_objext'
7531 { (eval echo "$as_me:7531: \"$ac_try\"") >&5
7534 echo "$as_me:7534: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 ac_cv_cpp_variadic_macros=yes
7538 echo "$as_me: failed program was:" >&5
7539 cat conftest.$ac_ext >&5
7540 ac_cv_cpp_variadic_macros=no
7542 rm -f conftest.$ac_objext conftest.$ac_ext
7544 echo "$as_me:7544: result: $ac_cv_cpp_variadic_macros" >&5
7545 echo "${ECHO_T}$ac_cv_cpp_variadic_macros" >&6
7546 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
7548 cat >>confdefs.h <<\EOF
7549 #define HAVE_VARIADIC_MACROS 1
7554 echo "$as_me:7554: checking __attribute__ ((aligned ())) support" >&5
7555 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
7556 if test "${ac_cv_c_attribute_aligned+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 ac_cv_c_attribute_aligned=0
7560 CFLAGS="${save_CFLAGS} -Werror"
7561 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
7562 cat >conftest.$ac_ext <<_ACEOF
7563 #line 7563 "configure"
7564 #include "confdefs.h"
7569 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
7574 rm -f conftest.$ac_objext
7575 if { (eval echo "$as_me:7575: \"$ac_compile\"") >&5
7576 (eval $ac_compile) 2>&5
7578 echo "$as_me:7578: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try='test -s conftest.$ac_objext'
7581 { (eval echo "$as_me:7581: \"$ac_try\"") >&5
7584 echo "$as_me:7584: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
7588 echo "$as_me: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7591 rm -f conftest.$ac_objext conftest.$ac_ext
7594 echo "$as_me:7594: result: $ac_cv_c_attribute_aligned" >&5
7595 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
7596 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
7598 cat >>confdefs.h <<EOF
7599 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
7604 CFLAGS="${save_CFLAGS}"
7605 CPPFLAGS="${save_CPPFLAGS}"
7606 LDFLAGS="${save_LDFLAGS}"
7608 echo "$as_me:7608: checking for boolean_t in sys/types.h" >&5
7609 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
7610 if test "${ac_cv_c_boolean_t_sys_types_h+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 cat >conftest.$ac_ext <<_ACEOF
7614 #line 7614 "configure"
7615 #include "confdefs.h"
7616 #include <sys/types.h>
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:7626: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>&5
7629 echo "$as_me:7629: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
7631 { ac_try='test -s conftest.$ac_objext'
7632 { (eval echo "$as_me:7632: \"$ac_try\"") >&5
7635 echo "$as_me:7635: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_cv_c_boolean_t_sys_types_h=yes
7639 echo "$as_me: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7641 ac_cv_c_boolean_t_sys_types_h=no
7643 rm -f conftest.$ac_objext conftest.$ac_ext
7645 echo "$as_me:7645: result: $ac_cv_c_boolean_t_sys_types_h" >&5
7646 echo "${ECHO_T}$ac_cv_c_boolean_t_sys_types_h" >&6
7647 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
7649 cat >>confdefs.h <<\EOF
7650 #define BOOLEAN_T_IN_SYS_TYPES_H 1
7655 echo "$as_me:7655: checking for boolean_t in pthread.h" >&5
7656 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
7657 if test "${ac_cv_c_boolean_t_pthread_h+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 cat >conftest.$ac_ext <<_ACEOF
7661 #line 7661 "configure"
7662 #include "confdefs.h"
7663 #include <pthread.h>
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:7673: \"$ac_compile\"") >&5
7674 (eval $ac_compile) 2>&5
7676 echo "$as_me:7676: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try='test -s conftest.$ac_objext'
7679 { (eval echo "$as_me:7679: \"$ac_try\"") >&5
7682 echo "$as_me:7682: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7684 ac_cv_c_boolean_t_pthread_h=yes
7686 echo "$as_me: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 ac_cv_c_boolean_t_pthread_h=no
7690 rm -f conftest.$ac_objext conftest.$ac_ext
7692 echo "$as_me:7692: result: $ac_cv_c_boolean_t_pthread_h" >&5
7693 echo "${ECHO_T}$ac_cv_c_boolean_t_pthread_h" >&6
7694 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
7696 cat >>confdefs.h <<\EOF
7697 #define BOOLEAN_T_IN_PTHREAD_H 1
7702 echo "$as_me:7702: checking for boolean_t in cthreads.h" >&5
7703 echo $ECHO_N "checking for boolean_t in cthreads.h... $ECHO_C" >&6
7704 if test "${ac_cv_c_boolean_t_cthreads_h+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 cat >conftest.$ac_ext <<_ACEOF
7708 #line 7708 "configure"
7709 #include "confdefs.h"
7710 #include <cthreads.h>
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:7720: \"$ac_compile\"") >&5
7721 (eval $ac_compile) 2>&5
7723 echo "$as_me:7723: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -s conftest.$ac_objext'
7726 { (eval echo "$as_me:7726: \"$ac_try\"") >&5
7729 echo "$as_me:7729: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_cv_c_boolean_t_cthreads_h=yes
7733 echo "$as_me: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7735 ac_cv_c_boolean_t_cthreads_h=no
7737 rm -f conftest.$ac_objext conftest.$ac_ext
7739 echo "$as_me:7739: result: $ac_cv_c_boolean_t_cthreads_h" >&5
7740 echo "${ECHO_T}$ac_cv_c_boolean_t_cthreads_h" >&6
7741 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
7743 cat >>confdefs.h <<\EOF
7744 #define BOOLEAN_T_IN_CTHREADS_H 1
7749 case x"${target_cpu}" in
7754 ARCH="${target_cpu}"
7758 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
7759 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope"
7761 NETWORK_MODULES="udp http rtp ipv4"
7763 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
7764 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
7765 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
7766 SSE_MODULES="imdctsse downmixsse"
7767 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
7769 if test x$SYS != xbeos
7771 PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
7774 echo "$as_me:7774: checking if \$CC groks MMX inline assembly" >&5
7775 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
7776 if test "${ac_cv_mmx_inline+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 cat >conftest.$ac_ext <<_ACEOF
7780 #line 7780 "configure"
7781 #include "confdefs.h"
7786 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
7791 rm -f conftest.$ac_objext
7792 if { (eval echo "$as_me:7792: \"$ac_compile\"") >&5
7793 (eval $ac_compile) 2>&5
7795 echo "$as_me:7795: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -s conftest.$ac_objext'
7798 { (eval echo "$as_me:7798: \"$ac_try\"") >&5
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 ac_cv_mmx_inline=yes
7805 echo "$as_me: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7809 rm -f conftest.$ac_objext conftest.$ac_ext
7811 echo "$as_me:7811: result: $ac_cv_mmx_inline" >&5
7812 echo "${ECHO_T}$ac_cv_mmx_inline" >&6
7813 if test x"$ac_cv_mmx_inline" != x"no"; then
7814 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
7817 echo "$as_me:7817: checking if \$CC groks MMX EXT inline assembly" >&5
7818 echo $ECHO_N "checking if \$CC groks MMX EXT inline assembly... $ECHO_C" >&6
7819 if test "${ac_cv_mmxext_inline+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 cat >conftest.$ac_ext <<_ACEOF
7823 #line 7823 "configure"
7824 #include "confdefs.h"
7829 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:7835: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>&5
7838 echo "$as_me:7838: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:7841: \"$ac_try\"") >&5
7844 echo "$as_me:7844: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_cv_mmxext_inline=yes
7848 echo "$as_me: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 ac_cv_mmxext_inline=no
7852 rm -f conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:7854: result: $ac_cv_mmxext_inline" >&5
7855 echo "${ECHO_T}$ac_cv_mmxext_inline" >&6
7856 if test x"$ac_cv_mmxext_inline" != x"no"; then
7857 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
7860 echo "$as_me:7860: checking if \$CC groks 3D Now! inline assembly" >&5
7861 echo $ECHO_N "checking if \$CC groks 3D Now! inline assembly... $ECHO_C" >&6
7862 if test "${ac_cv_3dnow_inline+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line 7866 "configure"
7867 #include "confdefs.h"
7872 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
7877 rm -f conftest.$ac_objext
7878 if { (eval echo "$as_me:7878: \"$ac_compile\"") >&5
7879 (eval $ac_compile) 2>&5
7881 echo "$as_me:7881: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -s conftest.$ac_objext'
7884 { (eval echo "$as_me:7884: \"$ac_try\"") >&5
7887 echo "$as_me:7887: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_3dnow_inline=yes
7891 echo "$as_me: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7893 ac_cv_3dnow_inline=no
7895 rm -f conftest.$ac_objext conftest.$ac_ext
7897 echo "$as_me:7897: result: $ac_cv_3dnow_inline" >&5
7898 echo "${ECHO_T}$ac_cv_3dnow_inline" >&6
7899 if test x"$ac_cv_3dnow_inline" != x"no"; then
7901 cat >>confdefs.h <<\EOF
7902 #define CAN_COMPILE_3DNOW 1
7905 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
7908 echo "$as_me:7908: checking if \$CC groks SSE inline assembly" >&5
7909 echo $ECHO_N "checking if \$CC groks SSE inline assembly... $ECHO_C" >&6
7910 if test "${ac_cv_sse_inline+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 cat >conftest.$ac_ext <<_ACEOF
7914 #line 7914 "configure"
7915 #include "confdefs.h"
7920 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
7925 rm -f conftest.$ac_objext
7926 if { (eval echo "$as_me:7926: \"$ac_compile\"") >&5
7927 (eval $ac_compile) 2>&5
7929 echo "$as_me:7929: \$? = $ac_status" >&5
7930 (exit $ac_status); } &&
7931 { ac_try='test -s conftest.$ac_objext'
7932 { (eval echo "$as_me:7932: \"$ac_try\"") >&5
7935 echo "$as_me:7935: \$? = $ac_status" >&5
7936 (exit $ac_status); }; }; then
7937 ac_cv_sse_inline=yes
7939 echo "$as_me: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7943 rm -f conftest.$ac_objext conftest.$ac_ext
7945 echo "$as_me:7945: result: $ac_cv_sse_inline" >&5
7946 echo "${ECHO_T}$ac_cv_sse_inline" >&6
7947 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
7949 cat >>confdefs.h <<\EOF
7950 #define CAN_COMPILE_SSE 1
7953 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
7956 # don't try to grok altivec with native mingw32 it doesn't work right now
7957 # we should be able to remove this test with future versions of mingw32
7958 if test x$SYS != xmingw32; then
7959 echo "$as_me:7959: checking if \$CC groks Altivec inline assembly" >&5
7960 echo $ECHO_N "checking if \$CC groks Altivec inline assembly... $ECHO_C" >&6
7961 if test "${ac_cv_altivec_inline+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 cat >conftest.$ac_ext <<_ACEOF
7965 #line 7965 "configure"
7966 #include "confdefs.h"
7971 asm volatile("vperm 0,1,2,3");
7976 rm -f conftest.$ac_objext
7977 if { (eval echo "$as_me:7977: \"$ac_compile\"") >&5
7978 (eval $ac_compile) 2>&5
7980 echo "$as_me:7980: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try='test -s conftest.$ac_objext'
7983 { (eval echo "$as_me:7983: \"$ac_try\"") >&5
7986 echo "$as_me:7986: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 ac_cv_altivec_inline=yes
7990 echo "$as_me: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7993 CFLAGS="$CFLAGS -Wa,-m7400"
7994 cat >conftest.$ac_ext <<_ACEOF
7995 #line 7995 "configure"
7996 #include "confdefs.h"
8001 asm volatile("vperm 0,1,2,3");
8006 rm -f conftest.$ac_objext
8007 if { (eval echo "$as_me:8007: \"$ac_compile\"") >&5
8008 (eval $ac_compile) 2>&5
8010 echo "$as_me:8010: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:8013: \"$ac_try\"") >&5
8016 echo "$as_me:8016: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_altivec_inline="-Wa,-m7400"
8020 echo "$as_me: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8022 ac_cv_altivec_inline=no
8024 rm -f conftest.$ac_objext conftest.$ac_ext
8028 rm -f conftest.$ac_objext conftest.$ac_ext
8030 echo "$as_me:8030: result: $ac_cv_altivec_inline" >&5
8031 echo "${ECHO_T}$ac_cv_altivec_inline" >&6
8032 if test x"$ac_cv_altivec_inline" != x"no"; then
8034 cat >>confdefs.h <<\EOF
8035 #define CAN_COMPILE_ALTIVEC 1
8038 if test x"$ac_cv_altivec_inline" != x"yes"; then
8039 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
8040 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
8041 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
8042 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
8044 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
8047 echo "$as_me:8047: checking if \$CC groks Altivec C extensions" >&5
8048 echo $ECHO_N "checking if \$CC groks Altivec C extensions... $ECHO_C" >&6
8049 if test "${ac_cv_c_altivec+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 CFLAGS="$CFLAGS -faltivec"
8055 cat >conftest.$ac_ext <<_ACEOF
8056 #line 8056 "configure"
8057 #include "confdefs.h"
8062 vec_mtvscr((vector unsigned int)(0));
8067 rm -f conftest.$ac_objext
8068 if { (eval echo "$as_me:8068: \"$ac_compile\"") >&5
8069 (eval $ac_compile) 2>&5
8071 echo "$as_me:8071: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -s conftest.$ac_objext'
8074 { (eval echo "$as_me:8074: \"$ac_try\"") >&5
8077 echo "$as_me:8077: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 ac_cv_c_altivec=-faltivec
8081 echo "$as_me: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8085 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
8086 cat >conftest.$ac_ext <<_ACEOF
8087 #line 8087 "configure"
8088 #include "confdefs.h"
8093 vec_mtvscr((vector unsigned int)(0));
8098 rm -f conftest.$ac_objext
8099 if { (eval echo "$as_me:8099: \"$ac_compile\"") >&5
8100 (eval $ac_compile) 2>&5
8102 echo "$as_me:8102: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -s conftest.$ac_objext'
8105 { (eval echo "$as_me:8105: \"$ac_try\"") >&5
8108 echo "$as_me:8108: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_cv_c_altivec="-fvec"
8112 echo "$as_me: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8116 rm -f conftest.$ac_objext conftest.$ac_ext
8119 rm -f conftest.$ac_objext conftest.$ac_ext
8123 echo "$as_me:8123: result: $ac_cv_c_altivec" >&5
8124 echo "${ECHO_T}$ac_cv_c_altivec" >&6
8125 if test x"$ac_cv_c_altivec" != x"no"; then
8127 cat >>confdefs.h <<\EOF
8128 #define CAN_COMPILE_C_ALTIVEC 1
8131 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
8132 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
8133 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
8134 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
8135 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
8138 echo "$as_me:8138: checking if linker needs -framework vecLib" >&5
8139 echo $ECHO_N "checking if linker needs -framework vecLib... $ECHO_C" >&6
8140 if test "${ac_cv_ld_altivec+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 save_LDFLAGS=$LDFLAGS
8144 LDFLAGS="$LDFLAGS -framework vecLib"
8145 cat >conftest.$ac_ext <<_ACEOF
8146 #line 8146 "configure"
8147 #include "confdefs.h"
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (eval echo "$as_me:8158: \"$ac_link\"") >&5
8159 (eval $ac_link) 2>&5
8161 echo "$as_me:8161: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -s conftest$ac_exeext'
8164 { (eval echo "$as_me:8164: \"$ac_try\"") >&5
8167 echo "$as_me:8167: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 ac_cv_ld_altivec=yes
8171 echo "$as_me: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8176 LDFLAGS=$save_LDFLAGS
8179 echo "$as_me:8179: result: $ac_cv_ld_altivec" >&5
8180 echo "${ECHO_T}$ac_cv_ld_altivec" >&6
8181 if test x"$ac_cv_ld_altivec" != x"no"; then
8182 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
8183 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
8184 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
8185 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
8189 # Check whether --with- or --without- was given.
8190 if test "${with_+set}" = set; then
8195 # Check whether --with- or --without- was given.
8196 if test "${with_+set}" = set; then
8201 # Check whether --with-tuning or --without-tuning was given.
8202 if test "${with_tuning+set}" = set; then
8203 withval="$with_tuning"
8206 if test "x$with_tuning" != "x"; then
8207 TUNING="$with_tuning"
8209 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
8211 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
8215 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
8218 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
8221 # Check whether --enable-optimizations or --disable-optimizations was given.
8222 if test "${enable_optimizations+set}" = set; then
8223 enableval="$enable_optimizations"
8224 if test x$enable_optimizations = xno; then OPTIMS=0; fi
8229 # Check whether --enable-altivec or --disable-altivec was given.
8230 if test "${enable_altivec+set}" = set; then
8231 enableval="$enable_altivec"
8232 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
8233 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
8235 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
8236 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
8240 # Check whether --enable-debug or --disable-debug was given.
8241 if test "${enable_debug+set}" = set; then
8242 enableval="$enable_debug"
8243 if test x$enable_debug = xyes; then DEBUG=1; fi
8247 # Check whether --enable-release or --disable-release was given.
8248 if test "${enable_release+set}" = set; then
8249 enableval="$enable_release"
8250 if test x$enable_release = xyes; then RELEASE=1; fi
8252 VERSION="${VERSION}_`date +%Y-%m-%d`"
8255 # Check whether --with- or --without- was given.
8256 if test "${with_+set}" = set; then
8261 # Check whether --enable-dvd or --disable-dvd was given.
8262 if test "${enable_dvd+set}" = set; then
8263 enableval="$enable_dvd"
8266 if test "x$enable_dvd" != "xno"
8269 # Check whether --with-dvdcss or --without-dvdcss was given.
8270 if test "${with_dvdcss+set}" = set; then
8271 withval="$with_dvdcss"
8275 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
8276 if test "${with_dvdcss_tree+set}" = set; then
8277 withval="$with_dvdcss_tree"
8280 case "x$with_dvdcss" in
8282 if test "x$with_dvdcss_tree" = x
8285 for ac_header in dvdcss/dvdcss.h
8287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 echo "$as_me:8288: checking for $ac_header" >&5
8289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8294 #line 8294 "configure"
8295 #include "confdefs.h"
8296 #include <$ac_header>
8298 if { (eval echo "$as_me:8298: \"$ac_cpp conftest.$ac_ext\"") >&5
8299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8301 egrep -v '^ *\+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:8304: \$? = $ac_status" >&5
8305 (exit $ac_status); } >/dev/null; then
8306 if test -s conftest.err; then
8307 ac_cpp_err=$ac_c_preproc_warn_flag
8314 if test -z "$ac_cpp_err"; then
8315 eval "$as_ac_Header=yes"
8317 echo "$as_me: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8319 eval "$as_ac_Header=no"
8321 rm -f conftest.err conftest.$ac_ext
8323 echo "$as_me:8323: result: `eval echo '${'$as_ac_Header'}'`" >&5
8324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8326 cat >>confdefs.h <<EOF
8327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8329 PLUGINS="${PLUGINS} dvd"
8330 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
8332 { echo "$as_me:8332: WARNING: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." >&5
8333 echo "$as_me: WARNING: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." >&2;}
8334 { { echo "$as_me:8334: error: cannot find libdvdcss headers" >&5
8335 echo "$as_me: error: cannot find libdvdcss headers" >&2;}
8336 { (exit 1); exit 1; }; }
8341 echo "$as_me:8341: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
8342 echo $ECHO_N "checking for libdvdcss.a in ${with_dvdcss_tree}... $ECHO_C" >&6
8343 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
8344 if test "x$real_dvdcss_tree" = x
8346 echo "$as_me:8346: result: no" >&5
8347 echo "${ECHO_T}no" >&6
8348 { { echo "$as_me:8348: error: cannot cd to ${with_dvdcss_tree}" >&5
8349 echo "$as_me: error: cannot cd to ${with_dvdcss_tree}" >&2;}
8350 { (exit 1); exit 1; }; }
8352 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
8354 echo "$as_me:8354: result: ${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&5
8355 echo "${ECHO_T}${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&6
8356 BUILTINS="${BUILTINS} dvd"
8357 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
8358 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
8360 echo "$as_me:8360: result: no" >&5
8361 echo "${ECHO_T}no" >&6
8362 { { echo "$as_me:8362: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&5
8363 echo "$as_me: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&2;}
8364 { (exit 1); exit 1; }; }
8369 PLUGINS="${PLUGINS} dvd"
8370 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
8371 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
8374 echo "$as_me:8374: checking for dvdcss headers in ${with_dvdcss}" >&5
8375 echo $ECHO_N "checking for dvdcss headers in ${with_dvdcss}... $ECHO_C" >&6
8376 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
8378 echo "$as_me:8378: result: yes" >&5
8379 echo "${ECHO_T}yes" >&6
8380 PLUGINS="${PLUGINS} dvd"
8381 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
8382 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
8384 echo "$as_me:8384: result: no" >&5
8385 echo "${ECHO_T}no" >&6
8386 { { echo "$as_me:8386: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&5
8387 echo "$as_me: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&2;}
8388 { (exit 1); exit 1; }; }
8394 # Check whether --enable-dvdread or --disable-dvdread was given.
8395 if test "${enable_dvdread+set}" = set; then
8396 enableval="$enable_dvdread"
8399 if test "x$enable_dvdread" != "xno"
8402 # Check whether --with-dvdread or --without-dvdread was given.
8403 if test "${with_dvdread+set}" = set; then
8404 withval="$with_dvdread"
8407 if test "x$with_dvdread" = x
8412 test_LDFLAGS="-L${with_dvdread}/lib"
8413 test_CFLAGS="-I${with_dvdread}/include"
8415 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
8417 for ac_header in dvdread/dvd_reader.h
8419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8420 echo "$as_me:8420: checking for $ac_header" >&5
8421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 cat >conftest.$ac_ext <<_ACEOF
8426 #line 8426 "configure"
8427 #include "confdefs.h"
8428 #include <$ac_header>
8430 if { (eval echo "$as_me:8430: \"$ac_cpp conftest.$ac_ext\"") >&5
8431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8433 egrep -v '^ *\+' conftest.er1 >conftest.err
8435 cat conftest.err >&5
8436 echo "$as_me:8436: \$? = $ac_status" >&5
8437 (exit $ac_status); } >/dev/null; then
8438 if test -s conftest.err; then
8439 ac_cpp_err=$ac_c_preproc_warn_flag
8446 if test -z "$ac_cpp_err"; then
8447 eval "$as_ac_Header=yes"
8449 echo "$as_me: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8451 eval "$as_ac_Header=no"
8453 rm -f conftest.err conftest.$ac_ext
8455 echo "$as_me:8455: result: `eval echo '${'$as_ac_Header'}'`" >&5
8456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8458 cat >>confdefs.h <<EOF
8459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8462 cat >conftest.$ac_ext <<_ACEOF
8463 #line 8463 "configure"
8464 #include "confdefs.h"
8465 #include <dvdread/dvd_reader.h>
8469 void foo() { int i=DVD_VIDEO_LB_LEN; }
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:8475: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>&5
8478 echo "$as_me:8478: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -s conftest.$ac_objext'
8481 { (eval echo "$as_me:8481: \"$ac_try\"") >&5
8484 echo "$as_me:8484: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8487 PLUGINS="${PLUGINS} dvdread"
8488 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
8489 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
8492 echo "$as_me: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8495 if test "x$enable_dvdread" != x
8497 { { echo "$as_me:8497: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&5
8498 echo "$as_me: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&2;}
8499 { (exit 1); exit 1; }; }
8503 rm -f conftest.$ac_objext conftest.$ac_ext
8507 if test "x$enable_dvdread" != x
8509 if test "x$with_dvdread" != x
8511 { { echo "$as_me:8511: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&5
8512 echo "$as_me: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&2;}
8513 { (exit 1); exit 1; }; }
8515 { { echo "$as_me:8515: error: Cannot find dvdread/dvd_reader.h" >&5
8516 echo "$as_me: error: Cannot find dvdread/dvd_reader.h" >&2;}
8517 { (exit 1); exit 1; }; }
8524 CPPFLAGS="$save_CPPFLAGS"
8527 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
8528 if test "${enable_dvbpsi+set}" = set; then
8529 enableval="$enable_dvbpsi"
8532 if test "x$enable_dvbpsi" != "xno"
8535 # Check whether --with-dvbpsi or --without-dvbpsi was given.
8536 if test "${with_dvbpsi+set}" = set; then
8537 withval="$with_dvbpsi"
8541 # Check whether --with-dvbpsi or --without-dvbpsi was given.
8542 if test "${with_dvbpsi+set}" = set; then
8543 withval="$with_dvbpsi"
8546 case "x$with_dvbpsi" in
8548 if test "x$with_dvbpsi_tree" = x
8551 for ac_header in dvbpsi/dr.h
8553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8554 echo "$as_me:8554: checking for $ac_header" >&5
8555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 cat >conftest.$ac_ext <<_ACEOF
8560 #line 8560 "configure"
8561 #include "confdefs.h"
8562 { { echo "$as_me:8562: error: cannot find libdvbpsi headers" >&5
8563 echo "$as_me: error: cannot find libdvbpsi headers" >&2;}
8564 { (exit 1); exit 1; }; }
8565 #include <$ac_header>
8567 rm -f conftest.$ac_objext
8568 if { (eval echo "$as_me:8568: \"$ac_compile\"") >&5
8569 (eval $ac_compile) 2>&5
8571 echo "$as_me:8571: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -s conftest.$ac_objext'
8574 { (eval echo "$as_me:8574: \"$ac_try\"") >&5
8577 echo "$as_me:8577: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8579 eval "$as_ac_Header=yes"
8581 echo "$as_me: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8583 eval "$as_ac_Header=no"
8585 rm -f conftest.$ac_objext conftest.$ac_ext
8587 echo "$as_me:8587: result: `eval echo '${'$as_ac_Header'}'`" >&5
8588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8590 cat >>confdefs.h <<EOF
8591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8593 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
8594 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
8599 echo "$as_me:8599: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
8600 echo $ECHO_N "checking for libdvbpsi.a in ${with_dvbpsi_tree}... $ECHO_C" >&6
8601 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
8602 if test "x$real_dvbpsi_tree" = x
8604 echo "$as_me:8604: result: no" >&5
8605 echo "${ECHO_T}no" >&6
8606 { { echo "$as_me:8606: error: cannot cd to ${with_dvbpsi_tree}" >&5
8607 echo "$as_me: error: cannot cd to ${with_dvbpsi_tree}" >&2;}
8608 { (exit 1); exit 1; }; }
8610 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
8612 echo "$as_me:8612: result: ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&5
8613 echo "${ECHO_T}${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&6
8614 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
8615 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
8616 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
8618 echo "$as_me:8618: result: no" >&5
8619 echo "${ECHO_T}no" >&6
8620 { { echo "$as_me:8620: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&5
8621 echo "$as_me: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&2;}
8622 { (exit 1); exit 1; }; }
8629 echo "$as_me:8629: checking for dvbpsi headers in ${with_dvbpsi}" >&5
8630 echo $ECHO_N "checking for dvbpsi headers in ${with_dvbpsi}... $ECHO_C" >&6
8631 if test "x$with_dvbpsi" = x
8636 test_LDFLAGS="-L${with_dvbpsi}/lib"
8637 test_CFLAGS="-I${with_dvbpsi}/include"
8639 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
8640 echo "$as_me:8640: checking for dvbpsi/dr.h" >&5
8641 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
8642 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 cat >conftest.$ac_ext <<_ACEOF
8646 #line 8646 "configure"
8647 #include "confdefs.h"
8648 #include <dvbpsi/dr.h>
8650 if { (eval echo "$as_me:8650: \"$ac_cpp conftest.$ac_ext\"") >&5
8651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8653 egrep -v '^ *\+' conftest.er1 >conftest.err
8655 cat conftest.err >&5
8656 echo "$as_me:8656: \$? = $ac_status" >&5
8657 (exit $ac_status); } >/dev/null; then
8658 if test -s conftest.err; then
8659 ac_cpp_err=$ac_c_preproc_warn_flag
8666 if test -z "$ac_cpp_err"; then
8667 ac_cv_header_dvbpsi_dr_h=yes
8669 echo "$as_me: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8671 ac_cv_header_dvbpsi_dr_h=no
8673 rm -f conftest.err conftest.$ac_ext
8675 echo "$as_me:8675: result: $ac_cv_header_dvbpsi_dr_h" >&5
8676 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
8677 if test $ac_cv_header_dvbpsi_dr_h = yes; then
8679 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
8680 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
8681 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
8685 if test "x$enable_dvbpsi" != x
8687 { { echo "$as_me:8687: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" >&5
8688 echo "$as_me: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" >&2;}
8689 { (exit 1); exit 1; }; }
8694 CPPFLAGS="$save_CPPFLAGS"
8699 # Check whether --enable-vcd or --disable-vcd was given.
8700 if test "${enable_vcd+set}" = set; then
8701 enableval="$enable_vcd"
8705 if test x$enable_vcd != xno
8707 cat >conftest.$ac_ext <<_ACEOF
8708 #line 8708 "configure"
8709 #include "confdefs.h"
8710 #include <linux/cdrom.h>
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 egrep "cdrom_msf0" >/dev/null 2>&1; then
8716 PLUGINS="${PLUGINS} vcd"
8721 cat >conftest.$ac_ext <<_ACEOF
8722 #line 8722 "configure"
8723 #include "confdefs.h"
8724 #include <sys/cdio.h>
8727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8728 egrep "ioc_toc_header " >/dev/null 2>&1; then
8730 PLUGINS="${PLUGINS} vcd"
8732 cat >>confdefs.h <<\EOF
8733 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
8739 if test "x${SYS}" = "xbsdi"
8741 PLUGINS="${PLUGINS} vcd"
8744 if test "x${SYS}" = "xdarwin"
8746 PLUGINS="${PLUGINS} vcd"
8747 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
8751 # Check whether --enable-satellite or --disable-satellite was given.
8752 if test "${enable_satellite+set}" = set; then
8753 enableval="$enable_satellite"
8754 if test x$enable_satellite = xyes
8756 PLUGINS="${PLUGINS} satellite"
8760 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
8762 echo "$as_me:8762: checking for inet_pton" >&5
8763 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8764 if test "${ac_cv_func_inet_pton+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 cat >conftest.$ac_ext <<_ACEOF
8768 #line 8768 "configure"
8769 #include "confdefs.h"
8770 /* System header to define __stub macros and hopefully few prototypes,
8771 which can conflict with char inet_pton (); below. */
8773 /* Override any gcc2 internal prototype to avoid an error. */
8777 /* We use char because int might match the return type of a gcc2
8778 builtin and then its argument prototype would still apply. */
8785 /* The GNU C library defines this for functions which it implements
8786 to always fail with ENOSYS. Some functions are actually named
8787 something starting with __ and the normal name is an alias. */
8788 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
8798 rm -f conftest.$ac_objext conftest$ac_exeext
8799 if { (eval echo "$as_me:8799: \"$ac_link\"") >&5
8800 (eval $ac_link) 2>&5
8802 echo "$as_me:8802: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try='test -s conftest$ac_exeext'
8805 { (eval echo "$as_me:8805: \"$ac_try\"") >&5
8808 echo "$as_me:8808: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8810 ac_cv_func_inet_pton=yes
8812 echo "$as_me: failed program was:" >&5
8813 cat conftest.$ac_ext >&5
8814 ac_cv_func_inet_pton=no
8816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8818 echo "$as_me:8818: result: $ac_cv_func_inet_pton" >&5
8819 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
8820 if test $ac_cv_func_inet_pton = yes; then
8821 PLUGINS="${PLUGINS} ipv6"
8825 if test "x$SYS" = "xmingw32"
8827 echo "$as_me:8827: checking for getaddrinfo in ws2tcpip.h" >&5
8828 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h... $ECHO_C" >&6
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line 8830 "configure"
8831 #include "confdefs.h"
8832 #include <ws2tcpip.h>
8835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8836 egrep "addrinfo" >/dev/null 2>&1; then
8837 echo "$as_me:8837: result: yes" >&5
8838 echo "${ECHO_T}yes" >&6
8839 PLUGINS="${PLUGINS} ipv6"
8841 echo "$as_me:8841: result: no" >&5
8842 echo "${ECHO_T}no" >&6
8848 # Check whether --enable-avi or --disable-avi was given.
8849 if test "${enable_avi+set}" = set; then
8850 enableval="$enable_avi"
8853 if test x$enable_avi != xno
8855 PLUGINS="${PLUGINS} avi"
8858 # Check whether --with- or --without- was given.
8859 if test "${with_+set}" = set; then
8864 # Check whether --enable-mad or --disable-mad was given.
8865 if test "${enable_mad+set}" = set; then
8866 enableval="$enable_mad"
8869 if test x$enable_mad = xyes
8872 # Check whether --with-mad or --without-mad was given.
8873 if test "${with_mad+set}" = set; then
8877 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
8879 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
8880 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
8883 # Check whether --with-mad-tree or --without-mad-tree was given.
8884 if test "${with_mad_tree+set}" = set; then
8885 withval="$with_mad_tree"
8888 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
8890 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
8891 if test "x$real_mad_tree" = x
8893 echo "$as_me:8893: result: no" >&5
8894 echo "${ECHO_T}no" >&6
8895 { { echo "$as_me:8895: error: ${with_mad_tree} directory doesn't exist" >&5
8896 echo "$as_me: error: ${with_mad_tree} directory doesn't exist" >&2;}
8897 { (exit 1); exit 1; }; }
8899 echo "$as_me:8899: checking for mad.h in ${real_mad_tree}/libmad" >&5
8900 echo $ECHO_N "checking for mad.h in ${real_mad_tree}/libmad... $ECHO_C" >&6
8901 if test -f ${real_mad_tree}/libmad/mad.h
8903 echo "$as_me:8903: result: yes" >&5
8904 echo "${ECHO_T}yes" >&6
8905 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
8906 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
8907 save_LDFLAGS=$LDFLAGS
8908 LDFLAGS=$mad_LDFLAGS
8909 echo "$as_me:8909: checking for mad_bit_init in -lmad" >&5
8910 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
8911 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 ac_check_lib_save_LIBS=$LIBS
8916 cat >conftest.$ac_ext <<_ACEOF
8917 #line 8917 "configure"
8918 #include "confdefs.h"
8920 /* Override any gcc2 internal prototype to avoid an error. */
8924 /* We use char because int might match the return type of a gcc2
8925 builtin and then its argument prototype would still apply. */
8926 char mad_bit_init ();
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (eval echo "$as_me:8936: \"$ac_link\"") >&5
8937 (eval $ac_link) 2>&5
8939 echo "$as_me:8939: \$? = $ac_status" >&5
8940 (exit $ac_status); } &&
8941 { ac_try='test -s conftest$ac_exeext'
8942 { (eval echo "$as_me:8942: \"$ac_try\"") >&5
8945 echo "$as_me:8945: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_lib_mad_mad_bit_init=yes
8949 echo "$as_me: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8951 ac_cv_lib_mad_mad_bit_init=no
8953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8954 LIBS=$ac_check_lib_save_LIBS
8956 echo "$as_me:8956: result: $ac_cv_lib_mad_mad_bit_init" >&5
8957 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
8958 if test $ac_cv_lib_mad_mad_bit_init = yes; then
8960 BUILTINS="${BUILTINS} mad"
8961 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
8964 { { echo "$as_me:8964: error: the specified tree hasn't been compiled " >&5
8965 echo "$as_me: error: the specified tree hasn't been compiled " >&2;}
8966 { (exit 1); exit 1; }; }
8970 LDFLAGS=$save_LDFLAGS
8972 echo "$as_me:8972: result: no" >&5
8973 echo "${ECHO_T}no" >&6
8974 { { echo "$as_me:8974: error: the specified tree doesn't have mad.h" >&5
8975 echo "$as_me: error: the specified tree doesn't have mad.h" >&2;}
8976 { (exit 1); exit 1; }; }
8980 save_LDFLAGS=$LDFLAGS
8981 CFLAGS="$CFLAGS $mad_CFLAGS"
8982 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
8984 for ac_header in mad.h
8986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8987 echo "$as_me:8987: checking for $ac_header" >&5
8988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 cat >conftest.$ac_ext <<_ACEOF
8993 #line 8993 "configure"
8994 #include "confdefs.h"
8995 #include <$ac_header>
8997 if { (eval echo "$as_me:8997: \"$ac_cpp conftest.$ac_ext\"") >&5
8998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9000 egrep -v '^ *\+' conftest.er1 >conftest.err
9002 cat conftest.err >&5
9003 echo "$as_me:9003: \$? = $ac_status" >&5
9004 (exit $ac_status); } >/dev/null; then
9005 if test -s conftest.err; then
9006 ac_cpp_err=$ac_c_preproc_warn_flag
9013 if test -z "$ac_cpp_err"; then
9014 eval "$as_ac_Header=yes"
9016 echo "$as_me: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9018 eval "$as_ac_Header=no"
9020 rm -f conftest.err conftest.$ac_ext
9022 echo "$as_me:9022: result: `eval echo '${'$as_ac_Header'}'`" >&5
9023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9025 cat >>confdefs.h <<EOF
9026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9030 { { echo "$as_me:9030: error: Cannot find development headers for libmad..." >&5
9031 echo "$as_me: error: Cannot find development headers for libmad..." >&2;}
9032 { (exit 1); exit 1; }; }
9036 echo "$as_me:9036: checking for mad_bit_init in -lmad" >&5
9037 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
9038 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 ac_check_lib_save_LIBS=$LIBS
9043 cat >conftest.$ac_ext <<_ACEOF
9044 #line 9044 "configure"
9045 #include "confdefs.h"
9047 /* Override any gcc2 internal prototype to avoid an error. */
9051 /* We use char because int might match the return type of a gcc2
9052 builtin and then its argument prototype would still apply. */
9053 char mad_bit_init ();
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (eval echo "$as_me:9063: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>&5
9066 echo "$as_me:9066: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -s conftest$ac_exeext'
9069 { (eval echo "$as_me:9069: \"$ac_try\"") >&5
9072 echo "$as_me:9072: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_lib_mad_mad_bit_init=yes
9076 echo "$as_me: failed program was:" >&5
9077 cat conftest.$ac_ext >&5
9078 ac_cv_lib_mad_mad_bit_init=no
9080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9083 echo "$as_me:9083: result: $ac_cv_lib_mad_mad_bit_init" >&5
9084 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
9085 if test $ac_cv_lib_mad_mad_bit_init = yes; then
9087 PLUGINS="${PLUGINS} mad"
9088 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
9090 { { echo "$as_me:9090: error: Cannot find libmad library..." >&5
9091 echo "$as_me: error: Cannot find libmad library..." >&2;}
9092 { (exit 1); exit 1; }; }
9096 LDFLAGS=$save_LDFLAGS
9100 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
9101 if test "${enable_ffmpeg+set}" = set; then
9102 enableval="$enable_ffmpeg"
9105 if test "x$enable_ffmpeg" = "xyes"
9108 # Check whether --with-ffmpeg or --without-ffmpeg was given.
9109 if test "${with_ffmpeg+set}" = set; then
9110 withval="$with_ffmpeg"
9113 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
9115 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
9116 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
9119 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
9120 if test "${with_ffmpeg_tree+set}" = set; then
9121 withval="$with_ffmpeg_tree"
9124 if test "x$with_ffmpeg_tree" != "x"
9126 echo "$as_me:9126: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
9127 echo $ECHO_N "checking for libavcodec.a in ${with_ffmpeg_tree}... $ECHO_C" >&6
9128 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
9129 if test "x$real_ffmpeg_tree" = x
9131 echo "$as_me:9131: result: no" >&5
9132 echo "${ECHO_T}no" >&6
9133 { { echo "$as_me:9133: error: cannot cd to ${with_ffmpeg_tree}" >&5
9134 echo "$as_me: error: cannot cd to ${with_ffmpeg_tree}" >&2;}
9135 { (exit 1); exit 1; }; }
9137 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
9139 echo "$as_me:9139: result: ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&5
9140 echo "${ECHO_T}${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&6
9141 BUILTINS="${BUILTINS} ffmpeg"
9142 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
9143 if test x$SYS != xbeos
9145 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9147 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
9149 echo "$as_me:9149: result: no" >&5
9150 echo "${ECHO_T}no" >&6
9151 { { echo "$as_me:9151: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&5
9152 echo "$as_me: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&2;}
9153 { (exit 1); exit 1; }; }
9157 save_LDFLAGS=$LDFLAGS
9158 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
9159 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
9160 if test x$SYS != xbeos
9162 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9164 echo "$as_me:9164: checking for avcodec_init in -lavcodec" >&5
9165 echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6
9166 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 ac_check_lib_save_LIBS=$LIBS
9170 LIBS="-lavcodec $LIBS"
9171 cat >conftest.$ac_ext <<_ACEOF
9172 #line 9172 "configure"
9173 #include "confdefs.h"
9175 /* Override any gcc2 internal prototype to avoid an error. */
9179 /* We use char because int might match the return type of a gcc2
9180 builtin and then its argument prototype would still apply. */
9181 char avcodec_init ();
9190 rm -f conftest.$ac_objext conftest$ac_exeext
9191 if { (eval echo "$as_me:9191: \"$ac_link\"") >&5
9192 (eval $ac_link) 2>&5
9194 echo "$as_me:9194: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try='test -s conftest$ac_exeext'
9197 { (eval echo "$as_me:9197: \"$ac_try\"") >&5
9200 echo "$as_me:9200: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 ac_cv_lib_avcodec_avcodec_init=yes
9204 echo "$as_me: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 ac_cv_lib_avcodec_avcodec_init=no
9208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9209 LIBS=$ac_check_lib_save_LIBS
9211 echo "$as_me:9211: result: $ac_cv_lib_avcodec_avcodec_init" >&5
9212 echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6
9213 if test $ac_cv_lib_avcodec_avcodec_init = yes; then
9215 BUILTINS="${BUILTINS} ffmpeg"
9216 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
9217 if test x$SYS != xbeos
9219 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9222 { { echo "$as_me:9222: error: Cannot find libavcodec library..." >&5
9223 echo "$as_me: error: Cannot find libavcodec library..." >&2;}
9224 { (exit 1); exit 1; }; }
9228 LDFLAGS=$save_LDFLAGS
9232 if test x$SYS = xbeos
9234 PLUGINS="${PLUGINS} beos"
9237 # Check whether --enable-a52 or --disable-a52 was given.
9238 if test "${enable_a52+set}" = set; then
9239 enableval="$enable_a52"
9242 if test "x$enable_a52" != "xno"
9245 # Check whether --with-a52-tree or --without-a52-tree was given.
9246 if test "${with_a52_tree+set}" = set; then
9247 withval="$with_a52_tree"
9250 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
9252 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
9253 if test "x$real_a52_tree" = x
9255 echo "$as_me:9255: result: no" >&5
9256 echo "${ECHO_T}no" >&6
9257 { { echo "$as_me:9257: error: ${with_a52_tree} directory doesn't exist" >&5
9258 echo "$as_me: error: ${with_a52_tree} directory doesn't exist" >&2;}
9259 { (exit 1); exit 1; }; }
9261 echo "$as_me:9261: checking for a52.h in ${real_a52_tree}/include" >&5
9262 echo $ECHO_N "checking for a52.h in ${real_a52_tree}/include... $ECHO_C" >&6
9263 if test -f ${real_a52_tree}/include/a52.h
9265 echo "$as_me:9265: result: yes" >&5
9266 echo "${ECHO_T}yes" >&6
9267 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
9268 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
9269 save_LDFLAGS=$LDFLAGS
9270 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
9271 echo "$as_me:9271: checking for a52_free in -la52" >&5
9272 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
9273 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-la52 -lm $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line 9279 "configure"
9280 #include "confdefs.h"
9282 /* Override any gcc2 internal prototype to avoid an error. */
9286 /* We use char because int might match the return type of a gcc2
9287 builtin and then its argument prototype would still apply. */
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (eval echo "$as_me:9298: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>&5
9301 echo "$as_me:9301: \$? = $ac_status" >&5
9302 (exit $ac_status); } &&
9303 { ac_try='test -s conftest$ac_exeext'
9304 { (eval echo "$as_me:9304: \"$ac_try\"") >&5
9307 echo "$as_me:9307: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9309 ac_cv_lib_a52_a52_free=yes
9311 echo "$as_me: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9313 ac_cv_lib_a52_a52_free=no
9315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9316 LIBS=$ac_check_lib_save_LIBS
9318 echo "$as_me:9318: result: $ac_cv_lib_a52_a52_free" >&5
9319 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
9320 if test $ac_cv_lib_a52_a52_free = yes; then
9322 BUILTINS="${BUILTINS} a52"
9323 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
9324 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
9328 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
9330 { { echo "$as_me:9330: error: make sure you have at least a52dec-0.7.3" >&5
9331 echo "$as_me: error: make sure you have at least a52dec-0.7.3" >&2;}
9332 { (exit 1); exit 1; }; }
9334 { { echo "$as_me:9334: error: the specified tree hasn't been compiled" >&5
9335 echo "$as_me: error: the specified tree hasn't been compiled" >&2;}
9336 { (exit 1); exit 1; }; }
9341 LDFLAGS=$save_LDFLAGS
9343 echo "$as_me:9343: result: no" >&5
9344 echo "${ECHO_T}no" >&6
9345 { { echo "$as_me:9345: error: the specified tree doesn't have a52.h" >&5
9346 echo "$as_me: error: the specified tree doesn't have a52.h" >&2;}
9347 { (exit 1); exit 1; }; }
9350 for ac_header in a52dec/a52.h
9352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353 echo "$as_me:9353: checking for $ac_header" >&5
9354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line 9359 "configure"
9360 #include "confdefs.h"
9361 #include <$ac_header>
9363 if { (eval echo "$as_me:9363: \"$ac_cpp conftest.$ac_ext\"") >&5
9364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9366 egrep -v '^ *\+' conftest.er1 >conftest.err
9368 cat conftest.err >&5
9369 echo "$as_me:9369: \$? = $ac_status" >&5
9370 (exit $ac_status); } >/dev/null; then
9371 if test -s conftest.err; then
9372 ac_cpp_err=$ac_c_preproc_warn_flag
9379 if test -z "$ac_cpp_err"; then
9380 eval "$as_ac_Header=yes"
9382 echo "$as_me: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 eval "$as_ac_Header=no"
9386 rm -f conftest.err conftest.$ac_ext
9388 echo "$as_me:9388: result: `eval echo '${'$as_ac_Header'}'`" >&5
9389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9391 cat >>confdefs.h <<EOF
9392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9395 echo "$as_me:9395: checking for a52_free in -la52" >&5
9396 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
9397 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 ac_check_lib_save_LIBS=$LIBS
9401 LIBS="-la52 -lm $LIBS"
9402 cat >conftest.$ac_ext <<_ACEOF
9403 #line 9403 "configure"
9404 #include "confdefs.h"
9406 /* Override any gcc2 internal prototype to avoid an error. */
9410 /* We use char because int might match the return type of a gcc2
9411 builtin and then its argument prototype would still apply. */
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (eval echo "$as_me:9422: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>&5
9425 echo "$as_me:9425: \$? = $ac_status" >&5
9426 (exit $ac_status); } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:9428: \"$ac_try\"") >&5
9431 echo "$as_me:9431: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 ac_cv_lib_a52_a52_free=yes
9435 echo "$as_me: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9437 ac_cv_lib_a52_a52_free=no
9439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9442 echo "$as_me:9442: result: $ac_cv_lib_a52_a52_free" >&5
9443 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
9444 if test $ac_cv_lib_a52_a52_free = yes; then
9446 BUILTINS="${BUILTINS} a52"
9447 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
9448 a52_CFLAGS="${a52_CFLAGS}"
9458 # Check whether --enable-vorbis or --disable-vorbis was given.
9459 if test "${enable_vorbis+set}" = set; then
9460 enableval="$enable_vorbis"
9463 if test "x$enable_vorbis" != "xno"
9466 for ac_header in ogg/ogg.h
9468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9469 echo "$as_me:9469: checking for $ac_header" >&5
9470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9475 #line 9475 "configure"
9476 #include "confdefs.h"
9477 #include <$ac_header>
9479 if { (eval echo "$as_me:9479: \"$ac_cpp conftest.$ac_ext\"") >&5
9480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9482 egrep -v '^ *\+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 echo "$as_me:9485: \$? = $ac_status" >&5
9486 (exit $ac_status); } >/dev/null; then
9487 if test -s conftest.err; then
9488 ac_cpp_err=$ac_c_preproc_warn_flag
9495 if test -z "$ac_cpp_err"; then
9496 eval "$as_ac_Header=yes"
9498 echo "$as_me: failed program was:" >&5
9499 cat conftest.$ac_ext >&5
9500 eval "$as_ac_Header=no"
9502 rm -f conftest.err conftest.$ac_ext
9504 echo "$as_me:9504: result: `eval echo '${'$as_ac_Header'}'`" >&5
9505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9507 cat >>confdefs.h <<EOF
9508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9511 #PLUGINS="${PLUGINS} vorbis"
9512 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
9519 # Check whether --with- or --without- was given.
9520 if test "${with_+set}" = set; then
9525 # Check whether --enable-x11 or --disable-x11 was given.
9526 if test "${enable_x11+set}" = set; then
9527 enableval="$enable_x11"
9530 if test x$enable_x11 != xno &&
9531 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
9532 if test x$x_includes = xNONE; then
9533 x_includes=/usr/X11R6/include
9535 if test x$x_libraries = xNONE; then
9536 x_libraries=/usr/X11R6/lib
9538 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
9540 for ac_header in X11/Xlib.h
9542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9543 echo "$as_me:9543: checking for $ac_header" >&5
9544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line 9549 "configure"
9550 #include "confdefs.h"
9551 #include <$ac_header>
9553 if { (eval echo "$as_me:9553: \"$ac_cpp conftest.$ac_ext\"") >&5
9554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9556 egrep -v '^ *\+' conftest.er1 >conftest.err
9558 cat conftest.err >&5
9559 echo "$as_me:9559: \$? = $ac_status" >&5
9560 (exit $ac_status); } >/dev/null; then
9561 if test -s conftest.err; then
9562 ac_cpp_err=$ac_c_preproc_warn_flag
9569 if test -z "$ac_cpp_err"; then
9570 eval "$as_ac_Header=yes"
9572 echo "$as_me: failed program was:" >&5
9573 cat conftest.$ac_ext >&5
9574 eval "$as_ac_Header=no"
9576 rm -f conftest.err conftest.$ac_ext
9578 echo "$as_me:9578: result: `eval echo '${'$as_ac_Header'}'`" >&5
9579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9581 cat >>confdefs.h <<EOF
9582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9585 PLUGINS="${PLUGINS} x11"
9586 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
9587 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
9592 CPPFLAGS="$save_CPPFLAGS"
9595 # Check whether --enable-xvideo or --disable-xvideo was given.
9596 if test "${enable_xvideo+set}" = set; then
9597 enableval="$enable_xvideo"
9600 if test x$enable_xvideo != xno &&
9601 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
9602 if test x$x_includes = xNONE; then
9603 x_includes=/usr/X11R6/include
9605 if test x$x_libraries = xNONE; then
9606 x_libraries=/usr/X11R6/lib
9608 save_CPPFLAGS=$CPPFLAGS
9609 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
9611 for ac_header in X11/extensions/Xv.h
9613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9614 echo "$as_me:9614: checking for $ac_header" >&5
9615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9620 #line 9620 "configure"
9621 #include "confdefs.h"
9622 #include <$ac_header>
9624 if { (eval echo "$as_me:9624: \"$ac_cpp conftest.$ac_ext\"") >&5
9625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9627 egrep -v '^ *\+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:9630: \$? = $ac_status" >&5
9631 (exit $ac_status); } >/dev/null; then
9632 if test -s conftest.err; then
9633 ac_cpp_err=$ac_c_preproc_warn_flag
9640 if test -z "$ac_cpp_err"; then
9641 eval "$as_ac_Header=yes"
9643 echo "$as_me: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 eval "$as_ac_Header=no"
9647 rm -f conftest.err conftest.$ac_ext
9649 echo "$as_me:9649: result: `eval echo '${'$as_ac_Header'}'`" >&5
9650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9652 cat >>confdefs.h <<EOF
9653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9657 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
9658 echo "$as_me:9658: checking for XvSetPortAttribute in -lXv_pic" >&5
9659 echo $ECHO_N "checking for XvSetPortAttribute in -lXv_pic... $ECHO_C" >&6
9660 if test "${ac_cv_lib_Xv_pic_XvSetPortAttribute+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 ac_check_lib_save_LIBS=$LIBS
9664 LIBS="-lXv_pic $LIBS"
9665 cat >conftest.$ac_ext <<_ACEOF
9666 #line 9666 "configure"
9667 #include "confdefs.h"
9669 /* Override any gcc2 internal prototype to avoid an error. */
9673 /* We use char because int might match the return type of a gcc2
9674 builtin and then its argument prototype would still apply. */
9675 char XvSetPortAttribute ();
9679 XvSetPortAttribute ();
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:9685: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>&5
9688 echo "$as_me:9688: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
9690 { ac_try='test -s conftest$ac_exeext'
9691 { (eval echo "$as_me:9691: \"$ac_try\"") >&5
9694 echo "$as_me:9694: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_lib_Xv_pic_XvSetPortAttribute=yes
9698 echo "$as_me: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9700 ac_cv_lib_Xv_pic_XvSetPortAttribute=no
9702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9705 echo "$as_me:9705: result: $ac_cv_lib_Xv_pic_XvSetPortAttribute" >&5
9706 echo "${ECHO_T}$ac_cv_lib_Xv_pic_XvSetPortAttribute" >&6
9707 if test $ac_cv_lib_Xv_pic_XvSetPortAttribute = yes; then
9708 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
9709 PLUGINS="${PLUGINS} xvideo"
9710 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
9711 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
9713 # We don't have Xv_pic, let's make xvideo.a as builtin
9714 BUILTINS="${BUILTINS} xvideo"
9715 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
9716 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
9719 CFLAGS="$save_CFLAGS"
9721 CPPFLAGS="$save_CPPFLAGS"
9727 # Check whether --enable-sdl or --disable-sdl was given.
9728 if test "${enable_sdl+set}" = set; then
9729 enableval="$enable_sdl"
9732 if test "x$enable_sdl" != "xno"
9736 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
9737 if test "${with_sdl_config_path+set}" = set; then
9738 withval="$with_sdl_config_path"
9739 if test "x$with_sdl_config_path" != "xno"
9741 SDL_PATH="$with_sdl_config_path:$PATH"
9744 # Extract the first word of "sdl12-config", so it can be a program name with args.
9745 set dummy sdl12-config; ac_word=$2
9746 echo "$as_me:9746: checking for $ac_word" >&5
9747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9748 if test "${ac_cv_path_SDL12_CONFIG+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 case $SDL12_CONFIG in
9753 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
9756 ac_save_IFS=$IFS; IFS=$ac_path_separator
9757 ac_dummy="$SDL_PATH"
9758 for ac_dir in $ac_dummy; do
9760 test -z "$ac_dir" && ac_dir=.
9761 if $as_executable_p "$ac_dir/$ac_word"; then
9762 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
9763 echo "$as_me:9763: found $ac_dir/$ac_word" >&5
9768 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
9772 SDL12_CONFIG=$ac_cv_path_SDL12_CONFIG
9774 if test -n "$SDL12_CONFIG"; then
9775 echo "$as_me:9775: result: $SDL12_CONFIG" >&5
9776 echo "${ECHO_T}$SDL12_CONFIG" >&6
9778 echo "$as_me:9778: result: no" >&5
9779 echo "${ECHO_T}no" >&6
9782 SDL_CONFIG=${SDL12_CONFIG}
9783 SDL_HEADER="SDL12/SDL.h"
9784 if test x${SDL_CONFIG} = xno
9786 # Extract the first word of "sdl11-config", so it can be a program name with args.
9787 set dummy sdl11-config; ac_word=$2
9788 echo "$as_me:9788: checking for $ac_word" >&5
9789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9790 if test "${ac_cv_path_SDL11_CONFIG+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 case $SDL11_CONFIG in
9795 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
9798 ac_save_IFS=$IFS; IFS=$ac_path_separator
9799 ac_dummy="$SDL_PATH"
9800 for ac_dir in $ac_dummy; do
9802 test -z "$ac_dir" && ac_dir=.
9803 if $as_executable_p "$ac_dir/$ac_word"; then
9804 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
9805 echo "$as_me:9805: found $ac_dir/$ac_word" >&5
9810 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
9814 SDL11_CONFIG=$ac_cv_path_SDL11_CONFIG
9816 if test -n "$SDL11_CONFIG"; then
9817 echo "$as_me:9817: result: $SDL11_CONFIG" >&5
9818 echo "${ECHO_T}$SDL11_CONFIG" >&6
9820 echo "$as_me:9820: result: no" >&5
9821 echo "${ECHO_T}no" >&6
9824 SDL_CONFIG=${SDL11_CONFIG}
9825 SDL_HEADER="SDL11/SDL.h"
9827 if test x${SDL_CONFIG} = xno
9829 # Extract the first word of "sdl-config", so it can be a program name with args.
9830 set dummy sdl-config; ac_word=$2
9831 echo "$as_me:9831: checking for $ac_word" >&5
9832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9833 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
9841 ac_save_IFS=$IFS; IFS=$ac_path_separator
9842 ac_dummy="$SDL_PATH"
9843 for ac_dir in $ac_dummy; do
9845 test -z "$ac_dir" && ac_dir=.
9846 if $as_executable_p "$ac_dir/$ac_word"; then
9847 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
9848 echo "$as_me:9848: found $ac_dir/$ac_word" >&5
9853 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
9857 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
9859 if test -n "$SDL_CONFIG"; then
9860 echo "$as_me:9860: result: $SDL_CONFIG" >&5
9861 echo "${ECHO_T}$SDL_CONFIG" >&6
9863 echo "$as_me:9863: result: no" >&5
9864 echo "${ECHO_T}no" >&6
9867 SDL_HEADER="SDL/SDL.h"
9869 if test x${SDL_CONFIG} != xno
9871 PLUGINS="${PLUGINS} sdl"
9872 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
9873 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
9874 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
9876 for ac_header in ${SDL_HEADER}
9878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9879 echo "$as_me:9879: checking for $ac_header" >&5
9880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 cat >conftest.$ac_ext <<_ACEOF
9885 #line 9885 "configure"
9886 #include "confdefs.h"
9887 #include <$ac_header>
9889 if { (eval echo "$as_me:9889: \"$ac_cpp conftest.$ac_ext\"") >&5
9890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9892 egrep -v '^ *\+' conftest.er1 >conftest.err
9894 cat conftest.err >&5
9895 echo "$as_me:9895: \$? = $ac_status" >&5
9896 (exit $ac_status); } >/dev/null; then
9897 if test -s conftest.err; then
9898 ac_cpp_err=$ac_c_preproc_warn_flag
9905 if test -z "$ac_cpp_err"; then
9906 eval "$as_ac_Header=yes"
9908 echo "$as_me: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 eval "$as_ac_Header=no"
9912 rm -f conftest.err conftest.$ac_ext
9914 echo "$as_me:9914: result: `eval echo '${'$as_ac_Header'}'`" >&5
9915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9917 cat >>confdefs.h <<EOF
9918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9921 cat >>confdefs.h <<EOF
9922 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
9926 { { echo "$as_me:9926: error: The development package for SDL is not installed.
9927 Please install it and try again. Alternatively you can also configure with
9929 echo "$as_me: error: The development package for SDL is not installed.
9930 Please install it and try again. Alternatively you can also configure with
9931 --disable-sdl." >&2;}
9932 { (exit 1); exit 1; }; }
9937 CPPFLAGS="$save_CPPFLAGS"
9938 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
9940 { { echo "$as_me:9940: error: The development package for SDL is not installed.
9941 Please install it and try again. Alternatively you can also configure with
9943 echo "$as_me: error: The development package for SDL is not installed.
9944 Please install it and try again. Alternatively you can also configure with
9945 --disable-sdl." >&2;}
9946 { (exit 1); exit 1; }; }
9948 elif test "x$enable_sdl" = "xyes"
9950 { { echo "$as_me:9950: error: I couldn't find the SDL package. You can download libSDL
9951 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
9953 echo "$as_me: error: I couldn't find the SDL package. You can download libSDL
9954 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
9956 { (exit 1); exit 1; }; }
9960 # Check whether --enable-qte or --disable-qte was given.
9961 if test "${enable_qte+set}" = set; then
9962 enableval="$enable_qte"
9965 if test "x${enable_qte}" != "xno"
9968 # Check whether --with-qte or --without-qte was given.
9969 if test "${with_qte+set}" = set; then
9973 if test "x${with_qte}" = "x"
9975 test_LDFLAGS="-L${QTDIR}/lib"
9976 test_CFLAGS="-I${QTDIR}/include"
9978 test_LDFLAGS="-L${with_qte}/lib"
9979 test_CFLAGS="-I${with_qte}/include"
9982 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
9984 for ac_header in qt.h
9986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9987 echo "$as_me:9987: checking for $ac_header" >&5
9988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9993 #line 9993 "configure"
9994 #include "confdefs.h"
9995 #include <$ac_header>
9997 if { (eval echo "$as_me:9997: \"$ac_cpp conftest.$ac_ext\"") >&5
9998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10000 egrep -v '^ *\+' conftest.er1 >conftest.err
10002 cat conftest.err >&5
10003 echo "$as_me:10003: \$? = $ac_status" >&5
10004 (exit $ac_status); } >/dev/null; then
10005 if test -s conftest.err; then
10006 ac_cpp_err=$ac_c_preproc_warn_flag
10013 if test -z "$ac_cpp_err"; then
10014 eval "$as_ac_Header=yes"
10016 echo "$as_me: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10018 eval "$as_ac_Header=no"
10020 rm -f conftest.err conftest.$ac_ext
10022 echo "$as_me:10022: result: `eval echo '${'$as_ac_Header'}'`" >&5
10023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10025 cat >>confdefs.h <<EOF
10026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10029 qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
10030 qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
10031 if test "x${with_qte}" = "x"
10033 PLUGINS="${PLUGINS} qte"
10035 BUILTINS="${BUILTINS} qte"
10041 CPPFLAGS="${save_CPPFLAGS}"
10044 # Check whether --enable-directx or --disable-directx was given.
10045 if test "${enable_directx+set}" = set; then
10046 enableval="$enable_directx"
10049 if test "x$enable_directx" != "xno"
10051 if test x$SYS = xmingw32
10054 # Check whether --with-directx or --without-directx was given.
10055 if test "${with_directx+set}" = set; then
10056 withval="$with_directx"
10059 if test "x$with_directx" = "x"
10062 for ac_header in ddraw.h
10064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10065 echo "$as_me:10065: checking for $ac_header" >&5
10066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 cat >conftest.$ac_ext <<_ACEOF
10071 #line 10071 "configure"
10072 #include "confdefs.h"
10073 #include <$ac_header>
10075 if { (eval echo "$as_me:10075: \"$ac_cpp conftest.$ac_ext\"") >&5
10076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10078 egrep -v '^ *\+' conftest.er1 >conftest.err
10080 cat conftest.err >&5
10081 echo "$as_me:10081: \$? = $ac_status" >&5
10082 (exit $ac_status); } >/dev/null; then
10083 if test -s conftest.err; then
10084 ac_cpp_err=$ac_c_preproc_warn_flag
10091 if test -z "$ac_cpp_err"; then
10092 eval "$as_ac_Header=yes"
10094 echo "$as_me: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10096 eval "$as_ac_Header=no"
10098 rm -f conftest.err conftest.$ac_ext
10100 echo "$as_me:10100: result: `eval echo '${'$as_ac_Header'}'`" >&5
10101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10103 cat >>confdefs.h <<EOF
10104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10106 PLUGINS="${PLUGINS} directx"
10107 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
10112 echo "$as_me:10112: checking for directX headers in ${with_directx}" >&5
10113 echo $ECHO_N "checking for directX headers in ${with_directx}... $ECHO_C" >&6
10114 if test -f ${with_directx}/ddraw.h
10116 PLUGINS="${PLUGINS} directx"
10117 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
10118 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
10119 echo "$as_me:10119: result: yes" >&5
10120 echo "${ECHO_T}yes" >&6
10122 echo "$as_me:10122: result: no" >&5
10123 echo "${ECHO_T}no" >&6
10124 { { echo "$as_me:10124: error: Cannot find ${with_directx}/ddraw.h!" >&5
10125 echo "$as_me: error: Cannot find ${with_directx}/ddraw.h!" >&2;}
10126 { (exit 1); exit 1; }; }
10132 # Check whether --enable-fb or --disable-fb was given.
10133 if test "${enable_fb+set}" = set; then
10134 enableval="$enable_fb"
10137 if test x$enable_fb != xno
10140 for ac_header in linux/fb.h
10142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10143 echo "$as_me:10143: checking for $ac_header" >&5
10144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 cat >conftest.$ac_ext <<_ACEOF
10149 #line 10149 "configure"
10150 #include "confdefs.h"
10151 #include <$ac_header>
10153 if { (eval echo "$as_me:10153: \"$ac_cpp conftest.$ac_ext\"") >&5
10154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10156 egrep -v '^ *\+' conftest.er1 >conftest.err
10158 cat conftest.err >&5
10159 echo "$as_me:10159: \$? = $ac_status" >&5
10160 (exit $ac_status); } >/dev/null; then
10161 if test -s conftest.err; then
10162 ac_cpp_err=$ac_c_preproc_warn_flag
10169 if test -z "$ac_cpp_err"; then
10170 eval "$as_ac_Header=yes"
10172 echo "$as_me: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10174 eval "$as_ac_Header=no"
10176 rm -f conftest.err conftest.$ac_ext
10178 echo "$as_me:10178: result: `eval echo '${'$as_ac_Header'}'`" >&5
10179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10181 cat >>confdefs.h <<EOF
10182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10185 PLUGINS="${PLUGINS} fb"
10192 # Check whether --enable-mga or --disable-mga was given.
10193 if test "${enable_mga+set}" = set; then
10194 enableval="$enable_mga"
10195 if test x$enable_mga = xyes
10197 PLUGINS="${PLUGINS} mga xmga"
10201 # Check whether --enable-ggi or --disable-ggi was given.
10202 if test "${enable_ggi+set}" = set; then
10203 enableval="$enable_ggi"
10206 if test x$enable_ggi = xyes
10208 PLUGINS="${PLUGINS} ggi"
10209 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
10211 # Check whether --with-ggi or --without-ggi was given.
10212 if test "${with_ggi+set}" = set; then
10213 withval="$with_ggi"
10214 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
10216 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
10217 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
10222 # Check whether --enable-glide or --disable-glide was given.
10223 if test "${enable_glide+set}" = set; then
10224 enableval="$enable_glide"
10227 if test x$enable_glide = xyes
10229 PLUGINS="${PLUGINS} glide"
10230 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
10231 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
10233 # Check whether --with-glide or --without-glide was given.
10234 if test "${with_glide+set}" = set; then
10235 withval="$with_glide"
10236 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
10238 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
10239 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
10244 # Check whether --enable-aa or --disable-aa was given.
10245 if test "${enable_aa+set}" = set; then
10246 enableval="$enable_aa"
10249 if test x$enable_aa = xyes
10251 echo "$as_me:10251: checking for aalib.h" >&5
10252 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
10253 if test "${ac_cv_header_aalib_h+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 cat >conftest.$ac_ext <<_ACEOF
10257 #line 10257 "configure"
10258 #include "confdefs.h"
10261 if { (eval echo "$as_me:10261: \"$ac_cpp conftest.$ac_ext\"") >&5
10262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10264 egrep -v '^ *\+' conftest.er1 >conftest.err
10266 cat conftest.err >&5
10267 echo "$as_me:10267: \$? = $ac_status" >&5
10268 (exit $ac_status); } >/dev/null; then
10269 if test -s conftest.err; then
10270 ac_cpp_err=$ac_c_preproc_warn_flag
10277 if test -z "$ac_cpp_err"; then
10278 ac_cv_header_aalib_h=yes
10280 echo "$as_me: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 ac_cv_header_aalib_h=no
10284 rm -f conftest.err conftest.$ac_ext
10286 echo "$as_me:10286: result: $ac_cv_header_aalib_h" >&5
10287 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
10288 if test $ac_cv_header_aalib_h = yes; then
10294 if test x$have_aa = xtrue
10296 PLUGINS="${PLUGINS} aa"
10297 aa_LDFLAGS="${aa_LDFLAGS} -laa"
10301 # Check whether --with- or --without- was given.
10302 if test "${with_+set}" = set; then
10307 # Check whether --enable-dsp or --disable-dsp was given.
10308 if test "${enable_dsp+set}" = set; then
10309 enableval="$enable_dsp"
10313 if test x$enable_dsp != xno &&
10314 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
10317 for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h
10319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10320 echo "$as_me:10320: checking for $ac_header" >&5
10321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 cat >conftest.$ac_ext <<_ACEOF
10326 #line 10326 "configure"
10327 #include "confdefs.h"
10328 #include <$ac_header>
10330 if { (eval echo "$as_me:10330: \"$ac_cpp conftest.$ac_ext\"") >&5
10331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10333 egrep -v '^ *\+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:10336: \$? = $ac_status" >&5
10337 (exit $ac_status); } >/dev/null; then
10338 if test -s conftest.err; then
10339 ac_cpp_err=$ac_c_preproc_warn_flag
10346 if test -z "$ac_cpp_err"; then
10347 eval "$as_ac_Header=yes"
10349 echo "$as_me: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10351 eval "$as_ac_Header=no"
10353 rm -f conftest.err conftest.$ac_ext
10355 echo "$as_me:10355: result: `eval echo '${'$as_ac_Header'}'`" >&5
10356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10358 cat >>confdefs.h <<EOF
10359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10362 PLUGINS="${PLUGINS} dsp"
10363 echo "$as_me:10363: checking for main in -lossaudio" >&5
10364 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6
10365 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-lossaudio $LIBS"
10370 cat >conftest.$ac_ext <<_ACEOF
10371 #line 10371 "configure"
10372 #include "confdefs.h"
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (eval echo "$as_me:10383: \"$ac_link\"") >&5
10384 (eval $ac_link) 2>&5
10386 echo "$as_me:10386: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -s conftest$ac_exeext'
10389 { (eval echo "$as_me:10389: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:10392: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_lib_ossaudio_main=yes
10396 echo "$as_me: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10398 ac_cv_lib_ossaudio_main=no
10400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_lib_save_LIBS
10403 echo "$as_me:10403: result: $ac_cv_lib_ossaudio_main" >&5
10404 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
10405 if test $ac_cv_lib_ossaudio_main = yes; then
10406 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
10414 # Check whether --enable-esd or --disable-esd was given.
10415 if test "${enable_esd+set}" = set; then
10416 enableval="$enable_esd"
10417 if test x$enable_esd = xyes
10419 # Extract the first word of "esd-config", so it can be a program name with args.
10420 set dummy esd-config; ac_word=$2
10421 echo "$as_me:10421: checking for $ac_word" >&5
10422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10423 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 case $ESD_CONFIG in
10428 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
10431 ac_save_IFS=$IFS; IFS=$ac_path_separator
10433 for ac_dir in $ac_dummy; do
10435 test -z "$ac_dir" && ac_dir=.
10436 if $as_executable_p "$ac_dir/$ac_word"; then
10437 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
10438 echo "$as_me:10438: found $ac_dir/$ac_word" >&5
10443 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
10447 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
10449 if test -n "$ESD_CONFIG"; then
10450 echo "$as_me:10450: result: $ESD_CONFIG" >&5
10451 echo "${ECHO_T}$ESD_CONFIG" >&6
10453 echo "$as_me:10453: result: no" >&5
10454 echo "${ECHO_T}no" >&6
10457 if test x${ESD_CONFIG} != xno
10459 PLUGINS="${PLUGINS} esd"
10460 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
10461 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
10466 # Check whether --enable-arts or --disable-arts was given.
10467 if test "${enable_arts+set}" = set; then
10468 enableval="$enable_arts"
10469 if test x$enable_arts = xyes
10471 # Extract the first word of "artsc-config", so it can be a program name with args.
10472 set dummy artsc-config; ac_word=$2
10473 echo "$as_me:10473: checking for $ac_word" >&5
10474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10475 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 case $ARTS_CONFIG in
10480 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
10483 ac_save_IFS=$IFS; IFS=$ac_path_separator
10485 for ac_dir in $ac_dummy; do
10487 test -z "$ac_dir" && ac_dir=.
10488 if $as_executable_p "$ac_dir/$ac_word"; then
10489 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
10490 echo "$as_me:10490: found $ac_dir/$ac_word" >&5
10495 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
10499 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
10501 if test -n "$ARTS_CONFIG"; then
10502 echo "$as_me:10502: result: $ARTS_CONFIG" >&5
10503 echo "${ECHO_T}$ARTS_CONFIG" >&6
10505 echo "$as_me:10505: result: no" >&5
10506 echo "${ECHO_T}no" >&6
10509 if test x${ARTS_CONFIG} != xno
10511 PLUGINS="${PLUGINS} arts"
10512 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
10513 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
10518 # Check whether --enable-alsa or --disable-alsa was given.
10519 if test "${enable_alsa+set}" = set; then
10520 enableval="$enable_alsa"
10521 if test x$enable_alsa = xyes
10523 echo "$as_me:10523: checking for alsa/asoundlib.h" >&5
10524 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
10525 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 cat >conftest.$ac_ext <<_ACEOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10531 #include <alsa/asoundlib.h>
10533 if { (eval echo "$as_me:10533: \"$ac_cpp conftest.$ac_ext\"") >&5
10534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10536 egrep -v '^ *\+' conftest.er1 >conftest.err
10538 cat conftest.err >&5
10539 echo "$as_me:10539: \$? = $ac_status" >&5
10540 (exit $ac_status); } >/dev/null; then
10541 if test -s conftest.err; then
10542 ac_cpp_err=$ac_c_preproc_warn_flag
10549 if test -z "$ac_cpp_err"; then
10550 ac_cv_header_alsa_asoundlib_h=yes
10552 echo "$as_me: failed program was:" >&5
10553 cat conftest.$ac_ext >&5
10554 ac_cv_header_alsa_asoundlib_h=no
10556 rm -f conftest.err conftest.$ac_ext
10558 echo "$as_me:10558: result: $ac_cv_header_alsa_asoundlib_h" >&5
10559 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
10560 if test $ac_cv_header_alsa_asoundlib_h = yes; then
10561 echo "$as_me:10561: checking for main in -lasound" >&5
10562 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
10563 if test "${ac_cv_lib_asound_main+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-lasound $LIBS"
10568 cat >conftest.$ac_ext <<_ACEOF
10569 #line 10569 "configure"
10570 #include "confdefs.h"
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (eval echo "$as_me:10581: \"$ac_link\"") >&5
10582 (eval $ac_link) 2>&5
10584 echo "$as_me:10584: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -s conftest$ac_exeext'
10587 { (eval echo "$as_me:10587: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:10590: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_lib_asound_main=yes
10594 echo "$as_me: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 ac_cv_lib_asound_main=no
10598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10601 echo "$as_me:10601: result: $ac_cv_lib_asound_main" >&5
10602 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
10603 if test $ac_cv_lib_asound_main = yes; then
10613 if test x$have_alsa = xtrue
10615 PLUGINS="${PLUGINS} alsa"
10616 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
10621 # Check whether --enable-waveout or --disable-waveout was given.
10622 if test "${enable_waveout+set}" = set; then
10623 enableval="$enable_waveout"
10626 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
10628 PLUGINS="${PLUGINS} waveout"
10629 waveout_LDFLAGS="-lwinmm"
10632 # Check whether --with- or --without- was given.
10633 if test "${with_+set}" = set; then
10638 # Check whether --enable-gtk or --disable-gtk was given.
10639 if test "${enable_gtk+set}" = set; then
10640 enableval="$enable_gtk"
10643 if test x$enable_gtk != xno
10647 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
10648 if test "${with_gtk_config_path+set}" = set; then
10649 withval="$with_gtk_config_path"
10650 if test "x$with_gtk_config_path" != "xno"
10652 GTK_PATH="$with_gtk_config_path:$PATH"
10655 # look for gtk-config
10656 # Extract the first word of "gtk12-config", so it can be a program name with args.
10657 set dummy gtk12-config; ac_word=$2
10658 echo "$as_me:10658: checking for $ac_word" >&5
10659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 case $GTK12_CONFIG in
10665 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
10668 ac_save_IFS=$IFS; IFS=$ac_path_separator
10669 ac_dummy="$GTK_PATH"
10670 for ac_dir in $ac_dummy; do
10672 test -z "$ac_dir" && ac_dir=.
10673 if $as_executable_p "$ac_dir/$ac_word"; then
10674 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
10675 echo "$as_me:10675: found $ac_dir/$ac_word" >&5
10680 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
10684 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
10686 if test -n "$GTK12_CONFIG"; then
10687 echo "$as_me:10687: result: $GTK12_CONFIG" >&5
10688 echo "${ECHO_T}$GTK12_CONFIG" >&6
10690 echo "$as_me:10690: result: no" >&5
10691 echo "${ECHO_T}no" >&6
10694 GTK_CONFIG=${GTK12_CONFIG}
10695 if test x${GTK_CONFIG} = xno
10697 # Extract the first word of "gtk-config", so it can be a program name with args.
10698 set dummy gtk-config; ac_word=$2
10699 echo "$as_me:10699: checking for $ac_word" >&5
10700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10701 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 case $GTK_CONFIG in
10706 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10709 ac_save_IFS=$IFS; IFS=$ac_path_separator
10710 ac_dummy="$GTK_PATH"
10711 for ac_dir in $ac_dummy; do
10713 test -z "$ac_dir" && ac_dir=.
10714 if $as_executable_p "$ac_dir/$ac_word"; then
10715 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10716 echo "$as_me:10716: found $ac_dir/$ac_word" >&5
10721 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10725 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
10727 if test -n "$GTK_CONFIG"; then
10728 echo "$as_me:10728: result: $GTK_CONFIG" >&5
10729 echo "${ECHO_T}$GTK_CONFIG" >&6
10731 echo "$as_me:10731: result: no" >&5
10732 echo "${ECHO_T}no" >&6
10736 if test x${GTK_CONFIG} != xno
10738 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
10740 { { echo "$as_me:10740: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." >&5
10741 echo "$as_me: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." >&2;}
10742 { (exit 1); exit 1; }; }
10744 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
10745 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
10746 # now look for the gtk.h header
10747 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
10748 ac_cv_gtk_headers=yes
10750 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
10752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10753 echo "$as_me:10753: checking for $ac_header" >&5
10754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 cat >conftest.$ac_ext <<_ACEOF
10759 #line 10759 "configure"
10760 #include "confdefs.h"
10761 #include <$ac_header>
10763 if { (eval echo "$as_me:10763: \"$ac_cpp conftest.$ac_ext\"") >&5
10764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10766 egrep -v '^ *\+' conftest.er1 >conftest.err
10768 cat conftest.err >&5
10769 echo "$as_me:10769: \$? = $ac_status" >&5
10770 (exit $ac_status); } >/dev/null; then
10771 if test -s conftest.err; then
10772 ac_cpp_err=$ac_c_preproc_warn_flag
10779 if test -z "$ac_cpp_err"; then
10780 eval "$as_ac_Header=yes"
10782 echo "$as_me: failed program was:" >&5
10783 cat conftest.$ac_ext >&5
10784 eval "$as_ac_Header=no"
10786 rm -f conftest.err conftest.$ac_ext
10788 echo "$as_me:10788: result: `eval echo '${'$as_ac_Header'}'`" >&5
10789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10791 cat >>confdefs.h <<EOF
10792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10797 ac_cv_gtk_headers=no
10798 echo "Cannot find gtk development headers."
10803 if test "x$ac_cv_gtk_headers" = xyes
10805 PLUGINS="${PLUGINS} gtk"
10806 ALIASES="${ALIASES} gvlc"
10808 CPPFLAGS="$save_CPPFLAGS"
10812 # Check whether --enable-familiar or --disable-familiar was given.
10813 if test "${enable_familiar+set}" = set; then
10814 enableval="$enable_familiar"
10817 if test "x${enable_familiar}" = "xyes"
10821 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
10822 if test "${with_gtk_config_path+set}" = set; then
10823 withval="$with_gtk_config_path"
10824 if test "x${with_gtk_config_path}" != "xno"
10826 GTK_PATH="${with_gtk_config_path}:${PATH}"
10829 # look for gtk-config
10830 # Extract the first word of "gtk12-config", so it can be a program name with args.
10831 set dummy gtk12-config; ac_word=$2
10832 echo "$as_me:10832: checking for $ac_word" >&5
10833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10834 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 case $GTK12_CONFIG in
10839 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
10842 ac_save_IFS=$IFS; IFS=$ac_path_separator
10843 ac_dummy="${GTK_PATH}"
10844 for ac_dir in $ac_dummy; do
10846 test -z "$ac_dir" && ac_dir=.
10847 if $as_executable_p "$ac_dir/$ac_word"; then
10848 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
10849 echo "$as_me:10849: found $ac_dir/$ac_word" >&5
10854 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
10858 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
10860 if test -n "$GTK12_CONFIG"; then
10861 echo "$as_me:10861: result: $GTK12_CONFIG" >&5
10862 echo "${ECHO_T}$GTK12_CONFIG" >&6
10864 echo "$as_me:10864: result: no" >&5
10865 echo "${ECHO_T}no" >&6
10868 GTK_CONFIG=${GTK12_CONFIG}
10869 if test "x${GTK_CONFIG}" = "xno"
10871 # Extract the first word of "gtk-config", so it can be a program name with args.
10872 set dummy gtk-config; ac_word=$2
10873 echo "$as_me:10873: checking for $ac_word" >&5
10874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10875 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 case $GTK_CONFIG in
10880 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10883 ac_save_IFS=$IFS; IFS=$ac_path_separator
10884 ac_dummy="${GTK_PATH}"
10885 for ac_dir in $ac_dummy; do
10887 test -z "$ac_dir" && ac_dir=.
10888 if $as_executable_p "$ac_dir/$ac_word"; then
10889 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10890 echo "$as_me:10890: found $ac_dir/$ac_word" >&5
10895 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10899 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
10901 if test -n "$GTK_CONFIG"; then
10902 echo "$as_me:10902: result: $GTK_CONFIG" >&5
10903 echo "${ECHO_T}$GTK_CONFIG" >&6
10905 echo "$as_me:10905: result: no" >&5
10906 echo "${ECHO_T}no" >&6
10910 if test "x${GTK_CONFIG}" != "xno"
10912 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
10914 { { echo "$as_me:10914: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." >&5
10915 echo "$as_me: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." >&2;}
10916 { (exit 1); exit 1; }; }
10918 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk gthread`"
10919 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk gthread | sed 's,-rdynamic,,'`"
10920 # now look for the gtk.h header
10921 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
10922 ac_cv_gtk_headers=yes
10924 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
10926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10927 echo "$as_me:10927: checking for $ac_header" >&5
10928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 cat >conftest.$ac_ext <<_ACEOF
10933 #line 10933 "configure"
10934 #include "confdefs.h"
10935 #include <$ac_header>
10937 if { (eval echo "$as_me:10937: \"$ac_cpp conftest.$ac_ext\"") >&5
10938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10940 egrep -v '^ *\+' conftest.er1 >conftest.err
10942 cat conftest.err >&5
10943 echo "$as_me:10943: \$? = $ac_status" >&5
10944 (exit $ac_status); } >/dev/null; then
10945 if test -s conftest.err; then
10946 ac_cpp_err=$ac_c_preproc_warn_flag
10953 if test -z "$ac_cpp_err"; then
10954 eval "$as_ac_Header=yes"
10956 echo "$as_me: failed program was:" >&5
10957 cat conftest.$ac_ext >&5
10958 eval "$as_ac_Header=no"
10960 rm -f conftest.err conftest.$ac_ext
10962 echo "$as_me:10962: result: `eval echo '${'$as_ac_Header'}'`" >&5
10963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10965 cat >>confdefs.h <<EOF
10966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10971 ac_cv_gtk_headers=no
10972 echo "Cannot find gtk development headers."
10977 if test "x${ac_cv_gtk_headers}" = "xyes"
10979 PLUGINS="${PLUGINS} familiar"
10982 CPPFLAGS="${save_CPPFLAGS}"
10986 # Check whether --enable-gnome or --disable-gnome was given.
10987 if test "${enable_gnome+set}" = set; then
10988 enableval="$enable_gnome"
10989 if test x$enable_gnome = xyes; then
10990 # look for gnome-config
10991 # Extract the first word of "gnome-config", so it can be a program name with args.
10992 set dummy gnome-config; ac_word=$2
10993 echo "$as_me:10993: checking for $ac_word" >&5
10994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10995 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 case $GNOME_CONFIG in
11000 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
11003 ac_save_IFS=$IFS; IFS=$ac_path_separator
11005 for ac_dir in $ac_dummy; do
11007 test -z "$ac_dir" && ac_dir=.
11008 if $as_executable_p "$ac_dir/$ac_word"; then
11009 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
11010 echo "$as_me:11010: found $ac_dir/$ac_word" >&5
11015 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
11019 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
11021 if test -n "$GNOME_CONFIG"; then
11022 echo "$as_me:11022: result: $GNOME_CONFIG" >&5
11023 echo "${ECHO_T}$GNOME_CONFIG" >&6
11025 echo "$as_me:11025: result: no" >&5
11026 echo "${ECHO_T}no" >&6
11029 if test -x ${GNOME_CONFIG}
11031 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
11032 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
11034 # now look for the gnome.h header
11035 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
11037 for ac_header in gnome.h
11039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11040 echo "$as_me:11040: checking for $ac_header" >&5
11041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 cat >conftest.$ac_ext <<_ACEOF
11046 #line 11046 "configure"
11047 #include "confdefs.h"
11048 #include <$ac_header>
11050 if { (eval echo "$as_me:11050: \"$ac_cpp conftest.$ac_ext\"") >&5
11051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11053 egrep -v '^ *\+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:11056: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev/null; then
11058 if test -s conftest.err; then
11059 ac_cpp_err=$ac_c_preproc_warn_flag
11066 if test -z "$ac_cpp_err"; then
11067 eval "$as_ac_Header=yes"
11069 echo "$as_me: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11071 eval "$as_ac_Header=no"
11073 rm -f conftest.err conftest.$ac_ext
11075 echo "$as_me:11075: result: `eval echo '${'$as_ac_Header'}'`" >&5
11076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11078 cat >>confdefs.h <<EOF
11079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11082 PLUGINS="${PLUGINS} gnome"
11083 ALIASES="${ALIASES} gnome-vlc"
11087 { { echo "$as_me:11087: error: Can't find gnome headers. Please install the gnome
11088 developement tools or remove the --enable-gnome option" >&5
11089 echo "$as_me: error: Can't find gnome headers. Please install the gnome
11090 developement tools or remove the --enable-gnome option" >&2;}
11091 { (exit 1); exit 1; }; }
11096 CPPFLAGS="$save_CPPFLAGS"
11100 # Check whether --enable-qt or --disable-qt was given.
11101 if test "${enable_qt+set}" = set; then
11102 enableval="$enable_qt"
11103 if test x$enable_qt = xyes; then
11104 PLUGINS="${PLUGINS} qt"
11105 ALIASES="${ALIASES} qvlc"
11106 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
11107 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
11108 if test -x ${QTDIR}/bin/moc
11110 MOC=${QTDIR}/bin/moc
11117 # Check whether --enable-kde or --disable-kde was given.
11118 if test "${enable_kde+set}" = set; then
11119 enableval="$enable_kde"
11120 if test x$enable_kde = xyes; then
11121 PLUGINS="${PLUGINS} kde"
11122 ALIASES="${ALIASES} kvlc"
11123 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
11124 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
11125 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
11126 if test -x ${QTDIR}/bin/moc
11128 MOC=${QTDIR}/bin/moc
11135 # Check whether --enable-opie or --disable-opie was given.
11136 if test "${enable_opie+set}" = set; then
11137 enableval="$enable_opie"
11138 if test "x${enable_opie}" = "xyes"; then
11140 # Check whether --with-qte or --without-qte was given.
11141 if test "${with_qte+set}" = set; then
11142 withval="$with_qte"
11145 if test "x${with_qte}" = "x"
11147 test_LDFLAGS="-L${QTDIR}/lib"
11148 test_CFLAGS="-I${QTDIR}/include"
11150 test_LDFLAGS="-L${with_qte}/lib"
11151 test_CFLAGS="-I${with_qte}/include"
11154 PLUGINS="${PLUGINS} opie"
11155 opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
11156 opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}-DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
11157 if test -x ${QTDIR}/bin/moc
11159 MOC=${QTDIR}/bin/moc
11166 # Check whether --enable-macosx or --disable-macosx was given.
11167 if test "${enable_macosx+set}" = set; then
11168 enableval="$enable_macosx"
11169 if test x$enable_macosx = xyes
11171 BUILTINS="${BUILTINS} macosx"
11172 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
11176 for ac_header in Cocoa/Cocoa.h
11178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11179 echo "$as_me:11179: checking for $ac_header" >&5
11180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 cat >conftest.$ac_ext <<_ACEOF
11185 #line 11185 "configure"
11186 #include "confdefs.h"
11187 #include <$ac_header>
11189 if { (eval echo "$as_me:11189: \"$ac_cpp conftest.$ac_ext\"") >&5
11190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11192 egrep -v '^ *\+' conftest.er1 >conftest.err
11194 cat conftest.err >&5
11195 echo "$as_me:11195: \$? = $ac_status" >&5
11196 (exit $ac_status); } >/dev/null; then
11197 if test -s conftest.err; then
11198 ac_cpp_err=$ac_c_preproc_warn_flag
11205 if test -z "$ac_cpp_err"; then
11206 eval "$as_ac_Header=yes"
11208 echo "$as_me: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 eval "$as_ac_Header=no"
11212 rm -f conftest.err conftest.$ac_ext
11214 echo "$as_me:11214: result: `eval echo '${'$as_ac_Header'}'`" >&5
11215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11217 cat >>confdefs.h <<EOF
11218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11220 BUILTINS="${BUILTINS} macosx"
11221 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
11228 # Check whether --enable-qnx or --disable-qnx was given.
11229 if test "${enable_qnx+set}" = set; then
11230 enableval="$enable_qnx"
11233 if test x$enable_qnx != xno
11236 for ac_header in Ph.h
11238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11239 echo "$as_me:11239: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 cat >conftest.$ac_ext <<_ACEOF
11245 #line 11245 "configure"
11246 #include "confdefs.h"
11247 #include <$ac_header>
11249 if { (eval echo "$as_me:11249: \"$ac_cpp conftest.$ac_ext\"") >&5
11250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11252 egrep -v '^ *\+' conftest.er1 >conftest.err
11254 cat conftest.err >&5
11255 echo "$as_me:11255: \$? = $ac_status" >&5
11256 (exit $ac_status); } >/dev/null; then
11257 if test -s conftest.err; then
11258 ac_cpp_err=$ac_c_preproc_warn_flag
11265 if test -z "$ac_cpp_err"; then
11266 eval "$as_ac_Header=yes"
11268 echo "$as_me: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11270 eval "$as_ac_Header=no"
11272 rm -f conftest.err conftest.$ac_ext
11274 echo "$as_me:11274: result: `eval echo '${'$as_ac_Header'}'`" >&5
11275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11277 cat >>confdefs.h <<EOF
11278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11281 PLUGINS="${PLUGINS} qnx"
11282 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
11289 # Check whether --enable-intfwin or --disable-intfwin was given.
11290 if test "${enable_intfwin+set}" = set; then
11291 enableval="$enable_intfwin"
11292 if test "x$enable_intfwin" != "xno"
11295 # Check whether --with-bcbuilder or --without-bcbuilder was given.
11296 if test "${with_bcbuilder+set}" = set; then
11297 withval="$with_bcbuilder"
11300 if test "x$with_bcbuilder" != "x"
11302 BCBUILDER="$with_bcbuilder"
11304 PLUGINS="${PLUGINS} intfwin"
11308 # Check whether --enable-ncurses or --disable-ncurses was given.
11309 if test "${enable_ncurses+set}" = set; then
11310 enableval="$enable_ncurses"
11311 if test x$enable_ncurses = xyes; then
11312 PLUGINS="${PLUGINS} ncurses"
11313 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
11317 # Check whether --enable-lirc or --disable-lirc was given.
11318 if test "${enable_lirc+set}" = set; then
11319 enableval="$enable_lirc"
11322 if test x$enable_lirc = xyes
11324 echo "$as_me:11324: checking for lirc/lirc_client.h" >&5
11325 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
11326 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 cat >conftest.$ac_ext <<_ACEOF
11330 #line 11330 "configure"
11331 #include "confdefs.h"
11332 #include <lirc/lirc_client.h>
11334 if { (eval echo "$as_me:11334: \"$ac_cpp conftest.$ac_ext\"") >&5
11335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11337 egrep -v '^ *\+' conftest.er1 >conftest.err
11339 cat conftest.err >&5
11340 echo "$as_me:11340: \$? = $ac_status" >&5
11341 (exit $ac_status); } >/dev/null; then
11342 if test -s conftest.err; then
11343 ac_cpp_err=$ac_c_preproc_warn_flag
11350 if test -z "$ac_cpp_err"; then
11351 ac_cv_header_lirc_lirc_client_h=yes
11353 echo "$as_me: failed program was:" >&5
11354 cat conftest.$ac_ext >&5
11355 ac_cv_header_lirc_lirc_client_h=no
11357 rm -f conftest.err conftest.$ac_ext
11359 echo "$as_me:11359: result: $ac_cv_header_lirc_lirc_client_h" >&5
11360 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
11361 if test $ac_cv_header_lirc_lirc_client_h = yes; then
11362 echo "$as_me:11362: checking for lirc_init in -llirc_client" >&5
11363 echo $ECHO_N "checking for lirc_init in -llirc_client... $ECHO_C" >&6
11364 if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 ac_check_lib_save_LIBS=$LIBS
11368 LIBS="-llirc_client $LIBS"
11369 cat >conftest.$ac_ext <<_ACEOF
11370 #line 11370 "configure"
11371 #include "confdefs.h"
11373 /* Override any gcc2 internal prototype to avoid an error. */
11377 /* We use char because int might match the return type of a gcc2
11378 builtin and then its argument prototype would still apply. */
11388 rm -f conftest.$ac_objext conftest$ac_exeext
11389 if { (eval echo "$as_me:11389: \"$ac_link\"") >&5
11390 (eval $ac_link) 2>&5
11392 echo "$as_me:11392: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -s conftest$ac_exeext'
11395 { (eval echo "$as_me:11395: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11398 echo "$as_me:11398: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_cv_lib_lirc_client_lirc_init=yes
11402 echo "$as_me: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11404 ac_cv_lib_lirc_client_lirc_init=no
11406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11409 echo "$as_me:11409: result: $ac_cv_lib_lirc_client_lirc_init" >&5
11410 echo "${ECHO_T}$ac_cv_lib_lirc_client_lirc_init" >&6
11411 if test $ac_cv_lib_lirc_client_lirc_init = yes; then
11421 if test x$have_lirc = xtrue
11423 PLUGINS="${PLUGINS} lirc"
11424 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
11428 # Check whether --with- or --without- was given.
11429 if test "${with_+set}" = set; then
11434 # Check whether --with-words or --without-words was given.
11435 if test "${with_words+set}" = set; then
11436 withval="$with_words"
11439 case "x$with_words" in
11441 ac_cv_c_bigendian=yes
11444 ac_cv_c_bigendian=no
11447 echo "$as_me:11447: checking whether the byte order is big-endian" >&5
11448 echo $ECHO_N "checking whether the byte order is big-endian... $ECHO_C" >&6
11449 if test "${ac_cv_c_bigendian+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 ac_cv_c_bigendian=unknown
11453 cat >conftest.c <<EOF
11454 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
11455 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
11456 void _a(void) { char*s = (char*)am; s = (char *)ai; }
11457 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
11458 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
11459 void _e(void) { char*s = (char*)em; s = (char*)ei; }
11460 int main(void) { _a(); _e(); return 0; }
11463 if test -f conftest.c
11465 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
11466 && test -f conftest.o
11468 if test "`strings conftest.o | grep BIGenDianSyS`"
11470 ac_cv_c_bigendian=yes
11472 if test "`strings conftest.o | grep LiTTleEnDian`"
11474 ac_cv_c_bigendian=no
11480 echo "$as_me:11480: result: $ac_cv_c_bigendian" >&5
11481 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11482 if test x$ac_cv_c_bigendian = xunknown
11484 { { echo "$as_me:11484: error: Could not guess endianness, please use --with-words" >&5
11485 echo "$as_me: error: Could not guess endianness, please use --with-words" >&2;}
11486 { (exit 1); exit 1; }; }
11490 if test $ac_cv_c_bigendian = yes
11493 cat >>confdefs.h <<\EOF
11494 #define WORDS_BIGENDIAN 1
11500 # Check whether --enable-gprof or --disable-gprof was given.
11501 if test "${enable_gprof+set}" = set; then
11502 enableval="$enable_gprof"
11503 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
11507 # Check whether --enable-cprof or --disable-cprof was given.
11508 if test "${enable_cprof+set}" = set; then
11509 enableval="$enable_cprof"
11510 if test "x$enable_cprof" = "xyes";
11512 LDFLAGS="${LDFLAGS} -lcprof"
11518 # Check whether --enable-pth or --disable-pth was given.
11519 if test "${enable_pth+set}" = set; then
11520 enableval="$enable_pth"
11521 if test "x$enable_pth" = "xyes"; then
11523 echo "$as_me:11523: checking for pth_init in -lpth" >&5
11524 echo $ECHO_N "checking for pth_init in -lpth... $ECHO_C" >&6
11525 if test "${ac_cv_lib_pth_pth_init+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11528 ac_check_lib_save_LIBS=$LIBS
11530 cat >conftest.$ac_ext <<_ACEOF
11531 #line 11531 "configure"
11532 #include "confdefs.h"
11534 /* Override any gcc2 internal prototype to avoid an error. */
11538 /* We use char because int might match the return type of a gcc2
11539 builtin and then its argument prototype would still apply. */
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (eval echo "$as_me:11550: \"$ac_link\"") >&5
11551 (eval $ac_link) 2>&5
11553 echo "$as_me:11553: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try='test -s conftest$ac_exeext'
11556 { (eval echo "$as_me:11556: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11559 echo "$as_me:11559: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_cv_lib_pth_pth_init=yes
11563 echo "$as_me: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11565 ac_cv_lib_pth_pth_init=no
11567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11570 echo "$as_me:11570: result: $ac_cv_lib_pth_pth_init" >&5
11571 echo "${ECHO_T}$ac_cv_lib_pth_pth_init" >&6
11572 if test $ac_cv_lib_pth_pth_init = yes; then
11573 cat >>confdefs.h <<EOF
11574 #define HAVE_LIBPTH 1
11581 cat >conftest.$ac_ext <<_ACEOF
11582 #line 11582 "configure"
11583 #include "confdefs.h"
11587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11588 egrep "pth_init" >/dev/null 2>&1; then
11590 cat >>confdefs.h <<\EOF
11591 #define PTH_INIT_IN_PTH_H 1
11601 # Check whether --enable-st or --disable-st was given.
11602 if test "${enable_st+set}" = set; then
11603 enableval="$enable_st"
11604 if test "x$enable_st" = "xyes"; then
11606 echo "$as_me:11606: checking for st_init in -lst" >&5
11607 echo $ECHO_N "checking for st_init in -lst... $ECHO_C" >&6
11608 if test "${ac_cv_lib_st_st_init+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 ac_check_lib_save_LIBS=$LIBS
11613 cat >conftest.$ac_ext <<_ACEOF
11614 #line 11614 "configure"
11615 #include "confdefs.h"
11617 /* Override any gcc2 internal prototype to avoid an error. */
11621 /* We use char because int might match the return type of a gcc2
11622 builtin and then its argument prototype would still apply. */
11632 rm -f conftest.$ac_objext conftest$ac_exeext
11633 if { (eval echo "$as_me:11633: \"$ac_link\"") >&5
11634 (eval $ac_link) 2>&5
11636 echo "$as_me:11636: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -s conftest$ac_exeext'
11639 { (eval echo "$as_me:11639: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:11642: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_cv_lib_st_st_init=yes
11646 echo "$as_me: failed program was:" >&5
11647 cat conftest.$ac_ext >&5
11648 ac_cv_lib_st_st_init=no
11650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11653 echo "$as_me:11653: result: $ac_cv_lib_st_st_init" >&5
11654 echo "${ECHO_T}$ac_cv_lib_st_st_init" >&6
11655 if test $ac_cv_lib_st_st_init = yes; then
11656 cat >>confdefs.h <<EOF
11657 #define HAVE_LIBST 1
11664 cat >conftest.$ac_ext <<_ACEOF
11665 #line 11665 "configure"
11666 #include "confdefs.h"
11670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11671 egrep "st_init" >/dev/null 2>&1; then
11673 cat >>confdefs.h <<\EOF
11674 #define ST_INIT_IN_ST_H 1
11684 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
11686 # Check whether --enable-plugins or --disable-plugins was given.
11687 if test "${enable_plugins+set}" = set; then
11688 enableval="$enable_plugins"
11689 if test x$enable_plugins = xno
11691 BUILTINS="${BUILTINS} ${PLUGINS}"
11696 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
11698 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
11700 BUILTINS="${BUILTINS} ${PLUGINS}"
11704 cat >>confdefs.h <<EOF
11705 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
11708 cat >>confdefs.h <<EOF
11709 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
11712 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
11714 cat >>confdefs.h <<EOF
11715 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
11718 cat >>confdefs.h <<EOF
11719 #define MODULE_SYMBOL $VLC_SYMBOL
11722 DATA_PATH="${ac_tool_prefix}/share/videolan"
11724 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
11726 ac_config_files="$ac_config_files Makefile.config Makefile.opts po/Makefile.in"
11727 cat >confcache <<\_ACEOF
11728 # This file is a shell script that caches the results of configure
11729 # tests run on this system so they can be shared between configure
11730 # scripts and configure runs, see configure's option --config-cache.
11731 # It is not useful on other systems. If it contains results you don't
11732 # want to keep, you may remove or edit it.
11734 # config.status only pays attention to the cache file if you give it
11735 # the --recheck option to rerun configure.
11737 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11739 # following values.
11743 # The following way of writing the cache mishandles newlines in values,
11744 # but we know of no workaround that is simple, portable, and efficient.
11745 # So, don't put newlines in cache variables' values.
11746 # Ultrix sh set writes to stderr and can't be redirected directly,
11747 # and sets the high bit in the cache file unless we assign to the vars.
11750 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11752 # `set' does not quote correctly, so add quotes (double-quote
11753 # substitution turns \\\\ into \\, and sed turns \\ into \).
11756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11759 # `set' quotes correctly as required by POSIX, so do not add quotes.
11761 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11768 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11770 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11772 if cmp -s $cache_file confcache; then :; else
11773 if test -w $cache_file; then
11774 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11775 cat confcache >$cache_file
11777 echo "not updating unwritable cache $cache_file"
11782 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11783 # Let make expand exec_prefix.
11784 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11786 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11788 # trailing colons and then remove the whole line if VPATH becomes empty
11789 # (actually we leave an empty line to preserve line numbers).
11790 if test "x$srcdir" = x.; then
11791 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11792 s/:*\$(srcdir):*/:/;
11793 s/:*\${srcdir}:*/:/;
11795 s/^\([^=]*=[ ]*\):*/\1/;
11801 DEFS=-DHAVE_CONFIG_H
11803 : ${CONFIG_STATUS=./config.status}
11804 ac_clean_files_save=$ac_clean_files
11805 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11806 { echo "$as_me:11806: creating $CONFIG_STATUS" >&5
11807 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11808 cat >$CONFIG_STATUS <<_ACEOF
11810 # Generated automatically by configure.
11811 # Run this file to recreate the current configuration.
11812 # Compiler output produced by configure, useful for debugging
11813 # configure, is in config.log if it exists.
11816 SHELL=\${CONFIG_SHELL-$SHELL}
11817 ac_cs_invocation="\$0 \$@"
11821 cat >>$CONFIG_STATUS <<\_ACEOF
11822 # Be Bourne compatible
11823 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11826 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11830 # Name of the executable.
11831 as_me=`echo "$0" |sed 's,.*[\\/],,'`
11833 if expr a : '\(a\)' >/dev/null 2>&1; then
11839 rm -f conf$$ conf$$.exe conf$$.file
11841 if ln -s conf$$.file conf$$ 2>/dev/null; then
11842 # We could just check for DJGPP; but this test a) works b) is more generic
11843 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11844 if test -f conf$$.exe; then
11845 # Don't use ln at all; we don't have any links
11850 elif ln conf$$.file conf$$ 2>/dev/null; then
11855 rm -f conf$$ conf$$.exe conf$$.file
11857 as_executable_p="test -f"
11859 # Support unset when possible.
11860 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11867 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
11868 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
11869 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
11870 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
11871 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
11872 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
11873 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
11874 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
11877 # We need space, tab and new line, in precisely that order.
11883 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
11889 # Files that config.status was made for.
11890 if test -n "$ac_config_files"; then
11891 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11894 if test -n "$ac_config_headers"; then
11895 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11898 if test -n "$ac_config_links"; then
11899 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11902 if test -n "$ac_config_commands"; then
11903 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11906 cat >>$CONFIG_STATUS <<\EOF
11909 \`$as_me' instantiates files from templates according to the
11910 current configuration.
11912 Usage: $0 [OPTIONS] [FILE]...
11914 -h, --help print this help, then exit
11915 -V, --version print version number, then exit
11916 -d, --debug don't remove temporary files
11917 --recheck update $as_me by reconfiguring in the same conditions
11918 --file=FILE[:TEMPLATE]
11919 instantiate the configuration file FILE
11920 --header=FILE[:TEMPLATE]
11921 instantiate the configuration header FILE
11923 Configuration files:
11926 Configuration headers:
11929 Configuration commands:
11932 Report bugs to <bug-autoconf@gnu.org>."
11935 cat >>$CONFIG_STATUS <<EOF
11938 configured by $0, generated by GNU Autoconf 2.52,
11939 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11942 Free Software Foundation, Inc.
11943 This config.status script is free software; the Free Software Foundation
11944 gives unlimited permission to copy, distribute and modify it."
11949 cat >>$CONFIG_STATUS <<\EOF
11950 # If no file are specified by the user, then we need to provide default
11951 # value. By we need to know if files were specified by the user.
11957 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11958 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11960 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11964 *) # This is not an option, so the user has probably given explicit
11966 ac_need_defaults=false;;
11970 # Handling of the options.
11972 cat >>$CONFIG_STATUS <<EOF
11973 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11974 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11975 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11977 cat >>$CONFIG_STATUS <<\EOF
11978 --version | --vers* | -V )
11979 echo "$ac_cs_version"; exit 0 ;;
11981 # Conflict between --help and --header
11982 { { echo "$as_me:11982: error: ambiguous option: $1
11983 Try \`$0 --help' for more information." >&5
11984 echo "$as_me: error: ambiguous option: $1
11985 Try \`$0 --help' for more information." >&2;}
11986 { (exit 1); exit 1; }; };;
11987 --help | --hel | -h )
11988 echo "$ac_cs_usage"; exit 0 ;;
11989 --debug | --d* | -d )
11991 --file | --fil | --fi | --f )
11993 CONFIG_FILES="$CONFIG_FILES $1"
11994 ac_need_defaults=false;;
11995 --header | --heade | --head | --hea )
11997 CONFIG_HEADERS="$CONFIG_HEADERS $1"
11998 ac_need_defaults=false;;
12000 # This is an error.
12001 -*) { { echo "$as_me:12001: error: unrecognized option: $1
12002 Try \`$0 --help' for more information." >&5
12003 echo "$as_me: error: unrecognized option: $1
12004 Try \`$0 --help' for more information." >&2;}
12005 { (exit 1); exit 1; }; } ;;
12007 *) ac_config_targets="$ac_config_targets $1" ;;
12016 ## ----------------------- ##
12017 ## Running config.status. ##
12018 ## ----------------------- ##
12020 This file was extended by $as_me 2.52, executed with
12021 CONFIG_FILES = $CONFIG_FILES
12022 CONFIG_HEADERS = $CONFIG_HEADERS
12023 CONFIG_LINKS = $CONFIG_LINKS
12024 CONFIG_COMMANDS = $CONFIG_COMMANDS
12025 > $ac_cs_invocation
12026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12031 cat >>$CONFIG_STATUS <<EOF
12033 # INIT-COMMANDS section.
12038 cat >>$CONFIG_STATUS <<\EOF
12039 for ac_config_target in $ac_config_targets
12041 case "$ac_config_target" in
12042 # Handling of arguments.
12043 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
12044 "Makefile.opts" ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
12045 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12046 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12047 "include/defs.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
12048 *) { { echo "$as_me:12048: error: invalid argument: $ac_config_target" >&5
12049 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12050 { (exit 1); exit 1; }; };;
12054 # If the user did not use the arguments to specify the items to instantiate,
12055 # then the envvar interface is used. Set only those that are not.
12056 # We use the long form for the default assignment because of an extremely
12057 # bizarre bug on SunOS 4.1.3.
12058 if $ac_need_defaults; then
12059 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12060 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12061 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12064 # Create a temporary directory, and hook for its removal unless debugging.
12067 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12068 trap '{ (exit 1); exit 1; }' 1 2 13 15
12071 # Create a (secure) tmp directory for tmp files.
12074 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12075 test -n "$tmp" && test -d "$tmp"
12078 tmp=$TMPDIR/cs$$-$RANDOM
12079 (umask 077 && mkdir $tmp)
12082 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12083 { (exit 1); exit 1; }
12088 cat >>$CONFIG_STATUS <<EOF
12091 # CONFIG_FILES section.
12094 # No need to generate the scripts if there are no CONFIG_FILES.
12095 # This happens for instance when ./config.status config.h
12096 if test -n "\$CONFIG_FILES"; then
12097 # Protect against being on the right side of a sed subst in config.status.
12098 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12099 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12100 s,@SHELL@,$SHELL,;t t
12101 s,@exec_prefix@,$exec_prefix,;t t
12102 s,@prefix@,$prefix,;t t
12103 s,@program_transform_name@,$program_transform_name,;t t
12104 s,@bindir@,$bindir,;t t
12105 s,@sbindir@,$sbindir,;t t
12106 s,@libexecdir@,$libexecdir,;t t
12107 s,@datadir@,$datadir,;t t
12108 s,@sysconfdir@,$sysconfdir,;t t
12109 s,@sharedstatedir@,$sharedstatedir,;t t
12110 s,@localstatedir@,$localstatedir,;t t
12111 s,@libdir@,$libdir,;t t
12112 s,@includedir@,$includedir,;t t
12113 s,@oldincludedir@,$oldincludedir,;t t
12114 s,@infodir@,$infodir,;t t
12115 s,@mandir@,$mandir,;t t
12116 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12117 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12118 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12119 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12120 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12121 s,@build_alias@,$build_alias,;t t
12122 s,@host_alias@,$host_alias,;t t
12123 s,@target_alias@,$target_alias,;t t
12124 s,@ECHO_C@,$ECHO_C,;t t
12125 s,@ECHO_N@,$ECHO_N,;t t
12126 s,@ECHO_T@,$ECHO_T,;t t
12127 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12128 s,@DEFS@,$DEFS,;t t
12129 s,@LIBS@,$LIBS,;t t
12130 s,@build@,$build,;t t
12131 s,@build_cpu@,$build_cpu,;t t
12132 s,@build_vendor@,$build_vendor,;t t
12133 s,@build_os@,$build_os,;t t
12134 s,@host@,$host,;t t
12135 s,@host_cpu@,$host_cpu,;t t
12136 s,@host_vendor@,$host_vendor,;t t
12137 s,@host_os@,$host_os,;t t
12138 s,@target@,$target,;t t
12139 s,@target_cpu@,$target_cpu,;t t
12140 s,@target_vendor@,$target_vendor,;t t
12141 s,@target_os@,$target_os,;t t
12142 s,@SET_MAKE@,$SET_MAKE,;t t
12144 s,@CFLAGS@,$CFLAGS,;t t
12145 s,@LDFLAGS@,$LDFLAGS,;t t
12146 s,@CPPFLAGS@,$CPPFLAGS,;t t
12147 s,@ac_ct_CC@,$ac_ct_CC,;t t
12148 s,@EXEEXT@,$EXEEXT,;t t
12149 s,@OBJEXT@,$OBJEXT,;t t
12151 s,@RANLIB@,$RANLIB,;t t
12152 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12153 s,@STRIP@,$STRIP,;t t
12154 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12155 s,@GMAKE@,$GMAKE,;t t
12156 s,@ALLOCA@,$ALLOCA,;t t
12157 s,@GLIBC21@,$GLIBC21,;t t
12158 s,@LIBICONV@,$LIBICONV,;t t
12159 s,@USE_NLS@,$USE_NLS,;t t
12160 s,@MSGFMT@,$MSGFMT,;t t
12161 s,@GMSGFMT@,$GMSGFMT,;t t
12162 s,@XGETTEXT@,$XGETTEXT,;t t
12163 s,@INTLBISON@,$INTLBISON,;t t
12164 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12165 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12166 s,@CATALOGS@,$CATALOGS,;t t
12167 s,@CATOBJEXT@,$CATOBJEXT,;t t
12168 s,@GMOFILES@,$GMOFILES,;t t
12169 s,@INTLLIBS@,$INTLLIBS,;t t
12170 s,@INTLOBJS@,$INTLOBJS,;t t
12171 s,@POFILES@,$POFILES,;t t
12172 s,@POSUB@,$POSUB,;t t
12173 s,@DATADIRNAME@,$DATADIRNAME,;t t
12174 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12175 s,@GENCAT@,$GENCAT,;t t
12176 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12177 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12178 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12179 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12180 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12181 s,@WINDRES@,$WINDRES,;t t
12182 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
12183 s,@SDL12_CONFIG@,$SDL12_CONFIG,;t t
12184 s,@SDL11_CONFIG@,$SDL11_CONFIG,;t t
12185 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
12186 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
12187 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
12188 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
12189 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
12190 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
12191 s,@DATA_PATH@,$DATA_PATH,;t t
12192 s,@PLUGIN_PATH@,$PLUGIN_PATH,;t t
12194 s,@ARCH@,$ARCH,;t t
12195 s,@PLUGINS@,$PLUGINS,;t t
12196 s,@BUILTINS@,$BUILTINS,;t t
12197 s,@ALIASES@,$ALIASES,;t t
12198 s,@DEBUG@,$DEBUG,;t t
12200 s,@CPROF@,$CPROF,;t t
12201 s,@GPROF@,$GPROF,;t t
12202 s,@OPTIMS@,$OPTIMS,;t t
12203 s,@TUNING@,$TUNING,;t t
12204 s,@RELEASE@,$RELEASE,;t t
12206 s,@BCBUILDER@,$BCBUILDER,;t t
12207 s,@PACKAGE@,$PACKAGE,;t t
12208 s,@VERSION@,$VERSION,;t t
12209 s,@NEED_GETOPT@,$NEED_GETOPT,;t t
12210 s,@CFLAGS_OPTIM@,$CFLAGS_OPTIM,;t t
12211 s,@CFLAGS_OPTIM_NODEBUG@,$CFLAGS_OPTIM_NODEBUG,;t t
12212 s,@vlc_CFLAGS@,$vlc_CFLAGS,;t t
12213 s,@plugins_CFLAGS@,$plugins_CFLAGS,;t t
12214 s,@builtins_CFLAGS@,$builtins_CFLAGS,;t t
12215 s,@a52_CFLAGS@,$a52_CFLAGS,;t t
12216 s,@arts_CFLAGS@,$arts_CFLAGS,;t t
12217 s,@dvd_CFLAGS@,$dvd_CFLAGS,;t t
12218 s,@dvdread_CFLAGS@,$dvdread_CFLAGS,;t t
12219 s,@mpeg_ts_dvbpsi_CFLAGS@,$mpeg_ts_dvbpsi_CFLAGS,;t t
12220 s,@directx_CFLAGS@,$directx_CFLAGS,;t t
12221 s,@esd_CFLAGS@,$esd_CFLAGS,;t t
12222 s,@familiar_CFLAGS@,$familiar_CFLAGS,;t t
12223 s,@ffmpeg_CFLAGS@,$ffmpeg_CFLAGS,;t t
12224 s,@glide_CFLAGS@,$glide_CFLAGS,;t t
12225 s,@gnome_CFLAGS@,$gnome_CFLAGS,;t t
12226 s,@gtk_CFLAGS@,$gtk_CFLAGS,;t t
12227 s,@kde_CFLAGS@,$kde_CFLAGS,;t t
12228 s,@idctaltivec_CFLAGS@,$idctaltivec_CFLAGS,;t t
12229 s,@macosx_CFLAGS@,$macosx_CFLAGS,;t t
12230 s,@mad_CFLAGS@,$mad_CFLAGS,;t t
12231 s,@memcpyaltivec_CFLAGS@,$memcpyaltivec_CFLAGS,;t t
12232 s,@motionaltivec_CFLAGS@,$motionaltivec_CFLAGS,;t t
12233 s,@opie_CFLAGS@,$opie_CFLAGS,;t t
12234 s,@qt_CFLAGS@,$qt_CFLAGS,;t t
12235 s,@qte_CFLAGS@,$qte_CFLAGS,;t t
12236 s,@sdl_CFLAGS@,$sdl_CFLAGS,;t t
12237 s,@x11_CFLAGS@,$x11_CFLAGS,;t t
12238 s,@xvideo_CFLAGS@,$xvideo_CFLAGS,;t t
12239 s,@vlc_LDFLAGS@,$vlc_LDFLAGS,;t t
12240 s,@plugins_LDFLAGS@,$plugins_LDFLAGS,;t t
12241 s,@builtins_LDFLAGS@,$builtins_LDFLAGS,;t t
12242 s,@a52_LDFLAGS@,$a52_LDFLAGS,;t t
12243 s,@aa_LDFLAGS@,$aa_LDFLAGS,;t t
12244 s,@alsa_LDFLAGS@,$alsa_LDFLAGS,;t t
12245 s,@arts_LDFLAGS@,$arts_LDFLAGS,;t t
12246 s,@beos_LDFLAGS@,$beos_LDFLAGS,;t t
12247 s,@chroma_i420_rgb_LDFLAGS@,$chroma_i420_rgb_LDFLAGS,;t t
12248 s,@directx_LDFLAGS@,$directx_LDFLAGS,;t t
12249 s,@dsp_LDFLAGS@,$dsp_LDFLAGS,;t t
12250 s,@dvd_LDFLAGS@,$dvd_LDFLAGS,;t t
12251 s,@dvdread_LDFLAGS@,$dvdread_LDFLAGS,;t t
12252 s,@mpeg_ts_dvbpsi_LDFLAGS@,$mpeg_ts_dvbpsi_LDFLAGS,;t t
12253 s,@esd_LDFLAGS@,$esd_LDFLAGS,;t t
12254 s,@familiar_LDFLAGS@,$familiar_LDFLAGS,;t t
12255 s,@filter_distort_LDFLAGS@,$filter_distort_LDFLAGS,;t t
12256 s,@ffmpeg_LDFLAGS@,$ffmpeg_LDFLAGS,;t t
12257 s,@ggi_LDFLAGS@,$ggi_LDFLAGS,;t t
12258 s,@glide_LDFLAGS@,$glide_LDFLAGS,;t t
12259 s,@gnome_LDFLAGS@,$gnome_LDFLAGS,;t t
12260 s,@gtk_LDFLAGS@,$gtk_LDFLAGS,;t t
12261 s,@http_LDFLAGS@,$http_LDFLAGS,;t t
12262 s,@idctaltivec_LDFLAGS@,$idctaltivec_LDFLAGS,;t t
12263 s,@imdct_LDFLAGS@,$imdct_LDFLAGS,;t t
12264 s,@imdct3dn_LDFLAGS@,$imdct3dn_LDFLAGS,;t t
12265 s,@imdctsse_LDFLAGS@,$imdctsse_LDFLAGS,;t t
12266 s,@ipv4_LDFLAGS@,$ipv4_LDFLAGS,;t t
12267 s,@ipv6_LDFLAGS@,$ipv6_LDFLAGS,;t t
12268 s,@kde_LDFLAGS@,$kde_LDFLAGS,;t t
12269 s,@lirc_LDFLAGS@,$lirc_LDFLAGS,;t t
12270 s,@macosx_LDFLAGS@,$macosx_LDFLAGS,;t t
12271 s,@mad_LDFLAGS@,$mad_LDFLAGS,;t t
12272 s,@memcpyaltivec_LDFLAGS@,$memcpyaltivec_LDFLAGS,;t t
12273 s,@motionaltivec_LDFLAGS@,$motionaltivec_LDFLAGS,;t t
12274 s,@ncurses_LDFLAGS@,$ncurses_LDFLAGS,;t t
12275 s,@opie_LDFLAGS@,$opie_LDFLAGS,;t t
12276 s,@qnx_LDFLAGS@,$qnx_LDFLAGS,;t t
12277 s,@qt_LDFLAGS@,$qt_LDFLAGS,;t t
12278 s,@qte_LDFLAGS@,$qte_LDFLAGS,;t t
12279 s,@rc_LDFLAGS@,$rc_LDFLAGS,;t t
12280 s,@sdl_LDFLAGS@,$sdl_LDFLAGS,;t t
12281 s,@vcd_LDFLAGS@,$vcd_LDFLAGS,;t t
12282 s,@vorbis_LDFLAGS@,$vorbis_LDFLAGS,;t t
12283 s,@waveout_LDFLAGS@,$waveout_LDFLAGS,;t t
12284 s,@x11_LDFLAGS@,$x11_LDFLAGS,;t t
12285 s,@xvideo_LDFLAGS@,$xvideo_LDFLAGS,;t t
12290 cat >>$CONFIG_STATUS <<\EOF
12291 # Split the substitutions into bite-sized pieces for seds with
12292 # small command number limits, like on Digital OSF/1 and HP-UX.
12293 ac_max_sed_lines=48
12294 ac_sed_frag=1 # Number of current file.
12295 ac_beg=1 # First line for current file.
12296 ac_end=$ac_max_sed_lines # Line after last line for current file.
12299 while $ac_more_lines; do
12300 if test $ac_beg -gt 1; then
12301 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12303 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12305 if test ! -s $tmp/subs.frag; then
12306 ac_more_lines=false
12308 # The purpose of the label and of the branching condition is to
12309 # speed up the sed processing (if there are no `@' at all, there
12310 # is no need to browse any of the substitutions).
12311 # These are the two extra sed commands mentioned above.
12313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12314 if test -z "$ac_sed_cmds"; then
12315 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12317 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12319 ac_sed_frag=`expr $ac_sed_frag + 1`
12321 ac_end=`expr $ac_end + $ac_max_sed_lines`
12324 if test -z "$ac_sed_cmds"; then
12327 fi # test -n "$CONFIG_FILES"
12330 cat >>$CONFIG_STATUS <<\EOF
12331 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12334 - | *:- | *:-:* ) # input from stdin
12336 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12340 * ) ac_file_in=$ac_file.in ;;
12343 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12344 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12345 X"$ac_file" : 'X\(//\)[^/]' \| \
12346 X"$ac_file" : 'X\(//\)$' \| \
12347 X"$ac_file" : 'X\(/\)' \| \
12348 . : '\(.\)' 2>/dev/null ||
12350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12352 /^X\(\/\/\)$/{ s//\1/; q; }
12353 /^X\(\/\).*/{ s//\1/; q; }
12355 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12356 { case "$ac_dir" in
12357 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12361 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12362 case $as_mkdir_dir in
12363 # Skip DOS drivespec
12364 ?:) as_incr_dir=$as_mkdir_dir ;;
12366 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12367 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12372 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12373 # A "../" for each directory in $ac_dir_suffix.
12374 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12376 ac_dir_suffix= ac_dots=
12381 if test -z "$ac_dots"; then
12384 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12386 [\\/]* | ?:[\\/]* )
12387 ac_srcdir=$srcdir$ac_dir_suffix;
12388 ac_top_srcdir=$srcdir ;;
12389 *) # Relative path.
12390 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12391 ac_top_srcdir=$ac_dots$srcdir ;;
12395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12396 *) ac_INSTALL=$ac_dots$INSTALL ;;
12399 if test x"$ac_file" != x-; then
12400 { echo "$as_me:12400: creating $ac_file" >&5
12401 echo "$as_me: creating $ac_file" >&6;}
12404 # Let's still pretend it is `configure' which instantiates (i.e., don't
12405 # use $as_me), people would be surprised to read:
12406 # /* config.h. Generated automatically by config.status. */
12407 configure_input="Generated automatically from `echo $ac_file_in |
12408 sed 's,.*/,,'` by configure."
12410 # First look for the input files in the build tree, otherwise in the
12412 ac_file_inputs=`IFS=:
12413 for f in $ac_file_in; do
12415 -) echo $tmp/stdin ;;
12417 # Absolute (can't be DOS-style, as IFS=:)
12418 test -f "$f" || { { echo "$as_me:12418: error: cannot find input file: $f" >&5
12419 echo "$as_me: error: cannot find input file: $f" >&2;}
12420 { (exit 1); exit 1; }; }
12423 if test -f "$f"; then
12426 elif test -f "$srcdir/$f"; then
12431 { { echo "$as_me:12431: error: cannot find input file: $f" >&5
12432 echo "$as_me: error: cannot find input file: $f" >&2;}
12433 { (exit 1); exit 1; }; }
12436 done` || { (exit 1); exit 1; }
12438 cat >>$CONFIG_STATUS <<EOF
12442 cat >>$CONFIG_STATUS <<\EOF
12444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12445 s,@configure_input@,$configure_input,;t t
12446 s,@srcdir@,$ac_srcdir,;t t
12447 s,@top_srcdir@,$ac_top_srcdir,;t t
12448 s,@INSTALL@,$ac_INSTALL,;t t
12449 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12451 if test x"$ac_file" != x-; then
12452 mv $tmp/out $ac_file
12460 cat >>$CONFIG_STATUS <<\EOF
12463 # CONFIG_HEADER section.
12466 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12467 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12469 # ac_d sets the value in "#define NAME VALUE" lines.
12470 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12471 ac_dB='[ ].*$,\1#\2'
12474 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12475 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12476 ac_uB='$,\1#\2define\3'
12480 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12481 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12483 - | *:- | *:-:* ) # input from stdin
12485 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12486 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12487 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12488 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12489 * ) ac_file_in=$ac_file.in ;;
12492 test x"$ac_file" != x- && { echo "$as_me:12492: creating $ac_file" >&5
12493 echo "$as_me: creating $ac_file" >&6;}
12495 # First look for the input files in the build tree, otherwise in the
12497 ac_file_inputs=`IFS=:
12498 for f in $ac_file_in; do
12500 -) echo $tmp/stdin ;;
12502 # Absolute (can't be DOS-style, as IFS=:)
12503 test -f "$f" || { { echo "$as_me:12503: error: cannot find input file: $f" >&5
12504 echo "$as_me: error: cannot find input file: $f" >&2;}
12505 { (exit 1); exit 1; }; }
12508 if test -f "$f"; then
12511 elif test -f "$srcdir/$f"; then
12516 { { echo "$as_me:12516: error: cannot find input file: $f" >&5
12517 echo "$as_me: error: cannot find input file: $f" >&2;}
12518 { (exit 1); exit 1; }; }
12521 done` || { (exit 1); exit 1; }
12522 # Remove the trailing spaces.
12523 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12527 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12528 # `conftest.undefs', that substitutes the proper values into
12529 # config.h.in to produce config.h. The first handles `#define'
12530 # templates, and the second `#undef' templates.
12531 # And first: Protect against being on the right side of a sed subst in
12532 # config.status. Protect against being in an unquoted here document
12533 # in config.status.
12534 rm -f conftest.defines conftest.undefs
12535 # Using a here document instead of a string reduces the quoting nightmare.
12536 # Putting comments in sed scripts is not portable.
12538 # `end' is used to avoid that the second main sed command (meant for
12539 # 0-ary CPP macros) applies to n-ary macro definitions.
12540 # See the Autoconf documentation for `clear'.
12541 cat >confdef2sed.sed <<\EOF
12546 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
12548 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12551 # If some macros were called several times there might be several times
12552 # the same #defines, which is useless. Nevertheless, we may not want to
12553 # sort them, since we want the *last* AC-DEFINE to be honored.
12554 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12555 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12556 rm -f confdef2sed.sed
12558 # This sed command replaces #undef with comments. This is necessary, for
12559 # example, in the case of _POSIX_SOURCE, which is predefined and required
12560 # on some systems where configure will not decide to define it.
12561 cat >>conftest.undefs <<\EOF
12562 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12565 # Break up conftest.defines because some shells have a limit on the size
12566 # of here documents, and old seds have small limits too (100 cmds).
12567 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12568 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12569 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12570 echo ' :' >>$CONFIG_STATUS
12571 rm -f conftest.tail
12572 while grep . conftest.defines >/dev/null
12574 # Write a limited-size here document to $tmp/defines.sed.
12575 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12576 # Speed up: don't consider the non `#define' lines.
12577 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12578 # Work around the forget-to-reset-the-flag bug.
12579 echo 't clr' >>$CONFIG_STATUS
12580 echo ': clr' >>$CONFIG_STATUS
12581 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12583 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12585 mv $tmp/out $tmp/in
12587 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12588 rm -f conftest.defines
12589 mv conftest.tail conftest.defines
12591 rm -f conftest.defines
12592 echo ' fi # egrep' >>$CONFIG_STATUS
12593 echo >>$CONFIG_STATUS
12595 # Break up conftest.undefs because some shells have a limit on the size
12596 # of here documents, and old seds have small limits too (100 cmds).
12597 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12598 rm -f conftest.tail
12599 while grep . conftest.undefs >/dev/null
12601 # Write a limited-size here document to $tmp/undefs.sed.
12602 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12603 # Speed up: don't consider the non `#undef'
12604 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12605 # Work around the forget-to-reset-the-flag bug.
12606 echo 't clr' >>$CONFIG_STATUS
12607 echo ': clr' >>$CONFIG_STATUS
12608 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12610 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12612 mv $tmp/out $tmp/in
12614 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12615 rm -f conftest.undefs
12616 mv conftest.tail conftest.undefs
12618 rm -f conftest.undefs
12620 cat >>$CONFIG_STATUS <<\EOF
12621 # Let's still pretend it is `configure' which instantiates (i.e., don't
12622 # use $as_me), people would be surprised to read:
12623 # /* config.h. Generated automatically by config.status. */
12624 if test x"$ac_file" = x-; then
12625 echo "/* Generated automatically by configure. */" >$tmp/config.h
12627 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
12629 cat $tmp/in >>$tmp/config.h
12631 if test x"$ac_file" != x-; then
12632 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12633 { echo "$as_me:12633: $ac_file is unchanged" >&5
12634 echo "$as_me: $ac_file is unchanged" >&6;}
12636 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12637 X"$ac_file" : 'X\(//\)[^/]' \| \
12638 X"$ac_file" : 'X\(//\)$' \| \
12639 X"$ac_file" : 'X\(/\)' \| \
12640 . : '\(.\)' 2>/dev/null ||
12642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12644 /^X\(\/\/\)$/{ s//\1/; q; }
12645 /^X\(\/\).*/{ s//\1/; q; }
12647 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12648 { case "$ac_dir" in
12649 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12653 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12654 case $as_mkdir_dir in
12655 # Skip DOS drivespec
12656 ?:) as_incr_dir=$as_mkdir_dir ;;
12658 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12659 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12666 mv $tmp/config.h $ac_file
12670 rm -f $tmp/config.h
12674 cat >>$CONFIG_STATUS <<\EOF
12677 # CONFIG_COMMANDS section.
12679 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12680 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12681 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12684 default-1 ) for ac_file in $CONFIG_FILES; do
12685 # Support "outfile[:infile[:infile...]]"
12687 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12689 # PO directories have a Makefile.in generated from Makefile.in.in.
12690 case "$ac_file" in */Makefile.in)
12691 # Adjust a relative srcdir.
12692 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12693 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12694 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12695 # In autoconf-2.13 it is called $ac_given_srcdir.
12696 # In autoconf-2.50 it is called $srcdir.
12697 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12698 case "$ac_given_srcdir" in
12699 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12700 /*) top_srcdir="$ac_given_srcdir" ;;
12701 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12703 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12704 rm -f "$ac_dir/POTFILES"
12705 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12706 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
12707 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12708 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12717 cat >>$CONFIG_STATUS <<\EOF
12719 { (exit 0); exit 0; }
12721 chmod +x $CONFIG_STATUS
12722 ac_clean_files=$ac_clean_files_save
12724 # configure is writing to config.log, and then calls config.status.
12725 # config.status does its own redirection, appending to config.log.
12726 # Unfortunately, on DOS this fails, as config.log is still kept open
12727 # by configure, so config.status won't be able to write to it; its
12728 # output is simply discarded. So we exec the FD to /dev/null,
12729 # effectively closing config.log, so it can be properly (re)opened and
12730 # appended to by config.status. When coming back to configure, we
12731 # need to make the FD available again.
12732 if test "$no_create" != yes; then
12735 $SHELL $CONFIG_STATUS || ac_cs_success=false
12737 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12738 # would make configure fail if this is the last instruction.
12739 $ac_cs_success || { (exit 1); exit 1; }
12744 --------------------
12745 vlc version : ${VERSION}
12747 architecture : ${ARCH}
12748 optimizations : ${OPTIMS}
12750 debug mode : ${DEBUG}
12751 release : ${RELEASE}
12752 cprof/gprof support : ${CPROF}/${GPROF}
12753 need builtin getopt : ${NEED_GETOPT}
12754 built-in modules :${BUILTINS}
12755 plug-in modules :${PLUGINS}
12756 vlc aliases :${ALIASES}
12758 You may now tune Makefile.opts at your convenience, for instance to choose
12759 which modules get compiled as plugins.
12761 To build vlc and its plugins, type \`$VLC_MAKE'.