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-ggi GGI support (default disabled)"
122 --with-ggi=PATH path to libggi"
124 --enable-glide Glide (3dfx) support (default disabled)"
126 --with-glide=PATH path to libglide"
128 --enable-aa aalib output (default disabled)"
132 --enable-oss Linux OSS /dev/dsp support (enabled on Linux)"
134 --enable-esd Esound library support (default disabled)"
136 --enable-arts aRts sound server (default disabled)"
138 --enable-alsa ALSA sound support for Linux (default disabled)"
140 --enable-waveout Win32 waveOut module (default enabled on Win32)"
144 --enable-gtk Gtk+ support (default enabled)"
146 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
148 --enable-familiar Familiar Gtk+ support (default disabled)"
150 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
152 --enable-gnome Gnome interface support (default disabled)"
154 --enable-qt Qt interface support (default disabled)"
156 --enable-kde KDE interface support (default disabled)"
158 --enable-qte Qt embedded interface support (default disabled)"
160 --enable-macosx MacOS X support (default enabled on MacOS X)"
162 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
164 --enable-intfwin Win32 interface support (default disabled)"
166 --with-bcbuilder=PATH Borland C++ Builder installation path"
168 --enable-ncurses ncurses interface support (default disabled)"
170 --enable-xosd xosd interface support (default disabled)"
172 --enable-lirc lirc support (default disabled)"
176 --with-words=endianness set endianness (big or little)"
178 --enable-gprof gprof profiling (default disabled)"
180 --enable-cprof cprof profiling (default disabled)"
182 --enable-pth GNU Pth support (default disabled)"
184 --enable-st State Threads (default disabled)"
186 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
188 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
190 # Initialize some variables set by options.
191 # The variables have the same names as the options, with
192 # dashes changed to underlines.
194 cache_file=./config.cache
203 program_transform_name=s,x,x,
211 bindir='${exec_prefix}/bin'
212 sbindir='${exec_prefix}/sbin'
213 libexecdir='${exec_prefix}/libexec'
214 datadir='${prefix}/share'
215 sysconfdir='${prefix}/etc'
216 sharedstatedir='${prefix}/com'
217 localstatedir='${prefix}/var'
218 libdir='${exec_prefix}/lib'
219 includedir='${prefix}/include'
220 oldincludedir='/usr/include'
221 infodir='${prefix}/info'
222 mandir='${prefix}/man'
224 # Initialize some other variables.
227 SHELL=${CONFIG_SHELL-/bin/sh}
228 # Maximum number of lines to put in a shell here document.
235 # If the previous option needs an argument, assign it.
236 if test -n "$ac_prev"; then
237 eval "$ac_prev=\$ac_option"
243 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
247 # Accept the important Cygnus configure options, so we can diagnose typos.
251 -bindir | --bindir | --bindi | --bind | --bin | --bi)
253 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
254 bindir="$ac_optarg" ;;
256 -build | --build | --buil | --bui | --bu)
258 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
259 build="$ac_optarg" ;;
261 -cache-file | --cache-file | --cache-fil | --cache-fi \
262 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
263 ac_prev=cache_file ;;
264 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
265 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
266 cache_file="$ac_optarg" ;;
268 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
270 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
272 datadir="$ac_optarg" ;;
274 -disable-* | --disable-*)
275 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
276 # Reject names that are not valid shell variable names.
277 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
278 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
280 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
281 eval "enable_${ac_feature}=no" ;;
283 -enable-* | --enable-*)
284 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
285 # Reject names that are not valid shell variable names.
286 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
287 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
289 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
294 eval "enable_${ac_feature}='$ac_optarg'" ;;
296 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
297 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
298 | --exec | --exe | --ex)
299 ac_prev=exec_prefix ;;
300 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
301 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
302 | --exec=* | --exe=* | --ex=*)
303 exec_prefix="$ac_optarg" ;;
305 -gas | --gas | --ga | --g)
306 # Obsolete; use --with-gas.
309 -help | --help | --hel | --he)
310 # Omit some internal or obsolete options to make the list less imposing.
311 # This message is too long to be a string in the A/UX 3.1 sh.
313 Usage: configure [options] [host]
314 Options: [defaults in brackets after descriptions]
316 --cache-file=FILE cache test results in FILE
317 --help print this message
318 --no-create do not create output files
319 --quiet, --silent do not print \`checking...' messages
320 --version print the version of autoconf that created configure
321 Directory and file names:
322 --prefix=PREFIX install architecture-independent files in PREFIX
324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
326 --bindir=DIR user executables in DIR [EPREFIX/bin]
327 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
328 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
329 --datadir=DIR read-only architecture-independent data in DIR
331 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
332 --sharedstatedir=DIR modifiable architecture-independent data in DIR
334 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
335 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
336 --includedir=DIR C header files in DIR [PREFIX/include]
337 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
338 --infodir=DIR info documentation in DIR [PREFIX/info]
339 --mandir=DIR man documentation in DIR [PREFIX/man]
340 --srcdir=DIR find the sources in DIR [configure dir or ..]
341 --program-prefix=PREFIX prepend PREFIX to installed program names
342 --program-suffix=SUFFIX append SUFFIX to installed program names
343 --program-transform-name=PROGRAM
344 run sed PROGRAM on installed program names
348 --build=BUILD configure for building on BUILD [BUILD=HOST]
349 --host=HOST configure for HOST [guessed]
350 --target=TARGET configure for TARGET [TARGET=HOST]
351 Features and packages:
352 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
353 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
356 --x-includes=DIR X include files are in DIR
357 --x-libraries=DIR X library files are in DIR
359 if test -n "$ac_help"; then
360 echo "--enable and --with options recognized:$ac_help"
364 -host | --host | --hos | --ho)
366 -host=* | --host=* | --hos=* | --ho=*)
369 -includedir | --includedir | --includedi | --included | --include \
370 | --includ | --inclu | --incl | --inc)
371 ac_prev=includedir ;;
372 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
373 | --includ=* | --inclu=* | --incl=* | --inc=*)
374 includedir="$ac_optarg" ;;
376 -infodir | --infodir | --infodi | --infod | --info | --inf)
378 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
379 infodir="$ac_optarg" ;;
381 -libdir | --libdir | --libdi | --libd)
383 -libdir=* | --libdir=* | --libdi=* | --libd=*)
384 libdir="$ac_optarg" ;;
386 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
387 | --libexe | --libex | --libe)
388 ac_prev=libexecdir ;;
389 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
390 | --libexe=* | --libex=* | --libe=*)
391 libexecdir="$ac_optarg" ;;
393 -localstatedir | --localstatedir | --localstatedi | --localstated \
394 | --localstate | --localstat | --localsta | --localst \
395 | --locals | --local | --loca | --loc | --lo)
396 ac_prev=localstatedir ;;
397 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
398 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
399 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
400 localstatedir="$ac_optarg" ;;
402 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
404 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
405 mandir="$ac_optarg" ;;
408 # Obsolete; use --without-fp.
411 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
415 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
416 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
419 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
420 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
421 | --oldin | --oldi | --old | --ol | --o)
422 ac_prev=oldincludedir ;;
423 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
424 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
425 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
426 oldincludedir="$ac_optarg" ;;
428 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
430 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
431 prefix="$ac_optarg" ;;
433 -program-prefix | --program-prefix | --program-prefi | --program-pref \
434 | --program-pre | --program-pr | --program-p)
435 ac_prev=program_prefix ;;
436 -program-prefix=* | --program-prefix=* | --program-prefi=* \
437 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
438 program_prefix="$ac_optarg" ;;
440 -program-suffix | --program-suffix | --program-suffi | --program-suff \
441 | --program-suf | --program-su | --program-s)
442 ac_prev=program_suffix ;;
443 -program-suffix=* | --program-suffix=* | --program-suffi=* \
444 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
445 program_suffix="$ac_optarg" ;;
447 -program-transform-name | --program-transform-name \
448 | --program-transform-nam | --program-transform-na \
449 | --program-transform-n | --program-transform- \
450 | --program-transform | --program-transfor \
451 | --program-transfo | --program-transf \
452 | --program-trans | --program-tran \
453 | --progr-tra | --program-tr | --program-t)
454 ac_prev=program_transform_name ;;
455 -program-transform-name=* | --program-transform-name=* \
456 | --program-transform-nam=* | --program-transform-na=* \
457 | --program-transform-n=* | --program-transform-=* \
458 | --program-transform=* | --program-transfor=* \
459 | --program-transfo=* | --program-transf=* \
460 | --program-trans=* | --program-tran=* \
461 | --progr-tra=* | --program-tr=* | --program-t=*)
462 program_transform_name="$ac_optarg" ;;
464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
465 | -silent | --silent | --silen | --sile | --sil)
468 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
470 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
472 sbindir="$ac_optarg" ;;
474 -sharedstatedir | --sharedstatedir | --sharedstatedi \
475 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
476 | --sharedst | --shareds | --shared | --share | --shar \
478 ac_prev=sharedstatedir ;;
479 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
480 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
481 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
483 sharedstatedir="$ac_optarg" ;;
485 -site | --site | --sit)
487 -site=* | --site=* | --sit=*)
490 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
492 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
493 srcdir="$ac_optarg" ;;
495 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
496 | --syscon | --sysco | --sysc | --sys | --sy)
497 ac_prev=sysconfdir ;;
498 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
499 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
500 sysconfdir="$ac_optarg" ;;
502 -target | --target | --targe | --targ | --tar | --ta | --t)
504 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
505 target="$ac_optarg" ;;
507 -v | -verbose | --verbose | --verbos | --verbo | --verb)
510 -version | --version | --versio | --versi | --vers)
511 echo "configure generated by autoconf version 2.13"
515 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
516 # Reject names that are not valid shell variable names.
517 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
518 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
520 ac_package=`echo $ac_package| sed 's/-/_/g'`
525 eval "with_${ac_package}='$ac_optarg'" ;;
527 -without-* | --without-*)
528 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
529 # Reject names that are not valid shell variable names.
530 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
531 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
533 ac_package=`echo $ac_package| sed 's/-/_/g'`
534 eval "with_${ac_package}=no" ;;
537 # Obsolete; use --with-x.
540 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
541 | --x-incl | --x-inc | --x-in | --x-i)
542 ac_prev=x_includes ;;
543 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
544 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
545 x_includes="$ac_optarg" ;;
547 -x-libraries | --x-libraries | --x-librarie | --x-librari \
548 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
549 ac_prev=x_libraries ;;
550 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
551 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
552 x_libraries="$ac_optarg" ;;
554 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
558 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
559 echo "configure: warning: $ac_option: invalid host type" 1>&2
561 if test "x$nonopt" != xNONE; then
562 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
570 if test -n "$ac_prev"; then
571 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
574 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
576 # File descriptor usage:
579 # 2 errors and warnings
580 # 3 some systems may open it to /dev/tty
581 # 4 used on the Kubota Titan
582 # 6 checking for... messages and results
583 # 5 compiler messages saved in config.log
584 if test "$silent" = yes; then
592 This file contains any messages produced by compilers while
593 running configure, to aid debugging if configure makes a mistake.
596 # Strip out --no-create and --no-recursion so they do not pile up.
597 # Also quote any args containing shell metacharacters.
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c) ;;
604 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
605 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
606 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
607 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
608 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
613 # Only set these to C if already set. These must not be set unconditionally
614 # because not all systems understand e.g. LANG=C (notably SCO).
615 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
616 # Non-C LC_CTYPE values break the ctype check.
617 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
618 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
619 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
620 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
623 rm -rf conftest* confdefs.h
624 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
627 # A filename unique to this package, relative to the directory that
628 # configure is in, which we can look for to find out if srcdir is correct.
629 ac_unique_file=include/main.h
631 # Find the source files, if location was not specified.
632 if test -z "$srcdir"; then
633 ac_srcdir_defaulted=yes
634 # Try the directory containing this script, then its parent.
636 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
637 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
639 if test ! -r $srcdir/$ac_unique_file; then
643 ac_srcdir_defaulted=no
645 if test ! -r $srcdir/$ac_unique_file; then
646 if test "$ac_srcdir_defaulted" = yes; then
647 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
649 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
652 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
654 # Prefer explicitly selected file to automatically selected ones.
655 if test -z "$CONFIG_SITE"; then
656 if test "x$prefix" != xNONE; then
657 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
659 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
662 for ac_site_file in $CONFIG_SITE; do
663 if test -r "$ac_site_file"; then
664 echo "loading site script $ac_site_file"
669 if test -r "$cache_file"; then
670 echo "loading cache $cache_file"
673 echo "creating cache $cache_file"
678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
679 ac_cpp='$CPP $CPPFLAGS'
680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
682 cross_compiling=$ac_cv_prog_cc_cross
686 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
687 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
688 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
695 ac_n= ac_c='\c' ac_t=
701 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
702 if test -f $ac_dir/install-sh; then
704 ac_install_sh="$ac_aux_dir/install-sh -c"
706 elif test -f $ac_dir/install.sh; then
708 ac_install_sh="$ac_aux_dir/install.sh -c"
712 if test -z "$ac_aux_dir"; then
713 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
715 ac_config_guess=$ac_aux_dir/config.guess
716 ac_config_sub=$ac_aux_dir/config.sub
717 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
720 # Do some error checking and defaulting for the host and target type.
722 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
725 # 1. You are not allowed to specify --host, --target, and nonopt at the
727 # 2. Host defaults to nonopt.
728 # 3. If nonopt is not specified, then host defaults to the current host,
729 # as determined by config.guess.
730 # 4. Target and build default to nonopt.
731 # 5. If nonopt is not specified, then target and build default to host.
733 # The aliases save the names the user supplied, while $host etc.
734 # will get canonicalized.
735 case $host---$target---$nonopt in
736 NONE---*---* | *---NONE---* | *---*---NONE) ;;
737 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
741 # Make sure we can run config.sub.
742 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
743 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
746 echo $ac_n "checking host system type""... $ac_c" 1>&6
747 echo "configure:748: checking host system type" >&5
750 case "$host_alias" in
754 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
755 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
757 *) host_alias=$nonopt ;;
761 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
762 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
763 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
764 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo "$ac_t""$host" 1>&6
767 echo $ac_n "checking target system type""... $ac_c" 1>&6
768 echo "configure:769: checking target system type" >&5
771 case "$target_alias" in
774 NONE) target_alias=$host_alias ;;
775 *) target_alias=$nonopt ;;
779 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
780 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
781 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
782 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
783 echo "$ac_t""$target" 1>&6
785 echo $ac_n "checking build system type""... $ac_c" 1>&6
786 echo "configure:787: checking build system type" >&5
789 case "$build_alias" in
792 NONE) build_alias=$host_alias ;;
793 *) build_alias=$nonopt ;;
797 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
798 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
799 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
800 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
801 echo "$ac_t""$build" 1>&6
803 test "$host_alias" != "$target_alias" &&
804 test "$program_prefix$program_suffix$program_transform_name" = \
806 program_prefix=${target_alias}-
809 CONFIGURE_LINE="$0 $*"
815 save_CPPFLAGS="${CPPFLAGS}"
816 save_CFLAGS="${CFLAGS}"
817 save_LDFLAGS="${LDFLAGS}"
819 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
821 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
822 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 cat > conftestmake <<\EOF
827 @echo 'ac_maketemp="${MAKE}"'
829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
830 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
831 if test -n "$ac_maketemp"; then
832 eval ac_cv_prog_make_${ac_make}_set=yes
834 eval ac_cv_prog_make_${ac_make}_set=no
838 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
839 echo "$ac_t""yes" 1>&6
842 echo "$ac_t""no" 1>&6
843 SET_MAKE="MAKE=${MAKE-make}"
846 # Extract the first word of "gcc", so it can be a program name with args.
847 set dummy gcc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
869 if test -n "$CC"; then
870 echo "$ac_t""$CC" 1>&6
872 echo "$ac_t""no" 1>&6
875 if test -z "$CC"; then
876 # Extract the first word of "cc", so it can be a program name with args.
877 set dummy cc; ac_word=$2
878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
879 echo "configure:880: checking for $ac_word" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 if test -n "$CC"; then
884 ac_cv_prog_CC="$CC" # Let the user override the test.
886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
889 for ac_dir in $ac_dummy; do
890 test -z "$ac_dir" && ac_dir=.
891 if test -f $ac_dir/$ac_word; then
892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
901 if test $ac_prog_rejected = yes; then
902 # We found a bogon in the path, so make sure we never use it.
903 set dummy $ac_cv_prog_CC
905 if test $# -gt 0; then
906 # We chose a different compiler from the bogus one.
907 # However, it has the same basename, so the bogon will be chosen
908 # first if we set CC to just the basename; use the full file name.
910 set dummy "$ac_dir/$ac_word" "$@"
918 if test -n "$CC"; then
919 echo "$ac_t""$CC" 1>&6
921 echo "$ac_t""no" 1>&6
924 if test -z "$CC"; then
927 # Extract the first word of "cl", so it can be a program name with args.
928 set dummy cl; ac_word=$2
929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
930 echo "configure:931: checking for $ac_word" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 if test -n "$CC"; then
935 ac_cv_prog_CC="$CC" # Let the user override the test.
937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
939 for ac_dir in $ac_dummy; do
940 test -z "$ac_dir" && ac_dir=.
941 if test -f $ac_dir/$ac_word; then
950 if test -n "$CC"; then
951 echo "$ac_t""$CC" 1>&6
953 echo "$ac_t""no" 1>&6
958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
966 ac_cpp='$CPP $CPPFLAGS'
967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
969 cross_compiling=$ac_cv_prog_cc_cross
971 cat > conftest.$ac_ext << EOF
973 #line 974 "configure"
974 #include "confdefs.h"
978 if { (eval echo configure:979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
979 ac_cv_prog_cc_works=yes
980 # If we can't run a trivial program, we are probably using a cross compiler.
981 if (./conftest; exit) 2>/dev/null; then
982 ac_cv_prog_cc_cross=no
984 ac_cv_prog_cc_cross=yes
987 echo "configure: failed program was:" >&5
988 cat conftest.$ac_ext >&5
989 ac_cv_prog_cc_works=no
993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
994 ac_cpp='$CPP $CPPFLAGS'
995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
997 cross_compiling=$ac_cv_prog_cc_cross
999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1000 if test $ac_cv_prog_cc_works = no; then
1001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1004 echo "configure:1005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1006 cross_compiling=$ac_cv_prog_cc_cross
1008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether we are using GNU C" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 cat > conftest.c <<EOF
1018 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1027 if test $ac_cv_prog_gcc = yes; then
1033 ac_test_CFLAGS="${CFLAGS+set}"
1034 ac_save_CFLAGS="$CFLAGS"
1036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1037 echo "configure:1038: checking whether ${CC-cc} accepts -g" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 echo 'void f(){}' > conftest.c
1042 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1051 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1052 if test "$ac_test_CFLAGS" = set; then
1053 CFLAGS="$ac_save_CFLAGS"
1054 elif test $ac_cv_prog_cc_g = yes; then
1055 if test "$GCC" = yes; then
1061 if test "$GCC" = yes; then
1068 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1069 echo "configure:1070: checking how to run the C preprocessor" >&5
1070 # On Suns, sometimes $CPP names a directory.
1071 if test -n "$CPP" && test -d "$CPP"; then
1074 if test -z "$CPP"; then
1075 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 # This must be in double quotes, not single quotes, because CPP may get
1079 # substituted into the Makefile and "${CC-cc}" will confuse make.
1081 # On the NeXT, cc -E runs the code through the compiler's parser,
1082 # not just through cpp.
1083 cat > conftest.$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1090 { (eval echo configure:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1092 if test -z "$ac_err"; then
1096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
1099 CPP="${CC-cc} -E -traditional-cpp"
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1107 { (eval echo configure:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1109 if test -z "$ac_err"; then
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1116 CPP="${CC-cc} -nologo -E"
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1124 { (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1126 if test -z "$ac_err"; then
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1140 ac_cv_prog_CPP="$CPP"
1142 CPP="$ac_cv_prog_CPP"
1144 ac_cv_prog_CPP="$CPP"
1146 echo "$ac_t""$CPP" 1>&6
1149 if test $host != $build; then
1150 ac_tool_prefix=${host_alias}-
1155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$RANLIB"; then
1163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1167 for ac_dir in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1177 RANLIB="$ac_cv_prog_RANLIB"
1178 if test -n "$RANLIB"; then
1179 echo "$ac_t""$RANLIB" 1>&6
1181 echo "$ac_t""no" 1>&6
1185 if test -z "$ac_cv_prog_RANLIB"; then
1186 if test -n "$ac_tool_prefix"; then
1187 # Extract the first word of "ranlib", so it can be a program name with args.
1188 set dummy ranlib; ac_word=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$RANLIB"; then
1195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1199 for ac_dir in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir=.
1201 if test -f $ac_dir/$ac_word; then
1202 ac_cv_prog_RANLIB="ranlib"
1207 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1210 RANLIB="$ac_cv_prog_RANLIB"
1211 if test -n "$RANLIB"; then
1212 echo "$ac_t""$RANLIB" 1>&6
1214 echo "$ac_t""no" 1>&6
1222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1223 set dummy ${ac_tool_prefix}strip; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 if test -n "$STRIP"; then
1230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 if test -f $ac_dir/$ac_word; then
1237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1244 STRIP="$ac_cv_prog_STRIP"
1245 if test -n "$STRIP"; then
1246 echo "$ac_t""$STRIP" 1>&6
1248 echo "$ac_t""no" 1>&6
1252 if test -z "$ac_cv_prog_STRIP"; then
1253 if test -n "$ac_tool_prefix"; then
1254 # Extract the first word of "strip", so it can be a program name with args.
1255 set dummy strip; ac_word=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 if test -n "$STRIP"; then
1262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1266 for ac_dir in $ac_dummy; do
1267 test -z "$ac_dir" && ac_dir=.
1268 if test -f $ac_dir/$ac_word; then
1269 ac_cv_prog_STRIP="strip"
1274 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1277 STRIP="$ac_cv_prog_STRIP"
1278 if test -n "$STRIP"; then
1279 echo "$ac_t""$STRIP" 1>&6
1281 echo "$ac_t""no" 1>&6
1290 # Extract the first word of "gmake", so it can be a program name with args.
1291 set dummy gmake; ac_word=$2
1292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1293 echo "configure:1294: checking for $ac_word" >&5
1294 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1299 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1302 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1315 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1319 GMAKE="$ac_cv_path_GMAKE"
1320 if test -n "$GMAKE"; then
1321 echo "$ac_t""$GMAKE" 1>&6
1323 echo "$ac_t""no" 1>&6
1326 if test "x${GMAKE}" = "xno"; then
1327 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1328 echo "configure:1329: checking whether GNU make is installed" >&5
1329 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 if make --version | grep -q -i gnu; then
1335 echo "This software needs you to install GNU make to compile properly."
1336 echo "You can get it from http://www.gnu.org/."
1341 echo "$ac_t""$ac_cv_gmake" 1>&6
1347 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1349 cat >> confdefs.h <<EOF
1350 #define VLC_PACKAGE "${PACKAGE}"
1353 cat >> confdefs.h <<EOF
1354 #define VLC_VERSION "${VERSION}"
1357 # Extract the first word of "ranlib", so it can be a program name with args.
1358 set dummy ranlib; ac_word=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 if test -n "$RANLIB"; then
1365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1369 for ac_dir in $ac_dummy; do
1370 test -z "$ac_dir" && ac_dir=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_prog_RANLIB="ranlib"
1377 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1380 RANLIB="$ac_cv_prog_RANLIB"
1381 if test -n "$RANLIB"; then
1382 echo "$ac_t""$RANLIB" 1>&6
1384 echo "$ac_t""no" 1>&6
1388 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1389 echo "configure:1390: checking for strerror in -lcposix" >&5
1390 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 ac_save_LIBS="$LIBS"
1395 LIBS="-lcposix $LIBS"
1396 cat > conftest.$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 /* Override any gcc2 internal prototype to avoid an error. */
1400 /* We use char because int might match the return type of a gcc2
1401 builtin and then its argument prototype would still apply. */
1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1410 eval "ac_cv_lib_$ac_lib_var=yes"
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1415 eval "ac_cv_lib_$ac_lib_var=no"
1418 LIBS="$ac_save_LIBS"
1421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1422 echo "$ac_t""yes" 1>&6
1423 LIBS="$LIBS -lcposix"
1425 echo "$ac_t""no" 1>&6
1430 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1431 echo "configure:1432: checking for ANSI C header files" >&5
1432 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1435 cat > conftest.$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1444 { (eval echo configure:1445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1446 if test -z "$ac_err"; then
1448 ac_cv_header_stdc=yes
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1454 ac_cv_header_stdc=no
1458 if test $ac_cv_header_stdc = yes; then
1459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1466 egrep "memchr" >/dev/null 2>&1; then
1470 ac_cv_header_stdc=no
1476 if test $ac_cv_header_stdc = yes; then
1477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1484 egrep "free" >/dev/null 2>&1; then
1488 ac_cv_header_stdc=no
1494 if test $ac_cv_header_stdc = yes; then
1495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1496 if test "$cross_compiling" = yes; then
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1503 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1504 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1506 int main () { int i; for (i = 0; i < 256; i++)
1507 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1511 if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1518 ac_cv_header_stdc=no
1526 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1527 if test $ac_cv_header_stdc = yes; then
1528 cat >> confdefs.h <<\EOF
1529 #define STDC_HEADERS 1
1534 echo $ac_n "checking for working const""... $ac_c" 1>&6
1535 echo "configure:1536: checking for working const" >&5
1536 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1545 /* Ultrix mips cc rejects this. */
1546 typedef int charset[2]; const charset x;
1547 /* SunOS 4.1.1 cc rejects this. */
1548 char const *const *ccp;
1550 /* NEC SVR4.0.2 mips cc rejects this. */
1551 struct point {int x, y;};
1552 static struct point const zero = {0,0};
1553 /* AIX XL C 1.02.0.0 rejects this.
1554 It does not let you subtract one const X* pointer from another in an arm
1555 of an if-expression whose if-part is not a constant expression */
1556 const char *g = "string";
1557 ccp = &g + (g ? g-g : 0);
1558 /* HPUX 7.0 cc rejects these. */
1561 ccp = (char const *const *) p;
1562 { /* SCO 3.2v4 cc rejects this. */
1564 char const *s = 0 ? (char *) 0 : (char const *) 0;
1568 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1570 const int *foo = &x[0];
1573 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1574 typedef const int *iptr;
1578 { /* AIX XL C 1.02.0.0 rejects this saying
1579 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1580 struct s { int j; const int *ap[3]; };
1581 struct s *b; b->j = 5;
1583 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1589 if { (eval echo configure:1590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1593 echo "configure: failed program was:" >&5
1594 cat conftest.$ac_ext >&5
1601 echo "$ac_t""$ac_cv_c_const" 1>&6
1602 if test $ac_cv_c_const = no; then
1603 cat >> confdefs.h <<\EOF
1609 echo $ac_n "checking for inline""... $ac_c" 1>&6
1610 echo "configure:1611: checking for inline" >&5
1611 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1615 for ac_kw in inline __inline__ __inline; do
1616 cat > conftest.$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1624 if { (eval echo configure:1625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1626 ac_cv_c_inline=$ac_kw; break
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1636 echo "$ac_t""$ac_cv_c_inline" 1>&6
1637 case "$ac_cv_c_inline" in
1639 no) cat >> confdefs.h <<\EOF
1643 *) cat >> confdefs.h <<EOF
1644 #define inline $ac_cv_c_inline
1649 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1650 echo "configure:1651: checking for off_t" >&5
1651 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 #include <sys/types.h>
1663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1664 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1666 ac_cv_type_off_t=yes
1674 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1675 if test $ac_cv_type_off_t = no; then
1676 cat >> confdefs.h <<\EOF
1682 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1683 echo "configure:1684: checking for size_t" >&5
1684 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 #include <sys/types.h>
1696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1697 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1699 ac_cv_type_size_t=yes
1702 ac_cv_type_size_t=no
1707 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1708 if test $ac_cv_type_size_t = no; then
1709 cat >> confdefs.h <<\EOF
1710 #define size_t unsigned
1715 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1716 # for constant arguments. Useless!
1717 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1718 echo "configure:1719: checking for working alloca.h" >&5
1719 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1727 char *p = alloca(2 * sizeof(int));
1730 if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1732 ac_cv_header_alloca_h=yes
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1737 ac_cv_header_alloca_h=no
1742 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1743 if test $ac_cv_header_alloca_h = yes; then
1744 cat >> confdefs.h <<\EOF
1745 #define HAVE_ALLOCA_H 1
1750 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1751 echo "configure:1752: checking for alloca" >&5
1752 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1760 # define alloca __builtin_alloca
1763 # include <malloc.h>
1764 # define alloca _alloca
1767 # include <alloca.h>
1772 # ifndef alloca /* predefined by HP cc +Olibcalls */
1781 char *p = (char *) alloca(1);
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1786 ac_cv_func_alloca_works=yes
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 ac_cv_func_alloca_works=no
1796 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1797 if test $ac_cv_func_alloca_works = yes; then
1798 cat >> confdefs.h <<\EOF
1799 #define HAVE_ALLOCA 1
1804 if test $ac_cv_func_alloca_works = no; then
1805 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1806 # that cause trouble. Some versions do not even contain alloca or
1807 # contain a buggy version. If you still want to use their alloca,
1808 # use ar to extract alloca.o from them instead of compiling alloca.c.
1809 ALLOCA=alloca.${ac_objext}
1810 cat >> confdefs.h <<\EOF
1815 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether alloca needs Cray hooks" >&5
1817 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 #if defined(CRAY) && ! defined(CRAY2)
1830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1831 egrep "webecray" >/dev/null 2>&1; then
1842 echo "$ac_t""$ac_cv_os_cray" 1>&6
1843 if test $ac_cv_os_cray = yes; then
1844 for ac_func in _getb67 GETB67 getb67; do
1845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_func" >&5
1847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 cat > conftest.$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $ac_func(); below. */
1856 /* Override any gcc2 internal prototype to avoid an error. */
1857 /* We use char because int might match the return type of a gcc2
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1874 if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1876 eval "ac_cv_func_$ac_func=yes"
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1881 eval "ac_cv_func_$ac_func=no"
1886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1888 cat >> confdefs.h <<EOF
1889 #define CRAY_STACKSEG_END $ac_func
1894 echo "$ac_t""no" 1>&6
1900 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1901 echo "configure:1902: checking stack direction for C alloca" >&5
1902 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 if test "$cross_compiling" = yes; then
1906 ac_cv_c_stack_direction=0
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1911 find_stack_direction ()
1913 static char *addr = 0;
1918 return find_stack_direction ();
1921 return (&dummy > addr) ? 1 : -1;
1925 exit (find_stack_direction() < 0);
1928 if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1930 ac_cv_c_stack_direction=1
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 ac_cv_c_stack_direction=-1
1942 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1943 cat >> confdefs.h <<EOF
1944 #define STACK_DIRECTION $ac_cv_c_stack_direction
1949 for ac_hdr in unistd.h
1951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_hdr" >&5
1954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1963 { (eval echo configure:1964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1965 if test -z "$ac_err"; then
1967 eval "ac_cv_header_$ac_safe=yes"
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1973 eval "ac_cv_header_$ac_safe=no"
1977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1978 echo "$ac_t""yes" 1>&6
1979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1980 cat >> confdefs.h <<EOF
1981 #define $ac_tr_hdr 1
1985 echo "$ac_t""no" 1>&6
1989 for ac_func in getpagesize
1991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_func" >&5
1993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 /* System header to define __stub macros and hopefully few prototypes,
2000 which can conflict with char $ac_func(); below. */
2002 /* Override any gcc2 internal prototype to avoid an error. */
2003 /* We use char because int might match the return type of a gcc2
2004 builtin and then its argument prototype would still apply. */
2009 /* The GNU C library defines this for functions which it implements
2010 to always fail with ENOSYS. Some functions are actually named
2011 something starting with __ and the normal name is an alias. */
2012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2020 if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2022 eval "ac_cv_func_$ac_func=yes"
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2027 eval "ac_cv_func_$ac_func=no"
2032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2033 echo "$ac_t""yes" 1>&6
2034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2035 cat >> confdefs.h <<EOF
2036 #define $ac_tr_func 1
2040 echo "$ac_t""no" 1>&6
2044 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2045 echo "configure:2046: checking for working mmap" >&5
2046 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 if test "$cross_compiling" = yes; then
2050 ac_cv_func_mmap_fixed_mapped=no
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2056 /* Thanks to Mike Haertel and Jim Avera for this test.
2057 Here is a matrix of mmap possibilities:
2058 mmap private not fixed
2059 mmap private fixed at somewhere currently unmapped
2060 mmap private fixed at somewhere already mapped
2061 mmap shared not fixed
2062 mmap shared fixed at somewhere currently unmapped
2063 mmap shared fixed at somewhere already mapped
2064 For private mappings, we should verify that changes cannot be read()
2065 back from the file, nor mmap's back from the file at a different
2066 address. (There have been systems where private was not correctly
2067 implemented like the infamous i386 svr4.0, and systems where the
2068 VM page cache was not coherent with the filesystem buffer cache
2069 like early versions of FreeBSD and possibly contemporary NetBSD.)
2070 For shared mappings, we should conversely verify that changes get
2071 propogated back to all the places they're supposed to be.
2073 Grep wants private fixed already mapped.
2074 The main things grep needs to know about mmap are:
2075 * does it exist and is it safe to write into the mmap'd area
2076 * how to use it (BSD variants) */
2077 #include <sys/types.h>
2079 #include <sys/mman.h>
2081 /* This mess was copied from the GNU getpagesize.h. */
2082 #ifndef HAVE_GETPAGESIZE
2083 # ifdef HAVE_UNISTD_H
2084 # include <unistd.h>
2087 /* Assume that all systems that can run configure have sys/param.h. */
2088 # ifndef HAVE_SYS_PARAM_H
2089 # define HAVE_SYS_PARAM_H 1
2092 # ifdef _SC_PAGESIZE
2093 # define getpagesize() sysconf(_SC_PAGESIZE)
2094 # else /* no _SC_PAGESIZE */
2095 # ifdef HAVE_SYS_PARAM_H
2096 # include <sys/param.h>
2097 # ifdef EXEC_PAGESIZE
2098 # define getpagesize() EXEC_PAGESIZE
2099 # else /* no EXEC_PAGESIZE */
2101 # define getpagesize() NBPG * CLSIZE
2104 # endif /* no CLSIZE */
2105 # else /* no NBPG */
2107 # define getpagesize() NBPC
2108 # else /* no NBPC */
2110 # define getpagesize() PAGESIZE
2111 # endif /* PAGESIZE */
2112 # endif /* no NBPC */
2113 # endif /* no NBPG */
2114 # endif /* no EXEC_PAGESIZE */
2115 # else /* no HAVE_SYS_PARAM_H */
2116 # define getpagesize() 8192 /* punt totally */
2117 # endif /* no HAVE_SYS_PARAM_H */
2118 # endif /* no _SC_PAGESIZE */
2120 #endif /* no HAVE_GETPAGESIZE */
2123 extern "C" { void *malloc(unsigned); }
2131 char *data, *data2, *data3;
2135 pagesize = getpagesize();
2138 * First, make a file with some known garbage in it.
2140 data = malloc(pagesize);
2143 for (i = 0; i < pagesize; ++i)
2144 *(data + i) = rand();
2146 fd = creat("conftestmmap", 0600);
2149 if (write(fd, data, pagesize) != pagesize)
2154 * Next, try to mmap the file at a fixed address which
2155 * already has something else allocated at it. If we can,
2156 * also make sure that we see the same garbage.
2158 fd = open("conftestmmap", O_RDWR);
2161 data2 = malloc(2 * pagesize);
2164 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2165 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2166 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2168 for (i = 0; i < pagesize; ++i)
2169 if (*(data + i) != *(data2 + i))
2173 * Finally, make sure that changes to the mapped area
2174 * do not percolate back to the file as seen by read().
2175 * (This is a bug on some variants of i386 svr4.0.)
2177 for (i = 0; i < pagesize; ++i)
2178 *(data2 + i) = *(data2 + i) + 1;
2179 data3 = malloc(pagesize);
2182 if (read(fd, data3, pagesize) != pagesize)
2184 for (i = 0; i < pagesize; ++i)
2185 if (*(data + i) != *(data3 + i))
2188 unlink("conftestmmap");
2193 if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2195 ac_cv_func_mmap_fixed_mapped=yes
2197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2200 ac_cv_func_mmap_fixed_mapped=no
2207 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2208 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2209 cat >> confdefs.h <<\EOF
2216 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2217 echo "configure:2218: checking whether we are using the GNU C Library 2.1 or newer" >&5
2218 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2225 #include <features.h>
2226 #ifdef __GNU_LIBRARY__
2227 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2234 egrep "Lucky GNU user" >/dev/null 2>&1; then
2236 ac_cv_gnu_library_2_1=yes
2239 ac_cv_gnu_library_2_1=no
2247 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2249 GLIBC21="$ac_cv_gnu_library_2_1"
2253 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2254 stdlib.h string.h unistd.h sys/param.h
2256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2258 echo "configure:2259: checking for $ac_hdr" >&5
2259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2268 { (eval echo configure:2269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2270 if test -z "$ac_err"; then
2272 eval "ac_cv_header_$ac_safe=yes"
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2278 eval "ac_cv_header_$ac_safe=no"
2282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2285 cat >> confdefs.h <<EOF
2286 #define $ac_tr_hdr 1
2290 echo "$ac_t""no" 1>&6
2294 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2295 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2296 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_func" >&5
2300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 /* System header to define __stub macros and hopefully few prototypes,
2307 which can conflict with char $ac_func(); below. */
2309 /* Override any gcc2 internal prototype to avoid an error. */
2310 /* We use char because int might match the return type of a gcc2
2311 builtin and then its argument prototype would still apply. */
2316 /* The GNU C library defines this for functions which it implements
2317 to always fail with ENOSYS. Some functions are actually named
2318 something starting with __ and the normal name is an alias. */
2319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2327 if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2329 eval "ac_cv_func_$ac_func=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_func_$ac_func=no"
2339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2342 cat >> confdefs.h <<EOF
2343 #define $ac_tr_func 1
2347 echo "$ac_t""no" 1>&6
2354 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2355 if test "${with_libiconv_prefix+set}" = set; then
2356 withval="$with_libiconv_prefix"
2358 for dir in `echo "$withval" | tr : ' '`; do
2359 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2360 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2366 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2367 echo "configure:2368: checking for iconv" >&5
2368 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2372 am_cv_func_iconv="no, consider installing GNU libiconv"
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2380 iconv_t cd = iconv_open("","");
2381 iconv(cd,NULL,NULL,NULL,NULL);
2385 if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2387 am_cv_func_iconv=yes
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2393 if test "$am_cv_func_iconv" != yes; then
2394 am_save_LIBS="$LIBS"
2395 LIBS="$LIBS -liconv"
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2402 iconv_t cd = iconv_open("","");
2403 iconv(cd,NULL,NULL,NULL,NULL);
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2410 am_cv_func_iconv=yes
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2416 LIBS="$am_save_LIBS"
2421 echo "$ac_t""$am_cv_func_iconv" 1>&6
2422 if test "$am_cv_func_iconv" = yes; then
2423 cat >> confdefs.h <<\EOF
2424 #define HAVE_ICONV 1
2427 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2428 echo "configure:2429: checking for iconv declaration" >&5
2429 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2443 #if defined(__STDC__) || defined(__cplusplus)
2444 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2455 am_cv_proto_iconv_arg1=""
2457 echo "configure: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2460 am_cv_proto_iconv_arg1="const"
2463 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);"
2466 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2467 echo "$ac_t""${ac_t:-
2468 }$am_cv_proto_iconv" 1>&6
2469 cat >> confdefs.h <<EOF
2470 #define ICONV_CONST $am_cv_proto_iconv_arg1
2475 if test "$am_cv_lib_iconv" = yes; then
2481 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2482 echo "configure:2483: checking for nl_langinfo and CODESET" >&5
2483 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2489 #include <langinfo.h>
2491 char* cs = nl_langinfo(CODESET);
2494 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496 am_cv_langinfo_codeset=yes
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2501 am_cv_langinfo_codeset=no
2507 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2508 if test $am_cv_langinfo_codeset = yes; then
2509 cat >> confdefs.h <<\EOF
2510 #define HAVE_LANGINFO_CODESET 1
2515 if test $ac_cv_header_locale_h = yes; then
2516 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2517 echo "configure:2518: checking for LC_MESSAGES" >&5
2518 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2531 am_cv_val_LC_MESSAGES=yes
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2536 am_cv_val_LC_MESSAGES=no
2541 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2542 if test $am_cv_val_LC_MESSAGES = yes; then
2543 cat >> confdefs.h <<\EOF
2544 #define HAVE_LC_MESSAGES 1
2549 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2550 echo "configure:2551: checking whether NLS is requested" >&5
2551 # Check whether --enable-nls or --disable-nls was given.
2552 if test "${enable_nls+set}" = set; then
2553 enableval="$enable_nls"
2559 echo "$ac_t""$USE_NLS" 1>&6
2562 BUILD_INCLUDED_LIBINTL=no
2563 USE_INCLUDED_LIBINTL=no
2566 if test "$USE_NLS" = "yes"; then
2567 cat >> confdefs.h <<\EOF
2568 #define ENABLE_NLS 1
2571 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2572 echo "configure:2573: checking whether included gettext is requested" >&5
2573 # Check whether --with-included-gettext or --without-included-gettext was given.
2574 if test "${with_included_gettext+set}" = set; then
2575 withval="$with_included_gettext"
2576 nls_cv_force_use_gnu_gettext=$withval
2578 nls_cv_force_use_gnu_gettext=no
2581 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2583 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2584 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2590 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2591 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2592 echo "configure:2593: checking for libintl.h" >&5
2593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599 #include <libintl.h>
2601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2602 { (eval echo configure:2603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2604 if test -z "$ac_err"; then
2606 eval "ac_cv_header_$ac_safe=yes"
2609 echo "configure: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2612 eval "ac_cv_header_$ac_safe=no"
2616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2617 echo "$ac_t""yes" 1>&6
2618 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2619 echo "configure:2620: checking for GNU gettext in libc" >&5
2620 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2626 #include <libintl.h>
2627 extern int _nl_msg_cat_cntr;
2629 bindtextdomain ("", "");
2630 return (int) gettext ("") + _nl_msg_cat_cntr
2633 if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2635 gt_cv_func_gnugettext1_libc=yes
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 gt_cv_func_gnugettext1_libc=no
2645 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2647 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2648 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2649 echo "configure:2650: checking for GNU gettext in libintl" >&5
2650 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 gt_save_LIBS="$LIBS"
2654 LIBS="$LIBS -lintl $LIBICONV"
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #include <libintl.h>
2659 extern int _nl_msg_cat_cntr;
2661 bindtextdomain ("", "");
2662 return (int) gettext ("") + _nl_msg_cat_cntr
2665 if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2667 gt_cv_func_gnugettext1_libintl=yes
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 gt_cv_func_gnugettext1_libintl=no
2675 LIBS="$gt_save_LIBS"
2678 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2681 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2682 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2683 && test "$PACKAGE" != gettext; }; then
2684 cat >> confdefs.h <<\EOF
2685 #define HAVE_GETTEXT 1
2689 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2690 INTLLIBS="-lintl $LIBICONV"
2693 gt_save_LIBS="$LIBS"
2694 LIBS="$LIBS $INTLLIBS"
2695 for ac_func in dcgettext
2697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2698 echo "configure:2699: checking for $ac_func" >&5
2699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 /* System header to define __stub macros and hopefully few prototypes,
2706 which can conflict with char $ac_func(); below. */
2708 /* Override any gcc2 internal prototype to avoid an error. */
2709 /* We use char because int might match the return type of a gcc2
2710 builtin and then its argument prototype would still apply. */
2715 /* The GNU C library defines this for functions which it implements
2716 to always fail with ENOSYS. Some functions are actually named
2717 something starting with __ and the normal name is an alias. */
2718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2726 if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2728 eval "ac_cv_func_$ac_func=yes"
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2733 eval "ac_cv_func_$ac_func=no"
2738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2739 echo "$ac_t""yes" 1>&6
2740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2741 cat >> confdefs.h <<EOF
2742 #define $ac_tr_func 1
2746 echo "$ac_t""no" 1>&6
2750 LIBS="$gt_save_LIBS"
2752 # Extract the first word of "msgfmt", so it can be a program name with args.
2753 set dummy msgfmt; ac_word=$2
2754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2755 echo "configure:2756: checking for $ac_word" >&5
2756 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2761 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2765 for ac_dir in $PATH; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2769 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2775 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2779 MSGFMT="$ac_cv_path_MSGFMT"
2780 if test "$MSGFMT" != ":"; then
2781 echo "$ac_t""$MSGFMT" 1>&6
2783 echo "$ac_t""no" 1>&6
2786 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2787 set dummy gmsgfmt; ac_word=$2
2788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_word" >&5
2790 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2795 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2798 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2803 for ac_dir in $ac_dummy; do
2804 test -z "$ac_dir" && ac_dir=.
2805 if test -f $ac_dir/$ac_word; then
2806 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2811 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2815 GMSGFMT="$ac_cv_path_GMSGFMT"
2816 if test -n "$GMSGFMT"; then
2817 echo "$ac_t""$GMSGFMT" 1>&6
2819 echo "$ac_t""no" 1>&6
2823 # Extract the first word of "xgettext", so it can be a program name with args.
2824 set dummy xgettext; ac_word=$2
2825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2826 echo "configure:2827: checking for $ac_word" >&5
2827 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2836 for ac_dir in $PATH; do
2837 test -z "$ac_dir" && ac_dir=.
2838 if test -f $ac_dir/$ac_word; then
2839 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2840 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2846 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2850 XGETTEXT="$ac_cv_path_XGETTEXT"
2851 if test "$XGETTEXT" != ":"; then
2852 echo "$ac_t""$XGETTEXT" 1>&6
2854 echo "$ac_t""no" 1>&6
2862 echo "$ac_t""no" 1>&6
2866 if test "$CATOBJEXT" = "NONE"; then
2867 nls_cv_use_gnu_gettext=yes
2871 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2872 INTLOBJS="\$(GETTOBJS)"
2873 # Extract the first word of "msgfmt", so it can be a program name with args.
2874 set dummy msgfmt; ac_word=$2
2875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2876 echo "configure:2877: checking for $ac_word" >&5
2877 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2882 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2886 for ac_dir in $PATH; do
2887 test -z "$ac_dir" && ac_dir=.
2888 if test -f $ac_dir/$ac_word; then
2889 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2890 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2896 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2900 MSGFMT="$ac_cv_path_MSGFMT"
2901 if test "$MSGFMT" != ":"; then
2902 echo "$ac_t""$MSGFMT" 1>&6
2904 echo "$ac_t""no" 1>&6
2907 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2908 set dummy gmsgfmt; ac_word=$2
2909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_word" >&5
2911 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2916 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2919 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2924 for ac_dir in $ac_dummy; do
2925 test -z "$ac_dir" && ac_dir=.
2926 if test -f $ac_dir/$ac_word; then
2927 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2932 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2936 GMSGFMT="$ac_cv_path_GMSGFMT"
2937 if test -n "$GMSGFMT"; then
2938 echo "$ac_t""$GMSGFMT" 1>&6
2940 echo "$ac_t""no" 1>&6
2943 # Extract the first word of "xgettext", so it can be a program name with args.
2944 set dummy xgettext; ac_word=$2
2945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2946 echo "configure:2947: checking for $ac_word" >&5
2947 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2952 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2956 for ac_dir in $PATH; do
2957 test -z "$ac_dir" && ac_dir=.
2958 if test -f $ac_dir/$ac_word; then
2959 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2960 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2966 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2970 XGETTEXT="$ac_cv_path_XGETTEXT"
2971 if test "$XGETTEXT" != ":"; then
2972 echo "$ac_t""$XGETTEXT" 1>&6
2974 echo "$ac_t""no" 1>&6
2978 BUILD_INCLUDED_LIBINTL=yes
2979 USE_INCLUDED_LIBINTL=yes
2981 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2982 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2985 if test "$GMSGFMT" != ":"; then
2986 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2989 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2994 if test "$XGETTEXT" != ":"; then
2995 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2998 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3008 if test "$PACKAGE" = gettext; then
3009 BUILD_INCLUDED_LIBINTL=yes
3012 for ac_prog in bison
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015 set dummy $ac_prog; ac_word=$2
3016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3017 echo "configure:3018: checking for $ac_word" >&5
3018 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 if test -n "$INTLBISON"; then
3022 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3026 for ac_dir in $ac_dummy; do
3027 test -z "$ac_dir" && ac_dir=.
3028 if test -f $ac_dir/$ac_word; then
3029 ac_cv_prog_INTLBISON="$ac_prog"
3036 INTLBISON="$ac_cv_prog_INTLBISON"
3037 if test -n "$INTLBISON"; then
3038 echo "$ac_t""$INTLBISON" 1>&6
3040 echo "$ac_t""no" 1>&6
3043 test -n "$INTLBISON" && break
3046 if test -z "$INTLBISON"; then
3049 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3050 echo "configure:3051: checking version of bison" >&5
3051 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3052 case $ac_prog_version in
3053 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3054 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3055 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3056 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3058 echo "$ac_t""$ac_prog_version" 1>&6
3060 if test $ac_verc_fail = yes; then
3064 for lang in $ALL_LINGUAS; do
3065 GMOFILES="$GMOFILES $lang.gmo"
3066 POFILES="$POFILES $lang.po"
3080 nls_cv_header_libgt=
3092 if test "x$CATOBJEXT" != "x"; then
3093 if test "x$ALL_LINGUAS" = "x"; then
3096 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3097 echo "configure:3098: checking for catalogs to be installed" >&5
3099 for presentlang in $ALL_LINGUAS; do
3101 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3102 # Use the presentlang catalog if desiredlang is
3103 # a. equal to presentlang, or
3104 # b. a variant of presentlang (because in this case,
3105 # presentlang can be used as a fallback for messages
3106 # which are not translated in the desiredlang catalog).
3107 case "$desiredlang" in
3108 "$presentlang"*) useit=yes;;
3111 if test $useit = yes; then
3112 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3115 LINGUAS=$NEW_LINGUAS
3116 echo "$ac_t""$LINGUAS" 1>&6
3119 if test -n "$LINGUAS"; then
3120 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3125 if test -n "$ac_aux_dir"; then
3126 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3128 if test -z "$MKINSTALLDIRS"; then
3129 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3133 INTL_LIBTOOL_SUFFIX_PREFIX=
3137 # Find a good install program. We prefer a C program (faster),
3138 # so one script is as good as another. But avoid the broken or
3139 # incompatible versions:
3140 # SysV /etc/install, /usr/sbin/install
3141 # SunOS /usr/etc/install
3142 # IRIX /sbin/install
3144 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3145 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3146 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3147 # ./install, which can be erroneously created by make from ./install.sh.
3148 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3149 echo "configure:3150: checking for a BSD compatible install" >&5
3150 if test -z "$INSTALL"; then
3151 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3155 for ac_dir in $PATH; do
3156 # Account for people who put trailing slashes in PATH elements.
3158 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3160 # OSF1 and SCO ODT 3.0 have their own names for install.
3161 # Don't use installbsd from OSF since it installs stuff as root
3163 for ac_prog in ginstall scoinst install; do
3164 if test -f $ac_dir/$ac_prog; then
3165 if test $ac_prog = install &&
3166 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3167 # AIX install. It has an incompatible calling convention.
3170 ac_cv_path_install="$ac_dir/$ac_prog -c"
3181 if test "${ac_cv_path_install+set}" = set; then
3182 INSTALL="$ac_cv_path_install"
3184 # As a last resort, use the slow shell script. We don't cache a
3185 # path for INSTALL within a source directory, because that will
3186 # break other packages using the cache if that directory is
3187 # removed, or if the path is relative.
3188 INSTALL="$ac_install_sh"
3191 echo "$ac_t""$INSTALL" 1>&6
3193 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3194 # It thinks the first close brace ends the variable substitution.
3195 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3197 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3199 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3202 echo $ac_n "checking for working const""... $ac_c" 1>&6
3203 echo "configure:3204: checking for working const" >&5
3204 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3213 /* Ultrix mips cc rejects this. */
3214 typedef int charset[2]; const charset x;
3215 /* SunOS 4.1.1 cc rejects this. */
3216 char const *const *ccp;
3218 /* NEC SVR4.0.2 mips cc rejects this. */
3219 struct point {int x, y;};
3220 static struct point const zero = {0,0};
3221 /* AIX XL C 1.02.0.0 rejects this.
3222 It does not let you subtract one const X* pointer from another in an arm
3223 of an if-expression whose if-part is not a constant expression */
3224 const char *g = "string";
3225 ccp = &g + (g ? g-g : 0);
3226 /* HPUX 7.0 cc rejects these. */
3229 ccp = (char const *const *) p;
3230 { /* SCO 3.2v4 cc rejects this. */
3232 char const *s = 0 ? (char *) 0 : (char const *) 0;
3236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3238 const int *foo = &x[0];
3241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3242 typedef const int *iptr;
3246 { /* AIX XL C 1.02.0.0 rejects this saying
3247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3248 struct s { int j; const int *ap[3]; };
3249 struct s *b; b->j = 5;
3251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3257 if { (eval echo configure:3258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3269 echo "$ac_t""$ac_cv_c_const" 1>&6
3270 if test $ac_cv_c_const = no; then
3271 cat >> confdefs.h <<\EOF
3277 echo $ac_n "checking for inline""... $ac_c" 1>&6
3278 echo "configure:3279: checking for inline" >&5
3279 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3283 for ac_kw in inline __inline__ __inline; do
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3292 if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3294 ac_cv_c_inline=$ac_kw; break
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3304 echo "$ac_t""$ac_cv_c_inline" 1>&6
3305 case "$ac_cv_c_inline" in
3307 no) cat >> confdefs.h <<\EOF
3311 *) cat >> confdefs.h <<EOF
3312 #define inline $ac_cv_c_inline
3318 vlc_LDFLAGS="${LDFLAGS}"
3320 case "x${target_os}" in
3329 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3330 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3331 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3335 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3339 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3340 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3344 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}windres; ac_word=$2
3346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3347 echo "configure:3348: checking for $ac_word" >&5
3348 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 if test -n "$WINDRES"; then
3352 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3356 for ac_dir in $ac_dummy; do
3357 test -z "$ac_dir" && ac_dir=.
3358 if test -f $ac_dir/$ac_word; then
3359 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3366 WINDRES="$ac_cv_prog_WINDRES"
3367 if test -n "$WINDRES"; then
3368 echo "$ac_t""$WINDRES" 1>&6
3370 echo "$ac_t""no" 1>&6
3374 if test -z "$ac_cv_prog_WINDRES"; then
3375 if test -n "$ac_tool_prefix"; then
3376 # Extract the first word of "windres", so it can be a program name with args.
3377 set dummy windres; ac_word=$2
3378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3379 echo "configure:3380: checking for $ac_word" >&5
3380 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 if test -n "$WINDRES"; then
3384 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3388 for ac_dir in $ac_dummy; do
3389 test -z "$ac_dir" && ac_dir=.
3390 if test -f $ac_dir/$ac_word; then
3391 ac_cv_prog_WINDRES="windres"
3396 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3399 WINDRES="$ac_cv_prog_WINDRES"
3400 if test -n "$WINDRES"; then
3401 echo "$ac_t""$WINDRES" 1>&6
3403 echo "$ac_t""no" 1>&6
3411 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3412 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3413 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3414 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3415 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3416 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3417 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3421 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3422 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3429 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3430 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3431 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3432 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3433 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3440 if test "x${SYS}" = "xmingw32"
3442 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3444 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3445 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3448 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3450 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3453 echo "configure:3454: checking for $ac_func" >&5
3454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* System header to define __stub macros and hopefully few prototypes,
3461 which can conflict with char $ac_func(); below. */
3463 /* Override any gcc2 internal prototype to avoid an error. */
3464 /* We use char because int might match the return type of a gcc2
3465 builtin and then its argument prototype would still apply. */
3470 /* The GNU C library defines this for functions which it implements
3471 to always fail with ENOSYS. Some functions are actually named
3472 something starting with __ and the normal name is an alias. */
3473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3481 if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3483 eval "ac_cv_func_$ac_func=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 eval "ac_cv_func_$ac_func=no"
3493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3496 cat >> confdefs.h <<EOF
3497 #define $ac_tr_func 1
3501 echo "$ac_t""no" 1>&6
3506 echo $ac_n "checking for connect""... $ac_c" 1>&6
3507 echo "configure:3508: checking for connect" >&5
3508 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 /* System header to define __stub macros and hopefully few prototypes,
3515 which can conflict with char connect(); below. */
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3524 /* The GNU C library defines this for functions which it implements
3525 to always fail with ENOSYS. Some functions are actually named
3526 something starting with __ and the normal name is an alias. */
3527 #if defined (__stub_connect) || defined (__stub___connect)
3535 if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3537 eval "ac_cv_func_connect=yes"
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3542 eval "ac_cv_func_connect=no"
3547 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3551 echo "$ac_t""no" 1>&6
3553 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3554 echo "configure:3555: checking for connect in -lsocket" >&5
3555 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 ac_save_LIBS="$LIBS"
3560 LIBS="-lsocket $LIBS"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3573 if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3575 eval "ac_cv_lib_$ac_lib_var=yes"
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3580 eval "ac_cv_lib_$ac_lib_var=no"
3583 LIBS="$ac_save_LIBS"
3586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3588 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3589 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3592 echo "$ac_t""no" 1>&6
3597 echo $ac_n "checking for send""... $ac_c" 1>&6
3598 echo "configure:3599: checking for send" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* System header to define __stub macros and hopefully few prototypes,
3606 which can conflict with char send(); below. */
3608 /* Override any gcc2 internal prototype to avoid an error. */
3609 /* We use char because int might match the return type of a gcc2
3610 builtin and then its argument prototype would still apply. */
3615 /* The GNU C library defines this for functions which it implements
3616 to always fail with ENOSYS. Some functions are actually named
3617 something starting with __ and the normal name is an alias. */
3618 #if defined (__stub_send) || defined (__stub___send)
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 eval "ac_cv_func_send=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 eval "ac_cv_func_send=no"
3638 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3642 echo "$ac_t""no" 1>&6
3644 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3645 echo "configure:3646: checking for send in -lsocket" >&5
3646 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 ac_save_LIBS="$LIBS"
3651 LIBS="-lsocket $LIBS"
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 /* Override any gcc2 internal prototype to avoid an error. */
3656 /* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */
3664 if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3666 eval "ac_cv_lib_$ac_lib_var=yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3671 eval "ac_cv_lib_$ac_lib_var=no"
3674 LIBS="$ac_save_LIBS"
3677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3678 echo "$ac_t""yes" 1>&6
3679 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3682 echo "$ac_t""no" 1>&6
3687 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3688 echo "configure:3689: checking for gethostbyname" >&5
3689 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 /* System header to define __stub macros and hopefully few prototypes,
3696 which can conflict with char gethostbyname(); below. */
3698 /* Override any gcc2 internal prototype to avoid an error. */
3699 /* We use char because int might match the return type of a gcc2
3700 builtin and then its argument prototype would still apply. */
3701 char gethostbyname();
3705 /* The GNU C library defines this for functions which it implements
3706 to always fail with ENOSYS. Some functions are actually named
3707 something starting with __ and the normal name is an alias. */
3708 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3716 if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3718 eval "ac_cv_func_gethostbyname=yes"
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3723 eval "ac_cv_func_gethostbyname=no"
3728 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3729 echo "$ac_t""yes" 1>&6
3732 echo "$ac_t""no" 1>&6
3734 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3735 echo "configure:3736: checking for gethostbyname in -lnsl" >&5
3736 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 ac_save_LIBS="$LIBS"
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 /* Override any gcc2 internal prototype to avoid an error. */
3746 /* We use char because int might match the return type of a gcc2
3747 builtin and then its argument prototype would still apply. */
3748 char gethostbyname();
3754 if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3756 eval "ac_cv_lib_$ac_lib_var=yes"
3758 echo "configure: failed program was:" >&5
3759 cat conftest.$ac_ext >&5
3761 eval "ac_cv_lib_$ac_lib_var=no"
3764 LIBS="$ac_save_LIBS"
3767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3768 echo "$ac_t""yes" 1>&6
3769 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3771 echo "$ac_t""no" 1>&6
3777 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3778 echo "configure:3779: checking for gethostbyname" >&5
3779 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 /* System header to define __stub macros and hopefully few prototypes,
3786 which can conflict with char gethostbyname(); below. */
3788 /* Override any gcc2 internal prototype to avoid an error. */
3789 /* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */
3791 char gethostbyname();
3795 /* The GNU C library defines this for functions which it implements
3796 to always fail with ENOSYS. Some functions are actually named
3797 something starting with __ and the normal name is an alias. */
3798 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3806 if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3808 eval "ac_cv_func_gethostbyname=yes"
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3813 eval "ac_cv_func_gethostbyname=no"
3818 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3819 echo "$ac_t""yes" 1>&6
3822 echo "$ac_t""no" 1>&6
3824 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3825 echo "configure:3826: checking for gethostbyname in -lbind" >&5
3826 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 ac_save_LIBS="$LIBS"
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 /* Override any gcc2 internal prototype to avoid an error. */
3836 /* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3838 char gethostbyname();
3844 if { (eval echo configure:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3846 eval "ac_cv_lib_$ac_lib_var=yes"
3848 echo "configure: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3851 eval "ac_cv_lib_$ac_lib_var=no"
3854 LIBS="$ac_save_LIBS"
3857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3858 echo "$ac_t""yes" 1>&6
3859 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3861 echo "$ac_t""no" 1>&6
3868 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3869 echo "configure:3870: checking for nanosleep" >&5
3870 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 /* System header to define __stub macros and hopefully few prototypes,
3877 which can conflict with char nanosleep(); below. */
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. */
3886 /* The GNU C library defines this for functions which it implements
3887 to always fail with ENOSYS. Some functions are actually named
3888 something starting with __ and the normal name is an alias. */
3889 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3899 eval "ac_cv_func_nanosleep=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3904 eval "ac_cv_func_nanosleep=no"
3909 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3913 echo "$ac_t""no" 1>&6
3915 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3916 echo "configure:3917: checking for nanosleep in -lrt" >&5
3917 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 ac_save_LIBS="$LIBS"
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3935 if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3937 eval "ac_cv_lib_$ac_lib_var=yes"
3939 echo "configure: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3942 eval "ac_cv_lib_$ac_lib_var=no"
3945 LIBS="$ac_save_LIBS"
3948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3950 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3952 echo "$ac_t""no" 1>&6
3953 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3954 echo "configure:3955: checking for nanosleep in -lposix4" >&5
3955 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3959 ac_save_LIBS="$LIBS"
3960 LIBS="-lposix4 $LIBS"
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3964 /* Override any gcc2 internal prototype to avoid an error. */
3965 /* We use char because int might match the return type of a gcc2
3966 builtin and then its argument prototype would still apply. */
3973 if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3975 eval "ac_cv_lib_$ac_lib_var=yes"
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3980 eval "ac_cv_lib_$ac_lib_var=no"
3983 LIBS="$ac_save_LIBS"
3986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3988 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3990 echo "$ac_t""no" 1>&6
3999 if test x$have_nanosleep = x1; then
4000 cat >> confdefs.h <<\EOF
4001 #define HAVE_NANOSLEEP 1
4006 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
4007 echo "configure:4008: checking for sem_init in -lrt" >&5
4008 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
4009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 ac_save_LIBS="$LIBS"
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 /* Override any gcc2 internal prototype to avoid an error. */
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4026 if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4028 eval "ac_cv_lib_$ac_lib_var=yes"
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4033 eval "ac_cv_lib_$ac_lib_var=no"
4036 LIBS="$ac_save_LIBS"
4039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4041 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
4043 echo "$ac_t""no" 1>&6
4047 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
4048 echo "configure:4049: checking for inet_aton" >&5
4049 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 /* System header to define __stub macros and hopefully few prototypes,
4056 which can conflict with char inet_aton(); below. */
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. */
4065 /* The GNU C library defines this for functions which it implements
4066 to always fail with ENOSYS. Some functions are actually named
4067 something starting with __ and the normal name is an alias. */
4068 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4076 if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4078 eval "ac_cv_func_inet_aton=yes"
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 eval "ac_cv_func_inet_aton=no"
4088 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
4089 echo "$ac_t""yes" 1>&6
4092 echo "$ac_t""no" 1>&6
4094 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4095 echo "configure:4096: checking for inet_aton in -lresolv" >&5
4096 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
4097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 ac_save_LIBS="$LIBS"
4101 LIBS="-lresolv $LIBS"
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4105 /* Override any gcc2 internal prototype to avoid an error. */
4106 /* We use char because int might match the return type of a gcc2
4107 builtin and then its argument prototype would still apply. */
4114 if { (eval echo configure:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 eval "ac_cv_lib_$ac_lib_var=yes"
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4121 eval "ac_cv_lib_$ac_lib_var=no"
4124 LIBS="$ac_save_LIBS"
4127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4129 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4131 echo "$ac_t""no" 1>&6
4137 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4138 echo "configure:4139: checking for textdomain" >&5
4139 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* System header to define __stub macros and hopefully few prototypes,
4146 which can conflict with char textdomain(); below. */
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. */
4155 /* The GNU C library defines this for functions which it implements
4156 to always fail with ENOSYS. Some functions are actually named
4157 something starting with __ and the normal name is an alias. */
4158 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4166 if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4168 eval "ac_cv_func_textdomain=yes"
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4173 eval "ac_cv_func_textdomain=no"
4178 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4182 echo "$ac_t""no" 1>&6
4184 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4185 echo "configure:4186: checking for textdomain in -lintl" >&5
4186 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 ac_save_LIBS="$LIBS"
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
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. */
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4206 eval "ac_cv_lib_$ac_lib_var=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 eval "ac_cv_lib_$ac_lib_var=no"
4214 LIBS="$ac_save_LIBS"
4217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4218 echo "$ac_t""yes" 1>&6
4219 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4220 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4223 echo "$ac_t""no" 1>&6
4231 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4232 echo "configure:4233: checking for getopt_long" >&5
4233 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 /* System header to define __stub macros and hopefully few prototypes,
4240 which can conflict with char getopt_long(); below. */
4242 /* Override any gcc2 internal prototype to avoid an error. */
4243 /* We use char because int might match the return type of a gcc2
4244 builtin and then its argument prototype would still apply. */
4249 /* The GNU C library defines this for functions which it implements
4250 to always fail with ENOSYS. Some functions are actually named
4251 something starting with __ and the normal name is an alias. */
4252 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4260 if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4262 eval "ac_cv_func_getopt_long=yes"
4264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4267 eval "ac_cv_func_getopt_long=no"
4272 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4274 cat >> confdefs.h <<\EOF
4275 #define HAVE_GETOPT_LONG 1
4279 echo "$ac_t""no" 1>&6
4280 # FreeBSD has a gnugetopt library for this:
4281 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4282 echo "configure:4283: checking for getopt_long in -lgnugetopt" >&5
4283 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4287 ac_save_LIBS="$LIBS"
4288 LIBS="-lgnugetopt $LIBS"
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 /* Override any gcc2 internal prototype to avoid an error. */
4293 /* We use char because int might match the return type of a gcc2
4294 builtin and then its argument prototype would still apply. */
4301 if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4303 eval "ac_cv_lib_$ac_lib_var=yes"
4305 echo "configure: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4308 eval "ac_cv_lib_$ac_lib_var=no"
4311 LIBS="$ac_save_LIBS"
4314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4315 echo "$ac_t""yes" 1>&6
4316 cat >> confdefs.h <<\EOF
4317 #define HAVE_GETOPT_LONG 1
4319 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4321 echo "$ac_t""no" 1>&6
4328 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4329 echo "configure:4330: checking return type of signal handlers" >&5
4330 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 #include <sys/types.h>
4342 extern "C" void (*signal (int, void (*)(int)))(int);
4344 void (*signal ()) ();
4351 if { (eval echo configure:4352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4353 ac_cv_type_signal=void
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4358 ac_cv_type_signal=int
4363 echo "$ac_t""$ac_cv_type_signal" 1>&6
4364 cat >> confdefs.h <<EOF
4365 #define RETSIGTYPE $ac_cv_type_signal
4369 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4370 echo "configure:4371: checking for dlopen in -ldl" >&5
4371 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 ac_save_LIBS="$LIBS"
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4391 eval "ac_cv_lib_$ac_lib_var=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 eval "ac_cv_lib_$ac_lib_var=no"
4399 LIBS="$ac_save_LIBS"
4402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4404 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4406 echo "$ac_t""no" 1>&6
4409 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4410 echo "configure:4411: checking for cos in -lm" >&5
4411 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 ac_save_LIBS="$LIBS"
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420 /* Override any gcc2 internal prototype to avoid an error. */
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4429 if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4431 eval "ac_cv_lib_$ac_lib_var=yes"
4433 echo "configure: failed program was:" >&5
4434 cat conftest.$ac_ext >&5
4436 eval "ac_cv_lib_$ac_lib_var=no"
4439 LIBS="$ac_save_LIBS"
4442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4443 echo "$ac_t""yes" 1>&6
4444 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4445 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4447 echo "$ac_t""no" 1>&6
4450 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4451 echo "configure:4452: checking for pow in -lm" >&5
4452 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4456 ac_save_LIBS="$LIBS"
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* Override any gcc2 internal prototype to avoid an error. */
4462 /* We use char because int might match the return type of a gcc2
4463 builtin and then its argument prototype would still apply. */
4470 if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4472 eval "ac_cv_lib_$ac_lib_var=yes"
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4477 eval "ac_cv_lib_$ac_lib_var=no"
4480 LIBS="$ac_save_LIBS"
4483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4486 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4487 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4488 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4489 i420_rgb_LDFLAGS="${i420_rgb_LDFLAGS} -lm"
4492 echo "$ac_t""no" 1>&6
4497 if test "x${THREAD_LIB}" = "xerror"; then
4498 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4499 echo "configure:4500: checking for main in -lpthread" >&5
4500 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 ac_save_LIBS="$LIBS"
4505 LIBS="-lpthread $LIBS"
4506 cat > conftest.$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4516 eval "ac_cv_lib_$ac_lib_var=yes"
4518 echo "configure: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4521 eval "ac_cv_lib_$ac_lib_var=no"
4524 LIBS="$ac_save_LIBS"
4527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4528 echo "$ac_t""yes" 1>&6
4529 THREAD_LIB="-lpthread"
4531 echo "$ac_t""no" 1>&6
4535 if test "x${THREAD_LIB}" = "xerror"; then
4536 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4537 echo "configure:4538: checking for main in -lpthreads" >&5
4538 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 ac_save_LIBS="$LIBS"
4543 LIBS="-lpthreads $LIBS"
4544 cat > conftest.$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4554 eval "ac_cv_lib_$ac_lib_var=yes"
4556 echo "configure: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4559 eval "ac_cv_lib_$ac_lib_var=no"
4562 LIBS="$ac_save_LIBS"
4565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4566 echo "$ac_t""yes" 1>&6
4567 THREAD_LIB="-lpthreads"
4569 echo "$ac_t""no" 1>&6
4573 if test "x${THREAD_LIB}" = "xerror"; then
4574 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4575 echo "configure:4576: checking for main in -lc_r" >&5
4576 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4580 ac_save_LIBS="$LIBS"
4582 cat > conftest.$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4590 if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4592 eval "ac_cv_lib_$ac_lib_var=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4597 eval "ac_cv_lib_$ac_lib_var=no"
4600 LIBS="$ac_save_LIBS"
4603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4607 echo "$ac_t""no" 1>&6
4611 if test "x${THREAD_LIB}" = "xerror"; then
4612 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4613 echo "configure:4614: checking for pthread_mutex_lock" >&5
4614 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620 /* System header to define __stub macros and hopefully few prototypes,
4621 which can conflict with char pthread_mutex_lock(); below. */
4623 /* Override any gcc2 internal prototype to avoid an error. */
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4626 char pthread_mutex_lock();
4630 /* The GNU C library defines this for functions which it implements
4631 to always fail with ENOSYS. Some functions are actually named
4632 something starting with __ and the normal name is an alias. */
4633 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4636 pthread_mutex_lock();
4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4643 eval "ac_cv_func_pthread_mutex_lock=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 eval "ac_cv_func_pthread_mutex_lock=no"
4653 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4654 echo "$ac_t""yes" 1>&6
4657 echo "$ac_t""no" 1>&6
4663 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4664 echo "configure:4665: checking for cthread_fork in -lthreads" >&5
4665 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 ac_save_LIBS="$LIBS"
4670 LIBS="-lthreads $LIBS"
4671 cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677 char cthread_fork();
4683 if { (eval echo configure:4684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4685 eval "ac_cv_lib_$ac_lib_var=yes"
4687 echo "configure: failed program was:" >&5
4688 cat conftest.$ac_ext >&5
4690 eval "ac_cv_lib_$ac_lib_var=no"
4693 LIBS="$ac_save_LIBS"
4696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4697 echo "$ac_t""yes" 1>&6
4698 THREAD_LIB="-lthreads"
4700 echo "$ac_t""no" 1>&6
4704 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4707 #include <pthread.h>
4709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4710 egrep "pthread_cond_t" >/dev/null 2>&1; then
4713 cat >> confdefs.h <<\EOF
4714 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 #include <pthread.h>
4725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726 egrep "pthread_once" >/dev/null 2>&1; then
4729 cat >> confdefs.h <<\EOF
4730 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 #include <strings.h>
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 egrep "strncasecmp" >/dev/null 2>&1; then
4745 cat >> confdefs.h <<\EOF
4746 #define STRNCASECMP_IN_STRINGS_H 1
4753 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_hdr" >&5
4758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4767 { (eval echo configure:4768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4769 if test -z "$ac_err"; then
4771 eval "ac_cv_header_$ac_safe=yes"
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4777 eval "ac_cv_header_$ac_safe=no"
4781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4782 echo "$ac_t""yes" 1>&6
4783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4784 cat >> confdefs.h <<EOF
4785 #define $ac_tr_hdr 1
4789 echo "$ac_t""no" 1>&6
4793 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4797 echo "configure:4798: checking for $ac_hdr" >&5
4798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4807 { (eval echo configure:4808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4809 if test -z "$ac_err"; then
4811 eval "ac_cv_header_$ac_safe=yes"
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4817 eval "ac_cv_header_$ac_safe=no"
4821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4822 echo "$ac_t""yes" 1>&6
4823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4824 cat >> confdefs.h <<EOF
4825 #define $ac_tr_hdr 1
4829 echo "$ac_t""no" 1>&6
4833 for ac_hdr in dlfcn.h image.h
4835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4837 echo "configure:4838: checking for $ac_hdr" >&5
4838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4847 { (eval echo configure:4848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4849 if test -z "$ac_err"; then
4851 eval "ac_cv_header_$ac_safe=yes"
4854 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5
4857 eval "ac_cv_header_$ac_safe=no"
4861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4862 echo "$ac_t""yes" 1>&6
4863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4864 cat >> confdefs.h <<EOF
4865 #define $ac_tr_hdr 1
4869 echo "$ac_t""no" 1>&6
4873 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4877 echo "configure:4878: checking for $ac_hdr" >&5
4878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4887 { (eval echo configure:4888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4889 if test -z "$ac_err"; then
4891 eval "ac_cv_header_$ac_safe=yes"
4894 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4897 eval "ac_cv_header_$ac_safe=no"
4901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4902 echo "$ac_t""yes" 1>&6
4903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4904 cat >> confdefs.h <<EOF
4905 #define $ac_tr_hdr 1
4909 echo "$ac_t""no" 1>&6
4913 for ac_hdr in machine/param.h sys/shm.h
4915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4917 echo "configure:4918: checking for $ac_hdr" >&5
4918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4919 echo $ac_n "(cached) $ac_c" 1>&6
4921 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4927 { (eval echo configure:4928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4929 if test -z "$ac_err"; then
4931 eval "ac_cv_header_$ac_safe=yes"
4934 echo "configure: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4937 eval "ac_cv_header_$ac_safe=no"
4941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4942 echo "$ac_t""yes" 1>&6
4943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4944 cat >> confdefs.h <<EOF
4945 #define $ac_tr_hdr 1
4949 echo "$ac_t""no" 1>&6
4953 for ac_hdr in linux/version.h
4955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4957 echo "configure:4958: checking for $ac_hdr" >&5
4958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4967 { (eval echo configure:4968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4969 if test -z "$ac_err"; then
4971 eval "ac_cv_header_$ac_safe=yes"
4974 echo "configure: failed program was:" >&5
4975 cat conftest.$ac_ext >&5
4977 eval "ac_cv_header_$ac_safe=no"
4981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4982 echo "$ac_t""yes" 1>&6
4983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4984 cat >> confdefs.h <<EOF
4985 #define $ac_tr_hdr 1
4989 echo "$ac_t""no" 1>&6
4994 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4995 echo "configure:4996: checking whether time.h and sys/time.h may both be included" >&5
4996 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 #include <sys/types.h>
5003 #include <sys/time.h>
5009 if { (eval echo configure:5010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5011 ac_cv_header_time=yes
5013 echo "configure: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5016 ac_cv_header_time=no
5021 echo "$ac_t""$ac_cv_header_time" 1>&6
5022 if test $ac_cv_header_time = yes; then
5023 cat >> confdefs.h <<\EOF
5024 #define TIME_WITH_SYS_TIME 1
5030 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5036 egrep "nanosleep" >/dev/null 2>&1; then
5039 cat >> confdefs.h <<\EOF
5040 #define HAVE_DECL_NANOSLEEP 1
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 #include <sys/time.h>
5053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5054 egrep "timespec" >/dev/null 2>&1; then
5057 cat >> confdefs.h <<\EOF
5058 #define HAVE_STRUCT_TIMESPEC 1
5066 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
5068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5070 echo "configure:5071: checking for $ac_hdr" >&5
5071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5080 { (eval echo configure:5081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5082 if test -z "$ac_err"; then
5084 eval "ac_cv_header_$ac_safe=yes"
5087 echo "configure: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5090 eval "ac_cv_header_$ac_safe=no"
5094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5095 echo "$ac_t""yes" 1>&6
5096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5097 cat >> confdefs.h <<EOF
5098 #define $ac_tr_hdr 1
5102 echo "$ac_t""no" 1>&6
5107 if test "x${x_includes}" = "xNONE"; then
5108 x_includes="/usr/X11R6/include"
5110 if test "x${x_libraries}" = "xNONE"; then
5111 x_libraries="/usr/X11R6/lib"
5114 if test "x${SYS}" != "xmingw32"
5116 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
5117 for ac_hdr in X11/extensions/dpms.h
5119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5121 echo "configure:5122: checking for $ac_hdr" >&5
5122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5131 { (eval echo configure:5132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5133 if test -z "$ac_err"; then
5135 eval "ac_cv_header_$ac_safe=yes"
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5141 eval "ac_cv_header_$ac_safe=no"
5145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5146 echo "$ac_t""yes" 1>&6
5147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5148 cat >> confdefs.h <<EOF
5149 #define $ac_tr_hdr 1
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 #include <X11/extensions/dpms.h>
5157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 egrep "DPMSInfo" >/dev/null 2>&1; then
5161 cat >> confdefs.h <<\EOF
5162 #define DPMSINFO_IN_DPMS_H 1
5171 echo "$ac_t""no" 1>&6
5175 CPPFLAGS="${save_CPPFLAGS}"
5178 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5179 echo "configure:5180: checking for ntohl in sys/param.h" >&5
5180 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 CFLAGS="${save_CFLAGS} -Wall -Werror"
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 #include <sys/param.h>
5189 void foo() { int meuh; ntohl(meuh); }
5192 if { (eval echo configure:5193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5194 ac_cv_c_ntohl_sys_param_h=yes
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 ac_cv_c_ntohl_sys_param_h=no
5204 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5205 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5206 cat >> confdefs.h <<\EOF
5207 #define NTOHL_IN_SYS_PARAM_H 1
5212 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5213 echo "configure:5214: checking if \$CC accepts -finline-limit" >&5
5214 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5217 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5226 if { (eval echo configure:5227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5228 ac_cv_c_inline_limit=yes
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5233 ac_cv_c_inline_limit=no
5238 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5239 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5240 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5243 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5244 echo "configure:5245: checking if \$CC accepts -Wall -Winline" >&5
5245 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5248 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5249 cat > conftest.$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5257 if { (eval echo configure:5258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5259 ac_cv_c_Wall_Winline=yes
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 ac_cv_c_Wall_Winline=no
5269 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5270 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5271 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5273 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5274 echo "configure:5275: checking if \$CC accepts -wall -winline" >&5
5275 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 CFLAGS="-wall -winline ${save_CFLAGS}"
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5287 if { (eval echo configure:5288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5289 ac_cv_c_wall_winline=yes
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 ac_cv_c_wall_winline=no
5299 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5300 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5301 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5305 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5306 echo "configure:5307: checking if \$CC accepts -pipe" >&5
5307 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5308 echo $ac_n "(cached) $ac_c" 1>&6
5310 CFLAGS="${save_CFLAGS} -pipe"
5311 cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5319 if { (eval echo configure:5320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5331 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5332 if test "x${ac_cv_c_pipe}" != "xno"; then
5333 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5336 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5337 echo "configure:5338: checking if \$CC accepts -O3" >&5
5338 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5341 CFLAGS="${save_CFLAGS} -O3"
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5350 if { (eval echo configure:5351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5354 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5
5362 echo "$ac_t""$ac_cv_c_o3" 1>&6
5363 if test "x${ac_cv_c_o3}" != "xno"; then
5364 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5366 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5367 echo "configure:5368: checking if \$CC accepts -O2" >&5
5368 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 CFLAGS="${save_CFLAGS} -O2"
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5380 if { (eval echo configure:5381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5384 echo "configure: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5392 echo "$ac_t""$ac_cv_c_o2" 1>&6
5393 if test "x${ac_cv_c_o2}" != "xno"; then
5394 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5396 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5397 echo "configure:5398: checking if \$CC accepts -O" >&5
5398 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5399 echo $ac_n "(cached) $ac_c" 1>&6
5401 CFLAGS="${save_CFLAGS} -O"
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5410 if { (eval echo configure:5411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5422 echo "$ac_t""$ac_cv_c_o" 1>&6
5423 if test "x${ac_cv_c_o}" != "xno"; then
5424 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5429 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5430 echo "configure:5431: checking if \$CC accepts -ffast-math" >&5
5431 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5434 CFLAGS="${save_CFLAGS} -ffast-math"
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5443 if { (eval echo configure:5444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5445 ac_cv_c_fast_math=yes
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5450 ac_cv_c_fast_math=no
5455 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5456 if test "x${ac_cv_c_fast_math}" != "xno"; then
5457 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5460 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5461 echo "configure:5462: checking if \$CC accepts -funroll-loops" >&5
5462 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 CFLAGS="${save_CFLAGS} -funroll-loops"
5466 cat > conftest.$ac_ext <<EOF
5467 #line 5468 "configure"
5468 #include "confdefs.h"
5474 if { (eval echo configure:5475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5476 ac_cv_c_unroll_loops=yes
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5481 ac_cv_c_unroll_loops=no
5486 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5487 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5488 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5491 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5492 echo "configure:5493: checking if \$CC accepts -fomit-frame-pointer" >&5
5493 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5494 echo $ac_n "(cached) $ac_c" 1>&6
5496 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5505 if { (eval echo configure:5506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5507 ac_cv_c_omit_frame_pointer=yes
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5512 ac_cv_c_omit_frame_pointer=no
5517 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5518 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5519 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5520 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5521 i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5524 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5525 echo "configure:5526: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5526 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5529 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5538 if { (eval echo configure:5539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5542 echo "configure: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5550 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5551 if test "x${ac_cv_ld_darwin}" != "xno"; then
5552 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5555 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5556 echo "configure:5557: checking if \$CC accepts -shared" >&5
5557 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 CFLAGS="${save_CFLAGS} -shared"
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5569 if { (eval echo configure:5570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5571 ac_cv_ld_plugins=yes
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5581 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5582 if test "x${ac_cv_ld_plugins}" != "xno"; then
5583 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5586 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5587 echo "configure:5588: checking for variadic cpp macros" >&5
5588 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5591 CFLAGS="${save_CFLAGS}"
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5596 #define a(b,c...) printf(b,##c)
5598 a("foo");a("%s","bar");a("%s%s","baz","quux");
5601 if { (eval echo configure:5602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5603 ac_cv_cpp_variadic_macros=yes
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5608 ac_cv_cpp_variadic_macros=no
5613 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5614 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5615 cat >> confdefs.h <<\EOF
5616 #define HAVE_VARIADIC_MACROS 1
5621 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5622 echo "configure:5623: checking __attribute__ ((aligned ())) support" >&5
5623 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5624 echo $ac_n "(cached) $ac_c" 1>&6
5626 ac_cv_c_attribute_aligned=0
5627 CFLAGS="${save_CFLAGS} -Werror"
5628 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5629 cat > conftest.$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5634 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5637 if { (eval echo configure:5638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5639 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5641 echo "configure: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5646 CFLAGS="${save_CFLAGS}"
5649 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5650 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5651 cat >> confdefs.h <<EOF
5652 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5657 case "x${target_cpu}" in
5662 ARCH="${target_cpu}"
5666 BUILTINS="${BUILTINS}"
5667 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null/null"
5668 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file access/udp access/http misc/network/ipv4 misc/memcpy/memcpy"
5669 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/mpeg_system demux/mpeg/ps demux/mpeg/ts"
5670 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"
5671 #PLUGINS="${PLUGINS} codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/mpeg_audio/mpeg_audio codec/a52old/a52old codec/lpcm/lpcm"
5672 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5673 PLUGINS="${PLUGINS} audio_filter/converter/float32tos16 audio_filter/converter/a52tospdif"
5674 PLUGINS="${PLUGINS} audio_filter/resampler/trivial"
5675 PLUGINS="${PLUGINS} audio_mixer/trivial audio_mixer/spdif"
5676 PLUGINS="${PLUGINS} audio_output/file"
5677 #PLUGINS="${PLUGINS} visualization/scope/scope"
5678 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5680 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"
5681 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5682 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5683 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5684 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5686 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5687 echo "configure:5688: checking if \$CC groks MMX inline assembly" >&5
5688 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5691 CFLAGS="${save_CFLAGS}"
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5697 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5700 if { (eval echo configure:5701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5702 ac_cv_mmx_inline=yes
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5712 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5713 if test "x${ac_cv_mmx_inline}" != "xno"; then
5714 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5717 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5718 echo "configure:5719: checking if \$CC groks MMX EXT inline assembly" >&5
5719 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 CFLAGS="${save_CFLAGS}"
5723 cat > conftest.$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5728 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5731 if { (eval echo configure:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5733 ac_cv_mmxext_inline=yes
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5738 ac_cv_mmxext_inline=no
5743 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5744 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5745 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5748 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5749 echo "configure:5750: checking if \$CC groks 3D Now! inline assembly" >&5
5750 if eval "test \"`echo '$''{'ac_cv_3dnow_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("pfadd %%mm1,%%mm2"::"r"(p));
5762 if { (eval echo configure:5763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5764 ac_cv_3dnow_inline=yes
5766 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5769 ac_cv_3dnow_inline=no
5774 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5775 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5776 cat >> confdefs.h <<\EOF
5777 #define CAN_COMPILE_3DNOW 1
5780 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5783 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5784 echo "configure:5785: checking if \$CC groks SSE inline assembly" >&5
5785 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5786 echo $ac_n "(cached) $ac_c" 1>&6
5788 CFLAGS="${save_CFLAGS}"
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5794 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5797 if { (eval echo configure:5798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5799 ac_cv_sse_inline=yes
5801 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5809 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5810 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5811 cat >> confdefs.h <<\EOF
5812 #define CAN_COMPILE_SSE 1
5815 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5818 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5819 # we should be able to remove this test with future versions of mingw32
5820 if test "x${SYS}" != "xmingw32"; then
5821 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5822 echo "configure:5823: checking if \$CC groks AltiVec inline assembly" >&5
5823 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5824 echo $ac_n "(cached) $ac_c" 1>&6
5826 CFLAGS="${save_CFLAGS}"
5827 cat > conftest.$ac_ext <<EOF
5828 #line 5829 "configure"
5829 #include "confdefs.h"
5832 asm volatile("vperm 0,1,2,3");
5835 if { (eval echo configure:5836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5837 ac_cv_altivec_inline=yes
5839 echo "configure: failed program was:" >&5
5840 cat conftest.$ac_ext >&5
5842 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5843 cat > conftest.$ac_ext <<EOF
5844 #line 5845 "configure"
5845 #include "confdefs.h"
5848 asm volatile("vperm 0,1,2,3");
5851 if { (eval echo configure:5852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5853 ac_cv_altivec_inline="-Wa,-m7400"
5855 echo "configure: failed program was:" >&5
5856 cat conftest.$ac_ext >&5
5858 ac_cv_altivec_inline=no
5866 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5867 if test "x${ac_cv_altivec_inline}" != "xno"; then
5868 cat >> confdefs.h <<\EOF
5869 #define CAN_COMPILE_ALTIVEC 1
5872 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5873 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5874 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5875 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5876 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5878 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5881 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5882 echo "configure:5883: checking if \$CC groks AltiVec C extensions" >&5
5883 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 CFLAGS="${save_CFLAGS} -faltivec"
5888 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5893 vec_mtvscr((vector unsigned int)(0));
5896 if { (eval echo configure:5897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5898 ac_cv_c_altivec=-faltivec
5900 echo "configure: failed program was:" >&5
5901 cat conftest.$ac_ext >&5
5905 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5911 vec_mtvscr((vector unsigned int)(0));
5914 if { (eval echo configure:5915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5916 ac_cv_c_altivec="-fvec"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5927 CFLAGS="${save_CFLAGS}"
5930 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5931 if test "x${ac_cv_c_altivec}" != "xno"; then
5932 cat >> confdefs.h <<\EOF
5933 #define CAN_COMPILE_C_ALTIVEC 1
5936 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5937 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5938 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5939 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5940 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5943 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5944 echo "configure:5945: checking if linker needs -framework vecLib" >&5
5945 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5948 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5959 ac_cv_ld_altivec=yes
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5967 LDFLAGS="${save_LDFLAGS}"
5971 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5972 if test "x${ac_cv_ld_altivec}" != "xno"; then
5973 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5974 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5975 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5976 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5981 # Check whether --with- or --without- was given.
5982 if test "${with_+set}" = set; then
5987 # Check whether --with- or --without- was given.
5988 if test "${with_+set}" = set; then
5994 # Check whether --with-tuning or --without-tuning was given.
5995 if test "${with_tuning+set}" = set; then
5996 withval="$with_tuning"
6000 if test "x${with_tuning}" != "x"; then
6001 TUNING="${with_tuning}"
6003 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
6005 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
6009 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
6012 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
6015 # Check whether --enable-optimizations or --disable-optimizations was given.
6016 if test "${enable_optimizations+set}" = set; then
6017 enableval="$enable_optimizations"
6018 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
6024 # Check whether --enable-altivec or --disable-altivec was given.
6025 if test "${enable_altivec+set}" = set; then
6026 enableval="$enable_altivec"
6027 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
6028 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6030 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
6031 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6036 # Check whether --enable-debug or --disable-debug was given.
6037 if test "${enable_debug+set}" = set; then
6038 enableval="$enable_debug"
6039 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
6044 # Check whether --enable-release or --disable-release was given.
6045 if test "${enable_release+set}" = set; then
6046 enableval="$enable_release"
6047 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
6049 VERSION="${VERSION}_`date +%Y-%m-%d`"
6054 # Check whether --with- or --without- was given.
6055 if test "${with_+set}" = set; then
6061 # Check whether --enable-dvd or --disable-dvd was given.
6062 if test "${enable_dvd+set}" = set; then
6063 enableval="$enable_dvd"
6067 if test "x${enable_dvd}" != "xno"
6069 # Check whether --with-dvdcss or --without-dvdcss was given.
6070 if test "${with_dvdcss+set}" = set; then
6071 withval="$with_dvdcss"
6075 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
6076 if test "${with_dvdcss_tree+set}" = set; then
6077 withval="$with_dvdcss_tree"
6081 case "x${with_dvdcss}" in
6083 if test "x${with_dvdcss_tree}" = x
6085 for ac_hdr in dvdcss/dvdcss.h
6087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6089 echo "configure:6090: checking for $ac_hdr" >&5
6090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 cat > conftest.$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6099 { (eval echo configure:6100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6101 if test -z "$ac_err"; then
6103 eval "ac_cv_header_$ac_safe=yes"
6106 echo "configure: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6109 eval "ac_cv_header_$ac_safe=no"
6113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6114 echo "$ac_t""yes" 1>&6
6115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6116 cat >> confdefs.h <<EOF
6117 #define $ac_tr_hdr 1
6119 PLUGINS="${PLUGINS} access/dvd/dvd"
6120 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
6122 echo "$ac_t""no" 1>&6
6123 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
6124 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
6129 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
6130 echo "configure:6131: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
6131 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6132 if test "x${real_dvdcss_tree}" = "x"
6134 echo "$ac_t""no" 1>&6
6135 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6137 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6139 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6140 BUILTINS="${BUILTINS} access/dvd/dvd"
6141 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6142 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6144 echo "$ac_t""no" 1>&6
6145 { 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; }
6150 PLUGINS="${PLUGINS} access/dvd/dvd"
6151 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6152 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6155 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6156 echo "configure:6157: checking for dvdcss headers in ${with_dvdcss}" >&5
6157 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6159 echo "$ac_t""yes" 1>&6
6160 PLUGINS="${PLUGINS} access/dvd/dvd"
6161 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6162 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6164 echo "$ac_t""no" 1>&6
6165 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6171 # Check whether --enable-dvdread or --disable-dvdread was given.
6172 if test "${enable_dvdread+set}" = set; then
6173 enableval="$enable_dvdread"
6177 if test "x${enable_dvdread}" != "xno"
6179 # Check whether --with-dvdread or --without-dvdread was given.
6180 if test "${with_dvdread+set}" = set; then
6181 withval="$with_dvdread"
6185 if test "x${with_dvdread}" = "x"
6190 test_LDFLAGS="-L${with_dvdread}/lib"
6191 test_CFLAGS="-I${with_dvdread}/include"
6193 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6194 for ac_hdr in dvdread/dvd_reader.h
6196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6198 echo "configure:6199: checking for $ac_hdr" >&5
6199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6200 echo $ac_n "(cached) $ac_c" 1>&6
6202 cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6208 { (eval echo configure:6209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6210 if test -z "$ac_err"; then
6212 eval "ac_cv_header_$ac_safe=yes"
6215 echo "configure: failed program was:" >&5
6216 cat conftest.$ac_ext >&5
6218 eval "ac_cv_header_$ac_safe=no"
6222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6223 echo "$ac_t""yes" 1>&6
6224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6225 cat >> confdefs.h <<EOF
6226 #define $ac_tr_hdr 1
6229 cat > conftest.$ac_ext <<EOF
6230 #line 6231 "configure"
6231 #include "confdefs.h"
6232 #include <dvdread/dvd_reader.h>
6234 void foo() { int i=DVD_VIDEO_LB_LEN; }
6237 if { (eval echo configure:6238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6240 PLUGINS="${PLUGINS} access/dvdread/dvdread"
6241 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6242 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6245 echo "configure: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6249 if test "x${enable_dvdread}" != "x"
6251 { 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; }
6258 echo "$ac_t""no" 1>&6
6259 if test "x${enable_dvdread}" != "x"
6261 if test "x${with_dvdread}" != "x"
6263 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6265 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6272 CPPFLAGS="$save_CPPFLAGS"
6275 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6276 if test "${enable_dvdplay+set}" = set; then
6277 enableval="$enable_dvdplay"
6281 if test "x$enable_dvdplay" != "xno"
6283 # Check whether --with-dvdplay or --without-dvdplay was given.
6284 if test "${with_dvdplay+set}" = set; then
6285 withval="$with_dvdplay"
6289 if test "x$with_dvdplay" = x
6294 test_LDFLAGS="-L${with_dvdplay}/lib"
6295 test_CFLAGS="-I${with_dvdplay}/include"
6297 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6298 for ac_hdr in dvdplay/dvdplay.h
6300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6302 echo "configure:6303: checking for $ac_hdr" >&5
6303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6304 echo $ac_n "(cached) $ac_c" 1>&6
6306 cat > conftest.$ac_ext <<EOF
6307 #line 6308 "configure"
6308 #include "confdefs.h"
6311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6312 { (eval echo configure:6313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6314 if test -z "$ac_err"; then
6316 eval "ac_cv_header_$ac_safe=yes"
6319 echo "configure: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6322 eval "ac_cv_header_$ac_safe=no"
6326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6327 echo "$ac_t""yes" 1>&6
6328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6329 cat >> confdefs.h <<EOF
6330 #define $ac_tr_hdr 1
6333 PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6334 dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6335 dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6338 echo "$ac_t""no" 1>&6
6339 if test "x$enable_dvdplay" != x
6341 if test "x$with_dvdplay" != x
6343 { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6345 { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6352 CPPFLAGS="${save_CPPFLAGS}"
6356 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6357 if test "${enable_dvbpsi+set}" = set; then
6358 enableval="$enable_dvbpsi"
6362 if test "x${enable_dvbpsi}" != "xno"
6364 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6365 if test "${with_dvbpsi+set}" = set; then
6366 withval="$with_dvbpsi"
6370 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6371 if test "${with_dvbpsi+set}" = set; then
6372 withval="$with_dvbpsi"
6376 case "x${with_dvbpsi}" in
6378 if test "x${with_dvbpsi_tree}" = "x"
6380 for ac_hdr in dvbpsi/dr.h
6382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6384 echo "configure:6385: checking for $ac_hdr" >&5
6385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6388 cat > conftest.$ac_ext <<EOF
6389 #line 6390 "configure"
6390 #include "confdefs.h"
6393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6394 { (eval echo configure:6395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6396 if test -z "$ac_err"; then
6398 eval "ac_cv_header_$ac_safe=yes"
6401 echo "configure: failed program was:" >&5
6402 cat conftest.$ac_ext >&5
6404 eval "ac_cv_header_$ac_safe=no"
6408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6409 echo "$ac_t""yes" 1>&6
6410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6411 cat >> confdefs.h <<EOF
6412 #define $ac_tr_hdr 1
6414 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6415 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi"
6417 echo "$ac_t""no" 1>&6
6422 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6423 echo "configure:6424: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6424 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6425 if test "x${real_dvbpsi_tree}" = "x"
6427 echo "$ac_t""no" 1>&6
6428 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6430 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6432 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6433 BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6434 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6435 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6437 echo "$ac_t""no" 1>&6
6438 { 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; }
6445 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6446 echo "configure:6447: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6447 if test "x${with_dvbpsi}" = "x"
6452 test_LDFLAGS="-L${with_dvbpsi}/lib"
6453 test_CFLAGS="-I${with_dvbpsi}/include"
6455 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6456 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6457 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6458 echo "configure:6459: checking for dvbpsi/dr.h" >&5
6459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6460 echo $ac_n "(cached) $ac_c" 1>&6
6462 cat > conftest.$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6465 #include <dvbpsi/dr.h>
6467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6468 { (eval echo configure:6469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6470 if test -z "$ac_err"; then
6472 eval "ac_cv_header_$ac_safe=yes"
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6478 eval "ac_cv_header_$ac_safe=no"
6482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6483 echo "$ac_t""yes" 1>&6
6485 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6486 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6487 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6490 echo "$ac_t""no" 1>&6
6492 if test "x${enable_dvbpsi}" != "x"
6494 { 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; }
6499 CPPFLAGS="${save_CPPFLAGS}"
6504 # Check whether --enable-v4l or --disable-v4l was given.
6505 if test "${enable_v4l+set}" = set; then
6506 enableval="$enable_v4l"
6510 if test "x${enable_v4l}" = "xyes"
6512 for ac_hdr in libv4l/v4l.h
6514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6516 echo "configure:6517: checking for $ac_hdr" >&5
6517 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6518 echo $ac_n "(cached) $ac_c" 1>&6
6520 cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6526 { (eval echo configure:6527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6528 if test -z "$ac_err"; then
6530 eval "ac_cv_header_$ac_safe=yes"
6533 echo "configure: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6536 eval "ac_cv_header_$ac_safe=no"
6540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6541 echo "$ac_t""yes" 1>&6
6542 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6543 cat >> confdefs.h <<EOF
6544 #define $ac_tr_hdr 1
6547 PLUGINS="${PLUGINS} access/v4l/v4l"
6550 echo "$ac_t""no" 1>&6
6556 # Check whether --enable-vcd or --disable-vcd was given.
6557 if test "${enable_vcd+set}" = set; then
6558 enableval="$enable_vcd"
6563 if test "x${enable_vcd}" != "xno"
6565 cat > conftest.$ac_ext <<EOF
6566 #line 6567 "configure"
6567 #include "confdefs.h"
6568 #include <linux/cdrom.h>
6570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6571 egrep "cdrom_msf0" >/dev/null 2>&1; then
6574 PLUGINS="${PLUGINS} access/vcd/vcd"
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 #include <sys/cdio.h>
6585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6586 egrep "ioc_toc_header " >/dev/null 2>&1; then
6589 PLUGINS="${PLUGINS} access/vcd/vcd"
6590 cat >> confdefs.h <<\EOF
6591 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6599 if test "x${SYS}" = "xbsdi"
6601 PLUGINS="${PLUGINS} access/vcd/vcd"
6604 if test "x${SYS}" = "xdarwin"
6606 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6607 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6611 # Check whether --enable-satellite or --disable-satellite was given.
6612 if test "${enable_satellite+set}" = set; then
6613 enableval="$enable_satellite"
6614 if test "x${enable_satellite}" = "xyes"
6616 PLUGINS="${PLUGINS} access/satellite/satellite"
6621 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6624 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6625 echo "configure:6626: checking for inet_pton" >&5
6626 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6627 echo $ac_n "(cached) $ac_c" 1>&6
6629 cat > conftest.$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6632 /* System header to define __stub macros and hopefully few prototypes,
6633 which can conflict with char inet_pton(); below. */
6635 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6642 /* The GNU C library defines this for functions which it implements
6643 to always fail with ENOSYS. Some functions are actually named
6644 something starting with __ and the normal name is an alias. */
6645 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6653 if { (eval echo configure:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6655 eval "ac_cv_func_inet_pton=yes"
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6660 eval "ac_cv_func_inet_pton=no"
6665 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6666 echo "$ac_t""yes" 1>&6
6669 echo "$ac_t""no" 1>&6
6671 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6672 echo "configure:6673: checking for inet_pton in -lresolv" >&5
6673 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6675 echo $ac_n "(cached) $ac_c" 1>&6
6677 ac_save_LIBS="$LIBS"
6678 LIBS="-lresolv $LIBS"
6679 cat > conftest.$ac_ext <<EOF
6680 #line 6681 "configure"
6681 #include "confdefs.h"
6682 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6691 if { (eval echo configure:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6693 eval "ac_cv_lib_$ac_lib_var=yes"
6695 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 eval "ac_cv_lib_$ac_lib_var=no"
6701 LIBS="$ac_save_LIBS"
6704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6705 echo "$ac_t""yes" 1>&6
6707 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6709 echo "$ac_t""no" 1>&6
6715 echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6716 echo "configure:6717: checking for sockaddr_in6 in netinet/in.h" >&5
6717 cat > conftest.$ac_ext <<EOF
6718 #line 6719 "configure"
6719 #include "confdefs.h"
6720 #include <netinet/in.h>
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723 egrep "sockaddr_in6" >/dev/null 2>&1; then
6725 echo "$ac_t""yes" 1>&6
6728 echo "$ac_t""no" 1>&6; have_ipv6=0
6732 if test x$have_ipv6 = x1; then
6733 PLUGINS="${PLUGINS} misc/network/ipv6"
6736 if test "x${SYS}" = "xmingw32"
6738 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6739 echo "configure:6740: checking for getaddrinfo in ws2tcpip.h" >&5
6740 cat > conftest.$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6743 #include <ws2tcpip.h>
6745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6746 egrep "addrinfo" >/dev/null 2>&1; then
6748 echo "$ac_t""yes" 1>&6
6749 PLUGINS="${PLUGINS} misc/network/ipv6"
6752 echo "$ac_t""no" 1>&6
6758 # Check whether --enable-avi or --disable-avi was given.
6759 if test "${enable_avi+set}" = set; then
6760 enableval="$enable_avi"
6764 if test "x${enable_avi}" != "xno"
6766 PLUGINS="${PLUGINS} demux/avi/avi"
6769 # Check whether --enable-aac or --disable-aac was given.
6770 if test "${enable_aac+set}" = set; then
6771 enableval="$enable_aac"
6775 if test "x${enable_aac}" != "xno"
6777 PLUGINS="${PLUGINS} demux/aac/aac"
6781 # Check whether --with- or --without- was given.
6782 if test "${with_+set}" = set; then
6788 # Check whether --enable-mad or --disable-mad was given.
6789 if test "${enable_mad+set}" = set; then
6790 enableval="$enable_mad"
6794 if test "x${enable_mad}" = "xyes"
6796 # Check whether --with-mad or --without-mad was given.
6797 if test "${with_mad+set}" = set; then
6802 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6804 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6805 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6808 # Check whether --with-mad-tree or --without-mad-tree was given.
6809 if test "${with_mad_tree+set}" = set; then
6810 withval="$with_mad_tree"
6814 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6816 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6817 if test "x${real_mad_tree}" = "x"
6819 echo "$ac_t""no" 1>&6
6820 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6822 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6823 echo "configure:6824: checking for mad.h in ${real_mad_tree}/libmad" >&5
6824 if test -f ${real_mad_tree}/libmad/mad.h
6826 echo "$ac_t""yes" 1>&6
6827 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6828 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6829 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6830 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6831 echo "configure:6832: checking for mad_bit_init in -lmad" >&5
6832 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6834 echo $ac_n "(cached) $ac_c" 1>&6
6836 ac_save_LIBS="$LIBS"
6838 cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6841 /* Override any gcc2 internal prototype to avoid an error. */
6842 /* We use char because int might match the return type of a gcc2
6843 builtin and then its argument prototype would still apply. */
6844 char mad_bit_init();
6850 if { (eval echo configure:6851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6852 eval "ac_cv_lib_$ac_lib_var=yes"
6854 echo "configure: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6857 eval "ac_cv_lib_$ac_lib_var=no"
6860 LIBS="$ac_save_LIBS"
6863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6864 echo "$ac_t""yes" 1>&6
6866 BUILTINS="${BUILTINS} codec/mad/mad"
6867 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6870 echo "$ac_t""no" 1>&6
6871 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6875 LDFLAGS="${save_LDFLAGS}"
6877 echo "$ac_t""no" 1>&6
6878 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6881 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6882 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6887 echo "configure:6888: checking for $ac_hdr" >&5
6888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6897 { (eval echo configure:6898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6899 if test -z "$ac_err"; then
6901 eval "ac_cv_header_$ac_safe=yes"
6904 echo "configure: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 eval "ac_cv_header_$ac_safe=no"
6911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6912 echo "$ac_t""yes" 1>&6
6913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6914 cat >> confdefs.h <<EOF
6915 #define $ac_tr_hdr 1
6919 echo "$ac_t""no" 1>&6
6920 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6924 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6925 echo "configure:6926: checking for mad_bit_init in -lmad" >&5
6926 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6930 ac_save_LIBS="$LIBS"
6932 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6935 /* Override any gcc2 internal prototype to avoid an error. */
6936 /* We use char because int might match the return type of a gcc2
6937 builtin and then its argument prototype would still apply. */
6938 char mad_bit_init();
6944 if { (eval echo configure:6945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6946 eval "ac_cv_lib_$ac_lib_var=yes"
6948 echo "configure: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 eval "ac_cv_lib_$ac_lib_var=no"
6954 LIBS="$ac_save_LIBS"
6957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6958 echo "$ac_t""yes" 1>&6
6960 PLUGINS="${PLUGINS} codec/mad/mad"
6961 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6963 echo "$ac_t""no" 1>&6
6964 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6967 CFLAGS="${save_CFLAGS}"
6968 LDFLAGS="${save_LDFLAGS}"
6972 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6973 if test "${enable_ffmpeg+set}" = set; then
6974 enableval="$enable_ffmpeg"
6978 if test "x${enable_ffmpeg}" = "xyes"
6980 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6981 if test "${with_ffmpeg+set}" = set; then
6982 withval="$with_ffmpeg"
6986 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6988 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6989 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6992 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c"
6993 if test "x${ac_cv_mmx_inline}" != "xno"; then
6994 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx"
6997 if test "x${ac_cv_mmxext_inline}" != "xno"; then
6998 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext"
7002 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
7003 if test "${with_ffmpeg_tree+set}" = set; then
7004 withval="$with_ffmpeg_tree"
7008 if test "x${with_ffmpeg_tree}" != "x"
7010 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
7011 echo "configure:7012: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
7012 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
7013 if test "x${real_ffmpeg_tree}" = x
7015 echo "$ac_t""no" 1>&6
7016 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
7018 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
7020 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
7021 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7022 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
7023 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
7025 echo "$ac_t""no" 1>&6
7026 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
7029 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
7030 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
7031 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
7032 echo "configure:7033: checking for avcodec_init in -lavcodec" >&5
7033 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
7034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 ac_save_LIBS="$LIBS"
7038 LIBS="-lavcodec $LIBS"
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 /* Override any gcc2 internal prototype to avoid an error. */
7043 /* We use char because int might match the return type of a gcc2
7044 builtin and then its argument prototype would still apply. */
7045 char avcodec_init();
7051 if { (eval echo configure:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7053 eval "ac_cv_lib_$ac_lib_var=yes"
7055 echo "configure: failed program was:" >&5
7056 cat conftest.$ac_ext >&5
7058 eval "ac_cv_lib_$ac_lib_var=no"
7061 LIBS="$ac_save_LIBS"
7064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7065 echo "$ac_t""yes" 1>&6
7067 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7068 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
7070 echo "$ac_t""no" 1>&6
7071 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
7074 LDFLAGS="${save_LDFLAGS}"
7075 CFLAGS="${save_CFLAGS}"
7079 # Check whether --enable-faad or --disable-faad was given.
7080 if test "${enable_faad+set}" = set; then
7081 enableval="$enable_faad"
7085 if test "x${enable_faad}" = "xyes"
7087 # Check whether --with-faad or --without-faad was given.
7088 if test "${with_faad+set}" = set; then
7089 withval="$with_faad"
7093 if test "x${with_faad}" != "xno" -a "x${with_faad}" != "x"
7095 faad_CFLAGS="${faad_CFLAGS} -I${with_faad}/include"
7096 faad_LDFLAGS="${faad_LDFLAGS} -L${with_faad}/lib"
7098 faad_LDFLAGS="${faad_LDFLAGS} -lm"
7100 # Check whether --with-faad-tree or --without-faad-tree was given.
7101 if test "${with_faad_tree+set}" = set; then
7102 withval="$with_faad_tree"
7106 if test "x${with_faad_tree}" != "x"
7108 echo $ac_n "checking for libfaad.a in ${with_faad_tree}""... $ac_c" 1>&6
7109 echo "configure:7110: checking for libfaad.a in ${with_faad_tree}" >&5
7110 real_faad_tree="`cd ${with_faad_tree} 2>/dev/null && pwd`"
7111 if test "x${real_faad_tree}" = x
7113 echo "$ac_t""no" 1>&6
7114 { echo "configure: error: cannot cd to ${with_faad_tree}" 1>&2; exit 1; }
7116 if test -f "${real_faad_tree}/libfaad/.libs/libfaad.a"
7118 echo "$ac_t""${real_faad_tree}/libfaad/.libs/libfaad.a" 1>&6
7119 BUILTINS="${BUILTINS} codec/faad/faad"
7120 faad_LDFLAGS="${faad_LDFLAGS} ${real_faad_tree}/libfaad/.libs/libfaad.a"
7121 faad_CFLAGS="${faad_CFLAGS} -I${real_faad_tree}/include"
7123 echo "$ac_t""no" 1>&6
7124 { 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; }
7127 CFLAGS="${save_CFLAGS} ${faad_CFLAGS}"
7128 LDFLAGS="${save_LDFLAGS} ${faad_LDFLAGS}"
7129 for ac_hdr in faad.h
7131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7133 echo "configure:7134: checking for $ac_hdr" >&5
7134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7135 echo $ac_n "(cached) $ac_c" 1>&6
7137 cat > conftest.$ac_ext <<EOF
7138 #line 7139 "configure"
7139 #include "confdefs.h"
7142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7143 { (eval echo configure:7144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7145 if test -z "$ac_err"; then
7147 eval "ac_cv_header_$ac_safe=yes"
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7153 eval "ac_cv_header_$ac_safe=no"
7157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7158 echo "$ac_t""yes" 1>&6
7159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7160 cat >> confdefs.h <<EOF
7161 #define $ac_tr_hdr 1
7165 echo "$ac_t""no" 1>&6
7166 { echo "configure: error: Cannot find development headers for libfaad..." 1>&2; exit 1; }
7170 echo $ac_n "checking for faacDecOpen in -lfaad""... $ac_c" 1>&6
7171 echo "configure:7172: checking for faacDecOpen in -lfaad" >&5
7172 ac_lib_var=`echo faad'_'faacDecOpen | sed 'y%./+-%__p_%'`
7173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7176 ac_save_LIBS="$LIBS"
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 /* Override any gcc2 internal prototype to avoid an error. */
7182 /* We use char because int might match the return type of a gcc2
7183 builtin and then its argument prototype would still apply. */
7190 if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7192 eval "ac_cv_lib_$ac_lib_var=yes"
7194 echo "configure: failed program was:" >&5
7195 cat conftest.$ac_ext >&5
7197 eval "ac_cv_lib_$ac_lib_var=no"
7200 LIBS="$ac_save_LIBS"
7203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7204 echo "$ac_t""yes" 1>&6
7206 PLUGINS="${PLUGINS} codec/faad/faad"
7207 faad_LDFLAGS="${faad_LDFLAGS} -lfaad"
7209 echo "$ac_t""no" 1>&6
7210 { echo "configure: error: Cannot find libfaad library..." 1>&2; exit 1; }
7213 LDFLAGS="${save_LDFLAGS}"
7214 CFLAGS="${save_CFLAGS}"
7220 # Check whether --enable-mp4 or --disable-mp4 was given.
7221 if test "${enable_mp4+set}" = set; then
7222 enableval="$enable_mp4"
7226 if test "x${enable_mp4}" != "xno"
7229 PLUGINS="${PLUGINS} demux/mp4/mp4"
7230 for ac_hdr in zlib.h
7232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7234 echo "configure:7235: checking for $ac_hdr" >&5
7235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7244 { (eval echo configure:7245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7246 if test -z "$ac_err"; then
7248 eval "ac_cv_header_$ac_safe=yes"
7251 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5
7254 eval "ac_cv_header_$ac_safe=no"
7258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7259 echo "$ac_t""yes" 1>&6
7260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7261 cat >> confdefs.h <<EOF
7262 #define $ac_tr_hdr 1
7264 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
7266 echo "$ac_t""no" 1>&6
7272 # Check whether --enable-a52 or --disable-a52 was given.
7273 if test "${enable_a52+set}" = set; then
7274 enableval="$enable_a52"
7278 if test "x${enable_a52}" != "xno"
7280 # Check whether --with-a52 or --without-a52 was given.
7281 if test "${with_a52+set}" = set; then
7286 # Check whether --with-a52-tree or --without-a52-tree was given.
7287 if test "${with_a52_tree+set}" = set; then
7288 withval="$with_a52_tree"
7292 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
7294 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
7295 if test "x${real_a52_tree}" = "x"
7297 echo "$ac_t""no" 1>&6
7298 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
7300 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
7301 echo "configure:7302: checking for a52.h in ${real_a52_tree}/include" >&5
7302 if test -f ${real_a52_tree}/include/a52.h
7304 echo "$ac_t""yes" 1>&6
7305 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
7306 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
7307 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
7308 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7309 echo "configure:7310: checking for a52_free in -la52" >&5
7310 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7312 echo $ac_n "(cached) $ac_c" 1>&6
7314 ac_save_LIBS="$LIBS"
7315 LIBS="-la52 -lm $LIBS"
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7319 /* Override any gcc2 internal prototype to avoid an error. */
7320 /* We use char because int might match the return type of a gcc2
7321 builtin and then its argument prototype would still apply. */
7328 if { (eval echo configure:7329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7330 eval "ac_cv_lib_$ac_lib_var=yes"
7332 echo "configure: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7335 eval "ac_cv_lib_$ac_lib_var=no"
7338 LIBS="$ac_save_LIBS"
7341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7342 echo "$ac_t""yes" 1>&6
7344 BUILTINS="${BUILTINS} codec/a52"
7345 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7346 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7349 echo "$ac_t""no" 1>&6
7351 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7353 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7355 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7360 LDFLAGS="${save_LDFLAGS}"
7362 echo "$ac_t""no" 1>&6
7363 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7366 if test "x${with_a52}" = "x"
7371 test_LDFLAGS="-L${with_a52}/lib"
7372 test_CFLAGS="-I${with_a52}/include"
7374 save_CPPFLAGS="${CPPFLAGS}"
7375 save_LDFLAGS="${LDFLAGS}"
7376 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
7377 LDFLAGS="${save_LDFLAGS} ${test_LDFLAGS}"
7378 for ac_hdr in a52dec/a52.h
7380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7382 echo "configure:7383: checking for $ac_hdr" >&5
7383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7384 echo $ac_n "(cached) $ac_c" 1>&6
7386 cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7392 { (eval echo configure:7393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7394 if test -z "$ac_err"; then
7396 eval "ac_cv_header_$ac_safe=yes"
7399 echo "configure: failed program was:" >&5
7400 cat conftest.$ac_ext >&5
7402 eval "ac_cv_header_$ac_safe=no"
7406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7407 echo "$ac_t""yes" 1>&6
7408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7409 cat >> confdefs.h <<EOF
7410 #define $ac_tr_hdr 1
7413 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7414 echo "configure:7415: checking for a52_free in -la52" >&5
7415 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7419 ac_save_LIBS="$LIBS"
7420 LIBS="-la52 -lm $LIBS"
7421 cat > conftest.$ac_ext <<EOF
7422 #line 7423 "configure"
7423 #include "confdefs.h"
7424 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7433 if { (eval echo configure:7434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7435 eval "ac_cv_lib_$ac_lib_var=yes"
7437 echo "configure: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7440 eval "ac_cv_lib_$ac_lib_var=no"
7443 LIBS="$ac_save_LIBS"
7446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7447 echo "$ac_t""yes" 1>&6
7449 BUILTINS="${BUILTINS} codec/a52"
7450 a52_LDFLAGS="${a52_LDFLAGS} ${test_LDFLAGS} -la52 -lm"
7451 a52_CFLAGS="${a52_CFLAGS} ${test_CFLAGS}"
7454 echo "$ac_t""no" 1>&6
7456 if test "x${enable_dvbpsi}" != "x"
7458 { echo "configure: error: Could not find a52 on your system: you may get it from http://liba52.sf.net" 1>&2; exit 1; }
7465 echo "$ac_t""no" 1>&6
7469 CPPFLAGS="${save_CPPFLAGS}"
7470 LDFLAGS="${save_LDFLAGS}"
7474 # Check whether --enable-cinepak or --disable-cinepak was given.
7475 if test "${enable_cinepak+set}" = set; then
7476 enableval="$enable_cinepak"
7480 if test "x${enable_cinepak}" != "xno"
7482 PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7485 # Check whether --enable-vorbis or --disable-vorbis was given.
7486 if test "${enable_vorbis+set}" = set; then
7487 enableval="$enable_vorbis"
7491 if test "x${enable_vorbis}" != "xno"
7493 for ac_hdr in ogg/ogg.h
7495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7497 echo "configure:7498: checking for $ac_hdr" >&5
7498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7501 cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7507 { (eval echo configure:7508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7509 if test -z "$ac_err"; then
7511 eval "ac_cv_header_$ac_safe=yes"
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7517 eval "ac_cv_header_$ac_safe=no"
7521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7522 echo "$ac_t""yes" 1>&6
7523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7524 cat >> confdefs.h <<EOF
7525 #define $ac_tr_hdr 1
7528 #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7529 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7532 echo "$ac_t""no" 1>&6
7538 # Check whether --enable-dv or --disable-dv was given.
7539 if test "${enable_dv+set}" = set; then
7540 enableval="$enable_dv"
7544 if test "x${enable_dv}" = "xyes"
7546 for ac_hdr in libdv/dv.h
7548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7550 echo "configure:7551: checking for $ac_hdr" >&5
7551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7552 echo $ac_n "(cached) $ac_c" 1>&6
7554 cat > conftest.$ac_ext <<EOF
7555 #line 7556 "configure"
7556 #include "confdefs.h"
7559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7560 { (eval echo configure:7561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7562 if test -z "$ac_err"; then
7564 eval "ac_cv_header_$ac_safe=yes"
7567 echo "configure: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7570 eval "ac_cv_header_$ac_safe=no"
7574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7575 echo "$ac_t""yes" 1>&6
7576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7577 cat >> confdefs.h <<EOF
7578 #define $ac_tr_hdr 1
7581 BUILTINS="${BUILTINS} codec/dv/dv"
7582 dv_LDFLAGS="${dv_LDFLAGS} -ldv"
7585 echo "$ac_t""no" 1>&6
7592 # Check whether --with- or --without- was given.
7593 if test "${with_+set}" = set; then
7599 # Check whether --enable-x11 or --disable-x11 was given.
7600 if test "${enable_x11+set}" = set; then
7601 enableval="$enable_x11"
7605 if test "x${enable_x11}" != "xno" &&
7606 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7607 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7608 for ac_hdr in X11/Xlib.h
7610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7612 echo "configure:7613: checking for $ac_hdr" >&5
7613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7616 cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7622 { (eval echo configure:7623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7624 if test -z "$ac_err"; then
7626 eval "ac_cv_header_$ac_safe=yes"
7629 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7632 eval "ac_cv_header_$ac_safe=no"
7636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7637 echo "$ac_t""yes" 1>&6
7638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7639 cat >> confdefs.h <<EOF
7640 #define $ac_tr_hdr 1
7643 PLUGINS="${PLUGINS} video_output/x11/x11"
7644 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7645 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7648 echo "$ac_t""no" 1>&6
7652 CPPFLAGS="${save_CPPFLAGS}"
7655 # Check whether --enable-xvideo or --disable-xvideo was given.
7656 if test "${enable_xvideo+set}" = set; then
7657 enableval="$enable_xvideo"
7661 if test "x${enable_xvideo}" != "xno" &&
7662 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7663 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7664 for ac_hdr in X11/extensions/Xv.h
7666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7668 echo "configure:7669: checking for $ac_hdr" >&5
7669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7678 { (eval echo configure:7679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7680 if test -z "$ac_err"; then
7682 eval "ac_cv_header_$ac_safe=yes"
7685 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7688 eval "ac_cv_header_$ac_safe=no"
7692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7693 echo "$ac_t""yes" 1>&6
7694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7695 cat >> confdefs.h <<EOF
7696 #define $ac_tr_hdr 1
7699 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7700 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7701 echo "configure:7702: checking for XvPutImage in -lXv_pic" >&5
7702 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7706 ac_save_LIBS="$LIBS"
7707 LIBS="-lXv_pic $LIBS"
7708 cat > conftest.$ac_ext <<EOF
7709 #line 7710 "configure"
7710 #include "confdefs.h"
7711 /* Override any gcc2 internal prototype to avoid an error. */
7712 /* We use char because int might match the return type of a gcc2
7713 builtin and then its argument prototype would still apply. */
7720 if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7722 eval "ac_cv_lib_$ac_lib_var=yes"
7724 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7727 eval "ac_cv_lib_$ac_lib_var=no"
7730 LIBS="$ac_save_LIBS"
7733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7734 echo "$ac_t""yes" 1>&6
7735 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7736 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7737 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7738 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7740 echo "$ac_t""no" 1>&6
7741 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7742 echo "configure:7743: checking for XvPutImage in -lXv" >&5
7743 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 ac_save_LIBS="$LIBS"
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7763 eval "ac_cv_lib_$ac_lib_var=yes"
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7768 eval "ac_cv_lib_$ac_lib_var=no"
7771 LIBS="$ac_save_LIBS"
7774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7775 echo "$ac_t""yes" 1>&6
7776 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7777 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7778 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7779 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7781 echo "$ac_t""no" 1>&6
7782 # Otherwise... well, do nothing.
7790 CFLAGS="${save_CFLAGS}"
7792 CPPFLAGS="${save_CPPFLAGS}"
7794 echo "$ac_t""no" 1>&6
7800 # Check whether --enable-sdl or --disable-sdl was given.
7801 if test "${enable_sdl+set}" = set; then
7802 enableval="$enable_sdl"
7806 if test "x${enable_sdl}" != "xno"
7809 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7810 if test "${with_sdl_config_path+set}" = set; then
7811 withval="$with_sdl_config_path"
7812 if test "x${with_sdl_config_path}" != "xno"
7814 SDL_PATH="${with_sdl_config_path}:${PATH}"
7818 # Extract the first word of "sdl12-config", so it can be a program name with args.
7819 set dummy sdl12-config; ac_word=$2
7820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7821 echo "configure:7822: checking for $ac_word" >&5
7822 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7825 case "$SDL12_CONFIG" in
7827 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7830 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7834 ac_dummy="${SDL_PATH}"
7835 for ac_dir in $ac_dummy; do
7836 test -z "$ac_dir" && ac_dir=.
7837 if test -f $ac_dir/$ac_word; then
7838 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7843 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7847 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7848 if test -n "$SDL12_CONFIG"; then
7849 echo "$ac_t""$SDL12_CONFIG" 1>&6
7851 echo "$ac_t""no" 1>&6
7854 SDL_CONFIG="${SDL12_CONFIG}"
7855 SDL_HEADER="SDL12/SDL.h"
7856 if test "x${SDL_CONFIG}" = "xno"
7858 # Extract the first word of "sdl11-config", so it can be a program name with args.
7859 set dummy sdl11-config; ac_word=$2
7860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7861 echo "configure:7862: checking for $ac_word" >&5
7862 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7863 echo $ac_n "(cached) $ac_c" 1>&6
7865 case "$SDL11_CONFIG" in
7867 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7870 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7874 ac_dummy="${SDL_PATH}"
7875 for ac_dir in $ac_dummy; do
7876 test -z "$ac_dir" && ac_dir=.
7877 if test -f $ac_dir/$ac_word; then
7878 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7883 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7887 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7888 if test -n "$SDL11_CONFIG"; then
7889 echo "$ac_t""$SDL11_CONFIG" 1>&6
7891 echo "$ac_t""no" 1>&6
7894 SDL_CONFIG=${SDL11_CONFIG}
7895 SDL_HEADER="SDL11/SDL.h"
7897 if test "x${SDL_CONFIG}" = "xno"
7899 # Extract the first word of "sdl-config", so it can be a program name with args.
7900 set dummy sdl-config; ac_word=$2
7901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7902 echo "configure:7903: checking for $ac_word" >&5
7903 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7904 echo $ac_n "(cached) $ac_c" 1>&6
7906 case "$SDL_CONFIG" in
7908 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7911 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7915 ac_dummy="${SDL_PATH}"
7916 for ac_dir in $ac_dummy; do
7917 test -z "$ac_dir" && ac_dir=.
7918 if test -f $ac_dir/$ac_word; then
7919 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7924 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7928 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7929 if test -n "$SDL_CONFIG"; then
7930 echo "$ac_t""$SDL_CONFIG" 1>&6
7932 echo "$ac_t""no" 1>&6
7935 SDL_HEADER="SDL/SDL.h"
7937 if test "x${SDL_CONFIG}" != "xno"
7939 PLUGINS="${PLUGINS} video_output/sdl audio_output/sdl"
7940 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7941 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7942 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7943 for ac_hdr in ${SDL_HEADER}
7945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7947 echo "configure:7948: checking for $ac_hdr" >&5
7948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7949 echo $ac_n "(cached) $ac_c" 1>&6
7951 cat > conftest.$ac_ext <<EOF
7952 #line 7953 "configure"
7953 #include "confdefs.h"
7956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7957 { (eval echo configure:7958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7959 if test -z "$ac_err"; then
7961 eval "ac_cv_header_$ac_safe=yes"
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7967 eval "ac_cv_header_$ac_safe=no"
7971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7972 echo "$ac_t""yes" 1>&6
7973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7974 cat >> confdefs.h <<EOF
7975 #define $ac_tr_hdr 1
7977 cat >> confdefs.h <<EOF
7978 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7982 echo "$ac_t""no" 1>&6
7983 { echo "configure: error: The development package for SDL is not installed.
7984 Please install it and try again. Alternatively you can also configure with
7985 --disable-sdl." 1>&2; exit 1; }
7990 CPPFLAGS="${save_CPPFLAGS}"
7991 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7993 { echo "configure: error: The development package for SDL is not installed.
7994 Please install it and try again. Alternatively you can also configure with
7995 --disable-sdl." 1>&2; exit 1; }
7997 elif test "x${enable_sdl}" = "xyes"
7999 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
8000 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
8005 # Check whether --enable-directx or --disable-directx was given.
8006 if test "${enable_directx+set}" = set; then
8007 enableval="$enable_directx"
8011 if test "x${enable_directx}" != "xno"
8013 if test "x${SYS}" = "xmingw32"
8015 # Check whether --with-directx or --without-directx was given.
8016 if test "${with_directx+set}" = set; then
8017 withval="$with_directx"
8021 if test "x${with_directx}" = "x"
8023 for ac_hdr in ddraw.h
8025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_hdr" >&5
8028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8031 cat > conftest.$ac_ext <<EOF
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8037 { (eval echo configure:8038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8039 if test -z "$ac_err"; then
8041 eval "ac_cv_header_$ac_safe=yes"
8044 echo "configure: failed program was:" >&5
8045 cat conftest.$ac_ext >&5
8047 eval "ac_cv_header_$ac_safe=no"
8051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8052 echo "$ac_t""yes" 1>&6
8053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8054 cat >> confdefs.h <<EOF
8055 #define $ac_tr_hdr 1
8057 PLUGINS="${PLUGINS} video_output/directx/directx"
8058 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8060 echo "$ac_t""no" 1>&6
8065 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
8066 echo "configure:8067: checking for directX headers in ${with_directx}" >&5
8067 if test -f ${with_directx}/ddraw.h
8069 PLUGINS="${PLUGINS} video_output/directx/directx"
8070 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8071 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
8072 echo "$ac_t""yes" 1>&6
8074 echo "$ac_t""no" 1>&6
8075 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
8081 # Check whether --enable-fb or --disable-fb was given.
8082 if test "${enable_fb+set}" = set; then
8083 enableval="$enable_fb"
8087 if test "x${enable_fb}" != "xno"
8089 for ac_hdr in linux/fb.h
8091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8093 echo "configure:8094: checking for $ac_hdr" >&5
8094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 cat > conftest.$ac_ext <<EOF
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8103 { (eval echo configure:8104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8105 if test -z "$ac_err"; then
8107 eval "ac_cv_header_$ac_safe=yes"
8110 echo "configure: failed program was:" >&5
8111 cat conftest.$ac_ext >&5
8113 eval "ac_cv_header_$ac_safe=no"
8117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8118 echo "$ac_t""yes" 1>&6
8119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8120 cat >> confdefs.h <<EOF
8121 #define $ac_tr_hdr 1
8124 PLUGINS="${PLUGINS} video_output/fb"
8127 echo "$ac_t""no" 1>&6
8133 # Check whether --enable-mga or --disable-mga was given.
8134 if test "${enable_mga+set}" = set; then
8135 enableval="$enable_mga"
8136 if test "x${enable_mga}" = "xyes"
8138 PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
8143 # Check whether --enable-ggi or --disable-ggi was given.
8144 if test "${enable_ggi+set}" = set; then
8145 enableval="$enable_ggi"
8149 if test "x${enable_ggi}" = "xyes"
8151 PLUGINS="${PLUGINS} video_output/ggi"
8152 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
8153 # Check whether --with-ggi or --without-ggi was given.
8154 if test "${with_ggi+set}" = set; then
8156 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
8158 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
8159 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
8165 # Check whether --enable-glide or --disable-glide was given.
8166 if test "${enable_glide+set}" = set; then
8167 enableval="$enable_glide"
8171 if test "x${enable_glide}" = "xyes"
8173 PLUGINS="${PLUGINS} video_output/glide"
8174 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
8175 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
8176 # Check whether --with-glide or --without-glide was given.
8177 if test "${with_glide+set}" = set; then
8178 withval="$with_glide"
8179 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
8181 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
8182 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
8188 # Check whether --enable-aa or --disable-aa was given.
8189 if test "${enable_aa+set}" = set; then
8190 enableval="$enable_aa"
8194 if test "x${enable_aa}" = "xyes"
8196 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
8197 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
8198 echo "configure:8199: checking for aalib.h" >&5
8199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8208 { (eval echo configure:8209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8210 if test -z "$ac_err"; then
8212 eval "ac_cv_header_$ac_safe=yes"
8215 echo "configure: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8218 eval "ac_cv_header_$ac_safe=no"
8222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8223 echo "$ac_t""yes" 1>&6
8226 echo "$ac_t""no" 1>&6
8230 if test "x${have_aa}" = "xtrue"
8232 PLUGINS="${PLUGINS} video_output/aa"
8233 aa_LDFLAGS="${aa_LDFLAGS} -laa"
8238 # Check whether --with- or --without- was given.
8239 if test "${with_+set}" = set; then
8245 # Check whether --enable-oss or --disable-oss was given.
8246 if test "${enable_oss+set}" = set; then
8247 enableval="$enable_oss"
8252 if test "x${enable_oss}" != "xno" &&
8253 (test "x${SYS}" != "xmingw32" || test "x${enable_oss}" = "xyes")
8255 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
8257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8259 echo "configure:8260: checking for $ac_hdr" >&5
8260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8261 echo $ac_n "(cached) $ac_c" 1>&6
8263 cat > conftest.$ac_ext <<EOF
8264 #line 8265 "configure"
8265 #include "confdefs.h"
8268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8269 { (eval echo configure:8270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8271 if test -z "$ac_err"; then
8273 eval "ac_cv_header_$ac_safe=yes"
8276 echo "configure: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8279 eval "ac_cv_header_$ac_safe=no"
8283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8284 echo "$ac_t""yes" 1>&6
8285 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8286 cat >> confdefs.h <<EOF
8287 #define $ac_tr_hdr 1
8290 PLUGINS="${PLUGINS} audio_output/oss"
8291 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
8292 echo "configure:8293: checking for main in -lossaudio" >&5
8293 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
8294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
8297 ac_save_LIBS="$LIBS"
8298 LIBS="-lossaudio $LIBS"
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8307 if { (eval echo configure:8308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8309 eval "ac_cv_lib_$ac_lib_var=yes"
8311 echo "configure: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8314 eval "ac_cv_lib_$ac_lib_var=no"
8317 LIBS="$ac_save_LIBS"
8320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8321 echo "$ac_t""yes" 1>&6
8322 oss_LDFLAGS="${oss_LDFLAGS} -lossaudio"
8324 echo "$ac_t""no" 1>&6
8329 echo "$ac_t""no" 1>&6
8335 # Check whether --enable-esd or --disable-esd was given.
8336 if test "${enable_esd+set}" = set; then
8337 enableval="$enable_esd"
8338 if test "x${enable_esd}" = "xyes"
8340 # Extract the first word of "esd-config", so it can be a program name with args.
8341 set dummy esd-config; ac_word=$2
8342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8343 echo "configure:8344: checking for $ac_word" >&5
8344 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8347 case "$ESD_CONFIG" in
8349 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
8352 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
8355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8357 for ac_dir in $ac_dummy; do
8358 test -z "$ac_dir" && ac_dir=.
8359 if test -f $ac_dir/$ac_word; then
8360 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
8365 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
8369 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
8370 if test -n "$ESD_CONFIG"; then
8371 echo "$ac_t""$ESD_CONFIG" 1>&6
8373 echo "$ac_t""no" 1>&6
8376 if test "x${ESD_CONFIG}" != "xno"
8378 #PLUGINS="${PLUGINS} audio_output/esd"
8379 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
8380 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
8386 # Check whether --enable-arts or --disable-arts was given.
8387 if test "${enable_arts+set}" = set; then
8388 enableval="$enable_arts"
8389 if test "x${enable_arts}" = "xyes"
8391 # Extract the first word of "artsc-config", so it can be a program name with args.
8392 set dummy artsc-config; ac_word=$2
8393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8394 echo "configure:8395: checking for $ac_word" >&5
8395 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6
8398 case "$ARTS_CONFIG" in
8400 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8403 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8408 for ac_dir in $ac_dummy; do
8409 test -z "$ac_dir" && ac_dir=.
8410 if test -f $ac_dir/$ac_word; then
8411 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8416 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8420 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8421 if test -n "$ARTS_CONFIG"; then
8422 echo "$ac_t""$ARTS_CONFIG" 1>&6
8424 echo "$ac_t""no" 1>&6
8427 if test "x${ARTS_CONFIG}" != "xno"
8429 #PLUGINS="${PLUGINS} audio_output/arts"
8430 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8431 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8437 # Check whether --enable-alsa or --disable-alsa was given.
8438 if test "${enable_alsa+set}" = set; then
8439 enableval="$enable_alsa"
8440 if test "x${enable_alsa}" = "xyes"
8442 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8443 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8444 echo "configure:8445: checking for alsa/asoundlib.h" >&5
8445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 #include <alsa/asoundlib.h>
8453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8454 { (eval echo configure:8455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8456 if test -z "$ac_err"; then
8458 eval "ac_cv_header_$ac_safe=yes"
8461 echo "configure: failed program was:" >&5
8462 cat conftest.$ac_ext >&5
8464 eval "ac_cv_header_$ac_safe=no"
8468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8469 echo "$ac_t""yes" 1>&6
8470 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8471 echo "configure:8472: checking for main in -lasound" >&5
8472 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8474 echo $ac_n "(cached) $ac_c" 1>&6
8476 ac_save_LIBS="$LIBS"
8477 LIBS="-lasound $LIBS"
8478 cat > conftest.$ac_ext <<EOF
8479 #line 8480 "configure"
8480 #include "confdefs.h"
8486 if { (eval echo configure:8487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8488 eval "ac_cv_lib_$ac_lib_var=yes"
8490 echo "configure: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8493 eval "ac_cv_lib_$ac_lib_var=no"
8496 LIBS="$ac_save_LIBS"
8499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8500 echo "$ac_t""yes" 1>&6
8503 echo "$ac_t""no" 1>&6
8508 echo "$ac_t""no" 1>&6
8512 if test "x${have_alsa}" = "xtrue"
8514 #PLUGINS="${PLUGINS} audio_output/alsa"
8515 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8521 # Check whether --enable-waveout or --disable-waveout was given.
8522 if test "${enable_waveout+set}" = set; then
8523 enableval="$enable_waveout"
8527 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8529 PLUGINS="${PLUGINS} audio_output/waveout"
8530 waveout_LDFLAGS="-lwinmm"
8534 # Check whether --with- or --without- was given.
8535 if test "${with_+set}" = set; then
8541 if test "x${SYS}" = "xbeos"
8543 PLUGINS="${PLUGINS} gui/beos/beos"
8546 # Check whether --enable-gtk or --disable-gtk was given.
8547 if test "${enable_gtk+set}" = set; then
8548 enableval="$enable_gtk"
8552 if test "x${enable_gtk}" != "xno"
8555 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8556 if test "${with_gtk_config_path+set}" = set; then
8557 withval="$with_gtk_config_path"
8558 if test "x${with_gtk_config_path}" != "xno"
8560 GTK_PATH="${with_gtk_config_path}:${PATH}"
8564 # look for gtk-config
8565 # Extract the first word of "gtk12-config", so it can be a program name with args.
8566 set dummy gtk12-config; ac_word=$2
8567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8568 echo "configure:8569: checking for $ac_word" >&5
8569 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8570 echo $ac_n "(cached) $ac_c" 1>&6
8572 case "$GTK12_CONFIG" in
8574 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8577 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8581 ac_dummy="${GTK_PATH}"
8582 for ac_dir in $ac_dummy; do
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f $ac_dir/$ac_word; then
8585 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8590 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8594 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8595 if test -n "$GTK12_CONFIG"; then
8596 echo "$ac_t""$GTK12_CONFIG" 1>&6
8598 echo "$ac_t""no" 1>&6
8601 GTK_CONFIG=${GTK12_CONFIG}
8602 if test "x${GTK_CONFIG}" = "xno"
8604 # Extract the first word of "gtk-config", so it can be a program name with args.
8605 set dummy gtk-config; ac_word=$2
8606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8607 echo "configure:8608: checking for $ac_word" >&5
8608 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
8611 case "$GTK_CONFIG" in
8613 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8616 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8620 ac_dummy="${GTK_PATH}"
8621 for ac_dir in $ac_dummy; do
8622 test -z "$ac_dir" && ac_dir=.
8623 if test -f $ac_dir/$ac_word; then
8624 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8629 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8633 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8634 if test -n "$GTK_CONFIG"; then
8635 echo "$ac_t""$GTK_CONFIG" 1>&6
8637 echo "$ac_t""no" 1>&6
8641 if test "x${GTK_CONFIG}" != "xno"
8643 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8645 { 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; }
8647 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8648 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8649 # now look for the gtk.h header
8650 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8651 ac_cv_gtk_headers=yes
8652 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8656 echo "configure:8657: checking for $ac_hdr" >&5
8657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8658 echo $ac_n "(cached) $ac_c" 1>&6
8660 cat > conftest.$ac_ext <<EOF
8661 #line 8662 "configure"
8662 #include "confdefs.h"
8665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8666 { (eval echo configure:8667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8668 if test -z "$ac_err"; then
8670 eval "ac_cv_header_$ac_safe=yes"
8673 echo "configure: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8676 eval "ac_cv_header_$ac_safe=no"
8680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8681 echo "$ac_t""yes" 1>&6
8682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8683 cat >> confdefs.h <<EOF
8684 #define $ac_tr_hdr 1
8688 echo "$ac_t""no" 1>&6
8689 ac_cv_gtk_headers=no
8690 echo "Cannot find gtk development headers."
8695 if test "x${ac_cv_gtk_headers}" = "xyes"
8697 PLUGINS="${PLUGINS} gui/gtk/gtk"
8698 ALIASES="${ALIASES} gvlc"
8700 CPPFLAGS="${save_CPPFLAGS}"
8704 # Check whether --enable-familiar or --disable-familiar was given.
8705 if test "${enable_familiar+set}" = set; then
8706 enableval="$enable_familiar"
8710 if test "x${enable_familiar}" = "xyes"
8713 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8714 if test "${with_gtk_config_path+set}" = set; then
8715 withval="$with_gtk_config_path"
8716 if test "x${with_gtk_config_path}" != "xno"
8718 GTK_PATH="${with_gtk_config_path}:${PATH}"
8722 # look for gtk-config
8723 # Extract the first word of "gtk12-config", so it can be a program name with args.
8724 set dummy gtk12-config; ac_word=$2
8725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8726 echo "configure:8727: checking for $ac_word" >&5
8727 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
8730 case "$GTK12_CONFIG" in
8732 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8735 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8739 ac_dummy="${GTK_PATH}"
8740 for ac_dir in $ac_dummy; do
8741 test -z "$ac_dir" && ac_dir=.
8742 if test -f $ac_dir/$ac_word; then
8743 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8748 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8752 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8753 if test -n "$GTK12_CONFIG"; then
8754 echo "$ac_t""$GTK12_CONFIG" 1>&6
8756 echo "$ac_t""no" 1>&6
8759 GTK_CONFIG=${GTK12_CONFIG}
8760 if test "x${GTK_CONFIG}" = "xno"
8762 # Extract the first word of "gtk-config", so it can be a program name with args.
8763 set dummy gtk-config; ac_word=$2
8764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8765 echo "configure:8766: checking for $ac_word" >&5
8766 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8769 case "$GTK_CONFIG" in
8771 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8774 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8778 ac_dummy="${GTK_PATH}"
8779 for ac_dir in $ac_dummy; do
8780 test -z "$ac_dir" && ac_dir=.
8781 if test -f $ac_dir/$ac_word; then
8782 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8787 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8791 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8792 if test -n "$GTK_CONFIG"; then
8793 echo "$ac_t""$GTK_CONFIG" 1>&6
8795 echo "$ac_t""no" 1>&6
8799 if test "x${GTK_CONFIG}" != "xno"
8801 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8803 { 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; }
8805 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8806 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8807 # now look for the gtk.h header
8808 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8809 ac_cv_gtk_headers=yes
8810 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8814 echo "configure:8815: checking for $ac_hdr" >&5
8815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8816 echo $ac_n "(cached) $ac_c" 1>&6
8818 cat > conftest.$ac_ext <<EOF
8819 #line 8820 "configure"
8820 #include "confdefs.h"
8823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8824 { (eval echo configure:8825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8826 if test -z "$ac_err"; then
8828 eval "ac_cv_header_$ac_safe=yes"
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8834 eval "ac_cv_header_$ac_safe=no"
8838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8839 echo "$ac_t""yes" 1>&6
8840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8841 cat >> confdefs.h <<EOF
8842 #define $ac_tr_hdr 1
8846 echo "$ac_t""no" 1>&6
8847 ac_cv_gtk_headers=no
8848 echo "Cannot find gtk development headers."
8853 if test "x${ac_cv_gtk_headers}" = "xyes"
8855 PLUGINS="${PLUGINS} gui/familiar/familiar"
8857 CPPFLAGS="${save_CPPFLAGS}"
8861 # Check whether --enable-gnome or --disable-gnome was given.
8862 if test "${enable_gnome+set}" = set; then
8863 enableval="$enable_gnome"
8864 if test "x${enable_gnome}" = "xyes"; then
8865 # look for gnome-config
8866 # Extract the first word of "gnome-config", so it can be a program name with args.
8867 set dummy gnome-config; ac_word=$2
8868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8869 echo "configure:8870: checking for $ac_word" >&5
8870 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8871 echo $ac_n "(cached) $ac_c" 1>&6
8873 case "$GNOME_CONFIG" in
8875 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8878 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8883 for ac_dir in $ac_dummy; do
8884 test -z "$ac_dir" && ac_dir=.
8885 if test -f $ac_dir/$ac_word; then
8886 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8891 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8895 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8896 if test -n "$GNOME_CONFIG"; then
8897 echo "$ac_t""$GNOME_CONFIG" 1>&6
8899 echo "$ac_t""no" 1>&6
8902 if test -x ${GNOME_CONFIG}
8904 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8905 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8907 # now look for the gnome.h header
8908 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8909 for ac_hdr in gnome.h
8911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8913 echo "configure:8914: checking for $ac_hdr" >&5
8914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8915 echo $ac_n "(cached) $ac_c" 1>&6
8917 cat > conftest.$ac_ext <<EOF
8918 #line 8919 "configure"
8919 #include "confdefs.h"
8922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8923 { (eval echo configure:8924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8925 if test -z "$ac_err"; then
8927 eval "ac_cv_header_$ac_safe=yes"
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8933 eval "ac_cv_header_$ac_safe=no"
8937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8938 echo "$ac_t""yes" 1>&6
8939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8940 cat >> confdefs.h <<EOF
8941 #define $ac_tr_hdr 1
8944 PLUGINS="${PLUGINS} gui/gtk/gnome"
8945 ALIASES="${ALIASES} gnome-vlc"
8948 echo "$ac_t""no" 1>&6
8949 { echo "configure: error: Can't find gnome headers. Please install the gnome
8950 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8955 CPPFLAGS="${save_CPPFLAGS}"
8960 # Check whether --enable-qt or --disable-qt was given.
8961 if test "${enable_qt+set}" = set; then
8962 enableval="$enable_qt"
8963 if test "x${enable_qt}" = "xyes"; then
8964 PLUGINS="${PLUGINS} gui/qt/qt"
8965 ALIASES="${ALIASES} qvlc"
8966 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8967 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8968 if test -x ${QTDIR}/bin/moc
8970 MOC=${QTDIR}/bin/moc
8978 # Check whether --enable-kde or --disable-kde was given.
8979 if test "${enable_kde+set}" = set; then
8980 enableval="$enable_kde"
8981 if test "x${enable_kde}" = "xyes"; then
8982 PLUGINS="${PLUGINS} gui/kde/kde"
8983 ALIASES="${ALIASES} kvlc"
8984 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8985 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8986 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8987 if test -x ${QTDIR}/bin/moc
8989 MOC=${QTDIR}/bin/moc
8997 # Check whether --enable-qte or --disable-qte was given.
8998 if test "${enable_qte+set}" = set; then
8999 enableval="$enable_qte"
9000 if test "x${enable_qte}" = "xyes"; then
9001 PLUGINS="${PLUGINS} gui/qte/qte"
9002 qte_LDFLAGS="${qte_LDFLAGS} -lqte -L${QTEDIR}/lib"
9003 qte_CFLAGS="${qte_CFLAGS} -I/usr/include/qte -I${QTEDIR}/include"
9004 if test -x ${QTEDIR}/bin/moc
9006 MOC=${QTEDIR}/bin/moc
9015 # Check whether --enable-macosx or --disable-macosx was given.
9016 if test "${enable_macosx+set}" = set; then
9017 enableval="$enable_macosx"
9018 if test "x${enable_macosx}" = "xyes"
9020 BUILTINS="${BUILTINS} gui/macosx/macosx"
9021 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9024 for ac_hdr in Cocoa/Cocoa.h
9026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9028 echo "configure:9029: checking for $ac_hdr" >&5
9029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9030 echo $ac_n "(cached) $ac_c" 1>&6
9032 cat > conftest.$ac_ext <<EOF
9033 #line 9034 "configure"
9034 #include "confdefs.h"
9037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9038 { (eval echo configure:9039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9040 if test -z "$ac_err"; then
9042 eval "ac_cv_header_$ac_safe=yes"
9045 echo "configure: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9048 eval "ac_cv_header_$ac_safe=no"
9052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9053 echo "$ac_t""yes" 1>&6
9054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9055 cat >> confdefs.h <<EOF
9056 #define $ac_tr_hdr 1
9058 BUILTINS="${BUILTINS} gui/macosx/macosx"
9059 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9062 echo "$ac_t""no" 1>&6
9069 # Check whether --enable-qnx or --disable-qnx was given.
9070 if test "${enable_qnx+set}" = set; then
9071 enableval="$enable_qnx"
9075 if test "x${enable_qnx}" != "xno"
9079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9081 echo "configure:9082: checking for $ac_hdr" >&5
9082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9085 cat > conftest.$ac_ext <<EOF
9086 #line 9087 "configure"
9087 #include "confdefs.h"
9090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9091 { (eval echo configure:9092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9093 if test -z "$ac_err"; then
9095 eval "ac_cv_header_$ac_safe=yes"
9098 echo "configure: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9101 eval "ac_cv_header_$ac_safe=no"
9105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9106 echo "$ac_t""yes" 1>&6
9107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9108 cat >> confdefs.h <<EOF
9109 #define $ac_tr_hdr 1
9112 PLUGINS="${PLUGINS} gui/qnx/qnx"
9113 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
9116 echo "$ac_t""no" 1>&6
9122 # Check whether --enable-intfwin or --disable-intfwin was given.
9123 if test "${enable_intfwin+set}" = set; then
9124 enableval="$enable_intfwin"
9125 if test "x${enable_intfwin}" != "xno"
9127 # Check whether --with-bcbuilder or --without-bcbuilder was given.
9128 if test "${with_bcbuilder+set}" = set; then
9129 withval="$with_bcbuilder"
9133 if test "x${with_bcbuilder}" != "x"
9135 BCBUILDER="${with_bcbuilder}"
9137 PLUGINS="${PLUGINS} gui/win32/win32"
9142 # Check whether --enable-ncurses or --disable-ncurses was given.
9143 if test "${enable_ncurses+set}" = set; then
9144 enableval="$enable_ncurses"
9145 if test "x${enable_ncurses}" = "xyes"; then
9146 PLUGINS="${PLUGINS} gui/ncurses/ncurses"
9147 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
9152 # Check whether --enable-xosd or --disable-xosd was given.
9153 if test "${enable_xosd+set}" = set; then
9154 enableval="$enable_xosd"
9158 if test "x${enable_xosd}" = "xyes"
9160 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
9161 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
9162 echo "configure:9163: checking for xosd.h" >&5
9163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9166 cat > conftest.$ac_ext <<EOF
9167 #line 9168 "configure"
9168 #include "confdefs.h"
9171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9172 { (eval echo configure:9173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9174 if test -z "$ac_err"; then
9176 eval "ac_cv_header_$ac_safe=yes"
9179 echo "configure: failed program was:" >&5
9180 cat conftest.$ac_ext >&5
9182 eval "ac_cv_header_$ac_safe=no"
9186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9187 echo "$ac_t""yes" 1>&6
9190 echo "$ac_t""no" 1>&6
9194 if test "x${have_xosd}" = "xtrue"
9196 PLUGINS="${PLUGINS} visualization/xosd/xosd"
9197 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
9201 # Check whether --enable-lirc or --disable-lirc was given.
9202 if test "${enable_lirc+set}" = set; then
9203 enableval="$enable_lirc"
9207 if test "x${enable_lirc}" = "xyes"
9209 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
9210 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
9211 echo "configure:9212: checking for lirc/lirc_client.h" >&5
9212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9213 echo $ac_n "(cached) $ac_c" 1>&6
9215 cat > conftest.$ac_ext <<EOF
9216 #line 9217 "configure"
9217 #include "confdefs.h"
9218 #include <lirc/lirc_client.h>
9220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9221 { (eval echo configure:9222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9223 if test -z "$ac_err"; then
9225 eval "ac_cv_header_$ac_safe=yes"
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9231 eval "ac_cv_header_$ac_safe=no"
9235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9236 echo "$ac_t""yes" 1>&6
9237 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
9238 echo "configure:9239: checking for lirc_init in -llirc_client" >&5
9239 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
9240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9241 echo $ac_n "(cached) $ac_c" 1>&6
9243 ac_save_LIBS="$LIBS"
9244 LIBS="-llirc_client $LIBS"
9245 cat > conftest.$ac_ext <<EOF
9246 #line 9247 "configure"
9247 #include "confdefs.h"
9248 /* Override any gcc2 internal prototype to avoid an error. */
9249 /* We use char because int might match the return type of a gcc2
9250 builtin and then its argument prototype would still apply. */
9257 if { (eval echo configure:9258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9259 eval "ac_cv_lib_$ac_lib_var=yes"
9261 echo "configure: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9264 eval "ac_cv_lib_$ac_lib_var=no"
9267 LIBS="$ac_save_LIBS"
9270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9271 echo "$ac_t""yes" 1>&6
9274 echo "$ac_t""no" 1>&6
9279 echo "$ac_t""no" 1>&6
9283 if test "x${have_lirc}" = "xtrue"
9285 PLUGINS="${PLUGINS} control/lirc/lirc"
9286 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
9290 # Check whether --with- or --without- was given.
9291 if test "${with_+set}" = set; then
9297 # Check whether --with-words or --without-words was given.
9298 if test "${with_words+set}" = set; then
9299 withval="$with_words"
9303 case "x${with_words}" in
9305 ac_cv_c_bigendian=yes
9308 ac_cv_c_bigendian=no
9311 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
9312 echo "configure:9313: checking whether the byte order is big-endian" >&5
9313 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9314 echo $ac_n "(cached) $ac_c" 1>&6
9316 ac_cv_c_bigendian="unknown"
9317 cat >conftest.c <<EOF
9318 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
9319 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
9320 void _a(void) { char*s = (char*)am; s = (char *)ai; }
9321 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
9322 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
9323 void _e(void) { char*s = (char*)em; s = (char*)ei; }
9324 int main(void) { _a(); _e(); return 0; }
9327 if test -f conftest.c
9329 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
9330 && test -f conftest.o
9332 if test "`strings conftest.o | grep BIGenDianSyS`"
9334 ac_cv_c_bigendian="yes"
9336 if test "`strings conftest.o | grep LiTTleEnDian`"
9338 ac_cv_c_bigendian="no"
9345 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9346 if test "x${ac_cv_c_bigendian}" = "xunknown"
9348 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
9352 if test "${ac_cv_c_bigendian}" = "yes"
9354 cat >> confdefs.h <<\EOF
9355 #define WORDS_BIGENDIAN 1
9363 # Check whether --enable-gprof or --disable-gprof was given.
9364 if test "${enable_gprof+set}" = set; then
9365 enableval="$enable_gprof"
9366 if test "x${enable_gprof}" = "xyes"
9376 # Check whether --enable-cprof or --disable-cprof was given.
9377 if test "${enable_cprof+set}" = set; then
9378 enableval="$enable_cprof"
9379 if test "x${enable_cprof}" = "xyes"
9381 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
9389 # Check whether --enable-pth or --disable-pth was given.
9390 if test "${enable_pth+set}" = set; then
9391 enableval="$enable_pth"
9392 if test "x${enable_pth}" = "xyes"; then
9393 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
9394 echo "configure:9395: checking for pth_init in -lpth" >&5
9395 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
9396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9397 echo $ac_n "(cached) $ac_c" 1>&6
9399 ac_save_LIBS="$LIBS"
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9415 eval "ac_cv_lib_$ac_lib_var=yes"
9417 echo "configure: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9420 eval "ac_cv_lib_$ac_lib_var=no"
9423 LIBS="$ac_save_LIBS"
9426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9427 echo "$ac_t""yes" 1>&6
9428 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9430 cat >> confdefs.h <<EOF
9431 #define $ac_tr_lib 1
9437 echo "$ac_t""no" 1>&6
9440 cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9446 egrep "pth_init" >/dev/null 2>&1; then
9449 cat >> confdefs.h <<\EOF
9450 #define PTH_INIT_IN_PTH_H 1
9462 # Check whether --enable-st or --disable-st was given.
9463 if test "${enable_st+set}" = set; then
9464 enableval="$enable_st"
9465 if test "x${enable_st}" = "xyes"; then
9466 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9467 echo "configure:9468: checking for st_init in -lst" >&5
9468 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9469 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9470 echo $ac_n "(cached) $ac_c" 1>&6
9472 ac_save_LIBS="$LIBS"
9474 cat > conftest.$ac_ext <<EOF
9475 #line 9476 "configure"
9476 #include "confdefs.h"
9477 /* Override any gcc2 internal prototype to avoid an error. */
9478 /* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9486 if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9488 eval "ac_cv_lib_$ac_lib_var=yes"
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9493 eval "ac_cv_lib_$ac_lib_var=no"
9496 LIBS="$ac_save_LIBS"
9499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9500 echo "$ac_t""yes" 1>&6
9501 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9502 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9503 cat >> confdefs.h <<EOF
9504 #define $ac_tr_lib 1
9510 echo "$ac_t""no" 1>&6
9513 cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9519 egrep "st_init" >/dev/null 2>&1; then
9522 cat >> confdefs.h <<\EOF
9523 #define ST_INIT_IN_ST_H 1
9535 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9536 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9539 # Check whether --enable-mozilla or --disable-mozilla was given.
9540 if test "${enable_mozilla+set}" = set; then
9541 enableval="$enable_mozilla"
9545 if test "x${enable_mozilla}" = "xyes"
9547 # Extract the first word of "mozilla-config", so it can be a program name with args.
9548 set dummy mozilla-config; ac_word=$2
9549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9550 echo "configure:9551: checking for $ac_word" >&5
9551 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9554 case "$MOZILLA_CONFIG" in
9556 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9559 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9564 for ac_dir in $ac_dummy; do
9565 test -z "$ac_dir" && ac_dir=.
9566 if test -f $ac_dir/$ac_word; then
9567 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9572 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9576 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9577 if test -n "$MOZILLA_CONFIG"; then
9578 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9580 echo "$ac_t""no" 1>&6
9583 if test "x${MOZILLA_CONFIG}" != "xno"
9585 if test "x${SYS}" != "xmingw32"; then
9586 LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9587 echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9588 echo "configure:9589: checking for XtStrings in -lXt" >&5
9589 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9593 ac_save_LIBS="$LIBS"
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9598 /* Override any gcc2 internal prototype to avoid an error. */
9599 /* We use char because int might match the return type of a gcc2
9600 builtin and then its argument prototype would still apply. */
9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9609 eval "ac_cv_lib_$ac_lib_var=yes"
9611 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9614 eval "ac_cv_lib_$ac_lib_var=no"
9617 LIBS="$ac_save_LIBS"
9620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9621 echo "$ac_t""yes" 1>&6
9623 mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9626 echo "$ac_t""no" 1>&6
9629 LDFLAGS="${save_LDFLAGS}"
9632 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9633 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9637 # Check whether --enable-plugins or --disable-plugins was given.
9638 if test "${enable_plugins+set}" = set; then
9639 enableval="$enable_plugins"
9640 if test "x${enable_plugins}" = "xno"
9642 BUILTINS="${BUILTINS} ${PLUGINS}"
9648 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9650 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9652 BUILTINS="${BUILTINS} ${PLUGINS}"
9656 cat >> confdefs.h <<EOF
9657 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9660 cat >> confdefs.h <<EOF
9661 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9664 cat >> confdefs.h <<EOF
9665 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9669 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9670 cat >> confdefs.h <<EOF
9671 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9674 cat >> confdefs.h <<EOF
9675 #define MODULE_SYMBOL ${VLC_SYMBOL}
9679 DATA_PATH="${ac_tool_prefix}/share/videolan"
9681 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9684 CPPFLAGS="${save_CPPFLAGS}"
9685 CFLAGS="${save_CFLAGS}"
9686 LDFLAGS="${save_LDFLAGS}"
9688 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9689 for i in `echo ${BUILTINS} | sed -e 's#[^ ]*/##g'` ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9803 cat > confcache <<\EOF
9804 # This file is a shell script that caches the results of configure
9805 # tests run on this system so they can be shared between configure
9806 # scripts and configure runs. It is not useful on other systems.
9807 # If it contains results you don't want to keep, you may remove or edit it.
9809 # By default, configure uses ./config.cache as the cache file,
9810 # creating it if it does not exist already. You can give configure
9811 # the --cache-file=FILE option to use a different cache file; that is
9812 # what configure does when it calls configure scripts in
9813 # subdirectories, so they share the cache.
9814 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9815 # config.status only pays attention to the cache file if you give it the
9816 # --recheck option to rerun configure.
9819 # The following way of writing the cache mishandles newlines in values,
9820 # but we know of no workaround that is simple, portable, and efficient.
9821 # So, don't put newlines in cache variables' values.
9822 # Ultrix sh set writes to stderr and can't be redirected directly,
9823 # and sets the high bit in the cache file unless we assign to the vars.
9825 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9827 # `set' does not quote correctly, so add quotes (double-quote substitution
9828 # turns \\\\ into \\, and sed turns \\ into \).
9830 -e "s/'/'\\\\''/g" \
9831 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9834 # `set' quotes correctly as required by POSIX, so do not add quotes.
9835 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9838 if cmp -s $cache_file confcache; then
9841 if test -w $cache_file; then
9842 echo "updating cache $cache_file"
9843 cat confcache > $cache_file
9845 echo "not updating unwritable cache $cache_file"
9850 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9852 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9853 # Let make expand exec_prefix.
9854 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9856 # Any assignment to VPATH causes Sun make to only execute
9857 # the first set of double-colon rules, so remove it if not needed.
9858 # If there is a colon in the path, we need to keep it.
9859 if test "x$srcdir" = x.; then
9860 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9863 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9865 DEFS=-DHAVE_CONFIG_H
9867 # Without the "./", some shells look in PATH for config.status.
9868 : ${CONFIG_STATUS=./config.status}
9870 echo creating $CONFIG_STATUS
9871 rm -f $CONFIG_STATUS
9872 cat > $CONFIG_STATUS <<EOF
9874 # Generated automatically by configure.
9875 # Run this file to recreate the current configuration.
9876 # This directory was configured as follows,
9877 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9879 # $0 $ac_configure_args
9881 # Compiler output produced by configure, useful for debugging
9882 # configure, is in ./config.log if it exists.
9884 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9887 case "\$ac_option" in
9888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9889 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9890 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9891 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9892 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9894 -help | --help | --hel | --he | --h)
9895 echo "\$ac_cs_usage"; exit 0 ;;
9896 *) echo "\$ac_cs_usage"; exit 1 ;;
9900 ac_given_srcdir=$srcdir
9901 ac_given_INSTALL="$INSTALL"
9903 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
9905 cat >> $CONFIG_STATUS <<EOF
9907 # Protect against being on the right side of a sed subst in config.status.
9908 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9909 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9913 s%@CFLAGS@%$CFLAGS%g
9914 s%@CPPFLAGS@%$CPPFLAGS%g
9915 s%@CXXFLAGS@%$CXXFLAGS%g
9916 s%@FFLAGS@%$FFLAGS%g
9918 s%@LDFLAGS@%$LDFLAGS%g
9920 s%@exec_prefix@%$exec_prefix%g
9921 s%@prefix@%$prefix%g
9922 s%@program_transform_name@%$program_transform_name%g
9923 s%@bindir@%$bindir%g
9924 s%@sbindir@%$sbindir%g
9925 s%@libexecdir@%$libexecdir%g
9926 s%@datadir@%$datadir%g
9927 s%@sysconfdir@%$sysconfdir%g
9928 s%@sharedstatedir@%$sharedstatedir%g
9929 s%@localstatedir@%$localstatedir%g
9930 s%@libdir@%$libdir%g
9931 s%@includedir@%$includedir%g
9932 s%@oldincludedir@%$oldincludedir%g
9933 s%@infodir@%$infodir%g
9934 s%@mandir@%$mandir%g
9936 s%@host_alias@%$host_alias%g
9937 s%@host_cpu@%$host_cpu%g
9938 s%@host_vendor@%$host_vendor%g
9939 s%@host_os@%$host_os%g
9940 s%@target@%$target%g
9941 s%@target_alias@%$target_alias%g
9942 s%@target_cpu@%$target_cpu%g
9943 s%@target_vendor@%$target_vendor%g
9944 s%@target_os@%$target_os%g
9946 s%@build_alias@%$build_alias%g
9947 s%@build_cpu@%$build_cpu%g
9948 s%@build_vendor@%$build_vendor%g
9949 s%@build_os@%$build_os%g
9950 s%@SET_MAKE@%$SET_MAKE%g
9953 s%@RANLIB@%$RANLIB%g
9956 s%@ALLOCA@%$ALLOCA%g
9957 s%@GLIBC21@%$GLIBC21%g
9958 s%@LIBICONV@%$LIBICONV%g
9959 s%@USE_NLS@%$USE_NLS%g
9960 s%@MSGFMT@%$MSGFMT%g
9961 s%@GMSGFMT@%$GMSGFMT%g
9962 s%@XGETTEXT@%$XGETTEXT%g
9963 s%@INTLBISON@%$INTLBISON%g
9964 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9965 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9966 s%@CATALOGS@%$CATALOGS%g
9967 s%@CATOBJEXT@%$CATOBJEXT%g
9968 s%@GMOFILES@%$GMOFILES%g
9969 s%@INTLLIBS@%$INTLLIBS%g
9970 s%@INTLOBJS@%$INTLOBJS%g
9971 s%@POFILES@%$POFILES%g
9973 s%@DATADIRNAME@%$DATADIRNAME%g
9974 s%@INSTOBJEXT@%$INSTOBJEXT%g
9975 s%@GENCAT@%$GENCAT%g
9976 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9977 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9978 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9979 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9980 s%@INSTALL_DATA@%$INSTALL_DATA%g
9981 s%@WINDRES@%$WINDRES%g
9982 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9983 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9984 s%@SDL_CONFIG@%$SDL_CONFIG%g
9985 s%@ESD_CONFIG@%$ESD_CONFIG%g
9986 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9987 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9988 s%@GTK_CONFIG@%$GTK_CONFIG%g
9989 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9990 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9991 s%@DATA_PATH@%$DATA_PATH%g
9992 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9993 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
9996 s%@PLUGINS@%$PLUGINS%g
9997 s%@BUILTINS@%$BUILTINS%g
9998 s%@ALIASES@%$ALIASES%g
10003 s%@OPTIMS@%$OPTIMS%g
10004 s%@TUNING@%$TUNING%g
10005 s%@RELEASE@%$RELEASE%g
10007 s%@BCBUILDER@%$BCBUILDER%g
10008 s%@PACKAGE@%$PACKAGE%g
10009 s%@VERSION@%$VERSION%g
10010 s%@NEED_GETOPT@%$NEED_GETOPT%g
10011 s%@MOZILLA@%$MOZILLA%g
10012 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
10013 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
10014 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
10015 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
10016 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
10017 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
10018 s%@a52_CFLAGS@%$a52_CFLAGS%g
10019 s%@arts_CFLAGS@%$arts_CFLAGS%g
10020 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
10021 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
10022 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
10023 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
10024 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
10025 s%@directx_CFLAGS@%$directx_CFLAGS%g
10026 s%@esd_CFLAGS@%$esd_CFLAGS%g
10027 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
10028 s%@faad_CFLAGS@%$faad_CFLAGS%g
10029 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
10030 s%@glide_CFLAGS@%$glide_CFLAGS%g
10031 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
10032 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
10033 s%@kde_CFLAGS@%$kde_CFLAGS%g
10034 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
10035 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
10036 s%@mad_CFLAGS@%$mad_CFLAGS%g
10037 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
10038 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
10039 s%@qt_CFLAGS@%$qt_CFLAGS%g
10040 s%@qte_CFLAGS@%$qte_CFLAGS%g
10041 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
10042 s%@x11_CFLAGS@%$x11_CFLAGS%g
10043 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
10044 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
10045 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
10046 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
10047 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
10048 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
10049 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
10050 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
10051 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
10052 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
10053 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
10054 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
10055 s%@dv_LDFLAGS@%$dv_LDFLAGS%g
10056 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
10057 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
10058 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
10059 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
10060 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
10061 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
10062 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
10063 s%@faad_LDFLAGS@%$faad_LDFLAGS%g
10064 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
10065 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
10066 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
10067 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
10068 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
10069 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
10070 s%@http_LDFLAGS@%$http_LDFLAGS%g
10071 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
10072 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
10073 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
10074 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
10075 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
10076 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
10077 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
10078 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
10079 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
10080 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
10081 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
10082 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
10083 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
10084 s%@oss_LDFLAGS@%$oss_LDFLAGS%g
10085 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
10086 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
10087 s%@qte_LDFLAGS@%$qte_LDFLAGS%g
10088 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
10089 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
10090 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
10091 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
10092 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
10093 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
10094 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
10095 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
10100 cat >> $CONFIG_STATUS <<\EOF
10102 # Split the substitutions into bite-sized pieces for seds with
10103 # small command number limits, like on Digital OSF/1 and HP-UX.
10104 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10105 ac_file=1 # Number of current file.
10106 ac_beg=1 # First line for current file.
10107 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10110 while $ac_more_lines; do
10111 if test $ac_beg -gt 1; then
10112 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10114 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10116 if test ! -s conftest.s$ac_file; then
10117 ac_more_lines=false
10118 rm -f conftest.s$ac_file
10120 if test -z "$ac_sed_cmds"; then
10121 ac_sed_cmds="sed -f conftest.s$ac_file"
10123 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10125 ac_file=`expr $ac_file + 1`
10127 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10130 if test -z "$ac_sed_cmds"; then
10135 cat >> $CONFIG_STATUS <<EOF
10137 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
10139 cat >> $CONFIG_STATUS <<\EOF
10140 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10143 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10144 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10145 *) ac_file_in="${ac_file}.in" ;;
10148 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10150 # Remove last slash and all that follows it. Not all systems have dirname.
10151 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10152 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10153 # The file is in a subdirectory.
10154 test ! -d "$ac_dir" && mkdir "$ac_dir"
10155 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10156 # A "../" for each directory in $ac_dir_suffix.
10157 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10159 ac_dir_suffix= ac_dots=
10162 case "$ac_given_srcdir" in
10164 if test -z "$ac_dots"; then top_srcdir=.
10165 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10166 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10167 *) # Relative path.
10168 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10169 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10172 case "$ac_given_INSTALL" in
10173 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10174 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10177 echo creating "$ac_file"
10179 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10181 *Makefile*) ac_comsub="1i\\
10182 # $configure_input" ;;
10186 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10188 s%@configure_input@%$configure_input%g
10189 s%@srcdir@%$srcdir%g
10190 s%@top_srcdir@%$top_srcdir%g
10191 s%@INSTALL@%$INSTALL%g
10192 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10196 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10197 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10199 # ac_d sets the value in "#define NAME VALUE" lines.
10200 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10201 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10204 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10205 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10206 ac_uB='\([ ]\)%\1#\2define\3'
10209 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10210 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10211 ac_eB='$%\1#\2define\3'
10215 if test "${CONFIG_HEADERS+set}" != set; then
10217 cat >> $CONFIG_STATUS <<EOF
10218 CONFIG_HEADERS="include/defs.h"
10220 cat >> $CONFIG_STATUS <<\EOF
10222 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10225 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10226 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10227 *) ac_file_in="${ac_file}.in" ;;
10230 echo creating $ac_file
10232 rm -f conftest.frag conftest.in conftest.out
10233 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10234 cat $ac_file_inputs > conftest.in
10238 # Transform confdefs.h into a sed script conftest.vals that substitutes
10239 # the proper values into config.h.in to produce config.h. And first:
10240 # Protect against being on the right side of a sed subst in config.status.
10241 # Protect against being in an unquoted here document in config.status.
10242 rm -f conftest.vals
10243 cat > conftest.hdr <<\EOF
10246 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10250 sed -n -f conftest.hdr confdefs.h > conftest.vals
10253 # This sed command replaces #undef with comments. This is necessary, for
10254 # example, in the case of _POSIX_SOURCE, which is predefined and required
10255 # on some systems where configure will not decide to define it.
10256 cat >> conftest.vals <<\EOF
10257 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10260 # Break up conftest.vals because some shells have a limit on
10261 # the size of here documents, and old seds have small limits too.
10263 rm -f conftest.tail
10266 ac_lines=`grep -c . conftest.vals`
10267 # grep -c gives empty output for an empty file on some AIX systems.
10268 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10269 # Write a limited-size here document to conftest.frag.
10270 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10271 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10273 sed -f conftest.frag conftest.in > conftest.out
10275 mv conftest.out conftest.in
10276 ' >> $CONFIG_STATUS
10277 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10278 rm -f conftest.vals
10279 mv conftest.tail conftest.vals
10281 rm -f conftest.vals
10283 cat >> $CONFIG_STATUS <<\EOF
10284 rm -f conftest.frag conftest.h
10285 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10286 cat conftest.in >> conftest.h
10288 if cmp -s $ac_file conftest.h 2>/dev/null; then
10289 echo "$ac_file is unchanged"
10292 # Remove last slash and all that follows it. Not all systems have dirname.
10293 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10294 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10295 # The file is in a subdirectory.
10296 test ! -d "$ac_dir" && mkdir "$ac_dir"
10299 mv conftest.h $ac_file
10304 cat >> $CONFIG_STATUS <<EOF
10308 cat >> $CONFIG_STATUS <<\EOF
10309 for ac_file in $CONFIG_FILES; do
10310 # Support "outfile[:infile[:infile...]]"
10312 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10314 # PO directories have a Makefile.in generated from Makefile.in.in.
10315 case "$ac_file" in */Makefile.in)
10316 # Adjust a relative srcdir.
10317 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10318 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10319 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10320 # In autoconf-2.13 it is called $ac_given_srcdir.
10321 # In autoconf-2.50 it is called $srcdir.
10322 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10323 case "$ac_given_srcdir" in
10324 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10325 /*) top_srcdir="$ac_given_srcdir" ;;
10326 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10328 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10329 rm -f "$ac_dir/POTFILES"
10330 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10331 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10332 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10333 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10341 chmod +x $CONFIG_STATUS
10342 rm -fr confdefs* $ac_clean_files
10343 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10345 chmod a+x vlc-config
10349 --------------------
10350 vlc version : ${VERSION}
10352 architecture : ${ARCH}
10353 optimizations : ${OPTIMS}
10355 debug mode : ${DEBUG}
10356 release : ${RELEASE}
10357 profiling : ${PROFILING}
10358 need builtin getopt : ${NEED_GETOPT}
10359 built-in modules :${BUILTINS}
10360 plug-in modules :${PLUGINS}
10361 mozilla plugin : ${MOZILLA}
10362 vlc aliases :${ALIASES}
10364 You may now tune Makefile.opts at your convenience, for instance to choose
10365 which modules get compiled as plugins.
10367 To build vlc and its plugins, type \`${VLC_MAKE}'.