3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable AltiVec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-dvdplay dvdplay input module (default disabled)"
50 --with-dvdplay=PATH libdvdplay headers and libraries"
52 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
54 --with-dvbpsi=PATH libdvbpsi headers and libraries"
56 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
58 --enable-v4l Video4Linux input support (default disabled)"
60 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
62 --enable-satellite satellite card support (default disabled)"
64 --enable-avi AVI demux module (default enabled)"
66 --enable-aac AAC demux module (default enabled)"
70 --enable-mad libmad module (default disabled)"
72 --with-mad=PATH path to libmad"
74 --with-mad-tree=PATH mad tree for static linking"
76 --enable-ffmpeg ffmpeg codec (default disabled)"
78 --with-ffmpeg=PATH path to ffmpeg installation"
80 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
82 --enable-faad faad codec (default disabled)"
84 --with-faad=PATH path to faad installation"
86 --with-faad-tree=PATH faad tree for static linking"
88 --enable-mp4 MP4 demux module (default enabled)"
90 --enable-a52 A/52 support with liba52 (default enabled)"
92 --with-a52=PATH a52 headers and libraries"
94 --with-a52-tree=PATH a52dec tree for static linking "
96 --enable-cinepak Cinepak decoder (default enabled)"
98 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
100 --enable-dv DV decoder support (default disabled)"
104 --enable-x11 X11 support (default enabled)"
106 --enable-xvideo XVideo support (default enabled)"
108 --enable-sdl SDL support (default enabled)"
110 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
112 --enable-directx Win32 DirectX support (default enabled on Win32)"
114 --with-directx=PATH Win32 DirectX headers"
116 --enable-fb Linux framebuffer support (default enabled on Linux)"
118 --enable-mga Linux kernel Matrox support (default disabled)"
120 --enable-svgalib SVGAlib support (default disabled)"
122 --enable-ggi GGI support (default disabled)"
124 --with-ggi=PATH path to libggi"
126 --enable-glide Glide (3dfx) support (default disabled)"
128 --with-glide=PATH path to libglide"
130 --enable-aa aalib output (default disabled)"
134 --enable-oss Linux OSS /dev/dsp support (enabled on Linux)"
136 --enable-esd Esound library support (default disabled)"
138 --enable-arts aRts sound server (default disabled)"
140 --enable-alsa ALSA sound support for Linux (default disabled)"
142 --enable-waveout Win32 waveOut module (default enabled on Win32)"
146 --enable-gtk Gtk+ support (default enabled)"
148 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
150 --enable-familiar Familiar Gtk+ support (default disabled)"
152 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
154 --enable-gnome Gnome interface support (default disabled)"
156 --enable-qt Qt interface support (default disabled)"
158 --enable-kde KDE interface support (default disabled)"
160 --enable-qte Qt embedded interface support (default disabled)"
162 --enable-macosx MacOS X support (default enabled on MacOS X)"
164 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
166 --enable-intfwin Win32 interface support (default disabled)"
168 --with-bcbuilder=PATH Borland C++ Builder installation path"
170 --enable-ncurses ncurses interface support (default disabled)"
172 --enable-xosd xosd interface support (default disabled)"
174 --enable-lirc lirc support (default disabled)"
178 --with-words=endianness set endianness (big or little)"
180 --enable-gprof gprof profiling (default disabled)"
182 --enable-cprof cprof profiling (default disabled)"
184 --enable-pth GNU Pth support (default disabled)"
186 --enable-st State Threads (default disabled)"
188 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
190 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
192 # Initialize some variables set by options.
193 # The variables have the same names as the options, with
194 # dashes changed to underlines.
196 cache_file=./config.cache
205 program_transform_name=s,x,x,
213 bindir='${exec_prefix}/bin'
214 sbindir='${exec_prefix}/sbin'
215 libexecdir='${exec_prefix}/libexec'
216 datadir='${prefix}/share'
217 sysconfdir='${prefix}/etc'
218 sharedstatedir='${prefix}/com'
219 localstatedir='${prefix}/var'
220 libdir='${exec_prefix}/lib'
221 includedir='${prefix}/include'
222 oldincludedir='/usr/include'
223 infodir='${prefix}/info'
224 mandir='${prefix}/man'
226 # Initialize some other variables.
229 SHELL=${CONFIG_SHELL-/bin/sh}
230 # Maximum number of lines to put in a shell here document.
237 # If the previous option needs an argument, assign it.
238 if test -n "$ac_prev"; then
239 eval "$ac_prev=\$ac_option"
245 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
249 # Accept the important Cygnus configure options, so we can diagnose typos.
253 -bindir | --bindir | --bindi | --bind | --bin | --bi)
255 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
256 bindir="$ac_optarg" ;;
258 -build | --build | --buil | --bui | --bu)
260 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
261 build="$ac_optarg" ;;
263 -cache-file | --cache-file | --cache-fil | --cache-fi \
264 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
265 ac_prev=cache_file ;;
266 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
267 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
268 cache_file="$ac_optarg" ;;
270 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
272 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
274 datadir="$ac_optarg" ;;
276 -disable-* | --disable-*)
277 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
278 # Reject names that are not valid shell variable names.
279 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
280 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
282 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
283 eval "enable_${ac_feature}=no" ;;
285 -enable-* | --enable-*)
286 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
287 # Reject names that are not valid shell variable names.
288 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
289 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
291 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
296 eval "enable_${ac_feature}='$ac_optarg'" ;;
298 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
299 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
300 | --exec | --exe | --ex)
301 ac_prev=exec_prefix ;;
302 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
303 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
304 | --exec=* | --exe=* | --ex=*)
305 exec_prefix="$ac_optarg" ;;
307 -gas | --gas | --ga | --g)
308 # Obsolete; use --with-gas.
311 -help | --help | --hel | --he)
312 # Omit some internal or obsolete options to make the list less imposing.
313 # This message is too long to be a string in the A/UX 3.1 sh.
315 Usage: configure [options] [host]
316 Options: [defaults in brackets after descriptions]
318 --cache-file=FILE cache test results in FILE
319 --help print this message
320 --no-create do not create output files
321 --quiet, --silent do not print \`checking...' messages
322 --version print the version of autoconf that created configure
323 Directory and file names:
324 --prefix=PREFIX install architecture-independent files in PREFIX
326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
328 --bindir=DIR user executables in DIR [EPREFIX/bin]
329 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
330 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
331 --datadir=DIR read-only architecture-independent data in DIR
333 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
334 --sharedstatedir=DIR modifiable architecture-independent data in DIR
336 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
337 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
338 --includedir=DIR C header files in DIR [PREFIX/include]
339 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
340 --infodir=DIR info documentation in DIR [PREFIX/info]
341 --mandir=DIR man documentation in DIR [PREFIX/man]
342 --srcdir=DIR find the sources in DIR [configure dir or ..]
343 --program-prefix=PREFIX prepend PREFIX to installed program names
344 --program-suffix=SUFFIX append SUFFIX to installed program names
345 --program-transform-name=PROGRAM
346 run sed PROGRAM on installed program names
350 --build=BUILD configure for building on BUILD [BUILD=HOST]
351 --host=HOST configure for HOST [guessed]
352 --target=TARGET configure for TARGET [TARGET=HOST]
353 Features and packages:
354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
358 --x-includes=DIR X include files are in DIR
359 --x-libraries=DIR X library files are in DIR
361 if test -n "$ac_help"; then
362 echo "--enable and --with options recognized:$ac_help"
366 -host | --host | --hos | --ho)
368 -host=* | --host=* | --hos=* | --ho=*)
371 -includedir | --includedir | --includedi | --included | --include \
372 | --includ | --inclu | --incl | --inc)
373 ac_prev=includedir ;;
374 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
375 | --includ=* | --inclu=* | --incl=* | --inc=*)
376 includedir="$ac_optarg" ;;
378 -infodir | --infodir | --infodi | --infod | --info | --inf)
380 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
381 infodir="$ac_optarg" ;;
383 -libdir | --libdir | --libdi | --libd)
385 -libdir=* | --libdir=* | --libdi=* | --libd=*)
386 libdir="$ac_optarg" ;;
388 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
389 | --libexe | --libex | --libe)
390 ac_prev=libexecdir ;;
391 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
392 | --libexe=* | --libex=* | --libe=*)
393 libexecdir="$ac_optarg" ;;
395 -localstatedir | --localstatedir | --localstatedi | --localstated \
396 | --localstate | --localstat | --localsta | --localst \
397 | --locals | --local | --loca | --loc | --lo)
398 ac_prev=localstatedir ;;
399 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
400 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
401 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
402 localstatedir="$ac_optarg" ;;
404 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
406 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
407 mandir="$ac_optarg" ;;
410 # Obsolete; use --without-fp.
413 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
417 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
418 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
421 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
422 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
423 | --oldin | --oldi | --old | --ol | --o)
424 ac_prev=oldincludedir ;;
425 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
426 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
427 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
428 oldincludedir="$ac_optarg" ;;
430 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
432 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
433 prefix="$ac_optarg" ;;
435 -program-prefix | --program-prefix | --program-prefi | --program-pref \
436 | --program-pre | --program-pr | --program-p)
437 ac_prev=program_prefix ;;
438 -program-prefix=* | --program-prefix=* | --program-prefi=* \
439 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
440 program_prefix="$ac_optarg" ;;
442 -program-suffix | --program-suffix | --program-suffi | --program-suff \
443 | --program-suf | --program-su | --program-s)
444 ac_prev=program_suffix ;;
445 -program-suffix=* | --program-suffix=* | --program-suffi=* \
446 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
447 program_suffix="$ac_optarg" ;;
449 -program-transform-name | --program-transform-name \
450 | --program-transform-nam | --program-transform-na \
451 | --program-transform-n | --program-transform- \
452 | --program-transform | --program-transfor \
453 | --program-transfo | --program-transf \
454 | --program-trans | --program-tran \
455 | --progr-tra | --program-tr | --program-t)
456 ac_prev=program_transform_name ;;
457 -program-transform-name=* | --program-transform-name=* \
458 | --program-transform-nam=* | --program-transform-na=* \
459 | --program-transform-n=* | --program-transform-=* \
460 | --program-transform=* | --program-transfor=* \
461 | --program-transfo=* | --program-transf=* \
462 | --program-trans=* | --program-tran=* \
463 | --progr-tra=* | --program-tr=* | --program-t=*)
464 program_transform_name="$ac_optarg" ;;
466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
467 | -silent | --silent | --silen | --sile | --sil)
470 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
472 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
474 sbindir="$ac_optarg" ;;
476 -sharedstatedir | --sharedstatedir | --sharedstatedi \
477 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
478 | --sharedst | --shareds | --shared | --share | --shar \
480 ac_prev=sharedstatedir ;;
481 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
482 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
483 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
485 sharedstatedir="$ac_optarg" ;;
487 -site | --site | --sit)
489 -site=* | --site=* | --sit=*)
492 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
494 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
495 srcdir="$ac_optarg" ;;
497 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
498 | --syscon | --sysco | --sysc | --sys | --sy)
499 ac_prev=sysconfdir ;;
500 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
501 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
502 sysconfdir="$ac_optarg" ;;
504 -target | --target | --targe | --targ | --tar | --ta | --t)
506 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
507 target="$ac_optarg" ;;
509 -v | -verbose | --verbose | --verbos | --verbo | --verb)
512 -version | --version | --versio | --versi | --vers)
513 echo "configure generated by autoconf version 2.13"
517 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
518 # Reject names that are not valid shell variable names.
519 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
520 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
522 ac_package=`echo $ac_package| sed 's/-/_/g'`
527 eval "with_${ac_package}='$ac_optarg'" ;;
529 -without-* | --without-*)
530 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
531 # Reject names that are not valid shell variable names.
532 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
533 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
535 ac_package=`echo $ac_package| sed 's/-/_/g'`
536 eval "with_${ac_package}=no" ;;
539 # Obsolete; use --with-x.
542 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
543 | --x-incl | --x-inc | --x-in | --x-i)
544 ac_prev=x_includes ;;
545 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
546 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
547 x_includes="$ac_optarg" ;;
549 -x-libraries | --x-libraries | --x-librarie | --x-librari \
550 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
551 ac_prev=x_libraries ;;
552 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
553 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
554 x_libraries="$ac_optarg" ;;
556 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
560 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
561 echo "configure: warning: $ac_option: invalid host type" 1>&2
563 if test "x$nonopt" != xNONE; then
564 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
572 if test -n "$ac_prev"; then
573 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
576 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
578 # File descriptor usage:
581 # 2 errors and warnings
582 # 3 some systems may open it to /dev/tty
583 # 4 used on the Kubota Titan
584 # 6 checking for... messages and results
585 # 5 compiler messages saved in config.log
586 if test "$silent" = yes; then
594 This file contains any messages produced by compilers while
595 running configure, to aid debugging if configure makes a mistake.
598 # Strip out --no-create and --no-recursion so they do not pile up.
599 # Also quote any args containing shell metacharacters.
604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
605 | --no-cr | --no-c) ;;
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
608 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
609 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
610 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
615 # Only set these to C if already set. These must not be set unconditionally
616 # because not all systems understand e.g. LANG=C (notably SCO).
617 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
618 # Non-C LC_CTYPE values break the ctype check.
619 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
620 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
621 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
622 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
625 rm -rf conftest* confdefs.h
626 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
629 # A filename unique to this package, relative to the directory that
630 # configure is in, which we can look for to find out if srcdir is correct.
631 ac_unique_file=include/main.h
633 # Find the source files, if location was not specified.
634 if test -z "$srcdir"; then
635 ac_srcdir_defaulted=yes
636 # Try the directory containing this script, then its parent.
638 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
639 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
641 if test ! -r $srcdir/$ac_unique_file; then
645 ac_srcdir_defaulted=no
647 if test ! -r $srcdir/$ac_unique_file; then
648 if test "$ac_srcdir_defaulted" = yes; then
649 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
651 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
654 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
656 # Prefer explicitly selected file to automatically selected ones.
657 if test -z "$CONFIG_SITE"; then
658 if test "x$prefix" != xNONE; then
659 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
661 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
664 for ac_site_file in $CONFIG_SITE; do
665 if test -r "$ac_site_file"; then
666 echo "loading site script $ac_site_file"
671 if test -r "$cache_file"; then
672 echo "loading cache $cache_file"
675 echo "creating cache $cache_file"
680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681 ac_cpp='$CPP $CPPFLAGS'
682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684 cross_compiling=$ac_cv_prog_cc_cross
688 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
689 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
690 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
697 ac_n= ac_c='\c' ac_t=
703 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
704 if test -f $ac_dir/install-sh; then
706 ac_install_sh="$ac_aux_dir/install-sh -c"
708 elif test -f $ac_dir/install.sh; then
710 ac_install_sh="$ac_aux_dir/install.sh -c"
714 if test -z "$ac_aux_dir"; then
715 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
717 ac_config_guess=$ac_aux_dir/config.guess
718 ac_config_sub=$ac_aux_dir/config.sub
719 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
722 # Do some error checking and defaulting for the host and target type.
724 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
727 # 1. You are not allowed to specify --host, --target, and nonopt at the
729 # 2. Host defaults to nonopt.
730 # 3. If nonopt is not specified, then host defaults to the current host,
731 # as determined by config.guess.
732 # 4. Target and build default to nonopt.
733 # 5. If nonopt is not specified, then target and build default to host.
735 # The aliases save the names the user supplied, while $host etc.
736 # will get canonicalized.
737 case $host---$target---$nonopt in
738 NONE---*---* | *---NONE---* | *---*---NONE) ;;
739 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
743 # Make sure we can run config.sub.
744 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
745 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
748 echo $ac_n "checking host system type""... $ac_c" 1>&6
749 echo "configure:750: checking host system type" >&5
752 case "$host_alias" in
756 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
757 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
759 *) host_alias=$nonopt ;;
763 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
764 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
767 echo "$ac_t""$host" 1>&6
769 echo $ac_n "checking target system type""... $ac_c" 1>&6
770 echo "configure:771: checking target system type" >&5
773 case "$target_alias" in
776 NONE) target_alias=$host_alias ;;
777 *) target_alias=$nonopt ;;
781 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
782 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
783 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
784 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
785 echo "$ac_t""$target" 1>&6
787 echo $ac_n "checking build system type""... $ac_c" 1>&6
788 echo "configure:789: checking build system type" >&5
791 case "$build_alias" in
794 NONE) build_alias=$host_alias ;;
795 *) build_alias=$nonopt ;;
799 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
800 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
801 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
802 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
803 echo "$ac_t""$build" 1>&6
805 test "$host_alias" != "$target_alias" &&
806 test "$program_prefix$program_suffix$program_transform_name" = \
808 program_prefix=${target_alias}-
811 CONFIGURE_LINE="$0 $*"
817 save_CPPFLAGS="${CPPFLAGS}"
818 save_CFLAGS="${CFLAGS}"
819 save_LDFLAGS="${LDFLAGS}"
821 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
822 echo "configure:823: checking whether ${MAKE-make} sets \${MAKE}" >&5
823 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
824 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 cat > conftestmake <<\EOF
829 @echo 'ac_maketemp="${MAKE}"'
831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
832 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
833 if test -n "$ac_maketemp"; then
834 eval ac_cv_prog_make_${ac_make}_set=yes
836 eval ac_cv_prog_make_${ac_make}_set=no
840 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
841 echo "$ac_t""yes" 1>&6
844 echo "$ac_t""no" 1>&6
845 SET_MAKE="MAKE=${MAKE-make}"
848 # Extract the first word of "gcc", so it can be a program name with args.
849 set dummy gcc; ac_word=$2
850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851 echo "configure:852: checking for $ac_word" >&5
852 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 if test -n "$CC"; then
856 ac_cv_prog_CC="$CC" # Let the user override the test.
858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
860 for ac_dir in $ac_dummy; do
861 test -z "$ac_dir" && ac_dir=.
862 if test -f $ac_dir/$ac_word; then
871 if test -n "$CC"; then
872 echo "$ac_t""$CC" 1>&6
874 echo "$ac_t""no" 1>&6
877 if test -z "$CC"; then
878 # Extract the first word of "cc", so it can be a program name with args.
879 set dummy cc; ac_word=$2
880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
881 echo "configure:882: checking for $ac_word" >&5
882 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
885 if test -n "$CC"; then
886 ac_cv_prog_CC="$CC" # Let the user override the test.
888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
891 for ac_dir in $ac_dummy; do
892 test -z "$ac_dir" && ac_dir=.
893 if test -f $ac_dir/$ac_word; then
894 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
903 if test $ac_prog_rejected = yes; then
904 # We found a bogon in the path, so make sure we never use it.
905 set dummy $ac_cv_prog_CC
907 if test $# -gt 0; then
908 # We chose a different compiler from the bogus one.
909 # However, it has the same basename, so the bogon will be chosen
910 # first if we set CC to just the basename; use the full file name.
912 set dummy "$ac_dir/$ac_word" "$@"
920 if test -n "$CC"; then
921 echo "$ac_t""$CC" 1>&6
923 echo "$ac_t""no" 1>&6
926 if test -z "$CC"; then
929 # Extract the first word of "cl", so it can be a program name with args.
930 set dummy cl; ac_word=$2
931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
932 echo "configure:933: checking for $ac_word" >&5
933 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 if test -n "$CC"; then
937 ac_cv_prog_CC="$CC" # Let the user override the test.
939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
941 for ac_dir in $ac_dummy; do
942 test -z "$ac_dir" && ac_dir=.
943 if test -f $ac_dir/$ac_word; then
952 if test -n "$CC"; then
953 echo "$ac_t""$CC" 1>&6
955 echo "$ac_t""no" 1>&6
960 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
963 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
964 echo "configure:965: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
971 cross_compiling=$ac_cv_prog_cc_cross
973 cat > conftest.$ac_ext << EOF
975 #line 976 "configure"
976 #include "confdefs.h"
980 if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
981 ac_cv_prog_cc_works=yes
982 # If we can't run a trivial program, we are probably using a cross compiler.
983 if (./conftest; exit) 2>/dev/null; then
984 ac_cv_prog_cc_cross=no
986 ac_cv_prog_cc_cross=yes
989 echo "configure: failed program was:" >&5
990 cat conftest.$ac_ext >&5
991 ac_cv_prog_cc_works=no
995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
996 ac_cpp='$CPP $CPPFLAGS'
997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
999 cross_compiling=$ac_cv_prog_cc_cross
1001 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1002 if test $ac_cv_prog_cc_works = no; then
1003 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1005 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1007 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1008 cross_compiling=$ac_cv_prog_cc_cross
1010 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1011 echo "configure:1012: checking whether we are using GNU C" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 cat > conftest.c <<EOF
1020 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1027 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1029 if test $ac_cv_prog_gcc = yes; then
1035 ac_test_CFLAGS="${CFLAGS+set}"
1036 ac_save_CFLAGS="$CFLAGS"
1038 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether ${CC-cc} accepts -g" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 echo 'void f(){}' > conftest.c
1044 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1053 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1054 if test "$ac_test_CFLAGS" = set; then
1055 CFLAGS="$ac_save_CFLAGS"
1056 elif test $ac_cv_prog_cc_g = yes; then
1057 if test "$GCC" = yes; then
1063 if test "$GCC" = yes; then
1070 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1071 echo "configure:1072: checking how to run the C preprocessor" >&5
1072 # On Suns, sometimes $CPP names a directory.
1073 if test -n "$CPP" && test -d "$CPP"; then
1076 if test -z "$CPP"; then
1077 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 # This must be in double quotes, not single quotes, because CPP may get
1081 # substituted into the Makefile and "${CC-cc}" will confuse make.
1083 # On the NeXT, cc -E runs the code through the compiler's parser,
1084 # not just through cpp.
1085 cat > conftest.$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1092 { (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1094 if test -z "$ac_err"; then
1098 echo "configure: failed program was:" >&5
1099 cat conftest.$ac_ext >&5
1101 CPP="${CC-cc} -E -traditional-cpp"
1102 cat > conftest.$ac_ext <<EOF
1103 #line 1104 "configure"
1104 #include "confdefs.h"
1108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1109 { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1111 if test -z "$ac_err"; then
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1118 CPP="${CC-cc} -nologo -E"
1119 cat > conftest.$ac_ext <<EOF
1120 #line 1121 "configure"
1121 #include "confdefs.h"
1125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1126 { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1128 if test -z "$ac_err"; then
1132 echo "configure: failed program was:" >&5
1133 cat conftest.$ac_ext >&5
1142 ac_cv_prog_CPP="$CPP"
1144 CPP="$ac_cv_prog_CPP"
1146 ac_cv_prog_CPP="$CPP"
1148 echo "$ac_t""$CPP" 1>&6
1151 if test $host != $build; then
1152 ac_tool_prefix=${host_alias}-
1157 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1158 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$RANLIB"; then
1165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1179 RANLIB="$ac_cv_prog_RANLIB"
1180 if test -n "$RANLIB"; then
1181 echo "$ac_t""$RANLIB" 1>&6
1183 echo "$ac_t""no" 1>&6
1187 if test -z "$ac_cv_prog_RANLIB"; then
1188 if test -n "$ac_tool_prefix"; then
1189 # Extract the first word of "ranlib", so it can be a program name with args.
1190 set dummy ranlib; ac_word=$2
1191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_word" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 if test -n "$RANLIB"; then
1197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1201 for ac_dir in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_prog_RANLIB="ranlib"
1209 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1212 RANLIB="$ac_cv_prog_RANLIB"
1213 if test -n "$RANLIB"; then
1214 echo "$ac_t""$RANLIB" 1>&6
1216 echo "$ac_t""no" 1>&6
1224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1225 set dummy ${ac_tool_prefix}strip; ac_word=$2
1226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1227 echo "configure:1228: checking for $ac_word" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 if test -n "$STRIP"; then
1232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1236 for ac_dir in $ac_dummy; do
1237 test -z "$ac_dir" && ac_dir=.
1238 if test -f $ac_dir/$ac_word; then
1239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1246 STRIP="$ac_cv_prog_STRIP"
1247 if test -n "$STRIP"; then
1248 echo "$ac_t""$STRIP" 1>&6
1250 echo "$ac_t""no" 1>&6
1254 if test -z "$ac_cv_prog_STRIP"; then
1255 if test -n "$ac_tool_prefix"; then
1256 # Extract the first word of "strip", so it can be a program name with args.
1257 set dummy strip; ac_word=$2
1258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259 echo "configure:1260: checking for $ac_word" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 if test -n "$STRIP"; then
1264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1268 for ac_dir in $ac_dummy; do
1269 test -z "$ac_dir" && ac_dir=.
1270 if test -f $ac_dir/$ac_word; then
1271 ac_cv_prog_STRIP="strip"
1276 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1279 STRIP="$ac_cv_prog_STRIP"
1280 if test -n "$STRIP"; then
1281 echo "$ac_t""$STRIP" 1>&6
1283 echo "$ac_t""no" 1>&6
1292 # Extract the first word of "gmake", so it can be a program name with args.
1293 set dummy gmake; ac_word=$2
1294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_word" >&5
1296 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1301 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1304 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1309 for ac_dir in $ac_dummy; do
1310 test -z "$ac_dir" && ac_dir=.
1311 if test -f $ac_dir/$ac_word; then
1312 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1317 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1321 GMAKE="$ac_cv_path_GMAKE"
1322 if test -n "$GMAKE"; then
1323 echo "$ac_t""$GMAKE" 1>&6
1325 echo "$ac_t""no" 1>&6
1328 if test "x${GMAKE}" = "xno"; then
1329 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1330 echo "configure:1331: checking whether GNU make is installed" >&5
1331 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 if make --version | grep -q -i gnu; then
1337 echo "This software needs you to install GNU make to compile properly."
1338 echo "You can get it from http://www.gnu.org/."
1343 echo "$ac_t""$ac_cv_gmake" 1>&6
1349 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1351 cat >> confdefs.h <<EOF
1352 #define VLC_PACKAGE "${PACKAGE}"
1355 cat >> confdefs.h <<EOF
1356 #define VLC_VERSION "${VERSION}"
1359 # Extract the first word of "ranlib", so it can be a program name with args.
1360 set dummy ranlib; ac_word=$2
1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_word" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 if test -n "$RANLIB"; then
1367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1371 for ac_dir in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_prog_RANLIB="ranlib"
1379 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1382 RANLIB="$ac_cv_prog_RANLIB"
1383 if test -n "$RANLIB"; then
1384 echo "$ac_t""$RANLIB" 1>&6
1386 echo "$ac_t""no" 1>&6
1390 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1391 echo "configure:1392: checking for strerror in -lcposix" >&5
1392 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 ac_save_LIBS="$LIBS"
1397 LIBS="-lcposix $LIBS"
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1401 /* Override any gcc2 internal prototype to avoid an error. */
1402 /* We use char because int might match the return type of a gcc2
1403 builtin and then its argument prototype would still apply. */
1410 if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1412 eval "ac_cv_lib_$ac_lib_var=yes"
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1417 eval "ac_cv_lib_$ac_lib_var=no"
1420 LIBS="$ac_save_LIBS"
1423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1424 echo "$ac_t""yes" 1>&6
1425 LIBS="$LIBS -lcposix"
1427 echo "$ac_t""no" 1>&6
1432 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1433 echo "configure:1434: checking for ANSI C header files" >&5
1434 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 cat > conftest.$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1446 { (eval echo configure:1447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1448 if test -z "$ac_err"; then
1450 ac_cv_header_stdc=yes
1453 echo "configure: failed program was:" >&5
1454 cat conftest.$ac_ext >&5
1456 ac_cv_header_stdc=no
1460 if test $ac_cv_header_stdc = yes; then
1461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1468 egrep "memchr" >/dev/null 2>&1; then
1472 ac_cv_header_stdc=no
1478 if test $ac_cv_header_stdc = yes; then
1479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1486 egrep "free" >/dev/null 2>&1; then
1490 ac_cv_header_stdc=no
1496 if test $ac_cv_header_stdc = yes; then
1497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1498 if test "$cross_compiling" = yes; then
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1505 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1506 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1508 int main () { int i; for (i = 0; i < 256; i++)
1509 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1513 if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1520 ac_cv_header_stdc=no
1528 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1529 if test $ac_cv_header_stdc = yes; then
1530 cat >> confdefs.h <<\EOF
1531 #define STDC_HEADERS 1
1536 echo $ac_n "checking for working const""... $ac_c" 1>&6
1537 echo "configure:1538: checking for working const" >&5
1538 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1547 /* Ultrix mips cc rejects this. */
1548 typedef int charset[2]; const charset x;
1549 /* SunOS 4.1.1 cc rejects this. */
1550 char const *const *ccp;
1552 /* NEC SVR4.0.2 mips cc rejects this. */
1553 struct point {int x, y;};
1554 static struct point const zero = {0,0};
1555 /* AIX XL C 1.02.0.0 rejects this.
1556 It does not let you subtract one const X* pointer from another in an arm
1557 of an if-expression whose if-part is not a constant expression */
1558 const char *g = "string";
1559 ccp = &g + (g ? g-g : 0);
1560 /* HPUX 7.0 cc rejects these. */
1563 ccp = (char const *const *) p;
1564 { /* SCO 3.2v4 cc rejects this. */
1566 char const *s = 0 ? (char *) 0 : (char const *) 0;
1570 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1572 const int *foo = &x[0];
1575 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1576 typedef const int *iptr;
1580 { /* AIX XL C 1.02.0.0 rejects this saying
1581 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1582 struct s { int j; const int *ap[3]; };
1583 struct s *b; b->j = 5;
1585 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1591 if { (eval echo configure:1592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1603 echo "$ac_t""$ac_cv_c_const" 1>&6
1604 if test $ac_cv_c_const = no; then
1605 cat >> confdefs.h <<\EOF
1611 echo $ac_n "checking for inline""... $ac_c" 1>&6
1612 echo "configure:1613: checking for inline" >&5
1613 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1617 for ac_kw in inline __inline__ __inline; do
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1626 if { (eval echo configure:1627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1628 ac_cv_c_inline=$ac_kw; break
1630 echo "configure: failed program was:" >&5
1631 cat conftest.$ac_ext >&5
1638 echo "$ac_t""$ac_cv_c_inline" 1>&6
1639 case "$ac_cv_c_inline" in
1641 no) cat >> confdefs.h <<\EOF
1645 *) cat >> confdefs.h <<EOF
1646 #define inline $ac_cv_c_inline
1651 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1652 echo "configure:1653: checking for off_t" >&5
1653 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1659 #include <sys/types.h>
1665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1666 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1668 ac_cv_type_off_t=yes
1676 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1677 if test $ac_cv_type_off_t = no; then
1678 cat >> confdefs.h <<\EOF
1684 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1685 echo "configure:1686: checking for size_t" >&5
1686 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 cat > conftest.$ac_ext <<EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1692 #include <sys/types.h>
1698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1699 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1701 ac_cv_type_size_t=yes
1704 ac_cv_type_size_t=no
1709 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1710 if test $ac_cv_type_size_t = no; then
1711 cat >> confdefs.h <<\EOF
1712 #define size_t unsigned
1717 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1718 # for constant arguments. Useless!
1719 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1720 echo "configure:1721: checking for working alloca.h" >&5
1721 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1729 char *p = alloca(2 * sizeof(int));
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 ac_cv_header_alloca_h=yes
1736 echo "configure: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1739 ac_cv_header_alloca_h=no
1744 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1745 if test $ac_cv_header_alloca_h = yes; then
1746 cat >> confdefs.h <<\EOF
1747 #define HAVE_ALLOCA_H 1
1752 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1753 echo "configure:1754: checking for alloca" >&5
1754 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1762 # define alloca __builtin_alloca
1765 # include <malloc.h>
1766 # define alloca _alloca
1769 # include <alloca.h>
1774 # ifndef alloca /* predefined by HP cc +Olibcalls */
1783 char *p = (char *) alloca(1);
1786 if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1788 ac_cv_func_alloca_works=yes
1790 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1793 ac_cv_func_alloca_works=no
1798 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1799 if test $ac_cv_func_alloca_works = yes; then
1800 cat >> confdefs.h <<\EOF
1801 #define HAVE_ALLOCA 1
1806 if test $ac_cv_func_alloca_works = no; then
1807 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1808 # that cause trouble. Some versions do not even contain alloca or
1809 # contain a buggy version. If you still want to use their alloca,
1810 # use ar to extract alloca.o from them instead of compiling alloca.c.
1811 ALLOCA=alloca.${ac_objext}
1812 cat >> confdefs.h <<\EOF
1817 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1818 echo "configure:1819: checking whether alloca needs Cray hooks" >&5
1819 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1825 #if defined(CRAY) && ! defined(CRAY2)
1832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1833 egrep "webecray" >/dev/null 2>&1; then
1844 echo "$ac_t""$ac_cv_os_cray" 1>&6
1845 if test $ac_cv_os_cray = yes; then
1846 for ac_func in _getb67 GETB67 getb67; do
1847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1848 echo "configure:1849: checking for $ac_func" >&5
1849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 cat > conftest.$ac_ext <<EOF
1853 #line 1854 "configure"
1854 #include "confdefs.h"
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char $ac_func(); below. */
1858 /* Override any gcc2 internal prototype to avoid an error. */
1859 /* We use char because int might match the return type of a gcc2
1860 builtin and then its argument prototype would still apply. */
1865 /* The GNU C library defines this for functions which it implements
1866 to always fail with ENOSYS. Some functions are actually named
1867 something starting with __ and the normal name is an alias. */
1868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1876 if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1878 eval "ac_cv_func_$ac_func=yes"
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1883 eval "ac_cv_func_$ac_func=no"
1888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1889 echo "$ac_t""yes" 1>&6
1890 cat >> confdefs.h <<EOF
1891 #define CRAY_STACKSEG_END $ac_func
1896 echo "$ac_t""no" 1>&6
1902 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1903 echo "configure:1904: checking stack direction for C alloca" >&5
1904 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 if test "$cross_compiling" = yes; then
1908 ac_cv_c_stack_direction=0
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 find_stack_direction ()
1915 static char *addr = 0;
1920 return find_stack_direction ();
1923 return (&dummy > addr) ? 1 : -1;
1927 exit (find_stack_direction() < 0);
1930 if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1932 ac_cv_c_stack_direction=1
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1937 ac_cv_c_stack_direction=-1
1944 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1945 cat >> confdefs.h <<EOF
1946 #define STACK_DIRECTION $ac_cv_c_stack_direction
1951 for ac_hdr in unistd.h
1953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_hdr" >&5
1956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1965 { (eval echo configure:1966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1967 if test -z "$ac_err"; then
1969 eval "ac_cv_header_$ac_safe=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 eval "ac_cv_header_$ac_safe=no"
1979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1980 echo "$ac_t""yes" 1>&6
1981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1982 cat >> confdefs.h <<EOF
1983 #define $ac_tr_hdr 1
1987 echo "$ac_t""no" 1>&6
1991 for ac_func in getpagesize
1993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1994 echo "configure:1995: checking for $ac_func" >&5
1995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 /* System header to define __stub macros and hopefully few prototypes,
2002 which can conflict with char $ac_func(); below. */
2004 /* Override any gcc2 internal prototype to avoid an error. */
2005 /* We use char because int might match the return type of a gcc2
2006 builtin and then its argument prototype would still apply. */
2011 /* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2022 if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2024 eval "ac_cv_func_$ac_func=yes"
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2029 eval "ac_cv_func_$ac_func=no"
2034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2035 echo "$ac_t""yes" 1>&6
2036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2037 cat >> confdefs.h <<EOF
2038 #define $ac_tr_func 1
2042 echo "$ac_t""no" 1>&6
2046 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2047 echo "configure:2048: checking for working mmap" >&5
2048 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 if test "$cross_compiling" = yes; then
2052 ac_cv_func_mmap_fixed_mapped=no
2054 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2058 /* Thanks to Mike Haertel and Jim Avera for this test.
2059 Here is a matrix of mmap possibilities:
2060 mmap private not fixed
2061 mmap private fixed at somewhere currently unmapped
2062 mmap private fixed at somewhere already mapped
2063 mmap shared not fixed
2064 mmap shared fixed at somewhere currently unmapped
2065 mmap shared fixed at somewhere already mapped
2066 For private mappings, we should verify that changes cannot be read()
2067 back from the file, nor mmap's back from the file at a different
2068 address. (There have been systems where private was not correctly
2069 implemented like the infamous i386 svr4.0, and systems where the
2070 VM page cache was not coherent with the filesystem buffer cache
2071 like early versions of FreeBSD and possibly contemporary NetBSD.)
2072 For shared mappings, we should conversely verify that changes get
2073 propogated back to all the places they're supposed to be.
2075 Grep wants private fixed already mapped.
2076 The main things grep needs to know about mmap are:
2077 * does it exist and is it safe to write into the mmap'd area
2078 * how to use it (BSD variants) */
2079 #include <sys/types.h>
2081 #include <sys/mman.h>
2083 /* This mess was copied from the GNU getpagesize.h. */
2084 #ifndef HAVE_GETPAGESIZE
2085 # ifdef HAVE_UNISTD_H
2086 # include <unistd.h>
2089 /* Assume that all systems that can run configure have sys/param.h. */
2090 # ifndef HAVE_SYS_PARAM_H
2091 # define HAVE_SYS_PARAM_H 1
2094 # ifdef _SC_PAGESIZE
2095 # define getpagesize() sysconf(_SC_PAGESIZE)
2096 # else /* no _SC_PAGESIZE */
2097 # ifdef HAVE_SYS_PARAM_H
2098 # include <sys/param.h>
2099 # ifdef EXEC_PAGESIZE
2100 # define getpagesize() EXEC_PAGESIZE
2101 # else /* no EXEC_PAGESIZE */
2103 # define getpagesize() NBPG * CLSIZE
2106 # endif /* no CLSIZE */
2107 # else /* no NBPG */
2109 # define getpagesize() NBPC
2110 # else /* no NBPC */
2112 # define getpagesize() PAGESIZE
2113 # endif /* PAGESIZE */
2114 # endif /* no NBPC */
2115 # endif /* no NBPG */
2116 # endif /* no EXEC_PAGESIZE */
2117 # else /* no HAVE_SYS_PARAM_H */
2118 # define getpagesize() 8192 /* punt totally */
2119 # endif /* no HAVE_SYS_PARAM_H */
2120 # endif /* no _SC_PAGESIZE */
2122 #endif /* no HAVE_GETPAGESIZE */
2125 extern "C" { void *malloc(unsigned); }
2133 char *data, *data2, *data3;
2137 pagesize = getpagesize();
2140 * First, make a file with some known garbage in it.
2142 data = malloc(pagesize);
2145 for (i = 0; i < pagesize; ++i)
2146 *(data + i) = rand();
2148 fd = creat("conftestmmap", 0600);
2151 if (write(fd, data, pagesize) != pagesize)
2156 * Next, try to mmap the file at a fixed address which
2157 * already has something else allocated at it. If we can,
2158 * also make sure that we see the same garbage.
2160 fd = open("conftestmmap", O_RDWR);
2163 data2 = malloc(2 * pagesize);
2166 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2167 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2168 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2170 for (i = 0; i < pagesize; ++i)
2171 if (*(data + i) != *(data2 + i))
2175 * Finally, make sure that changes to the mapped area
2176 * do not percolate back to the file as seen by read().
2177 * (This is a bug on some variants of i386 svr4.0.)
2179 for (i = 0; i < pagesize; ++i)
2180 *(data2 + i) = *(data2 + i) + 1;
2181 data3 = malloc(pagesize);
2184 if (read(fd, data3, pagesize) != pagesize)
2186 for (i = 0; i < pagesize; ++i)
2187 if (*(data + i) != *(data3 + i))
2190 unlink("conftestmmap");
2195 if { (eval echo configure:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2197 ac_cv_func_mmap_fixed_mapped=yes
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2202 ac_cv_func_mmap_fixed_mapped=no
2209 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2210 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2211 cat >> confdefs.h <<\EOF
2218 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2219 echo "configure:2220: checking whether we are using the GNU C Library 2.1 or newer" >&5
2220 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2227 #include <features.h>
2228 #ifdef __GNU_LIBRARY__
2229 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2236 egrep "Lucky GNU user" >/dev/null 2>&1; then
2238 ac_cv_gnu_library_2_1=yes
2241 ac_cv_gnu_library_2_1=no
2249 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2251 GLIBC21="$ac_cv_gnu_library_2_1"
2255 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2256 stdlib.h string.h unistd.h sys/param.h
2258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_hdr" >&5
2261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2270 { (eval echo configure:2271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2272 if test -z "$ac_err"; then
2274 eval "ac_cv_header_$ac_safe=yes"
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2280 eval "ac_cv_header_$ac_safe=no"
2284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2285 echo "$ac_t""yes" 1>&6
2286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2287 cat >> confdefs.h <<EOF
2288 #define $ac_tr_hdr 1
2292 echo "$ac_t""no" 1>&6
2296 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2297 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2298 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2301 echo "configure:2302: checking for $ac_func" >&5
2302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 /* System header to define __stub macros and hopefully few prototypes,
2309 which can conflict with char $ac_func(); below. */
2311 /* Override any gcc2 internal prototype to avoid an error. */
2312 /* We use char because int might match the return type of a gcc2
2313 builtin and then its argument prototype would still apply. */
2318 /* The GNU C library defines this for functions which it implements
2319 to always fail with ENOSYS. Some functions are actually named
2320 something starting with __ and the normal name is an alias. */
2321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2329 if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2331 eval "ac_cv_func_$ac_func=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2336 eval "ac_cv_func_$ac_func=no"
2341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2342 echo "$ac_t""yes" 1>&6
2343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2344 cat >> confdefs.h <<EOF
2345 #define $ac_tr_func 1
2349 echo "$ac_t""no" 1>&6
2356 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2357 if test "${with_libiconv_prefix+set}" = set; then
2358 withval="$with_libiconv_prefix"
2360 for dir in `echo "$withval" | tr : ' '`; do
2361 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2362 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2368 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2369 echo "configure:2370: checking for iconv" >&5
2370 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2374 am_cv_func_iconv="no, consider installing GNU libiconv"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2382 iconv_t cd = iconv_open("","");
2383 iconv(cd,NULL,NULL,NULL,NULL);
2387 if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2389 am_cv_func_iconv=yes
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2395 if test "$am_cv_func_iconv" != yes; then
2396 am_save_LIBS="$LIBS"
2397 LIBS="$LIBS -liconv"
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2404 iconv_t cd = iconv_open("","");
2405 iconv(cd,NULL,NULL,NULL,NULL);
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2412 am_cv_func_iconv=yes
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2418 LIBS="$am_save_LIBS"
2423 echo "$ac_t""$am_cv_func_iconv" 1>&6
2424 if test "$am_cv_func_iconv" = yes; then
2425 cat >> confdefs.h <<\EOF
2426 #define HAVE_ICONV 1
2429 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2430 echo "configure:2431: checking for iconv declaration" >&5
2431 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2445 #if defined(__STDC__) || defined(__cplusplus)
2446 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2457 am_cv_proto_iconv_arg1=""
2459 echo "configure: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2462 am_cv_proto_iconv_arg1="const"
2465 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);"
2468 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2469 echo "$ac_t""${ac_t:-
2470 }$am_cv_proto_iconv" 1>&6
2471 cat >> confdefs.h <<EOF
2472 #define ICONV_CONST $am_cv_proto_iconv_arg1
2477 if test "$am_cv_lib_iconv" = yes; then
2483 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2484 echo "configure:2485: checking for nl_langinfo and CODESET" >&5
2485 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491 #include <langinfo.h>
2493 char* cs = nl_langinfo(CODESET);
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498 am_cv_langinfo_codeset=yes
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 am_cv_langinfo_codeset=no
2509 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2510 if test $am_cv_langinfo_codeset = yes; then
2511 cat >> confdefs.h <<\EOF
2512 #define HAVE_LANGINFO_CODESET 1
2517 if test $ac_cv_header_locale_h = yes; then
2518 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2519 echo "configure:2520: checking for LC_MESSAGES" >&5
2520 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2531 if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2533 am_cv_val_LC_MESSAGES=yes
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2538 am_cv_val_LC_MESSAGES=no
2543 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2544 if test $am_cv_val_LC_MESSAGES = yes; then
2545 cat >> confdefs.h <<\EOF
2546 #define HAVE_LC_MESSAGES 1
2551 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2552 echo "configure:2553: checking whether NLS is requested" >&5
2553 # Check whether --enable-nls or --disable-nls was given.
2554 if test "${enable_nls+set}" = set; then
2555 enableval="$enable_nls"
2561 echo "$ac_t""$USE_NLS" 1>&6
2564 BUILD_INCLUDED_LIBINTL=no
2565 USE_INCLUDED_LIBINTL=no
2568 if test "$USE_NLS" = "yes"; then
2569 cat >> confdefs.h <<\EOF
2570 #define ENABLE_NLS 1
2573 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2574 echo "configure:2575: checking whether included gettext is requested" >&5
2575 # Check whether --with-included-gettext or --without-included-gettext was given.
2576 if test "${with_included_gettext+set}" = set; then
2577 withval="$with_included_gettext"
2578 nls_cv_force_use_gnu_gettext=$withval
2580 nls_cv_force_use_gnu_gettext=no
2583 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2585 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2586 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2592 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2593 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2594 echo "configure:2595: checking for libintl.h" >&5
2595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 #include <libintl.h>
2603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2604 { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2606 if test -z "$ac_err"; then
2608 eval "ac_cv_header_$ac_safe=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 eval "ac_cv_header_$ac_safe=no"
2618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2619 echo "$ac_t""yes" 1>&6
2620 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2621 echo "configure:2622: checking for GNU gettext in libc" >&5
2622 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <libintl.h>
2629 extern int _nl_msg_cat_cntr;
2631 bindtextdomain ("", "");
2632 return (int) gettext ("") + _nl_msg_cat_cntr
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2637 gt_cv_func_gnugettext1_libc=yes
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 gt_cv_func_gnugettext1_libc=no
2647 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2649 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2650 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2651 echo "configure:2652: checking for GNU gettext in libintl" >&5
2652 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 gt_save_LIBS="$LIBS"
2656 LIBS="$LIBS -lintl $LIBICONV"
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 #include <libintl.h>
2661 extern int _nl_msg_cat_cntr;
2663 bindtextdomain ("", "");
2664 return (int) gettext ("") + _nl_msg_cat_cntr
2667 if { (eval echo configure:2668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2669 gt_cv_func_gnugettext1_libintl=yes
2671 echo "configure: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2674 gt_cv_func_gnugettext1_libintl=no
2677 LIBS="$gt_save_LIBS"
2680 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2683 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2684 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2685 && test "$PACKAGE" != gettext; }; then
2686 cat >> confdefs.h <<\EOF
2687 #define HAVE_GETTEXT 1
2691 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2692 INTLLIBS="-lintl $LIBICONV"
2695 gt_save_LIBS="$LIBS"
2696 LIBS="$LIBS $INTLLIBS"
2697 for ac_func in dcgettext
2699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_func" >&5
2701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 /* System header to define __stub macros and hopefully few prototypes,
2708 which can conflict with char $ac_func(); below. */
2710 /* Override any gcc2 internal prototype to avoid an error. */
2711 /* We use char because int might match the return type of a gcc2
2712 builtin and then its argument prototype would still apply. */
2717 /* The GNU C library defines this for functions which it implements
2718 to always fail with ENOSYS. Some functions are actually named
2719 something starting with __ and the normal name is an alias. */
2720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2728 if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2730 eval "ac_cv_func_$ac_func=yes"
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2735 eval "ac_cv_func_$ac_func=no"
2740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2743 cat >> confdefs.h <<EOF
2744 #define $ac_tr_func 1
2748 echo "$ac_t""no" 1>&6
2752 LIBS="$gt_save_LIBS"
2754 # Extract the first word of "msgfmt", so it can be a program name with args.
2755 set dummy msgfmt; ac_word=$2
2756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_word" >&5
2758 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2763 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2767 for ac_dir in $PATH; do
2768 test -z "$ac_dir" && ac_dir=.
2769 if test -f $ac_dir/$ac_word; then
2770 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2771 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2777 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2781 MSGFMT="$ac_cv_path_MSGFMT"
2782 if test "$MSGFMT" != ":"; then
2783 echo "$ac_t""$MSGFMT" 1>&6
2785 echo "$ac_t""no" 1>&6
2788 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2789 set dummy gmsgfmt; ac_word=$2
2790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_word" >&5
2792 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2797 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2800 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2805 for ac_dir in $ac_dummy; do
2806 test -z "$ac_dir" && ac_dir=.
2807 if test -f $ac_dir/$ac_word; then
2808 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2813 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2817 GMSGFMT="$ac_cv_path_GMSGFMT"
2818 if test -n "$GMSGFMT"; then
2819 echo "$ac_t""$GMSGFMT" 1>&6
2821 echo "$ac_t""no" 1>&6
2825 # Extract the first word of "xgettext", so it can be a program name with args.
2826 set dummy xgettext; ac_word=$2
2827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_word" >&5
2829 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2834 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2838 for ac_dir in $PATH; do
2839 test -z "$ac_dir" && ac_dir=.
2840 if test -f $ac_dir/$ac_word; then
2841 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2842 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2852 XGETTEXT="$ac_cv_path_XGETTEXT"
2853 if test "$XGETTEXT" != ":"; then
2854 echo "$ac_t""$XGETTEXT" 1>&6
2856 echo "$ac_t""no" 1>&6
2864 echo "$ac_t""no" 1>&6
2868 if test "$CATOBJEXT" = "NONE"; then
2869 nls_cv_use_gnu_gettext=yes
2873 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2874 INTLOBJS="\$(GETTOBJS)"
2875 # Extract the first word of "msgfmt", so it can be a program name with args.
2876 set dummy msgfmt; ac_word=$2
2877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2878 echo "configure:2879: checking for $ac_word" >&5
2879 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2884 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2888 for ac_dir in $PATH; do
2889 test -z "$ac_dir" && ac_dir=.
2890 if test -f $ac_dir/$ac_word; then
2891 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2892 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2898 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2902 MSGFMT="$ac_cv_path_MSGFMT"
2903 if test "$MSGFMT" != ":"; then
2904 echo "$ac_t""$MSGFMT" 1>&6
2906 echo "$ac_t""no" 1>&6
2909 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2910 set dummy gmsgfmt; ac_word=$2
2911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2912 echo "configure:2913: checking for $ac_word" >&5
2913 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2918 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2921 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2926 for ac_dir in $ac_dummy; do
2927 test -z "$ac_dir" && ac_dir=.
2928 if test -f $ac_dir/$ac_word; then
2929 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2934 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2938 GMSGFMT="$ac_cv_path_GMSGFMT"
2939 if test -n "$GMSGFMT"; then
2940 echo "$ac_t""$GMSGFMT" 1>&6
2942 echo "$ac_t""no" 1>&6
2945 # Extract the first word of "xgettext", so it can be a program name with args.
2946 set dummy xgettext; ac_word=$2
2947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2948 echo "configure:2949: checking for $ac_word" >&5
2949 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2954 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2958 for ac_dir in $PATH; do
2959 test -z "$ac_dir" && ac_dir=.
2960 if test -f $ac_dir/$ac_word; then
2961 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2962 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2968 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2972 XGETTEXT="$ac_cv_path_XGETTEXT"
2973 if test "$XGETTEXT" != ":"; then
2974 echo "$ac_t""$XGETTEXT" 1>&6
2976 echo "$ac_t""no" 1>&6
2980 BUILD_INCLUDED_LIBINTL=yes
2981 USE_INCLUDED_LIBINTL=yes
2983 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2984 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2987 if test "$GMSGFMT" != ":"; then
2988 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2991 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2996 if test "$XGETTEXT" != ":"; then
2997 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
3000 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3010 if test "$PACKAGE" = gettext; then
3011 BUILD_INCLUDED_LIBINTL=yes
3014 for ac_prog in bison
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3019 echo "configure:3020: checking for $ac_word" >&5
3020 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 if test -n "$INTLBISON"; then
3024 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3028 for ac_dir in $ac_dummy; do
3029 test -z "$ac_dir" && ac_dir=.
3030 if test -f $ac_dir/$ac_word; then
3031 ac_cv_prog_INTLBISON="$ac_prog"
3038 INTLBISON="$ac_cv_prog_INTLBISON"
3039 if test -n "$INTLBISON"; then
3040 echo "$ac_t""$INTLBISON" 1>&6
3042 echo "$ac_t""no" 1>&6
3045 test -n "$INTLBISON" && break
3048 if test -z "$INTLBISON"; then
3051 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3052 echo "configure:3053: checking version of bison" >&5
3053 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3054 case $ac_prog_version in
3055 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3056 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3057 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3058 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3060 echo "$ac_t""$ac_prog_version" 1>&6
3062 if test $ac_verc_fail = yes; then
3066 for lang in $ALL_LINGUAS; do
3067 GMOFILES="$GMOFILES $lang.gmo"
3068 POFILES="$POFILES $lang.po"
3082 nls_cv_header_libgt=
3094 if test "x$CATOBJEXT" != "x"; then
3095 if test "x$ALL_LINGUAS" = "x"; then
3098 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3099 echo "configure:3100: checking for catalogs to be installed" >&5
3101 for presentlang in $ALL_LINGUAS; do
3103 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3104 # Use the presentlang catalog if desiredlang is
3105 # a. equal to presentlang, or
3106 # b. a variant of presentlang (because in this case,
3107 # presentlang can be used as a fallback for messages
3108 # which are not translated in the desiredlang catalog).
3109 case "$desiredlang" in
3110 "$presentlang"*) useit=yes;;
3113 if test $useit = yes; then
3114 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3117 LINGUAS=$NEW_LINGUAS
3118 echo "$ac_t""$LINGUAS" 1>&6
3121 if test -n "$LINGUAS"; then
3122 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3127 if test -n "$ac_aux_dir"; then
3128 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3130 if test -z "$MKINSTALLDIRS"; then
3131 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3135 INTL_LIBTOOL_SUFFIX_PREFIX=
3139 # Find a good install program. We prefer a C program (faster),
3140 # so one script is as good as another. But avoid the broken or
3141 # incompatible versions:
3142 # SysV /etc/install, /usr/sbin/install
3143 # SunOS /usr/etc/install
3144 # IRIX /sbin/install
3146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3149 # ./install, which can be erroneously created by make from ./install.sh.
3150 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3151 echo "configure:3152: checking for a BSD compatible install" >&5
3152 if test -z "$INSTALL"; then
3153 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3157 for ac_dir in $PATH; do
3158 # Account for people who put trailing slashes in PATH elements.
3160 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3162 # OSF1 and SCO ODT 3.0 have their own names for install.
3163 # Don't use installbsd from OSF since it installs stuff as root
3165 for ac_prog in ginstall scoinst install; do
3166 if test -f $ac_dir/$ac_prog; then
3167 if test $ac_prog = install &&
3168 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3169 # AIX install. It has an incompatible calling convention.
3172 ac_cv_path_install="$ac_dir/$ac_prog -c"
3183 if test "${ac_cv_path_install+set}" = set; then
3184 INSTALL="$ac_cv_path_install"
3186 # As a last resort, use the slow shell script. We don't cache a
3187 # path for INSTALL within a source directory, because that will
3188 # break other packages using the cache if that directory is
3189 # removed, or if the path is relative.
3190 INSTALL="$ac_install_sh"
3193 echo "$ac_t""$INSTALL" 1>&6
3195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3196 # It thinks the first close brace ends the variable substitution.
3197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3204 echo $ac_n "checking for working const""... $ac_c" 1>&6
3205 echo "configure:3206: checking for working const" >&5
3206 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 cat > conftest.$ac_ext <<EOF
3210 #line 3211 "configure"
3211 #include "confdefs.h"
3215 /* Ultrix mips cc rejects this. */
3216 typedef int charset[2]; const charset x;
3217 /* SunOS 4.1.1 cc rejects this. */
3218 char const *const *ccp;
3220 /* NEC SVR4.0.2 mips cc rejects this. */
3221 struct point {int x, y;};
3222 static struct point const zero = {0,0};
3223 /* AIX XL C 1.02.0.0 rejects this.
3224 It does not let you subtract one const X* pointer from another in an arm
3225 of an if-expression whose if-part is not a constant expression */
3226 const char *g = "string";
3227 ccp = &g + (g ? g-g : 0);
3228 /* HPUX 7.0 cc rejects these. */
3231 ccp = (char const *const *) p;
3232 { /* SCO 3.2v4 cc rejects this. */
3234 char const *s = 0 ? (char *) 0 : (char const *) 0;
3238 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3240 const int *foo = &x[0];
3243 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3244 typedef const int *iptr;
3248 { /* AIX XL C 1.02.0.0 rejects this saying
3249 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3250 struct s { int j; const int *ap[3]; };
3251 struct s *b; b->j = 5;
3253 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3259 if { (eval echo configure:3260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3271 echo "$ac_t""$ac_cv_c_const" 1>&6
3272 if test $ac_cv_c_const = no; then
3273 cat >> confdefs.h <<\EOF
3279 echo $ac_n "checking for inline""... $ac_c" 1>&6
3280 echo "configure:3281: checking for inline" >&5
3281 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3285 for ac_kw in inline __inline__ __inline; do
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3294 if { (eval echo configure:3295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3296 ac_cv_c_inline=$ac_kw; break
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3306 echo "$ac_t""$ac_cv_c_inline" 1>&6
3307 case "$ac_cv_c_inline" in
3309 no) cat >> confdefs.h <<\EOF
3313 *) cat >> confdefs.h <<EOF
3314 #define inline $ac_cv_c_inline
3320 vlc_LDFLAGS="${LDFLAGS}"
3322 case "x${target_os}" in
3331 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3332 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3333 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3337 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3341 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3342 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3346 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3347 set dummy ${ac_tool_prefix}windres; ac_word=$2
3348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3349 echo "configure:3350: checking for $ac_word" >&5
3350 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 if test -n "$WINDRES"; then
3354 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3358 for ac_dir in $ac_dummy; do
3359 test -z "$ac_dir" && ac_dir=.
3360 if test -f $ac_dir/$ac_word; then
3361 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3368 WINDRES="$ac_cv_prog_WINDRES"
3369 if test -n "$WINDRES"; then
3370 echo "$ac_t""$WINDRES" 1>&6
3372 echo "$ac_t""no" 1>&6
3376 if test -z "$ac_cv_prog_WINDRES"; then
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "windres", so it can be a program name with args.
3379 set dummy windres; ac_word=$2
3380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3381 echo "configure:3382: checking for $ac_word" >&5
3382 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3385 if test -n "$WINDRES"; then
3386 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3390 for ac_dir in $ac_dummy; do
3391 test -z "$ac_dir" && ac_dir=.
3392 if test -f $ac_dir/$ac_word; then
3393 ac_cv_prog_WINDRES="windres"
3398 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3401 WINDRES="$ac_cv_prog_WINDRES"
3402 if test -n "$WINDRES"; then
3403 echo "$ac_t""$WINDRES" 1>&6
3405 echo "$ac_t""no" 1>&6
3413 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3414 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3415 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3416 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3417 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3418 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3419 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3423 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3424 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3431 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3432 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3433 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3434 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -lstdc++.r4"
3435 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3442 if test "x${SYS}" = "xmingw32"
3444 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3446 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3447 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3450 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3452 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3455 echo "configure:3456: checking for $ac_func" >&5
3456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* System header to define __stub macros and hopefully few prototypes,
3463 which can conflict with char $ac_func(); below. */
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3472 /* The GNU C library defines this for functions which it implements
3473 to always fail with ENOSYS. Some functions are actually named
3474 something starting with __ and the normal name is an alias. */
3475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3483 if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3485 eval "ac_cv_func_$ac_func=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3490 eval "ac_cv_func_$ac_func=no"
3495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3498 cat >> confdefs.h <<EOF
3499 #define $ac_tr_func 1
3503 echo "$ac_t""no" 1>&6
3508 echo $ac_n "checking for connect""... $ac_c" 1>&6
3509 echo "configure:3510: checking for connect" >&5
3510 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 /* System header to define __stub macros and hopefully few prototypes,
3517 which can conflict with char connect(); below. */
3519 /* Override any gcc2 internal prototype to avoid an error. */
3520 /* We use char because int might match the return type of a gcc2
3521 builtin and then its argument prototype would still apply. */
3526 /* The GNU C library defines this for functions which it implements
3527 to always fail with ENOSYS. Some functions are actually named
3528 something starting with __ and the normal name is an alias. */
3529 #if defined (__stub_connect) || defined (__stub___connect)
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3539 eval "ac_cv_func_connect=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 eval "ac_cv_func_connect=no"
3549 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3550 echo "$ac_t""yes" 1>&6
3553 echo "$ac_t""no" 1>&6
3555 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3556 echo "configure:3557: checking for connect in -lsocket" >&5
3557 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3561 ac_save_LIBS="$LIBS"
3562 LIBS="-lsocket $LIBS"
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 /* Override any gcc2 internal prototype to avoid an error. */
3567 /* We use char because int might match the return type of a gcc2
3568 builtin and then its argument prototype would still apply. */
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3577 eval "ac_cv_lib_$ac_lib_var=yes"
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3582 eval "ac_cv_lib_$ac_lib_var=no"
3585 LIBS="$ac_save_LIBS"
3588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3589 echo "$ac_t""yes" 1>&6
3590 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3591 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3594 echo "$ac_t""no" 1>&6
3599 echo $ac_n "checking for send""... $ac_c" 1>&6
3600 echo "configure:3601: checking for send" >&5
3601 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 /* System header to define __stub macros and hopefully few prototypes,
3608 which can conflict with char send(); below. */
3610 /* Override any gcc2 internal prototype to avoid an error. */
3611 /* We use char because int might match the return type of a gcc2
3612 builtin and then its argument prototype would still apply. */
3617 /* The GNU C library defines this for functions which it implements
3618 to always fail with ENOSYS. Some functions are actually named
3619 something starting with __ and the normal name is an alias. */
3620 #if defined (__stub_send) || defined (__stub___send)
3628 if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3630 eval "ac_cv_func_send=yes"
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 eval "ac_cv_func_send=no"
3640 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3641 echo "$ac_t""yes" 1>&6
3644 echo "$ac_t""no" 1>&6
3646 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3647 echo "configure:3648: checking for send in -lsocket" >&5
3648 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 ac_save_LIBS="$LIBS"
3653 LIBS="-lsocket $LIBS"
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3668 eval "ac_cv_lib_$ac_lib_var=yes"
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3673 eval "ac_cv_lib_$ac_lib_var=no"
3676 LIBS="$ac_save_LIBS"
3679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3681 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3684 echo "$ac_t""no" 1>&6
3689 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3690 echo "configure:3691: checking for gethostbyname" >&5
3691 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 /* System header to define __stub macros and hopefully few prototypes,
3698 which can conflict with char gethostbyname(); below. */
3700 /* Override any gcc2 internal prototype to avoid an error. */
3701 /* We use char because int might match the return type of a gcc2
3702 builtin and then its argument prototype would still apply. */
3703 char gethostbyname();
3707 /* The GNU C library defines this for functions which it implements
3708 to always fail with ENOSYS. Some functions are actually named
3709 something starting with __ and the normal name is an alias. */
3710 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3718 if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3720 eval "ac_cv_func_gethostbyname=yes"
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 eval "ac_cv_func_gethostbyname=no"
3730 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3734 echo "$ac_t""no" 1>&6
3736 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3737 echo "configure:3738: checking for gethostbyname in -lnsl" >&5
3738 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 ac_save_LIBS="$LIBS"
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3747 /* Override any gcc2 internal prototype to avoid an error. */
3748 /* We use char because int might match the return type of a gcc2
3749 builtin and then its argument prototype would still apply. */
3750 char gethostbyname();
3756 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3758 eval "ac_cv_lib_$ac_lib_var=yes"
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 eval "ac_cv_lib_$ac_lib_var=no"
3766 LIBS="$ac_save_LIBS"
3769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3771 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3773 echo "$ac_t""no" 1>&6
3775 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3776 echo "configure:3777: checking for gethostbyname in -lbind" >&5
3777 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3781 ac_save_LIBS="$LIBS"
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3789 char gethostbyname();
3795 if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3797 eval "ac_cv_lib_$ac_lib_var=yes"
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3802 eval "ac_cv_lib_$ac_lib_var=no"
3805 LIBS="$ac_save_LIBS"
3808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3810 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3812 echo "$ac_t""no" 1>&6
3821 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3822 echo "configure:3823: checking for nanosleep" >&5
3823 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3829 /* System header to define __stub macros and hopefully few prototypes,
3830 which can conflict with char nanosleep(); below. */
3832 /* Override any gcc2 internal prototype to avoid an error. */
3833 /* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3839 /* The GNU C library defines this for functions which it implements
3840 to always fail with ENOSYS. Some functions are actually named
3841 something starting with __ and the normal name is an alias. */
3842 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3850 if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3852 eval "ac_cv_func_nanosleep=yes"
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3857 eval "ac_cv_func_nanosleep=no"
3862 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3863 echo "$ac_t""yes" 1>&6
3866 echo "$ac_t""no" 1>&6
3868 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3869 echo "configure:3870: checking for nanosleep in -lrt" >&5
3870 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 ac_save_LIBS="$LIBS"
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3888 if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3890 eval "ac_cv_lib_$ac_lib_var=yes"
3892 echo "configure: failed program was:" >&5
3893 cat conftest.$ac_ext >&5
3895 eval "ac_cv_lib_$ac_lib_var=no"
3898 LIBS="$ac_save_LIBS"
3901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3902 echo "$ac_t""yes" 1>&6
3903 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3905 echo "$ac_t""no" 1>&6
3906 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3907 echo "configure:3908: checking for nanosleep in -lposix4" >&5
3908 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3912 ac_save_LIBS="$LIBS"
3913 LIBS="-lposix4 $LIBS"
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 /* Override any gcc2 internal prototype to avoid an error. */
3918 /* We use char because int might match the return type of a gcc2
3919 builtin and then its argument prototype would still apply. */
3926 if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3928 eval "ac_cv_lib_$ac_lib_var=yes"
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 eval "ac_cv_lib_$ac_lib_var=no"
3936 LIBS="$ac_save_LIBS"
3939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3941 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3943 echo "$ac_t""no" 1>&6
3952 if test x$have_nanosleep = x1; then
3953 cat >> confdefs.h <<\EOF
3954 #define HAVE_NANOSLEEP 1
3959 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
3960 echo "configure:3961: checking for sem_init in -lrt" >&5
3961 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
3962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 ac_save_LIBS="$LIBS"
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 /* Override any gcc2 internal prototype to avoid an error. */
3971 /* We use char because int might match the return type of a gcc2
3972 builtin and then its argument prototype would still apply. */
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981 eval "ac_cv_lib_$ac_lib_var=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3986 eval "ac_cv_lib_$ac_lib_var=no"
3989 LIBS="$ac_save_LIBS"
3992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3994 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3996 echo "$ac_t""no" 1>&6
4000 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
4001 echo "configure:4002: checking for inet_aton" >&5
4002 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4008 /* System header to define __stub macros and hopefully few prototypes,
4009 which can conflict with char inet_aton(); below. */
4011 /* Override any gcc2 internal prototype to avoid an error. */
4012 /* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4018 /* The GNU C library defines this for functions which it implements
4019 to always fail with ENOSYS. Some functions are actually named
4020 something starting with __ and the normal name is an alias. */
4021 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4029 if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4031 eval "ac_cv_func_inet_aton=yes"
4033 echo "configure: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4036 eval "ac_cv_func_inet_aton=no"
4041 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
4042 echo "$ac_t""yes" 1>&6
4045 echo "$ac_t""no" 1>&6
4047 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4048 echo "configure:4049: checking for inet_aton in -lresolv" >&5
4049 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
4050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 ac_save_LIBS="$LIBS"
4054 LIBS="-lresolv $LIBS"
4055 cat > conftest.$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 /* We use char because int might match the return type of a gcc2
4060 builtin and then its argument prototype would still apply. */
4067 if { (eval echo configure:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4069 eval "ac_cv_lib_$ac_lib_var=yes"
4071 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4074 eval "ac_cv_lib_$ac_lib_var=no"
4077 LIBS="$ac_save_LIBS"
4080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4082 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4084 echo "$ac_t""no" 1>&6
4090 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4091 echo "configure:4092: checking for textdomain" >&5
4092 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4095 cat > conftest.$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 /* System header to define __stub macros and hopefully few prototypes,
4099 which can conflict with char textdomain(); below. */
4101 /* Override any gcc2 internal prototype to avoid an error. */
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4108 /* The GNU C library defines this for functions which it implements
4109 to always fail with ENOSYS. Some functions are actually named
4110 something starting with __ and the normal name is an alias. */
4111 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4121 eval "ac_cv_func_textdomain=yes"
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4126 eval "ac_cv_func_textdomain=no"
4131 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4135 echo "$ac_t""no" 1>&6
4137 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4138 echo "configure:4139: checking for textdomain in -lintl" >&5
4139 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4143 ac_save_LIBS="$LIBS"
4145 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 /* Override any gcc2 internal prototype to avoid an error. */
4149 /* We use char because int might match the return type of a gcc2
4150 builtin and then its argument prototype would still apply. */
4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 eval "ac_cv_lib_$ac_lib_var=yes"
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4164 eval "ac_cv_lib_$ac_lib_var=no"
4167 LIBS="$ac_save_LIBS"
4170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4171 echo "$ac_t""yes" 1>&6
4172 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4173 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4176 echo "$ac_t""no" 1>&6
4184 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4185 echo "configure:4186: checking for getopt_long" >&5
4186 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4192 /* System header to define __stub macros and hopefully few prototypes,
4193 which can conflict with char getopt_long(); below. */
4195 /* Override any gcc2 internal prototype to avoid an error. */
4196 /* We use char because int might match the return type of a gcc2
4197 builtin and then its argument prototype would still apply. */
4202 /* The GNU C library defines this for functions which it implements
4203 to always fail with ENOSYS. Some functions are actually named
4204 something starting with __ and the normal name is an alias. */
4205 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4213 if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4215 eval "ac_cv_func_getopt_long=yes"
4217 echo "configure: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4220 eval "ac_cv_func_getopt_long=no"
4225 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4226 echo "$ac_t""yes" 1>&6
4227 cat >> confdefs.h <<\EOF
4228 #define HAVE_GETOPT_LONG 1
4232 echo "$ac_t""no" 1>&6
4233 # FreeBSD has a gnugetopt library for this:
4234 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4235 echo "configure:4236: checking for getopt_long in -lgnugetopt" >&5
4236 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 ac_save_LIBS="$LIBS"
4241 LIBS="-lgnugetopt $LIBS"
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 /* Override any gcc2 internal prototype to avoid an error. */
4246 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4256 eval "ac_cv_lib_$ac_lib_var=yes"
4258 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4261 eval "ac_cv_lib_$ac_lib_var=no"
4264 LIBS="$ac_save_LIBS"
4267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4268 echo "$ac_t""yes" 1>&6
4269 cat >> confdefs.h <<\EOF
4270 #define HAVE_GETOPT_LONG 1
4272 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4274 echo "$ac_t""no" 1>&6
4281 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4282 echo "configure:4283: checking return type of signal handlers" >&5
4283 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4289 #include <sys/types.h>
4295 extern "C" void (*signal (int, void (*)(int)))(int);
4297 void (*signal ()) ();
4304 if { (eval echo configure:4305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4306 ac_cv_type_signal=void
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4311 ac_cv_type_signal=int
4316 echo "$ac_t""$ac_cv_type_signal" 1>&6
4317 cat >> confdefs.h <<EOF
4318 #define RETSIGTYPE $ac_cv_type_signal
4322 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4323 echo "configure:4324: checking for dlopen in -ldl" >&5
4324 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 ac_save_LIBS="$LIBS"
4330 cat > conftest.$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4333 /* Override any gcc2 internal prototype to avoid an error. */
4334 /* We use char because int might match the return type of a gcc2
4335 builtin and then its argument prototype would still apply. */
4342 if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4344 eval "ac_cv_lib_$ac_lib_var=yes"
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4349 eval "ac_cv_lib_$ac_lib_var=no"
4352 LIBS="$ac_save_LIBS"
4355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4356 echo "$ac_t""yes" 1>&6
4357 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4359 echo "$ac_t""no" 1>&6
4362 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4363 echo "configure:4364: checking for cos in -lm" >&5
4364 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 ac_save_LIBS="$LIBS"
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 /* Override any gcc2 internal prototype to avoid an error. */
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4382 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4384 eval "ac_cv_lib_$ac_lib_var=yes"
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4389 eval "ac_cv_lib_$ac_lib_var=no"
4392 LIBS="$ac_save_LIBS"
4395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4397 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4398 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4400 echo "$ac_t""no" 1>&6
4403 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4404 echo "configure:4405: checking for pow in -lm" >&5
4405 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 ac_save_LIBS="$LIBS"
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 /* Override any gcc2 internal prototype to avoid an error. */
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4423 if { (eval echo configure:4424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4425 eval "ac_cv_lib_$ac_lib_var=yes"
4427 echo "configure: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4430 eval "ac_cv_lib_$ac_lib_var=no"
4433 LIBS="$ac_save_LIBS"
4436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4437 echo "$ac_t""yes" 1>&6
4438 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4439 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4440 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4441 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4442 i420_rgb_LDFLAGS="${i420_rgb_LDFLAGS} -lm"
4443 faad_LDFLAGS="${faad_LDFLAGS} -lm"
4446 echo "$ac_t""no" 1>&6
4451 if test "x${THREAD_LIB}" = "xerror"; then
4452 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4453 echo "configure:4454: checking for main in -lpthread" >&5
4454 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 ac_save_LIBS="$LIBS"
4459 LIBS="-lpthread $LIBS"
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4468 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4470 eval "ac_cv_lib_$ac_lib_var=yes"
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4475 eval "ac_cv_lib_$ac_lib_var=no"
4478 LIBS="$ac_save_LIBS"
4481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 THREAD_LIB="-lpthread"
4485 echo "$ac_t""no" 1>&6
4489 if test "x${THREAD_LIB}" = "xerror"; then
4490 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4491 echo "configure:4492: checking for main in -lpthreads" >&5
4492 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4496 ac_save_LIBS="$LIBS"
4497 LIBS="-lpthreads $LIBS"
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4506 if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4508 eval "ac_cv_lib_$ac_lib_var=yes"
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4513 eval "ac_cv_lib_$ac_lib_var=no"
4516 LIBS="$ac_save_LIBS"
4519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4520 echo "$ac_t""yes" 1>&6
4521 THREAD_LIB="-lpthreads"
4523 echo "$ac_t""no" 1>&6
4527 if test "x${THREAD_LIB}" = "xerror"; then
4528 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4529 echo "configure:4530: checking for main in -lc_r" >&5
4530 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 ac_save_LIBS="$LIBS"
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4544 if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4546 eval "ac_cv_lib_$ac_lib_var=yes"
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4551 eval "ac_cv_lib_$ac_lib_var=no"
4554 LIBS="$ac_save_LIBS"
4557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4558 echo "$ac_t""yes" 1>&6
4561 echo "$ac_t""no" 1>&6
4565 if test "x${THREAD_LIB}" = "xerror"; then
4566 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4567 echo "configure:4568: checking for pthread_mutex_lock" >&5
4568 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4574 /* System header to define __stub macros and hopefully few prototypes,
4575 which can conflict with char pthread_mutex_lock(); below. */
4577 /* Override any gcc2 internal prototype to avoid an error. */
4578 /* We use char because int might match the return type of a gcc2
4579 builtin and then its argument prototype would still apply. */
4580 char pthread_mutex_lock();
4584 /* The GNU C library defines this for functions which it implements
4585 to always fail with ENOSYS. Some functions are actually named
4586 something starting with __ and the normal name is an alias. */
4587 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4590 pthread_mutex_lock();
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 eval "ac_cv_func_pthread_mutex_lock=yes"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4602 eval "ac_cv_func_pthread_mutex_lock=no"
4607 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4608 echo "$ac_t""yes" 1>&6
4611 echo "$ac_t""no" 1>&6
4617 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4618 echo "configure:4619: checking for cthread_fork in -lthreads" >&5
4619 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4623 ac_save_LIBS="$LIBS"
4624 LIBS="-lthreads $LIBS"
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 /* Override any gcc2 internal prototype to avoid an error. */
4629 /* We use char because int might match the return type of a gcc2
4630 builtin and then its argument prototype would still apply. */
4631 char cthread_fork();
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4639 eval "ac_cv_lib_$ac_lib_var=yes"
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4644 eval "ac_cv_lib_$ac_lib_var=no"
4647 LIBS="$ac_save_LIBS"
4650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4651 echo "$ac_t""yes" 1>&6
4652 THREAD_LIB="-lthreads"
4654 echo "$ac_t""no" 1>&6
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4661 #include <pthread.h>
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 egrep "pthread_cond_t" >/dev/null 2>&1; then
4667 cat >> confdefs.h <<\EOF
4668 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #include <pthread.h>
4679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4680 egrep "pthread_once" >/dev/null 2>&1; then
4683 cat >> confdefs.h <<\EOF
4684 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4693 #include <strings.h>
4695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4696 egrep "strncasecmp" >/dev/null 2>&1; then
4699 cat >> confdefs.h <<\EOF
4700 #define STRNCASECMP_IN_STRINGS_H 1
4707 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_hdr" >&5
4712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4721 { (eval echo configure:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4723 if test -z "$ac_err"; then
4725 eval "ac_cv_header_$ac_safe=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4731 eval "ac_cv_header_$ac_safe=no"
4735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4738 cat >> confdefs.h <<EOF
4739 #define $ac_tr_hdr 1
4743 echo "$ac_t""no" 1>&6
4747 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_hdr" >&5
4752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4761 { (eval echo configure:4762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4763 if test -z "$ac_err"; then
4765 eval "ac_cv_header_$ac_safe=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 eval "ac_cv_header_$ac_safe=no"
4775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4778 cat >> confdefs.h <<EOF
4779 #define $ac_tr_hdr 1
4783 echo "$ac_t""no" 1>&6
4787 for ac_hdr in dlfcn.h image.h
4789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4791 echo "configure:4792: checking for $ac_hdr" >&5
4792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4801 { (eval echo configure:4802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4803 if test -z "$ac_err"; then
4805 eval "ac_cv_header_$ac_safe=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4811 eval "ac_cv_header_$ac_safe=no"
4815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
4817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4818 cat >> confdefs.h <<EOF
4819 #define $ac_tr_hdr 1
4823 echo "$ac_t""no" 1>&6
4827 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4831 echo "configure:4832: checking for $ac_hdr" >&5
4832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4841 { (eval echo configure:4842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4843 if test -z "$ac_err"; then
4845 eval "ac_cv_header_$ac_safe=yes"
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4851 eval "ac_cv_header_$ac_safe=no"
4855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4858 cat >> confdefs.h <<EOF
4859 #define $ac_tr_hdr 1
4863 echo "$ac_t""no" 1>&6
4867 for ac_hdr in machine/param.h sys/shm.h
4869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4871 echo "configure:4872: checking for $ac_hdr" >&5
4872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4881 { (eval echo configure:4882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4883 if test -z "$ac_err"; then
4885 eval "ac_cv_header_$ac_safe=yes"
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4891 eval "ac_cv_header_$ac_safe=no"
4895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4896 echo "$ac_t""yes" 1>&6
4897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4898 cat >> confdefs.h <<EOF
4899 #define $ac_tr_hdr 1
4903 echo "$ac_t""no" 1>&6
4907 for ac_hdr in linux/version.h
4909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4911 echo "configure:4912: checking for $ac_hdr" >&5
4912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4921 { (eval echo configure:4922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4923 if test -z "$ac_err"; then
4925 eval "ac_cv_header_$ac_safe=yes"
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4931 eval "ac_cv_header_$ac_safe=no"
4935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4938 cat >> confdefs.h <<EOF
4939 #define $ac_tr_hdr 1
4943 echo "$ac_t""no" 1>&6
4948 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4949 echo "configure:4950: checking whether time.h and sys/time.h may both be included" >&5
4950 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 #include <sys/types.h>
4957 #include <sys/time.h>
4963 if { (eval echo configure:4964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4965 ac_cv_header_time=yes
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4970 ac_cv_header_time=no
4975 echo "$ac_t""$ac_cv_header_time" 1>&6
4976 if test $ac_cv_header_time = yes; then
4977 cat >> confdefs.h <<\EOF
4978 #define TIME_WITH_SYS_TIME 1
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4990 egrep "nanosleep" >/dev/null 2>&1; then
4993 cat >> confdefs.h <<\EOF
4994 #define HAVE_DECL_NANOSLEEP 1
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5005 #include <sys/time.h>
5007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5008 egrep "timespec" >/dev/null 2>&1; then
5011 cat >> confdefs.h <<\EOF
5012 #define HAVE_STRUCT_TIMESPEC 1
5020 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
5022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5024 echo "configure:5025: checking for $ac_hdr" >&5
5025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5026 echo $ac_n "(cached) $ac_c" 1>&6
5028 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5034 { (eval echo configure:5035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5036 if test -z "$ac_err"; then
5038 eval "ac_cv_header_$ac_safe=yes"
5041 echo "configure: failed program was:" >&5
5042 cat conftest.$ac_ext >&5
5044 eval "ac_cv_header_$ac_safe=no"
5048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5049 echo "$ac_t""yes" 1>&6
5050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5051 cat >> confdefs.h <<EOF
5052 #define $ac_tr_hdr 1
5056 echo "$ac_t""no" 1>&6
5061 if test "x${x_includes}" = "xNONE"; then
5062 x_includes="/usr/X11R6/include"
5064 if test "x${x_libraries}" = "xNONE"; then
5065 x_libraries="/usr/X11R6/lib"
5070 if test "x${SYS}" != "xmingw32"
5072 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
5073 for ac_hdr in X11/extensions/dpms.h
5075 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5077 echo "configure:5078: checking for $ac_hdr" >&5
5078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5087 { (eval echo configure:5088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5089 if test -z "$ac_err"; then
5091 eval "ac_cv_header_$ac_safe=yes"
5094 echo "configure: failed program was:" >&5
5095 cat conftest.$ac_ext >&5
5097 eval "ac_cv_header_$ac_safe=no"
5101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5102 echo "$ac_t""yes" 1>&6
5103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5104 cat >> confdefs.h <<EOF
5105 #define $ac_tr_hdr 1
5108 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5111 #include <X11/extensions/dpms.h>
5113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5114 egrep "DPMSInfo" >/dev/null 2>&1; then
5117 cat >> confdefs.h <<\EOF
5118 #define DPMSINFO_IN_DPMS_H 1
5127 echo "$ac_t""no" 1>&6
5131 CPPFLAGS="${save_CPPFLAGS}"
5134 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5135 echo "configure:5136: checking for ntohl in sys/param.h" >&5
5136 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 CFLAGS="${save_CFLAGS} -Wall -Werror"
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5143 #include <sys/param.h>
5145 void foo() { int meuh; ntohl(meuh); }
5148 if { (eval echo configure:5149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5150 ac_cv_c_ntohl_sys_param_h=yes
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5155 ac_cv_c_ntohl_sys_param_h=no
5160 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5161 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5162 cat >> confdefs.h <<\EOF
5163 #define NTOHL_IN_SYS_PARAM_H 1
5168 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5169 echo "configure:5170: checking if \$CC accepts -finline-limit" >&5
5170 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5173 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5174 cat > conftest.$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5182 if { (eval echo configure:5183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5184 ac_cv_c_inline_limit=yes
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5189 ac_cv_c_inline_limit=no
5194 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5195 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5196 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5199 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5200 echo "configure:5201: checking if \$CC accepts -Wall -Winline" >&5
5201 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5204 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5213 if { (eval echo configure:5214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5215 ac_cv_c_Wall_Winline=yes
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 ac_cv_c_Wall_Winline=no
5225 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5226 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5227 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5229 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5230 echo "configure:5231: checking if \$CC accepts -wall -winline" >&5
5231 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5232 echo $ac_n "(cached) $ac_c" 1>&6
5234 CFLAGS="-wall -winline ${save_CFLAGS}"
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5243 if { (eval echo configure:5244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5245 ac_cv_c_wall_winline=yes
5247 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5250 ac_cv_c_wall_winline=no
5255 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5256 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5257 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5261 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5262 echo "configure:5263: checking if \$CC accepts -pipe" >&5
5263 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5264 echo $ac_n "(cached) $ac_c" 1>&6
5266 CFLAGS="${save_CFLAGS} -pipe"
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5275 if { (eval echo configure:5276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5287 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5288 if test "x${ac_cv_c_pipe}" != "xno"; then
5289 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5292 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5293 echo "configure:5294: checking if \$CC accepts -O3" >&5
5294 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5295 echo $ac_n "(cached) $ac_c" 1>&6
5297 CFLAGS="${save_CFLAGS} -O3"
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5306 if { (eval echo configure:5307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5310 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5318 echo "$ac_t""$ac_cv_c_o3" 1>&6
5319 if test "x${ac_cv_c_o3}" != "xno"; then
5320 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5322 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5323 echo "configure:5324: checking if \$CC accepts -O2" >&5
5324 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5325 echo $ac_n "(cached) $ac_c" 1>&6
5327 CFLAGS="${save_CFLAGS} -O2"
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5336 if { (eval echo configure:5337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5340 echo "configure: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5348 echo "$ac_t""$ac_cv_c_o2" 1>&6
5349 if test "x${ac_cv_c_o2}" != "xno"; then
5350 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5352 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5353 echo "configure:5354: checking if \$CC accepts -O" >&5
5354 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 CFLAGS="${save_CFLAGS} -O"
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5366 if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5378 echo "$ac_t""$ac_cv_c_o" 1>&6
5379 if test "x${ac_cv_c_o}" != "xno"; then
5380 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5385 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5386 echo "configure:5387: checking if \$CC accepts -ffast-math" >&5
5387 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5390 CFLAGS="${save_CFLAGS} -ffast-math"
5391 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure"
5393 #include "confdefs.h"
5399 if { (eval echo configure:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5401 ac_cv_c_fast_math=yes
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5406 ac_cv_c_fast_math=no
5411 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5412 if test "x${ac_cv_c_fast_math}" != "xno"; then
5413 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5416 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5417 echo "configure:5418: checking if \$CC accepts -funroll-loops" >&5
5418 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 CFLAGS="${save_CFLAGS} -funroll-loops"
5422 cat > conftest.$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5430 if { (eval echo configure:5431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5432 ac_cv_c_unroll_loops=yes
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5437 ac_cv_c_unroll_loops=no
5442 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5443 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5444 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5447 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5448 echo "configure:5449: checking if \$CC accepts -fomit-frame-pointer" >&5
5449 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5452 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5453 cat > conftest.$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5461 if { (eval echo configure:5462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5463 ac_cv_c_omit_frame_pointer=yes
5465 echo "configure: failed program was:" >&5
5466 cat conftest.$ac_ext >&5
5468 ac_cv_c_omit_frame_pointer=no
5473 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5474 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5475 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5476 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5477 i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5480 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5481 echo "configure:5482: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5482 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5485 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5494 if { (eval echo configure:5495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5506 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5507 if test "x${ac_cv_ld_darwin}" != "xno"; then
5508 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5511 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5512 echo "configure:5513: checking if \$CC accepts -shared" >&5
5513 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5516 CFLAGS="${save_CFLAGS} -shared"
5517 cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5525 if { (eval echo configure:5526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5527 ac_cv_ld_plugins=yes
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5537 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5538 if test "x${ac_cv_ld_plugins}" != "xno"; then
5539 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5542 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5543 echo "configure:5544: checking for variadic cpp macros" >&5
5544 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5547 CFLAGS="${save_CFLAGS}"
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5552 #define a(b,c...) printf(b,##c)
5554 a("foo");a("%s","bar");a("%s%s","baz","quux");
5557 if { (eval echo configure:5558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5559 ac_cv_cpp_variadic_macros=yes
5561 echo "configure: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5564 ac_cv_cpp_variadic_macros=no
5569 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5570 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5571 cat >> confdefs.h <<\EOF
5572 #define HAVE_VARIADIC_MACROS 1
5577 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5578 echo "configure:5579: checking __attribute__ ((aligned ())) support" >&5
5579 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5580 echo $ac_n "(cached) $ac_c" 1>&6
5582 ac_cv_c_attribute_aligned=0
5583 CFLAGS="${save_CFLAGS} -Werror"
5584 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5585 cat > conftest.$ac_ext <<EOF
5586 #line 5587 "configure"
5587 #include "confdefs.h"
5590 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5593 if { (eval echo configure:5594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5595 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5597 echo "configure: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5602 CFLAGS="${save_CFLAGS}"
5605 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5606 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5607 cat >> confdefs.h <<EOF
5608 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5613 case "x${target_cpu}" in
5618 ARCH="${target_cpu}"
5622 BUILTINS="${BUILTINS}"
5623 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null"
5624 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file misc/memcpy/memcpy"
5625 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/mpeg_system demux/mpeg/ps demux/mpeg/ts"
5626 PLUGINS="${PLUGINS} codec/mpeg_video/idct/idct codec/mpeg_video/idct/idctclassic codec/mpeg_video/motion/motion codec/mpeg_video/mpeg_video codec/spudec/spudec codec/spdif codec/mpeg_audio/mpeg_audio"
5627 PLUGINS="${PLUGINS} codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/a52old/a52old"
5628 #PLUGINS="${PLUGINS} codec/lpcm/lpcm"
5629 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5630 PLUGINS="${PLUGINS} audio_filter/converter/float32tos16 audio_filter/converter/float32tos8 audio_filter/converter/float32tou16 audio_filter/converter/float32tou8 audio_filter/converter/a52tospdif audio_filter/converter/fixed32tofloat32 audio_filter/converter/fixed32tos16 audio_filter/converter/s16tofloat32"
5631 PLUGINS="${PLUGINS} audio_filter/resampler/trivial audio_filter/resampler/ugly"
5632 PLUGINS="${PLUGINS} audio_filter/channel_mixer/trivial"
5633 PLUGINS="${PLUGINS} audio_mixer/trivial audio_mixer/spdif"
5634 PLUGINS="${PLUGINS} audio_output/file"
5635 #PLUGINS="${PLUGINS} visualization/scope/scope"
5636 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5637 PLUGINS="${PLUGINS} demux/util/id3"
5638 NETWORK_MODULES="access/udp access/http access/rtp misc/network/ipv4"
5640 MMX_MODULES="misc/memcpy/memcpymmx codec/mpeg_video/idct/idctmmx codec/mpeg_video/motion/motionmmx video_chroma/i420_rgb_mmx video_chroma/i420_yuy2_mmx video_chroma/i422_yuy2_mmx video_chroma/i420_ymga_mmx"
5641 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5642 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5643 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5644 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5646 if test x$SYS != xbeos
5648 PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
5651 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5652 echo "configure:5653: checking if \$CC groks MMX inline assembly" >&5
5653 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5656 CFLAGS="${save_CFLAGS}"
5657 cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5662 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5665 if { (eval echo configure:5666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5667 ac_cv_mmx_inline=yes
5669 echo "configure: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5677 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5678 if test "x${ac_cv_mmx_inline}" != "xno"; then
5679 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5682 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5683 echo "configure:5684: checking if \$CC groks MMX EXT inline assembly" >&5
5684 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5687 CFLAGS="${save_CFLAGS}"
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5693 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5696 if { (eval echo configure:5697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5698 ac_cv_mmxext_inline=yes
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5703 ac_cv_mmxext_inline=no
5708 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5709 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5710 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5713 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5714 echo "configure:5715: checking if \$CC groks 3D Now! inline assembly" >&5
5715 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 CFLAGS="${save_CFLAGS}"
5719 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5724 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5727 if { (eval echo configure:5728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5729 ac_cv_3dnow_inline=yes
5731 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5734 ac_cv_3dnow_inline=no
5739 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5740 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5741 cat >> confdefs.h <<\EOF
5742 #define CAN_COMPILE_3DNOW 1
5745 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5748 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5749 echo "configure:5750: checking if \$CC groks SSE inline assembly" >&5
5750 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5753 CFLAGS="${save_CFLAGS}"
5754 cat > conftest.$ac_ext <<EOF
5755 #line 5756 "configure"
5756 #include "confdefs.h"
5759 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5762 if { (eval echo configure:5763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5764 ac_cv_sse_inline=yes
5766 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5774 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5775 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5776 cat >> confdefs.h <<\EOF
5777 #define CAN_COMPILE_SSE 1
5780 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5783 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5784 # we should be able to remove this test with future versions of mingw32
5785 if test "x${SYS}" != "xmingw32"; then
5786 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5787 echo "configure:5788: checking if \$CC groks AltiVec inline assembly" >&5
5788 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5789 echo $ac_n "(cached) $ac_c" 1>&6
5791 CFLAGS="${save_CFLAGS}"
5792 cat > conftest.$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5797 asm volatile("vperm 0,1,2,3");
5800 if { (eval echo configure:5801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5802 ac_cv_altivec_inline=yes
5804 echo "configure: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5807 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5808 cat > conftest.$ac_ext <<EOF
5809 #line 5810 "configure"
5810 #include "confdefs.h"
5813 asm volatile("vperm 0,1,2,3");
5816 if { (eval echo configure:5817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5818 ac_cv_altivec_inline="-Wa,-m7400"
5820 echo "configure: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5823 ac_cv_altivec_inline=no
5831 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5832 if test "x${ac_cv_altivec_inline}" != "xno"; then
5833 cat >> confdefs.h <<\EOF
5834 #define CAN_COMPILE_ALTIVEC 1
5837 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5838 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5839 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5840 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5841 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5843 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5846 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5847 echo "configure:5848: checking if \$CC groks AltiVec C extensions" >&5
5848 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 CFLAGS="${save_CFLAGS} -faltivec"
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5858 vec_mtvscr((vector unsigned int)(0));
5861 if { (eval echo configure:5862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5863 ac_cv_c_altivec=-faltivec
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5870 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5876 vec_mtvscr((vector unsigned int)(0));
5879 if { (eval echo configure:5880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5881 ac_cv_c_altivec="-fvec"
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5892 CFLAGS="${save_CFLAGS}"
5895 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5896 if test "x${ac_cv_c_altivec}" != "xno"; then
5897 cat >> confdefs.h <<\EOF
5898 #define CAN_COMPILE_C_ALTIVEC 1
5901 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5902 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5903 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5904 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5905 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5908 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5909 echo "configure:5910: checking if linker needs -framework vecLib" >&5
5910 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5911 echo $ac_n "(cached) $ac_c" 1>&6
5913 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5922 if { (eval echo configure:5923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5924 ac_cv_ld_altivec=yes
5926 echo "configure: failed program was:" >&5
5927 cat conftest.$ac_ext >&5
5932 LDFLAGS="${save_LDFLAGS}"
5936 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5937 if test "x${ac_cv_ld_altivec}" != "xno"; then
5938 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5939 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5940 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5941 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5946 # Check whether --with- or --without- was given.
5947 if test "${with_+set}" = set; then
5952 # Check whether --with- or --without- was given.
5953 if test "${with_+set}" = set; then
5959 # Check whether --with-tuning or --without-tuning was given.
5960 if test "${with_tuning+set}" = set; then
5961 withval="$with_tuning"
5965 if test "x${with_tuning}" != "x"; then
5966 TUNING="${with_tuning}"
5968 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5970 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5974 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
5977 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5980 # Check whether --enable-optimizations or --disable-optimizations was given.
5981 if test "${enable_optimizations+set}" = set; then
5982 enableval="$enable_optimizations"
5983 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
5989 # Check whether --enable-altivec or --disable-altivec was given.
5990 if test "${enable_altivec+set}" = set; then
5991 enableval="$enable_altivec"
5992 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
5993 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5995 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
5996 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6001 # Check whether --enable-debug or --disable-debug was given.
6002 if test "${enable_debug+set}" = set; then
6003 enableval="$enable_debug"
6004 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
6009 # Check whether --enable-release or --disable-release was given.
6010 if test "${enable_release+set}" = set; then
6011 enableval="$enable_release"
6012 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
6014 VERSION="${VERSION}_`date +%Y-%m-%d`"
6019 # Check whether --with- or --without- was given.
6020 if test "${with_+set}" = set; then
6026 # Check whether --enable-dvd or --disable-dvd was given.
6027 if test "${enable_dvd+set}" = set; then
6028 enableval="$enable_dvd"
6032 if test "x${enable_dvd}" != "xno"
6034 # Check whether --with-dvdcss or --without-dvdcss was given.
6035 if test "${with_dvdcss+set}" = set; then
6036 withval="$with_dvdcss"
6040 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
6041 if test "${with_dvdcss_tree+set}" = set; then
6042 withval="$with_dvdcss_tree"
6046 case "x${with_dvdcss}" in
6048 if test "x${with_dvdcss_tree}" = x
6050 for ac_hdr in dvdcss/dvdcss.h
6052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054 echo "configure:6055: checking for $ac_hdr" >&5
6055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6064 { (eval echo configure:6065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6066 if test -z "$ac_err"; then
6068 eval "ac_cv_header_$ac_safe=yes"
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6074 eval "ac_cv_header_$ac_safe=no"
6078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6081 cat >> confdefs.h <<EOF
6082 #define $ac_tr_hdr 1
6084 PLUGINS="${PLUGINS} access/dvd/dvd"
6085 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
6087 echo "$ac_t""no" 1>&6
6088 echo "configure: 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." 1>&2
6089 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
6094 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
6095 echo "configure:6096: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
6096 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6097 if test "x${real_dvdcss_tree}" = "x"
6099 echo "$ac_t""no" 1>&6
6100 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6102 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6104 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6105 BUILTINS="${BUILTINS} access/dvd/dvd"
6106 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6107 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6109 echo "$ac_t""no" 1>&6
6110 { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
6115 PLUGINS="${PLUGINS} access/dvd/dvd"
6116 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6117 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6120 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6121 echo "configure:6122: checking for dvdcss headers in ${with_dvdcss}" >&5
6122 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6124 echo "$ac_t""yes" 1>&6
6125 PLUGINS="${PLUGINS} access/dvd/dvd"
6126 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6127 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6129 echo "$ac_t""no" 1>&6
6130 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6136 # Check whether --enable-dvdread or --disable-dvdread was given.
6137 if test "${enable_dvdread+set}" = set; then
6138 enableval="$enable_dvdread"
6142 if test "x${enable_dvdread}" != "xno"
6144 # Check whether --with-dvdread or --without-dvdread was given.
6145 if test "${with_dvdread+set}" = set; then
6146 withval="$with_dvdread"
6150 if test "x${with_dvdread}" = "x"
6155 test_LDFLAGS="-L${with_dvdread}/lib"
6156 test_CFLAGS="-I${with_dvdread}/include"
6158 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6159 for ac_hdr in dvdread/dvd_reader.h
6161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6163 echo "configure:6164: checking for $ac_hdr" >&5
6164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6167 cat > conftest.$ac_ext <<EOF
6168 #line 6169 "configure"
6169 #include "confdefs.h"
6172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6173 { (eval echo configure:6174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6175 if test -z "$ac_err"; then
6177 eval "ac_cv_header_$ac_safe=yes"
6180 echo "configure: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6183 eval "ac_cv_header_$ac_safe=no"
6187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6188 echo "$ac_t""yes" 1>&6
6189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6190 cat >> confdefs.h <<EOF
6191 #define $ac_tr_hdr 1
6194 cat > conftest.$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6197 #include <dvdread/dvd_reader.h>
6199 int foo() { return DVD_VIDEO_LB_LEN; }
6202 if { (eval echo configure:6203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6205 PLUGINS="${PLUGINS} access/dvdread/dvdread"
6206 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6207 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6214 if test "x${enable_dvdread}" != "x"
6216 { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; }
6223 echo "$ac_t""no" 1>&6
6224 if test "x${enable_dvdread}" != "x"
6226 if test "x${with_dvdread}" != "x"
6228 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6230 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6237 CPPFLAGS="$save_CPPFLAGS"
6240 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6241 if test "${enable_dvdplay+set}" = set; then
6242 enableval="$enable_dvdplay"
6246 if test "x$enable_dvdplay" != "xno"
6248 # Check whether --with-dvdplay or --without-dvdplay was given.
6249 if test "${with_dvdplay+set}" = set; then
6250 withval="$with_dvdplay"
6254 if test "x$with_dvdplay" = x
6259 test_LDFLAGS="-L${with_dvdplay}/lib"
6260 test_CFLAGS="-I${with_dvdplay}/include"
6262 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6263 for ac_hdr in dvdplay/dvdplay.h
6265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6267 echo "configure:6268: checking for $ac_hdr" >&5
6268 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6277 { (eval echo configure:6278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6279 if test -z "$ac_err"; then
6281 eval "ac_cv_header_$ac_safe=yes"
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6287 eval "ac_cv_header_$ac_safe=no"
6291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6294 cat >> confdefs.h <<EOF
6295 #define $ac_tr_hdr 1
6298 PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6299 dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6300 dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6303 echo "$ac_t""no" 1>&6
6304 if test "x$enable_dvdplay" != x
6306 if test "x$with_dvdplay" != x
6308 { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6310 { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6317 CPPFLAGS="${save_CPPFLAGS}"
6321 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6322 if test "${enable_dvbpsi+set}" = set; then
6323 enableval="$enable_dvbpsi"
6327 if test "x${enable_dvbpsi}" != "xno"
6329 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6330 if test "${with_dvbpsi+set}" = set; then
6331 withval="$with_dvbpsi"
6335 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6336 if test "${with_dvbpsi+set}" = set; then
6337 withval="$with_dvbpsi"
6341 case "x${with_dvbpsi}" in
6343 if test "x${with_dvbpsi_tree}" = "x"
6345 for ac_hdr in dvbpsi/dr.h
6347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6349 echo "configure:6350: checking for $ac_hdr" >&5
6350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6353 cat > conftest.$ac_ext <<EOF
6354 #line 6355 "configure"
6355 #include "confdefs.h"
6358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6359 { (eval echo configure:6360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6361 if test -z "$ac_err"; then
6363 eval "ac_cv_header_$ac_safe=yes"
6366 echo "configure: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6369 eval "ac_cv_header_$ac_safe=no"
6373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6374 echo "$ac_t""yes" 1>&6
6375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6376 cat >> confdefs.h <<EOF
6377 #define $ac_tr_hdr 1
6379 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6380 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi"
6382 echo "$ac_t""no" 1>&6
6387 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6388 echo "configure:6389: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6389 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6390 if test "x${real_dvbpsi_tree}" = "x"
6392 echo "$ac_t""no" 1>&6
6393 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6395 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6397 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6398 BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6399 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6400 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6402 echo "$ac_t""no" 1>&6
6403 { echo "configure: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" 1>&2; exit 1; }
6410 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6411 echo "configure:6412: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6412 if test "x${with_dvbpsi}" = "x"
6417 test_LDFLAGS="-L${with_dvbpsi}/lib"
6418 test_CFLAGS="-I${with_dvbpsi}/include"
6420 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6421 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6422 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6423 echo "configure:6424: checking for dvbpsi/dr.h" >&5
6424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 #include <dvbpsi/dr.h>
6432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6433 { (eval echo configure:6434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6435 if test -z "$ac_err"; then
6437 eval "ac_cv_header_$ac_safe=yes"
6440 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6443 eval "ac_cv_header_$ac_safe=no"
6447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6448 echo "$ac_t""yes" 1>&6
6450 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6451 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6452 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6455 echo "$ac_t""no" 1>&6
6457 if test "x${enable_dvbpsi}" != "x"
6459 { echo "configure: 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" 1>&2; exit 1; }
6464 CPPFLAGS="${save_CPPFLAGS}"
6469 # Check whether --enable-v4l or --disable-v4l was given.
6470 if test "${enable_v4l+set}" = set; then
6471 enableval="$enable_v4l"
6475 if test "x${enable_v4l}" = "xyes"
6477 for ac_hdr in libv4l/v4l.h
6479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6481 echo "configure:6482: checking for $ac_hdr" >&5
6482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6491 { (eval echo configure:6492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6493 if test -z "$ac_err"; then
6495 eval "ac_cv_header_$ac_safe=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_header_$ac_safe=no"
6505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6506 echo "$ac_t""yes" 1>&6
6507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6508 cat >> confdefs.h <<EOF
6509 #define $ac_tr_hdr 1
6512 PLUGINS="${PLUGINS} access/v4l/v4l"
6515 echo "$ac_t""no" 1>&6
6521 # Check whether --enable-vcd or --disable-vcd was given.
6522 if test "${enable_vcd+set}" = set; then
6523 enableval="$enable_vcd"
6528 if test "x${enable_vcd}" != "xno"
6530 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6533 #include <linux/cdrom.h>
6535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6536 egrep "cdrom_msf0" >/dev/null 2>&1; then
6539 PLUGINS="${PLUGINS} access/vcd/vcd"
6545 cat > conftest.$ac_ext <<EOF
6546 #line 6547 "configure"
6547 #include "confdefs.h"
6548 #include <sys/cdio.h>
6550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6551 egrep "ioc_toc_header " >/dev/null 2>&1; then
6554 PLUGINS="${PLUGINS} access/vcd/vcd"
6555 cat >> confdefs.h <<\EOF
6556 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6564 if test "x${SYS}" = "xbsdi"
6566 PLUGINS="${PLUGINS} access/vcd/vcd"
6569 if test "x${SYS}" = "xdarwin"
6571 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6572 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6576 # Check whether --enable-satellite or --disable-satellite was given.
6577 if test "${enable_satellite+set}" = set; then
6578 enableval="$enable_satellite"
6579 if test "x${enable_satellite}" = "xyes"
6581 PLUGINS="${PLUGINS} access/satellite/satellite"
6586 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6589 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6590 echo "configure:6591: checking for inet_pton" >&5
6591 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6592 echo $ac_n "(cached) $ac_c" 1>&6
6594 cat > conftest.$ac_ext <<EOF
6595 #line 6596 "configure"
6596 #include "confdefs.h"
6597 /* System header to define __stub macros and hopefully few prototypes,
6598 which can conflict with char inet_pton(); below. */
6600 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6607 /* The GNU C library defines this for functions which it implements
6608 to always fail with ENOSYS. Some functions are actually named
6609 something starting with __ and the normal name is an alias. */
6610 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6618 if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6620 eval "ac_cv_func_inet_pton=yes"
6622 echo "configure: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6625 eval "ac_cv_func_inet_pton=no"
6630 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6631 echo "$ac_t""yes" 1>&6
6634 echo "$ac_t""no" 1>&6
6636 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6637 echo "configure:6638: checking for inet_pton in -lresolv" >&5
6638 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 ac_save_LIBS="$LIBS"
6643 LIBS="-lresolv $LIBS"
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6658 eval "ac_cv_lib_$ac_lib_var=yes"
6660 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6663 eval "ac_cv_lib_$ac_lib_var=no"
6666 LIBS="$ac_save_LIBS"
6669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6670 echo "$ac_t""yes" 1>&6
6672 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6674 echo "$ac_t""no" 1>&6
6680 echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6681 echo "configure:6682: checking for sockaddr_in6 in netinet/in.h" >&5
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6685 #include <netinet/in.h>
6687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6688 egrep "sockaddr_in6" >/dev/null 2>&1; then
6690 echo "$ac_t""yes" 1>&6
6693 echo "$ac_t""no" 1>&6; have_ipv6=0
6697 if test x$have_ipv6 = x1; then
6698 PLUGINS="${PLUGINS} misc/network/ipv6"
6701 if test "x${SYS}" = "xmingw32"
6703 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6704 echo "configure:6705: checking for getaddrinfo in ws2tcpip.h" >&5
6705 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6708 #include <ws2tcpip.h>
6710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6711 egrep "addrinfo" >/dev/null 2>&1; then
6713 echo "$ac_t""yes" 1>&6
6714 PLUGINS="${PLUGINS} misc/network/ipv6"
6717 echo "$ac_t""no" 1>&6
6723 # Check whether --enable-avi or --disable-avi was given.
6724 if test "${enable_avi+set}" = set; then
6725 enableval="$enable_avi"
6729 if test "x${enable_avi}" != "xno"
6731 PLUGINS="${PLUGINS} demux/avi/avi"
6734 # Check whether --enable-aac or --disable-aac was given.
6735 if test "${enable_aac+set}" = set; then
6736 enableval="$enable_aac"
6740 if test "x${enable_aac}" != "xno"
6742 PLUGINS="${PLUGINS} demux/aac/aac"
6746 # Check whether --with- or --without- was given.
6747 if test "${with_+set}" = set; then
6753 # Check whether --enable-mad or --disable-mad was given.
6754 if test "${enable_mad+set}" = set; then
6755 enableval="$enable_mad"
6759 if test "x${enable_mad}" = "xyes"
6761 # Check whether --with-mad or --without-mad was given.
6762 if test "${with_mad+set}" = set; then
6767 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6769 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6770 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6773 # Check whether --with-mad-tree or --without-mad-tree was given.
6774 if test "${with_mad_tree+set}" = set; then
6775 withval="$with_mad_tree"
6779 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6781 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6782 if test "x${real_mad_tree}" = "x"
6784 echo "$ac_t""no" 1>&6
6785 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6787 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6788 echo "configure:6789: checking for mad.h in ${real_mad_tree}/libmad" >&5
6789 if test -f ${real_mad_tree}/libmad/mad.h
6791 echo "$ac_t""yes" 1>&6
6792 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6793 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6794 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6795 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6796 echo "configure:6797: checking for mad_bit_init in -lmad" >&5
6797 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6801 ac_save_LIBS="$LIBS"
6803 cat > conftest.$ac_ext <<EOF
6804 #line 6805 "configure"
6805 #include "confdefs.h"
6806 /* Override any gcc2 internal prototype to avoid an error. */
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6809 char mad_bit_init();
6815 if { (eval echo configure:6816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6817 eval "ac_cv_lib_$ac_lib_var=yes"
6819 echo "configure: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6822 eval "ac_cv_lib_$ac_lib_var=no"
6825 LIBS="$ac_save_LIBS"
6828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6829 echo "$ac_t""yes" 1>&6
6831 BUILTINS="${BUILTINS} codec/mad/mad"
6832 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6835 echo "$ac_t""no" 1>&6
6836 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6840 LDFLAGS="${save_LDFLAGS}"
6842 echo "$ac_t""no" 1>&6
6843 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6846 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6847 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6850 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6851 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6852 echo "configure:6853: checking for $ac_hdr" >&5
6853 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6854 echo $ac_n "(cached) $ac_c" 1>&6
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6862 { (eval echo configure:6863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6864 if test -z "$ac_err"; then
6866 eval "ac_cv_header_$ac_safe=yes"
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 eval "ac_cv_header_$ac_safe=no"
6876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6877 echo "$ac_t""yes" 1>&6
6878 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6879 cat >> confdefs.h <<EOF
6880 #define $ac_tr_hdr 1
6884 echo "$ac_t""no" 1>&6
6885 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6889 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6890 echo "configure:6891: checking for mad_bit_init in -lmad" >&5
6891 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6893 echo $ac_n "(cached) $ac_c" 1>&6
6895 ac_save_LIBS="$LIBS"
6897 cat > conftest.$ac_ext <<EOF
6898 #line 6899 "configure"
6899 #include "confdefs.h"
6900 /* Override any gcc2 internal prototype to avoid an error. */
6901 /* We use char because int might match the return type of a gcc2
6902 builtin and then its argument prototype would still apply. */
6903 char mad_bit_init();
6909 if { (eval echo configure:6910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6911 eval "ac_cv_lib_$ac_lib_var=yes"
6913 echo "configure: failed program was:" >&5
6914 cat conftest.$ac_ext >&5
6916 eval "ac_cv_lib_$ac_lib_var=no"
6919 LIBS="$ac_save_LIBS"
6922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6923 echo "$ac_t""yes" 1>&6
6925 PLUGINS="${PLUGINS} codec/mad/mad"
6926 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6928 echo "$ac_t""no" 1>&6
6929 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6932 CFLAGS="${save_CFLAGS}"
6933 LDFLAGS="${save_LDFLAGS}"
6937 for ac_hdr in id3tag.h
6939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6941 echo "configure:6942: checking for $ac_hdr" >&5
6942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6943 echo $ac_n "(cached) $ac_c" 1>&6
6945 cat > conftest.$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6951 { (eval echo configure:6952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6953 if test -z "$ac_err"; then
6955 eval "ac_cv_header_$ac_safe=yes"
6958 echo "configure: failed program was:" >&5
6959 cat conftest.$ac_ext >&5
6961 eval "ac_cv_header_$ac_safe=no"
6965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6968 cat >> confdefs.h <<EOF
6969 #define $ac_tr_hdr 1
6972 id3tag_LDFLAGS="${id3tag_LDFLAGS} -lz -lid3tag"
6973 PLUGINS="${PLUGINS} demux/util/id3tag"
6975 echo "$ac_t""no" 1>&6
6980 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6981 if test "${enable_ffmpeg+set}" = set; then
6982 enableval="$enable_ffmpeg"
6986 if test "x${enable_ffmpeg}" = "xyes"
6988 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6989 if test "${with_ffmpeg+set}" = set; then
6990 withval="$with_ffmpeg"
6994 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6996 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6997 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
7000 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c"
7001 if test "x${ac_cv_mmx_inline}" != "xno"; then
7002 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx"
7005 if test "x${ac_cv_mmxext_inline}" != "xno"; then
7006 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext"
7010 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
7011 if test "${with_ffmpeg_tree+set}" = set; then
7012 withval="$with_ffmpeg_tree"
7016 if test "x${with_ffmpeg_tree}" != "x"
7018 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
7019 echo "configure:7020: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
7020 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
7021 if test "x${real_ffmpeg_tree}" = x
7023 echo "$ac_t""no" 1>&6
7024 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
7026 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
7028 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
7029 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7030 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
7031 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
7033 echo "$ac_t""no" 1>&6
7034 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
7037 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
7038 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS}"
7039 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
7040 echo "configure:7041: checking for avcodec_init in -lavcodec" >&5
7041 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
7042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7045 ac_save_LIBS="$LIBS"
7046 LIBS="-lavcodec $LIBS"
7047 cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 /* Override any gcc2 internal prototype to avoid an error. */
7051 /* We use char because int might match the return type of a gcc2
7052 builtin and then its argument prototype would still apply. */
7053 char avcodec_init();
7059 if { (eval echo configure:7060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7061 eval "ac_cv_lib_$ac_lib_var=yes"
7063 echo "configure: failed program was:" >&5
7064 cat conftest.$ac_ext >&5
7066 eval "ac_cv_lib_$ac_lib_var=no"
7069 LIBS="$ac_save_LIBS"
7072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7073 echo "$ac_t""yes" 1>&6
7075 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7076 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
7078 echo "$ac_t""no" 1>&6
7079 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
7082 LDFLAGS="${save_LDFLAGS}"
7083 CFLAGS="${save_CFLAGS}"
7087 # Check whether --enable-faad or --disable-faad was given.
7088 if test "${enable_faad+set}" = set; then
7089 enableval="$enable_faad"
7093 if test "x${enable_faad}" = "xyes"
7095 # Check whether --with-faad or --without-faad was given.
7096 if test "${with_faad+set}" = set; then
7097 withval="$with_faad"
7101 if test "x${with_faad}" != "xno" -a "x${with_faad}" != "x"
7103 faad_CFLAGS="${faad_CFLAGS} -I${with_faad}/include"
7104 faad_LDFLAGS="${faad_LDFLAGS} -L${with_faad}/lib"
7106 faad_LDFLAGS="${faad_LDFLAGS}"
7108 # Check whether --with-faad-tree or --without-faad-tree was given.
7109 if test "${with_faad_tree+set}" = set; then
7110 withval="$with_faad_tree"
7114 if test "x${with_faad_tree}" != "x"
7116 echo $ac_n "checking for libfaad.a in ${with_faad_tree}""... $ac_c" 1>&6
7117 echo "configure:7118: checking for libfaad.a in ${with_faad_tree}" >&5
7118 real_faad_tree="`cd ${with_faad_tree} 2>/dev/null && pwd`"
7119 if test "x${real_faad_tree}" = x
7121 echo "$ac_t""no" 1>&6
7122 { echo "configure: error: cannot cd to ${with_faad_tree}" 1>&2; exit 1; }
7124 if test -f "${real_faad_tree}/libfaad/.libs/libfaad.a"
7126 echo "$ac_t""${real_faad_tree}/libfaad/.libs/libfaad.a" 1>&6
7127 BUILTINS="${BUILTINS} codec/faad/faad"
7128 faad_LDFLAGS="${faad_LDFLAGS} ${real_faad_tree}/libfaad/.libs/libfaad.a"
7129 faad_CFLAGS="${faad_CFLAGS} -I${real_faad_tree}/include"
7131 echo "$ac_t""no" 1>&6
7132 { echo "configure: error: cannot find ${real_faad_tree}/libfaad/.libs/libfaad.a, make sure you compiled libfaad in ${with_faad_tree}" 1>&2; exit 1; }
7135 CFLAGS="${save_CFLAGS} ${faad_CFLAGS}"
7136 LDFLAGS="${save_LDFLAGS} ${faad_LDFLAGS}"
7137 for ac_hdr in faad.h
7139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7141 echo "configure:7142: checking for $ac_hdr" >&5
7142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7143 echo $ac_n "(cached) $ac_c" 1>&6
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7151 { (eval echo configure:7152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7153 if test -z "$ac_err"; then
7155 eval "ac_cv_header_$ac_safe=yes"
7158 echo "configure: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7161 eval "ac_cv_header_$ac_safe=no"
7165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7168 cat >> confdefs.h <<EOF
7169 #define $ac_tr_hdr 1
7173 echo "$ac_t""no" 1>&6
7174 { echo "configure: error: Cannot find development headers for libfaad..." 1>&2; exit 1; }
7178 echo $ac_n "checking for faacDecOpen in -lfaad""... $ac_c" 1>&6
7179 echo "configure:7180: checking for faacDecOpen in -lfaad" >&5
7180 ac_lib_var=`echo faad'_'faacDecOpen | sed 'y%./+-%__p_%'`
7181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7184 ac_save_LIBS="$LIBS"
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 /* Override any gcc2 internal prototype to avoid an error. */
7190 /* We use char because int might match the return type of a gcc2
7191 builtin and then its argument prototype would still apply. */
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7200 eval "ac_cv_lib_$ac_lib_var=yes"
7202 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7205 eval "ac_cv_lib_$ac_lib_var=no"
7208 LIBS="$ac_save_LIBS"
7211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7212 echo "$ac_t""yes" 1>&6
7214 PLUGINS="${PLUGINS} codec/faad/faad"
7215 faad_LDFLAGS="${faad_LDFLAGS} -lfaad"
7217 echo "$ac_t""no" 1>&6
7218 { echo "configure: error: Cannot find libfaad library..." 1>&2; exit 1; }
7221 LDFLAGS="${save_LDFLAGS}"
7222 CFLAGS="${save_CFLAGS}"
7228 # Check whether --enable-mp4 or --disable-mp4 was given.
7229 if test "${enable_mp4+set}" = set; then
7230 enableval="$enable_mp4"
7234 if test "x${enable_mp4}" != "xno"
7237 PLUGINS="${PLUGINS} demux/mp4/mp4"
7238 for ac_hdr in zlib.h
7240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_hdr" >&5
7243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7252 { (eval echo configure:7253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7254 if test -z "$ac_err"; then
7256 eval "ac_cv_header_$ac_safe=yes"
7259 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7262 eval "ac_cv_header_$ac_safe=no"
7266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7267 echo "$ac_t""yes" 1>&6
7268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7269 cat >> confdefs.h <<EOF
7270 #define $ac_tr_hdr 1
7272 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
7274 echo "$ac_t""no" 1>&6
7280 # Check whether --enable-a52 or --disable-a52 was given.
7281 if test "${enable_a52+set}" = set; then
7282 enableval="$enable_a52"
7286 if test "x${enable_a52}" != "xno"
7288 # Check whether --with-a52 or --without-a52 was given.
7289 if test "${with_a52+set}" = set; then
7294 # Check whether --with-a52-tree or --without-a52-tree was given.
7295 if test "${with_a52_tree+set}" = set; then
7296 withval="$with_a52_tree"
7300 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
7302 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
7303 if test "x${real_a52_tree}" = "x"
7305 echo "$ac_t""no" 1>&6
7306 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
7308 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
7309 echo "configure:7310: checking for a52.h in ${real_a52_tree}/include" >&5
7310 if test -f ${real_a52_tree}/include/a52.h
7312 echo "$ac_t""yes" 1>&6
7313 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
7314 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
7315 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
7316 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7317 echo "configure:7318: checking for a52_free in -la52" >&5
7318 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7320 echo $ac_n "(cached) $ac_c" 1>&6
7322 ac_save_LIBS="$LIBS"
7323 LIBS="-la52 -lm $LIBS"
7324 cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 /* Override any gcc2 internal prototype to avoid an error. */
7328 /* We use char because int might match the return type of a gcc2
7329 builtin and then its argument prototype would still apply. */
7336 if { (eval echo configure:7337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7338 eval "ac_cv_lib_$ac_lib_var=yes"
7340 echo "configure: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7343 eval "ac_cv_lib_$ac_lib_var=no"
7346 LIBS="$ac_save_LIBS"
7349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7350 echo "$ac_t""yes" 1>&6
7352 BUILTINS="${BUILTINS} codec/a52"
7353 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7354 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7357 echo "$ac_t""no" 1>&6
7359 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7361 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7363 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7368 LDFLAGS="${save_LDFLAGS}"
7370 echo "$ac_t""no" 1>&6
7371 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7374 if test "x${with_a52}" = "x"
7379 test_LDFLAGS="-L${with_a52}/lib"
7380 test_CFLAGS="-I${with_a52}/include"
7382 save_CPPFLAGS="${CPPFLAGS}"
7383 save_LDFLAGS="${LDFLAGS}"
7384 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
7385 LDFLAGS="${save_LDFLAGS} ${test_LDFLAGS}"
7386 for ac_hdr in a52dec/a52.h
7388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7390 echo "configure:7391: checking for $ac_hdr" >&5
7391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7400 { (eval echo configure:7401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7402 if test -z "$ac_err"; then
7404 eval "ac_cv_header_$ac_safe=yes"
7407 echo "configure: failed program was:" >&5
7408 cat conftest.$ac_ext >&5
7410 eval "ac_cv_header_$ac_safe=no"
7414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7415 echo "$ac_t""yes" 1>&6
7416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7417 cat >> confdefs.h <<EOF
7418 #define $ac_tr_hdr 1
7421 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7422 echo "configure:7423: checking for a52_free in -la52" >&5
7423 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7427 ac_save_LIBS="$LIBS"
7428 LIBS="-la52 -lm $LIBS"
7429 cat > conftest.$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7432 /* Override any gcc2 internal prototype to avoid an error. */
7433 /* We use char because int might match the return type of a gcc2
7434 builtin and then its argument prototype would still apply. */
7441 if { (eval echo configure:7442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7443 eval "ac_cv_lib_$ac_lib_var=yes"
7445 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7448 eval "ac_cv_lib_$ac_lib_var=no"
7451 LIBS="$ac_save_LIBS"
7454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7455 echo "$ac_t""yes" 1>&6
7457 BUILTINS="${BUILTINS} codec/a52"
7458 a52_LDFLAGS="${a52_LDFLAGS} ${test_LDFLAGS} -la52 -lm"
7459 a52_CFLAGS="${a52_CFLAGS} ${test_CFLAGS}"
7462 echo "$ac_t""no" 1>&6
7464 if test "x${enable_dvbpsi}" != "x"
7466 { echo "configure: error: Could not find a52 on your system: you may get it from http://liba52.sf.net" 1>&2; exit 1; }
7473 echo "$ac_t""no" 1>&6
7477 CPPFLAGS="${save_CPPFLAGS}"
7478 LDFLAGS="${save_LDFLAGS}"
7482 # Check whether --enable-cinepak or --disable-cinepak was given.
7483 if test "${enable_cinepak+set}" = set; then
7484 enableval="$enable_cinepak"
7488 if test "x${enable_cinepak}" != "xno"
7490 PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7493 # Check whether --enable-vorbis or --disable-vorbis was given.
7494 if test "${enable_vorbis+set}" = set; then
7495 enableval="$enable_vorbis"
7499 if test "x${enable_vorbis}" != "xno"
7501 for ac_hdr in ogg/ogg.h
7503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7505 echo "configure:7506: checking for $ac_hdr" >&5
7506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7507 echo $ac_n "(cached) $ac_c" 1>&6
7509 cat > conftest.$ac_ext <<EOF
7510 #line 7511 "configure"
7511 #include "confdefs.h"
7514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7515 { (eval echo configure:7516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7517 if test -z "$ac_err"; then
7519 eval "ac_cv_header_$ac_safe=yes"
7522 echo "configure: failed program was:" >&5
7523 cat conftest.$ac_ext >&5
7525 eval "ac_cv_header_$ac_safe=no"
7529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7530 echo "$ac_t""yes" 1>&6
7531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7532 cat >> confdefs.h <<EOF
7533 #define $ac_tr_hdr 1
7536 #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7537 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7540 echo "$ac_t""no" 1>&6
7546 # Check whether --enable-dv or --disable-dv was given.
7547 if test "${enable_dv+set}" = set; then
7548 enableval="$enable_dv"
7552 if test "x${enable_dv}" = "xyes"
7554 for ac_hdr in libdv/dv.h
7556 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7557 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7558 echo "configure:7559: checking for $ac_hdr" >&5
7559 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7560 echo $ac_n "(cached) $ac_c" 1>&6
7562 cat > conftest.$ac_ext <<EOF
7563 #line 7564 "configure"
7564 #include "confdefs.h"
7567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7568 { (eval echo configure:7569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7570 if test -z "$ac_err"; then
7572 eval "ac_cv_header_$ac_safe=yes"
7575 echo "configure: failed program was:" >&5
7576 cat conftest.$ac_ext >&5
7578 eval "ac_cv_header_$ac_safe=no"
7582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7583 echo "$ac_t""yes" 1>&6
7584 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7585 cat >> confdefs.h <<EOF
7586 #define $ac_tr_hdr 1
7589 BUILTINS="${BUILTINS} codec/dv/dv"
7590 dv_LDFLAGS="${dv_LDFLAGS} -ldv"
7593 echo "$ac_t""no" 1>&6
7600 # Check whether --with- or --without- was given.
7601 if test "${with_+set}" = set; then
7607 # Check whether --enable-x11 or --disable-x11 was given.
7608 if test "${enable_x11+set}" = set; then
7609 enableval="$enable_x11"
7613 if test "x${enable_x11}" != "xno" &&
7614 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7615 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7616 for ac_hdr in X11/Xlib.h
7618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7620 echo "configure:7621: checking for $ac_hdr" >&5
7621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7622 echo $ac_n "(cached) $ac_c" 1>&6
7624 cat > conftest.$ac_ext <<EOF
7625 #line 7626 "configure"
7626 #include "confdefs.h"
7629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7630 { (eval echo configure:7631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7632 if test -z "$ac_err"; then
7634 eval "ac_cv_header_$ac_safe=yes"
7637 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7640 eval "ac_cv_header_$ac_safe=no"
7644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7645 echo "$ac_t""yes" 1>&6
7646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7647 cat >> confdefs.h <<EOF
7648 #define $ac_tr_hdr 1
7651 PLUGINS="${PLUGINS} video_output/x11/x11"
7652 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7653 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7656 echo "$ac_t""no" 1>&6
7660 CPPFLAGS="${save_CPPFLAGS}"
7663 # Check whether --enable-xvideo or --disable-xvideo was given.
7664 if test "${enable_xvideo+set}" = set; then
7665 enableval="$enable_xvideo"
7669 if test "x${enable_xvideo}" != "xno" &&
7670 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7671 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7672 for ac_hdr in X11/extensions/Xv.h
7674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7676 echo "configure:7677: checking for $ac_hdr" >&5
7677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6
7680 cat > conftest.$ac_ext <<EOF
7681 #line 7682 "configure"
7682 #include "confdefs.h"
7685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7686 { (eval echo configure:7687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7688 if test -z "$ac_err"; then
7690 eval "ac_cv_header_$ac_safe=yes"
7693 echo "configure: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7696 eval "ac_cv_header_$ac_safe=no"
7700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7701 echo "$ac_t""yes" 1>&6
7702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7703 cat >> confdefs.h <<EOF
7704 #define $ac_tr_hdr 1
7707 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7708 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7709 echo "configure:7710: checking for XvPutImage in -lXv_pic" >&5
7710 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7712 echo $ac_n "(cached) $ac_c" 1>&6
7714 ac_save_LIBS="$LIBS"
7715 LIBS="-lXv_pic $LIBS"
7716 cat > conftest.$ac_ext <<EOF
7717 #line 7718 "configure"
7718 #include "confdefs.h"
7719 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7728 if { (eval echo configure:7729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7730 eval "ac_cv_lib_$ac_lib_var=yes"
7732 echo "configure: failed program was:" >&5
7733 cat conftest.$ac_ext >&5
7735 eval "ac_cv_lib_$ac_lib_var=no"
7738 LIBS="$ac_save_LIBS"
7741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7742 echo "$ac_t""yes" 1>&6
7743 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7744 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7745 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7746 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7748 echo "$ac_t""no" 1>&6
7749 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7750 echo "configure:7751: checking for XvPutImage in -lXv" >&5
7751 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7753 echo $ac_n "(cached) $ac_c" 1>&6
7755 ac_save_LIBS="$LIBS"
7757 cat > conftest.$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7760 /* Override any gcc2 internal prototype to avoid an error. */
7761 /* We use char because int might match the return type of a gcc2
7762 builtin and then its argument prototype would still apply. */
7769 if { (eval echo configure:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7771 eval "ac_cv_lib_$ac_lib_var=yes"
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7776 eval "ac_cv_lib_$ac_lib_var=no"
7779 LIBS="$ac_save_LIBS"
7782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7783 echo "$ac_t""yes" 1>&6
7784 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7785 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7786 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7787 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7789 echo "$ac_t""no" 1>&6
7790 # Otherwise... well, do nothing.
7798 CFLAGS="${save_CFLAGS}"
7800 CPPFLAGS="${save_CPPFLAGS}"
7802 echo "$ac_t""no" 1>&6
7808 # Check whether --enable-sdl or --disable-sdl was given.
7809 if test "${enable_sdl+set}" = set; then
7810 enableval="$enable_sdl"
7814 if test "x${enable_sdl}" != "xno"
7817 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7818 if test "${with_sdl_config_path+set}" = set; then
7819 withval="$with_sdl_config_path"
7820 if test "x${with_sdl_config_path}" != "xno"
7822 SDL_PATH="${with_sdl_config_path}:${PATH}"
7826 # Extract the first word of "sdl12-config", so it can be a program name with args.
7827 set dummy sdl12-config; ac_word=$2
7828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7829 echo "configure:7830: checking for $ac_word" >&5
7830 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7833 case "$SDL12_CONFIG" in
7835 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7838 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7842 ac_dummy="${SDL_PATH}"
7843 for ac_dir in $ac_dummy; do
7844 test -z "$ac_dir" && ac_dir=.
7845 if test -f $ac_dir/$ac_word; then
7846 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7851 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7855 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7856 if test -n "$SDL12_CONFIG"; then
7857 echo "$ac_t""$SDL12_CONFIG" 1>&6
7859 echo "$ac_t""no" 1>&6
7862 SDL_CONFIG="${SDL12_CONFIG}"
7863 SDL_HEADER="SDL12/SDL.h"
7864 if test "x${SDL_CONFIG}" = "xno"
7866 # Extract the first word of "sdl11-config", so it can be a program name with args.
7867 set dummy sdl11-config; ac_word=$2
7868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7869 echo "configure:7870: checking for $ac_word" >&5
7870 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7871 echo $ac_n "(cached) $ac_c" 1>&6
7873 case "$SDL11_CONFIG" in
7875 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7878 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7882 ac_dummy="${SDL_PATH}"
7883 for ac_dir in $ac_dummy; do
7884 test -z "$ac_dir" && ac_dir=.
7885 if test -f $ac_dir/$ac_word; then
7886 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7891 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7895 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7896 if test -n "$SDL11_CONFIG"; then
7897 echo "$ac_t""$SDL11_CONFIG" 1>&6
7899 echo "$ac_t""no" 1>&6
7902 SDL_CONFIG=${SDL11_CONFIG}
7903 SDL_HEADER="SDL11/SDL.h"
7905 if test "x${SDL_CONFIG}" = "xno"
7907 # Extract the first word of "sdl-config", so it can be a program name with args.
7908 set dummy sdl-config; ac_word=$2
7909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7910 echo "configure:7911: checking for $ac_word" >&5
7911 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7912 echo $ac_n "(cached) $ac_c" 1>&6
7914 case "$SDL_CONFIG" in
7916 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7919 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7923 ac_dummy="${SDL_PATH}"
7924 for ac_dir in $ac_dummy; do
7925 test -z "$ac_dir" && ac_dir=.
7926 if test -f $ac_dir/$ac_word; then
7927 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7932 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7936 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7937 if test -n "$SDL_CONFIG"; then
7938 echo "$ac_t""$SDL_CONFIG" 1>&6
7940 echo "$ac_t""no" 1>&6
7943 SDL_HEADER="SDL/SDL.h"
7945 if test "x${SDL_CONFIG}" != "xno"
7947 PLUGINS="${PLUGINS} video_output/sdl audio_output/sdl"
7948 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7949 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7950 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7951 for ac_hdr in ${SDL_HEADER}
7953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7955 echo "configure:7956: checking for $ac_hdr" >&5
7956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7957 echo $ac_n "(cached) $ac_c" 1>&6
7959 cat > conftest.$ac_ext <<EOF
7960 #line 7961 "configure"
7961 #include "confdefs.h"
7964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7965 { (eval echo configure:7966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7967 if test -z "$ac_err"; then
7969 eval "ac_cv_header_$ac_safe=yes"
7972 echo "configure: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7975 eval "ac_cv_header_$ac_safe=no"
7979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7980 echo "$ac_t""yes" 1>&6
7981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7982 cat >> confdefs.h <<EOF
7983 #define $ac_tr_hdr 1
7985 cat >> confdefs.h <<EOF
7986 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7990 echo "$ac_t""no" 1>&6
7991 { echo "configure: error: The development package for SDL is not installed.
7992 Please install it and try again. Alternatively you can also configure with
7993 --disable-sdl." 1>&2; exit 1; }
7998 CPPFLAGS="${save_CPPFLAGS}"
7999 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
8001 { echo "configure: error: The development package for SDL is not installed.
8002 Please install it and try again. Alternatively you can also configure with
8003 --disable-sdl." 1>&2; exit 1; }
8005 elif test "x${enable_sdl}" = "xyes"
8007 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
8008 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
8013 # Check whether --enable-directx or --disable-directx was given.
8014 if test "${enable_directx+set}" = set; then
8015 enableval="$enable_directx"
8019 if test "x${enable_directx}" != "xno"
8021 if test "x${SYS}" = "xmingw32"
8023 # Check whether --with-directx or --without-directx was given.
8024 if test "${with_directx+set}" = set; then
8025 withval="$with_directx"
8029 if test "x${with_directx}" = "x"
8031 for ac_hdr in ddraw.h
8033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8035 echo "configure:8036: checking for $ac_hdr" >&5
8036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8037 echo $ac_n "(cached) $ac_c" 1>&6
8039 cat > conftest.$ac_ext <<EOF
8040 #line 8041 "configure"
8041 #include "confdefs.h"
8044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8045 { (eval echo configure:8046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8047 if test -z "$ac_err"; then
8049 eval "ac_cv_header_$ac_safe=yes"
8052 echo "configure: failed program was:" >&5
8053 cat conftest.$ac_ext >&5
8055 eval "ac_cv_header_$ac_safe=no"
8059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8062 cat >> confdefs.h <<EOF
8063 #define $ac_tr_hdr 1
8065 PLUGINS="${PLUGINS} video_output/directx/directx"
8066 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8068 echo "$ac_t""no" 1>&6
8073 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
8074 echo "configure:8075: checking for directX headers in ${with_directx}" >&5
8075 if test -f ${with_directx}/ddraw.h
8077 PLUGINS="${PLUGINS} video_output/directx/directx"
8078 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8079 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
8080 echo "$ac_t""yes" 1>&6
8082 echo "$ac_t""no" 1>&6
8083 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
8089 # Check whether --enable-fb or --disable-fb was given.
8090 if test "${enable_fb+set}" = set; then
8091 enableval="$enable_fb"
8095 if test "x${enable_fb}" != "xno"
8097 for ac_hdr in linux/fb.h
8099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8101 echo "configure:8102: checking for $ac_hdr" >&5
8102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8105 cat > conftest.$ac_ext <<EOF
8106 #line 8107 "configure"
8107 #include "confdefs.h"
8110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8111 { (eval echo configure:8112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8113 if test -z "$ac_err"; then
8115 eval "ac_cv_header_$ac_safe=yes"
8118 echo "configure: failed program was:" >&5
8119 cat conftest.$ac_ext >&5
8121 eval "ac_cv_header_$ac_safe=no"
8125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8126 echo "$ac_t""yes" 1>&6
8127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8128 cat >> confdefs.h <<EOF
8129 #define $ac_tr_hdr 1
8132 PLUGINS="${PLUGINS} video_output/fb"
8135 echo "$ac_t""no" 1>&6
8141 # Check whether --enable-mga or --disable-mga was given.
8142 if test "${enable_mga+set}" = set; then
8143 enableval="$enable_mga"
8144 if test "x${enable_mga}" = "xyes"
8146 PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
8151 # Check whether --enable-svgalib or --disable-svgalib was given.
8152 if test "${enable_svgalib+set}" = set; then
8153 enableval="$enable_svgalib"
8157 if test "x${enable_svgalib}" = "xyes"
8159 PLUGINS="${PLUGINS} video_output/svgalib"
8160 svgalib_LDFLAGS="${svgalib_LDFLAGS} -lvgagl -lvga"
8163 # Check whether --enable-ggi or --disable-ggi was given.
8164 if test "${enable_ggi+set}" = set; then
8165 enableval="$enable_ggi"
8169 if test "x${enable_ggi}" = "xyes"
8171 PLUGINS="${PLUGINS} video_output/ggi"
8172 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
8173 # Check whether --with-ggi or --without-ggi was given.
8174 if test "${with_ggi+set}" = set; then
8176 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
8178 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
8179 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
8185 # Check whether --enable-glide or --disable-glide was given.
8186 if test "${enable_glide+set}" = set; then
8187 enableval="$enable_glide"
8191 if test "x${enable_glide}" = "xyes"
8193 PLUGINS="${PLUGINS} video_output/glide"
8194 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
8195 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
8196 # Check whether --with-glide or --without-glide was given.
8197 if test "${with_glide+set}" = set; then
8198 withval="$with_glide"
8199 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
8201 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
8202 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
8208 # Check whether --enable-aa or --disable-aa was given.
8209 if test "${enable_aa+set}" = set; then
8210 enableval="$enable_aa"
8214 if test "x${enable_aa}" = "xyes"
8216 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
8217 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
8218 echo "configure:8219: checking for aalib.h" >&5
8219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8220 echo $ac_n "(cached) $ac_c" 1>&6
8222 cat > conftest.$ac_ext <<EOF
8223 #line 8224 "configure"
8224 #include "confdefs.h"
8227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8228 { (eval echo configure:8229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8230 if test -z "$ac_err"; then
8232 eval "ac_cv_header_$ac_safe=yes"
8235 echo "configure: failed program was:" >&5
8236 cat conftest.$ac_ext >&5
8238 eval "ac_cv_header_$ac_safe=no"
8242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8243 echo "$ac_t""yes" 1>&6
8246 echo "$ac_t""no" 1>&6
8250 if test "x${have_aa}" = "xtrue"
8252 PLUGINS="${PLUGINS} video_output/aa"
8253 aa_LDFLAGS="${aa_LDFLAGS} -laa"
8258 # Check whether --with- or --without- was given.
8259 if test "${with_+set}" = set; then
8265 # Check whether --enable-oss or --disable-oss was given.
8266 if test "${enable_oss+set}" = set; then
8267 enableval="$enable_oss"
8272 if test "x${enable_oss}" != "xno" &&
8273 (test "x${SYS}" != "xmingw32" || test "x${enable_oss}" = "xyes")
8275 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
8277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8279 echo "configure:8280: checking for $ac_hdr" >&5
8280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8281 echo $ac_n "(cached) $ac_c" 1>&6
8283 cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure"
8285 #include "confdefs.h"
8288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8289 { (eval echo configure:8290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8291 if test -z "$ac_err"; then
8293 eval "ac_cv_header_$ac_safe=yes"
8296 echo "configure: failed program was:" >&5
8297 cat conftest.$ac_ext >&5
8299 eval "ac_cv_header_$ac_safe=no"
8303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8304 echo "$ac_t""yes" 1>&6
8305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8306 cat >> confdefs.h <<EOF
8307 #define $ac_tr_hdr 1
8310 PLUGINS="${PLUGINS} audio_output/oss"
8311 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
8312 echo "configure:8313: checking for main in -lossaudio" >&5
8313 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
8314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
8317 ac_save_LIBS="$LIBS"
8318 LIBS="-lossaudio $LIBS"
8319 cat > conftest.$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8327 if { (eval echo configure:8328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8329 eval "ac_cv_lib_$ac_lib_var=yes"
8331 echo "configure: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8334 eval "ac_cv_lib_$ac_lib_var=no"
8337 LIBS="$ac_save_LIBS"
8340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8341 echo "$ac_t""yes" 1>&6
8342 oss_LDFLAGS="${oss_LDFLAGS} -lossaudio"
8344 echo "$ac_t""no" 1>&6
8349 echo "$ac_t""no" 1>&6
8355 # Check whether --enable-esd or --disable-esd was given.
8356 if test "${enable_esd+set}" = set; then
8357 enableval="$enable_esd"
8358 if test "x${enable_esd}" = "xyes"
8360 # Extract the first word of "esd-config", so it can be a program name with args.
8361 set dummy esd-config; ac_word=$2
8362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8363 echo "configure:8364: checking for $ac_word" >&5
8364 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8367 case "$ESD_CONFIG" in
8369 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
8372 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
8375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8377 for ac_dir in $ac_dummy; do
8378 test -z "$ac_dir" && ac_dir=.
8379 if test -f $ac_dir/$ac_word; then
8380 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
8385 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
8389 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
8390 if test -n "$ESD_CONFIG"; then
8391 echo "$ac_t""$ESD_CONFIG" 1>&6
8393 echo "$ac_t""no" 1>&6
8396 if test "x${ESD_CONFIG}" != "xno"
8398 PLUGINS="${PLUGINS} audio_output/esd"
8399 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
8400 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
8406 # Check whether --enable-arts or --disable-arts was given.
8407 if test "${enable_arts+set}" = set; then
8408 enableval="$enable_arts"
8409 if test "x${enable_arts}" = "xyes"
8411 # Extract the first word of "artsc-config", so it can be a program name with args.
8412 set dummy artsc-config; ac_word=$2
8413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8414 echo "configure:8415: checking for $ac_word" >&5
8415 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8418 case "$ARTS_CONFIG" in
8420 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8423 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8428 for ac_dir in $ac_dummy; do
8429 test -z "$ac_dir" && ac_dir=.
8430 if test -f $ac_dir/$ac_word; then
8431 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8436 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8440 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8441 if test -n "$ARTS_CONFIG"; then
8442 echo "$ac_t""$ARTS_CONFIG" 1>&6
8444 echo "$ac_t""no" 1>&6
8447 if test "x${ARTS_CONFIG}" != "xno"
8449 PLUGINS="${PLUGINS} audio_output/arts"
8450 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8451 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8457 # Check whether --enable-alsa or --disable-alsa was given.
8458 if test "${enable_alsa+set}" = set; then
8459 enableval="$enable_alsa"
8460 if test "x${enable_alsa}" = "xyes"
8462 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8463 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8464 echo "configure:8465: checking for alsa/asoundlib.h" >&5
8465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8468 cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471 #include <alsa/asoundlib.h>
8473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8474 { (eval echo configure:8475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8476 if test -z "$ac_err"; then
8478 eval "ac_cv_header_$ac_safe=yes"
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8484 eval "ac_cv_header_$ac_safe=no"
8488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8489 echo "$ac_t""yes" 1>&6
8490 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8491 echo "configure:8492: checking for main in -lasound" >&5
8492 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8494 echo $ac_n "(cached) $ac_c" 1>&6
8496 ac_save_LIBS="$LIBS"
8497 LIBS="-lasound $LIBS"
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8506 if { (eval echo configure:8507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8508 eval "ac_cv_lib_$ac_lib_var=yes"
8510 echo "configure: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8513 eval "ac_cv_lib_$ac_lib_var=no"
8516 LIBS="$ac_save_LIBS"
8519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8520 echo "$ac_t""yes" 1>&6
8523 echo "$ac_t""no" 1>&6
8528 echo "$ac_t""no" 1>&6
8532 if test "x${have_alsa}" = "xtrue"
8534 PLUGINS="${PLUGINS} audio_output/alsa"
8535 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8541 # Check whether --enable-waveout or --disable-waveout was given.
8542 if test "${enable_waveout+set}" = set; then
8543 enableval="$enable_waveout"
8547 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8549 PLUGINS="${PLUGINS} audio_output/waveout"
8550 waveout_LDFLAGS="-lwinmm"
8554 # Check whether --with- or --without- was given.
8555 if test "${with_+set}" = set; then
8561 if test "x${SYS}" = "xbeos"
8563 PLUGINS="${PLUGINS} gui/beos/beos"
8566 # Check whether --enable-gtk or --disable-gtk was given.
8567 if test "${enable_gtk+set}" = set; then
8568 enableval="$enable_gtk"
8572 if test "x${enable_gtk}" != "xno"
8575 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8576 if test "${with_gtk_config_path+set}" = set; then
8577 withval="$with_gtk_config_path"
8578 if test "x${with_gtk_config_path}" != "xno"
8580 GTK_PATH="${with_gtk_config_path}:${PATH}"
8584 # look for gtk-config
8585 # Extract the first word of "gtk12-config", so it can be a program name with args.
8586 set dummy gtk12-config; ac_word=$2
8587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8588 echo "configure:8589: checking for $ac_word" >&5
8589 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8592 case "$GTK12_CONFIG" in
8594 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8597 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8601 ac_dummy="${GTK_PATH}"
8602 for ac_dir in $ac_dummy; do
8603 test -z "$ac_dir" && ac_dir=.
8604 if test -f $ac_dir/$ac_word; then
8605 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8610 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8614 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8615 if test -n "$GTK12_CONFIG"; then
8616 echo "$ac_t""$GTK12_CONFIG" 1>&6
8618 echo "$ac_t""no" 1>&6
8621 GTK_CONFIG=${GTK12_CONFIG}
8622 if test "x${GTK_CONFIG}" = "xno"
8624 # Extract the first word of "gtk-config", so it can be a program name with args.
8625 set dummy gtk-config; ac_word=$2
8626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8627 echo "configure:8628: checking for $ac_word" >&5
8628 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8631 case "$GTK_CONFIG" in
8633 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8636 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8640 ac_dummy="${GTK_PATH}"
8641 for ac_dir in $ac_dummy; do
8642 test -z "$ac_dir" && ac_dir=.
8643 if test -f $ac_dir/$ac_word; then
8644 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8649 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8653 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8654 if test -n "$GTK_CONFIG"; then
8655 echo "$ac_t""$GTK_CONFIG" 1>&6
8657 echo "$ac_t""no" 1>&6
8661 if test "x${GTK_CONFIG}" != "xno"
8663 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8665 { echo "configure: 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." 1>&2; exit 1; }
8667 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk gthread`"
8668 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk gthread | sed 's,-rdynamic,,'`"
8669 # now look for the gtk.h header
8670 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8671 ac_cv_gtk_headers=yes
8672 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8676 echo "configure:8677: checking for $ac_hdr" >&5
8677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8678 echo $ac_n "(cached) $ac_c" 1>&6
8680 cat > conftest.$ac_ext <<EOF
8681 #line 8682 "configure"
8682 #include "confdefs.h"
8685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8686 { (eval echo configure:8687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8688 if test -z "$ac_err"; then
8690 eval "ac_cv_header_$ac_safe=yes"
8693 echo "configure: failed program was:" >&5
8694 cat conftest.$ac_ext >&5
8696 eval "ac_cv_header_$ac_safe=no"
8700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8701 echo "$ac_t""yes" 1>&6
8702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8703 cat >> confdefs.h <<EOF
8704 #define $ac_tr_hdr 1
8708 echo "$ac_t""no" 1>&6
8709 ac_cv_gtk_headers=no
8710 echo "Cannot find gtk development headers."
8715 if test "x${ac_cv_gtk_headers}" = "xyes"
8717 PLUGINS="${PLUGINS} gui/gtk/gtk"
8719 ALIASES="${ALIASES} gvlc"
8721 CPPFLAGS="${save_CPPFLAGS}"
8725 # Check whether --enable-familiar or --disable-familiar was given.
8726 if test "${enable_familiar+set}" = set; then
8727 enableval="$enable_familiar"
8731 if test "x${enable_familiar}" = "xyes"
8734 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8735 if test "${with_gtk_config_path+set}" = set; then
8736 withval="$with_gtk_config_path"
8737 if test "x${with_gtk_config_path}" != "xno"
8739 GTK_PATH="${with_gtk_config_path}:${PATH}"
8743 # look for gtk-config
8744 # Extract the first word of "gtk12-config", so it can be a program name with args.
8745 set dummy gtk12-config; ac_word=$2
8746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8747 echo "configure:8748: checking for $ac_word" >&5
8748 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8751 case "$GTK12_CONFIG" in
8753 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8756 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8760 ac_dummy="${GTK_PATH}"
8761 for ac_dir in $ac_dummy; do
8762 test -z "$ac_dir" && ac_dir=.
8763 if test -f $ac_dir/$ac_word; then
8764 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8769 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8773 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8774 if test -n "$GTK12_CONFIG"; then
8775 echo "$ac_t""$GTK12_CONFIG" 1>&6
8777 echo "$ac_t""no" 1>&6
8780 GTK_CONFIG=${GTK12_CONFIG}
8781 if test "x${GTK_CONFIG}" = "xno"
8783 # Extract the first word of "gtk-config", so it can be a program name with args.
8784 set dummy gtk-config; ac_word=$2
8785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8786 echo "configure:8787: checking for $ac_word" >&5
8787 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8788 echo $ac_n "(cached) $ac_c" 1>&6
8790 case "$GTK_CONFIG" in
8792 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8795 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8799 ac_dummy="${GTK_PATH}"
8800 for ac_dir in $ac_dummy; do
8801 test -z "$ac_dir" && ac_dir=.
8802 if test -f $ac_dir/$ac_word; then
8803 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8808 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8812 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8813 if test -n "$GTK_CONFIG"; then
8814 echo "$ac_t""$GTK_CONFIG" 1>&6
8816 echo "$ac_t""no" 1>&6
8820 if test "x${GTK_CONFIG}" != "xno"
8822 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8824 { echo "configure: 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." 1>&2; exit 1; }
8826 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk gthread`"
8827 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk gthread | sed 's,-rdynamic,,'`"
8828 # now look for the gtk.h header
8829 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8830 ac_cv_gtk_headers=yes
8831 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8835 echo "configure:8836: checking for $ac_hdr" >&5
8836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8837 echo $ac_n "(cached) $ac_c" 1>&6
8839 cat > conftest.$ac_ext <<EOF
8840 #line 8841 "configure"
8841 #include "confdefs.h"
8844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8845 { (eval echo configure:8846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8847 if test -z "$ac_err"; then
8849 eval "ac_cv_header_$ac_safe=yes"
8852 echo "configure: failed program was:" >&5
8853 cat conftest.$ac_ext >&5
8855 eval "ac_cv_header_$ac_safe=no"
8859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8860 echo "$ac_t""yes" 1>&6
8861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8862 cat >> confdefs.h <<EOF
8863 #define $ac_tr_hdr 1
8867 echo "$ac_t""no" 1>&6
8868 ac_cv_gtk_headers=no
8869 echo "Cannot find gtk development headers."
8874 if test "x${ac_cv_gtk_headers}" = "xyes"
8876 PLUGINS="${PLUGINS} gui/familiar/familiar"
8879 CPPFLAGS="${save_CPPFLAGS}"
8883 # Check whether --enable-gnome or --disable-gnome was given.
8884 if test "${enable_gnome+set}" = set; then
8885 enableval="$enable_gnome"
8886 if test "x${enable_gnome}" = "xyes"; then
8887 # look for gnome-config
8888 # Extract the first word of "gnome-config", so it can be a program name with args.
8889 set dummy gnome-config; ac_word=$2
8890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8891 echo "configure:8892: checking for $ac_word" >&5
8892 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8893 echo $ac_n "(cached) $ac_c" 1>&6
8895 case "$GNOME_CONFIG" in
8897 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8900 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8905 for ac_dir in $ac_dummy; do
8906 test -z "$ac_dir" && ac_dir=.
8907 if test -f $ac_dir/$ac_word; then
8908 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8913 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8917 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8918 if test -n "$GNOME_CONFIG"; then
8919 echo "$ac_t""$GNOME_CONFIG" 1>&6
8921 echo "$ac_t""no" 1>&6
8924 if test -x ${GNOME_CONFIG}
8926 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8927 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8929 # now look for the gnome.h header
8930 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8931 for ac_hdr in gnome.h
8933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8935 echo "configure:8936: checking for $ac_hdr" >&5
8936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8945 { (eval echo configure:8946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8947 if test -z "$ac_err"; then
8949 eval "ac_cv_header_$ac_safe=yes"
8952 echo "configure: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8955 eval "ac_cv_header_$ac_safe=no"
8959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8960 echo "$ac_t""yes" 1>&6
8961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8962 cat >> confdefs.h <<EOF
8963 #define $ac_tr_hdr 1
8966 PLUGINS="${PLUGINS} gui/gtk/gnome"
8968 ALIASES="${ALIASES} gnome-vlc"
8971 echo "$ac_t""no" 1>&6
8972 { echo "configure: error: Can't find gnome headers. Please install the gnome
8973 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8978 CPPFLAGS="${save_CPPFLAGS}"
8983 # Check whether --enable-qt or --disable-qt was given.
8984 if test "${enable_qt+set}" = set; then
8985 enableval="$enable_qt"
8986 if test "x${enable_qt}" = "xyes"; then
8987 PLUGINS="${PLUGINS} gui/qt/qt"
8988 ALIASES="${ALIASES} qvlc"
8989 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8990 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8991 if test -x ${QTDIR}/bin/moc
8993 MOC=${QTDIR}/bin/moc
9001 # Check whether --enable-kde or --disable-kde was given.
9002 if test "${enable_kde+set}" = set; then
9003 enableval="$enable_kde"
9004 if test "x${enable_kde}" = "xyes"; then
9005 PLUGINS="${PLUGINS} gui/kde/kde"
9006 ALIASES="${ALIASES} kvlc"
9007 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
9008 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
9009 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
9010 if test -x ${QTDIR}/bin/moc
9012 MOC=${QTDIR}/bin/moc
9020 # Check whether --enable-qte or --disable-qte was given.
9021 if test "${enable_qte+set}" = set; then
9022 enableval="$enable_qte"
9023 if test "x${enable_qte}" = "xyes"; then
9024 PLUGINS="${PLUGINS} gui/qte/qte"
9025 qte_LDFLAGS="${qte_LDFLAGS} -lqte -L${QTEDIR}/lib"
9026 qte_CFLAGS="${qte_CFLAGS} -I/usr/include/qte -I${QTEDIR}/include"
9027 if test -x ${QTEDIR}/bin/moc
9029 MOC=${QTEDIR}/bin/moc
9038 # Check whether --enable-macosx or --disable-macosx was given.
9039 if test "${enable_macosx+set}" = set; then
9040 enableval="$enable_macosx"
9041 if test "x${enable_macosx}" = "xyes"
9043 BUILTINS="${BUILTINS} gui/macosx/macosx"
9044 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9047 for ac_hdr in Cocoa/Cocoa.h
9049 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9050 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9051 echo "configure:9052: checking for $ac_hdr" >&5
9052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9055 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure"
9057 #include "confdefs.h"
9060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9061 { (eval echo configure:9062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9063 if test -z "$ac_err"; then
9065 eval "ac_cv_header_$ac_safe=yes"
9068 echo "configure: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9071 eval "ac_cv_header_$ac_safe=no"
9075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9076 echo "$ac_t""yes" 1>&6
9077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9078 cat >> confdefs.h <<EOF
9079 #define $ac_tr_hdr 1
9081 BUILTINS="${BUILTINS} gui/macosx/macosx"
9082 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9085 echo "$ac_t""no" 1>&6
9092 # Check whether --enable-qnx or --disable-qnx was given.
9093 if test "${enable_qnx+set}" = set; then
9094 enableval="$enable_qnx"
9098 if test "x${enable_qnx}" != "xno"
9102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9104 echo "configure:9105: checking for $ac_hdr" >&5
9105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9106 echo $ac_n "(cached) $ac_c" 1>&6
9108 cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure"
9110 #include "confdefs.h"
9113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9114 { (eval echo configure:9115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9116 if test -z "$ac_err"; then
9118 eval "ac_cv_header_$ac_safe=yes"
9121 echo "configure: failed program was:" >&5
9122 cat conftest.$ac_ext >&5
9124 eval "ac_cv_header_$ac_safe=no"
9128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9129 echo "$ac_t""yes" 1>&6
9130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9131 cat >> confdefs.h <<EOF
9132 #define $ac_tr_hdr 1
9135 PLUGINS="${PLUGINS} gui/qnx/qnx"
9136 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
9139 echo "$ac_t""no" 1>&6
9145 # Check whether --enable-intfwin or --disable-intfwin was given.
9146 if test "${enable_intfwin+set}" = set; then
9147 enableval="$enable_intfwin"
9148 if test "x${enable_intfwin}" != "xno"
9150 # Check whether --with-bcbuilder or --without-bcbuilder was given.
9151 if test "${with_bcbuilder+set}" = set; then
9152 withval="$with_bcbuilder"
9156 if test "x${with_bcbuilder}" != "x"
9158 BCBUILDER="${with_bcbuilder}"
9160 PLUGINS="${PLUGINS} gui/win32/win32"
9165 # Check whether --enable-ncurses or --disable-ncurses was given.
9166 if test "${enable_ncurses+set}" = set; then
9167 enableval="$enable_ncurses"
9168 if test "x${enable_ncurses}" = "xyes"; then
9169 PLUGINS="${PLUGINS} gui/ncurses/ncurses"
9170 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
9175 # Check whether --enable-xosd or --disable-xosd was given.
9176 if test "${enable_xosd+set}" = set; then
9177 enableval="$enable_xosd"
9181 if test "x${enable_xosd}" = "xyes"
9183 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
9184 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
9185 echo "configure:9186: checking for xosd.h" >&5
9186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9187 echo $ac_n "(cached) $ac_c" 1>&6
9189 cat > conftest.$ac_ext <<EOF
9190 #line 9191 "configure"
9191 #include "confdefs.h"
9194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9195 { (eval echo configure:9196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9197 if test -z "$ac_err"; then
9199 eval "ac_cv_header_$ac_safe=yes"
9202 echo "configure: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9205 eval "ac_cv_header_$ac_safe=no"
9209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9210 echo "$ac_t""yes" 1>&6
9213 echo "$ac_t""no" 1>&6
9217 cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9222 void foo() { xosd_init("foo","bar",12,XOSD_top,2,12,42); }
9225 if { (eval echo configure:9226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9231 cat >> confdefs.h <<\EOF
9232 #define HAVE_OLD_XOSD_H 1
9237 if test "x${have_xosd}" = "xtrue"
9239 PLUGINS="${PLUGINS} visualization/xosd/xosd"
9240 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
9244 # Check whether --enable-lirc or --disable-lirc was given.
9245 if test "${enable_lirc+set}" = set; then
9246 enableval="$enable_lirc"
9250 if test "x${enable_lirc}" = "xyes"
9252 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
9253 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
9254 echo "configure:9255: checking for lirc/lirc_client.h" >&5
9255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9256 echo $ac_n "(cached) $ac_c" 1>&6
9258 cat > conftest.$ac_ext <<EOF
9259 #line 9260 "configure"
9260 #include "confdefs.h"
9261 #include <lirc/lirc_client.h>
9263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9264 { (eval echo configure:9265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9266 if test -z "$ac_err"; then
9268 eval "ac_cv_header_$ac_safe=yes"
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9274 eval "ac_cv_header_$ac_safe=no"
9278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9279 echo "$ac_t""yes" 1>&6
9280 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
9281 echo "configure:9282: checking for lirc_init in -llirc_client" >&5
9282 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
9283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9286 ac_save_LIBS="$LIBS"
9287 LIBS="-llirc_client $LIBS"
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9291 /* Override any gcc2 internal prototype to avoid an error. */
9292 /* We use char because int might match the return type of a gcc2
9293 builtin and then its argument prototype would still apply. */
9300 if { (eval echo configure:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9302 eval "ac_cv_lib_$ac_lib_var=yes"
9304 echo "configure: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9307 eval "ac_cv_lib_$ac_lib_var=no"
9310 LIBS="$ac_save_LIBS"
9313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9314 echo "$ac_t""yes" 1>&6
9317 echo "$ac_t""no" 1>&6
9322 echo "$ac_t""no" 1>&6
9326 if test "x${have_lirc}" = "xtrue"
9328 PLUGINS="${PLUGINS} control/lirc/lirc"
9329 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
9333 # Check whether --with- or --without- was given.
9334 if test "${with_+set}" = set; then
9340 # Check whether --with-words or --without-words was given.
9341 if test "${with_words+set}" = set; then
9342 withval="$with_words"
9346 case "x${with_words}" in
9348 ac_cv_c_bigendian=yes
9351 ac_cv_c_bigendian=no
9354 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
9355 echo "configure:9356: checking whether the byte order is big-endian" >&5
9356 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9357 echo $ac_n "(cached) $ac_c" 1>&6
9359 ac_cv_c_bigendian="unknown"
9360 cat >conftest.c <<EOF
9361 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
9362 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
9363 void _a(void) { char*s = (char*)am; s = (char *)ai; }
9364 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
9365 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
9366 void _e(void) { char*s = (char*)em; s = (char*)ei; }
9367 int main(void) { _a(); _e(); return 0; }
9370 if test -f conftest.c
9372 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
9373 && test -f conftest.o
9375 if test "`strings conftest.o | grep BIGenDianSyS`"
9377 ac_cv_c_bigendian="yes"
9379 if test "`strings conftest.o | grep LiTTleEnDian`"
9381 ac_cv_c_bigendian="no"
9388 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9389 if test "x${ac_cv_c_bigendian}" = "xunknown"
9391 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
9395 if test "${ac_cv_c_bigendian}" = "yes"
9397 cat >> confdefs.h <<\EOF
9398 #define WORDS_BIGENDIAN 1
9406 # Check whether --enable-gprof or --disable-gprof was given.
9407 if test "${enable_gprof+set}" = set; then
9408 enableval="$enable_gprof"
9409 if test "x${enable_gprof}" = "xyes"
9419 # Check whether --enable-cprof or --disable-cprof was given.
9420 if test "${enable_cprof+set}" = set; then
9421 enableval="$enable_cprof"
9422 if test "x${enable_cprof}" = "xyes"
9424 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
9432 # Check whether --enable-pth or --disable-pth was given.
9433 if test "${enable_pth+set}" = set; then
9434 enableval="$enable_pth"
9435 if test "x${enable_pth}" = "xyes"; then
9436 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
9437 echo "configure:9438: checking for pth_init in -lpth" >&5
9438 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
9439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9440 echo $ac_n "(cached) $ac_c" 1>&6
9442 ac_save_LIBS="$LIBS"
9444 cat > conftest.$ac_ext <<EOF
9445 #line 9446 "configure"
9446 #include "confdefs.h"
9447 /* Override any gcc2 internal prototype to avoid an error. */
9448 /* We use char because int might match the return type of a gcc2
9449 builtin and then its argument prototype would still apply. */
9456 if { (eval echo configure:9457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9458 eval "ac_cv_lib_$ac_lib_var=yes"
9460 echo "configure: failed program was:" >&5
9461 cat conftest.$ac_ext >&5
9463 eval "ac_cv_lib_$ac_lib_var=no"
9466 LIBS="$ac_save_LIBS"
9469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9470 echo "$ac_t""yes" 1>&6
9471 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9472 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9473 cat >> confdefs.h <<EOF
9474 #define $ac_tr_lib 1
9480 echo "$ac_t""no" 1>&6
9483 cat > conftest.$ac_ext <<EOF
9484 #line 9485 "configure"
9485 #include "confdefs.h"
9488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9489 egrep "pth_init" >/dev/null 2>&1; then
9492 cat >> confdefs.h <<\EOF
9493 #define PTH_INIT_IN_PTH_H 1
9505 # Check whether --enable-st or --disable-st was given.
9506 if test "${enable_st+set}" = set; then
9507 enableval="$enable_st"
9508 if test "x${enable_st}" = "xyes"; then
9509 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9510 echo "configure:9511: checking for st_init in -lst" >&5
9511 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9513 echo $ac_n "(cached) $ac_c" 1>&6
9515 ac_save_LIBS="$LIBS"
9517 cat > conftest.$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9520 /* Override any gcc2 internal prototype to avoid an error. */
9521 /* We use char because int might match the return type of a gcc2
9522 builtin and then its argument prototype would still apply. */
9529 if { (eval echo configure:9530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9531 eval "ac_cv_lib_$ac_lib_var=yes"
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9536 eval "ac_cv_lib_$ac_lib_var=no"
9539 LIBS="$ac_save_LIBS"
9542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9543 echo "$ac_t""yes" 1>&6
9544 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9545 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9546 cat >> confdefs.h <<EOF
9547 #define $ac_tr_lib 1
9553 echo "$ac_t""no" 1>&6
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9562 egrep "st_init" >/dev/null 2>&1; then
9565 cat >> confdefs.h <<\EOF
9566 #define ST_INIT_IN_ST_H 1
9578 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9579 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9582 # Check whether --enable-mozilla or --disable-mozilla was given.
9583 if test "${enable_mozilla+set}" = set; then
9584 enableval="$enable_mozilla"
9588 if test "x${enable_mozilla}" = "xyes"
9590 # Extract the first word of "mozilla-config", so it can be a program name with args.
9591 set dummy mozilla-config; ac_word=$2
9592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9593 echo "configure:9594: checking for $ac_word" >&5
9594 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9597 case "$MOZILLA_CONFIG" in
9599 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9602 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9607 for ac_dir in $ac_dummy; do
9608 test -z "$ac_dir" && ac_dir=.
9609 if test -f $ac_dir/$ac_word; then
9610 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9615 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9619 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9620 if test -n "$MOZILLA_CONFIG"; then
9621 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9623 echo "$ac_t""no" 1>&6
9626 if test "x${MOZILLA_CONFIG}" != "xno"
9628 if test "x${SYS}" != "xmingw32"; then
9629 LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9630 echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9631 echo "configure:9632: checking for XtStrings in -lXt" >&5
9632 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9636 ac_save_LIBS="$LIBS"
9638 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9641 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9650 if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9652 eval "ac_cv_lib_$ac_lib_var=yes"
9654 echo "configure: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9657 eval "ac_cv_lib_$ac_lib_var=no"
9660 LIBS="$ac_save_LIBS"
9663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9664 echo "$ac_t""yes" 1>&6
9666 mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9669 echo "$ac_t""no" 1>&6
9672 LDFLAGS="${save_LDFLAGS}"
9675 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9676 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9680 if test "x${NEED_GTK_MAIN}" != "xno"
9682 PLUGINS="${PLUGINS} misc/gtk_main"
9683 gtk_main_CFLAGS="${gtk_main_CFLAGS} ${gtk_CFLAGS} ${familiar_CFLAGS} ${gnome_CFLAGS}"
9684 gtk_main_LDFLAGS="${gtk_main_LDFLAGS} ${gtk_LDFLAGS} ${familiar_LDFLAGS} ${gnome_LDFLAGS}"
9687 # Check whether --enable-plugins or --disable-plugins was given.
9688 if test "${enable_plugins+set}" = set; then
9689 enableval="$enable_plugins"
9690 if test "x${enable_plugins}" = "xno"
9692 BUILTINS="${BUILTINS} ${PLUGINS}"
9698 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9700 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9702 BUILTINS="${BUILTINS} ${PLUGINS}"
9706 cat >> confdefs.h <<EOF
9707 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9710 cat >> confdefs.h <<EOF
9711 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9714 cat >> confdefs.h <<EOF
9715 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9719 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9720 cat >> confdefs.h <<EOF
9721 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9724 cat >> confdefs.h <<EOF
9725 #define MODULE_SYMBOL ${VLC_SYMBOL}
9729 DATA_PATH="${ac_tool_prefix}/share/videolan"
9731 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9734 CPPFLAGS="${save_CPPFLAGS}"
9735 CFLAGS="${save_CFLAGS}"
9736 LDFLAGS="${save_LDFLAGS}"
9738 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9739 for i in `echo ${BUILTINS} | sed -e 's#[^ ]*/##g'` ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9859 cat > confcache <<\EOF
9860 # This file is a shell script that caches the results of configure
9861 # tests run on this system so they can be shared between configure
9862 # scripts and configure runs. It is not useful on other systems.
9863 # If it contains results you don't want to keep, you may remove or edit it.
9865 # By default, configure uses ./config.cache as the cache file,
9866 # creating it if it does not exist already. You can give configure
9867 # the --cache-file=FILE option to use a different cache file; that is
9868 # what configure does when it calls configure scripts in
9869 # subdirectories, so they share the cache.
9870 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9871 # config.status only pays attention to the cache file if you give it the
9872 # --recheck option to rerun configure.
9875 # The following way of writing the cache mishandles newlines in values,
9876 # but we know of no workaround that is simple, portable, and efficient.
9877 # So, don't put newlines in cache variables' values.
9878 # Ultrix sh set writes to stderr and can't be redirected directly,
9879 # and sets the high bit in the cache file unless we assign to the vars.
9881 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9883 # `set' does not quote correctly, so add quotes (double-quote substitution
9884 # turns \\\\ into \\, and sed turns \\ into \).
9886 -e "s/'/'\\\\''/g" \
9887 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9890 # `set' quotes correctly as required by POSIX, so do not add quotes.
9891 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9894 if cmp -s $cache_file confcache; then
9897 if test -w $cache_file; then
9898 echo "updating cache $cache_file"
9899 cat confcache > $cache_file
9901 echo "not updating unwritable cache $cache_file"
9906 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9909 # Let make expand exec_prefix.
9910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9912 # Any assignment to VPATH causes Sun make to only execute
9913 # the first set of double-colon rules, so remove it if not needed.
9914 # If there is a colon in the path, we need to keep it.
9915 if test "x$srcdir" = x.; then
9916 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9919 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9921 DEFS=-DHAVE_CONFIG_H
9923 # Without the "./", some shells look in PATH for config.status.
9924 : ${CONFIG_STATUS=./config.status}
9926 echo creating $CONFIG_STATUS
9927 rm -f $CONFIG_STATUS
9928 cat > $CONFIG_STATUS <<EOF
9930 # Generated automatically by configure.
9931 # Run this file to recreate the current configuration.
9932 # This directory was configured as follows,
9933 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9935 # $0 $ac_configure_args
9937 # Compiler output produced by configure, useful for debugging
9938 # configure, is in ./config.log if it exists.
9940 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9943 case "\$ac_option" in
9944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9945 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9946 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9947 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9948 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9950 -help | --help | --hel | --he | --h)
9951 echo "\$ac_cs_usage"; exit 0 ;;
9952 *) echo "\$ac_cs_usage"; exit 1 ;;
9956 ac_given_srcdir=$srcdir
9957 ac_given_INSTALL="$INSTALL"
9959 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in vlc-config include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9961 cat >> $CONFIG_STATUS <<EOF
9963 # Protect against being on the right side of a sed subst in config.status.
9964 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9965 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9969 s%@CFLAGS@%$CFLAGS%g
9970 s%@CPPFLAGS@%$CPPFLAGS%g
9971 s%@CXXFLAGS@%$CXXFLAGS%g
9972 s%@FFLAGS@%$FFLAGS%g
9974 s%@LDFLAGS@%$LDFLAGS%g
9976 s%@exec_prefix@%$exec_prefix%g
9977 s%@prefix@%$prefix%g
9978 s%@program_transform_name@%$program_transform_name%g
9979 s%@bindir@%$bindir%g
9980 s%@sbindir@%$sbindir%g
9981 s%@libexecdir@%$libexecdir%g
9982 s%@datadir@%$datadir%g
9983 s%@sysconfdir@%$sysconfdir%g
9984 s%@sharedstatedir@%$sharedstatedir%g
9985 s%@localstatedir@%$localstatedir%g
9986 s%@libdir@%$libdir%g
9987 s%@includedir@%$includedir%g
9988 s%@oldincludedir@%$oldincludedir%g
9989 s%@infodir@%$infodir%g
9990 s%@mandir@%$mandir%g
9992 s%@host_alias@%$host_alias%g
9993 s%@host_cpu@%$host_cpu%g
9994 s%@host_vendor@%$host_vendor%g
9995 s%@host_os@%$host_os%g
9996 s%@target@%$target%g
9997 s%@target_alias@%$target_alias%g
9998 s%@target_cpu@%$target_cpu%g
9999 s%@target_vendor@%$target_vendor%g
10000 s%@target_os@%$target_os%g
10002 s%@build_alias@%$build_alias%g
10003 s%@build_cpu@%$build_cpu%g
10004 s%@build_vendor@%$build_vendor%g
10005 s%@build_os@%$build_os%g
10006 s%@SET_MAKE@%$SET_MAKE%g
10009 s%@RANLIB@%$RANLIB%g
10012 s%@ALLOCA@%$ALLOCA%g
10013 s%@GLIBC21@%$GLIBC21%g
10014 s%@LIBICONV@%$LIBICONV%g
10015 s%@USE_NLS@%$USE_NLS%g
10016 s%@MSGFMT@%$MSGFMT%g
10017 s%@GMSGFMT@%$GMSGFMT%g
10018 s%@XGETTEXT@%$XGETTEXT%g
10019 s%@INTLBISON@%$INTLBISON%g
10020 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
10021 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10022 s%@CATALOGS@%$CATALOGS%g
10023 s%@CATOBJEXT@%$CATOBJEXT%g
10024 s%@GMOFILES@%$GMOFILES%g
10025 s%@INTLLIBS@%$INTLLIBS%g
10026 s%@INTLOBJS@%$INTLOBJS%g
10027 s%@POFILES@%$POFILES%g
10029 s%@DATADIRNAME@%$DATADIRNAME%g
10030 s%@INSTOBJEXT@%$INSTOBJEXT%g
10031 s%@GENCAT@%$GENCAT%g
10032 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10033 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
10034 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10035 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10036 s%@INSTALL_DATA@%$INSTALL_DATA%g
10037 s%@WINDRES@%$WINDRES%g
10038 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
10039 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
10040 s%@SDL_CONFIG@%$SDL_CONFIG%g
10041 s%@ESD_CONFIG@%$ESD_CONFIG%g
10042 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
10043 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
10044 s%@GTK_CONFIG@%$GTK_CONFIG%g
10045 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
10046 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
10047 s%@DATA_PATH@%$DATA_PATH%g
10048 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
10049 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
10052 s%@PLUGINS@%$PLUGINS%g
10053 s%@BUILTINS@%$BUILTINS%g
10054 s%@ALIASES@%$ALIASES%g
10059 s%@OPTIMS@%$OPTIMS%g
10060 s%@TUNING@%$TUNING%g
10061 s%@RELEASE@%$RELEASE%g
10063 s%@BCBUILDER@%$BCBUILDER%g
10064 s%@PACKAGE@%$PACKAGE%g
10065 s%@VERSION@%$VERSION%g
10066 s%@NEED_GETOPT@%$NEED_GETOPT%g
10067 s%@MOZILLA@%$MOZILLA%g
10068 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
10069 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
10070 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
10071 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
10072 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
10073 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
10074 s%@a52_CFLAGS@%$a52_CFLAGS%g
10075 s%@arts_CFLAGS@%$arts_CFLAGS%g
10076 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
10077 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
10078 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
10079 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
10080 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
10081 s%@directx_CFLAGS@%$directx_CFLAGS%g
10082 s%@esd_CFLAGS@%$esd_CFLAGS%g
10083 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
10084 s%@faad_CFLAGS@%$faad_CFLAGS%g
10085 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
10086 s%@glide_CFLAGS@%$glide_CFLAGS%g
10087 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
10088 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
10089 s%@gtk_main_CFLAGS@%$gtk_main_CFLAGS%g
10090 s%@kde_CFLAGS@%$kde_CFLAGS%g
10091 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
10092 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
10093 s%@mad_CFLAGS@%$mad_CFLAGS%g
10094 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
10095 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
10096 s%@qt_CFLAGS@%$qt_CFLAGS%g
10097 s%@qte_CFLAGS@%$qte_CFLAGS%g
10098 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
10099 s%@svgalib_CFLAGS@%$svgalib_CFLAGS%g
10100 s%@x11_CFLAGS@%$x11_CFLAGS%g
10101 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
10102 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
10103 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
10104 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
10105 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
10106 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
10107 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
10108 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
10109 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
10110 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
10111 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
10112 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
10113 s%@dv_LDFLAGS@%$dv_LDFLAGS%g
10114 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
10115 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
10116 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
10117 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
10118 s%@audio_LDFLAGS@%$audio_LDFLAGS%g
10119 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
10120 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
10121 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
10122 s%@faad_LDFLAGS@%$faad_LDFLAGS%g
10123 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
10124 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
10125 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
10126 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
10127 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
10128 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
10129 s%@gtk_main_LDFLAGS@%$gtk_main_LDFLAGS%g
10130 s%@http_LDFLAGS@%$http_LDFLAGS%g
10131 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
10132 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
10133 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
10134 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
10135 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
10136 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
10137 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
10138 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
10139 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
10140 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
10141 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
10142 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
10143 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
10144 s%@oss_LDFLAGS@%$oss_LDFLAGS%g
10145 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
10146 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
10147 s%@qte_LDFLAGS@%$qte_LDFLAGS%g
10148 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
10149 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
10150 s%@svgalib_LDFLAGS@%$svgalib_LDFLAGS%g
10151 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
10152 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
10153 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
10154 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
10155 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
10156 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
10157 s%@id3tag_LDFLAGS@%$id3tag_LDFLAGS%g
10162 cat >> $CONFIG_STATUS <<\EOF
10164 # Split the substitutions into bite-sized pieces for seds with
10165 # small command number limits, like on Digital OSF/1 and HP-UX.
10166 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10167 ac_file=1 # Number of current file.
10168 ac_beg=1 # First line for current file.
10169 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10172 while $ac_more_lines; do
10173 if test $ac_beg -gt 1; then
10174 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10176 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10178 if test ! -s conftest.s$ac_file; then
10179 ac_more_lines=false
10180 rm -f conftest.s$ac_file
10182 if test -z "$ac_sed_cmds"; then
10183 ac_sed_cmds="sed -f conftest.s$ac_file"
10185 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10187 ac_file=`expr $ac_file + 1`
10189 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10192 if test -z "$ac_sed_cmds"; then
10197 cat >> $CONFIG_STATUS <<EOF
10199 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
10201 cat >> $CONFIG_STATUS <<\EOF
10202 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10203 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10205 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10206 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10207 *) ac_file_in="${ac_file}.in" ;;
10210 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10212 # Remove last slash and all that follows it. Not all systems have dirname.
10213 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10214 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10215 # The file is in a subdirectory.
10216 test ! -d "$ac_dir" && mkdir "$ac_dir"
10217 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10218 # A "../" for each directory in $ac_dir_suffix.
10219 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10221 ac_dir_suffix= ac_dots=
10224 case "$ac_given_srcdir" in
10226 if test -z "$ac_dots"; then top_srcdir=.
10227 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10228 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10229 *) # Relative path.
10230 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10231 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10234 case "$ac_given_INSTALL" in
10235 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10236 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10239 echo creating "$ac_file"
10241 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10243 *Makefile*) ac_comsub="1i\\
10244 # $configure_input" ;;
10248 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10250 s%@configure_input@%$configure_input%g
10251 s%@srcdir@%$srcdir%g
10252 s%@top_srcdir@%$top_srcdir%g
10253 s%@INSTALL@%$INSTALL%g
10254 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10258 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10259 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10261 # ac_d sets the value in "#define NAME VALUE" lines.
10262 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10263 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10266 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10267 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10268 ac_uB='\([ ]\)%\1#\2define\3'
10271 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10272 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10273 ac_eB='$%\1#\2define\3'
10277 if test "${CONFIG_HEADERS+set}" != set; then
10279 cat >> $CONFIG_STATUS <<EOF
10280 CONFIG_HEADERS="include/defs.h"
10282 cat >> $CONFIG_STATUS <<\EOF
10284 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10287 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10288 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10289 *) ac_file_in="${ac_file}.in" ;;
10292 echo creating $ac_file
10294 rm -f conftest.frag conftest.in conftest.out
10295 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10296 cat $ac_file_inputs > conftest.in
10300 # Transform confdefs.h into a sed script conftest.vals that substitutes
10301 # the proper values into config.h.in to produce config.h. And first:
10302 # Protect against being on the right side of a sed subst in config.status.
10303 # Protect against being in an unquoted here document in config.status.
10304 rm -f conftest.vals
10305 cat > conftest.hdr <<\EOF
10308 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10312 sed -n -f conftest.hdr confdefs.h > conftest.vals
10315 # This sed command replaces #undef with comments. This is necessary, for
10316 # example, in the case of _POSIX_SOURCE, which is predefined and required
10317 # on some systems where configure will not decide to define it.
10318 cat >> conftest.vals <<\EOF
10319 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10322 # Break up conftest.vals because some shells have a limit on
10323 # the size of here documents, and old seds have small limits too.
10325 rm -f conftest.tail
10328 ac_lines=`grep -c . conftest.vals`
10329 # grep -c gives empty output for an empty file on some AIX systems.
10330 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10331 # Write a limited-size here document to conftest.frag.
10332 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10333 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10335 sed -f conftest.frag conftest.in > conftest.out
10337 mv conftest.out conftest.in
10338 ' >> $CONFIG_STATUS
10339 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10340 rm -f conftest.vals
10341 mv conftest.tail conftest.vals
10343 rm -f conftest.vals
10345 cat >> $CONFIG_STATUS <<\EOF
10346 rm -f conftest.frag conftest.h
10347 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10348 cat conftest.in >> conftest.h
10350 if cmp -s $ac_file conftest.h 2>/dev/null; then
10351 echo "$ac_file is unchanged"
10354 # Remove last slash and all that follows it. Not all systems have dirname.
10355 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10356 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10357 # The file is in a subdirectory.
10358 test ! -d "$ac_dir" && mkdir "$ac_dir"
10361 mv conftest.h $ac_file
10366 cat >> $CONFIG_STATUS <<EOF
10370 cat >> $CONFIG_STATUS <<\EOF
10371 for ac_file in $CONFIG_FILES; do
10372 # Support "outfile[:infile[:infile...]]"
10374 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10376 # PO directories have a Makefile.in generated from Makefile.in.in.
10377 case "$ac_file" in */Makefile.in)
10378 # Adjust a relative srcdir.
10379 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10380 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10381 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10382 # In autoconf-2.13 it is called $ac_given_srcdir.
10383 # In autoconf-2.50 it is called $srcdir.
10384 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10385 case "$ac_given_srcdir" in
10386 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10387 /*) top_srcdir="$ac_given_srcdir" ;;
10388 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10390 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10391 rm -f "$ac_dir/POTFILES"
10392 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10393 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10394 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10395 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10403 chmod +x $CONFIG_STATUS
10404 rm -fr confdefs* $ac_clean_files
10405 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10407 chmod a+x vlc-config
10411 --------------------
10412 vlc version : ${VERSION}
10414 architecture : ${ARCH}
10415 optimizations : ${OPTIMS}
10417 debug mode : ${DEBUG}
10418 release : ${RELEASE}
10419 profiling : ${PROFILING}
10420 need builtin getopt : ${NEED_GETOPT}
10421 modules : (see Makefile.config)
10422 mozilla plugin : ${MOZILLA}
10423 vlc aliases :${ALIASES}
10425 You may now tune Makefile.config and Makefile.opts at your convenience, for
10426 instance to choose which modules get compiled as plugins, or tune CFLAGS.
10428 To build vlc and its plugins, type \`${VLC_MAKE}'.