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 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
4775 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
4777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4778 echo "$as_me:4778: checking for $ac_func" >&5
4779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4780 if eval "test \"\${$as_ac_var+set}\" = set"; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 cat >conftest.$ac_ext <<_ACEOF
4784 #line 4784 "configure"
4785 #include "confdefs.h"
4786 /* System header to define __stub macros and hopefully few prototypes,
4787 which can conflict with char $ac_func (); below. */
4789 /* Override any gcc2 internal prototype to avoid an error. */
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4801 /* The GNU C library defines this for functions which it implements
4802 to always fail with ENOSYS. Some functions are actually named
4803 something starting with __ and the normal name is an alias. */
4804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (eval echo "$as_me:4815: \"$ac_link\"") >&5
4816 (eval $ac_link) 2>&5
4818 echo "$as_me:4818: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -s conftest$ac_exeext'
4821 { (eval echo "$as_me:4821: \"$ac_try\"") >&5
4824 echo "$as_me:4824: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 eval "$as_ac_var=yes"
4828 echo "$as_me: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4830 eval "$as_ac_var=no"
4832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4834 echo "$as_me:4834: result: `eval echo '${'$as_ac_var'}'`" >&5
4835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4836 if test `eval echo '${'$as_ac_var'}'` = yes; then
4837 cat >>confdefs.h <<EOF
4838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4844 echo "$as_me:4844: checking for connect" >&5
4845 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4846 if test "${ac_cv_func_connect+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 cat >conftest.$ac_ext <<_ACEOF
4850 #line 4850 "configure"
4851 #include "confdefs.h"
4852 /* System header to define __stub macros and hopefully few prototypes,
4853 which can conflict with char connect (); below. */
4855 /* Override any gcc2 internal prototype to avoid an error. */
4859 /* We use char because int might match the return type of a gcc2
4860 builtin and then its argument prototype would still apply. */
4867 /* The GNU C library defines this for functions which it implements
4868 to always fail with ENOSYS. Some functions are actually named
4869 something starting with __ and the normal name is an alias. */
4870 #if defined (__stub_connect) || defined (__stub___connect)
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (eval echo "$as_me:4881: \"$ac_link\"") >&5
4882 (eval $ac_link) 2>&5
4884 echo "$as_me:4884: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -s conftest$ac_exeext'
4887 { (eval echo "$as_me:4887: \"$ac_try\"") >&5
4890 echo "$as_me:4890: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_cv_func_connect=yes
4894 echo "$as_me: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4896 ac_cv_func_connect=no
4898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4900 echo "$as_me:4900: result: $ac_cv_func_connect" >&5
4901 echo "${ECHO_T}$ac_cv_func_connect" >&6
4902 if test $ac_cv_func_connect = yes; then
4906 echo "$as_me:4906: checking for connect in -lsocket" >&5
4907 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4908 if test "${ac_cv_lib_socket_connect+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 ac_check_lib_save_LIBS=$LIBS
4912 LIBS="-lsocket $LIBS"
4913 cat >conftest.$ac_ext <<_ACEOF
4914 #line 4914 "configure"
4915 #include "confdefs.h"
4917 /* Override any gcc2 internal prototype to avoid an error. */
4921 /* We use char because int might match the return type of a gcc2
4922 builtin and then its argument prototype would still apply. */
4932 rm -f conftest.$ac_objext conftest$ac_exeext
4933 if { (eval echo "$as_me:4933: \"$ac_link\"") >&5
4934 (eval $ac_link) 2>&5
4936 echo "$as_me:4936: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -s conftest$ac_exeext'
4939 { (eval echo "$as_me:4939: \"$ac_try\"") >&5
4942 echo "$as_me:4942: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 ac_cv_lib_socket_connect=yes
4946 echo "$as_me: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4948 ac_cv_lib_socket_connect=no
4950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4951 LIBS=$ac_check_lib_save_LIBS
4953 echo "$as_me:4953: result: $ac_cv_lib_socket_connect" >&5
4954 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4955 if test $ac_cv_lib_socket_connect = yes; then
4956 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
4957 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
4963 echo "$as_me:4963: checking for gethostbyname" >&5
4964 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4965 if test "${ac_cv_func_gethostbyname+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 cat >conftest.$ac_ext <<_ACEOF
4969 #line 4969 "configure"
4970 #include "confdefs.h"
4971 /* System header to define __stub macros and hopefully few prototypes,
4972 which can conflict with char gethostbyname (); below. */
4974 /* Override any gcc2 internal prototype to avoid an error. */
4978 /* We use char because int might match the return type of a gcc2
4979 builtin and then its argument prototype would still apply. */
4980 char gethostbyname ();
4986 /* The GNU C library defines this for functions which it implements
4987 to always fail with ENOSYS. Some functions are actually named
4988 something starting with __ and the normal name is an alias. */
4989 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4999 rm -f conftest.$ac_objext conftest$ac_exeext
5000 if { (eval echo "$as_me:5000: \"$ac_link\"") >&5
5001 (eval $ac_link) 2>&5
5003 echo "$as_me:5003: \$? = $ac_status" >&5
5004 (exit $ac_status); } &&
5005 { ac_try='test -s conftest$ac_exeext'
5006 { (eval echo "$as_me:5006: \"$ac_try\"") >&5
5009 echo "$as_me:5009: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_cv_func_gethostbyname=yes
5013 echo "$as_me: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5015 ac_cv_func_gethostbyname=no
5017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5019 echo "$as_me:5019: result: $ac_cv_func_gethostbyname" >&5
5020 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5021 if test $ac_cv_func_gethostbyname = yes; then
5025 echo "$as_me:5025: checking for gethostbyname in -lnsl" >&5
5026 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5027 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_check_lib_save_LIBS=$LIBS
5032 cat >conftest.$ac_ext <<_ACEOF
5033 #line 5033 "configure"
5034 #include "confdefs.h"
5036 /* Override any gcc2 internal prototype to avoid an error. */
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5042 char gethostbyname ();
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (eval echo "$as_me:5052: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5055 echo "$as_me:5055: \$? = $ac_status" >&5
5056 (exit $ac_status); } &&
5057 { ac_try='test -s conftest$ac_exeext'
5058 { (eval echo "$as_me:5058: \"$ac_try\"") >&5
5061 echo "$as_me:5061: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_lib_nsl_gethostbyname=yes
5065 echo "$as_me: failed program was:" >&5
5066 cat conftest.$ac_ext >&5
5067 ac_cv_lib_nsl_gethostbyname=no
5069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5070 LIBS=$ac_check_lib_save_LIBS
5072 echo "$as_me:5072: result: $ac_cv_lib_nsl_gethostbyname" >&5
5073 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5074 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5075 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
5080 echo "$as_me:5080: checking for gethostbyname" >&5
5081 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5082 if test "${ac_cv_func_gethostbyname+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 cat >conftest.$ac_ext <<_ACEOF
5086 #line 5086 "configure"
5087 #include "confdefs.h"
5088 /* System header to define __stub macros and hopefully few prototypes,
5089 which can conflict with char gethostbyname (); below. */
5091 /* Override any gcc2 internal prototype to avoid an error. */
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5097 char gethostbyname ();
5103 /* The GNU C library defines this for functions which it implements
5104 to always fail with ENOSYS. Some functions are actually named
5105 something starting with __ and the normal name is an alias. */
5106 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:5117: \"$ac_link\"") >&5
5118 (eval $ac_link) 2>&5
5120 echo "$as_me:5120: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -s conftest$ac_exeext'
5123 { (eval echo "$as_me:5123: \"$ac_try\"") >&5
5126 echo "$as_me:5126: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 ac_cv_func_gethostbyname=yes
5130 echo "$as_me: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5132 ac_cv_func_gethostbyname=no
5134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5136 echo "$as_me:5136: result: $ac_cv_func_gethostbyname" >&5
5137 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5138 if test $ac_cv_func_gethostbyname = yes; then
5142 echo "$as_me:5142: checking for gethostbyname in -lbind" >&5
5143 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
5144 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 ac_check_lib_save_LIBS=$LIBS
5149 cat >conftest.$ac_ext <<_ACEOF
5150 #line 5150 "configure"
5151 #include "confdefs.h"
5153 /* Override any gcc2 internal prototype to avoid an error. */
5157 /* We use char because int might match the return type of a gcc2
5158 builtin and then its argument prototype would still apply. */
5159 char gethostbyname ();
5168 rm -f conftest.$ac_objext conftest$ac_exeext
5169 if { (eval echo "$as_me:5169: \"$ac_link\"") >&5
5170 (eval $ac_link) 2>&5
5172 echo "$as_me:5172: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -s conftest$ac_exeext'
5175 { (eval echo "$as_me:5175: \"$ac_try\"") >&5
5178 echo "$as_me:5178: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 ac_cv_lib_bind_gethostbyname=yes
5182 echo "$as_me: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5184 ac_cv_lib_bind_gethostbyname=no
5186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5187 LIBS=$ac_check_lib_save_LIBS
5189 echo "$as_me:5189: result: $ac_cv_lib_bind_gethostbyname" >&5
5190 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
5191 if test $ac_cv_lib_bind_gethostbyname = yes; then
5192 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5198 echo "$as_me:5198: checking for nanosleep" >&5
5199 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
5200 if test "${ac_cv_func_nanosleep+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 cat >conftest.$ac_ext <<_ACEOF
5204 #line 5204 "configure"
5205 #include "confdefs.h"
5206 /* System header to define __stub macros and hopefully few prototypes,
5207 which can conflict with char nanosleep (); below. */
5209 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5221 /* The GNU C library defines this for functions which it implements
5222 to always fail with ENOSYS. Some functions are actually named
5223 something starting with __ and the normal name is an alias. */
5224 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
5234 rm -f conftest.$ac_objext conftest$ac_exeext
5235 if { (eval echo "$as_me:5235: \"$ac_link\"") >&5
5236 (eval $ac_link) 2>&5
5238 echo "$as_me:5238: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
5240 { ac_try='test -s conftest$ac_exeext'
5241 { (eval echo "$as_me:5241: \"$ac_try\"") >&5
5244 echo "$as_me:5244: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 ac_cv_func_nanosleep=yes
5248 echo "$as_me: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5250 ac_cv_func_nanosleep=no
5252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5254 echo "$as_me:5254: result: $ac_cv_func_nanosleep" >&5
5255 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
5256 if test $ac_cv_func_nanosleep = yes; then
5260 echo "$as_me:5260: checking for nanosleep in -lrt" >&5
5261 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
5262 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 ac_check_lib_save_LIBS=$LIBS
5267 cat >conftest.$ac_ext <<_ACEOF
5268 #line 5268 "configure"
5269 #include "confdefs.h"
5271 /* Override any gcc2 internal prototype to avoid an error. */
5275 /* We use char because int might match the return type of a gcc2
5276 builtin and then its argument prototype would still apply. */
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (eval echo "$as_me:5287: \"$ac_link\"") >&5
5288 (eval $ac_link) 2>&5
5290 echo "$as_me:5290: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -s conftest$ac_exeext'
5293 { (eval echo "$as_me:5293: \"$ac_try\"") >&5
5296 echo "$as_me:5296: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 ac_cv_lib_rt_nanosleep=yes
5300 echo "$as_me: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5302 ac_cv_lib_rt_nanosleep=no
5304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5305 LIBS=$ac_check_lib_save_LIBS
5307 echo "$as_me:5307: result: $ac_cv_lib_rt_nanosleep" >&5
5308 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
5309 if test $ac_cv_lib_rt_nanosleep = yes; then
5310 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
5312 echo "$as_me:5312: checking for nanosleep in -lposix4" >&5
5313 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
5314 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 ac_check_lib_save_LIBS=$LIBS
5318 LIBS="-lposix4 $LIBS"
5319 cat >conftest.$ac_ext <<_ACEOF
5320 #line 5320 "configure"
5321 #include "confdefs.h"
5323 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:5339: \"$ac_link\"") >&5
5340 (eval $ac_link) 2>&5
5342 echo "$as_me:5342: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -s conftest$ac_exeext'
5345 { (eval echo "$as_me:5345: \"$ac_try\"") >&5
5348 echo "$as_me:5348: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_cv_lib_posix4_nanosleep=yes
5352 echo "$as_me: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5354 ac_cv_lib_posix4_nanosleep=no
5356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5357 LIBS=$ac_check_lib_save_LIBS
5359 echo "$as_me:5359: result: $ac_cv_lib_posix4_nanosleep" >&5
5360 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
5361 if test $ac_cv_lib_posix4_nanosleep = yes; then
5362 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
5369 if test x$have_nanosleep = x1; then
5371 cat >>confdefs.h <<\EOF
5372 #define HAVE_NANOSLEEP 1
5376 echo "$as_me:5376: checking for inet_aton" >&5
5377 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
5378 if test "${ac_cv_func_inet_aton+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 cat >conftest.$ac_ext <<_ACEOF
5382 #line 5382 "configure"
5383 #include "confdefs.h"
5384 /* System header to define __stub macros and hopefully few prototypes,
5385 which can conflict with char inet_aton (); below. */
5387 /* Override any gcc2 internal prototype to avoid an error. */
5391 /* We use char because int might match the return type of a gcc2
5392 builtin and then its argument prototype would still apply. */
5399 /* The GNU C library defines this for functions which it implements
5400 to always fail with ENOSYS. Some functions are actually named
5401 something starting with __ and the normal name is an alias. */
5402 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (eval echo "$as_me:5413: \"$ac_link\"") >&5
5414 (eval $ac_link) 2>&5
5416 echo "$as_me:5416: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -s conftest$ac_exeext'
5419 { (eval echo "$as_me:5419: \"$ac_try\"") >&5
5422 echo "$as_me:5422: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_cv_func_inet_aton=yes
5426 echo "$as_me: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5428 ac_cv_func_inet_aton=no
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5432 echo "$as_me:5432: result: $ac_cv_func_inet_aton" >&5
5433 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
5434 if test $ac_cv_func_inet_aton = yes; then
5438 echo "$as_me:5438: checking for inet_aton in -lresolv" >&5
5439 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5440 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 ac_check_lib_save_LIBS=$LIBS
5444 LIBS="-lresolv $LIBS"
5445 cat >conftest.$ac_ext <<_ACEOF
5446 #line 5446 "configure"
5447 #include "confdefs.h"
5449 /* Override any gcc2 internal prototype to avoid an error. */
5453 /* We use char because int might match the return type of a gcc2
5454 builtin and then its argument prototype would still apply. */
5464 rm -f conftest.$ac_objext conftest$ac_exeext
5465 if { (eval echo "$as_me:5465: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>&5
5468 echo "$as_me:5468: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -s conftest$ac_exeext'
5471 { (eval echo "$as_me:5471: \"$ac_try\"") >&5
5474 echo "$as_me:5474: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_lib_resolv_inet_aton=yes
5478 echo "$as_me: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5480 ac_cv_lib_resolv_inet_aton=no
5482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5483 LIBS=$ac_check_lib_save_LIBS
5485 echo "$as_me:5485: result: $ac_cv_lib_resolv_inet_aton" >&5
5486 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5487 if test $ac_cv_lib_resolv_inet_aton = yes; then
5488 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
5493 echo "$as_me:5493: checking for textdomain" >&5
5494 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
5495 if test "${ac_cv_func_textdomain+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 cat >conftest.$ac_ext <<_ACEOF
5499 #line 5499 "configure"
5500 #include "confdefs.h"
5501 /* System header to define __stub macros and hopefully few prototypes,
5502 which can conflict with char textdomain (); below. */
5504 /* Override any gcc2 internal prototype to avoid an error. */
5508 /* We use char because int might match the return type of a gcc2
5509 builtin and then its argument prototype would still apply. */
5516 /* The GNU C library defines this for functions which it implements
5517 to always fail with ENOSYS. Some functions are actually named
5518 something starting with __ and the normal name is an alias. */
5519 #if defined (__stub_textdomain) || defined (__stub___textdomain)
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:5530: \"$ac_link\"") >&5
5531 (eval $ac_link) 2>&5
5533 echo "$as_me:5533: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 { ac_try='test -s conftest$ac_exeext'
5536 { (eval echo "$as_me:5536: \"$ac_try\"") >&5
5539 echo "$as_me:5539: \$? = $ac_status" >&5
5540 (exit $ac_status); }; }; then
5541 ac_cv_func_textdomain=yes
5543 echo "$as_me: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5545 ac_cv_func_textdomain=no
5547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5549 echo "$as_me:5549: result: $ac_cv_func_textdomain" >&5
5550 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
5551 if test $ac_cv_func_textdomain = yes; then
5555 echo "$as_me:5555: checking for textdomain in -lintl" >&5
5556 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
5557 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 ac_check_lib_save_LIBS=$LIBS
5562 cat >conftest.$ac_ext <<_ACEOF
5563 #line 5563 "configure"
5564 #include "confdefs.h"
5566 /* Override any gcc2 internal prototype to avoid an error. */
5570 /* We use char because int might match the return type of a gcc2
5571 builtin and then its argument prototype would still apply. */
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (eval echo "$as_me:5582: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5585 echo "$as_me:5585: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:5588: \"$ac_try\"") >&5
5591 echo "$as_me:5591: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 ac_cv_lib_intl_textdomain=yes
5595 echo "$as_me: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 ac_cv_lib_intl_textdomain=no
5599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5600 LIBS=$ac_check_lib_save_LIBS
5602 echo "$as_me:5602: result: $ac_cv_lib_intl_textdomain" >&5
5603 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
5604 if test $ac_cv_lib_intl_textdomain = yes; then
5605 save_LDFLAGS="${save_LDFLAGS} -lintl"
5611 echo "$as_me:5611: checking for getopt_long" >&5
5612 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
5613 if test "${ac_cv_func_getopt_long+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line 5617 "configure"
5618 #include "confdefs.h"
5619 /* System header to define __stub macros and hopefully few prototypes,
5620 which can conflict with char getopt_long (); below. */
5622 /* Override any gcc2 internal prototype to avoid an error. */
5626 /* We use char because int might match the return type of a gcc2
5627 builtin and then its argument prototype would still apply. */
5628 char getopt_long ();
5634 /* The GNU C library defines this for functions which it implements
5635 to always fail with ENOSYS. Some functions are actually named
5636 something starting with __ and the normal name is an alias. */
5637 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:5648: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>&5
5651 echo "$as_me:5651: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -s conftest$ac_exeext'
5654 { (eval echo "$as_me:5654: \"$ac_try\"") >&5
5657 echo "$as_me:5657: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5659 ac_cv_func_getopt_long=yes
5661 echo "$as_me: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5663 ac_cv_func_getopt_long=no
5665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667 echo "$as_me:5667: result: $ac_cv_func_getopt_long" >&5
5668 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
5669 if test $ac_cv_func_getopt_long = yes; then
5671 cat >>confdefs.h <<\EOF
5672 #define HAVE_GETOPT_LONG 1
5676 # FreeBSD has a gnugetopt library for this:
5677 echo "$as_me:5677: checking for getopt_long in -lgnugetopt" >&5
5678 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5679 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 ac_check_lib_save_LIBS=$LIBS
5683 LIBS="-lgnugetopt $LIBS"
5684 cat >conftest.$ac_ext <<_ACEOF
5685 #line 5685 "configure"
5686 #include "confdefs.h"
5688 /* Override any gcc2 internal prototype to avoid an error. */
5692 /* We use char because int might match the return type of a gcc2
5693 builtin and then its argument prototype would still apply. */
5694 char getopt_long ();
5703 rm -f conftest.$ac_objext conftest$ac_exeext
5704 if { (eval echo "$as_me:5704: \"$ac_link\"") >&5
5705 (eval $ac_link) 2>&5
5707 echo "$as_me:5707: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try='test -s conftest$ac_exeext'
5710 { (eval echo "$as_me:5710: \"$ac_try\"") >&5
5713 echo "$as_me:5713: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_lib_gnugetopt_getopt_long=yes
5717 echo "$as_me: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5719 ac_cv_lib_gnugetopt_getopt_long=no
5721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5722 LIBS=$ac_check_lib_save_LIBS
5724 echo "$as_me:5724: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5725 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5726 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5728 cat >>confdefs.h <<\EOF
5729 #define HAVE_GETOPT_LONG 1
5731 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
5738 echo "$as_me:5738: checking return type of signal handlers" >&5
5739 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5740 if test "${ac_cv_type_signal+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 cat >conftest.$ac_ext <<_ACEOF
5744 #line 5744 "configure"
5745 #include "confdefs.h"
5746 #include <sys/types.h>
5752 extern "C" void (*signal (int, void (*)(int)))(int);
5754 void (*signal ()) ();
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:5766: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>&5
5769 echo "$as_me:5769: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -s conftest.$ac_objext'
5772 { (eval echo "$as_me:5772: \"$ac_try\"") >&5
5775 echo "$as_me:5775: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_cv_type_signal=void
5779 echo "$as_me: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5781 ac_cv_type_signal=int
5783 rm -f conftest.$ac_objext conftest.$ac_ext
5785 echo "$as_me:5785: result: $ac_cv_type_signal" >&5
5786 echo "${ECHO_T}$ac_cv_type_signal" >&6
5788 cat >>confdefs.h <<EOF
5789 #define RETSIGTYPE $ac_cv_type_signal
5792 echo "$as_me:5792: checking for dlopen in -ldl" >&5
5793 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5794 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 ac_check_lib_save_LIBS=$LIBS
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line 5800 "configure"
5801 #include "confdefs.h"
5803 /* Override any gcc2 internal prototype to avoid an error. */
5807 /* We use char because int might match the return type of a gcc2
5808 builtin and then its argument prototype would still apply. */
5818 rm -f conftest.$ac_objext conftest$ac_exeext
5819 if { (eval echo "$as_me:5819: \"$ac_link\"") >&5
5820 (eval $ac_link) 2>&5
5822 echo "$as_me:5822: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -s conftest$ac_exeext'
5825 { (eval echo "$as_me:5825: \"$ac_try\"") >&5
5828 echo "$as_me:5828: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_cv_lib_dl_dlopen=yes
5832 echo "$as_me: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5834 ac_cv_lib_dl_dlopen=no
5836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5837 LIBS=$ac_check_lib_save_LIBS
5839 echo "$as_me:5839: result: $ac_cv_lib_dl_dlopen" >&5
5840 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5841 if test $ac_cv_lib_dl_dlopen = yes; then
5842 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
5845 echo "$as_me:5845: checking for cos in -lm" >&5
5846 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
5847 if test "${ac_cv_lib_m_cos+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 ac_check_lib_save_LIBS=$LIBS
5852 cat >conftest.$ac_ext <<_ACEOF
5853 #line 5853 "configure"
5854 #include "confdefs.h"
5856 /* Override any gcc2 internal prototype to avoid an error. */
5860 /* We use char because int might match the return type of a gcc2
5861 builtin and then its argument prototype would still apply. */
5871 rm -f conftest.$ac_objext conftest$ac_exeext
5872 if { (eval echo "$as_me:5872: \"$ac_link\"") >&5
5873 (eval $ac_link) 2>&5
5875 echo "$as_me:5875: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -s conftest$ac_exeext'
5878 { (eval echo "$as_me:5878: \"$ac_try\"") >&5
5881 echo "$as_me:5881: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5885 echo "$as_me: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5892 echo "$as_me:5892: result: $ac_cv_lib_m_cos" >&5
5893 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
5894 if test $ac_cv_lib_m_cos = yes; then
5895 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
5896 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
5899 echo "$as_me:5899: checking for pow in -lm" >&5
5900 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
5901 if test "${ac_cv_lib_m_pow+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 ac_check_lib_save_LIBS=$LIBS
5906 cat >conftest.$ac_ext <<_ACEOF
5907 #line 5907 "configure"
5908 #include "confdefs.h"
5910 /* Override any gcc2 internal prototype to avoid an error. */
5914 /* We use char because int might match the return type of a gcc2
5915 builtin and then its argument prototype would still apply. */
5925 rm -f conftest.$ac_objext conftest$ac_exeext
5926 if { (eval echo "$as_me:5926: \"$ac_link\"") >&5
5927 (eval $ac_link) 2>&5
5929 echo "$as_me:5929: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -s conftest$ac_exeext'
5932 { (eval echo "$as_me:5932: \"$ac_try\"") >&5
5935 echo "$as_me:5935: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5939 echo "$as_me: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5944 LIBS=$ac_check_lib_save_LIBS
5946 echo "$as_me:5946: result: $ac_cv_lib_m_pow" >&5
5947 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
5948 if test $ac_cv_lib_m_pow = yes; then
5949 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
5950 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
5951 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
5952 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
5957 if test "x${THREAD_LIB}" = xerror; then
5958 echo "$as_me:5958: checking for pthread_attr_init in -lpthread" >&5
5959 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
5960 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 ac_check_lib_save_LIBS=$LIBS
5964 LIBS="-lpthread $LIBS"
5965 cat >conftest.$ac_ext <<_ACEOF
5966 #line 5966 "configure"
5967 #include "confdefs.h"
5969 /* Override any gcc2 internal prototype to avoid an error. */
5973 /* We use char because int might match the return type of a gcc2
5974 builtin and then its argument prototype would still apply. */
5975 char pthread_attr_init ();
5979 pthread_attr_init ();
5984 rm -f conftest.$ac_objext conftest$ac_exeext
5985 if { (eval echo "$as_me:5985: \"$ac_link\"") >&5
5986 (eval $ac_link) 2>&5
5988 echo "$as_me:5988: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -s conftest$ac_exeext'
5991 { (eval echo "$as_me:5991: \"$ac_try\"") >&5
5994 echo "$as_me:5994: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_cv_lib_pthread_pthread_attr_init=yes
5998 echo "$as_me: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6000 ac_cv_lib_pthread_pthread_attr_init=no
6002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6003 LIBS=$ac_check_lib_save_LIBS
6005 echo "$as_me:6005: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6006 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
6007 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6008 THREAD_LIB="-lpthread"
6012 if test "x${THREAD_LIB}" = xerror; then
6013 echo "$as_me:6013: checking for pthread_attr_init in -lpthreads" >&5
6014 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
6015 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 ac_check_lib_save_LIBS=$LIBS
6019 LIBS="-lpthreads $LIBS"
6020 cat >conftest.$ac_ext <<_ACEOF
6021 #line 6021 "configure"
6022 #include "confdefs.h"
6024 /* Override any gcc2 internal prototype to avoid an error. */
6028 /* We use char because int might match the return type of a gcc2
6029 builtin and then its argument prototype would still apply. */
6030 char pthread_attr_init ();
6034 pthread_attr_init ();
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:6040: \"$ac_link\"") >&5
6041 (eval $ac_link) 2>&5
6043 echo "$as_me:6043: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -s conftest$ac_exeext'
6046 { (eval echo "$as_me:6046: \"$ac_try\"") >&5
6049 echo "$as_me:6049: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 ac_cv_lib_pthreads_pthread_attr_init=yes
6053 echo "$as_me: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 ac_cv_lib_pthreads_pthread_attr_init=no
6057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6058 LIBS=$ac_check_lib_save_LIBS
6060 echo "$as_me:6060: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
6061 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
6062 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
6063 THREAD_LIB="-lpthreads"
6067 if test "x${THREAD_LIB}" = xerror; then
6068 echo "$as_me:6068: checking for pthread_attr_init in -lc_r" >&5
6069 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
6070 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 ac_check_lib_save_LIBS=$LIBS
6075 cat >conftest.$ac_ext <<_ACEOF
6076 #line 6076 "configure"
6077 #include "confdefs.h"
6079 /* Override any gcc2 internal prototype to avoid an error. */
6083 /* We use char because int might match the return type of a gcc2
6084 builtin and then its argument prototype would still apply. */
6085 char pthread_attr_init ();
6089 pthread_attr_init ();
6094 rm -f conftest.$ac_objext conftest$ac_exeext
6095 if { (eval echo "$as_me:6095: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>&5
6098 echo "$as_me:6098: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -s conftest$ac_exeext'
6101 { (eval echo "$as_me:6101: \"$ac_try\"") >&5
6104 echo "$as_me:6104: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_cv_lib_c_r_pthread_attr_init=yes
6108 echo "$as_me: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6110 ac_cv_lib_c_r_pthread_attr_init=no
6112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6113 LIBS=$ac_check_lib_save_LIBS
6115 echo "$as_me:6115: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
6116 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
6117 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
6122 if test "x${THREAD_LIB}" = xerror; then
6123 echo "$as_me:6123: checking for pthread_attr_init" >&5
6124 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
6125 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 cat >conftest.$ac_ext <<_ACEOF
6129 #line 6129 "configure"
6130 #include "confdefs.h"
6131 /* System header to define __stub macros and hopefully few prototypes,
6132 which can conflict with char pthread_attr_init (); below. */
6134 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6140 char pthread_attr_init ();
6146 /* The GNU C library defines this for functions which it implements
6147 to always fail with ENOSYS. Some functions are actually named
6148 something starting with __ and the normal name is an alias. */
6149 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
6152 f = pthread_attr_init;
6159 rm -f conftest.$ac_objext conftest$ac_exeext
6160 if { (eval echo "$as_me:6160: \"$ac_link\"") >&5
6161 (eval $ac_link) 2>&5
6163 echo "$as_me:6163: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -s conftest$ac_exeext'
6166 { (eval echo "$as_me:6166: \"$ac_try\"") >&5
6169 echo "$as_me:6169: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_cv_func_pthread_attr_init=yes
6173 echo "$as_me: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 ac_cv_func_pthread_attr_init=no
6177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6179 echo "$as_me:6179: result: $ac_cv_func_pthread_attr_init" >&5
6180 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
6185 echo "$as_me:6185: checking for cthread_fork in -lthreads" >&5
6186 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
6187 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 ac_check_lib_save_LIBS=$LIBS
6191 LIBS="-lthreads $LIBS"
6192 cat >conftest.$ac_ext <<_ACEOF
6193 #line 6193 "configure"
6194 #include "confdefs.h"
6196 /* Override any gcc2 internal prototype to avoid an error. */
6200 /* We use char because int might match the return type of a gcc2
6201 builtin and then its argument prototype would still apply. */
6202 char cthread_fork ();
6211 rm -f conftest.$ac_objext conftest$ac_exeext
6212 if { (eval echo "$as_me:6212: \"$ac_link\"") >&5
6213 (eval $ac_link) 2>&5
6215 echo "$as_me:6215: \$? = $ac_status" >&5
6216 (exit $ac_status); } &&
6217 { ac_try='test -s conftest$ac_exeext'
6218 { (eval echo "$as_me:6218: \"$ac_try\"") >&5
6221 echo "$as_me:6221: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 ac_cv_lib_threads_cthread_fork=yes
6225 echo "$as_me: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 ac_cv_lib_threads_cthread_fork=no
6229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6232 echo "$as_me:6232: result: $ac_cv_lib_threads_cthread_fork" >&5
6233 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
6234 if test $ac_cv_lib_threads_cthread_fork = yes; then
6235 THREAD_LIB="-lthreads"
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line 6239 "configure"
6240 #include "confdefs.h"
6241 #include <pthread.h>
6244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6245 egrep "pthread_cond_t" >/dev/null 2>&1; then
6247 cat >>confdefs.h <<\EOF
6248 #define PTHREAD_COND_T_IN_PTHREAD_H 1
6254 cat >conftest.$ac_ext <<_ACEOF
6255 #line 6255 "configure"
6256 #include "confdefs.h"
6257 #include <strings.h>
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261 egrep "strncasecmp" >/dev/null 2>&1; then
6263 cat >>confdefs.h <<\EOF
6264 #define STRNCASECMP_IN_STRINGS_H 1
6270 for ac_header in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
6272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6273 echo "$as_me:6273: checking for $ac_header" >&5
6274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 cat >conftest.$ac_ext <<_ACEOF
6279 #line 6279 "configure"
6280 #include "confdefs.h"
6281 #include <$ac_header>
6283 if { (eval echo "$as_me:6283: \"$ac_cpp conftest.$ac_ext\"") >&5
6284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6286 egrep -v '^ *\+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:6289: \$? = $ac_status" >&5
6290 (exit $ac_status); } >/dev/null; then
6291 if test -s conftest.err; then
6292 ac_cpp_err=$ac_c_preproc_warn_flag
6299 if test -z "$ac_cpp_err"; then
6300 eval "$as_ac_Header=yes"
6302 echo "$as_me: failed program was:" >&5
6303 cat conftest.$ac_ext >&5
6304 eval "$as_ac_Header=no"
6306 rm -f conftest.err conftest.$ac_ext
6308 echo "$as_me:6308: result: `eval echo '${'$as_ac_Header'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6311 cat >>confdefs.h <<EOF
6312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6318 for ac_header in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
6320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 echo "$as_me:6321: checking for $ac_header" >&5
6322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 cat >conftest.$ac_ext <<_ACEOF
6327 #line 6327 "configure"
6328 #include "confdefs.h"
6329 #include <$ac_header>
6331 if { (eval echo "$as_me:6331: \"$ac_cpp conftest.$ac_ext\"") >&5
6332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6334 egrep -v '^ *\+' conftest.er1 >conftest.err
6336 cat conftest.err >&5
6337 echo "$as_me:6337: \$? = $ac_status" >&5
6338 (exit $ac_status); } >/dev/null; then
6339 if test -s conftest.err; then
6340 ac_cpp_err=$ac_c_preproc_warn_flag
6347 if test -z "$ac_cpp_err"; then
6348 eval "$as_ac_Header=yes"
6350 echo "$as_me: failed program was:" >&5
6351 cat conftest.$ac_ext >&5
6352 eval "$as_ac_Header=no"
6354 rm -f conftest.err conftest.$ac_ext
6356 echo "$as_me:6356: result: `eval echo '${'$as_ac_Header'}'`" >&5
6357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6359 cat >>confdefs.h <<EOF
6360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6366 for ac_header in dlfcn.h image.h
6368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6369 echo "$as_me:6369: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.$ac_ext <<_ACEOF
6375 #line 6375 "configure"
6376 #include "confdefs.h"
6377 #include <$ac_header>
6379 if { (eval echo "$as_me:6379: \"$ac_cpp conftest.$ac_ext\"") >&5
6380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6382 egrep -v '^ *\+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 echo "$as_me:6385: \$? = $ac_status" >&5
6386 (exit $ac_status); } >/dev/null; then
6387 if test -s conftest.err; then
6388 ac_cpp_err=$ac_c_preproc_warn_flag
6395 if test -z "$ac_cpp_err"; then
6396 eval "$as_ac_Header=yes"
6398 echo "$as_me: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6400 eval "$as_ac_Header=no"
6402 rm -f conftest.err conftest.$ac_ext
6404 echo "$as_me:6404: result: `eval echo '${'$as_ac_Header'}'`" >&5
6405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6407 cat >>confdefs.h <<EOF
6408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6414 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
6416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6417 echo "$as_me:6417: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6423 #line 6423 "configure"
6424 #include "confdefs.h"
6425 #include <$ac_header>
6427 if { (eval echo "$as_me:6427: \"$ac_cpp conftest.$ac_ext\"") >&5
6428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6430 egrep -v '^ *\+' conftest.er1 >conftest.err
6432 cat conftest.err >&5
6433 echo "$as_me:6433: \$? = $ac_status" >&5
6434 (exit $ac_status); } >/dev/null; then
6435 if test -s conftest.err; then
6436 ac_cpp_err=$ac_c_preproc_warn_flag
6443 if test -z "$ac_cpp_err"; then
6444 eval "$as_ac_Header=yes"
6446 echo "$as_me: failed program was:" >&5
6447 cat conftest.$ac_ext >&5
6448 eval "$as_ac_Header=no"
6450 rm -f conftest.err conftest.$ac_ext
6452 echo "$as_me:6452: result: `eval echo '${'$as_ac_Header'}'`" >&5
6453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6455 cat >>confdefs.h <<EOF
6456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6462 for ac_header in machine/param.h sys/shm.h
6464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6465 echo "$as_me:6465: checking for $ac_header" >&5
6466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line 6471 "configure"
6472 #include "confdefs.h"
6473 #include <$ac_header>
6475 if { (eval echo "$as_me:6475: \"$ac_cpp conftest.$ac_ext\"") >&5
6476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6478 egrep -v '^ *\+' conftest.er1 >conftest.err
6480 cat conftest.err >&5
6481 echo "$as_me:6481: \$? = $ac_status" >&5
6482 (exit $ac_status); } >/dev/null; then
6483 if test -s conftest.err; then
6484 ac_cpp_err=$ac_c_preproc_warn_flag
6491 if test -z "$ac_cpp_err"; then
6492 eval "$as_ac_Header=yes"
6494 echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6496 eval "$as_ac_Header=no"
6498 rm -f conftest.err conftest.$ac_ext
6500 echo "$as_me:6500: result: `eval echo '${'$as_ac_Header'}'`" >&5
6501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h <<EOF
6504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6510 for ac_header in linux/version.h
6512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6513 echo "$as_me:6513: checking for $ac_header" >&5
6514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 cat >conftest.$ac_ext <<_ACEOF
6519 #line 6519 "configure"
6520 #include "confdefs.h"
6521 #include <$ac_header>
6523 if { (eval echo "$as_me:6523: \"$ac_cpp conftest.$ac_ext\"") >&5
6524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6526 egrep -v '^ *\+' conftest.er1 >conftest.err
6528 cat conftest.err >&5
6529 echo "$as_me:6529: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev/null; then
6531 if test -s conftest.err; then
6532 ac_cpp_err=$ac_c_preproc_warn_flag
6539 if test -z "$ac_cpp_err"; then
6540 eval "$as_ac_Header=yes"
6542 echo "$as_me: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6544 eval "$as_ac_Header=no"
6546 rm -f conftest.err conftest.$ac_ext
6548 echo "$as_me:6548: result: `eval echo '${'$as_ac_Header'}'`" >&5
6549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6551 cat >>confdefs.h <<EOF
6552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6558 echo "$as_me:6558: checking whether time.h and sys/time.h may both be included" >&5
6559 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6560 if test "${ac_cv_header_time+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 cat >conftest.$ac_ext <<_ACEOF
6564 #line 6564 "configure"
6565 #include "confdefs.h"
6566 #include <sys/types.h>
6567 #include <sys/time.h>
6573 if ((struct tm *) 0)
6579 rm -f conftest.$ac_objext
6580 if { (eval echo "$as_me:6580: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>&5
6583 echo "$as_me:6583: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:6586: \"$ac_try\"") >&5
6589 echo "$as_me:6589: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_cv_header_time=yes
6593 echo "$as_me: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 ac_cv_header_time=no
6597 rm -f conftest.$ac_objext conftest.$ac_ext
6599 echo "$as_me:6599: result: $ac_cv_header_time" >&5
6600 echo "${ECHO_T}$ac_cv_header_time" >&6
6601 if test $ac_cv_header_time = yes; then
6603 cat >>confdefs.h <<\EOF
6604 #define TIME_WITH_SYS_TIME 1
6609 cat >conftest.$ac_ext <<_ACEOF
6610 #line 6610 "configure"
6611 #include "confdefs.h"
6615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616 egrep "nanosleep" >/dev/null 2>&1; then
6618 cat >>confdefs.h <<\EOF
6619 #define HAVE_DECL_NANOSLEEP 1
6625 cat >conftest.$ac_ext <<_ACEOF
6626 #line 6626 "configure"
6627 #include "confdefs.h"
6628 #include <sys/time.h>
6631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6632 egrep "timespec" >/dev/null 2>&1; then
6634 cat >>confdefs.h <<\EOF
6635 #define HAVE_STRUCT_TIMESPEC 1
6641 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
6643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644 echo "$as_me:6644: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 cat >conftest.$ac_ext <<_ACEOF
6650 #line 6650 "configure"
6651 #include "confdefs.h"
6652 #include <$ac_header>
6654 if { (eval echo "$as_me:6654: \"$ac_cpp conftest.$ac_ext\"") >&5
6655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6657 egrep -v '^ *\+' conftest.er1 >conftest.err
6659 cat conftest.err >&5
6660 echo "$as_me:6660: \$? = $ac_status" >&5
6661 (exit $ac_status); } >/dev/null; then
6662 if test -s conftest.err; then
6663 ac_cpp_err=$ac_c_preproc_warn_flag
6670 if test -z "$ac_cpp_err"; then
6671 eval "$as_ac_Header=yes"
6673 echo "$as_me: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 eval "$as_ac_Header=no"
6677 rm -f conftest.err conftest.$ac_ext
6679 echo "$as_me:6679: result: `eval echo '${'$as_ac_Header'}'`" >&5
6680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6682 cat >>confdefs.h <<EOF
6683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6689 if test x$SYS != xmingw32
6691 if test x$x_includes = xNONE; then
6692 x_includes=/usr/X11R6/include
6694 if test x$x_libraries = xNONE; then
6695 x_libraries=/usr/X11R6/lib
6697 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6699 for ac_header in X11/extensions/dpms.h
6701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6702 echo "$as_me:6702: checking for $ac_header" >&5
6703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 cat >conftest.$ac_ext <<_ACEOF
6708 #line 6708 "configure"
6709 #include "confdefs.h"
6710 #include <$ac_header>
6712 if { (eval echo "$as_me:6712: \"$ac_cpp conftest.$ac_ext\"") >&5
6713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6715 egrep -v '^ *\+' conftest.er1 >conftest.err
6717 cat conftest.err >&5
6718 echo "$as_me:6718: \$? = $ac_status" >&5
6719 (exit $ac_status); } >/dev/null; then
6720 if test -s conftest.err; then
6721 ac_cpp_err=$ac_c_preproc_warn_flag
6728 if test -z "$ac_cpp_err"; then
6729 eval "$as_ac_Header=yes"
6731 echo "$as_me: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 eval "$as_ac_Header=no"
6735 rm -f conftest.err conftest.$ac_ext
6737 echo "$as_me:6737: result: `eval echo '${'$as_ac_Header'}'`" >&5
6738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6740 cat >>confdefs.h <<EOF
6741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6744 cat >conftest.$ac_ext <<_ACEOF
6745 #line 6745 "configure"
6746 #include "confdefs.h"
6747 #include <X11/extensions/dpms.h>
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 egrep "DPMSInfo" >/dev/null 2>&1; then
6753 cat >>confdefs.h <<\EOF
6754 #define DPMSINFO_IN_DPMS_H 1
6763 CPPFLAGS="$save_CPPFLAGS"
6766 echo "$as_me:6766: checking for ntohl in sys/param.h" >&5
6767 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
6768 if test "${ac_cv_c_ntohl_sys_param_h+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 CFLAGS="${save_CFLAGS} -Wall -Werror"
6772 cat >conftest.$ac_ext <<_ACEOF
6773 #line 6773 "configure"
6774 #include "confdefs.h"
6775 #include <sys/param.h>
6779 void foo() { int meuh; ntohl(meuh); }
6784 rm -f conftest.$ac_objext
6785 if { (eval echo "$as_me:6785: \"$ac_compile\"") >&5
6786 (eval $ac_compile) 2>&5
6788 echo "$as_me:6788: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 { ac_try='test -s conftest.$ac_objext'
6791 { (eval echo "$as_me:6791: \"$ac_try\"") >&5
6794 echo "$as_me:6794: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }; then
6796 ac_cv_c_ntohl_sys_param_h=yes
6798 echo "$as_me: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6800 ac_cv_c_ntohl_sys_param_h=no
6802 rm -f conftest.$ac_objext conftest.$ac_ext
6804 echo "$as_me:6804: result: $ac_cv_c_ntohl_sys_param_h" >&5
6805 echo "${ECHO_T}$ac_cv_c_ntohl_sys_param_h" >&6
6806 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
6808 cat >>confdefs.h <<\EOF
6809 #define NTOHL_IN_SYS_PARAM_H 1
6814 echo "$as_me:6814: checking if \$CC accepts -finline-limit" >&5
6815 echo $ECHO_N "checking if \$CC accepts -finline-limit... $ECHO_C" >&6
6816 if test "${ac_cv_c_inline_limit+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 CFLAGS="${save_CFLAGS} -finline-limit-30000"
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line 6821 "configure"
6822 #include "confdefs.h"
6832 rm -f conftest.$ac_objext
6833 if { (eval echo "$as_me:6833: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>&5
6836 echo "$as_me:6836: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -s conftest.$ac_objext'
6839 { (eval echo "$as_me:6839: \"$ac_try\"") >&5
6842 echo "$as_me:6842: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 ac_cv_c_inline_limit=yes
6846 echo "$as_me: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6848 ac_cv_c_inline_limit=no
6850 rm -f conftest.$ac_objext conftest.$ac_ext
6852 echo "$as_me:6852: result: $ac_cv_c_inline_limit" >&5
6853 echo "${ECHO_T}$ac_cv_c_inline_limit" >&6
6854 if test x"$ac_cv_c_inline_limit" != x"no"; then
6855 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
6858 echo "$as_me:6858: checking if \$CC accepts -Wall -Winline" >&5
6859 echo $ECHO_N "checking if \$CC accepts -Wall -Winline... $ECHO_C" >&6
6860 if test "${ac_cv_c_Wall_Winline+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 CFLAGS="${save_CFLAGS} -Wall -Winline"
6864 cat >conftest.$ac_ext <<_ACEOF
6865 #line 6865 "configure"
6866 #include "confdefs.h"
6876 rm -f conftest.$ac_objext
6877 if { (eval echo "$as_me:6877: \"$ac_compile\"") >&5
6878 (eval $ac_compile) 2>&5
6880 echo "$as_me:6880: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -s conftest.$ac_objext'
6883 { (eval echo "$as_me:6883: \"$ac_try\"") >&5
6886 echo "$as_me:6886: \$? = $ac_status" >&5
6887 (exit $ac_status); }; }; then
6888 ac_cv_c_Wall_Winline=yes
6890 echo "$as_me: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6892 ac_cv_c_Wall_Winline=no
6894 rm -f conftest.$ac_objext conftest.$ac_ext
6896 echo "$as_me:6896: result: $ac_cv_c_Wall_Winline" >&5
6897 echo "${ECHO_T}$ac_cv_c_Wall_Winline" >&6
6898 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
6899 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
6901 echo "$as_me:6901: checking if \$CC accepts -wall -winline" >&5
6902 echo $ECHO_N "checking if \$CC accepts -wall -winline... $ECHO_C" >&6
6903 if test "${ac_cv_c_wall_winline+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 CFLAGS="${save_CFLAGS} -wall -winline"
6907 cat >conftest.$ac_ext <<_ACEOF
6908 #line 6908 "configure"
6909 #include "confdefs.h"
6919 rm -f conftest.$ac_objext
6920 if { (eval echo "$as_me:6920: \"$ac_compile\"") >&5
6921 (eval $ac_compile) 2>&5
6923 echo "$as_me:6923: \$? = $ac_status" >&5
6924 (exit $ac_status); } &&
6925 { ac_try='test -s conftest.$ac_objext'
6926 { (eval echo "$as_me:6926: \"$ac_try\"") >&5
6929 echo "$as_me:6929: \$? = $ac_status" >&5
6930 (exit $ac_status); }; }; then
6931 ac_cv_c_wall_winline=yes
6933 echo "$as_me: failed program was:" >&5
6934 cat conftest.$ac_ext >&5
6935 ac_cv_c_wall_winline=no
6937 rm -f conftest.$ac_objext conftest.$ac_ext
6939 echo "$as_me:6939: result: $ac_cv_c_wall_winline" >&5
6940 echo "${ECHO_T}$ac_cv_c_wall_winline" >&6
6941 if test x"$ac_cv_c_wall_winline" != x"no"; then
6942 save_CFLAGS="${save_CFLAGS} -wall -winline"
6946 echo "$as_me:6946: checking if \$CC accepts -pipe" >&5
6947 echo $ECHO_N "checking if \$CC accepts -pipe... $ECHO_C" >&6
6948 if test "${ac_cv_c_pipe+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 CFLAGS="${save_CFLAGS} -pipe"
6952 cat >conftest.$ac_ext <<_ACEOF
6953 #line 6953 "configure"
6954 #include "confdefs.h"
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:6965: \"$ac_compile\"") >&5
6966 (eval $ac_compile) 2>&5
6968 echo "$as_me:6968: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -s conftest.$ac_objext'
6971 { (eval echo "$as_me:6971: \"$ac_try\"") >&5
6974 echo "$as_me:6974: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6978 echo "$as_me: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6982 rm -f conftest.$ac_objext conftest.$ac_ext
6984 echo "$as_me:6984: result: $ac_cv_c_pipe" >&5
6985 echo "${ECHO_T}$ac_cv_c_pipe" >&6
6986 if test x"$ac_cv_c_pipe" != x"no"; then
6987 save_CFLAGS="${save_CFLAGS} -pipe"
6990 echo "$as_me:6990: checking if \$CC accepts -O3" >&5
6991 echo $ECHO_N "checking if \$CC accepts -O3... $ECHO_C" >&6
6992 if test "${ac_cv_c_o3+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 CFLAGS="${save_CFLAGS} -O3"
6996 cat >conftest.$ac_ext <<_ACEOF
6997 #line 6997 "configure"
6998 #include "confdefs.h"
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:7009: \"$ac_compile\"") >&5
7010 (eval $ac_compile) 2>&5
7012 echo "$as_me:7012: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -s conftest.$ac_objext'
7015 { (eval echo "$as_me:7015: \"$ac_try\"") >&5
7018 echo "$as_me:7018: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7022 echo "$as_me: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7026 rm -f conftest.$ac_objext conftest.$ac_ext
7028 echo "$as_me:7028: result: $ac_cv_c_o3" >&5
7029 echo "${ECHO_T}$ac_cv_c_o3" >&6
7030 if test x"$ac_cv_c_o3" != x"no"; then
7031 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
7033 echo "$as_me:7033: checking if \$CC accepts -O2" >&5
7034 echo $ECHO_N "checking if \$CC accepts -O2... $ECHO_C" >&6
7035 if test "${ac_cv_c_o2+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 CFLAGS="${save_CFLAGS} -O2"
7039 cat >conftest.$ac_ext <<_ACEOF
7040 #line 7040 "configure"
7041 #include "confdefs.h"
7051 rm -f conftest.$ac_objext
7052 if { (eval echo "$as_me:7052: \"$ac_compile\"") >&5
7053 (eval $ac_compile) 2>&5
7055 echo "$as_me:7055: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:7058: \"$ac_try\"") >&5
7061 echo "$as_me:7061: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7065 echo "$as_me: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7069 rm -f conftest.$ac_objext conftest.$ac_ext
7071 echo "$as_me:7071: result: $ac_cv_c_o2" >&5
7072 echo "${ECHO_T}$ac_cv_c_o2" >&6
7073 if test x"$ac_cv_c_o2" != x"no"; then
7074 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
7076 echo "$as_me:7076: checking if \$CC accepts -O" >&5
7077 echo $ECHO_N "checking if \$CC accepts -O... $ECHO_C" >&6
7078 if test "${ac_cv_c_o+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 CFLAGS="${save_CFLAGS} -O"
7082 cat >conftest.$ac_ext <<_ACEOF
7083 #line 7083 "configure"
7084 #include "confdefs.h"
7094 rm -f conftest.$ac_objext
7095 if { (eval echo "$as_me:7095: \"$ac_compile\"") >&5
7096 (eval $ac_compile) 2>&5
7098 echo "$as_me:7098: \$? = $ac_status" >&5
7099 (exit $ac_status); } &&
7100 { ac_try='test -s conftest.$ac_objext'
7101 { (eval echo "$as_me:7101: \"$ac_try\"") >&5
7104 echo "$as_me:7104: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7108 echo "$as_me: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7112 rm -f conftest.$ac_objext conftest.$ac_ext
7114 echo "$as_me:7114: result: $ac_cv_c_o" >&5
7115 echo "${ECHO_T}$ac_cv_c_o" >&6
7116 if test x"$ac_cv_c_o" != x"no"; then
7117 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
7122 echo "$as_me:7122: checking if \$CC accepts -ffast-math" >&5
7123 echo $ECHO_N "checking if \$CC accepts -ffast-math... $ECHO_C" >&6
7124 if test "${ac_cv_c_fast_math+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 CFLAGS="${save_CFLAGS} -ffast-math"
7128 cat >conftest.$ac_ext <<_ACEOF
7129 #line 7129 "configure"
7130 #include "confdefs.h"
7140 rm -f conftest.$ac_objext
7141 if { (eval echo "$as_me:7141: \"$ac_compile\"") >&5
7142 (eval $ac_compile) 2>&5
7144 echo "$as_me:7144: \$? = $ac_status" >&5
7145 (exit $ac_status); } &&
7146 { ac_try='test -s conftest.$ac_objext'
7147 { (eval echo "$as_me:7147: \"$ac_try\"") >&5
7150 echo "$as_me:7150: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 ac_cv_c_fast_math=yes
7154 echo "$as_me: failed program was:" >&5
7155 cat conftest.$ac_ext >&5
7156 ac_cv_c_fast_math=no
7158 rm -f conftest.$ac_objext conftest.$ac_ext
7160 echo "$as_me:7160: result: $ac_cv_c_fast_math" >&5
7161 echo "${ECHO_T}$ac_cv_c_fast_math" >&6
7162 if test x"$ac_cv_c_fast_math" != x"no"; then
7163 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
7166 echo "$as_me:7166: checking if \$CC accepts -funroll-loops" >&5
7167 echo $ECHO_N "checking if \$CC accepts -funroll-loops... $ECHO_C" >&6
7168 if test "${ac_cv_c_unroll_loops+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 CFLAGS="${save_CFLAGS} -funroll-loops"
7172 cat >conftest.$ac_ext <<_ACEOF
7173 #line 7173 "configure"
7174 #include "confdefs.h"
7184 rm -f conftest.$ac_objext
7185 if { (eval echo "$as_me:7185: \"$ac_compile\"") >&5
7186 (eval $ac_compile) 2>&5
7188 echo "$as_me:7188: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try='test -s conftest.$ac_objext'
7191 { (eval echo "$as_me:7191: \"$ac_try\"") >&5
7194 echo "$as_me:7194: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_c_unroll_loops=yes
7198 echo "$as_me: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7200 ac_cv_c_unroll_loops=no
7202 rm -f conftest.$ac_objext conftest.$ac_ext
7204 echo "$as_me:7204: result: $ac_cv_c_unroll_loops" >&5
7205 echo "${ECHO_T}$ac_cv_c_unroll_loops" >&6
7206 if test x"$ac_cv_c_unroll_loops" != x"no"; then
7207 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
7210 echo "$as_me:7210: checking if \$CC accepts -fomit-frame-pointer" >&5
7211 echo $ECHO_N "checking if \$CC accepts -fomit-frame-pointer... $ECHO_C" >&6
7212 if test "${ac_cv_c_omit_frame_pointer+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
7216 cat >conftest.$ac_ext <<_ACEOF
7217 #line 7217 "configure"
7218 #include "confdefs.h"
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:7229: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>&5
7232 echo "$as_me:7232: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -s conftest.$ac_objext'
7235 { (eval echo "$as_me:7235: \"$ac_try\"") >&5
7238 echo "$as_me:7238: \$? = $ac_status" >&5
7239 (exit $ac_status); }; }; then
7240 ac_cv_c_omit_frame_pointer=yes
7242 echo "$as_me: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7244 ac_cv_c_omit_frame_pointer=no
7246 rm -f conftest.$ac_objext conftest.$ac_ext
7248 echo "$as_me:7248: result: $ac_cv_c_omit_frame_pointer" >&5
7249 echo "${ECHO_T}$ac_cv_c_omit_frame_pointer" >&6
7250 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
7251 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
7254 if test x$SYS = xmingw32
7256 echo "$as_me:7256: checking if \$CC accepts -mms-bitfields" >&5
7257 echo $ECHO_N "checking if \$CC accepts -mms-bitfields... $ECHO_C" >&6
7258 if test "${ac_cv_c_mms_bitfields+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 CFLAGS="${save_CFLAGS} -mms-bitfields"
7262 cat >conftest.$ac_ext <<_ACEOF
7263 #line 7263 "configure"
7264 #include "confdefs.h"
7274 rm -f conftest.$ac_objext
7275 if { (eval echo "$as_me:7275: \"$ac_compile\"") >&5
7276 (eval $ac_compile) 2>&5
7278 echo "$as_me:7278: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -s conftest.$ac_objext'
7281 { (eval echo "$as_me:7281: \"$ac_try\"") >&5
7284 echo "$as_me:7284: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_cv_c_mms_bitfields=yes
7288 echo "$as_me: failed program was:" >&5
7289 cat conftest.$ac_ext >&5
7290 ac_cv_c_mms_bitfields=no
7292 rm -f conftest.$ac_objext conftest.$ac_ext
7294 echo "$as_me:7294: result: $ac_cv_c_mms_bitfields" >&5
7295 echo "${ECHO_T}$ac_cv_c_mms_bitfields" >&6
7296 if test x"$ac_cv_c_mms_bitfields" != x"no"; then
7297 save_CFLAGS="${save_CFLAGS} -mms-bitfields"
7298 plugins_CFLAGS="${plugins_CFLAGS} -mms-bitfields"
7300 save_CFLAGS="${save_CFLAGS} -fnative-struct"
7301 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
7305 echo "$as_me:7305: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
7306 echo $ECHO_N "checking if \$CC accepts -bundle -undefined error -lcc_dynamic... $ECHO_C" >&6
7307 if test "${ac_cv_ld_darwin+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
7311 cat >conftest.$ac_ext <<_ACEOF
7312 #line 7312 "configure"
7313 #include "confdefs.h"
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:7324: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>&5
7327 echo "$as_me:7327: \$? = $ac_status" >&5
7328 (exit $ac_status); } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:7330: \"$ac_try\"") >&5
7333 echo "$as_me:7333: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7337 echo "$as_me: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7341 rm -f conftest.$ac_objext conftest.$ac_ext
7343 echo "$as_me:7343: result: $ac_cv_ld_darwin" >&5
7344 echo "${ECHO_T}$ac_cv_ld_darwin" >&6
7345 if test x"$ac_cv_ld_darwin" != x"no"; then
7346 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
7349 echo "$as_me:7349: checking if \$CC accepts -shared" >&5
7350 echo $ECHO_N "checking if \$CC accepts -shared... $ECHO_C" >&6
7351 if test "${ac_cv_ld_plugins+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 CFLAGS="${save_CFLAGS} -shared"
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line 7356 "configure"
7357 #include "confdefs.h"
7367 rm -f conftest.$ac_objext
7368 if { (eval echo "$as_me:7368: \"$ac_compile\"") >&5
7369 (eval $ac_compile) 2>&5
7371 echo "$as_me:7371: \$? = $ac_status" >&5
7372 (exit $ac_status); } &&
7373 { ac_try='test -s conftest.$ac_objext'
7374 { (eval echo "$as_me:7374: \"$ac_try\"") >&5
7377 echo "$as_me:7377: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_cv_ld_plugins=yes
7381 echo "$as_me: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7385 rm -f conftest.$ac_objext conftest.$ac_ext
7387 echo "$as_me:7387: result: $ac_cv_ld_plugins" >&5
7388 echo "${ECHO_T}$ac_cv_ld_plugins" >&6
7389 if test x"$ac_cv_ld_plugins" != x"no"; then
7390 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
7393 echo "$as_me:7393: checking for variadic cpp macros" >&5
7394 echo $ECHO_N "checking for variadic cpp macros... $ECHO_C" >&6
7395 if test "${ac_cv_cpp_variadic_macros+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 CFLAGS="${save_CFLAGS}"
7399 cat >conftest.$ac_ext <<_ACEOF
7400 #line 7400 "configure"
7401 #include "confdefs.h"
7403 #define a(b,c...) printf(b,##c)
7407 a("foo");a("%s","bar");a("%s%s","baz","quux");
7412 rm -f conftest.$ac_objext
7413 if { (eval echo "$as_me:7413: \"$ac_compile\"") >&5
7414 (eval $ac_compile) 2>&5
7416 echo "$as_me:7416: \$? = $ac_status" >&5
7417 (exit $ac_status); } &&
7418 { ac_try='test -s conftest.$ac_objext'
7419 { (eval echo "$as_me:7419: \"$ac_try\"") >&5
7422 echo "$as_me:7422: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_cpp_variadic_macros=yes
7426 echo "$as_me: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 ac_cv_cpp_variadic_macros=no
7430 rm -f conftest.$ac_objext conftest.$ac_ext
7432 echo "$as_me:7432: result: $ac_cv_cpp_variadic_macros" >&5
7433 echo "${ECHO_T}$ac_cv_cpp_variadic_macros" >&6
7434 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
7436 cat >>confdefs.h <<\EOF
7437 #define HAVE_VARIADIC_MACROS 1
7442 echo "$as_me:7442: checking __attribute__ ((aligned ())) support" >&5
7443 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
7444 if test "${ac_cv_c_attribute_aligned+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 ac_cv_c_attribute_aligned=0
7448 CFLAGS="${save_CFLAGS} -Werror"
7449 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
7450 cat >conftest.$ac_ext <<_ACEOF
7451 #line 7451 "configure"
7452 #include "confdefs.h"
7457 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
7462 rm -f conftest.$ac_objext
7463 if { (eval echo "$as_me:7463: \"$ac_compile\"") >&5
7464 (eval $ac_compile) 2>&5
7466 echo "$as_me:7466: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try='test -s conftest.$ac_objext'
7469 { (eval echo "$as_me:7469: \"$ac_try\"") >&5
7472 echo "$as_me:7472: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7474 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
7476 echo "$as_me: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7479 rm -f conftest.$ac_objext conftest.$ac_ext
7482 echo "$as_me:7482: result: $ac_cv_c_attribute_aligned" >&5
7483 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
7484 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
7486 cat >>confdefs.h <<EOF
7487 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
7492 CFLAGS="${save_CFLAGS}"
7493 CPPFLAGS="${save_CPPFLAGS}"
7494 LDFLAGS="${save_LDFLAGS}"
7496 echo "$as_me:7496: checking for boolean_t in sys/types.h" >&5
7497 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
7498 if test "${ac_cv_c_boolean_t_sys_types_h+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7502 #line 7502 "configure"
7503 #include "confdefs.h"
7504 #include <sys/types.h>
7513 rm -f conftest.$ac_objext
7514 if { (eval echo "$as_me:7514: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>&5
7517 echo "$as_me:7517: \$? = $ac_status" >&5
7518 (exit $ac_status); } &&
7519 { ac_try='test -s conftest.$ac_objext'
7520 { (eval echo "$as_me:7520: \"$ac_try\"") >&5
7523 echo "$as_me:7523: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 ac_cv_c_boolean_t_sys_types_h=yes
7527 echo "$as_me: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 ac_cv_c_boolean_t_sys_types_h=no
7531 rm -f conftest.$ac_objext conftest.$ac_ext
7533 echo "$as_me:7533: result: $ac_cv_c_boolean_t_sys_types_h" >&5
7534 echo "${ECHO_T}$ac_cv_c_boolean_t_sys_types_h" >&6
7535 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
7537 cat >>confdefs.h <<\EOF
7538 #define BOOLEAN_T_IN_SYS_TYPES_H 1
7543 echo "$as_me:7543: checking for boolean_t in pthread.h" >&5
7544 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
7545 if test "${ac_cv_c_boolean_t_pthread_h+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 cat >conftest.$ac_ext <<_ACEOF
7549 #line 7549 "configure"
7550 #include "confdefs.h"
7551 #include <pthread.h>
7560 rm -f conftest.$ac_objext
7561 if { (eval echo "$as_me:7561: \"$ac_compile\"") >&5
7562 (eval $ac_compile) 2>&5
7564 echo "$as_me:7564: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -s conftest.$ac_objext'
7567 { (eval echo "$as_me:7567: \"$ac_try\"") >&5
7570 echo "$as_me:7570: \$? = $ac_status" >&5
7571 (exit $ac_status); }; }; then
7572 ac_cv_c_boolean_t_pthread_h=yes
7574 echo "$as_me: failed program was:" >&5
7575 cat conftest.$ac_ext >&5
7576 ac_cv_c_boolean_t_pthread_h=no
7578 rm -f conftest.$ac_objext conftest.$ac_ext
7580 echo "$as_me:7580: result: $ac_cv_c_boolean_t_pthread_h" >&5
7581 echo "${ECHO_T}$ac_cv_c_boolean_t_pthread_h" >&6
7582 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
7584 cat >>confdefs.h <<\EOF
7585 #define BOOLEAN_T_IN_PTHREAD_H 1
7590 echo "$as_me:7590: checking for boolean_t in cthreads.h" >&5
7591 echo $ECHO_N "checking for boolean_t in cthreads.h... $ECHO_C" >&6
7592 if test "${ac_cv_c_boolean_t_cthreads_h+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 cat >conftest.$ac_ext <<_ACEOF
7596 #line 7596 "configure"
7597 #include "confdefs.h"
7598 #include <cthreads.h>
7607 rm -f conftest.$ac_objext
7608 if { (eval echo "$as_me:7608: \"$ac_compile\"") >&5
7609 (eval $ac_compile) 2>&5
7611 echo "$as_me:7611: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -s conftest.$ac_objext'
7614 { (eval echo "$as_me:7614: \"$ac_try\"") >&5
7617 echo "$as_me:7617: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 ac_cv_c_boolean_t_cthreads_h=yes
7621 echo "$as_me: failed program was:" >&5
7622 cat conftest.$ac_ext >&5
7623 ac_cv_c_boolean_t_cthreads_h=no
7625 rm -f conftest.$ac_objext conftest.$ac_ext
7627 echo "$as_me:7627: result: $ac_cv_c_boolean_t_cthreads_h" >&5
7628 echo "${ECHO_T}$ac_cv_c_boolean_t_cthreads_h" >&6
7629 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
7631 cat >>confdefs.h <<\EOF
7632 #define BOOLEAN_T_IN_CTHREADS_H 1
7637 case x"${target_cpu}" in
7642 ARCH="${target_cpu}"
7646 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"
7647 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"
7649 NETWORK_MODULES="udp http rtp ipv4"
7651 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
7652 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
7653 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
7654 SSE_MODULES="imdctsse downmixsse"
7655 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
7657 if test x$SYS != xbeos
7659 PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
7662 echo "$as_me:7662: checking if \$CC groks MMX inline assembly" >&5
7663 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
7664 if test "${ac_cv_mmx_inline+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 cat >conftest.$ac_ext <<_ACEOF
7668 #line 7668 "configure"
7669 #include "confdefs.h"
7674 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
7679 rm -f conftest.$ac_objext
7680 if { (eval echo "$as_me:7680: \"$ac_compile\"") >&5
7681 (eval $ac_compile) 2>&5
7683 echo "$as_me:7683: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:7686: \"$ac_try\"") >&5
7689 echo "$as_me:7689: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_cv_mmx_inline=yes
7693 echo "$as_me: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7697 rm -f conftest.$ac_objext conftest.$ac_ext
7699 echo "$as_me:7699: result: $ac_cv_mmx_inline" >&5
7700 echo "${ECHO_T}$ac_cv_mmx_inline" >&6
7701 if test x"$ac_cv_mmx_inline" != x"no"; then
7702 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
7705 echo "$as_me:7705: checking if \$CC groks MMX EXT inline assembly" >&5
7706 echo $ECHO_N "checking if \$CC groks MMX EXT inline assembly... $ECHO_C" >&6
7707 if test "${ac_cv_mmxext_inline+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 cat >conftest.$ac_ext <<_ACEOF
7711 #line 7711 "configure"
7712 #include "confdefs.h"
7717 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
7722 rm -f conftest.$ac_objext
7723 if { (eval echo "$as_me:7723: \"$ac_compile\"") >&5
7724 (eval $ac_compile) 2>&5
7726 echo "$as_me:7726: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -s conftest.$ac_objext'
7729 { (eval echo "$as_me:7729: \"$ac_try\"") >&5
7732 echo "$as_me:7732: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 ac_cv_mmxext_inline=yes
7736 echo "$as_me: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7738 ac_cv_mmxext_inline=no
7740 rm -f conftest.$ac_objext conftest.$ac_ext
7742 echo "$as_me:7742: result: $ac_cv_mmxext_inline" >&5
7743 echo "${ECHO_T}$ac_cv_mmxext_inline" >&6
7744 if test x"$ac_cv_mmxext_inline" != x"no"; then
7745 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
7748 echo "$as_me:7748: checking if \$CC groks 3D Now! inline assembly" >&5
7749 echo $ECHO_N "checking if \$CC groks 3D Now! inline assembly... $ECHO_C" >&6
7750 if test "${ac_cv_3dnow_inline+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7754 #line 7754 "configure"
7755 #include "confdefs.h"
7760 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
7765 rm -f conftest.$ac_objext
7766 if { (eval echo "$as_me:7766: \"$ac_compile\"") >&5
7767 (eval $ac_compile) 2>&5
7769 echo "$as_me:7769: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try='test -s conftest.$ac_objext'
7772 { (eval echo "$as_me:7772: \"$ac_try\"") >&5
7775 echo "$as_me:7775: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 ac_cv_3dnow_inline=yes
7779 echo "$as_me: failed program was:" >&5
7780 cat conftest.$ac_ext >&5
7781 ac_cv_3dnow_inline=no
7783 rm -f conftest.$ac_objext conftest.$ac_ext
7785 echo "$as_me:7785: result: $ac_cv_3dnow_inline" >&5
7786 echo "${ECHO_T}$ac_cv_3dnow_inline" >&6
7787 if test x"$ac_cv_3dnow_inline" != x"no"; then
7789 cat >>confdefs.h <<\EOF
7790 #define CAN_COMPILE_3DNOW 1
7793 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
7796 echo "$as_me:7796: checking if \$CC groks SSE inline assembly" >&5
7797 echo $ECHO_N "checking if \$CC groks SSE inline assembly... $ECHO_C" >&6
7798 if test "${ac_cv_sse_inline+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 cat >conftest.$ac_ext <<_ACEOF
7802 #line 7802 "configure"
7803 #include "confdefs.h"
7808 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
7813 rm -f conftest.$ac_objext
7814 if { (eval echo "$as_me:7814: \"$ac_compile\"") >&5
7815 (eval $ac_compile) 2>&5
7817 echo "$as_me:7817: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -s conftest.$ac_objext'
7820 { (eval echo "$as_me:7820: \"$ac_try\"") >&5
7823 echo "$as_me:7823: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_cv_sse_inline=yes
7827 echo "$as_me: failed program was:" >&5
7828 cat conftest.$ac_ext >&5
7831 rm -f conftest.$ac_objext conftest.$ac_ext
7833 echo "$as_me:7833: result: $ac_cv_sse_inline" >&5
7834 echo "${ECHO_T}$ac_cv_sse_inline" >&6
7835 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
7837 cat >>confdefs.h <<\EOF
7838 #define CAN_COMPILE_SSE 1
7841 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
7844 # don't try to grok altivec with native mingw32 it doesn't work right now
7845 # we should be able to remove this test with future versions of mingw32
7846 if test x$SYS != xmingw32; then
7847 echo "$as_me:7847: checking if \$CC groks Altivec inline assembly" >&5
7848 echo $ECHO_N "checking if \$CC groks Altivec inline assembly... $ECHO_C" >&6
7849 if test "${ac_cv_altivec_inline+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 cat >conftest.$ac_ext <<_ACEOF
7853 #line 7853 "configure"
7854 #include "confdefs.h"
7859 asm volatile("vperm 0,1,2,3");
7864 rm -f conftest.$ac_objext
7865 if { (eval echo "$as_me:7865: \"$ac_compile\"") >&5
7866 (eval $ac_compile) 2>&5
7868 echo "$as_me:7868: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -s conftest.$ac_objext'
7871 { (eval echo "$as_me:7871: \"$ac_try\"") >&5
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 ac_cv_altivec_inline=yes
7878 echo "$as_me: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7881 CFLAGS="$CFLAGS -Wa,-m7400"
7882 cat >conftest.$ac_ext <<_ACEOF
7883 #line 7883 "configure"
7884 #include "confdefs.h"
7889 asm volatile("vperm 0,1,2,3");
7894 rm -f conftest.$ac_objext
7895 if { (eval echo "$as_me:7895: \"$ac_compile\"") >&5
7896 (eval $ac_compile) 2>&5
7898 echo "$as_me:7898: \$? = $ac_status" >&5
7899 (exit $ac_status); } &&
7900 { ac_try='test -s conftest.$ac_objext'
7901 { (eval echo "$as_me:7901: \"$ac_try\"") >&5
7904 echo "$as_me:7904: \$? = $ac_status" >&5
7905 (exit $ac_status); }; }; then
7906 ac_cv_altivec_inline="-Wa,-m7400"
7908 echo "$as_me: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7910 ac_cv_altivec_inline=no
7912 rm -f conftest.$ac_objext conftest.$ac_ext
7916 rm -f conftest.$ac_objext conftest.$ac_ext
7918 echo "$as_me:7918: result: $ac_cv_altivec_inline" >&5
7919 echo "${ECHO_T}$ac_cv_altivec_inline" >&6
7920 if test x"$ac_cv_altivec_inline" != x"no"; then
7922 cat >>confdefs.h <<\EOF
7923 #define CAN_COMPILE_ALTIVEC 1
7926 if test x"$ac_cv_altivec_inline" != x"yes"; then
7927 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
7928 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
7929 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
7930 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
7932 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
7935 echo "$as_me:7935: checking if \$CC groks Altivec C extensions" >&5
7936 echo $ECHO_N "checking if \$CC groks Altivec C extensions... $ECHO_C" >&6
7937 if test "${ac_cv_c_altivec+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 CFLAGS="$CFLAGS -faltivec"
7943 cat >conftest.$ac_ext <<_ACEOF
7944 #line 7944 "configure"
7945 #include "confdefs.h"
7950 vec_mtvscr((vector unsigned int)(0));
7955 rm -f conftest.$ac_objext
7956 if { (eval echo "$as_me:7956: \"$ac_compile\"") >&5
7957 (eval $ac_compile) 2>&5
7959 echo "$as_me:7959: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:7962: \"$ac_try\"") >&5
7965 echo "$as_me:7965: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_c_altivec=-faltivec
7969 echo "$as_me: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7973 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
7974 cat >conftest.$ac_ext <<_ACEOF
7975 #line 7975 "configure"
7976 #include "confdefs.h"
7981 vec_mtvscr((vector unsigned int)(0));
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:7987: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>&5
7990 echo "$as_me:7990: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try='test -s conftest.$ac_objext'
7993 { (eval echo "$as_me:7993: \"$ac_try\"") >&5
7996 echo "$as_me:7996: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_cv_c_altivec="-fvec"
8000 echo "$as_me: failed program was:" >&5
8001 cat conftest.$ac_ext >&5
8004 rm -f conftest.$ac_objext conftest.$ac_ext
8007 rm -f conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me:8011: result: $ac_cv_c_altivec" >&5
8012 echo "${ECHO_T}$ac_cv_c_altivec" >&6
8013 if test x"$ac_cv_c_altivec" != x"no"; then
8015 cat >>confdefs.h <<\EOF
8016 #define CAN_COMPILE_C_ALTIVEC 1
8019 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
8020 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
8021 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
8022 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
8023 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
8026 echo "$as_me:8026: checking if linker needs -framework vecLib" >&5
8027 echo $ECHO_N "checking if linker needs -framework vecLib... $ECHO_C" >&6
8028 if test "${ac_cv_ld_altivec+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 save_LDFLAGS=$LDFLAGS
8032 LDFLAGS="$LDFLAGS -framework vecLib"
8033 cat >conftest.$ac_ext <<_ACEOF
8034 #line 8034 "configure"
8035 #include "confdefs.h"
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (eval echo "$as_me:8046: \"$ac_link\"") >&5
8047 (eval $ac_link) 2>&5
8049 echo "$as_me:8049: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -s conftest$ac_exeext'
8052 { (eval echo "$as_me:8052: \"$ac_try\"") >&5
8055 echo "$as_me:8055: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 ac_cv_ld_altivec=yes
8059 echo "$as_me: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8064 LDFLAGS=$save_LDFLAGS
8067 echo "$as_me:8067: result: $ac_cv_ld_altivec" >&5
8068 echo "${ECHO_T}$ac_cv_ld_altivec" >&6
8069 if test x"$ac_cv_ld_altivec" != x"no"; then
8070 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
8071 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
8072 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
8073 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
8077 # Check whether --with- or --without- was given.
8078 if test "${with_+set}" = set; then
8083 # Check whether --with- or --without- was given.
8084 if test "${with_+set}" = set; then
8089 # Check whether --with-tuning or --without-tuning was given.
8090 if test "${with_tuning+set}" = set; then
8091 withval="$with_tuning"
8094 if test "x$with_tuning" != "x"; then
8095 TUNING="$with_tuning"
8097 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
8099 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
8103 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
8106 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
8109 # Check whether --enable-optimizations or --disable-optimizations was given.
8110 if test "${enable_optimizations+set}" = set; then
8111 enableval="$enable_optimizations"
8112 if test x$enable_optimizations = xno; then OPTIMS=0; fi
8117 # Check whether --enable-altivec or --disable-altivec was given.
8118 if test "${enable_altivec+set}" = set; then
8119 enableval="$enable_altivec"
8120 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
8121 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
8123 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
8124 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
8128 # Check whether --enable-debug or --disable-debug was given.
8129 if test "${enable_debug+set}" = set; then
8130 enableval="$enable_debug"
8131 if test x$enable_debug = xyes; then DEBUG=1; fi
8135 # Check whether --enable-release or --disable-release was given.
8136 if test "${enable_release+set}" = set; then
8137 enableval="$enable_release"
8138 if test x$enable_release = xyes; then RELEASE=1; fi
8140 VERSION="${VERSION}_`date +%Y-%m-%d`"
8143 # Check whether --with- or --without- was given.
8144 if test "${with_+set}" = set; then
8149 # Check whether --enable-dvd or --disable-dvd was given.
8150 if test "${enable_dvd+set}" = set; then
8151 enableval="$enable_dvd"
8154 if test "x$enable_dvd" != "xno"
8157 # Check whether --with-dvdcss or --without-dvdcss was given.
8158 if test "${with_dvdcss+set}" = set; then
8159 withval="$with_dvdcss"
8163 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
8164 if test "${with_dvdcss_tree+set}" = set; then
8165 withval="$with_dvdcss_tree"
8168 case "x$with_dvdcss" in
8170 if test "x$with_dvdcss_tree" = x
8173 for ac_header in dvdcss/dvdcss.h
8175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8176 echo "$as_me:8176: checking for $ac_header" >&5
8177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 cat >conftest.$ac_ext <<_ACEOF
8182 #line 8182 "configure"
8183 #include "confdefs.h"
8184 #include <$ac_header>
8186 if { (eval echo "$as_me:8186: \"$ac_cpp conftest.$ac_ext\"") >&5
8187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8189 egrep -v '^ *\+' conftest.er1 >conftest.err
8191 cat conftest.err >&5
8192 echo "$as_me:8192: \$? = $ac_status" >&5
8193 (exit $ac_status); } >/dev/null; then
8194 if test -s conftest.err; then
8195 ac_cpp_err=$ac_c_preproc_warn_flag
8202 if test -z "$ac_cpp_err"; then
8203 eval "$as_ac_Header=yes"
8205 echo "$as_me: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8207 eval "$as_ac_Header=no"
8209 rm -f conftest.err conftest.$ac_ext
8211 echo "$as_me:8211: result: `eval echo '${'$as_ac_Header'}'`" >&5
8212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8214 cat >>confdefs.h <<EOF
8215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8217 PLUGINS="${PLUGINS} dvd"
8218 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
8220 { echo "$as_me:8220: 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
8221 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;}
8222 { { echo "$as_me:8222: error: cannot find libdvdcss headers" >&5
8223 echo "$as_me: error: cannot find libdvdcss headers" >&2;}
8224 { (exit 1); exit 1; }; }
8229 echo "$as_me:8229: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
8230 echo $ECHO_N "checking for libdvdcss.a in ${with_dvdcss_tree}... $ECHO_C" >&6
8231 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
8232 if test "x$real_dvdcss_tree" = x
8234 echo "$as_me:8234: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8236 { { echo "$as_me:8236: error: cannot cd to ${with_dvdcss_tree}" >&5
8237 echo "$as_me: error: cannot cd to ${with_dvdcss_tree}" >&2;}
8238 { (exit 1); exit 1; }; }
8240 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
8242 echo "$as_me:8242: result: ${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&5
8243 echo "${ECHO_T}${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&6
8244 BUILTINS="${BUILTINS} dvd"
8245 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
8246 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
8248 echo "$as_me:8248: result: no" >&5
8249 echo "${ECHO_T}no" >&6
8250 { { echo "$as_me:8250: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&5
8251 echo "$as_me: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&2;}
8252 { (exit 1); exit 1; }; }
8257 PLUGINS="${PLUGINS} dvd"
8258 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
8259 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
8262 echo "$as_me:8262: checking for dvdcss headers in ${with_dvdcss}" >&5
8263 echo $ECHO_N "checking for dvdcss headers in ${with_dvdcss}... $ECHO_C" >&6
8264 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
8266 echo "$as_me:8266: result: yes" >&5
8267 echo "${ECHO_T}yes" >&6
8268 PLUGINS="${PLUGINS} dvd"
8269 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
8270 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
8272 echo "$as_me:8272: result: no" >&5
8273 echo "${ECHO_T}no" >&6
8274 { { echo "$as_me:8274: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&5
8275 echo "$as_me: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&2;}
8276 { (exit 1); exit 1; }; }
8282 # Check whether --enable-dvdread or --disable-dvdread was given.
8283 if test "${enable_dvdread+set}" = set; then
8284 enableval="$enable_dvdread"
8287 if test "x$enable_dvdread" != "xno"
8290 # Check whether --with-dvdread or --without-dvdread was given.
8291 if test "${with_dvdread+set}" = set; then
8292 withval="$with_dvdread"
8295 if test "x$with_dvdread" = x
8300 test_LDFLAGS="-L${with_dvdread}/lib"
8301 test_CFLAGS="-I${with_dvdread}/include"
8303 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
8305 for ac_header in dvdread/dvd_reader.h
8307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8308 echo "$as_me:8308: checking for $ac_header" >&5
8309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 cat >conftest.$ac_ext <<_ACEOF
8314 #line 8314 "configure"
8315 #include "confdefs.h"
8316 #include <$ac_header>
8318 if { (eval echo "$as_me:8318: \"$ac_cpp conftest.$ac_ext\"") >&5
8319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8321 egrep -v '^ *\+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:8324: \$? = $ac_status" >&5
8325 (exit $ac_status); } >/dev/null; then
8326 if test -s conftest.err; then
8327 ac_cpp_err=$ac_c_preproc_warn_flag
8334 if test -z "$ac_cpp_err"; then
8335 eval "$as_ac_Header=yes"
8337 echo "$as_me: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 eval "$as_ac_Header=no"
8341 rm -f conftest.err conftest.$ac_ext
8343 echo "$as_me:8343: result: `eval echo '${'$as_ac_Header'}'`" >&5
8344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8346 cat >>confdefs.h <<EOF
8347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8350 cat >conftest.$ac_ext <<_ACEOF
8351 #line 8351 "configure"
8352 #include "confdefs.h"
8353 #include <dvdread/dvd_reader.h>
8357 void foo() { int i=DVD_VIDEO_LB_LEN; }
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:8363: \"$ac_compile\"") >&5
8364 (eval $ac_compile) 2>&5
8366 echo "$as_me:8366: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -s conftest.$ac_objext'
8369 { (eval echo "$as_me:8369: \"$ac_try\"") >&5
8372 echo "$as_me:8372: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8375 PLUGINS="${PLUGINS} dvdread"
8376 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
8377 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
8380 echo "$as_me: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8383 if test "x$enable_dvdread" != x
8385 { { echo "$as_me:8385: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&5
8386 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;}
8387 { (exit 1); exit 1; }; }
8391 rm -f conftest.$ac_objext conftest.$ac_ext
8395 if test "x$enable_dvdread" != x
8397 if test "x$with_dvdread" != x
8399 { { echo "$as_me:8399: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&5
8400 echo "$as_me: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&2;}
8401 { (exit 1); exit 1; }; }
8403 { { echo "$as_me:8403: error: Cannot find dvdread/dvd_reader.h" >&5
8404 echo "$as_me: error: Cannot find dvdread/dvd_reader.h" >&2;}
8405 { (exit 1); exit 1; }; }
8412 CPPFLAGS="$save_CPPFLAGS"
8415 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
8416 if test "${enable_dvbpsi+set}" = set; then
8417 enableval="$enable_dvbpsi"
8420 if test "x$enable_dvbpsi" != "xno"
8423 # Check whether --with-dvbpsi or --without-dvbpsi was given.
8424 if test "${with_dvbpsi+set}" = set; then
8425 withval="$with_dvbpsi"
8429 # Check whether --with-dvbpsi or --without-dvbpsi was given.
8430 if test "${with_dvbpsi+set}" = set; then
8431 withval="$with_dvbpsi"
8434 case "x$with_dvbpsi" in
8436 if test "x$with_dvbpsi_tree" = x
8439 for ac_header in dvbpsi/dr.h
8441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8442 echo "$as_me:8442: checking for $ac_header" >&5
8443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 cat >conftest.$ac_ext <<_ACEOF
8448 #line 8448 "configure"
8449 #include "confdefs.h"
8450 { { echo "$as_me:8450: error: cannot find libdvbpsi headers" >&5
8451 echo "$as_me: error: cannot find libdvbpsi headers" >&2;}
8452 { (exit 1); exit 1; }; }
8453 #include <$ac_header>
8455 rm -f conftest.$ac_objext
8456 if { (eval echo "$as_me:8456: \"$ac_compile\"") >&5
8457 (eval $ac_compile) 2>&5
8459 echo "$as_me:8459: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (eval echo "$as_me:8462: \"$ac_try\"") >&5
8465 echo "$as_me:8465: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 eval "$as_ac_Header=yes"
8469 echo "$as_me: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 eval "$as_ac_Header=no"
8473 rm -f conftest.$ac_objext conftest.$ac_ext
8475 echo "$as_me:8475: result: `eval echo '${'$as_ac_Header'}'`" >&5
8476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8478 cat >>confdefs.h <<EOF
8479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
8482 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
8487 echo "$as_me:8487: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
8488 echo $ECHO_N "checking for libdvbpsi.a in ${with_dvbpsi_tree}... $ECHO_C" >&6
8489 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
8490 if test "x$real_dvbpsi_tree" = x
8492 echo "$as_me:8492: result: no" >&5
8493 echo "${ECHO_T}no" >&6
8494 { { echo "$as_me:8494: error: cannot cd to ${with_dvbpsi_tree}" >&5
8495 echo "$as_me: error: cannot cd to ${with_dvbpsi_tree}" >&2;}
8496 { (exit 1); exit 1; }; }
8498 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
8500 echo "$as_me:8500: result: ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&5
8501 echo "${ECHO_T}${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&6
8502 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
8503 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
8504 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
8506 echo "$as_me:8506: result: no" >&5
8507 echo "${ECHO_T}no" >&6
8508 { { echo "$as_me:8508: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&5
8509 echo "$as_me: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&2;}
8510 { (exit 1); exit 1; }; }
8517 echo "$as_me:8517: checking for dvbpsi headers in ${with_dvbpsi}" >&5
8518 echo $ECHO_N "checking for dvbpsi headers in ${with_dvbpsi}... $ECHO_C" >&6
8519 if test "x$with_dvbpsi" = x
8524 test_LDFLAGS="-L${with_dvbpsi}/lib"
8525 test_CFLAGS="-I${with_dvbpsi}/include"
8527 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
8528 echo "$as_me:8528: checking for dvbpsi/dr.h" >&5
8529 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
8530 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line 8534 "configure"
8535 #include "confdefs.h"
8536 #include <dvbpsi/dr.h>
8538 if { (eval echo "$as_me:8538: \"$ac_cpp conftest.$ac_ext\"") >&5
8539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8541 egrep -v '^ *\+' conftest.er1 >conftest.err
8543 cat conftest.err >&5
8544 echo "$as_me:8544: \$? = $ac_status" >&5
8545 (exit $ac_status); } >/dev/null; then
8546 if test -s conftest.err; then
8547 ac_cpp_err=$ac_c_preproc_warn_flag
8554 if test -z "$ac_cpp_err"; then
8555 ac_cv_header_dvbpsi_dr_h=yes
8557 echo "$as_me: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 ac_cv_header_dvbpsi_dr_h=no
8561 rm -f conftest.err conftest.$ac_ext
8563 echo "$as_me:8563: result: $ac_cv_header_dvbpsi_dr_h" >&5
8564 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
8565 if test $ac_cv_header_dvbpsi_dr_h = yes; then
8567 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
8568 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
8569 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
8573 if test "x$enable_dvbpsi" != x
8575 { { echo "$as_me:8575: 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
8576 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;}
8577 { (exit 1); exit 1; }; }
8582 CPPFLAGS="$save_CPPFLAGS"
8587 # Check whether --enable-vcd or --disable-vcd was given.
8588 if test "${enable_vcd+set}" = set; then
8589 enableval="$enable_vcd"
8593 if test x$enable_vcd != xno
8595 cat >conftest.$ac_ext <<_ACEOF
8596 #line 8596 "configure"
8597 #include "confdefs.h"
8598 #include <linux/cdrom.h>
8601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8602 egrep "cdrom_msf0" >/dev/null 2>&1; then
8604 PLUGINS="${PLUGINS} vcd"
8609 cat >conftest.$ac_ext <<_ACEOF
8610 #line 8610 "configure"
8611 #include "confdefs.h"
8612 #include <sys/cdio.h>
8615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8616 egrep "ioc_toc_header " >/dev/null 2>&1; then
8618 PLUGINS="${PLUGINS} vcd"
8620 cat >>confdefs.h <<\EOF
8621 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
8627 if test "x${SYS}" = "xbsdi"
8629 PLUGINS="${PLUGINS} vcd"
8632 if test "x${SYS}" = "xdarwin"
8634 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
8635 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
8639 # Check whether --enable-satellite or --disable-satellite was given.
8640 if test "${enable_satellite+set}" = set; then
8641 enableval="$enable_satellite"
8642 if test x$enable_satellite = xyes
8644 PLUGINS="${PLUGINS} satellite"
8648 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
8650 echo "$as_me:8650: checking for inet_pton" >&5
8651 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8652 if test "${ac_cv_func_inet_pton+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 cat >conftest.$ac_ext <<_ACEOF
8656 #line 8656 "configure"
8657 #include "confdefs.h"
8658 /* System header to define __stub macros and hopefully few prototypes,
8659 which can conflict with char inet_pton (); below. */
8661 /* Override any gcc2 internal prototype to avoid an error. */
8665 /* We use char because int might match the return type of a gcc2
8666 builtin and then its argument prototype would still apply. */
8673 /* The GNU C library defines this for functions which it implements
8674 to always fail with ENOSYS. Some functions are actually named
8675 something starting with __ and the normal name is an alias. */
8676 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
8686 rm -f conftest.$ac_objext conftest$ac_exeext
8687 if { (eval echo "$as_me:8687: \"$ac_link\"") >&5
8688 (eval $ac_link) 2>&5
8690 echo "$as_me:8690: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try='test -s conftest$ac_exeext'
8693 { (eval echo "$as_me:8693: \"$ac_try\"") >&5
8696 echo "$as_me:8696: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 ac_cv_func_inet_pton=yes
8700 echo "$as_me: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8702 ac_cv_func_inet_pton=no
8704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8706 echo "$as_me:8706: result: $ac_cv_func_inet_pton" >&5
8707 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
8708 if test $ac_cv_func_inet_pton = yes; then
8709 PLUGINS="${PLUGINS} ipv6"
8713 if test "x$SYS" = "xmingw32"
8715 echo "$as_me:8715: checking for getaddrinfo in ws2tcpip.h" >&5
8716 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h... $ECHO_C" >&6
8717 cat >conftest.$ac_ext <<_ACEOF
8718 #line 8718 "configure"
8719 #include "confdefs.h"
8720 #include <ws2tcpip.h>
8723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8724 egrep "addrinfo" >/dev/null 2>&1; then
8725 echo "$as_me:8725: result: yes" >&5
8726 echo "${ECHO_T}yes" >&6
8727 PLUGINS="${PLUGINS} ipv6"
8729 echo "$as_me:8729: result: no" >&5
8730 echo "${ECHO_T}no" >&6
8736 # Check whether --enable-avi or --disable-avi was given.
8737 if test "${enable_avi+set}" = set; then
8738 enableval="$enable_avi"
8741 if test x$enable_avi != xno
8743 PLUGINS="${PLUGINS} avi"
8746 # Check whether --with- or --without- was given.
8747 if test "${with_+set}" = set; then
8752 # Check whether --enable-mad or --disable-mad was given.
8753 if test "${enable_mad+set}" = set; then
8754 enableval="$enable_mad"
8757 if test x$enable_mad = xyes
8760 # Check whether --with-mad or --without-mad was given.
8761 if test "${with_mad+set}" = set; then
8765 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
8767 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
8768 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
8771 # Check whether --with-mad-tree or --without-mad-tree was given.
8772 if test "${with_mad_tree+set}" = set; then
8773 withval="$with_mad_tree"
8776 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
8778 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
8779 if test "x$real_mad_tree" = x
8781 echo "$as_me:8781: result: no" >&5
8782 echo "${ECHO_T}no" >&6
8783 { { echo "$as_me:8783: error: ${with_mad_tree} directory doesn't exist" >&5
8784 echo "$as_me: error: ${with_mad_tree} directory doesn't exist" >&2;}
8785 { (exit 1); exit 1; }; }
8787 echo "$as_me:8787: checking for mad.h in ${real_mad_tree}/libmad" >&5
8788 echo $ECHO_N "checking for mad.h in ${real_mad_tree}/libmad... $ECHO_C" >&6
8789 if test -f ${real_mad_tree}/libmad/mad.h
8791 echo "$as_me:8791: result: yes" >&5
8792 echo "${ECHO_T}yes" >&6
8793 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
8794 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
8795 save_LDFLAGS=$LDFLAGS
8796 LDFLAGS=$mad_LDFLAGS
8797 echo "$as_me:8797: checking for mad_bit_init in -lmad" >&5
8798 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
8799 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 ac_check_lib_save_LIBS=$LIBS
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line 8805 "configure"
8806 #include "confdefs.h"
8808 /* Override any gcc2 internal prototype to avoid an error. */
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8814 char mad_bit_init ();
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:8824: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>&5
8827 echo "$as_me:8827: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -s conftest$ac_exeext'
8830 { (eval echo "$as_me:8830: \"$ac_try\"") >&5
8833 echo "$as_me:8833: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 ac_cv_lib_mad_mad_bit_init=yes
8837 echo "$as_me: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8839 ac_cv_lib_mad_mad_bit_init=no
8841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8842 LIBS=$ac_check_lib_save_LIBS
8844 echo "$as_me:8844: result: $ac_cv_lib_mad_mad_bit_init" >&5
8845 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
8846 if test $ac_cv_lib_mad_mad_bit_init = yes; then
8848 BUILTINS="${BUILTINS} mad"
8849 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
8852 { { echo "$as_me:8852: error: the specified tree hasn't been compiled " >&5
8853 echo "$as_me: error: the specified tree hasn't been compiled " >&2;}
8854 { (exit 1); exit 1; }; }
8858 LDFLAGS=$save_LDFLAGS
8860 echo "$as_me:8860: result: no" >&5
8861 echo "${ECHO_T}no" >&6
8862 { { echo "$as_me:8862: error: the specified tree doesn't have mad.h" >&5
8863 echo "$as_me: error: the specified tree doesn't have mad.h" >&2;}
8864 { (exit 1); exit 1; }; }
8868 save_LDFLAGS=$LDFLAGS
8869 CFLAGS="$CFLAGS $mad_CFLAGS"
8870 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
8872 for ac_header in mad.h
8874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8875 echo "$as_me:8875: checking for $ac_header" >&5
8876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 cat >conftest.$ac_ext <<_ACEOF
8881 #line 8881 "configure"
8882 #include "confdefs.h"
8883 #include <$ac_header>
8885 if { (eval echo "$as_me:8885: \"$ac_cpp conftest.$ac_ext\"") >&5
8886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8888 egrep -v '^ *\+' conftest.er1 >conftest.err
8890 cat conftest.err >&5
8891 echo "$as_me:8891: \$? = $ac_status" >&5
8892 (exit $ac_status); } >/dev/null; then
8893 if test -s conftest.err; then
8894 ac_cpp_err=$ac_c_preproc_warn_flag
8901 if test -z "$ac_cpp_err"; then
8902 eval "$as_ac_Header=yes"
8904 echo "$as_me: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8906 eval "$as_ac_Header=no"
8908 rm -f conftest.err conftest.$ac_ext
8910 echo "$as_me:8910: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8913 cat >>confdefs.h <<EOF
8914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8918 { { echo "$as_me:8918: error: Cannot find development headers for libmad..." >&5
8919 echo "$as_me: error: Cannot find development headers for libmad..." >&2;}
8920 { (exit 1); exit 1; }; }
8924 echo "$as_me:8924: checking for mad_bit_init in -lmad" >&5
8925 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
8926 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 ac_check_lib_save_LIBS=$LIBS
8931 cat >conftest.$ac_ext <<_ACEOF
8932 #line 8932 "configure"
8933 #include "confdefs.h"
8935 /* Override any gcc2 internal prototype to avoid an error. */
8939 /* We use char because int might match the return type of a gcc2
8940 builtin and then its argument prototype would still apply. */
8941 char mad_bit_init ();
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (eval echo "$as_me:8951: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>&5
8954 echo "$as_me:8954: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:8957: \"$ac_try\"") >&5
8960 echo "$as_me:8960: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_lib_mad_mad_bit_init=yes
8964 echo "$as_me: failed program was:" >&5
8965 cat conftest.$ac_ext >&5
8966 ac_cv_lib_mad_mad_bit_init=no
8968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8969 LIBS=$ac_check_lib_save_LIBS
8971 echo "$as_me:8971: result: $ac_cv_lib_mad_mad_bit_init" >&5
8972 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
8973 if test $ac_cv_lib_mad_mad_bit_init = yes; then
8975 PLUGINS="${PLUGINS} mad"
8976 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
8978 { { echo "$as_me:8978: error: Cannot find libmad library..." >&5
8979 echo "$as_me: error: Cannot find libmad library..." >&2;}
8980 { (exit 1); exit 1; }; }
8984 LDFLAGS=$save_LDFLAGS
8988 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
8989 if test "${enable_ffmpeg+set}" = set; then
8990 enableval="$enable_ffmpeg"
8993 if test "x$enable_ffmpeg" = "xyes"
8996 # Check whether --with-ffmpeg or --without-ffmpeg was given.
8997 if test "${with_ffmpeg+set}" = set; then
8998 withval="$with_ffmpeg"
9001 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
9003 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
9004 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
9007 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
9008 if test "${with_ffmpeg_tree+set}" = set; then
9009 withval="$with_ffmpeg_tree"
9012 if test "x$with_ffmpeg_tree" != "x"
9014 echo "$as_me:9014: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
9015 echo $ECHO_N "checking for libavcodec.a in ${with_ffmpeg_tree}... $ECHO_C" >&6
9016 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
9017 if test "x$real_ffmpeg_tree" = x
9019 echo "$as_me:9019: result: no" >&5
9020 echo "${ECHO_T}no" >&6
9021 { { echo "$as_me:9021: error: cannot cd to ${with_ffmpeg_tree}" >&5
9022 echo "$as_me: error: cannot cd to ${with_ffmpeg_tree}" >&2;}
9023 { (exit 1); exit 1; }; }
9025 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
9027 echo "$as_me:9027: result: ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&5
9028 echo "${ECHO_T}${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&6
9029 BUILTINS="${BUILTINS} ffmpeg"
9030 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
9031 if test x$SYS != xbeos
9033 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9035 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
9037 echo "$as_me:9037: result: no" >&5
9038 echo "${ECHO_T}no" >&6
9039 { { echo "$as_me:9039: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&5
9040 echo "$as_me: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&2;}
9041 { (exit 1); exit 1; }; }
9045 save_LDFLAGS=$LDFLAGS
9046 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
9047 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
9048 if test x$SYS != xbeos
9050 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9052 echo "$as_me:9052: checking for avcodec_init in -lavcodec" >&5
9053 echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6
9054 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 ac_check_lib_save_LIBS=$LIBS
9058 LIBS="-lavcodec $LIBS"
9059 cat >conftest.$ac_ext <<_ACEOF
9060 #line 9060 "configure"
9061 #include "confdefs.h"
9063 /* Override any gcc2 internal prototype to avoid an error. */
9067 /* We use char because int might match the return type of a gcc2
9068 builtin and then its argument prototype would still apply. */
9069 char avcodec_init ();
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:9079: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>&5
9082 echo "$as_me:9082: \$? = $ac_status" >&5
9083 (exit $ac_status); } &&
9084 { ac_try='test -s conftest$ac_exeext'
9085 { (eval echo "$as_me:9085: \"$ac_try\"") >&5
9088 echo "$as_me:9088: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9090 ac_cv_lib_avcodec_avcodec_init=yes
9092 echo "$as_me: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9094 ac_cv_lib_avcodec_avcodec_init=no
9096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9097 LIBS=$ac_check_lib_save_LIBS
9099 echo "$as_me:9099: result: $ac_cv_lib_avcodec_avcodec_init" >&5
9100 echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6
9101 if test $ac_cv_lib_avcodec_avcodec_init = yes; then
9103 BUILTINS="${BUILTINS} ffmpeg"
9104 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
9105 if test x$SYS != xbeos
9107 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9110 { { echo "$as_me:9110: error: Cannot find libavcodec library..." >&5
9111 echo "$as_me: error: Cannot find libavcodec library..." >&2;}
9112 { (exit 1); exit 1; }; }
9116 LDFLAGS=$save_LDFLAGS
9120 if test x$SYS = xbeos
9122 PLUGINS="${PLUGINS} beos"
9125 # Check whether --enable-a52 or --disable-a52 was given.
9126 if test "${enable_a52+set}" = set; then
9127 enableval="$enable_a52"
9130 if test "x$enable_a52" != "xno"
9133 # Check whether --with-a52-tree or --without-a52-tree was given.
9134 if test "${with_a52_tree+set}" = set; then
9135 withval="$with_a52_tree"
9138 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
9140 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
9141 if test "x$real_a52_tree" = x
9143 echo "$as_me:9143: result: no" >&5
9144 echo "${ECHO_T}no" >&6
9145 { { echo "$as_me:9145: error: ${with_a52_tree} directory doesn't exist" >&5
9146 echo "$as_me: error: ${with_a52_tree} directory doesn't exist" >&2;}
9147 { (exit 1); exit 1; }; }
9149 echo "$as_me:9149: checking for a52.h in ${real_a52_tree}/include" >&5
9150 echo $ECHO_N "checking for a52.h in ${real_a52_tree}/include... $ECHO_C" >&6
9151 if test -f ${real_a52_tree}/include/a52.h
9153 echo "$as_me:9153: result: yes" >&5
9154 echo "${ECHO_T}yes" >&6
9155 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
9156 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
9157 save_LDFLAGS=$LDFLAGS
9158 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
9159 echo "$as_me:9159: checking for a52_free in -la52" >&5
9160 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
9161 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 ac_check_lib_save_LIBS=$LIBS
9165 LIBS="-la52 -lm $LIBS"
9166 cat >conftest.$ac_ext <<_ACEOF
9167 #line 9167 "configure"
9168 #include "confdefs.h"
9170 /* Override any gcc2 internal prototype to avoid an error. */
9174 /* We use char because int might match the return type of a gcc2
9175 builtin and then its argument prototype would still apply. */
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (eval echo "$as_me:9186: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>&5
9189 echo "$as_me:9189: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -s conftest$ac_exeext'
9192 { (eval echo "$as_me:9192: \"$ac_try\"") >&5
9195 echo "$as_me:9195: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 ac_cv_lib_a52_a52_free=yes
9199 echo "$as_me: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9201 ac_cv_lib_a52_a52_free=no
9203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9204 LIBS=$ac_check_lib_save_LIBS
9206 echo "$as_me:9206: result: $ac_cv_lib_a52_a52_free" >&5
9207 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
9208 if test $ac_cv_lib_a52_a52_free = yes; then
9210 BUILTINS="${BUILTINS} a52"
9211 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
9212 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
9216 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
9218 { { echo "$as_me:9218: error: make sure you have at least a52dec-0.7.3" >&5
9219 echo "$as_me: error: make sure you have at least a52dec-0.7.3" >&2;}
9220 { (exit 1); exit 1; }; }
9222 { { echo "$as_me:9222: error: the specified tree hasn't been compiled" >&5
9223 echo "$as_me: error: the specified tree hasn't been compiled" >&2;}
9224 { (exit 1); exit 1; }; }
9229 LDFLAGS=$save_LDFLAGS
9231 echo "$as_me:9231: result: no" >&5
9232 echo "${ECHO_T}no" >&6
9233 { { echo "$as_me:9233: error: the specified tree doesn't have a52.h" >&5
9234 echo "$as_me: error: the specified tree doesn't have a52.h" >&2;}
9235 { (exit 1); exit 1; }; }
9238 for ac_header in a52dec/a52.h
9240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241 echo "$as_me:9241: checking for $ac_header" >&5
9242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 cat >conftest.$ac_ext <<_ACEOF
9247 #line 9247 "configure"
9248 #include "confdefs.h"
9249 #include <$ac_header>
9251 if { (eval echo "$as_me:9251: \"$ac_cpp conftest.$ac_ext\"") >&5
9252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9254 egrep -v '^ *\+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:9257: \$? = $ac_status" >&5
9258 (exit $ac_status); } >/dev/null; then
9259 if test -s conftest.err; then
9260 ac_cpp_err=$ac_c_preproc_warn_flag
9267 if test -z "$ac_cpp_err"; then
9268 eval "$as_ac_Header=yes"
9270 echo "$as_me: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9272 eval "$as_ac_Header=no"
9274 rm -f conftest.err conftest.$ac_ext
9276 echo "$as_me:9276: result: `eval echo '${'$as_ac_Header'}'`" >&5
9277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9279 cat >>confdefs.h <<EOF
9280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9283 echo "$as_me:9283: checking for a52_free in -la52" >&5
9284 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
9285 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 ac_check_lib_save_LIBS=$LIBS
9289 LIBS="-la52 -lm $LIBS"
9290 cat >conftest.$ac_ext <<_ACEOF
9291 #line 9291 "configure"
9292 #include "confdefs.h"
9294 /* Override any gcc2 internal prototype to avoid an error. */
9298 /* We use char because int might match the return type of a gcc2
9299 builtin and then its argument prototype would still apply. */
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (eval echo "$as_me:9310: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>&5
9313 echo "$as_me:9313: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -s conftest$ac_exeext'
9316 { (eval echo "$as_me:9316: \"$ac_try\"") >&5
9319 echo "$as_me:9319: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_lib_a52_a52_free=yes
9323 echo "$as_me: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9325 ac_cv_lib_a52_a52_free=no
9327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9330 echo "$as_me:9330: result: $ac_cv_lib_a52_a52_free" >&5
9331 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
9332 if test $ac_cv_lib_a52_a52_free = yes; then
9334 BUILTINS="${BUILTINS} a52"
9335 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
9336 a52_CFLAGS="${a52_CFLAGS}"
9346 # Check whether --enable-vorbis or --disable-vorbis was given.
9347 if test "${enable_vorbis+set}" = set; then
9348 enableval="$enable_vorbis"
9351 if test "x$enable_vorbis" != "xno"
9354 for ac_header in ogg/ogg.h
9356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9357 echo "$as_me:9357: checking for $ac_header" >&5
9358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 cat >conftest.$ac_ext <<_ACEOF
9363 #line 9363 "configure"
9364 #include "confdefs.h"
9365 #include <$ac_header>
9367 if { (eval echo "$as_me:9367: \"$ac_cpp conftest.$ac_ext\"") >&5
9368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9370 egrep -v '^ *\+' conftest.er1 >conftest.err
9372 cat conftest.err >&5
9373 echo "$as_me:9373: \$? = $ac_status" >&5
9374 (exit $ac_status); } >/dev/null; then
9375 if test -s conftest.err; then
9376 ac_cpp_err=$ac_c_preproc_warn_flag
9383 if test -z "$ac_cpp_err"; then
9384 eval "$as_ac_Header=yes"
9386 echo "$as_me: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9388 eval "$as_ac_Header=no"
9390 rm -f conftest.err conftest.$ac_ext
9392 echo "$as_me:9392: result: `eval echo '${'$as_ac_Header'}'`" >&5
9393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9395 cat >>confdefs.h <<EOF
9396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9399 #PLUGINS="${PLUGINS} vorbis"
9400 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
9407 # Check whether --with- or --without- was given.
9408 if test "${with_+set}" = set; then
9413 # Check whether --enable-x11 or --disable-x11 was given.
9414 if test "${enable_x11+set}" = set; then
9415 enableval="$enable_x11"
9418 if test x$enable_x11 != xno &&
9419 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
9420 if test x$x_includes = xNONE; then
9421 x_includes=/usr/X11R6/include
9423 if test x$x_libraries = xNONE; then
9424 x_libraries=/usr/X11R6/lib
9426 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
9428 for ac_header in X11/Xlib.h
9430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431 echo "$as_me:9431: checking for $ac_header" >&5
9432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 cat >conftest.$ac_ext <<_ACEOF
9437 #line 9437 "configure"
9438 #include "confdefs.h"
9439 #include <$ac_header>
9441 if { (eval echo "$as_me:9441: \"$ac_cpp conftest.$ac_ext\"") >&5
9442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9444 egrep -v '^ *\+' conftest.er1 >conftest.err
9446 cat conftest.err >&5
9447 echo "$as_me:9447: \$? = $ac_status" >&5
9448 (exit $ac_status); } >/dev/null; then
9449 if test -s conftest.err; then
9450 ac_cpp_err=$ac_c_preproc_warn_flag
9457 if test -z "$ac_cpp_err"; then
9458 eval "$as_ac_Header=yes"
9460 echo "$as_me: failed program was:" >&5
9461 cat conftest.$ac_ext >&5
9462 eval "$as_ac_Header=no"
9464 rm -f conftest.err conftest.$ac_ext
9466 echo "$as_me:9466: result: `eval echo '${'$as_ac_Header'}'`" >&5
9467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9469 cat >>confdefs.h <<EOF
9470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9473 PLUGINS="${PLUGINS} x11"
9474 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
9475 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
9480 CPPFLAGS="$save_CPPFLAGS"
9483 # Check whether --enable-xvideo or --disable-xvideo was given.
9484 if test "${enable_xvideo+set}" = set; then
9485 enableval="$enable_xvideo"
9488 if test x$enable_xvideo != xno &&
9489 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
9490 if test x$x_includes = xNONE; then
9491 x_includes=/usr/X11R6/include
9493 if test x$x_libraries = xNONE; then
9494 x_libraries=/usr/X11R6/lib
9496 save_CPPFLAGS=$CPPFLAGS
9497 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
9499 for ac_header in X11/extensions/Xv.h
9501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9502 echo "$as_me:9502: checking for $ac_header" >&5
9503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 cat >conftest.$ac_ext <<_ACEOF
9508 #line 9508 "configure"
9509 #include "confdefs.h"
9510 #include <$ac_header>
9512 if { (eval echo "$as_me:9512: \"$ac_cpp conftest.$ac_ext\"") >&5
9513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9515 egrep -v '^ *\+' conftest.er1 >conftest.err
9517 cat conftest.err >&5
9518 echo "$as_me:9518: \$? = $ac_status" >&5
9519 (exit $ac_status); } >/dev/null; then
9520 if test -s conftest.err; then
9521 ac_cpp_err=$ac_c_preproc_warn_flag
9528 if test -z "$ac_cpp_err"; then
9529 eval "$as_ac_Header=yes"
9531 echo "$as_me: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9533 eval "$as_ac_Header=no"
9535 rm -f conftest.err conftest.$ac_ext
9537 echo "$as_me:9537: result: `eval echo '${'$as_ac_Header'}'`" >&5
9538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9540 cat >>confdefs.h <<EOF
9541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9545 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
9546 echo "$as_me:9546: checking for XvSetPortAttribute in -lXv_pic" >&5
9547 echo $ECHO_N "checking for XvSetPortAttribute in -lXv_pic... $ECHO_C" >&6
9548 if test "${ac_cv_lib_Xv_pic_XvSetPortAttribute+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-lXv_pic $LIBS"
9553 cat >conftest.$ac_ext <<_ACEOF
9554 #line 9554 "configure"
9555 #include "confdefs.h"
9557 /* Override any gcc2 internal prototype to avoid an error. */
9561 /* We use char because int might match the return type of a gcc2
9562 builtin and then its argument prototype would still apply. */
9563 char XvSetPortAttribute ();
9567 XvSetPortAttribute ();
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (eval echo "$as_me:9573: \"$ac_link\"") >&5
9574 (eval $ac_link) 2>&5
9576 echo "$as_me:9576: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (eval echo "$as_me:9579: \"$ac_try\"") >&5
9582 echo "$as_me:9582: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_lib_Xv_pic_XvSetPortAttribute=yes
9586 echo "$as_me: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9588 ac_cv_lib_Xv_pic_XvSetPortAttribute=no
9590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9593 echo "$as_me:9593: result: $ac_cv_lib_Xv_pic_XvSetPortAttribute" >&5
9594 echo "${ECHO_T}$ac_cv_lib_Xv_pic_XvSetPortAttribute" >&6
9595 if test $ac_cv_lib_Xv_pic_XvSetPortAttribute = yes; then
9596 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
9597 PLUGINS="${PLUGINS} xvideo"
9598 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
9599 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
9601 # We don't have Xv_pic, let's make xvideo.a as builtin
9602 BUILTINS="${BUILTINS} xvideo"
9603 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
9604 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
9607 CFLAGS="$save_CFLAGS"
9609 CPPFLAGS="$save_CPPFLAGS"
9615 # Check whether --enable-sdl or --disable-sdl was given.
9616 if test "${enable_sdl+set}" = set; then
9617 enableval="$enable_sdl"
9620 if test "x$enable_sdl" != "xno"
9624 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
9625 if test "${with_sdl_config_path+set}" = set; then
9626 withval="$with_sdl_config_path"
9627 if test "x$with_sdl_config_path" != "xno"
9629 SDL_PATH="$with_sdl_config_path:$PATH"
9632 # Extract the first word of "sdl12-config", so it can be a program name with args.
9633 set dummy sdl12-config; ac_word=$2
9634 echo "$as_me:9634: checking for $ac_word" >&5
9635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9636 if test "${ac_cv_path_SDL12_CONFIG+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 case $SDL12_CONFIG in
9641 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
9644 ac_save_IFS=$IFS; IFS=$ac_path_separator
9645 ac_dummy="$SDL_PATH"
9646 for ac_dir in $ac_dummy; do
9648 test -z "$ac_dir" && ac_dir=.
9649 if $as_executable_p "$ac_dir/$ac_word"; then
9650 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
9651 echo "$as_me:9651: found $ac_dir/$ac_word" >&5
9656 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
9660 SDL12_CONFIG=$ac_cv_path_SDL12_CONFIG
9662 if test -n "$SDL12_CONFIG"; then
9663 echo "$as_me:9663: result: $SDL12_CONFIG" >&5
9664 echo "${ECHO_T}$SDL12_CONFIG" >&6
9666 echo "$as_me:9666: result: no" >&5
9667 echo "${ECHO_T}no" >&6
9670 SDL_CONFIG=${SDL12_CONFIG}
9671 SDL_HEADER="SDL12/SDL.h"
9672 if test x${SDL_CONFIG} = xno
9674 # Extract the first word of "sdl11-config", so it can be a program name with args.
9675 set dummy sdl11-config; ac_word=$2
9676 echo "$as_me:9676: checking for $ac_word" >&5
9677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9678 if test "${ac_cv_path_SDL11_CONFIG+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 case $SDL11_CONFIG in
9683 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
9686 ac_save_IFS=$IFS; IFS=$ac_path_separator
9687 ac_dummy="$SDL_PATH"
9688 for ac_dir in $ac_dummy; do
9690 test -z "$ac_dir" && ac_dir=.
9691 if $as_executable_p "$ac_dir/$ac_word"; then
9692 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
9693 echo "$as_me:9693: found $ac_dir/$ac_word" >&5
9698 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
9702 SDL11_CONFIG=$ac_cv_path_SDL11_CONFIG
9704 if test -n "$SDL11_CONFIG"; then
9705 echo "$as_me:9705: result: $SDL11_CONFIG" >&5
9706 echo "${ECHO_T}$SDL11_CONFIG" >&6
9708 echo "$as_me:9708: result: no" >&5
9709 echo "${ECHO_T}no" >&6
9712 SDL_CONFIG=${SDL11_CONFIG}
9713 SDL_HEADER="SDL11/SDL.h"
9715 if test x${SDL_CONFIG} = xno
9717 # Extract the first word of "sdl-config", so it can be a program name with args.
9718 set dummy sdl-config; ac_word=$2
9719 echo "$as_me:9719: checking for $ac_word" >&5
9720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9721 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
9729 ac_save_IFS=$IFS; IFS=$ac_path_separator
9730 ac_dummy="$SDL_PATH"
9731 for ac_dir in $ac_dummy; do
9733 test -z "$ac_dir" && ac_dir=.
9734 if $as_executable_p "$ac_dir/$ac_word"; then
9735 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
9736 echo "$as_me:9736: found $ac_dir/$ac_word" >&5
9741 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
9745 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
9747 if test -n "$SDL_CONFIG"; then
9748 echo "$as_me:9748: result: $SDL_CONFIG" >&5
9749 echo "${ECHO_T}$SDL_CONFIG" >&6
9751 echo "$as_me:9751: result: no" >&5
9752 echo "${ECHO_T}no" >&6
9755 SDL_HEADER="SDL/SDL.h"
9757 if test x${SDL_CONFIG} != xno
9759 PLUGINS="${PLUGINS} sdl"
9760 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
9761 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
9762 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
9764 for ac_header in ${SDL_HEADER}
9766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9767 echo "$as_me:9767: checking for $ac_header" >&5
9768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 cat >conftest.$ac_ext <<_ACEOF
9773 #line 9773 "configure"
9774 #include "confdefs.h"
9775 #include <$ac_header>
9777 if { (eval echo "$as_me:9777: \"$ac_cpp conftest.$ac_ext\"") >&5
9778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9780 egrep -v '^ *\+' conftest.er1 >conftest.err
9782 cat conftest.err >&5
9783 echo "$as_me:9783: \$? = $ac_status" >&5
9784 (exit $ac_status); } >/dev/null; then
9785 if test -s conftest.err; then
9786 ac_cpp_err=$ac_c_preproc_warn_flag
9793 if test -z "$ac_cpp_err"; then
9794 eval "$as_ac_Header=yes"
9796 echo "$as_me: failed program was:" >&5
9797 cat conftest.$ac_ext >&5
9798 eval "$as_ac_Header=no"
9800 rm -f conftest.err conftest.$ac_ext
9802 echo "$as_me:9802: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9805 cat >>confdefs.h <<EOF
9806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9809 cat >>confdefs.h <<EOF
9810 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
9814 { { echo "$as_me:9814: error: The development package for SDL is not installed.
9815 Please install it and try again. Alternatively you can also configure with
9817 echo "$as_me: error: The development package for SDL is not installed.
9818 Please install it and try again. Alternatively you can also configure with
9819 --disable-sdl." >&2;}
9820 { (exit 1); exit 1; }; }
9825 CPPFLAGS="$save_CPPFLAGS"
9826 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
9828 { { echo "$as_me:9828: error: The development package for SDL is not installed.
9829 Please install it and try again. Alternatively you can also configure with
9831 echo "$as_me: error: The development package for SDL is not installed.
9832 Please install it and try again. Alternatively you can also configure with
9833 --disable-sdl." >&2;}
9834 { (exit 1); exit 1; }; }
9836 elif test "x$enable_sdl" = "xyes"
9838 { { echo "$as_me:9838: error: I couldn't find the SDL package. You can download libSDL
9839 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
9841 echo "$as_me: error: I couldn't find the SDL package. You can download libSDL
9842 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
9844 { (exit 1); exit 1; }; }
9848 # Check whether --enable-qte or --disable-qte was given.
9849 if test "${enable_qte+set}" = set; then
9850 enableval="$enable_qte"
9853 if test "x${enable_qte}" != "xno"
9856 # Check whether --with-qte or --without-qte was given.
9857 if test "${with_qte+set}" = set; then
9861 if test "x${with_qte}" = "x"
9863 test_LDFLAGS="-L${QTDIR}/lib"
9864 test_CFLAGS="-I${QTDIR}/include"
9866 test_LDFLAGS="-L${with_qte}/lib"
9867 test_CFLAGS="-I${with_qte}/include"
9870 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
9872 for ac_header in qt.h
9874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9875 echo "$as_me:9875: checking for $ac_header" >&5
9876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 cat >conftest.$ac_ext <<_ACEOF
9881 #line 9881 "configure"
9882 #include "confdefs.h"
9883 #include <$ac_header>
9885 if { (eval echo "$as_me:9885: \"$ac_cpp conftest.$ac_ext\"") >&5
9886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9888 egrep -v '^ *\+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 echo "$as_me:9891: \$? = $ac_status" >&5
9892 (exit $ac_status); } >/dev/null; then
9893 if test -s conftest.err; then
9894 ac_cpp_err=$ac_c_preproc_warn_flag
9901 if test -z "$ac_cpp_err"; then
9902 eval "$as_ac_Header=yes"
9904 echo "$as_me: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 eval "$as_ac_Header=no"
9908 rm -f conftest.err conftest.$ac_ext
9910 echo "$as_me:9910: result: `eval echo '${'$as_ac_Header'}'`" >&5
9911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9913 cat >>confdefs.h <<EOF
9914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9917 qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
9918 qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
9919 if test "x${with_qte}" = "x"
9921 PLUGINS="${PLUGINS} qte"
9923 BUILTINS="${BUILTINS} qte"
9929 CPPFLAGS="${save_CPPFLAGS}"
9932 # Check whether --enable-directx or --disable-directx was given.
9933 if test "${enable_directx+set}" = set; then
9934 enableval="$enable_directx"
9937 if test "x$enable_directx" != "xno"
9939 if test x$SYS = xmingw32
9942 # Check whether --with-directx or --without-directx was given.
9943 if test "${with_directx+set}" = set; then
9944 withval="$with_directx"
9947 if test "x$with_directx" = "x"
9950 for ac_header in ddraw.h
9952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9953 echo "$as_me:9953: checking for $ac_header" >&5
9954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 cat >conftest.$ac_ext <<_ACEOF
9959 #line 9959 "configure"
9960 #include "confdefs.h"
9961 #include <$ac_header>
9963 if { (eval echo "$as_me:9963: \"$ac_cpp conftest.$ac_ext\"") >&5
9964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9966 egrep -v '^ *\+' conftest.er1 >conftest.err
9968 cat conftest.err >&5
9969 echo "$as_me:9969: \$? = $ac_status" >&5
9970 (exit $ac_status); } >/dev/null; then
9971 if test -s conftest.err; then
9972 ac_cpp_err=$ac_c_preproc_warn_flag
9979 if test -z "$ac_cpp_err"; then
9980 eval "$as_ac_Header=yes"
9982 echo "$as_me: failed program was:" >&5
9983 cat conftest.$ac_ext >&5
9984 eval "$as_ac_Header=no"
9986 rm -f conftest.err conftest.$ac_ext
9988 echo "$as_me:9988: result: `eval echo '${'$as_ac_Header'}'`" >&5
9989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9991 cat >>confdefs.h <<EOF
9992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9994 PLUGINS="${PLUGINS} directx"
9995 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
10000 echo "$as_me:10000: checking for directX headers in ${with_directx}" >&5
10001 echo $ECHO_N "checking for directX headers in ${with_directx}... $ECHO_C" >&6
10002 if test -f ${with_directx}/ddraw.h
10004 PLUGINS="${PLUGINS} directx"
10005 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
10006 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
10007 echo "$as_me:10007: result: yes" >&5
10008 echo "${ECHO_T}yes" >&6
10010 echo "$as_me:10010: result: no" >&5
10011 echo "${ECHO_T}no" >&6
10012 { { echo "$as_me:10012: error: Cannot find ${with_directx}/ddraw.h!" >&5
10013 echo "$as_me: error: Cannot find ${with_directx}/ddraw.h!" >&2;}
10014 { (exit 1); exit 1; }; }
10020 # Check whether --enable-fb or --disable-fb was given.
10021 if test "${enable_fb+set}" = set; then
10022 enableval="$enable_fb"
10025 if test x$enable_fb != xno
10028 for ac_header in linux/fb.h
10030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10031 echo "$as_me:10031: checking for $ac_header" >&5
10032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 cat >conftest.$ac_ext <<_ACEOF
10037 #line 10037 "configure"
10038 #include "confdefs.h"
10039 #include <$ac_header>
10041 if { (eval echo "$as_me:10041: \"$ac_cpp conftest.$ac_ext\"") >&5
10042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10044 egrep -v '^ *\+' conftest.er1 >conftest.err
10046 cat conftest.err >&5
10047 echo "$as_me:10047: \$? = $ac_status" >&5
10048 (exit $ac_status); } >/dev/null; then
10049 if test -s conftest.err; then
10050 ac_cpp_err=$ac_c_preproc_warn_flag
10057 if test -z "$ac_cpp_err"; then
10058 eval "$as_ac_Header=yes"
10060 echo "$as_me: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 eval "$as_ac_Header=no"
10064 rm -f conftest.err conftest.$ac_ext
10066 echo "$as_me:10066: result: `eval echo '${'$as_ac_Header'}'`" >&5
10067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10069 cat >>confdefs.h <<EOF
10070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10073 PLUGINS="${PLUGINS} fb"
10080 # Check whether --enable-mga or --disable-mga was given.
10081 if test "${enable_mga+set}" = set; then
10082 enableval="$enable_mga"
10083 if test x$enable_mga = xyes
10085 PLUGINS="${PLUGINS} mga xmga"
10089 # Check whether --enable-ggi or --disable-ggi was given.
10090 if test "${enable_ggi+set}" = set; then
10091 enableval="$enable_ggi"
10094 if test x$enable_ggi = xyes
10096 PLUGINS="${PLUGINS} ggi"
10097 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
10099 # Check whether --with-ggi or --without-ggi was given.
10100 if test "${with_ggi+set}" = set; then
10101 withval="$with_ggi"
10102 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
10104 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
10105 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
10110 # Check whether --enable-glide or --disable-glide was given.
10111 if test "${enable_glide+set}" = set; then
10112 enableval="$enable_glide"
10115 if test x$enable_glide = xyes
10117 PLUGINS="${PLUGINS} glide"
10118 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
10119 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
10121 # Check whether --with-glide or --without-glide was given.
10122 if test "${with_glide+set}" = set; then
10123 withval="$with_glide"
10124 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
10126 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
10127 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
10132 # Check whether --enable-aa or --disable-aa was given.
10133 if test "${enable_aa+set}" = set; then
10134 enableval="$enable_aa"
10137 if test x$enable_aa = xyes
10139 echo "$as_me:10139: checking for aalib.h" >&5
10140 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
10141 if test "${ac_cv_header_aalib_h+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 cat >conftest.$ac_ext <<_ACEOF
10145 #line 10145 "configure"
10146 #include "confdefs.h"
10149 if { (eval echo "$as_me:10149: \"$ac_cpp conftest.$ac_ext\"") >&5
10150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10152 egrep -v '^ *\+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:10155: \$? = $ac_status" >&5
10156 (exit $ac_status); } >/dev/null; then
10157 if test -s conftest.err; then
10158 ac_cpp_err=$ac_c_preproc_warn_flag
10165 if test -z "$ac_cpp_err"; then
10166 ac_cv_header_aalib_h=yes
10168 echo "$as_me: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10170 ac_cv_header_aalib_h=no
10172 rm -f conftest.err conftest.$ac_ext
10174 echo "$as_me:10174: result: $ac_cv_header_aalib_h" >&5
10175 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
10176 if test $ac_cv_header_aalib_h = yes; then
10182 if test x$have_aa = xtrue
10184 PLUGINS="${PLUGINS} aa"
10185 aa_LDFLAGS="${aa_LDFLAGS} -laa"
10189 # Check whether --with- or --without- was given.
10190 if test "${with_+set}" = set; then
10195 # Check whether --enable-dsp or --disable-dsp was given.
10196 if test "${enable_dsp+set}" = set; then
10197 enableval="$enable_dsp"
10201 if test x$enable_dsp != xno &&
10202 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
10205 for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h
10207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10208 echo "$as_me:10208: checking for $ac_header" >&5
10209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 cat >conftest.$ac_ext <<_ACEOF
10214 #line 10214 "configure"
10215 #include "confdefs.h"
10216 #include <$ac_header>
10218 if { (eval echo "$as_me:10218: \"$ac_cpp conftest.$ac_ext\"") >&5
10219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10221 egrep -v '^ *\+' conftest.er1 >conftest.err
10223 cat conftest.err >&5
10224 echo "$as_me:10224: \$? = $ac_status" >&5
10225 (exit $ac_status); } >/dev/null; then
10226 if test -s conftest.err; then
10227 ac_cpp_err=$ac_c_preproc_warn_flag
10234 if test -z "$ac_cpp_err"; then
10235 eval "$as_ac_Header=yes"
10237 echo "$as_me: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10239 eval "$as_ac_Header=no"
10241 rm -f conftest.err conftest.$ac_ext
10243 echo "$as_me:10243: result: `eval echo '${'$as_ac_Header'}'`" >&5
10244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10246 cat >>confdefs.h <<EOF
10247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10250 PLUGINS="${PLUGINS} dsp"
10251 echo "$as_me:10251: checking for main in -lossaudio" >&5
10252 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6
10253 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 ac_check_lib_save_LIBS=$LIBS
10257 LIBS="-lossaudio $LIBS"
10258 cat >conftest.$ac_ext <<_ACEOF
10259 #line 10259 "configure"
10260 #include "confdefs.h"
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (eval echo "$as_me:10271: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10274 echo "$as_me:10274: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -s conftest$ac_exeext'
10277 { (eval echo "$as_me:10277: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:10280: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_lib_ossaudio_main=yes
10284 echo "$as_me: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 ac_cv_lib_ossaudio_main=no
10288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10291 echo "$as_me:10291: result: $ac_cv_lib_ossaudio_main" >&5
10292 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
10293 if test $ac_cv_lib_ossaudio_main = yes; then
10294 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
10302 # Check whether --enable-esd or --disable-esd was given.
10303 if test "${enable_esd+set}" = set; then
10304 enableval="$enable_esd"
10305 if test x$enable_esd = xyes
10307 # Extract the first word of "esd-config", so it can be a program name with args.
10308 set dummy esd-config; ac_word=$2
10309 echo "$as_me:10309: checking for $ac_word" >&5
10310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10311 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 case $ESD_CONFIG in
10316 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
10319 ac_save_IFS=$IFS; IFS=$ac_path_separator
10321 for ac_dir in $ac_dummy; do
10323 test -z "$ac_dir" && ac_dir=.
10324 if $as_executable_p "$ac_dir/$ac_word"; then
10325 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
10326 echo "$as_me:10326: found $ac_dir/$ac_word" >&5
10331 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
10335 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
10337 if test -n "$ESD_CONFIG"; then
10338 echo "$as_me:10338: result: $ESD_CONFIG" >&5
10339 echo "${ECHO_T}$ESD_CONFIG" >&6
10341 echo "$as_me:10341: result: no" >&5
10342 echo "${ECHO_T}no" >&6
10345 if test x${ESD_CONFIG} != xno
10347 PLUGINS="${PLUGINS} esd"
10348 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
10349 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
10354 # Check whether --enable-arts or --disable-arts was given.
10355 if test "${enable_arts+set}" = set; then
10356 enableval="$enable_arts"
10357 if test x$enable_arts = xyes
10359 # Extract the first word of "artsc-config", so it can be a program name with args.
10360 set dummy artsc-config; ac_word=$2
10361 echo "$as_me:10361: checking for $ac_word" >&5
10362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10363 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 case $ARTS_CONFIG in
10368 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
10371 ac_save_IFS=$IFS; IFS=$ac_path_separator
10373 for ac_dir in $ac_dummy; do
10375 test -z "$ac_dir" && ac_dir=.
10376 if $as_executable_p "$ac_dir/$ac_word"; then
10377 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
10378 echo "$as_me:10378: found $ac_dir/$ac_word" >&5
10383 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
10387 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
10389 if test -n "$ARTS_CONFIG"; then
10390 echo "$as_me:10390: result: $ARTS_CONFIG" >&5
10391 echo "${ECHO_T}$ARTS_CONFIG" >&6
10393 echo "$as_me:10393: result: no" >&5
10394 echo "${ECHO_T}no" >&6
10397 if test x${ARTS_CONFIG} != xno
10399 PLUGINS="${PLUGINS} arts"
10400 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
10401 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
10406 # Check whether --enable-alsa or --disable-alsa was given.
10407 if test "${enable_alsa+set}" = set; then
10408 enableval="$enable_alsa"
10409 if test x$enable_alsa = xyes
10411 echo "$as_me:10411: checking for alsa/asoundlib.h" >&5
10412 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
10413 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 cat >conftest.$ac_ext <<_ACEOF
10417 #line 10417 "configure"
10418 #include "confdefs.h"
10419 #include <alsa/asoundlib.h>
10421 if { (eval echo "$as_me:10421: \"$ac_cpp conftest.$ac_ext\"") >&5
10422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10424 egrep -v '^ *\+' conftest.er1 >conftest.err
10426 cat conftest.err >&5
10427 echo "$as_me:10427: \$? = $ac_status" >&5
10428 (exit $ac_status); } >/dev/null; then
10429 if test -s conftest.err; then
10430 ac_cpp_err=$ac_c_preproc_warn_flag
10437 if test -z "$ac_cpp_err"; then
10438 ac_cv_header_alsa_asoundlib_h=yes
10440 echo "$as_me: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10442 ac_cv_header_alsa_asoundlib_h=no
10444 rm -f conftest.err conftest.$ac_ext
10446 echo "$as_me:10446: result: $ac_cv_header_alsa_asoundlib_h" >&5
10447 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
10448 if test $ac_cv_header_alsa_asoundlib_h = yes; then
10449 echo "$as_me:10449: checking for main in -lasound" >&5
10450 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
10451 if test "${ac_cv_lib_asound_main+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-lasound $LIBS"
10456 cat >conftest.$ac_ext <<_ACEOF
10457 #line 10457 "configure"
10458 #include "confdefs.h"
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (eval echo "$as_me:10469: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>&5
10472 echo "$as_me:10472: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -s conftest$ac_exeext'
10475 { (eval echo "$as_me:10475: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:10478: \$? = $ac_status" >&5
10479 (exit $ac_status); }; }; then
10480 ac_cv_lib_asound_main=yes
10482 echo "$as_me: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10484 ac_cv_lib_asound_main=no
10486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10487 LIBS=$ac_check_lib_save_LIBS
10489 echo "$as_me:10489: result: $ac_cv_lib_asound_main" >&5
10490 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
10491 if test $ac_cv_lib_asound_main = yes; then
10501 if test x$have_alsa = xtrue
10503 PLUGINS="${PLUGINS} alsa"
10504 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
10509 # Check whether --enable-waveout or --disable-waveout was given.
10510 if test "${enable_waveout+set}" = set; then
10511 enableval="$enable_waveout"
10514 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
10516 PLUGINS="${PLUGINS} waveout"
10517 waveout_LDFLAGS="-lwinmm"
10520 # Check whether --with- or --without- was given.
10521 if test "${with_+set}" = set; then
10526 # Check whether --enable-gtk or --disable-gtk was given.
10527 if test "${enable_gtk+set}" = set; then
10528 enableval="$enable_gtk"
10531 if test x$enable_gtk != xno
10535 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
10536 if test "${with_gtk_config_path+set}" = set; then
10537 withval="$with_gtk_config_path"
10538 if test "x$with_gtk_config_path" != "xno"
10540 GTK_PATH="$with_gtk_config_path:$PATH"
10543 # look for gtk-config
10544 # Extract the first word of "gtk12-config", so it can be a program name with args.
10545 set dummy gtk12-config; ac_word=$2
10546 echo "$as_me:10546: checking for $ac_word" >&5
10547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10548 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 case $GTK12_CONFIG in
10553 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
10556 ac_save_IFS=$IFS; IFS=$ac_path_separator
10557 ac_dummy="$GTK_PATH"
10558 for ac_dir in $ac_dummy; do
10560 test -z "$ac_dir" && ac_dir=.
10561 if $as_executable_p "$ac_dir/$ac_word"; then
10562 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
10563 echo "$as_me:10563: found $ac_dir/$ac_word" >&5
10568 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
10572 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
10574 if test -n "$GTK12_CONFIG"; then
10575 echo "$as_me:10575: result: $GTK12_CONFIG" >&5
10576 echo "${ECHO_T}$GTK12_CONFIG" >&6
10578 echo "$as_me:10578: result: no" >&5
10579 echo "${ECHO_T}no" >&6
10582 GTK_CONFIG=${GTK12_CONFIG}
10583 if test x${GTK_CONFIG} = xno
10585 # Extract the first word of "gtk-config", so it can be a program name with args.
10586 set dummy gtk-config; ac_word=$2
10587 echo "$as_me:10587: checking for $ac_word" >&5
10588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10589 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 case $GTK_CONFIG in
10594 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10597 ac_save_IFS=$IFS; IFS=$ac_path_separator
10598 ac_dummy="$GTK_PATH"
10599 for ac_dir in $ac_dummy; do
10601 test -z "$ac_dir" && ac_dir=.
10602 if $as_executable_p "$ac_dir/$ac_word"; then
10603 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10604 echo "$as_me:10604: found $ac_dir/$ac_word" >&5
10609 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10613 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
10615 if test -n "$GTK_CONFIG"; then
10616 echo "$as_me:10616: result: $GTK_CONFIG" >&5
10617 echo "${ECHO_T}$GTK_CONFIG" >&6
10619 echo "$as_me:10619: result: no" >&5
10620 echo "${ECHO_T}no" >&6
10624 if test x${GTK_CONFIG} != xno
10626 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
10628 { { echo "$as_me:10628: 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
10629 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;}
10630 { (exit 1); exit 1; }; }
10632 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
10633 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
10634 # now look for the gtk.h header
10635 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
10636 ac_cv_gtk_headers=yes
10638 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
10640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10641 echo "$as_me:10641: checking for $ac_header" >&5
10642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 cat >conftest.$ac_ext <<_ACEOF
10647 #line 10647 "configure"
10648 #include "confdefs.h"
10649 #include <$ac_header>
10651 if { (eval echo "$as_me:10651: \"$ac_cpp conftest.$ac_ext\"") >&5
10652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10654 egrep -v '^ *\+' conftest.er1 >conftest.err
10656 cat conftest.err >&5
10657 echo "$as_me:10657: \$? = $ac_status" >&5
10658 (exit $ac_status); } >/dev/null; then
10659 if test -s conftest.err; then
10660 ac_cpp_err=$ac_c_preproc_warn_flag
10667 if test -z "$ac_cpp_err"; then
10668 eval "$as_ac_Header=yes"
10670 echo "$as_me: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10672 eval "$as_ac_Header=no"
10674 rm -f conftest.err conftest.$ac_ext
10676 echo "$as_me:10676: result: `eval echo '${'$as_ac_Header'}'`" >&5
10677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10679 cat >>confdefs.h <<EOF
10680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10685 ac_cv_gtk_headers=no
10686 echo "Cannot find gtk development headers."
10691 if test "x$ac_cv_gtk_headers" = xyes
10693 PLUGINS="${PLUGINS} gtk"
10694 ALIASES="${ALIASES} gvlc"
10696 CPPFLAGS="$save_CPPFLAGS"
10700 # Check whether --enable-familiar or --disable-familiar was given.
10701 if test "${enable_familiar+set}" = set; then
10702 enableval="$enable_familiar"
10705 if test "x${enable_familiar}" = "xyes"
10709 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
10710 if test "${with_gtk_config_path+set}" = set; then
10711 withval="$with_gtk_config_path"
10712 if test "x${with_gtk_config_path}" != "xno"
10714 GTK_PATH="${with_gtk_config_path}:${PATH}"
10717 # look for gtk-config
10718 # Extract the first word of "gtk12-config", so it can be a program name with args.
10719 set dummy gtk12-config; ac_word=$2
10720 echo "$as_me:10720: checking for $ac_word" >&5
10721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10722 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 case $GTK12_CONFIG in
10727 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
10730 ac_save_IFS=$IFS; IFS=$ac_path_separator
10731 ac_dummy="${GTK_PATH}"
10732 for ac_dir in $ac_dummy; do
10734 test -z "$ac_dir" && ac_dir=.
10735 if $as_executable_p "$ac_dir/$ac_word"; then
10736 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
10737 echo "$as_me:10737: found $ac_dir/$ac_word" >&5
10742 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
10746 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
10748 if test -n "$GTK12_CONFIG"; then
10749 echo "$as_me:10749: result: $GTK12_CONFIG" >&5
10750 echo "${ECHO_T}$GTK12_CONFIG" >&6
10752 echo "$as_me:10752: result: no" >&5
10753 echo "${ECHO_T}no" >&6
10756 GTK_CONFIG=${GTK12_CONFIG}
10757 if test "x${GTK_CONFIG}" = "xno"
10759 # Extract the first word of "gtk-config", so it can be a program name with args.
10760 set dummy gtk-config; ac_word=$2
10761 echo "$as_me:10761: checking for $ac_word" >&5
10762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10763 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 case $GTK_CONFIG in
10768 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10771 ac_save_IFS=$IFS; IFS=$ac_path_separator
10772 ac_dummy="${GTK_PATH}"
10773 for ac_dir in $ac_dummy; do
10775 test -z "$ac_dir" && ac_dir=.
10776 if $as_executable_p "$ac_dir/$ac_word"; then
10777 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10778 echo "$as_me:10778: found $ac_dir/$ac_word" >&5
10783 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10787 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
10789 if test -n "$GTK_CONFIG"; then
10790 echo "$as_me:10790: result: $GTK_CONFIG" >&5
10791 echo "${ECHO_T}$GTK_CONFIG" >&6
10793 echo "$as_me:10793: result: no" >&5
10794 echo "${ECHO_T}no" >&6
10798 if test "x${GTK_CONFIG}" != "xno"
10800 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
10802 { { echo "$as_me:10802: 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
10803 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;}
10804 { (exit 1); exit 1; }; }
10806 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk gthread`"
10807 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk gthread | sed 's,-rdynamic,,'`"
10808 # now look for the gtk.h header
10809 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
10810 ac_cv_gtk_headers=yes
10812 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
10814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10815 echo "$as_me:10815: checking for $ac_header" >&5
10816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 cat >conftest.$ac_ext <<_ACEOF
10821 #line 10821 "configure"
10822 #include "confdefs.h"
10823 #include <$ac_header>
10825 if { (eval echo "$as_me:10825: \"$ac_cpp conftest.$ac_ext\"") >&5
10826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10828 egrep -v '^ *\+' conftest.er1 >conftest.err
10830 cat conftest.err >&5
10831 echo "$as_me:10831: \$? = $ac_status" >&5
10832 (exit $ac_status); } >/dev/null; then
10833 if test -s conftest.err; then
10834 ac_cpp_err=$ac_c_preproc_warn_flag
10841 if test -z "$ac_cpp_err"; then
10842 eval "$as_ac_Header=yes"
10844 echo "$as_me: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 eval "$as_ac_Header=no"
10848 rm -f conftest.err conftest.$ac_ext
10850 echo "$as_me:10850: result: `eval echo '${'$as_ac_Header'}'`" >&5
10851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10853 cat >>confdefs.h <<EOF
10854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10859 ac_cv_gtk_headers=no
10860 echo "Cannot find gtk development headers."
10865 if test "x${ac_cv_gtk_headers}" = "xyes"
10867 PLUGINS="${PLUGINS} familiar"
10870 CPPFLAGS="${save_CPPFLAGS}"
10874 # Check whether --enable-gnome or --disable-gnome was given.
10875 if test "${enable_gnome+set}" = set; then
10876 enableval="$enable_gnome"
10877 if test x$enable_gnome = xyes; then
10878 # look for gnome-config
10879 # Extract the first word of "gnome-config", so it can be a program name with args.
10880 set dummy gnome-config; ac_word=$2
10881 echo "$as_me:10881: checking for $ac_word" >&5
10882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10883 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 case $GNOME_CONFIG in
10888 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
10891 ac_save_IFS=$IFS; IFS=$ac_path_separator
10893 for ac_dir in $ac_dummy; do
10895 test -z "$ac_dir" && ac_dir=.
10896 if $as_executable_p "$ac_dir/$ac_word"; then
10897 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
10898 echo "$as_me:10898: found $ac_dir/$ac_word" >&5
10903 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
10907 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
10909 if test -n "$GNOME_CONFIG"; then
10910 echo "$as_me:10910: result: $GNOME_CONFIG" >&5
10911 echo "${ECHO_T}$GNOME_CONFIG" >&6
10913 echo "$as_me:10913: result: no" >&5
10914 echo "${ECHO_T}no" >&6
10917 if test -x ${GNOME_CONFIG}
10919 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
10920 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
10922 # now look for the gnome.h header
10923 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
10925 for ac_header in gnome.h
10927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10928 echo "$as_me:10928: checking for $ac_header" >&5
10929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 cat >conftest.$ac_ext <<_ACEOF
10934 #line 10934 "configure"
10935 #include "confdefs.h"
10936 #include <$ac_header>
10938 if { (eval echo "$as_me:10938: \"$ac_cpp conftest.$ac_ext\"") >&5
10939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10941 egrep -v '^ *\+' conftest.er1 >conftest.err
10943 cat conftest.err >&5
10944 echo "$as_me:10944: \$? = $ac_status" >&5
10945 (exit $ac_status); } >/dev/null; then
10946 if test -s conftest.err; then
10947 ac_cpp_err=$ac_c_preproc_warn_flag
10954 if test -z "$ac_cpp_err"; then
10955 eval "$as_ac_Header=yes"
10957 echo "$as_me: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10959 eval "$as_ac_Header=no"
10961 rm -f conftest.err conftest.$ac_ext
10963 echo "$as_me:10963: result: `eval echo '${'$as_ac_Header'}'`" >&5
10964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10966 cat >>confdefs.h <<EOF
10967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10970 PLUGINS="${PLUGINS} gnome"
10971 ALIASES="${ALIASES} gnome-vlc"
10975 { { echo "$as_me:10975: error: Can't find gnome headers. Please install the gnome
10976 developement tools or remove the --enable-gnome option" >&5
10977 echo "$as_me: error: Can't find gnome headers. Please install the gnome
10978 developement tools or remove the --enable-gnome option" >&2;}
10979 { (exit 1); exit 1; }; }
10984 CPPFLAGS="$save_CPPFLAGS"
10988 # Check whether --enable-qt or --disable-qt was given.
10989 if test "${enable_qt+set}" = set; then
10990 enableval="$enable_qt"
10991 if test x$enable_qt = xyes; then
10992 PLUGINS="${PLUGINS} qt"
10993 ALIASES="${ALIASES} qvlc"
10994 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
10995 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
10996 if test -x ${QTDIR}/bin/moc
10998 MOC=${QTDIR}/bin/moc
11005 # Check whether --enable-kde or --disable-kde was given.
11006 if test "${enable_kde+set}" = set; then
11007 enableval="$enable_kde"
11008 if test x$enable_kde = xyes; then
11009 PLUGINS="${PLUGINS} kde"
11010 ALIASES="${ALIASES} kvlc"
11011 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
11012 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
11013 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
11014 if test -x ${QTDIR}/bin/moc
11016 MOC=${QTDIR}/bin/moc
11023 # Check whether --enable-opie or --disable-opie was given.
11024 if test "${enable_opie+set}" = set; then
11025 enableval="$enable_opie"
11026 if test "x${enable_opie}" = "xyes"; then
11028 # Check whether --with-qte or --without-qte was given.
11029 if test "${with_qte+set}" = set; then
11030 withval="$with_qte"
11033 if test "x${with_qte}" = "x"
11035 test_LDFLAGS="-L${QTDIR}/lib"
11036 test_CFLAGS="-I${QTDIR}/include"
11038 test_LDFLAGS="-L${with_qte}/lib"
11039 test_CFLAGS="-I${with_qte}/include"
11042 PLUGINS="${PLUGINS} opie"
11043 opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
11044 opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}-DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
11045 if test -x ${QTDIR}/bin/moc
11047 MOC=${QTDIR}/bin/moc
11054 # Check whether --enable-macosx or --disable-macosx was given.
11055 if test "${enable_macosx+set}" = set; then
11056 enableval="$enable_macosx"
11057 if test x$enable_macosx = xyes
11059 BUILTINS="${BUILTINS} macosx"
11060 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
11064 for ac_header in Cocoa/Cocoa.h
11066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11067 echo "$as_me:11067: checking for $ac_header" >&5
11068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 cat >conftest.$ac_ext <<_ACEOF
11073 #line 11073 "configure"
11074 #include "confdefs.h"
11075 #include <$ac_header>
11077 if { (eval echo "$as_me:11077: \"$ac_cpp conftest.$ac_ext\"") >&5
11078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11080 egrep -v '^ *\+' conftest.er1 >conftest.err
11082 cat conftest.err >&5
11083 echo "$as_me:11083: \$? = $ac_status" >&5
11084 (exit $ac_status); } >/dev/null; then
11085 if test -s conftest.err; then
11086 ac_cpp_err=$ac_c_preproc_warn_flag
11093 if test -z "$ac_cpp_err"; then
11094 eval "$as_ac_Header=yes"
11096 echo "$as_me: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 eval "$as_ac_Header=no"
11100 rm -f conftest.err conftest.$ac_ext
11102 echo "$as_me:11102: result: `eval echo '${'$as_ac_Header'}'`" >&5
11103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11105 cat >>confdefs.h <<EOF
11106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11108 BUILTINS="${BUILTINS} macosx"
11109 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
11116 # Check whether --enable-qnx or --disable-qnx was given.
11117 if test "${enable_qnx+set}" = set; then
11118 enableval="$enable_qnx"
11121 if test x$enable_qnx != xno
11124 for ac_header in Ph.h
11126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11127 echo "$as_me:11127: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11133 #line 11133 "configure"
11134 #include "confdefs.h"
11135 #include <$ac_header>
11137 if { (eval echo "$as_me:11137: \"$ac_cpp conftest.$ac_ext\"") >&5
11138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11140 egrep -v '^ *\+' conftest.er1 >conftest.err
11142 cat conftest.err >&5
11143 echo "$as_me:11143: \$? = $ac_status" >&5
11144 (exit $ac_status); } >/dev/null; then
11145 if test -s conftest.err; then
11146 ac_cpp_err=$ac_c_preproc_warn_flag
11153 if test -z "$ac_cpp_err"; then
11154 eval "$as_ac_Header=yes"
11156 echo "$as_me: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11158 eval "$as_ac_Header=no"
11160 rm -f conftest.err conftest.$ac_ext
11162 echo "$as_me:11162: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11165 cat >>confdefs.h <<EOF
11166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11169 PLUGINS="${PLUGINS} qnx"
11170 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
11177 # Check whether --enable-intfwin or --disable-intfwin was given.
11178 if test "${enable_intfwin+set}" = set; then
11179 enableval="$enable_intfwin"
11180 if test "x$enable_intfwin" != "xno"
11183 # Check whether --with-bcbuilder or --without-bcbuilder was given.
11184 if test "${with_bcbuilder+set}" = set; then
11185 withval="$with_bcbuilder"
11188 if test "x$with_bcbuilder" != "x"
11190 BCBUILDER="$with_bcbuilder"
11192 PLUGINS="${PLUGINS} intfwin"
11196 # Check whether --enable-ncurses or --disable-ncurses was given.
11197 if test "${enable_ncurses+set}" = set; then
11198 enableval="$enable_ncurses"
11199 if test x$enable_ncurses = xyes; then
11200 PLUGINS="${PLUGINS} ncurses"
11201 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
11205 # Check whether --enable-lirc or --disable-lirc was given.
11206 if test "${enable_lirc+set}" = set; then
11207 enableval="$enable_lirc"
11210 if test x$enable_lirc = xyes
11212 echo "$as_me:11212: checking for lirc/lirc_client.h" >&5
11213 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
11214 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 cat >conftest.$ac_ext <<_ACEOF
11218 #line 11218 "configure"
11219 #include "confdefs.h"
11220 #include <lirc/lirc_client.h>
11222 if { (eval echo "$as_me:11222: \"$ac_cpp conftest.$ac_ext\"") >&5
11223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11225 egrep -v '^ *\+' conftest.er1 >conftest.err
11227 cat conftest.err >&5
11228 echo "$as_me:11228: \$? = $ac_status" >&5
11229 (exit $ac_status); } >/dev/null; then
11230 if test -s conftest.err; then
11231 ac_cpp_err=$ac_c_preproc_warn_flag
11238 if test -z "$ac_cpp_err"; then
11239 ac_cv_header_lirc_lirc_client_h=yes
11241 echo "$as_me: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11243 ac_cv_header_lirc_lirc_client_h=no
11245 rm -f conftest.err conftest.$ac_ext
11247 echo "$as_me:11247: result: $ac_cv_header_lirc_lirc_client_h" >&5
11248 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
11249 if test $ac_cv_header_lirc_lirc_client_h = yes; then
11250 echo "$as_me:11250: checking for lirc_init in -llirc_client" >&5
11251 echo $ECHO_N "checking for lirc_init in -llirc_client... $ECHO_C" >&6
11252 if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 ac_check_lib_save_LIBS=$LIBS
11256 LIBS="-llirc_client $LIBS"
11257 cat >conftest.$ac_ext <<_ACEOF
11258 #line 11258 "configure"
11259 #include "confdefs.h"
11261 /* Override any gcc2 internal prototype to avoid an error. */
11265 /* We use char because int might match the return type of a gcc2
11266 builtin and then its argument prototype would still apply. */
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:11277: \"$ac_link\"") >&5
11278 (eval $ac_link) 2>&5
11280 echo "$as_me:11280: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -s conftest$ac_exeext'
11283 { (eval echo "$as_me:11283: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:11286: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_cv_lib_lirc_client_lirc_init=yes
11290 echo "$as_me: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11292 ac_cv_lib_lirc_client_lirc_init=no
11294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_lib_save_LIBS
11297 echo "$as_me:11297: result: $ac_cv_lib_lirc_client_lirc_init" >&5
11298 echo "${ECHO_T}$ac_cv_lib_lirc_client_lirc_init" >&6
11299 if test $ac_cv_lib_lirc_client_lirc_init = yes; then
11309 if test x$have_lirc = xtrue
11311 PLUGINS="${PLUGINS} lirc"
11312 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
11316 # Check whether --with- or --without- was given.
11317 if test "${with_+set}" = set; then
11322 # Check whether --with-words or --without-words was given.
11323 if test "${with_words+set}" = set; then
11324 withval="$with_words"
11327 case "x$with_words" in
11329 ac_cv_c_bigendian=yes
11332 ac_cv_c_bigendian=no
11335 echo "$as_me:11335: checking whether the byte order is big-endian" >&5
11336 echo $ECHO_N "checking whether the byte order is big-endian... $ECHO_C" >&6
11337 if test "${ac_cv_c_bigendian+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 ac_cv_c_bigendian=unknown
11341 cat >conftest.c <<EOF
11342 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
11343 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
11344 void _a(void) { char*s = (char*)am; s = (char *)ai; }
11345 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
11346 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
11347 void _e(void) { char*s = (char*)em; s = (char*)ei; }
11348 int main(void) { _a(); _e(); return 0; }
11351 if test -f conftest.c
11353 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
11354 && test -f conftest.o
11356 if test "`strings conftest.o | grep BIGenDianSyS`"
11358 ac_cv_c_bigendian=yes
11360 if test "`strings conftest.o | grep LiTTleEnDian`"
11362 ac_cv_c_bigendian=no
11368 echo "$as_me:11368: result: $ac_cv_c_bigendian" >&5
11369 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11370 if test x$ac_cv_c_bigendian = xunknown
11372 { { echo "$as_me:11372: error: Could not guess endianness, please use --with-words" >&5
11373 echo "$as_me: error: Could not guess endianness, please use --with-words" >&2;}
11374 { (exit 1); exit 1; }; }
11378 if test $ac_cv_c_bigendian = yes
11381 cat >>confdefs.h <<\EOF
11382 #define WORDS_BIGENDIAN 1
11388 # Check whether --enable-gprof or --disable-gprof was given.
11389 if test "${enable_gprof+set}" = set; then
11390 enableval="$enable_gprof"
11391 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
11395 # Check whether --enable-cprof or --disable-cprof was given.
11396 if test "${enable_cprof+set}" = set; then
11397 enableval="$enable_cprof"
11398 if test "x$enable_cprof" = "xyes";
11400 LDFLAGS="${LDFLAGS} -lcprof"
11406 # Check whether --enable-pth or --disable-pth was given.
11407 if test "${enable_pth+set}" = set; then
11408 enableval="$enable_pth"
11409 if test "x$enable_pth" = "xyes"; then
11411 echo "$as_me:11411: checking for pth_init in -lpth" >&5
11412 echo $ECHO_N "checking for pth_init in -lpth... $ECHO_C" >&6
11413 if test "${ac_cv_lib_pth_pth_init+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 ac_check_lib_save_LIBS=$LIBS
11418 cat >conftest.$ac_ext <<_ACEOF
11419 #line 11419 "configure"
11420 #include "confdefs.h"
11422 /* Override any gcc2 internal prototype to avoid an error. */
11426 /* We use char because int might match the return type of a gcc2
11427 builtin and then its argument prototype would still apply. */
11437 rm -f conftest.$ac_objext conftest$ac_exeext
11438 if { (eval echo "$as_me:11438: \"$ac_link\"") >&5
11439 (eval $ac_link) 2>&5
11441 echo "$as_me:11441: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -s conftest$ac_exeext'
11444 { (eval echo "$as_me:11444: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:11447: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 ac_cv_lib_pth_pth_init=yes
11451 echo "$as_me: failed program was:" >&5
11452 cat conftest.$ac_ext >&5
11453 ac_cv_lib_pth_pth_init=no
11455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11458 echo "$as_me:11458: result: $ac_cv_lib_pth_pth_init" >&5
11459 echo "${ECHO_T}$ac_cv_lib_pth_pth_init" >&6
11460 if test $ac_cv_lib_pth_pth_init = yes; then
11461 cat >>confdefs.h <<EOF
11462 #define HAVE_LIBPTH 1
11469 cat >conftest.$ac_ext <<_ACEOF
11470 #line 11470 "configure"
11471 #include "confdefs.h"
11475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11476 egrep "pth_init" >/dev/null 2>&1; then
11478 cat >>confdefs.h <<\EOF
11479 #define PTH_INIT_IN_PTH_H 1
11489 # Check whether --enable-st or --disable-st was given.
11490 if test "${enable_st+set}" = set; then
11491 enableval="$enable_st"
11492 if test "x$enable_st" = "xyes"; then
11494 echo "$as_me:11494: checking for st_init in -lst" >&5
11495 echo $ECHO_N "checking for st_init in -lst... $ECHO_C" >&6
11496 if test "${ac_cv_lib_st_st_init+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 ac_check_lib_save_LIBS=$LIBS
11501 cat >conftest.$ac_ext <<_ACEOF
11502 #line 11502 "configure"
11503 #include "confdefs.h"
11505 /* Override any gcc2 internal prototype to avoid an error. */
11509 /* We use char because int might match the return type of a gcc2
11510 builtin and then its argument prototype would still apply. */
11520 rm -f conftest.$ac_objext conftest$ac_exeext
11521 if { (eval echo "$as_me:11521: \"$ac_link\"") >&5
11522 (eval $ac_link) 2>&5
11524 echo "$as_me:11524: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
11526 { ac_try='test -s conftest$ac_exeext'
11527 { (eval echo "$as_me:11527: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11530 echo "$as_me:11530: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 ac_cv_lib_st_st_init=yes
11534 echo "$as_me: failed program was:" >&5
11535 cat conftest.$ac_ext >&5
11536 ac_cv_lib_st_st_init=no
11538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11541 echo "$as_me:11541: result: $ac_cv_lib_st_st_init" >&5
11542 echo "${ECHO_T}$ac_cv_lib_st_st_init" >&6
11543 if test $ac_cv_lib_st_st_init = yes; then
11544 cat >>confdefs.h <<EOF
11545 #define HAVE_LIBST 1
11552 cat >conftest.$ac_ext <<_ACEOF
11553 #line 11553 "configure"
11554 #include "confdefs.h"
11558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11559 egrep "st_init" >/dev/null 2>&1; then
11561 cat >>confdefs.h <<\EOF
11562 #define ST_INIT_IN_ST_H 1
11572 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
11574 # Check whether --enable-plugins or --disable-plugins was given.
11575 if test "${enable_plugins+set}" = set; then
11576 enableval="$enable_plugins"
11577 if test x$enable_plugins = xno
11579 BUILTINS="${BUILTINS} ${PLUGINS}"
11584 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
11586 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
11588 BUILTINS="${BUILTINS} ${PLUGINS}"
11592 cat >>confdefs.h <<EOF
11593 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
11596 cat >>confdefs.h <<EOF
11597 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
11600 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
11602 cat >>confdefs.h <<EOF
11603 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
11606 cat >>confdefs.h <<EOF
11607 #define MODULE_SYMBOL $VLC_SYMBOL
11610 DATA_PATH="${ac_tool_prefix}/share/videolan"
11612 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
11614 ac_config_files="$ac_config_files Makefile.config Makefile.opts po/Makefile.in"
11615 cat >confcache <<\_ACEOF
11616 # This file is a shell script that caches the results of configure
11617 # tests run on this system so they can be shared between configure
11618 # scripts and configure runs, see configure's option --config-cache.
11619 # It is not useful on other systems. If it contains results you don't
11620 # want to keep, you may remove or edit it.
11622 # config.status only pays attention to the cache file if you give it
11623 # the --recheck option to rerun configure.
11625 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11626 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11627 # following values.
11631 # The following way of writing the cache mishandles newlines in values,
11632 # but we know of no workaround that is simple, portable, and efficient.
11633 # So, don't put newlines in cache variables' values.
11634 # Ultrix sh set writes to stderr and can't be redirected directly,
11635 # and sets the high bit in the cache file unless we assign to the vars.
11638 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11640 # `set' does not quote correctly, so add quotes (double-quote
11641 # substitution turns \\\\ into \\, and sed turns \\ into \).
11644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11647 # `set' quotes correctly as required by POSIX, so do not add quotes.
11649 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11656 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11658 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11660 if cmp -s $cache_file confcache; then :; else
11661 if test -w $cache_file; then
11662 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11663 cat confcache >$cache_file
11665 echo "not updating unwritable cache $cache_file"
11670 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11671 # Let make expand exec_prefix.
11672 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11674 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11675 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11676 # trailing colons and then remove the whole line if VPATH becomes empty
11677 # (actually we leave an empty line to preserve line numbers).
11678 if test "x$srcdir" = x.; then
11679 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11680 s/:*\$(srcdir):*/:/;
11681 s/:*\${srcdir}:*/:/;
11683 s/^\([^=]*=[ ]*\):*/\1/;
11689 DEFS=-DHAVE_CONFIG_H
11691 : ${CONFIG_STATUS=./config.status}
11692 ac_clean_files_save=$ac_clean_files
11693 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11694 { echo "$as_me:11694: creating $CONFIG_STATUS" >&5
11695 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11696 cat >$CONFIG_STATUS <<_ACEOF
11698 # Generated automatically by configure.
11699 # Run this file to recreate the current configuration.
11700 # Compiler output produced by configure, useful for debugging
11701 # configure, is in config.log if it exists.
11704 SHELL=\${CONFIG_SHELL-$SHELL}
11705 ac_cs_invocation="\$0 \$@"
11709 cat >>$CONFIG_STATUS <<\_ACEOF
11710 # Be Bourne compatible
11711 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11714 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11718 # Name of the executable.
11719 as_me=`echo "$0" |sed 's,.*[\\/],,'`
11721 if expr a : '\(a\)' >/dev/null 2>&1; then
11727 rm -f conf$$ conf$$.exe conf$$.file
11729 if ln -s conf$$.file conf$$ 2>/dev/null; then
11730 # We could just check for DJGPP; but this test a) works b) is more generic
11731 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11732 if test -f conf$$.exe; then
11733 # Don't use ln at all; we don't have any links
11738 elif ln conf$$.file conf$$ 2>/dev/null; then
11743 rm -f conf$$ conf$$.exe conf$$.file
11745 as_executable_p="test -f"
11747 # Support unset when possible.
11748 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11755 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
11756 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
11757 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
11758 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
11759 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
11760 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
11761 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
11762 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
11765 # We need space, tab and new line, in precisely that order.
11771 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
11777 # Files that config.status was made for.
11778 if test -n "$ac_config_files"; then
11779 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11782 if test -n "$ac_config_headers"; then
11783 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11786 if test -n "$ac_config_links"; then
11787 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11790 if test -n "$ac_config_commands"; then
11791 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11794 cat >>$CONFIG_STATUS <<\EOF
11797 \`$as_me' instantiates files from templates according to the
11798 current configuration.
11800 Usage: $0 [OPTIONS] [FILE]...
11802 -h, --help print this help, then exit
11803 -V, --version print version number, then exit
11804 -d, --debug don't remove temporary files
11805 --recheck update $as_me by reconfiguring in the same conditions
11806 --file=FILE[:TEMPLATE]
11807 instantiate the configuration file FILE
11808 --header=FILE[:TEMPLATE]
11809 instantiate the configuration header FILE
11811 Configuration files:
11814 Configuration headers:
11817 Configuration commands:
11820 Report bugs to <bug-autoconf@gnu.org>."
11823 cat >>$CONFIG_STATUS <<EOF
11826 configured by $0, generated by GNU Autoconf 2.52,
11827 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11829 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11830 Free Software Foundation, Inc.
11831 This config.status script is free software; the Free Software Foundation
11832 gives unlimited permission to copy, distribute and modify it."
11837 cat >>$CONFIG_STATUS <<\EOF
11838 # If no file are specified by the user, then we need to provide default
11839 # value. By we need to know if files were specified by the user.
11845 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11846 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11848 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11852 *) # This is not an option, so the user has probably given explicit
11854 ac_need_defaults=false;;
11858 # Handling of the options.
11860 cat >>$CONFIG_STATUS <<EOF
11861 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11862 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11863 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11865 cat >>$CONFIG_STATUS <<\EOF
11866 --version | --vers* | -V )
11867 echo "$ac_cs_version"; exit 0 ;;
11869 # Conflict between --help and --header
11870 { { echo "$as_me:11870: error: ambiguous option: $1
11871 Try \`$0 --help' for more information." >&5
11872 echo "$as_me: error: ambiguous option: $1
11873 Try \`$0 --help' for more information." >&2;}
11874 { (exit 1); exit 1; }; };;
11875 --help | --hel | -h )
11876 echo "$ac_cs_usage"; exit 0 ;;
11877 --debug | --d* | -d )
11879 --file | --fil | --fi | --f )
11881 CONFIG_FILES="$CONFIG_FILES $1"
11882 ac_need_defaults=false;;
11883 --header | --heade | --head | --hea )
11885 CONFIG_HEADERS="$CONFIG_HEADERS $1"
11886 ac_need_defaults=false;;
11888 # This is an error.
11889 -*) { { echo "$as_me:11889: error: unrecognized option: $1
11890 Try \`$0 --help' for more information." >&5
11891 echo "$as_me: error: unrecognized option: $1
11892 Try \`$0 --help' for more information." >&2;}
11893 { (exit 1); exit 1; }; } ;;
11895 *) ac_config_targets="$ac_config_targets $1" ;;
11904 ## ----------------------- ##
11905 ## Running config.status. ##
11906 ## ----------------------- ##
11908 This file was extended by $as_me 2.52, executed with
11909 CONFIG_FILES = $CONFIG_FILES
11910 CONFIG_HEADERS = $CONFIG_HEADERS
11911 CONFIG_LINKS = $CONFIG_LINKS
11912 CONFIG_COMMANDS = $CONFIG_COMMANDS
11913 > $ac_cs_invocation
11914 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11919 cat >>$CONFIG_STATUS <<EOF
11921 # INIT-COMMANDS section.
11926 cat >>$CONFIG_STATUS <<\EOF
11927 for ac_config_target in $ac_config_targets
11929 case "$ac_config_target" in
11930 # Handling of arguments.
11931 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
11932 "Makefile.opts" ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
11933 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11934 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11935 "include/defs.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
11936 *) { { echo "$as_me:11936: error: invalid argument: $ac_config_target" >&5
11937 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11938 { (exit 1); exit 1; }; };;
11942 # If the user did not use the arguments to specify the items to instantiate,
11943 # then the envvar interface is used. Set only those that are not.
11944 # We use the long form for the default assignment because of an extremely
11945 # bizarre bug on SunOS 4.1.3.
11946 if $ac_need_defaults; then
11947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11952 # Create a temporary directory, and hook for its removal unless debugging.
11955 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11956 trap '{ (exit 1); exit 1; }' 1 2 13 15
11959 # Create a (secure) tmp directory for tmp files.
11962 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11963 test -n "$tmp" && test -d "$tmp"
11966 tmp=$TMPDIR/cs$$-$RANDOM
11967 (umask 077 && mkdir $tmp)
11970 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11971 { (exit 1); exit 1; }
11976 cat >>$CONFIG_STATUS <<EOF
11979 # CONFIG_FILES section.
11982 # No need to generate the scripts if there are no CONFIG_FILES.
11983 # This happens for instance when ./config.status config.h
11984 if test -n "\$CONFIG_FILES"; then
11985 # Protect against being on the right side of a sed subst in config.status.
11986 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11987 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11988 s,@SHELL@,$SHELL,;t t
11989 s,@exec_prefix@,$exec_prefix,;t t
11990 s,@prefix@,$prefix,;t t
11991 s,@program_transform_name@,$program_transform_name,;t t
11992 s,@bindir@,$bindir,;t t
11993 s,@sbindir@,$sbindir,;t t
11994 s,@libexecdir@,$libexecdir,;t t
11995 s,@datadir@,$datadir,;t t
11996 s,@sysconfdir@,$sysconfdir,;t t
11997 s,@sharedstatedir@,$sharedstatedir,;t t
11998 s,@localstatedir@,$localstatedir,;t t
11999 s,@libdir@,$libdir,;t t
12000 s,@includedir@,$includedir,;t t
12001 s,@oldincludedir@,$oldincludedir,;t t
12002 s,@infodir@,$infodir,;t t
12003 s,@mandir@,$mandir,;t t
12004 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12005 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12006 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12007 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12008 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12009 s,@build_alias@,$build_alias,;t t
12010 s,@host_alias@,$host_alias,;t t
12011 s,@target_alias@,$target_alias,;t t
12012 s,@ECHO_C@,$ECHO_C,;t t
12013 s,@ECHO_N@,$ECHO_N,;t t
12014 s,@ECHO_T@,$ECHO_T,;t t
12015 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12016 s,@DEFS@,$DEFS,;t t
12017 s,@LIBS@,$LIBS,;t t
12018 s,@build@,$build,;t t
12019 s,@build_cpu@,$build_cpu,;t t
12020 s,@build_vendor@,$build_vendor,;t t
12021 s,@build_os@,$build_os,;t t
12022 s,@host@,$host,;t t
12023 s,@host_cpu@,$host_cpu,;t t
12024 s,@host_vendor@,$host_vendor,;t t
12025 s,@host_os@,$host_os,;t t
12026 s,@target@,$target,;t t
12027 s,@target_cpu@,$target_cpu,;t t
12028 s,@target_vendor@,$target_vendor,;t t
12029 s,@target_os@,$target_os,;t t
12030 s,@SET_MAKE@,$SET_MAKE,;t t
12032 s,@CFLAGS@,$CFLAGS,;t t
12033 s,@LDFLAGS@,$LDFLAGS,;t t
12034 s,@CPPFLAGS@,$CPPFLAGS,;t t
12035 s,@ac_ct_CC@,$ac_ct_CC,;t t
12036 s,@EXEEXT@,$EXEEXT,;t t
12037 s,@OBJEXT@,$OBJEXT,;t t
12039 s,@RANLIB@,$RANLIB,;t t
12040 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12041 s,@STRIP@,$STRIP,;t t
12042 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12043 s,@GMAKE@,$GMAKE,;t t
12044 s,@ALLOCA@,$ALLOCA,;t t
12045 s,@GLIBC21@,$GLIBC21,;t t
12046 s,@LIBICONV@,$LIBICONV,;t t
12047 s,@USE_NLS@,$USE_NLS,;t t
12048 s,@MSGFMT@,$MSGFMT,;t t
12049 s,@GMSGFMT@,$GMSGFMT,;t t
12050 s,@XGETTEXT@,$XGETTEXT,;t t
12051 s,@INTLBISON@,$INTLBISON,;t t
12052 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12053 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12054 s,@CATALOGS@,$CATALOGS,;t t
12055 s,@CATOBJEXT@,$CATOBJEXT,;t t
12056 s,@GMOFILES@,$GMOFILES,;t t
12057 s,@INTLLIBS@,$INTLLIBS,;t t
12058 s,@INTLOBJS@,$INTLOBJS,;t t
12059 s,@POFILES@,$POFILES,;t t
12060 s,@POSUB@,$POSUB,;t t
12061 s,@DATADIRNAME@,$DATADIRNAME,;t t
12062 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12063 s,@GENCAT@,$GENCAT,;t t
12064 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12065 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12066 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12067 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12068 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12069 s,@WINDRES@,$WINDRES,;t t
12070 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
12071 s,@SDL12_CONFIG@,$SDL12_CONFIG,;t t
12072 s,@SDL11_CONFIG@,$SDL11_CONFIG,;t t
12073 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
12074 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
12075 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
12076 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
12077 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
12078 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
12079 s,@DATA_PATH@,$DATA_PATH,;t t
12080 s,@PLUGIN_PATH@,$PLUGIN_PATH,;t t
12082 s,@ARCH@,$ARCH,;t t
12083 s,@PLUGINS@,$PLUGINS,;t t
12084 s,@BUILTINS@,$BUILTINS,;t t
12085 s,@ALIASES@,$ALIASES,;t t
12086 s,@DEBUG@,$DEBUG,;t t
12088 s,@CPROF@,$CPROF,;t t
12089 s,@GPROF@,$GPROF,;t t
12090 s,@OPTIMS@,$OPTIMS,;t t
12091 s,@TUNING@,$TUNING,;t t
12092 s,@RELEASE@,$RELEASE,;t t
12094 s,@BCBUILDER@,$BCBUILDER,;t t
12095 s,@PACKAGE@,$PACKAGE,;t t
12096 s,@VERSION@,$VERSION,;t t
12097 s,@NEED_GETOPT@,$NEED_GETOPT,;t t
12098 s,@CFLAGS_OPTIM@,$CFLAGS_OPTIM,;t t
12099 s,@CFLAGS_OPTIM_NODEBUG@,$CFLAGS_OPTIM_NODEBUG,;t t
12100 s,@vlc_CFLAGS@,$vlc_CFLAGS,;t t
12101 s,@plugins_CFLAGS@,$plugins_CFLAGS,;t t
12102 s,@builtins_CFLAGS@,$builtins_CFLAGS,;t t
12103 s,@a52_CFLAGS@,$a52_CFLAGS,;t t
12104 s,@arts_CFLAGS@,$arts_CFLAGS,;t t
12105 s,@dvd_CFLAGS@,$dvd_CFLAGS,;t t
12106 s,@dvdread_CFLAGS@,$dvdread_CFLAGS,;t t
12107 s,@mpeg_ts_dvbpsi_CFLAGS@,$mpeg_ts_dvbpsi_CFLAGS,;t t
12108 s,@directx_CFLAGS@,$directx_CFLAGS,;t t
12109 s,@esd_CFLAGS@,$esd_CFLAGS,;t t
12110 s,@familiar_CFLAGS@,$familiar_CFLAGS,;t t
12111 s,@ffmpeg_CFLAGS@,$ffmpeg_CFLAGS,;t t
12112 s,@glide_CFLAGS@,$glide_CFLAGS,;t t
12113 s,@gnome_CFLAGS@,$gnome_CFLAGS,;t t
12114 s,@gtk_CFLAGS@,$gtk_CFLAGS,;t t
12115 s,@kde_CFLAGS@,$kde_CFLAGS,;t t
12116 s,@idctaltivec_CFLAGS@,$idctaltivec_CFLAGS,;t t
12117 s,@macosx_CFLAGS@,$macosx_CFLAGS,;t t
12118 s,@mad_CFLAGS@,$mad_CFLAGS,;t t
12119 s,@memcpyaltivec_CFLAGS@,$memcpyaltivec_CFLAGS,;t t
12120 s,@motionaltivec_CFLAGS@,$motionaltivec_CFLAGS,;t t
12121 s,@opie_CFLAGS@,$opie_CFLAGS,;t t
12122 s,@qt_CFLAGS@,$qt_CFLAGS,;t t
12123 s,@qte_CFLAGS@,$qte_CFLAGS,;t t
12124 s,@sdl_CFLAGS@,$sdl_CFLAGS,;t t
12125 s,@x11_CFLAGS@,$x11_CFLAGS,;t t
12126 s,@xvideo_CFLAGS@,$xvideo_CFLAGS,;t t
12127 s,@vlc_LDFLAGS@,$vlc_LDFLAGS,;t t
12128 s,@plugins_LDFLAGS@,$plugins_LDFLAGS,;t t
12129 s,@builtins_LDFLAGS@,$builtins_LDFLAGS,;t t
12130 s,@a52_LDFLAGS@,$a52_LDFLAGS,;t t
12131 s,@aa_LDFLAGS@,$aa_LDFLAGS,;t t
12132 s,@alsa_LDFLAGS@,$alsa_LDFLAGS,;t t
12133 s,@arts_LDFLAGS@,$arts_LDFLAGS,;t t
12134 s,@beos_LDFLAGS@,$beos_LDFLAGS,;t t
12135 s,@chroma_i420_rgb_LDFLAGS@,$chroma_i420_rgb_LDFLAGS,;t t
12136 s,@directx_LDFLAGS@,$directx_LDFLAGS,;t t
12137 s,@dsp_LDFLAGS@,$dsp_LDFLAGS,;t t
12138 s,@dvd_LDFLAGS@,$dvd_LDFLAGS,;t t
12139 s,@dvdread_LDFLAGS@,$dvdread_LDFLAGS,;t t
12140 s,@mpeg_ts_dvbpsi_LDFLAGS@,$mpeg_ts_dvbpsi_LDFLAGS,;t t
12141 s,@esd_LDFLAGS@,$esd_LDFLAGS,;t t
12142 s,@familiar_LDFLAGS@,$familiar_LDFLAGS,;t t
12143 s,@filter_distort_LDFLAGS@,$filter_distort_LDFLAGS,;t t
12144 s,@ffmpeg_LDFLAGS@,$ffmpeg_LDFLAGS,;t t
12145 s,@ggi_LDFLAGS@,$ggi_LDFLAGS,;t t
12146 s,@glide_LDFLAGS@,$glide_LDFLAGS,;t t
12147 s,@gnome_LDFLAGS@,$gnome_LDFLAGS,;t t
12148 s,@gtk_LDFLAGS@,$gtk_LDFLAGS,;t t
12149 s,@http_LDFLAGS@,$http_LDFLAGS,;t t
12150 s,@idctaltivec_LDFLAGS@,$idctaltivec_LDFLAGS,;t t
12151 s,@imdct_LDFLAGS@,$imdct_LDFLAGS,;t t
12152 s,@imdct3dn_LDFLAGS@,$imdct3dn_LDFLAGS,;t t
12153 s,@imdctsse_LDFLAGS@,$imdctsse_LDFLAGS,;t t
12154 s,@ipv4_LDFLAGS@,$ipv4_LDFLAGS,;t t
12155 s,@ipv6_LDFLAGS@,$ipv6_LDFLAGS,;t t
12156 s,@kde_LDFLAGS@,$kde_LDFLAGS,;t t
12157 s,@lirc_LDFLAGS@,$lirc_LDFLAGS,;t t
12158 s,@macosx_LDFLAGS@,$macosx_LDFLAGS,;t t
12159 s,@mad_LDFLAGS@,$mad_LDFLAGS,;t t
12160 s,@memcpyaltivec_LDFLAGS@,$memcpyaltivec_LDFLAGS,;t t
12161 s,@motionaltivec_LDFLAGS@,$motionaltivec_LDFLAGS,;t t
12162 s,@ncurses_LDFLAGS@,$ncurses_LDFLAGS,;t t
12163 s,@opie_LDFLAGS@,$opie_LDFLAGS,;t t
12164 s,@qnx_LDFLAGS@,$qnx_LDFLAGS,;t t
12165 s,@qt_LDFLAGS@,$qt_LDFLAGS,;t t
12166 s,@qte_LDFLAGS@,$qte_LDFLAGS,;t t
12167 s,@rc_LDFLAGS@,$rc_LDFLAGS,;t t
12168 s,@sdl_LDFLAGS@,$sdl_LDFLAGS,;t t
12169 s,@vcd_LDFLAGS@,$vcd_LDFLAGS,;t t
12170 s,@vorbis_LDFLAGS@,$vorbis_LDFLAGS,;t t
12171 s,@waveout_LDFLAGS@,$waveout_LDFLAGS,;t t
12172 s,@x11_LDFLAGS@,$x11_LDFLAGS,;t t
12173 s,@xvideo_LDFLAGS@,$xvideo_LDFLAGS,;t t
12178 cat >>$CONFIG_STATUS <<\EOF
12179 # Split the substitutions into bite-sized pieces for seds with
12180 # small command number limits, like on Digital OSF/1 and HP-UX.
12181 ac_max_sed_lines=48
12182 ac_sed_frag=1 # Number of current file.
12183 ac_beg=1 # First line for current file.
12184 ac_end=$ac_max_sed_lines # Line after last line for current file.
12187 while $ac_more_lines; do
12188 if test $ac_beg -gt 1; then
12189 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12191 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12193 if test ! -s $tmp/subs.frag; then
12194 ac_more_lines=false
12196 # The purpose of the label and of the branching condition is to
12197 # speed up the sed processing (if there are no `@' at all, there
12198 # is no need to browse any of the substitutions).
12199 # These are the two extra sed commands mentioned above.
12201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12202 if test -z "$ac_sed_cmds"; then
12203 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12205 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12207 ac_sed_frag=`expr $ac_sed_frag + 1`
12209 ac_end=`expr $ac_end + $ac_max_sed_lines`
12212 if test -z "$ac_sed_cmds"; then
12215 fi # test -n "$CONFIG_FILES"
12218 cat >>$CONFIG_STATUS <<\EOF
12219 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12220 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12222 - | *:- | *:-:* ) # input from stdin
12224 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12225 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12226 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12227 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12228 * ) ac_file_in=$ac_file.in ;;
12231 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12232 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12233 X"$ac_file" : 'X\(//\)[^/]' \| \
12234 X"$ac_file" : 'X\(//\)$' \| \
12235 X"$ac_file" : 'X\(/\)' \| \
12236 . : '\(.\)' 2>/dev/null ||
12238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12240 /^X\(\/\/\)$/{ s//\1/; q; }
12241 /^X\(\/\).*/{ s//\1/; q; }
12243 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12244 { case "$ac_dir" in
12245 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12249 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12250 case $as_mkdir_dir in
12251 # Skip DOS drivespec
12252 ?:) as_incr_dir=$as_mkdir_dir ;;
12254 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12255 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12260 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12261 # A "../" for each directory in $ac_dir_suffix.
12262 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12264 ac_dir_suffix= ac_dots=
12269 if test -z "$ac_dots"; then
12272 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12274 [\\/]* | ?:[\\/]* )
12275 ac_srcdir=$srcdir$ac_dir_suffix;
12276 ac_top_srcdir=$srcdir ;;
12277 *) # Relative path.
12278 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12279 ac_top_srcdir=$ac_dots$srcdir ;;
12283 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12284 *) ac_INSTALL=$ac_dots$INSTALL ;;
12287 if test x"$ac_file" != x-; then
12288 { echo "$as_me:12288: creating $ac_file" >&5
12289 echo "$as_me: creating $ac_file" >&6;}
12292 # Let's still pretend it is `configure' which instantiates (i.e., don't
12293 # use $as_me), people would be surprised to read:
12294 # /* config.h. Generated automatically by config.status. */
12295 configure_input="Generated automatically from `echo $ac_file_in |
12296 sed 's,.*/,,'` by configure."
12298 # First look for the input files in the build tree, otherwise in the
12300 ac_file_inputs=`IFS=:
12301 for f in $ac_file_in; do
12303 -) echo $tmp/stdin ;;
12305 # Absolute (can't be DOS-style, as IFS=:)
12306 test -f "$f" || { { echo "$as_me:12306: error: cannot find input file: $f" >&5
12307 echo "$as_me: error: cannot find input file: $f" >&2;}
12308 { (exit 1); exit 1; }; }
12311 if test -f "$f"; then
12314 elif test -f "$srcdir/$f"; then
12319 { { echo "$as_me:12319: error: cannot find input file: $f" >&5
12320 echo "$as_me: error: cannot find input file: $f" >&2;}
12321 { (exit 1); exit 1; }; }
12324 done` || { (exit 1); exit 1; }
12326 cat >>$CONFIG_STATUS <<EOF
12330 cat >>$CONFIG_STATUS <<\EOF
12332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12333 s,@configure_input@,$configure_input,;t t
12334 s,@srcdir@,$ac_srcdir,;t t
12335 s,@top_srcdir@,$ac_top_srcdir,;t t
12336 s,@INSTALL@,$ac_INSTALL,;t t
12337 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12339 if test x"$ac_file" != x-; then
12340 mv $tmp/out $ac_file
12348 cat >>$CONFIG_STATUS <<\EOF
12351 # CONFIG_HEADER section.
12354 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12355 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12357 # ac_d sets the value in "#define NAME VALUE" lines.
12358 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12359 ac_dB='[ ].*$,\1#\2'
12362 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12363 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12364 ac_uB='$,\1#\2define\3'
12368 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12371 - | *:- | *:-:* ) # input from stdin
12373 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12375 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12377 * ) ac_file_in=$ac_file.in ;;
12380 test x"$ac_file" != x- && { echo "$as_me:12380: creating $ac_file" >&5
12381 echo "$as_me: creating $ac_file" >&6;}
12383 # First look for the input files in the build tree, otherwise in the
12385 ac_file_inputs=`IFS=:
12386 for f in $ac_file_in; do
12388 -) echo $tmp/stdin ;;
12390 # Absolute (can't be DOS-style, as IFS=:)
12391 test -f "$f" || { { echo "$as_me:12391: error: cannot find input file: $f" >&5
12392 echo "$as_me: error: cannot find input file: $f" >&2;}
12393 { (exit 1); exit 1; }; }
12396 if test -f "$f"; then
12399 elif test -f "$srcdir/$f"; then
12404 { { echo "$as_me:12404: error: cannot find input file: $f" >&5
12405 echo "$as_me: error: cannot find input file: $f" >&2;}
12406 { (exit 1); exit 1; }; }
12409 done` || { (exit 1); exit 1; }
12410 # Remove the trailing spaces.
12411 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12415 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12416 # `conftest.undefs', that substitutes the proper values into
12417 # config.h.in to produce config.h. The first handles `#define'
12418 # templates, and the second `#undef' templates.
12419 # And first: Protect against being on the right side of a sed subst in
12420 # config.status. Protect against being in an unquoted here document
12421 # in config.status.
12422 rm -f conftest.defines conftest.undefs
12423 # Using a here document instead of a string reduces the quoting nightmare.
12424 # Putting comments in sed scripts is not portable.
12426 # `end' is used to avoid that the second main sed command (meant for
12427 # 0-ary CPP macros) applies to n-ary macro definitions.
12428 # See the Autoconf documentation for `clear'.
12429 cat >confdef2sed.sed <<\EOF
12434 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
12436 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12439 # If some macros were called several times there might be several times
12440 # the same #defines, which is useless. Nevertheless, we may not want to
12441 # sort them, since we want the *last* AC-DEFINE to be honored.
12442 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12443 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12444 rm -f confdef2sed.sed
12446 # This sed command replaces #undef with comments. This is necessary, for
12447 # example, in the case of _POSIX_SOURCE, which is predefined and required
12448 # on some systems where configure will not decide to define it.
12449 cat >>conftest.undefs <<\EOF
12450 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12453 # Break up conftest.defines because some shells have a limit on the size
12454 # of here documents, and old seds have small limits too (100 cmds).
12455 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12456 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12457 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12458 echo ' :' >>$CONFIG_STATUS
12459 rm -f conftest.tail
12460 while grep . conftest.defines >/dev/null
12462 # Write a limited-size here document to $tmp/defines.sed.
12463 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12464 # Speed up: don't consider the non `#define' lines.
12465 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12466 # Work around the forget-to-reset-the-flag bug.
12467 echo 't clr' >>$CONFIG_STATUS
12468 echo ': clr' >>$CONFIG_STATUS
12469 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12471 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12473 mv $tmp/out $tmp/in
12475 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12476 rm -f conftest.defines
12477 mv conftest.tail conftest.defines
12479 rm -f conftest.defines
12480 echo ' fi # egrep' >>$CONFIG_STATUS
12481 echo >>$CONFIG_STATUS
12483 # Break up conftest.undefs because some shells have a limit on the size
12484 # of here documents, and old seds have small limits too (100 cmds).
12485 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12486 rm -f conftest.tail
12487 while grep . conftest.undefs >/dev/null
12489 # Write a limited-size here document to $tmp/undefs.sed.
12490 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12491 # Speed up: don't consider the non `#undef'
12492 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12493 # Work around the forget-to-reset-the-flag bug.
12494 echo 't clr' >>$CONFIG_STATUS
12495 echo ': clr' >>$CONFIG_STATUS
12496 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12498 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12500 mv $tmp/out $tmp/in
12502 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12503 rm -f conftest.undefs
12504 mv conftest.tail conftest.undefs
12506 rm -f conftest.undefs
12508 cat >>$CONFIG_STATUS <<\EOF
12509 # Let's still pretend it is `configure' which instantiates (i.e., don't
12510 # use $as_me), people would be surprised to read:
12511 # /* config.h. Generated automatically by config.status. */
12512 if test x"$ac_file" = x-; then
12513 echo "/* Generated automatically by configure. */" >$tmp/config.h
12515 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
12517 cat $tmp/in >>$tmp/config.h
12519 if test x"$ac_file" != x-; then
12520 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12521 { echo "$as_me:12521: $ac_file is unchanged" >&5
12522 echo "$as_me: $ac_file is unchanged" >&6;}
12524 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12525 X"$ac_file" : 'X\(//\)[^/]' \| \
12526 X"$ac_file" : 'X\(//\)$' \| \
12527 X"$ac_file" : 'X\(/\)' \| \
12528 . : '\(.\)' 2>/dev/null ||
12530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12532 /^X\(\/\/\)$/{ s//\1/; q; }
12533 /^X\(\/\).*/{ s//\1/; q; }
12535 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12536 { case "$ac_dir" in
12537 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12541 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12542 case $as_mkdir_dir in
12543 # Skip DOS drivespec
12544 ?:) as_incr_dir=$as_mkdir_dir ;;
12546 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12547 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12554 mv $tmp/config.h $ac_file
12558 rm -f $tmp/config.h
12562 cat >>$CONFIG_STATUS <<\EOF
12565 # CONFIG_COMMANDS section.
12567 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12568 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12569 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12572 default-1 ) for ac_file in $CONFIG_FILES; do
12573 # Support "outfile[:infile[:infile...]]"
12575 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12577 # PO directories have a Makefile.in generated from Makefile.in.in.
12578 case "$ac_file" in */Makefile.in)
12579 # Adjust a relative srcdir.
12580 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12581 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12582 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12583 # In autoconf-2.13 it is called $ac_given_srcdir.
12584 # In autoconf-2.50 it is called $srcdir.
12585 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12586 case "$ac_given_srcdir" in
12587 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12588 /*) top_srcdir="$ac_given_srcdir" ;;
12589 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12591 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12592 rm -f "$ac_dir/POTFILES"
12593 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12594 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
12595 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12596 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12605 cat >>$CONFIG_STATUS <<\EOF
12607 { (exit 0); exit 0; }
12609 chmod +x $CONFIG_STATUS
12610 ac_clean_files=$ac_clean_files_save
12612 # configure is writing to config.log, and then calls config.status.
12613 # config.status does its own redirection, appending to config.log.
12614 # Unfortunately, on DOS this fails, as config.log is still kept open
12615 # by configure, so config.status won't be able to write to it; its
12616 # output is simply discarded. So we exec the FD to /dev/null,
12617 # effectively closing config.log, so it can be properly (re)opened and
12618 # appended to by config.status. When coming back to configure, we
12619 # need to make the FD available again.
12620 if test "$no_create" != yes; then
12623 $SHELL $CONFIG_STATUS || ac_cs_success=false
12625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12626 # would make configure fail if this is the last instruction.
12627 $ac_cs_success || { (exit 1); exit 1; }
12632 --------------------
12633 vlc version : ${VERSION}
12635 architecture : ${ARCH}
12636 optimizations : ${OPTIMS}
12638 debug mode : ${DEBUG}
12639 release : ${RELEASE}
12640 cprof/gprof support : ${CPROF}/${GPROF}
12641 need builtin getopt : ${NEED_GETOPT}
12642 built-in modules :${BUILTINS}
12643 plug-in modules :${PLUGINS}
12644 vlc aliases :${ALIASES}
12646 You may now tune Makefile.opts at your convenience, for instance to choose
12647 which modules get compiled as plugins.
12649 To build vlc and its plugins, type \`$VLC_MAKE'.