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)"
68 --enable-mad libmad module (default disabled)"
70 --with-mad=PATH path to libmad"
72 --with-mad-tree=PATH mad tree for static linking"
74 --enable-ffmpeg ffmpeg codec (default disabled)"
76 --with-ffmpeg=PATH path to ffmpeg installation"
78 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
80 --enable-faad faad codec (default disabled)"
82 --with-faad=PATH path to faad installation"
84 --with-faad-tree=PATH faad tree for static linking"
86 --enable-mp4 MP4 demux module (default enabled)"
88 --enable-a52 A/52 support with liba52 (default enabled)"
90 --with-a52=PATH a52 headers and libraries"
92 --with-a52-tree=PATH a52dec tree for static linking "
94 --enable-cinepak Cinepak decoder (default enabled)"
96 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
98 --enable-dv DV decoder support (default disabled)"
102 --enable-x11 X11 support (default enabled)"
104 --enable-xvideo XVideo support (default enabled)"
106 --enable-sdl SDL support (default enabled)"
108 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
110 --enable-directx Win32 DirectX support (default enabled on Win32)"
112 --with-directx=PATH Win32 DirectX headers"
114 --enable-fb Linux framebuffer support (default enabled on Linux)"
116 --enable-mga Linux kernel Matrox support (default disabled)"
118 --enable-ggi GGI support (default disabled)"
120 --with-ggi=PATH path to libggi"
122 --enable-glide Glide (3dfx) support (default disabled)"
124 --with-glide=PATH path to libglide"
126 --enable-aa aalib output (default disabled)"
130 --enable-oss Linux OSS /dev/dsp support (enabled on Linux)"
132 --enable-esd Esound library support (default disabled)"
134 --enable-arts aRts sound server (default disabled)"
136 --enable-alsa ALSA sound support for Linux (default disabled)"
138 --enable-waveout Win32 waveOut module (default enabled on Win32)"
142 --enable-gtk Gtk+ support (default enabled)"
144 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
146 --enable-familiar Familiar Gtk+ support (default disabled)"
148 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
150 --enable-gnome Gnome interface support (default disabled)"
152 --enable-qt Qt interface support (default disabled)"
154 --enable-kde KDE interface support (default disabled)"
156 --enable-qte Qt embedded interface support (default disabled)"
158 --enable-macosx MacOS X support (default enabled on MacOS X)"
160 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
162 --enable-intfwin Win32 interface support (default disabled)"
164 --with-bcbuilder=PATH Borland C++ Builder installation path"
166 --enable-ncurses ncurses interface support (default disabled)"
168 --enable-xosd xosd interface support (default disabled)"
170 --enable-lirc lirc support (default disabled)"
174 --with-words=endianness set endianness (big or little)"
176 --enable-gprof gprof profiling (default disabled)"
178 --enable-cprof cprof profiling (default disabled)"
180 --enable-pth GNU Pth support (default disabled)"
182 --enable-st State Threads (default disabled)"
184 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
186 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
188 # Initialize some variables set by options.
189 # The variables have the same names as the options, with
190 # dashes changed to underlines.
192 cache_file=./config.cache
201 program_transform_name=s,x,x,
209 bindir='${exec_prefix}/bin'
210 sbindir='${exec_prefix}/sbin'
211 libexecdir='${exec_prefix}/libexec'
212 datadir='${prefix}/share'
213 sysconfdir='${prefix}/etc'
214 sharedstatedir='${prefix}/com'
215 localstatedir='${prefix}/var'
216 libdir='${exec_prefix}/lib'
217 includedir='${prefix}/include'
218 oldincludedir='/usr/include'
219 infodir='${prefix}/info'
220 mandir='${prefix}/man'
222 # Initialize some other variables.
225 SHELL=${CONFIG_SHELL-/bin/sh}
226 # Maximum number of lines to put in a shell here document.
233 # If the previous option needs an argument, assign it.
234 if test -n "$ac_prev"; then
235 eval "$ac_prev=\$ac_option"
241 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
245 # Accept the important Cygnus configure options, so we can diagnose typos.
249 -bindir | --bindir | --bindi | --bind | --bin | --bi)
251 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
252 bindir="$ac_optarg" ;;
254 -build | --build | --buil | --bui | --bu)
256 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
257 build="$ac_optarg" ;;
259 -cache-file | --cache-file | --cache-fil | --cache-fi \
260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
261 ac_prev=cache_file ;;
262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
264 cache_file="$ac_optarg" ;;
266 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
268 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
270 datadir="$ac_optarg" ;;
272 -disable-* | --disable-*)
273 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
274 # Reject names that are not valid shell variable names.
275 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
276 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
278 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
279 eval "enable_${ac_feature}=no" ;;
281 -enable-* | --enable-*)
282 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
283 # Reject names that are not valid shell variable names.
284 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
285 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
287 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
292 eval "enable_${ac_feature}='$ac_optarg'" ;;
294 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
295 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
296 | --exec | --exe | --ex)
297 ac_prev=exec_prefix ;;
298 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
299 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
300 | --exec=* | --exe=* | --ex=*)
301 exec_prefix="$ac_optarg" ;;
303 -gas | --gas | --ga | --g)
304 # Obsolete; use --with-gas.
307 -help | --help | --hel | --he)
308 # Omit some internal or obsolete options to make the list less imposing.
309 # This message is too long to be a string in the A/UX 3.1 sh.
311 Usage: configure [options] [host]
312 Options: [defaults in brackets after descriptions]
314 --cache-file=FILE cache test results in FILE
315 --help print this message
316 --no-create do not create output files
317 --quiet, --silent do not print \`checking...' messages
318 --version print the version of autoconf that created configure
319 Directory and file names:
320 --prefix=PREFIX install architecture-independent files in PREFIX
322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
324 --bindir=DIR user executables in DIR [EPREFIX/bin]
325 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
326 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
327 --datadir=DIR read-only architecture-independent data in DIR
329 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
330 --sharedstatedir=DIR modifiable architecture-independent data in DIR
332 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
333 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
334 --includedir=DIR C header files in DIR [PREFIX/include]
335 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
336 --infodir=DIR info documentation in DIR [PREFIX/info]
337 --mandir=DIR man documentation in DIR [PREFIX/man]
338 --srcdir=DIR find the sources in DIR [configure dir or ..]
339 --program-prefix=PREFIX prepend PREFIX to installed program names
340 --program-suffix=SUFFIX append SUFFIX to installed program names
341 --program-transform-name=PROGRAM
342 run sed PROGRAM on installed program names
346 --build=BUILD configure for building on BUILD [BUILD=HOST]
347 --host=HOST configure for HOST [guessed]
348 --target=TARGET configure for TARGET [TARGET=HOST]
349 Features and packages:
350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
354 --x-includes=DIR X include files are in DIR
355 --x-libraries=DIR X library files are in DIR
357 if test -n "$ac_help"; then
358 echo "--enable and --with options recognized:$ac_help"
362 -host | --host | --hos | --ho)
364 -host=* | --host=* | --hos=* | --ho=*)
367 -includedir | --includedir | --includedi | --included | --include \
368 | --includ | --inclu | --incl | --inc)
369 ac_prev=includedir ;;
370 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
371 | --includ=* | --inclu=* | --incl=* | --inc=*)
372 includedir="$ac_optarg" ;;
374 -infodir | --infodir | --infodi | --infod | --info | --inf)
376 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
377 infodir="$ac_optarg" ;;
379 -libdir | --libdir | --libdi | --libd)
381 -libdir=* | --libdir=* | --libdi=* | --libd=*)
382 libdir="$ac_optarg" ;;
384 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
385 | --libexe | --libex | --libe)
386 ac_prev=libexecdir ;;
387 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
388 | --libexe=* | --libex=* | --libe=*)
389 libexecdir="$ac_optarg" ;;
391 -localstatedir | --localstatedir | --localstatedi | --localstated \
392 | --localstate | --localstat | --localsta | --localst \
393 | --locals | --local | --loca | --loc | --lo)
394 ac_prev=localstatedir ;;
395 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
396 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
397 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
398 localstatedir="$ac_optarg" ;;
400 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
402 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
403 mandir="$ac_optarg" ;;
406 # Obsolete; use --without-fp.
409 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
413 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
414 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
417 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
418 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
419 | --oldin | --oldi | --old | --ol | --o)
420 ac_prev=oldincludedir ;;
421 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
422 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
423 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
424 oldincludedir="$ac_optarg" ;;
426 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
428 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
429 prefix="$ac_optarg" ;;
431 -program-prefix | --program-prefix | --program-prefi | --program-pref \
432 | --program-pre | --program-pr | --program-p)
433 ac_prev=program_prefix ;;
434 -program-prefix=* | --program-prefix=* | --program-prefi=* \
435 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
436 program_prefix="$ac_optarg" ;;
438 -program-suffix | --program-suffix | --program-suffi | --program-suff \
439 | --program-suf | --program-su | --program-s)
440 ac_prev=program_suffix ;;
441 -program-suffix=* | --program-suffix=* | --program-suffi=* \
442 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
443 program_suffix="$ac_optarg" ;;
445 -program-transform-name | --program-transform-name \
446 | --program-transform-nam | --program-transform-na \
447 | --program-transform-n | --program-transform- \
448 | --program-transform | --program-transfor \
449 | --program-transfo | --program-transf \
450 | --program-trans | --program-tran \
451 | --progr-tra | --program-tr | --program-t)
452 ac_prev=program_transform_name ;;
453 -program-transform-name=* | --program-transform-name=* \
454 | --program-transform-nam=* | --program-transform-na=* \
455 | --program-transform-n=* | --program-transform-=* \
456 | --program-transform=* | --program-transfor=* \
457 | --program-transfo=* | --program-transf=* \
458 | --program-trans=* | --program-tran=* \
459 | --progr-tra=* | --program-tr=* | --program-t=*)
460 program_transform_name="$ac_optarg" ;;
462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
463 | -silent | --silent | --silen | --sile | --sil)
466 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
468 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
470 sbindir="$ac_optarg" ;;
472 -sharedstatedir | --sharedstatedir | --sharedstatedi \
473 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
474 | --sharedst | --shareds | --shared | --share | --shar \
476 ac_prev=sharedstatedir ;;
477 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
478 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
479 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
481 sharedstatedir="$ac_optarg" ;;
483 -site | --site | --sit)
485 -site=* | --site=* | --sit=*)
488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
491 srcdir="$ac_optarg" ;;
493 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
494 | --syscon | --sysco | --sysc | --sys | --sy)
495 ac_prev=sysconfdir ;;
496 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
497 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
498 sysconfdir="$ac_optarg" ;;
500 -target | --target | --targe | --targ | --tar | --ta | --t)
502 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
503 target="$ac_optarg" ;;
505 -v | -verbose | --verbose | --verbos | --verbo | --verb)
508 -version | --version | --versio | --versi | --vers)
509 echo "configure generated by autoconf version 2.13"
513 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
514 # Reject names that are not valid shell variable names.
515 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
516 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
518 ac_package=`echo $ac_package| sed 's/-/_/g'`
523 eval "with_${ac_package}='$ac_optarg'" ;;
525 -without-* | --without-*)
526 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
527 # Reject names that are not valid shell variable names.
528 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
529 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
531 ac_package=`echo $ac_package| sed 's/-/_/g'`
532 eval "with_${ac_package}=no" ;;
535 # Obsolete; use --with-x.
538 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
539 | --x-incl | --x-inc | --x-in | --x-i)
540 ac_prev=x_includes ;;
541 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
542 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
543 x_includes="$ac_optarg" ;;
545 -x-libraries | --x-libraries | --x-librarie | --x-librari \
546 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
547 ac_prev=x_libraries ;;
548 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
549 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
550 x_libraries="$ac_optarg" ;;
552 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
556 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
557 echo "configure: warning: $ac_option: invalid host type" 1>&2
559 if test "x$nonopt" != xNONE; then
560 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
568 if test -n "$ac_prev"; then
569 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
572 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
574 # File descriptor usage:
577 # 2 errors and warnings
578 # 3 some systems may open it to /dev/tty
579 # 4 used on the Kubota Titan
580 # 6 checking for... messages and results
581 # 5 compiler messages saved in config.log
582 if test "$silent" = yes; then
590 This file contains any messages produced by compilers while
591 running configure, to aid debugging if configure makes a mistake.
594 # Strip out --no-create and --no-recursion so they do not pile up.
595 # Also quote any args containing shell metacharacters.
600 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
601 | --no-cr | --no-c) ;;
602 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
603 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
604 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
605 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
606 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
611 # Only set these to C if already set. These must not be set unconditionally
612 # because not all systems understand e.g. LANG=C (notably SCO).
613 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
614 # Non-C LC_CTYPE values break the ctype check.
615 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
616 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
617 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
618 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
621 rm -rf conftest* confdefs.h
622 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
625 # A filename unique to this package, relative to the directory that
626 # configure is in, which we can look for to find out if srcdir is correct.
627 ac_unique_file=include/main.h
629 # Find the source files, if location was not specified.
630 if test -z "$srcdir"; then
631 ac_srcdir_defaulted=yes
632 # Try the directory containing this script, then its parent.
634 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
635 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
637 if test ! -r $srcdir/$ac_unique_file; then
641 ac_srcdir_defaulted=no
643 if test ! -r $srcdir/$ac_unique_file; then
644 if test "$ac_srcdir_defaulted" = yes; then
645 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
647 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
650 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
652 # Prefer explicitly selected file to automatically selected ones.
653 if test -z "$CONFIG_SITE"; then
654 if test "x$prefix" != xNONE; then
655 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
657 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
660 for ac_site_file in $CONFIG_SITE; do
661 if test -r "$ac_site_file"; then
662 echo "loading site script $ac_site_file"
667 if test -r "$cache_file"; then
668 echo "loading cache $cache_file"
671 echo "creating cache $cache_file"
676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677 ac_cpp='$CPP $CPPFLAGS'
678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680 cross_compiling=$ac_cv_prog_cc_cross
684 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
685 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
686 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
693 ac_n= ac_c='\c' ac_t=
699 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
700 if test -f $ac_dir/install-sh; then
702 ac_install_sh="$ac_aux_dir/install-sh -c"
704 elif test -f $ac_dir/install.sh; then
706 ac_install_sh="$ac_aux_dir/install.sh -c"
710 if test -z "$ac_aux_dir"; then
711 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
713 ac_config_guess=$ac_aux_dir/config.guess
714 ac_config_sub=$ac_aux_dir/config.sub
715 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
718 # Do some error checking and defaulting for the host and target type.
720 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
723 # 1. You are not allowed to specify --host, --target, and nonopt at the
725 # 2. Host defaults to nonopt.
726 # 3. If nonopt is not specified, then host defaults to the current host,
727 # as determined by config.guess.
728 # 4. Target and build default to nonopt.
729 # 5. If nonopt is not specified, then target and build default to host.
731 # The aliases save the names the user supplied, while $host etc.
732 # will get canonicalized.
733 case $host---$target---$nonopt in
734 NONE---*---* | *---NONE---* | *---*---NONE) ;;
735 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
739 # Make sure we can run config.sub.
740 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
741 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
744 echo $ac_n "checking host system type""... $ac_c" 1>&6
745 echo "configure:746: checking host system type" >&5
748 case "$host_alias" in
752 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
753 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
755 *) host_alias=$nonopt ;;
759 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
760 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
761 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
762 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
763 echo "$ac_t""$host" 1>&6
765 echo $ac_n "checking target system type""... $ac_c" 1>&6
766 echo "configure:767: checking target system type" >&5
769 case "$target_alias" in
772 NONE) target_alias=$host_alias ;;
773 *) target_alias=$nonopt ;;
777 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
778 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
779 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
780 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
781 echo "$ac_t""$target" 1>&6
783 echo $ac_n "checking build system type""... $ac_c" 1>&6
784 echo "configure:785: checking build system type" >&5
787 case "$build_alias" in
790 NONE) build_alias=$host_alias ;;
791 *) build_alias=$nonopt ;;
795 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
796 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
797 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
798 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
799 echo "$ac_t""$build" 1>&6
801 test "$host_alias" != "$target_alias" &&
802 test "$program_prefix$program_suffix$program_transform_name" = \
804 program_prefix=${target_alias}-
807 CONFIGURE_LINE="$0 $*"
813 save_CPPFLAGS="${CPPFLAGS}"
814 save_CFLAGS="${CFLAGS}"
815 save_LDFLAGS="${LDFLAGS}"
817 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
818 echo "configure:819: checking whether ${MAKE-make} sets \${MAKE}" >&5
819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
820 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 cat > conftestmake <<\EOF
825 @echo 'ac_maketemp="${MAKE}"'
827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
828 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
829 if test -n "$ac_maketemp"; then
830 eval ac_cv_prog_make_${ac_make}_set=yes
832 eval ac_cv_prog_make_${ac_make}_set=no
836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
837 echo "$ac_t""yes" 1>&6
840 echo "$ac_t""no" 1>&6
841 SET_MAKE="MAKE=${MAKE-make}"
844 # Extract the first word of "gcc", so it can be a program name with args.
845 set dummy gcc; ac_word=$2
846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847 echo "configure:848: checking for $ac_word" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 for ac_dir in $ac_dummy; do
857 test -z "$ac_dir" && ac_dir=.
858 if test -f $ac_dir/$ac_word; then
867 if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
870 echo "$ac_t""no" 1>&6
873 if test -z "$CC"; then
874 # Extract the first word of "cc", so it can be a program name with args.
875 set dummy cc; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 if test -n "$CC"; then
882 ac_cv_prog_CC="$CC" # Let the user override the test.
884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
887 for ac_dir in $ac_dummy; do
888 test -z "$ac_dir" && ac_dir=.
889 if test -f $ac_dir/$ac_word; then
890 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
899 if test $ac_prog_rejected = yes; then
900 # We found a bogon in the path, so make sure we never use it.
901 set dummy $ac_cv_prog_CC
903 if test $# -gt 0; then
904 # We chose a different compiler from the bogus one.
905 # However, it has the same basename, so the bogon will be chosen
906 # first if we set CC to just the basename; use the full file name.
908 set dummy "$ac_dir/$ac_word" "$@"
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
919 echo "$ac_t""no" 1>&6
922 if test -z "$CC"; then
925 # Extract the first word of "cl", so it can be a program name with args.
926 set dummy cl; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 if test -n "$CC"; then
933 ac_cv_prog_CC="$CC" # Let the user override the test.
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
937 for ac_dir in $ac_dummy; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
948 if test -n "$CC"; then
949 echo "$ac_t""$CC" 1>&6
951 echo "$ac_t""no" 1>&6
956 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
964 ac_cpp='$CPP $CPPFLAGS'
965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
967 cross_compiling=$ac_cv_prog_cc_cross
969 cat > conftest.$ac_ext << EOF
971 #line 972 "configure"
972 #include "confdefs.h"
976 if { (eval echo configure:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
977 ac_cv_prog_cc_works=yes
978 # If we can't run a trivial program, we are probably using a cross compiler.
979 if (./conftest; exit) 2>/dev/null; then
980 ac_cv_prog_cc_cross=no
982 ac_cv_prog_cc_cross=yes
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
987 ac_cv_prog_cc_works=no
991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
992 ac_cpp='$CPP $CPPFLAGS'
993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
995 cross_compiling=$ac_cv_prog_cc_cross
997 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
998 if test $ac_cv_prog_cc_works = no; then
999 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1001 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1003 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1004 cross_compiling=$ac_cv_prog_cc_cross
1006 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether we are using GNU C" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 cat > conftest.c <<EOF
1016 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1023 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1025 if test $ac_cv_prog_gcc = yes; then
1031 ac_test_CFLAGS="${CFLAGS+set}"
1032 ac_save_CFLAGS="$CFLAGS"
1034 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1035 echo "configure:1036: checking whether ${CC-cc} accepts -g" >&5
1036 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 echo 'void f(){}' > conftest.c
1040 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1049 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1050 if test "$ac_test_CFLAGS" = set; then
1051 CFLAGS="$ac_save_CFLAGS"
1052 elif test $ac_cv_prog_cc_g = yes; then
1053 if test "$GCC" = yes; then
1059 if test "$GCC" = yes; then
1066 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1067 echo "configure:1068: checking how to run the C preprocessor" >&5
1068 # On Suns, sometimes $CPP names a directory.
1069 if test -n "$CPP" && test -d "$CPP"; then
1072 if test -z "$CPP"; then
1073 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 # This must be in double quotes, not single quotes, because CPP may get
1077 # substituted into the Makefile and "${CC-cc}" will confuse make.
1079 # On the NeXT, cc -E runs the code through the compiler's parser,
1080 # not just through cpp.
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088 { (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1090 if test -z "$ac_err"; then
1094 echo "configure: failed program was:" >&5
1095 cat conftest.$ac_ext >&5
1097 CPP="${CC-cc} -E -traditional-cpp"
1098 cat > conftest.$ac_ext <<EOF
1099 #line 1100 "configure"
1100 #include "confdefs.h"
1104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1105 { (eval echo configure:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1107 if test -z "$ac_err"; then
1111 echo "configure: failed program was:" >&5
1112 cat conftest.$ac_ext >&5
1114 CPP="${CC-cc} -nologo -E"
1115 cat > conftest.$ac_ext <<EOF
1116 #line 1117 "configure"
1117 #include "confdefs.h"
1121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1122 { (eval echo configure:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1124 if test -z "$ac_err"; then
1128 echo "configure: failed program was:" >&5
1129 cat conftest.$ac_ext >&5
1138 ac_cv_prog_CPP="$CPP"
1140 CPP="$ac_cv_prog_CPP"
1142 ac_cv_prog_CPP="$CPP"
1144 echo "$ac_t""$CPP" 1>&6
1147 if test $host != $build; then
1148 ac_tool_prefix=${host_alias}-
1153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1154 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$RANLIB"; then
1161 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1175 RANLIB="$ac_cv_prog_RANLIB"
1176 if test -n "$RANLIB"; then
1177 echo "$ac_t""$RANLIB" 1>&6
1179 echo "$ac_t""no" 1>&6
1183 if test -z "$ac_cv_prog_RANLIB"; then
1184 if test -n "$ac_tool_prefix"; then
1185 # Extract the first word of "ranlib", so it can be a program name with args.
1186 set dummy ranlib; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 if test -n "$RANLIB"; then
1193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1197 for ac_dir in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir=.
1199 if test -f $ac_dir/$ac_word; then
1200 ac_cv_prog_RANLIB="ranlib"
1205 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1208 RANLIB="$ac_cv_prog_RANLIB"
1209 if test -n "$RANLIB"; then
1210 echo "$ac_t""$RANLIB" 1>&6
1212 echo "$ac_t""no" 1>&6
1220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}strip; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 if test -n "$STRIP"; then
1228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1232 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1242 STRIP="$ac_cv_prog_STRIP"
1243 if test -n "$STRIP"; then
1244 echo "$ac_t""$STRIP" 1>&6
1246 echo "$ac_t""no" 1>&6
1250 if test -z "$ac_cv_prog_STRIP"; then
1251 if test -n "$ac_tool_prefix"; then
1252 # Extract the first word of "strip", so it can be a program name with args.
1253 set dummy strip; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 if test -n "$STRIP"; then
1260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1264 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 if test -f $ac_dir/$ac_word; then
1267 ac_cv_prog_STRIP="strip"
1272 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1275 STRIP="$ac_cv_prog_STRIP"
1276 if test -n "$STRIP"; then
1277 echo "$ac_t""$STRIP" 1>&6
1279 echo "$ac_t""no" 1>&6
1288 # Extract the first word of "gmake", so it can be a program name with args.
1289 set dummy gmake; ac_word=$2
1290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1291 echo "configure:1292: checking for $ac_word" >&5
1292 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1297 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1300 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1305 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1313 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1317 GMAKE="$ac_cv_path_GMAKE"
1318 if test -n "$GMAKE"; then
1319 echo "$ac_t""$GMAKE" 1>&6
1321 echo "$ac_t""no" 1>&6
1324 if test "x${GMAKE}" = "xno"; then
1325 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1326 echo "configure:1327: checking whether GNU make is installed" >&5
1327 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 if make --version | grep -q -i gnu; then
1333 echo "This software needs you to install GNU make to compile properly."
1334 echo "You can get it from http://www.gnu.org/."
1339 echo "$ac_t""$ac_cv_gmake" 1>&6
1345 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1347 cat >> confdefs.h <<EOF
1348 #define VLC_PACKAGE "${PACKAGE}"
1351 cat >> confdefs.h <<EOF
1352 #define VLC_VERSION "${VERSION}"
1355 # Extract the first word of "ranlib", so it can be a program name with args.
1356 set dummy ranlib; ac_word=$2
1357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1358 echo "configure:1359: checking for $ac_word" >&5
1359 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 if test -n "$RANLIB"; then
1363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1367 for ac_dir in $ac_dummy; do
1368 test -z "$ac_dir" && ac_dir=.
1369 if test -f $ac_dir/$ac_word; then
1370 ac_cv_prog_RANLIB="ranlib"
1375 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1378 RANLIB="$ac_cv_prog_RANLIB"
1379 if test -n "$RANLIB"; then
1380 echo "$ac_t""$RANLIB" 1>&6
1382 echo "$ac_t""no" 1>&6
1386 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1387 echo "configure:1388: checking for strerror in -lcposix" >&5
1388 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 ac_save_LIBS="$LIBS"
1393 LIBS="-lcposix $LIBS"
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1397 /* Override any gcc2 internal prototype to avoid an error. */
1398 /* We use char because int might match the return type of a gcc2
1399 builtin and then its argument prototype would still apply. */
1406 if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1408 eval "ac_cv_lib_$ac_lib_var=yes"
1410 echo "configure: failed program was:" >&5
1411 cat conftest.$ac_ext >&5
1413 eval "ac_cv_lib_$ac_lib_var=no"
1416 LIBS="$ac_save_LIBS"
1419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1420 echo "$ac_t""yes" 1>&6
1421 LIBS="$LIBS -lcposix"
1423 echo "$ac_t""no" 1>&6
1428 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1429 echo "configure:1430: checking for ANSI C header files" >&5
1430 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 cat > conftest.$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1442 { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1444 if test -z "$ac_err"; then
1446 ac_cv_header_stdc=yes
1449 echo "configure: failed program was:" >&5
1450 cat conftest.$ac_ext >&5
1452 ac_cv_header_stdc=no
1456 if test $ac_cv_header_stdc = yes; then
1457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1464 egrep "memchr" >/dev/null 2>&1; then
1468 ac_cv_header_stdc=no
1474 if test $ac_cv_header_stdc = yes; then
1475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1482 egrep "free" >/dev/null 2>&1; then
1486 ac_cv_header_stdc=no
1492 if test $ac_cv_header_stdc = yes; then
1493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1494 if test "$cross_compiling" = yes; then
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1501 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1502 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1504 int main () { int i; for (i = 0; i < 256; i++)
1505 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1509 if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1516 ac_cv_header_stdc=no
1524 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1525 if test $ac_cv_header_stdc = yes; then
1526 cat >> confdefs.h <<\EOF
1527 #define STDC_HEADERS 1
1532 echo $ac_n "checking for working const""... $ac_c" 1>&6
1533 echo "configure:1534: checking for working const" >&5
1534 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 cat > conftest.$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1543 /* Ultrix mips cc rejects this. */
1544 typedef int charset[2]; const charset x;
1545 /* SunOS 4.1.1 cc rejects this. */
1546 char const *const *ccp;
1548 /* NEC SVR4.0.2 mips cc rejects this. */
1549 struct point {int x, y;};
1550 static struct point const zero = {0,0};
1551 /* AIX XL C 1.02.0.0 rejects this.
1552 It does not let you subtract one const X* pointer from another in an arm
1553 of an if-expression whose if-part is not a constant expression */
1554 const char *g = "string";
1555 ccp = &g + (g ? g-g : 0);
1556 /* HPUX 7.0 cc rejects these. */
1559 ccp = (char const *const *) p;
1560 { /* SCO 3.2v4 cc rejects this. */
1562 char const *s = 0 ? (char *) 0 : (char const *) 0;
1566 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1568 const int *foo = &x[0];
1571 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1572 typedef const int *iptr;
1576 { /* AIX XL C 1.02.0.0 rejects this saying
1577 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1578 struct s { int j; const int *ap[3]; };
1579 struct s *b; b->j = 5;
1581 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1587 if { (eval echo configure:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1599 echo "$ac_t""$ac_cv_c_const" 1>&6
1600 if test $ac_cv_c_const = no; then
1601 cat >> confdefs.h <<\EOF
1607 echo $ac_n "checking for inline""... $ac_c" 1>&6
1608 echo "configure:1609: checking for inline" >&5
1609 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1613 for ac_kw in inline __inline__ __inline; do
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1622 if { (eval echo configure:1623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1624 ac_cv_c_inline=$ac_kw; break
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1634 echo "$ac_t""$ac_cv_c_inline" 1>&6
1635 case "$ac_cv_c_inline" in
1637 no) cat >> confdefs.h <<\EOF
1641 *) cat >> confdefs.h <<EOF
1642 #define inline $ac_cv_c_inline
1647 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1648 echo "configure:1649: checking for off_t" >&5
1649 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #include <sys/types.h>
1661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1662 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1664 ac_cv_type_off_t=yes
1672 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1673 if test $ac_cv_type_off_t = no; then
1674 cat >> confdefs.h <<\EOF
1680 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1681 echo "configure:1682: checking for size_t" >&5
1682 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1688 #include <sys/types.h>
1694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1695 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1697 ac_cv_type_size_t=yes
1700 ac_cv_type_size_t=no
1705 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1706 if test $ac_cv_type_size_t = no; then
1707 cat >> confdefs.h <<\EOF
1708 #define size_t unsigned
1713 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1714 # for constant arguments. Useless!
1715 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1716 echo "configure:1717: checking for working alloca.h" >&5
1717 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1725 char *p = alloca(2 * sizeof(int));
1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1730 ac_cv_header_alloca_h=yes
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1735 ac_cv_header_alloca_h=no
1740 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1741 if test $ac_cv_header_alloca_h = yes; then
1742 cat >> confdefs.h <<\EOF
1743 #define HAVE_ALLOCA_H 1
1748 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1749 echo "configure:1750: checking for alloca" >&5
1750 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1758 # define alloca __builtin_alloca
1761 # include <malloc.h>
1762 # define alloca _alloca
1765 # include <alloca.h>
1770 # ifndef alloca /* predefined by HP cc +Olibcalls */
1779 char *p = (char *) alloca(1);
1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1784 ac_cv_func_alloca_works=yes
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1789 ac_cv_func_alloca_works=no
1794 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1795 if test $ac_cv_func_alloca_works = yes; then
1796 cat >> confdefs.h <<\EOF
1797 #define HAVE_ALLOCA 1
1802 if test $ac_cv_func_alloca_works = no; then
1803 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1804 # that cause trouble. Some versions do not even contain alloca or
1805 # contain a buggy version. If you still want to use their alloca,
1806 # use ar to extract alloca.o from them instead of compiling alloca.c.
1807 ALLOCA=alloca.${ac_objext}
1808 cat >> confdefs.h <<\EOF
1813 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1814 echo "configure:1815: checking whether alloca needs Cray hooks" >&5
1815 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 #if defined(CRAY) && ! defined(CRAY2)
1828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1829 egrep "webecray" >/dev/null 2>&1; then
1840 echo "$ac_t""$ac_cv_os_cray" 1>&6
1841 if test $ac_cv_os_cray = yes; then
1842 for ac_func in _getb67 GETB67 getb67; do
1843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_func" >&5
1845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1851 /* System header to define __stub macros and hopefully few prototypes,
1852 which can conflict with char $ac_func(); below. */
1854 /* Override any gcc2 internal prototype to avoid an error. */
1855 /* We use char because int might match the return type of a gcc2
1856 builtin and then its argument prototype would still apply. */
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1872 if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1874 eval "ac_cv_func_$ac_func=yes"
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1879 eval "ac_cv_func_$ac_func=no"
1884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1885 echo "$ac_t""yes" 1>&6
1886 cat >> confdefs.h <<EOF
1887 #define CRAY_STACKSEG_END $ac_func
1892 echo "$ac_t""no" 1>&6
1898 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1899 echo "configure:1900: checking stack direction for C alloca" >&5
1900 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 if test "$cross_compiling" = yes; then
1904 ac_cv_c_stack_direction=0
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 find_stack_direction ()
1911 static char *addr = 0;
1916 return find_stack_direction ();
1919 return (&dummy > addr) ? 1 : -1;
1923 exit (find_stack_direction() < 0);
1926 if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1928 ac_cv_c_stack_direction=1
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 ac_cv_c_stack_direction=-1
1940 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1941 cat >> confdefs.h <<EOF
1942 #define STACK_DIRECTION $ac_cv_c_stack_direction
1947 for ac_hdr in unistd.h
1949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_hdr" >&5
1952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963 if test -z "$ac_err"; then
1965 eval "ac_cv_header_$ac_safe=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 eval "ac_cv_header_$ac_safe=no"
1975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_hdr 1
1983 echo "$ac_t""no" 1>&6
1987 for ac_func in getpagesize
1989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_func" >&5
1991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $ac_func(); below. */
2000 /* Override any gcc2 internal prototype to avoid an error. */
2001 /* We use char because int might match the return type of a gcc2
2002 builtin and then its argument prototype would still apply. */
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2020 eval "ac_cv_func_$ac_func=yes"
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2025 eval "ac_cv_func_$ac_func=no"
2030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2033 cat >> confdefs.h <<EOF
2034 #define $ac_tr_func 1
2038 echo "$ac_t""no" 1>&6
2042 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2043 echo "configure:2044: checking for working mmap" >&5
2044 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 if test "$cross_compiling" = yes; then
2048 ac_cv_func_mmap_fixed_mapped=no
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 /* Thanks to Mike Haertel and Jim Avera for this test.
2055 Here is a matrix of mmap possibilities:
2056 mmap private not fixed
2057 mmap private fixed at somewhere currently unmapped
2058 mmap private fixed at somewhere already mapped
2059 mmap shared not fixed
2060 mmap shared fixed at somewhere currently unmapped
2061 mmap shared fixed at somewhere already mapped
2062 For private mappings, we should verify that changes cannot be read()
2063 back from the file, nor mmap's back from the file at a different
2064 address. (There have been systems where private was not correctly
2065 implemented like the infamous i386 svr4.0, and systems where the
2066 VM page cache was not coherent with the filesystem buffer cache
2067 like early versions of FreeBSD and possibly contemporary NetBSD.)
2068 For shared mappings, we should conversely verify that changes get
2069 propogated back to all the places they're supposed to be.
2071 Grep wants private fixed already mapped.
2072 The main things grep needs to know about mmap are:
2073 * does it exist and is it safe to write into the mmap'd area
2074 * how to use it (BSD variants) */
2075 #include <sys/types.h>
2077 #include <sys/mman.h>
2079 /* This mess was copied from the GNU getpagesize.h. */
2080 #ifndef HAVE_GETPAGESIZE
2081 # ifdef HAVE_UNISTD_H
2082 # include <unistd.h>
2085 /* Assume that all systems that can run configure have sys/param.h. */
2086 # ifndef HAVE_SYS_PARAM_H
2087 # define HAVE_SYS_PARAM_H 1
2090 # ifdef _SC_PAGESIZE
2091 # define getpagesize() sysconf(_SC_PAGESIZE)
2092 # else /* no _SC_PAGESIZE */
2093 # ifdef HAVE_SYS_PARAM_H
2094 # include <sys/param.h>
2095 # ifdef EXEC_PAGESIZE
2096 # define getpagesize() EXEC_PAGESIZE
2097 # else /* no EXEC_PAGESIZE */
2099 # define getpagesize() NBPG * CLSIZE
2102 # endif /* no CLSIZE */
2103 # else /* no NBPG */
2105 # define getpagesize() NBPC
2106 # else /* no NBPC */
2108 # define getpagesize() PAGESIZE
2109 # endif /* PAGESIZE */
2110 # endif /* no NBPC */
2111 # endif /* no NBPG */
2112 # endif /* no EXEC_PAGESIZE */
2113 # else /* no HAVE_SYS_PARAM_H */
2114 # define getpagesize() 8192 /* punt totally */
2115 # endif /* no HAVE_SYS_PARAM_H */
2116 # endif /* no _SC_PAGESIZE */
2118 #endif /* no HAVE_GETPAGESIZE */
2121 extern "C" { void *malloc(unsigned); }
2129 char *data, *data2, *data3;
2133 pagesize = getpagesize();
2136 * First, make a file with some known garbage in it.
2138 data = malloc(pagesize);
2141 for (i = 0; i < pagesize; ++i)
2142 *(data + i) = rand();
2144 fd = creat("conftestmmap", 0600);
2147 if (write(fd, data, pagesize) != pagesize)
2152 * Next, try to mmap the file at a fixed address which
2153 * already has something else allocated at it. If we can,
2154 * also make sure that we see the same garbage.
2156 fd = open("conftestmmap", O_RDWR);
2159 data2 = malloc(2 * pagesize);
2162 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2163 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2164 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2166 for (i = 0; i < pagesize; ++i)
2167 if (*(data + i) != *(data2 + i))
2171 * Finally, make sure that changes to the mapped area
2172 * do not percolate back to the file as seen by read().
2173 * (This is a bug on some variants of i386 svr4.0.)
2175 for (i = 0; i < pagesize; ++i)
2176 *(data2 + i) = *(data2 + i) + 1;
2177 data3 = malloc(pagesize);
2180 if (read(fd, data3, pagesize) != pagesize)
2182 for (i = 0; i < pagesize; ++i)
2183 if (*(data + i) != *(data3 + i))
2186 unlink("conftestmmap");
2191 if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2193 ac_cv_func_mmap_fixed_mapped=yes
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2198 ac_cv_func_mmap_fixed_mapped=no
2205 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2206 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2207 cat >> confdefs.h <<\EOF
2214 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2215 echo "configure:2216: checking whether we are using the GNU C Library 2.1 or newer" >&5
2216 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2223 #include <features.h>
2224 #ifdef __GNU_LIBRARY__
2225 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2232 egrep "Lucky GNU user" >/dev/null 2>&1; then
2234 ac_cv_gnu_library_2_1=yes
2237 ac_cv_gnu_library_2_1=no
2245 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2247 GLIBC21="$ac_cv_gnu_library_2_1"
2251 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2252 stdlib.h string.h unistd.h sys/param.h
2254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2256 echo "configure:2257: checking for $ac_hdr" >&5
2257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2266 { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2268 if test -z "$ac_err"; then
2270 eval "ac_cv_header_$ac_safe=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 eval "ac_cv_header_$ac_safe=no"
2280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2283 cat >> confdefs.h <<EOF
2284 #define $ac_tr_hdr 1
2288 echo "$ac_t""no" 1>&6
2292 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2293 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2294 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_func" >&5
2298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $ac_func(); below. */
2307 /* Override any gcc2 internal prototype to avoid an error. */
2308 /* We use char because int might match the return type of a gcc2
2309 builtin and then its argument prototype would still apply. */
2314 /* The GNU C library defines this for functions which it implements
2315 to always fail with ENOSYS. Some functions are actually named
2316 something starting with __ and the normal name is an alias. */
2317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327 eval "ac_cv_func_$ac_func=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 eval "ac_cv_func_$ac_func=no"
2337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2340 cat >> confdefs.h <<EOF
2341 #define $ac_tr_func 1
2345 echo "$ac_t""no" 1>&6
2352 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2353 if test "${with_libiconv_prefix+set}" = set; then
2354 withval="$with_libiconv_prefix"
2356 for dir in `echo "$withval" | tr : ' '`; do
2357 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2358 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2364 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2365 echo "configure:2366: checking for iconv" >&5
2366 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2370 am_cv_func_iconv="no, consider installing GNU libiconv"
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2378 iconv_t cd = iconv_open("","");
2379 iconv(cd,NULL,NULL,NULL,NULL);
2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2385 am_cv_func_iconv=yes
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2391 if test "$am_cv_func_iconv" != yes; then
2392 am_save_LIBS="$LIBS"
2393 LIBS="$LIBS -liconv"
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2400 iconv_t cd = iconv_open("","");
2401 iconv(cd,NULL,NULL,NULL,NULL);
2405 if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408 am_cv_func_iconv=yes
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2414 LIBS="$am_save_LIBS"
2419 echo "$ac_t""$am_cv_func_iconv" 1>&6
2420 if test "$am_cv_func_iconv" = yes; then
2421 cat >> confdefs.h <<\EOF
2422 #define HAVE_ICONV 1
2425 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2426 echo "configure:2427: checking for iconv declaration" >&5
2427 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2441 #if defined(__STDC__) || defined(__cplusplus)
2442 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2451 if { (eval echo configure:2452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2453 am_cv_proto_iconv_arg1=""
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2458 am_cv_proto_iconv_arg1="const"
2461 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);"
2464 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2465 echo "$ac_t""${ac_t:-
2466 }$am_cv_proto_iconv" 1>&6
2467 cat >> confdefs.h <<EOF
2468 #define ICONV_CONST $am_cv_proto_iconv_arg1
2473 if test "$am_cv_lib_iconv" = yes; then
2479 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2480 echo "configure:2481: checking for nl_langinfo and CODESET" >&5
2481 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 #include <langinfo.h>
2489 char* cs = nl_langinfo(CODESET);
2492 if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2494 am_cv_langinfo_codeset=yes
2496 echo "configure: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2499 am_cv_langinfo_codeset=no
2505 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2506 if test $am_cv_langinfo_codeset = yes; then
2507 cat >> confdefs.h <<\EOF
2508 #define HAVE_LANGINFO_CODESET 1
2513 if test $ac_cv_header_locale_h = yes; then
2514 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2515 echo "configure:2516: checking for LC_MESSAGES" >&5
2516 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529 am_cv_val_LC_MESSAGES=yes
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 am_cv_val_LC_MESSAGES=no
2539 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2540 if test $am_cv_val_LC_MESSAGES = yes; then
2541 cat >> confdefs.h <<\EOF
2542 #define HAVE_LC_MESSAGES 1
2547 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether NLS is requested" >&5
2549 # Check whether --enable-nls or --disable-nls was given.
2550 if test "${enable_nls+set}" = set; then
2551 enableval="$enable_nls"
2557 echo "$ac_t""$USE_NLS" 1>&6
2560 BUILD_INCLUDED_LIBINTL=no
2561 USE_INCLUDED_LIBINTL=no
2564 if test "$USE_NLS" = "yes"; then
2565 cat >> confdefs.h <<\EOF
2566 #define ENABLE_NLS 1
2569 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2570 echo "configure:2571: checking whether included gettext is requested" >&5
2571 # Check whether --with-included-gettext or --without-included-gettext was given.
2572 if test "${with_included_gettext+set}" = set; then
2573 withval="$with_included_gettext"
2574 nls_cv_force_use_gnu_gettext=$withval
2576 nls_cv_force_use_gnu_gettext=no
2579 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2581 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2582 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2588 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2589 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2590 echo "configure:2591: checking for libintl.h" >&5
2591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #include <libintl.h>
2599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2600 { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2602 if test -z "$ac_err"; then
2604 eval "ac_cv_header_$ac_safe=yes"
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2610 eval "ac_cv_header_$ac_safe=no"
2614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2615 echo "$ac_t""yes" 1>&6
2616 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2617 echo "configure:2618: checking for GNU gettext in libc" >&5
2618 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624 #include <libintl.h>
2625 extern int _nl_msg_cat_cntr;
2627 bindtextdomain ("", "");
2628 return (int) gettext ("") + _nl_msg_cat_cntr
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2633 gt_cv_func_gnugettext1_libc=yes
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 gt_cv_func_gnugettext1_libc=no
2643 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2645 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2646 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2647 echo "configure:2648: checking for GNU gettext in libintl" >&5
2648 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 gt_save_LIBS="$LIBS"
2652 LIBS="$LIBS -lintl $LIBICONV"
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2656 #include <libintl.h>
2657 extern int _nl_msg_cat_cntr;
2659 bindtextdomain ("", "");
2660 return (int) gettext ("") + _nl_msg_cat_cntr
2663 if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2665 gt_cv_func_gnugettext1_libintl=yes
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 gt_cv_func_gnugettext1_libintl=no
2673 LIBS="$gt_save_LIBS"
2676 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2679 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2680 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2681 && test "$PACKAGE" != gettext; }; then
2682 cat >> confdefs.h <<\EOF
2683 #define HAVE_GETTEXT 1
2687 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2688 INTLLIBS="-lintl $LIBICONV"
2691 gt_save_LIBS="$LIBS"
2692 LIBS="$LIBS $INTLLIBS"
2693 for ac_func in dcgettext
2695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_func" >&5
2697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* System header to define __stub macros and hopefully few prototypes,
2704 which can conflict with char $ac_func(); below. */
2706 /* Override any gcc2 internal prototype to avoid an error. */
2707 /* We use char because int might match the return type of a gcc2
2708 builtin and then its argument prototype would still apply. */
2713 /* The GNU C library defines this for functions which it implements
2714 to always fail with ENOSYS. Some functions are actually named
2715 something starting with __ and the normal name is an alias. */
2716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726 eval "ac_cv_func_$ac_func=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_func_$ac_func=no"
2736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2739 cat >> confdefs.h <<EOF
2740 #define $ac_tr_func 1
2744 echo "$ac_t""no" 1>&6
2748 LIBS="$gt_save_LIBS"
2750 # Extract the first word of "msgfmt", so it can be a program name with args.
2751 set dummy msgfmt; ac_word=$2
2752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_word" >&5
2754 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2759 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2763 for ac_dir in $PATH; do
2764 test -z "$ac_dir" && ac_dir=.
2765 if test -f $ac_dir/$ac_word; then
2766 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2767 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2773 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2777 MSGFMT="$ac_cv_path_MSGFMT"
2778 if test "$MSGFMT" != ":"; then
2779 echo "$ac_t""$MSGFMT" 1>&6
2781 echo "$ac_t""no" 1>&6
2784 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2785 set dummy gmsgfmt; ac_word=$2
2786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $ac_word" >&5
2788 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2793 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2796 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2801 for ac_dir in $ac_dummy; do
2802 test -z "$ac_dir" && ac_dir=.
2803 if test -f $ac_dir/$ac_word; then
2804 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2809 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2813 GMSGFMT="$ac_cv_path_GMSGFMT"
2814 if test -n "$GMSGFMT"; then
2815 echo "$ac_t""$GMSGFMT" 1>&6
2817 echo "$ac_t""no" 1>&6
2821 # Extract the first word of "xgettext", so it can be a program name with args.
2822 set dummy xgettext; ac_word=$2
2823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2824 echo "configure:2825: checking for $ac_word" >&5
2825 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2834 for ac_dir in $PATH; do
2835 test -z "$ac_dir" && ac_dir=.
2836 if test -f $ac_dir/$ac_word; then
2837 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2838 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2844 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2848 XGETTEXT="$ac_cv_path_XGETTEXT"
2849 if test "$XGETTEXT" != ":"; then
2850 echo "$ac_t""$XGETTEXT" 1>&6
2852 echo "$ac_t""no" 1>&6
2860 echo "$ac_t""no" 1>&6
2864 if test "$CATOBJEXT" = "NONE"; then
2865 nls_cv_use_gnu_gettext=yes
2869 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2870 INTLOBJS="\$(GETTOBJS)"
2871 # Extract the first word of "msgfmt", so it can be a program name with args.
2872 set dummy msgfmt; ac_word=$2
2873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_word" >&5
2875 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2880 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2884 for ac_dir in $PATH; do
2885 test -z "$ac_dir" && ac_dir=.
2886 if test -f $ac_dir/$ac_word; then
2887 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2888 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2894 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2898 MSGFMT="$ac_cv_path_MSGFMT"
2899 if test "$MSGFMT" != ":"; then
2900 echo "$ac_t""$MSGFMT" 1>&6
2902 echo "$ac_t""no" 1>&6
2905 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2906 set dummy gmsgfmt; ac_word=$2
2907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2908 echo "configure:2909: checking for $ac_word" >&5
2909 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2914 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2917 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2922 for ac_dir in $ac_dummy; do
2923 test -z "$ac_dir" && ac_dir=.
2924 if test -f $ac_dir/$ac_word; then
2925 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2930 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2934 GMSGFMT="$ac_cv_path_GMSGFMT"
2935 if test -n "$GMSGFMT"; then
2936 echo "$ac_t""$GMSGFMT" 1>&6
2938 echo "$ac_t""no" 1>&6
2941 # Extract the first word of "xgettext", so it can be a program name with args.
2942 set dummy xgettext; ac_word=$2
2943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2944 echo "configure:2945: checking for $ac_word" >&5
2945 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2950 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2954 for ac_dir in $PATH; do
2955 test -z "$ac_dir" && ac_dir=.
2956 if test -f $ac_dir/$ac_word; then
2957 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2958 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2964 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2968 XGETTEXT="$ac_cv_path_XGETTEXT"
2969 if test "$XGETTEXT" != ":"; then
2970 echo "$ac_t""$XGETTEXT" 1>&6
2972 echo "$ac_t""no" 1>&6
2976 BUILD_INCLUDED_LIBINTL=yes
2977 USE_INCLUDED_LIBINTL=yes
2979 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2980 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2983 if test "$GMSGFMT" != ":"; then
2984 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2987 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2992 if test "$XGETTEXT" != ":"; then
2993 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2996 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3006 if test "$PACKAGE" = gettext; then
3007 BUILD_INCLUDED_LIBINTL=yes
3010 for ac_prog in bison
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3015 echo "configure:3016: checking for $ac_word" >&5
3016 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 if test -n "$INTLBISON"; then
3020 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3024 for ac_dir in $ac_dummy; do
3025 test -z "$ac_dir" && ac_dir=.
3026 if test -f $ac_dir/$ac_word; then
3027 ac_cv_prog_INTLBISON="$ac_prog"
3034 INTLBISON="$ac_cv_prog_INTLBISON"
3035 if test -n "$INTLBISON"; then
3036 echo "$ac_t""$INTLBISON" 1>&6
3038 echo "$ac_t""no" 1>&6
3041 test -n "$INTLBISON" && break
3044 if test -z "$INTLBISON"; then
3047 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3048 echo "configure:3049: checking version of bison" >&5
3049 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3050 case $ac_prog_version in
3051 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3052 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3053 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3054 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3056 echo "$ac_t""$ac_prog_version" 1>&6
3058 if test $ac_verc_fail = yes; then
3062 for lang in $ALL_LINGUAS; do
3063 GMOFILES="$GMOFILES $lang.gmo"
3064 POFILES="$POFILES $lang.po"
3078 nls_cv_header_libgt=
3090 if test "x$CATOBJEXT" != "x"; then
3091 if test "x$ALL_LINGUAS" = "x"; then
3094 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3095 echo "configure:3096: checking for catalogs to be installed" >&5
3097 for presentlang in $ALL_LINGUAS; do
3099 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3100 # Use the presentlang catalog if desiredlang is
3101 # a. equal to presentlang, or
3102 # b. a variant of presentlang (because in this case,
3103 # presentlang can be used as a fallback for messages
3104 # which are not translated in the desiredlang catalog).
3105 case "$desiredlang" in
3106 "$presentlang"*) useit=yes;;
3109 if test $useit = yes; then
3110 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3113 LINGUAS=$NEW_LINGUAS
3114 echo "$ac_t""$LINGUAS" 1>&6
3117 if test -n "$LINGUAS"; then
3118 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3123 if test -n "$ac_aux_dir"; then
3124 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3126 if test -z "$MKINSTALLDIRS"; then
3127 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3131 INTL_LIBTOOL_SUFFIX_PREFIX=
3135 # Find a good install program. We prefer a C program (faster),
3136 # so one script is as good as another. But avoid the broken or
3137 # incompatible versions:
3138 # SysV /etc/install, /usr/sbin/install
3139 # SunOS /usr/etc/install
3140 # IRIX /sbin/install
3142 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3143 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3144 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3145 # ./install, which can be erroneously created by make from ./install.sh.
3146 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3147 echo "configure:3148: checking for a BSD compatible install" >&5
3148 if test -z "$INSTALL"; then
3149 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3153 for ac_dir in $PATH; do
3154 # Account for people who put trailing slashes in PATH elements.
3156 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3158 # OSF1 and SCO ODT 3.0 have their own names for install.
3159 # Don't use installbsd from OSF since it installs stuff as root
3161 for ac_prog in ginstall scoinst install; do
3162 if test -f $ac_dir/$ac_prog; then
3163 if test $ac_prog = install &&
3164 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3165 # AIX install. It has an incompatible calling convention.
3168 ac_cv_path_install="$ac_dir/$ac_prog -c"
3179 if test "${ac_cv_path_install+set}" = set; then
3180 INSTALL="$ac_cv_path_install"
3182 # As a last resort, use the slow shell script. We don't cache a
3183 # path for INSTALL within a source directory, because that will
3184 # break other packages using the cache if that directory is
3185 # removed, or if the path is relative.
3186 INSTALL="$ac_install_sh"
3189 echo "$ac_t""$INSTALL" 1>&6
3191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3192 # It thinks the first close brace ends the variable substitution.
3193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3200 echo $ac_n "checking for working const""... $ac_c" 1>&6
3201 echo "configure:3202: checking for working const" >&5
3202 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3211 /* Ultrix mips cc rejects this. */
3212 typedef int charset[2]; const charset x;
3213 /* SunOS 4.1.1 cc rejects this. */
3214 char const *const *ccp;
3216 /* NEC SVR4.0.2 mips cc rejects this. */
3217 struct point {int x, y;};
3218 static struct point const zero = {0,0};
3219 /* AIX XL C 1.02.0.0 rejects this.
3220 It does not let you subtract one const X* pointer from another in an arm
3221 of an if-expression whose if-part is not a constant expression */
3222 const char *g = "string";
3223 ccp = &g + (g ? g-g : 0);
3224 /* HPUX 7.0 cc rejects these. */
3227 ccp = (char const *const *) p;
3228 { /* SCO 3.2v4 cc rejects this. */
3230 char const *s = 0 ? (char *) 0 : (char const *) 0;
3234 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3236 const int *foo = &x[0];
3239 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3240 typedef const int *iptr;
3244 { /* AIX XL C 1.02.0.0 rejects this saying
3245 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3246 struct s { int j; const int *ap[3]; };
3247 struct s *b; b->j = 5;
3249 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3267 echo "$ac_t""$ac_cv_c_const" 1>&6
3268 if test $ac_cv_c_const = no; then
3269 cat >> confdefs.h <<\EOF
3275 echo $ac_n "checking for inline""... $ac_c" 1>&6
3276 echo "configure:3277: checking for inline" >&5
3277 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3281 for ac_kw in inline __inline__ __inline; do
3282 cat > conftest.$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3290 if { (eval echo configure:3291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3292 ac_cv_c_inline=$ac_kw; break
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3302 echo "$ac_t""$ac_cv_c_inline" 1>&6
3303 case "$ac_cv_c_inline" in
3305 no) cat >> confdefs.h <<\EOF
3309 *) cat >> confdefs.h <<EOF
3310 #define inline $ac_cv_c_inline
3316 vlc_LDFLAGS="${LDFLAGS}"
3318 case "x${target_os}" in
3327 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3328 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3329 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3333 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3337 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3338 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3342 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}windres; ac_word=$2
3344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_word" >&5
3346 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 if test -n "$WINDRES"; then
3350 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3354 for ac_dir in $ac_dummy; do
3355 test -z "$ac_dir" && ac_dir=.
3356 if test -f $ac_dir/$ac_word; then
3357 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3364 WINDRES="$ac_cv_prog_WINDRES"
3365 if test -n "$WINDRES"; then
3366 echo "$ac_t""$WINDRES" 1>&6
3368 echo "$ac_t""no" 1>&6
3372 if test -z "$ac_cv_prog_WINDRES"; then
3373 if test -n "$ac_tool_prefix"; then
3374 # Extract the first word of "windres", so it can be a program name with args.
3375 set dummy windres; ac_word=$2
3376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3377 echo "configure:3378: checking for $ac_word" >&5
3378 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3381 if test -n "$WINDRES"; then
3382 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3386 for ac_dir in $ac_dummy; do
3387 test -z "$ac_dir" && ac_dir=.
3388 if test -f $ac_dir/$ac_word; then
3389 ac_cv_prog_WINDRES="windres"
3394 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3397 WINDRES="$ac_cv_prog_WINDRES"
3398 if test -n "$WINDRES"; then
3399 echo "$ac_t""$WINDRES" 1>&6
3401 echo "$ac_t""no" 1>&6
3409 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3410 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3411 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3412 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3413 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3414 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3415 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3419 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3420 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3427 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3428 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3429 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3430 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3431 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3438 if test "x${SYS}" = "xmingw32"
3440 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3442 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3443 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3446 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3448 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3451 echo "configure:3452: checking for $ac_func" >&5
3452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 /* System header to define __stub macros and hopefully few prototypes,
3459 which can conflict with char $ac_func(); below. */
3461 /* Override any gcc2 internal prototype to avoid an error. */
3462 /* We use char because int might match the return type of a gcc2
3463 builtin and then its argument prototype would still apply. */
3468 /* The GNU C library defines this for functions which it implements
3469 to always fail with ENOSYS. Some functions are actually named
3470 something starting with __ and the normal name is an alias. */
3471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3479 if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3481 eval "ac_cv_func_$ac_func=yes"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3486 eval "ac_cv_func_$ac_func=no"
3491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3492 echo "$ac_t""yes" 1>&6
3493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3494 cat >> confdefs.h <<EOF
3495 #define $ac_tr_func 1
3499 echo "$ac_t""no" 1>&6
3504 echo $ac_n "checking for connect""... $ac_c" 1>&6
3505 echo "configure:3506: checking for connect" >&5
3506 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3509 cat > conftest.$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 /* System header to define __stub macros and hopefully few prototypes,
3513 which can conflict with char connect(); below. */
3515 /* Override any gcc2 internal prototype to avoid an error. */
3516 /* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3522 /* The GNU C library defines this for functions which it implements
3523 to always fail with ENOSYS. Some functions are actually named
3524 something starting with __ and the normal name is an alias. */
3525 #if defined (__stub_connect) || defined (__stub___connect)
3533 if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3535 eval "ac_cv_func_connect=yes"
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3540 eval "ac_cv_func_connect=no"
3545 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3549 echo "$ac_t""no" 1>&6
3551 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3552 echo "configure:3553: checking for connect in -lsocket" >&5
3553 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 ac_save_LIBS="$LIBS"
3558 LIBS="-lsocket $LIBS"
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 /* Override any gcc2 internal prototype to avoid an error. */
3563 /* We use char because int might match the return type of a gcc2
3564 builtin and then its argument prototype would still apply. */
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_lib_$ac_lib_var=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_lib_$ac_lib_var=no"
3581 LIBS="$ac_save_LIBS"
3584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3586 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3587 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3590 echo "$ac_t""no" 1>&6
3595 echo $ac_n "checking for send""... $ac_c" 1>&6
3596 echo "configure:3597: checking for send" >&5
3597 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* System header to define __stub macros and hopefully few prototypes,
3604 which can conflict with char send(); below. */
3606 /* Override any gcc2 internal prototype to avoid an error. */
3607 /* We use char because int might match the return type of a gcc2
3608 builtin and then its argument prototype would still apply. */
3613 /* The GNU C library defines this for functions which it implements
3614 to always fail with ENOSYS. Some functions are actually named
3615 something starting with __ and the normal name is an alias. */
3616 #if defined (__stub_send) || defined (__stub___send)
3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3626 eval "ac_cv_func_send=yes"
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3631 eval "ac_cv_func_send=no"
3636 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3637 echo "$ac_t""yes" 1>&6
3640 echo "$ac_t""no" 1>&6
3642 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3643 echo "configure:3644: checking for send in -lsocket" >&5
3644 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 ac_save_LIBS="$LIBS"
3649 LIBS="-lsocket $LIBS"
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 /* Override any gcc2 internal prototype to avoid an error. */
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3662 if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3664 eval "ac_cv_lib_$ac_lib_var=yes"
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3669 eval "ac_cv_lib_$ac_lib_var=no"
3672 LIBS="$ac_save_LIBS"
3675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3677 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3680 echo "$ac_t""no" 1>&6
3685 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3686 echo "configure:3687: checking for gethostbyname" >&5
3687 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* System header to define __stub macros and hopefully few prototypes,
3694 which can conflict with char gethostbyname(); below. */
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699 char gethostbyname();
3703 /* The GNU C library defines this for functions which it implements
3704 to always fail with ENOSYS. Some functions are actually named
3705 something starting with __ and the normal name is an alias. */
3706 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716 eval "ac_cv_func_gethostbyname=yes"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 eval "ac_cv_func_gethostbyname=no"
3726 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3730 echo "$ac_t""no" 1>&6
3732 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3733 echo "configure:3734: checking for gethostbyname in -lnsl" >&5
3734 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 ac_save_LIBS="$LIBS"
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 /* Override any gcc2 internal prototype to avoid an error. */
3744 /* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3746 char gethostbyname();
3752 if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3754 eval "ac_cv_lib_$ac_lib_var=yes"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 eval "ac_cv_lib_$ac_lib_var=no"
3762 LIBS="$ac_save_LIBS"
3765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3766 echo "$ac_t""yes" 1>&6
3767 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3769 echo "$ac_t""no" 1>&6
3775 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3776 echo "configure:3777: checking for gethostbyname" >&5
3777 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 /* System header to define __stub macros and hopefully few prototypes,
3784 which can conflict with char gethostbyname(); below. */
3786 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3789 char gethostbyname();
3793 /* The GNU C library defines this for functions which it implements
3794 to always fail with ENOSYS. Some functions are actually named
3795 something starting with __ and the normal name is an alias. */
3796 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3804 if { (eval echo configure:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3806 eval "ac_cv_func_gethostbyname=yes"
3808 echo "configure: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3811 eval "ac_cv_func_gethostbyname=no"
3816 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3817 echo "$ac_t""yes" 1>&6
3820 echo "$ac_t""no" 1>&6
3822 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3823 echo "configure:3824: checking for gethostbyname in -lbind" >&5
3824 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 ac_save_LIBS="$LIBS"
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 /* Override any gcc2 internal prototype to avoid an error. */
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3836 char gethostbyname();
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3844 eval "ac_cv_lib_$ac_lib_var=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 eval "ac_cv_lib_$ac_lib_var=no"
3852 LIBS="$ac_save_LIBS"
3855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3857 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3859 echo "$ac_t""no" 1>&6
3866 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3867 echo "configure:3868: checking for nanosleep" >&5
3868 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 /* System header to define __stub macros and hopefully few prototypes,
3875 which can conflict with char nanosleep(); below. */
3877 /* Override any gcc2 internal prototype to avoid an error. */
3878 /* We use char because int might match the return type of a gcc2
3879 builtin and then its argument prototype would still apply. */
3884 /* The GNU C library defines this for functions which it implements
3885 to always fail with ENOSYS. Some functions are actually named
3886 something starting with __ and the normal name is an alias. */
3887 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3895 if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3897 eval "ac_cv_func_nanosleep=yes"
3899 echo "configure: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3902 eval "ac_cv_func_nanosleep=no"
3907 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3908 echo "$ac_t""yes" 1>&6
3911 echo "$ac_t""no" 1>&6
3913 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3914 echo "configure:3915: checking for nanosleep in -lrt" >&5
3915 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 ac_save_LIBS="$LIBS"
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 /* Override any gcc2 internal prototype to avoid an error. */
3925 /* We use char because int might match the return type of a gcc2
3926 builtin and then its argument prototype would still apply. */
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935 eval "ac_cv_lib_$ac_lib_var=yes"
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3940 eval "ac_cv_lib_$ac_lib_var=no"
3943 LIBS="$ac_save_LIBS"
3946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3950 echo "$ac_t""no" 1>&6
3951 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3952 echo "configure:3953: checking for nanosleep in -lposix4" >&5
3953 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 ac_save_LIBS="$LIBS"
3958 LIBS="-lposix4 $LIBS"
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3973 eval "ac_cv_lib_$ac_lib_var=yes"
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3978 eval "ac_cv_lib_$ac_lib_var=no"
3981 LIBS="$ac_save_LIBS"
3984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3986 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3988 echo "$ac_t""no" 1>&6
3997 if test x$have_nanosleep = x1; then
3998 cat >> confdefs.h <<\EOF
3999 #define HAVE_NANOSLEEP 1
4004 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
4005 echo "configure:4006: checking for sem_init in -lrt" >&5
4006 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
4007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 ac_save_LIBS="$LIBS"
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 /* Override any gcc2 internal prototype to avoid an error. */
4016 /* We use char because int might match the return type of a gcc2
4017 builtin and then its argument prototype would still apply. */
4024 if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4026 eval "ac_cv_lib_$ac_lib_var=yes"
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4031 eval "ac_cv_lib_$ac_lib_var=no"
4034 LIBS="$ac_save_LIBS"
4037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4039 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
4041 echo "$ac_t""no" 1>&6
4045 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
4046 echo "configure:4047: checking for inet_aton" >&5
4047 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4053 /* System header to define __stub macros and hopefully few prototypes,
4054 which can conflict with char inet_aton(); below. */
4056 /* Override any gcc2 internal prototype to avoid an error. */
4057 /* We use char because int might match the return type of a gcc2
4058 builtin and then its argument prototype would still apply. */
4063 /* The GNU C library defines this for functions which it implements
4064 to always fail with ENOSYS. Some functions are actually named
4065 something starting with __ and the normal name is an alias. */
4066 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4074 if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4076 eval "ac_cv_func_inet_aton=yes"
4078 echo "configure: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4081 eval "ac_cv_func_inet_aton=no"
4086 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
4087 echo "$ac_t""yes" 1>&6
4090 echo "$ac_t""no" 1>&6
4092 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4093 echo "configure:4094: checking for inet_aton in -lresolv" >&5
4094 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
4095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 ac_save_LIBS="$LIBS"
4099 LIBS="-lresolv $LIBS"
4100 cat > conftest.$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114 eval "ac_cv_lib_$ac_lib_var=yes"
4116 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4119 eval "ac_cv_lib_$ac_lib_var=no"
4122 LIBS="$ac_save_LIBS"
4125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4126 echo "$ac_t""yes" 1>&6
4127 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4129 echo "$ac_t""no" 1>&6
4135 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4136 echo "configure:4137: checking for textdomain" >&5
4137 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4143 /* System header to define __stub macros and hopefully few prototypes,
4144 which can conflict with char textdomain(); below. */
4146 /* Override any gcc2 internal prototype to avoid an error. */
4147 /* We use char because int might match the return type of a gcc2
4148 builtin and then its argument prototype would still apply. */
4153 /* The GNU C library defines this for functions which it implements
4154 to always fail with ENOSYS. Some functions are actually named
4155 something starting with __ and the normal name is an alias. */
4156 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4164 if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4166 eval "ac_cv_func_textdomain=yes"
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4171 eval "ac_cv_func_textdomain=no"
4176 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4180 echo "$ac_t""no" 1>&6
4182 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4183 echo "configure:4184: checking for textdomain in -lintl" >&5
4184 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 ac_save_LIBS="$LIBS"
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 /* Override any gcc2 internal prototype to avoid an error. */
4194 /* We use char because int might match the return type of a gcc2
4195 builtin and then its argument prototype would still apply. */
4202 if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4204 eval "ac_cv_lib_$ac_lib_var=yes"
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4209 eval "ac_cv_lib_$ac_lib_var=no"
4212 LIBS="$ac_save_LIBS"
4215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4218 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4221 echo "$ac_t""no" 1>&6
4229 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4230 echo "configure:4231: checking for getopt_long" >&5
4231 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4237 /* System header to define __stub macros and hopefully few prototypes,
4238 which can conflict with char getopt_long(); below. */
4240 /* Override any gcc2 internal prototype to avoid an error. */
4241 /* We use char because int might match the return type of a gcc2
4242 builtin and then its argument prototype would still apply. */
4247 /* The GNU C library defines this for functions which it implements
4248 to always fail with ENOSYS. Some functions are actually named
4249 something starting with __ and the normal name is an alias. */
4250 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260 eval "ac_cv_func_getopt_long=yes"
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4265 eval "ac_cv_func_getopt_long=no"
4270 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4271 echo "$ac_t""yes" 1>&6
4272 cat >> confdefs.h <<\EOF
4273 #define HAVE_GETOPT_LONG 1
4277 echo "$ac_t""no" 1>&6
4278 # FreeBSD has a gnugetopt library for this:
4279 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4280 echo "configure:4281: checking for getopt_long in -lgnugetopt" >&5
4281 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4285 ac_save_LIBS="$LIBS"
4286 LIBS="-lgnugetopt $LIBS"
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 /* Override any gcc2 internal prototype to avoid an error. */
4291 /* We use char because int might match the return type of a gcc2
4292 builtin and then its argument prototype would still apply. */
4299 if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4301 eval "ac_cv_lib_$ac_lib_var=yes"
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4306 eval "ac_cv_lib_$ac_lib_var=no"
4309 LIBS="$ac_save_LIBS"
4312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 cat >> confdefs.h <<\EOF
4315 #define HAVE_GETOPT_LONG 1
4317 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4319 echo "$ac_t""no" 1>&6
4326 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4327 echo "configure:4328: checking return type of signal handlers" >&5
4328 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 #include <sys/types.h>
4340 extern "C" void (*signal (int, void (*)(int)))(int);
4342 void (*signal ()) ();
4349 if { (eval echo configure:4350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4351 ac_cv_type_signal=void
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4356 ac_cv_type_signal=int
4361 echo "$ac_t""$ac_cv_type_signal" 1>&6
4362 cat >> confdefs.h <<EOF
4363 #define RETSIGTYPE $ac_cv_type_signal
4367 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4368 echo "configure:4369: checking for dlopen in -ldl" >&5
4369 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 ac_save_LIBS="$LIBS"
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4389 eval "ac_cv_lib_$ac_lib_var=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_lib_$ac_lib_var=no"
4397 LIBS="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4402 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4404 echo "$ac_t""no" 1>&6
4407 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4408 echo "configure:4409: checking for cos in -lm" >&5
4409 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 ac_save_LIBS="$LIBS"
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 eval "ac_cv_lib_$ac_lib_var=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_lib_$ac_lib_var=no"
4437 LIBS="$ac_save_LIBS"
4440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4441 echo "$ac_t""yes" 1>&6
4442 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4443 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4445 echo "$ac_t""no" 1>&6
4448 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4449 echo "configure:4450: checking for pow in -lm" >&5
4450 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4454 ac_save_LIBS="$LIBS"
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 /* Override any gcc2 internal prototype to avoid an error. */
4460 /* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4468 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4470 eval "ac_cv_lib_$ac_lib_var=yes"
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4475 eval "ac_cv_lib_$ac_lib_var=no"
4478 LIBS="$ac_save_LIBS"
4481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4484 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4485 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4486 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4487 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4490 echo "$ac_t""no" 1>&6
4495 if test "x${THREAD_LIB}" = "xerror"; then
4496 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4497 echo "configure:4498: checking for main in -lpthread" >&5
4498 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 ac_save_LIBS="$LIBS"
4503 LIBS="-lpthread $LIBS"
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4512 if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4514 eval "ac_cv_lib_$ac_lib_var=yes"
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4519 eval "ac_cv_lib_$ac_lib_var=no"
4522 LIBS="$ac_save_LIBS"
4525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4526 echo "$ac_t""yes" 1>&6
4527 THREAD_LIB="-lpthread"
4529 echo "$ac_t""no" 1>&6
4533 if test "x${THREAD_LIB}" = "xerror"; then
4534 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4535 echo "configure:4536: checking for main in -lpthreads" >&5
4536 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4540 ac_save_LIBS="$LIBS"
4541 LIBS="-lpthreads $LIBS"
4542 cat > conftest.$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 eval "ac_cv_lib_$ac_lib_var=no"
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 THREAD_LIB="-lpthreads"
4567 echo "$ac_t""no" 1>&6
4571 if test "x${THREAD_LIB}" = "xerror"; then
4572 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4573 echo "configure:4574: checking for main in -lc_r" >&5
4574 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 ac_save_LIBS="$LIBS"
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4588 if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4590 eval "ac_cv_lib_$ac_lib_var=yes"
4592 echo "configure: failed program was:" >&5
4593 cat conftest.$ac_ext >&5
4595 eval "ac_cv_lib_$ac_lib_var=no"
4598 LIBS="$ac_save_LIBS"
4601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4602 echo "$ac_t""yes" 1>&6
4605 echo "$ac_t""no" 1>&6
4609 if test "x${THREAD_LIB}" = "xerror"; then
4610 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4611 echo "configure:4612: checking for pthread_mutex_lock" >&5
4612 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 /* System header to define __stub macros and hopefully few prototypes,
4619 which can conflict with char pthread_mutex_lock(); below. */
4621 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4624 char pthread_mutex_lock();
4628 /* The GNU C library defines this for functions which it implements
4629 to always fail with ENOSYS. Some functions are actually named
4630 something starting with __ and the normal name is an alias. */
4631 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4634 pthread_mutex_lock();
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4641 eval "ac_cv_func_pthread_mutex_lock=yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4646 eval "ac_cv_func_pthread_mutex_lock=no"
4651 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4655 echo "$ac_t""no" 1>&6
4661 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4662 echo "configure:4663: checking for cthread_fork in -lthreads" >&5
4663 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4667 ac_save_LIBS="$LIBS"
4668 LIBS="-lthreads $LIBS"
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* Override any gcc2 internal prototype to avoid an error. */
4673 /* We use char because int might match the return type of a gcc2
4674 builtin and then its argument prototype would still apply. */
4675 char cthread_fork();
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 eval "ac_cv_lib_$ac_lib_var=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 eval "ac_cv_lib_$ac_lib_var=no"
4691 LIBS="$ac_save_LIBS"
4694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 THREAD_LIB="-lthreads"
4698 echo "$ac_t""no" 1>&6
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <pthread.h>
4707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708 egrep "pthread_cond_t" >/dev/null 2>&1; then
4711 cat >> confdefs.h <<\EOF
4712 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 #include <pthread.h>
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 egrep "pthread_once" >/dev/null 2>&1; then
4727 cat >> confdefs.h <<\EOF
4728 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4737 #include <strings.h>
4739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4740 egrep "strncasecmp" >/dev/null 2>&1; then
4743 cat >> confdefs.h <<\EOF
4744 #define STRNCASECMP_IN_STRINGS_H 1
4751 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4755 echo "configure:4756: checking for $ac_hdr" >&5
4756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4765 { (eval echo configure:4766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4767 if test -z "$ac_err"; then
4769 eval "ac_cv_header_$ac_safe=yes"
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4775 eval "ac_cv_header_$ac_safe=no"
4779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4782 cat >> confdefs.h <<EOF
4783 #define $ac_tr_hdr 1
4787 echo "$ac_t""no" 1>&6
4791 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4795 echo "configure:4796: checking for $ac_hdr" >&5
4796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4805 { (eval echo configure:4806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4807 if test -z "$ac_err"; then
4809 eval "ac_cv_header_$ac_safe=yes"
4812 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4815 eval "ac_cv_header_$ac_safe=no"
4819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4820 echo "$ac_t""yes" 1>&6
4821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4822 cat >> confdefs.h <<EOF
4823 #define $ac_tr_hdr 1
4827 echo "$ac_t""no" 1>&6
4831 for ac_hdr in dlfcn.h image.h
4833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4835 echo "configure:4836: checking for $ac_hdr" >&5
4836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4845 { (eval echo configure:4846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4847 if test -z "$ac_err"; then
4849 eval "ac_cv_header_$ac_safe=yes"
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4855 eval "ac_cv_header_$ac_safe=no"
4859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4860 echo "$ac_t""yes" 1>&6
4861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4862 cat >> confdefs.h <<EOF
4863 #define $ac_tr_hdr 1
4867 echo "$ac_t""no" 1>&6
4871 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4875 echo "configure:4876: checking for $ac_hdr" >&5
4876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4885 { (eval echo configure:4886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4887 if test -z "$ac_err"; then
4889 eval "ac_cv_header_$ac_safe=yes"
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 eval "ac_cv_header_$ac_safe=no"
4899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4900 echo "$ac_t""yes" 1>&6
4901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4902 cat >> confdefs.h <<EOF
4903 #define $ac_tr_hdr 1
4907 echo "$ac_t""no" 1>&6
4911 for ac_hdr in machine/param.h sys/shm.h
4913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4915 echo "configure:4916: checking for $ac_hdr" >&5
4916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4925 { (eval echo configure:4926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4927 if test -z "$ac_err"; then
4929 eval "ac_cv_header_$ac_safe=yes"
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4935 eval "ac_cv_header_$ac_safe=no"
4939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4941 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_hdr 1
4947 echo "$ac_t""no" 1>&6
4951 for ac_hdr in linux/version.h
4953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4955 echo "configure:4956: checking for $ac_hdr" >&5
4956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4965 { (eval echo configure:4966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4967 if test -z "$ac_err"; then
4969 eval "ac_cv_header_$ac_safe=yes"
4972 echo "configure: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4975 eval "ac_cv_header_$ac_safe=no"
4979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4982 cat >> confdefs.h <<EOF
4983 #define $ac_tr_hdr 1
4987 echo "$ac_t""no" 1>&6
4992 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4993 echo "configure:4994: checking whether time.h and sys/time.h may both be included" >&5
4994 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 #include <sys/types.h>
5001 #include <sys/time.h>
5007 if { (eval echo configure:5008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5009 ac_cv_header_time=yes
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 ac_cv_header_time=no
5019 echo "$ac_t""$ac_cv_header_time" 1>&6
5020 if test $ac_cv_header_time = yes; then
5021 cat >> confdefs.h <<\EOF
5022 #define TIME_WITH_SYS_TIME 1
5028 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034 egrep "nanosleep" >/dev/null 2>&1; then
5037 cat >> confdefs.h <<\EOF
5038 #define HAVE_DECL_NANOSLEEP 1
5046 cat > conftest.$ac_ext <<EOF
5047 #line 5048 "configure"
5048 #include "confdefs.h"
5049 #include <sys/time.h>
5051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052 egrep "timespec" >/dev/null 2>&1; then
5055 cat >> confdefs.h <<\EOF
5056 #define HAVE_STRUCT_TIMESPEC 1
5064 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
5066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5068 echo "configure:5069: checking for $ac_hdr" >&5
5069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5078 { (eval echo configure:5079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5080 if test -z "$ac_err"; then
5082 eval "ac_cv_header_$ac_safe=yes"
5085 echo "configure: failed program was:" >&5
5086 cat conftest.$ac_ext >&5
5088 eval "ac_cv_header_$ac_safe=no"
5092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5093 echo "$ac_t""yes" 1>&6
5094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5095 cat >> confdefs.h <<EOF
5096 #define $ac_tr_hdr 1
5100 echo "$ac_t""no" 1>&6
5105 if test "x${x_includes}" = "xNONE"; then
5106 x_includes="/usr/X11R6/include"
5108 if test "x${x_libraries}" = "xNONE"; then
5109 x_libraries="/usr/X11R6/lib"
5112 if test "x${SYS}" != "xmingw32"
5114 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
5115 for ac_hdr in X11/extensions/dpms.h
5117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5119 echo "configure:5120: checking for $ac_hdr" >&5
5120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5129 { (eval echo configure:5130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5131 if test -z "$ac_err"; then
5133 eval "ac_cv_header_$ac_safe=yes"
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5139 eval "ac_cv_header_$ac_safe=no"
5143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5144 echo "$ac_t""yes" 1>&6
5145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5146 cat >> confdefs.h <<EOF
5147 #define $ac_tr_hdr 1
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 #include <X11/extensions/dpms.h>
5155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5156 egrep "DPMSInfo" >/dev/null 2>&1; then
5159 cat >> confdefs.h <<\EOF
5160 #define DPMSINFO_IN_DPMS_H 1
5169 echo "$ac_t""no" 1>&6
5173 CPPFLAGS="${save_CPPFLAGS}"
5176 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5177 echo "configure:5178: checking for ntohl in sys/param.h" >&5
5178 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 CFLAGS="${save_CFLAGS} -Wall -Werror"
5182 cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 #include <sys/param.h>
5187 void foo() { int meuh; ntohl(meuh); }
5190 if { (eval echo configure:5191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5192 ac_cv_c_ntohl_sys_param_h=yes
5194 echo "configure: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5197 ac_cv_c_ntohl_sys_param_h=no
5202 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5203 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5204 cat >> confdefs.h <<\EOF
5205 #define NTOHL_IN_SYS_PARAM_H 1
5210 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5211 echo "configure:5212: checking if \$CC accepts -finline-limit" >&5
5212 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5215 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5224 if { (eval echo configure:5225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5226 ac_cv_c_inline_limit=yes
5228 echo "configure: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5231 ac_cv_c_inline_limit=no
5236 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5237 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5238 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5241 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5242 echo "configure:5243: checking if \$CC accepts -Wall -Winline" >&5
5243 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5255 if { (eval echo configure:5256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5257 ac_cv_c_Wall_Winline=yes
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5262 ac_cv_c_Wall_Winline=no
5267 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5268 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5269 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5271 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5272 echo "configure:5273: checking if \$CC accepts -wall -winline" >&5
5273 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5276 CFLAGS="-wall -winline ${save_CFLAGS}"
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5285 if { (eval echo configure:5286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5287 ac_cv_c_wall_winline=yes
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 ac_cv_c_wall_winline=no
5297 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5298 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5299 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5303 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5304 echo "configure:5305: checking if \$CC accepts -pipe" >&5
5305 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5308 CFLAGS="${save_CFLAGS} -pipe"
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5317 if { (eval echo configure:5318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5329 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5330 if test "x${ac_cv_c_pipe}" != "xno"; then
5331 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5334 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5335 echo "configure:5336: checking if \$CC accepts -O3" >&5
5336 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5339 CFLAGS="${save_CFLAGS} -O3"
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5348 if { (eval echo configure:5349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5360 echo "$ac_t""$ac_cv_c_o3" 1>&6
5361 if test "x${ac_cv_c_o3}" != "xno"; then
5362 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5364 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5365 echo "configure:5366: checking if \$CC accepts -O2" >&5
5366 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 CFLAGS="${save_CFLAGS} -O2"
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5378 if { (eval echo configure:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5382 echo "configure: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5390 echo "$ac_t""$ac_cv_c_o2" 1>&6
5391 if test "x${ac_cv_c_o2}" != "xno"; then
5392 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5394 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5395 echo "configure:5396: checking if \$CC accepts -O" >&5
5396 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6
5399 CFLAGS="${save_CFLAGS} -O"
5400 cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5408 if { (eval echo configure:5409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5412 echo "configure: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5420 echo "$ac_t""$ac_cv_c_o" 1>&6
5421 if test "x${ac_cv_c_o}" != "xno"; then
5422 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5427 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5428 echo "configure:5429: checking if \$CC accepts -ffast-math" >&5
5429 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 CFLAGS="${save_CFLAGS} -ffast-math"
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5441 if { (eval echo configure:5442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5443 ac_cv_c_fast_math=yes
5445 echo "configure: failed program was:" >&5
5446 cat conftest.$ac_ext >&5
5448 ac_cv_c_fast_math=no
5453 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5454 if test "x${ac_cv_c_fast_math}" != "xno"; then
5455 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5458 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5459 echo "configure:5460: checking if \$CC accepts -funroll-loops" >&5
5460 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5461 echo $ac_n "(cached) $ac_c" 1>&6
5463 CFLAGS="${save_CFLAGS} -funroll-loops"
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5472 if { (eval echo configure:5473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5474 ac_cv_c_unroll_loops=yes
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 ac_cv_c_unroll_loops=no
5484 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5485 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5486 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5489 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5490 echo "configure:5491: checking if \$CC accepts -fomit-frame-pointer" >&5
5491 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5492 echo $ac_n "(cached) $ac_c" 1>&6
5494 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5503 if { (eval echo configure:5504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5505 ac_cv_c_omit_frame_pointer=yes
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5510 ac_cv_c_omit_frame_pointer=no
5515 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5516 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5517 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5518 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5519 i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5522 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5523 echo "configure:5524: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5524 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5528 cat > conftest.$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5536 if { (eval echo configure:5537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5540 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5548 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5549 if test "x${ac_cv_ld_darwin}" != "xno"; then
5550 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5553 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5554 echo "configure:5555: checking if \$CC accepts -shared" >&5
5555 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5558 CFLAGS="${save_CFLAGS} -shared"
5559 cat > conftest.$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5567 if { (eval echo configure:5568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5569 ac_cv_ld_plugins=yes
5571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5579 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5580 if test "x${ac_cv_ld_plugins}" != "xno"; then
5581 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5584 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5585 echo "configure:5586: checking for variadic cpp macros" >&5
5586 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 CFLAGS="${save_CFLAGS}"
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5594 #define a(b,c...) printf(b,##c)
5596 a("foo");a("%s","bar");a("%s%s","baz","quux");
5599 if { (eval echo configure:5600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5601 ac_cv_cpp_variadic_macros=yes
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5606 ac_cv_cpp_variadic_macros=no
5611 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5612 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5613 cat >> confdefs.h <<\EOF
5614 #define HAVE_VARIADIC_MACROS 1
5619 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5620 echo "configure:5621: checking __attribute__ ((aligned ())) support" >&5
5621 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5624 ac_cv_c_attribute_aligned=0
5625 CFLAGS="${save_CFLAGS} -Werror"
5626 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5627 cat > conftest.$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5632 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5635 if { (eval echo configure:5636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5637 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5639 echo "configure: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5644 CFLAGS="${save_CFLAGS}"
5647 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5648 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5649 cat >> confdefs.h <<EOF
5650 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5655 case "x${target_cpu}" in
5660 ARCH="${target_cpu}"
5664 BUILTINS="${BUILTINS}"
5665 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null/null"
5666 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file access/udp access/http misc/network/ipv4 misc/memcpy/memcpy"
5667 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/mpeg_system demux/mpeg/ps demux/mpeg/ts"
5668 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"
5669 #PLUGINS="${PLUGINS} codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/mpeg_audio/mpeg_audio codec/a52old/a52old codec/lpcm/lpcm codec/spdif/spdif"
5670 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5671 PLUGINS="${PLUGINS} audio_filter/converter/float32tos16"
5672 PLUGINS="${PLUGINS} audio_filter/resampler/trivial"
5673 PLUGINS="${PLUGINS} audio_mixer/trivial"
5674 PLUGINS="${PLUGINS} audio_output/file"
5675 #PLUGINS="${PLUGINS} visualization/scope/scope"
5676 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5678 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"
5679 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5680 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5681 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5682 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5684 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5685 echo "configure:5686: checking if \$CC groks MMX inline assembly" >&5
5686 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5689 CFLAGS="${save_CFLAGS}"
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5695 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5698 if { (eval echo configure:5699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5700 ac_cv_mmx_inline=yes
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5710 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5711 if test "x${ac_cv_mmx_inline}" != "xno"; then
5712 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5715 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5716 echo "configure:5717: checking if \$CC groks MMX EXT inline assembly" >&5
5717 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5720 CFLAGS="${save_CFLAGS}"
5721 cat > conftest.$ac_ext <<EOF
5722 #line 5723 "configure"
5723 #include "confdefs.h"
5726 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5729 if { (eval echo configure:5730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5731 ac_cv_mmxext_inline=yes
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5736 ac_cv_mmxext_inline=no
5741 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5742 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5743 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5746 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5747 echo "configure:5748: checking if \$CC groks 3D Now! inline assembly" >&5
5748 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 CFLAGS="${save_CFLAGS}"
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5757 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5760 if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5762 ac_cv_3dnow_inline=yes
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 ac_cv_3dnow_inline=no
5772 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5773 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5774 cat >> confdefs.h <<\EOF
5775 #define CAN_COMPILE_3DNOW 1
5778 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5781 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5782 echo "configure:5783: checking if \$CC groks SSE inline assembly" >&5
5783 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5786 CFLAGS="${save_CFLAGS}"
5787 cat > conftest.$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5792 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5795 if { (eval echo configure:5796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5797 ac_cv_sse_inline=yes
5799 echo "configure: failed program was:" >&5
5800 cat conftest.$ac_ext >&5
5807 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5808 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5809 cat >> confdefs.h <<\EOF
5810 #define CAN_COMPILE_SSE 1
5813 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5816 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5817 # we should be able to remove this test with future versions of mingw32
5818 if test "x${SYS}" != "xmingw32"; then
5819 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5820 echo "configure:5821: checking if \$CC groks AltiVec inline assembly" >&5
5821 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5824 CFLAGS="${save_CFLAGS}"
5825 cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure"
5827 #include "confdefs.h"
5830 asm volatile("vperm 0,1,2,3");
5833 if { (eval echo configure:5834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5835 ac_cv_altivec_inline=yes
5837 echo "configure: failed program was:" >&5
5838 cat conftest.$ac_ext >&5
5840 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5846 asm volatile("vperm 0,1,2,3");
5849 if { (eval echo configure:5850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5851 ac_cv_altivec_inline="-Wa,-m7400"
5853 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5856 ac_cv_altivec_inline=no
5864 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5865 if test "x${ac_cv_altivec_inline}" != "xno"; then
5866 cat >> confdefs.h <<\EOF
5867 #define CAN_COMPILE_ALTIVEC 1
5870 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5871 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5872 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5873 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5874 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5876 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5879 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5880 echo "configure:5881: checking if \$CC groks AltiVec C extensions" >&5
5881 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5884 CFLAGS="${save_CFLAGS} -faltivec"
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5891 vec_mtvscr((vector unsigned int)(0));
5894 if { (eval echo configure:5895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5896 ac_cv_c_altivec=-faltivec
5898 echo "configure: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5903 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5909 vec_mtvscr((vector unsigned int)(0));
5912 if { (eval echo configure:5913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5914 ac_cv_c_altivec="-fvec"
5916 echo "configure: failed program was:" >&5
5917 cat conftest.$ac_ext >&5
5925 CFLAGS="${save_CFLAGS}"
5928 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5929 if test "x${ac_cv_c_altivec}" != "xno"; then
5930 cat >> confdefs.h <<\EOF
5931 #define CAN_COMPILE_C_ALTIVEC 1
5934 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5935 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5936 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5937 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5938 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5941 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5942 echo "configure:5943: checking if linker needs -framework vecLib" >&5
5943 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5946 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5947 cat > conftest.$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5955 if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5957 ac_cv_ld_altivec=yes
5959 echo "configure: failed program was:" >&5
5960 cat conftest.$ac_ext >&5
5965 LDFLAGS="${save_LDFLAGS}"
5969 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5970 if test "x${ac_cv_ld_altivec}" != "xno"; then
5971 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5972 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5973 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5974 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5979 # Check whether --with- or --without- was given.
5980 if test "${with_+set}" = set; then
5985 # Check whether --with- or --without- was given.
5986 if test "${with_+set}" = set; then
5992 # Check whether --with-tuning or --without-tuning was given.
5993 if test "${with_tuning+set}" = set; then
5994 withval="$with_tuning"
5998 if test "x${with_tuning}" != "x"; then
5999 TUNING="${with_tuning}"
6001 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
6003 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
6007 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
6010 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
6013 # Check whether --enable-optimizations or --disable-optimizations was given.
6014 if test "${enable_optimizations+set}" = set; then
6015 enableval="$enable_optimizations"
6016 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
6022 # Check whether --enable-altivec or --disable-altivec was given.
6023 if test "${enable_altivec+set}" = set; then
6024 enableval="$enable_altivec"
6025 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
6026 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6028 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
6029 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6034 # Check whether --enable-debug or --disable-debug was given.
6035 if test "${enable_debug+set}" = set; then
6036 enableval="$enable_debug"
6037 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
6042 # Check whether --enable-release or --disable-release was given.
6043 if test "${enable_release+set}" = set; then
6044 enableval="$enable_release"
6045 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
6047 VERSION="${VERSION}_`date +%Y-%m-%d`"
6052 # Check whether --with- or --without- was given.
6053 if test "${with_+set}" = set; then
6059 # Check whether --enable-dvd or --disable-dvd was given.
6060 if test "${enable_dvd+set}" = set; then
6061 enableval="$enable_dvd"
6065 if test "x${enable_dvd}" != "xno"
6067 # Check whether --with-dvdcss or --without-dvdcss was given.
6068 if test "${with_dvdcss+set}" = set; then
6069 withval="$with_dvdcss"
6073 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
6074 if test "${with_dvdcss_tree+set}" = set; then
6075 withval="$with_dvdcss_tree"
6079 case "x${with_dvdcss}" in
6081 if test "x${with_dvdcss_tree}" = x
6083 for ac_hdr in dvdcss/dvdcss.h
6085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6087 echo "configure:6088: checking for $ac_hdr" >&5
6088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6097 { (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6099 if test -z "$ac_err"; then
6101 eval "ac_cv_header_$ac_safe=yes"
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6107 eval "ac_cv_header_$ac_safe=no"
6111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6112 echo "$ac_t""yes" 1>&6
6113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6114 cat >> confdefs.h <<EOF
6115 #define $ac_tr_hdr 1
6117 PLUGINS="${PLUGINS} access/dvd/dvd"
6118 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
6120 echo "$ac_t""no" 1>&6
6121 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
6122 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
6127 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
6128 echo "configure:6129: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
6129 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6130 if test "x${real_dvdcss_tree}" = "x"
6132 echo "$ac_t""no" 1>&6
6133 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6135 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6137 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6138 BUILTINS="${BUILTINS} access/dvd/dvd"
6139 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6140 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6142 echo "$ac_t""no" 1>&6
6143 { 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; }
6148 PLUGINS="${PLUGINS} access/dvd/dvd"
6149 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6150 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6153 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6154 echo "configure:6155: checking for dvdcss headers in ${with_dvdcss}" >&5
6155 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6157 echo "$ac_t""yes" 1>&6
6158 PLUGINS="${PLUGINS} access/dvd/dvd"
6159 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6160 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6162 echo "$ac_t""no" 1>&6
6163 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6169 # Check whether --enable-dvdread or --disable-dvdread was given.
6170 if test "${enable_dvdread+set}" = set; then
6171 enableval="$enable_dvdread"
6175 if test "x${enable_dvdread}" != "xno"
6177 # Check whether --with-dvdread or --without-dvdread was given.
6178 if test "${with_dvdread+set}" = set; then
6179 withval="$with_dvdread"
6183 if test "x${with_dvdread}" = "x"
6188 test_LDFLAGS="-L${with_dvdread}/lib"
6189 test_CFLAGS="-I${with_dvdread}/include"
6191 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6192 for ac_hdr in dvdread/dvd_reader.h
6194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6196 echo "configure:6197: checking for $ac_hdr" >&5
6197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6200 cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6206 { (eval echo configure:6207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6208 if test -z "$ac_err"; then
6210 eval "ac_cv_header_$ac_safe=yes"
6213 echo "configure: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6216 eval "ac_cv_header_$ac_safe=no"
6220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6221 echo "$ac_t""yes" 1>&6
6222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6223 cat >> confdefs.h <<EOF
6224 #define $ac_tr_hdr 1
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 #include <dvdread/dvd_reader.h>
6232 void foo() { int i=DVD_VIDEO_LB_LEN; }
6235 if { (eval echo configure:6236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6238 PLUGINS="${PLUGINS} access/dvdread/dvdread"
6239 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6240 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6243 echo "configure: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6247 if test "x${enable_dvdread}" != "x"
6249 { 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; }
6256 echo "$ac_t""no" 1>&6
6257 if test "x${enable_dvdread}" != "x"
6259 if test "x${with_dvdread}" != "x"
6261 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6263 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6270 CPPFLAGS="$save_CPPFLAGS"
6273 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6274 if test "${enable_dvdplay+set}" = set; then
6275 enableval="$enable_dvdplay"
6279 if test "x$enable_dvdplay" != "xno"
6281 # Check whether --with-dvdplay or --without-dvdplay was given.
6282 if test "${with_dvdplay+set}" = set; then
6283 withval="$with_dvdplay"
6287 if test "x$with_dvdplay" = x
6292 test_LDFLAGS="-L${with_dvdplay}/lib"
6293 test_CFLAGS="-I${with_dvdplay}/include"
6295 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6296 for ac_hdr in dvdplay/dvdplay.h
6298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6300 echo "configure:6301: checking for $ac_hdr" >&5
6301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6310 { (eval echo configure:6311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6312 if test -z "$ac_err"; then
6314 eval "ac_cv_header_$ac_safe=yes"
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6320 eval "ac_cv_header_$ac_safe=no"
6324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6325 echo "$ac_t""yes" 1>&6
6326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6327 cat >> confdefs.h <<EOF
6328 #define $ac_tr_hdr 1
6331 PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6332 dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6333 dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6336 echo "$ac_t""no" 1>&6
6337 if test "x$enable_dvdplay" != x
6339 if test "x$with_dvdplay" != x
6341 { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6343 { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6350 CPPFLAGS="${save_CPPFLAGS}"
6354 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6355 if test "${enable_dvbpsi+set}" = set; then
6356 enableval="$enable_dvbpsi"
6360 if test "x${enable_dvbpsi}" != "xno"
6362 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6363 if test "${with_dvbpsi+set}" = set; then
6364 withval="$with_dvbpsi"
6368 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6369 if test "${with_dvbpsi+set}" = set; then
6370 withval="$with_dvbpsi"
6374 case "x${with_dvbpsi}" in
6376 if test "x${with_dvbpsi_tree}" = "x"
6378 for ac_hdr in dvbpsi/dr.h
6380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6382 echo "configure:6383: checking for $ac_hdr" >&5
6383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6386 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6392 { (eval echo configure:6393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6394 if test -z "$ac_err"; then
6396 eval "ac_cv_header_$ac_safe=yes"
6399 echo "configure: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6402 eval "ac_cv_header_$ac_safe=no"
6406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6407 echo "$ac_t""yes" 1>&6
6408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6409 cat >> confdefs.h <<EOF
6410 #define $ac_tr_hdr 1
6412 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6413 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi"
6415 echo "$ac_t""no" 1>&6
6420 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6421 echo "configure:6422: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6422 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6423 if test "x${real_dvbpsi_tree}" = "x"
6425 echo "$ac_t""no" 1>&6
6426 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6428 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6430 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6431 BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6432 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6433 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6435 echo "$ac_t""no" 1>&6
6436 { 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; }
6443 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6444 echo "configure:6445: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6445 if test "x${with_dvbpsi}" = "x"
6450 test_LDFLAGS="-L${with_dvbpsi}/lib"
6451 test_CFLAGS="-I${with_dvbpsi}/include"
6453 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6454 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6455 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6456 echo "configure:6457: checking for dvbpsi/dr.h" >&5
6457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6458 echo $ac_n "(cached) $ac_c" 1>&6
6460 cat > conftest.$ac_ext <<EOF
6461 #line 6462 "configure"
6462 #include "confdefs.h"
6463 #include <dvbpsi/dr.h>
6465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6466 { (eval echo configure:6467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6468 if test -z "$ac_err"; then
6470 eval "ac_cv_header_$ac_safe=yes"
6473 echo "configure: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6476 eval "ac_cv_header_$ac_safe=no"
6480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6481 echo "$ac_t""yes" 1>&6
6483 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6484 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6485 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6488 echo "$ac_t""no" 1>&6
6490 if test "x${enable_dvbpsi}" != "x"
6492 { 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; }
6497 CPPFLAGS="${save_CPPFLAGS}"
6502 # Check whether --enable-v4l or --disable-v4l was given.
6503 if test "${enable_v4l+set}" = set; then
6504 enableval="$enable_v4l"
6508 if test "x${enable_v4l}" = "xyes"
6510 for ac_hdr in libv4l/v4l.h
6512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6514 echo "configure:6515: checking for $ac_hdr" >&5
6515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6524 { (eval echo configure:6525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6526 if test -z "$ac_err"; then
6528 eval "ac_cv_header_$ac_safe=yes"
6531 echo "configure: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6534 eval "ac_cv_header_$ac_safe=no"
6538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6540 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6541 cat >> confdefs.h <<EOF
6542 #define $ac_tr_hdr 1
6545 PLUGINS="${PLUGINS} access/v4l/v4l"
6548 echo "$ac_t""no" 1>&6
6554 # Check whether --enable-vcd or --disable-vcd was given.
6555 if test "${enable_vcd+set}" = set; then
6556 enableval="$enable_vcd"
6561 if test "x${enable_vcd}" != "xno"
6563 cat > conftest.$ac_ext <<EOF
6564 #line 6565 "configure"
6565 #include "confdefs.h"
6566 #include <linux/cdrom.h>
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 egrep "cdrom_msf0" >/dev/null 2>&1; then
6572 PLUGINS="${PLUGINS} access/vcd/vcd"
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6581 #include <sys/cdio.h>
6583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6584 egrep "ioc_toc_header " >/dev/null 2>&1; then
6587 PLUGINS="${PLUGINS} access/vcd/vcd"
6588 cat >> confdefs.h <<\EOF
6589 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6597 if test "x${SYS}" = "xbsdi"
6599 PLUGINS="${PLUGINS} access/vcd/vcd"
6602 if test "x${SYS}" = "xdarwin"
6604 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6605 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6609 # Check whether --enable-satellite or --disable-satellite was given.
6610 if test "${enable_satellite+set}" = set; then
6611 enableval="$enable_satellite"
6612 if test "x${enable_satellite}" = "xyes"
6614 PLUGINS="${PLUGINS} access/satellite/satellite"
6619 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6622 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6623 echo "configure:6624: checking for inet_pton" >&5
6624 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6625 echo $ac_n "(cached) $ac_c" 1>&6
6627 cat > conftest.$ac_ext <<EOF
6628 #line 6629 "configure"
6629 #include "confdefs.h"
6630 /* System header to define __stub macros and hopefully few prototypes,
6631 which can conflict with char inet_pton(); below. */
6633 /* Override any gcc2 internal prototype to avoid an error. */
6634 /* We use char because int might match the return type of a gcc2
6635 builtin and then its argument prototype would still apply. */
6640 /* The GNU C library defines this for functions which it implements
6641 to always fail with ENOSYS. Some functions are actually named
6642 something starting with __ and the normal name is an alias. */
6643 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6651 if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6653 eval "ac_cv_func_inet_pton=yes"
6655 echo "configure: failed program was:" >&5
6656 cat conftest.$ac_ext >&5
6658 eval "ac_cv_func_inet_pton=no"
6663 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6664 echo "$ac_t""yes" 1>&6
6667 echo "$ac_t""no" 1>&6
6669 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6670 echo "configure:6671: checking for inet_pton in -lresolv" >&5
6671 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6675 ac_save_LIBS="$LIBS"
6676 LIBS="-lresolv $LIBS"
6677 cat > conftest.$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6680 /* Override any gcc2 internal prototype to avoid an error. */
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 eval "ac_cv_lib_$ac_lib_var=yes"
6693 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6696 eval "ac_cv_lib_$ac_lib_var=no"
6699 LIBS="$ac_save_LIBS"
6702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6703 echo "$ac_t""yes" 1>&6
6705 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6707 echo "$ac_t""no" 1>&6
6713 echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6714 echo "configure:6715: checking for sockaddr_in6 in netinet/in.h" >&5
6715 cat > conftest.$ac_ext <<EOF
6716 #line 6717 "configure"
6717 #include "confdefs.h"
6718 #include <netinet/in.h>
6720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6721 egrep "sockaddr_in6" >/dev/null 2>&1; then
6723 echo "$ac_t""yes" 1>&6
6726 echo "$ac_t""no" 1>&6; have_ipv6=0
6730 if test x$have_ipv6 = x1; then
6731 PLUGINS="${PLUGINS} misc/network/ipv6"
6734 if test "x${SYS}" = "xmingw32"
6736 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6737 echo "configure:6738: checking for getaddrinfo in ws2tcpip.h" >&5
6738 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure"
6740 #include "confdefs.h"
6741 #include <ws2tcpip.h>
6743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6744 egrep "addrinfo" >/dev/null 2>&1; then
6746 echo "$ac_t""yes" 1>&6
6747 PLUGINS="${PLUGINS} misc/network/ipv6"
6750 echo "$ac_t""no" 1>&6
6756 # Check whether --enable-avi or --disable-avi was given.
6757 if test "${enable_avi+set}" = set; then
6758 enableval="$enable_avi"
6762 if test "x${enable_avi}" != "xno"
6764 PLUGINS="${PLUGINS} demux/avi/avi"
6768 # Check whether --with- or --without- was given.
6769 if test "${with_+set}" = set; then
6775 # Check whether --enable-mad or --disable-mad was given.
6776 if test "${enable_mad+set}" = set; then
6777 enableval="$enable_mad"
6781 if test "x${enable_mad}" = "xyes"
6783 # Check whether --with-mad or --without-mad was given.
6784 if test "${with_mad+set}" = set; then
6789 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6791 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6792 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6795 # Check whether --with-mad-tree or --without-mad-tree was given.
6796 if test "${with_mad_tree+set}" = set; then
6797 withval="$with_mad_tree"
6801 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6803 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6804 if test "x${real_mad_tree}" = "x"
6806 echo "$ac_t""no" 1>&6
6807 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6809 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6810 echo "configure:6811: checking for mad.h in ${real_mad_tree}/libmad" >&5
6811 if test -f ${real_mad_tree}/libmad/mad.h
6813 echo "$ac_t""yes" 1>&6
6814 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6815 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6816 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6817 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6818 echo "configure:6819: checking for mad_bit_init in -lmad" >&5
6819 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6821 echo $ac_n "(cached) $ac_c" 1>&6
6823 ac_save_LIBS="$LIBS"
6825 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6828 /* Override any gcc2 internal prototype to avoid an error. */
6829 /* We use char because int might match the return type of a gcc2
6830 builtin and then its argument prototype would still apply. */
6831 char mad_bit_init();
6837 if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6839 eval "ac_cv_lib_$ac_lib_var=yes"
6841 echo "configure: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6844 eval "ac_cv_lib_$ac_lib_var=no"
6847 LIBS="$ac_save_LIBS"
6850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6851 echo "$ac_t""yes" 1>&6
6853 BUILTINS="${BUILTINS} codec/mad/mad"
6854 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6857 echo "$ac_t""no" 1>&6
6858 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6862 LDFLAGS="${save_LDFLAGS}"
6864 echo "$ac_t""no" 1>&6
6865 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6868 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6869 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6874 echo "configure:6875: checking for $ac_hdr" >&5
6875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6884 { (eval echo configure:6885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6886 if test -z "$ac_err"; then
6888 eval "ac_cv_header_$ac_safe=yes"
6891 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6894 eval "ac_cv_header_$ac_safe=no"
6898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6899 echo "$ac_t""yes" 1>&6
6900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6901 cat >> confdefs.h <<EOF
6902 #define $ac_tr_hdr 1
6906 echo "$ac_t""no" 1>&6
6907 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6911 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6912 echo "configure:6913: checking for mad_bit_init in -lmad" >&5
6913 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6917 ac_save_LIBS="$LIBS"
6919 cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6925 char mad_bit_init();
6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6933 eval "ac_cv_lib_$ac_lib_var=yes"
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6938 eval "ac_cv_lib_$ac_lib_var=no"
6941 LIBS="$ac_save_LIBS"
6944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6945 echo "$ac_t""yes" 1>&6
6947 PLUGINS="${PLUGINS} codec/mad/mad"
6948 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6950 echo "$ac_t""no" 1>&6
6951 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6954 CFLAGS="${save_CFLAGS}"
6955 LDFLAGS="${save_LDFLAGS}"
6959 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6960 if test "${enable_ffmpeg+set}" = set; then
6961 enableval="$enable_ffmpeg"
6965 if test "x${enable_ffmpeg}" = "xyes"
6967 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6968 if test "${with_ffmpeg+set}" = set; then
6969 withval="$with_ffmpeg"
6973 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6975 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6976 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6979 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c"
6980 if test "x${ac_cv_mmx_inline}" != "xno"; then
6981 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx"
6984 if test "x${ac_cv_mmxext_inline}" != "xno"; then
6985 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext"
6989 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6990 if test "${with_ffmpeg_tree+set}" = set; then
6991 withval="$with_ffmpeg_tree"
6995 if test "x${with_ffmpeg_tree}" != "x"
6997 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6998 echo "configure:6999: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6999 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
7000 if test "x${real_ffmpeg_tree}" = x
7002 echo "$ac_t""no" 1>&6
7003 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
7005 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
7007 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
7008 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7009 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
7010 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
7012 echo "$ac_t""no" 1>&6
7013 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
7016 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
7017 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
7018 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
7019 echo "configure:7020: checking for avcodec_init in -lavcodec" >&5
7020 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
7021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7024 ac_save_LIBS="$LIBS"
7025 LIBS="-lavcodec $LIBS"
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* Override any gcc2 internal prototype to avoid an error. */
7030 /* We use char because int might match the return type of a gcc2
7031 builtin and then its argument prototype would still apply. */
7032 char avcodec_init();
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7040 eval "ac_cv_lib_$ac_lib_var=yes"
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 eval "ac_cv_lib_$ac_lib_var=no"
7048 LIBS="$ac_save_LIBS"
7051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7052 echo "$ac_t""yes" 1>&6
7054 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7055 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
7057 echo "$ac_t""no" 1>&6
7058 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
7061 LDFLAGS="${save_LDFLAGS}"
7062 CFLAGS="${save_CFLAGS}"
7066 # Check whether --enable-faad or --disable-faad was given.
7067 if test "${enable_faad+set}" = set; then
7068 enableval="$enable_faad"
7072 if test "x${enable_faad}" = "xyes"
7074 # Check whether --with-faad or --without-faad was given.
7075 if test "${with_faad+set}" = set; then
7076 withval="$with_faad"
7080 if test "x${with_faad}" != "xno" -a "x${with_faad}" != "x"
7082 faad_CFLAGS="${faad_CFLAGS} -I${with_faad}/include"
7083 faad_LDFLAGS="${faad_LDFLAGS} -L${with_faad}/lib"
7085 faad_LDFLAGS="${faad_LDFLAGS} -lm"
7087 # Check whether --with-faad-tree or --without-faad-tree was given.
7088 if test "${with_faad_tree+set}" = set; then
7089 withval="$with_faad_tree"
7093 if test "x${with_faad_tree}" != "x"
7095 echo $ac_n "checking for libfaad.a in ${with_faad_tree}""... $ac_c" 1>&6
7096 echo "configure:7097: checking for libfaad.a in ${with_faad_tree}" >&5
7097 real_faad_tree="`cd ${with_faad_tree} 2>/dev/null && pwd`"
7098 if test "x${real_faad_tree}" = x
7100 echo "$ac_t""no" 1>&6
7101 { echo "configure: error: cannot cd to ${with_faad_tree}" 1>&2; exit 1; }
7103 if test -f "${real_faad_tree}/libfaad/.libs/libfaad.a"
7105 echo "$ac_t""${real_faad_tree}/libfaad/.libs/libfaad.a" 1>&6
7106 BUILTINS="${BUILTINS} codec/faad/faad"
7107 faad_LDFLAGS="${faad_LDFLAGS} ${real_faad_tree}/libfaad/.libs/libfaad.a"
7108 faad_CFLAGS="${faad_CFLAGS} -I${real_faad_tree}/include"
7110 echo "$ac_t""no" 1>&6
7111 { echo "configure: error: cannot find ${real_faad_tree}/.libs/libfaad.a, make sure you compiled libfaad in ${with_faad_tree}" 1>&2; exit 1; }
7114 CFLAGS="${save_CFLAGS} ${faad_CFLAGS}"
7115 LDFLAGS="${save_LDFLAGS} ${faad_LDFLAGS}"
7116 for ac_hdr in faad.h
7118 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7120 echo "configure:7121: checking for $ac_hdr" >&5
7121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7122 echo $ac_n "(cached) $ac_c" 1>&6
7124 cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure"
7126 #include "confdefs.h"
7129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7130 { (eval echo configure:7131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7132 if test -z "$ac_err"; then
7134 eval "ac_cv_header_$ac_safe=yes"
7137 echo "configure: failed program was:" >&5
7138 cat conftest.$ac_ext >&5
7140 eval "ac_cv_header_$ac_safe=no"
7144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7145 echo "$ac_t""yes" 1>&6
7146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7147 cat >> confdefs.h <<EOF
7148 #define $ac_tr_hdr 1
7152 echo "$ac_t""no" 1>&6
7153 { echo "configure: error: Cannot find development headers for libfaad..." 1>&2; exit 1; }
7157 echo $ac_n "checking for faacDecOpen in -lfaad""... $ac_c" 1>&6
7158 echo "configure:7159: checking for faacDecOpen in -lfaad" >&5
7159 ac_lib_var=`echo faad'_'faacDecOpen | sed 'y%./+-%__p_%'`
7160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7161 echo $ac_n "(cached) $ac_c" 1>&6
7163 ac_save_LIBS="$LIBS"
7165 cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7168 /* Override any gcc2 internal prototype to avoid an error. */
7169 /* We use char because int might match the return type of a gcc2
7170 builtin and then its argument prototype would still apply. */
7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7179 eval "ac_cv_lib_$ac_lib_var=yes"
7181 echo "configure: failed program was:" >&5
7182 cat conftest.$ac_ext >&5
7184 eval "ac_cv_lib_$ac_lib_var=no"
7187 LIBS="$ac_save_LIBS"
7190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7191 echo "$ac_t""yes" 1>&6
7193 PLUGINS="${PLUGINS} codec/faad/faad"
7194 faad_LDFLAGS="${faad_LDFLAGS} -lfaad"
7196 echo "$ac_t""no" 1>&6
7197 { echo "configure: error: Cannot find libfaad library..." 1>&2; exit 1; }
7200 LDFLAGS="${save_LDFLAGS}"
7201 CFLAGS="${save_CFLAGS}"
7207 # Check whether --enable-mp4 or --disable-mp4 was given.
7208 if test "${enable_mp4+set}" = set; then
7209 enableval="$enable_mp4"
7213 if test "x${enable_mp4}" != "xno"
7216 PLUGINS="${PLUGINS} demux/mp4/mp4"
7217 for ac_hdr in zlib.h
7219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7221 echo "configure:7222: checking for $ac_hdr" >&5
7222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7223 echo $ac_n "(cached) $ac_c" 1>&6
7225 cat > conftest.$ac_ext <<EOF
7226 #line 7227 "configure"
7227 #include "confdefs.h"
7230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7231 { (eval echo configure:7232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7233 if test -z "$ac_err"; then
7235 eval "ac_cv_header_$ac_safe=yes"
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7241 eval "ac_cv_header_$ac_safe=no"
7245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7246 echo "$ac_t""yes" 1>&6
7247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7248 cat >> confdefs.h <<EOF
7249 #define $ac_tr_hdr 1
7251 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
7253 echo "$ac_t""no" 1>&6
7259 # Check whether --enable-a52 or --disable-a52 was given.
7260 if test "${enable_a52+set}" = set; then
7261 enableval="$enable_a52"
7265 if test "x${enable_a52}" != "xno"
7267 # Check whether --with-a52 or --without-a52 was given.
7268 if test "${with_a52+set}" = set; then
7273 # Check whether --with-a52-tree or --without-a52-tree was given.
7274 if test "${with_a52_tree+set}" = set; then
7275 withval="$with_a52_tree"
7279 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
7281 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
7282 if test "x${real_a52_tree}" = "x"
7284 echo "$ac_t""no" 1>&6
7285 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
7287 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
7288 echo "configure:7289: checking for a52.h in ${real_a52_tree}/include" >&5
7289 if test -f ${real_a52_tree}/include/a52.h
7291 echo "$ac_t""yes" 1>&6
7292 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
7293 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
7294 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
7295 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7296 echo "configure:7297: checking for a52_free in -la52" >&5
7297 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7299 echo $ac_n "(cached) $ac_c" 1>&6
7301 ac_save_LIBS="$LIBS"
7302 LIBS="-la52 -lm $LIBS"
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7306 /* Override any gcc2 internal prototype to avoid an error. */
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7315 if { (eval echo configure:7316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7317 eval "ac_cv_lib_$ac_lib_var=yes"
7319 echo "configure: failed program was:" >&5
7320 cat conftest.$ac_ext >&5
7322 eval "ac_cv_lib_$ac_lib_var=no"
7325 LIBS="$ac_save_LIBS"
7328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7329 echo "$ac_t""yes" 1>&6
7331 BUILTINS="${BUILTINS} codec/a52/a52"
7332 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7333 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7336 echo "$ac_t""no" 1>&6
7338 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7340 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7342 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7347 LDFLAGS="${save_LDFLAGS}"
7349 echo "$ac_t""no" 1>&6
7350 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7353 if test "x${with_a52}" = "x"
7358 test_LDFLAGS="-L${with_a52}/lib"
7359 test_CFLAGS="-I${with_a52}/include"
7361 save_CPPFLAGS="${CPPFLAGS}"
7362 save_LDFLAGS="${LDFLAGS}"
7363 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
7364 LDFLAGS="${save_LDFLAGS} ${test_LDFLAGS}"
7365 for ac_hdr in a52dec/a52.h
7367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7369 echo "configure:7370: checking for $ac_hdr" >&5
7370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7371 echo $ac_n "(cached) $ac_c" 1>&6
7373 cat > conftest.$ac_ext <<EOF
7374 #line 7375 "configure"
7375 #include "confdefs.h"
7378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7379 { (eval echo configure:7380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7381 if test -z "$ac_err"; then
7383 eval "ac_cv_header_$ac_safe=yes"
7386 echo "configure: failed program was:" >&5
7387 cat conftest.$ac_ext >&5
7389 eval "ac_cv_header_$ac_safe=no"
7393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7394 echo "$ac_t""yes" 1>&6
7395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7396 cat >> confdefs.h <<EOF
7397 #define $ac_tr_hdr 1
7400 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7401 echo "configure:7402: checking for a52_free in -la52" >&5
7402 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7406 ac_save_LIBS="$LIBS"
7407 LIBS="-la52 -lm $LIBS"
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 /* Override any gcc2 internal prototype to avoid an error. */
7412 /* We use char because int might match the return type of a gcc2
7413 builtin and then its argument prototype would still apply. */
7420 if { (eval echo configure:7421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422 eval "ac_cv_lib_$ac_lib_var=yes"
7424 echo "configure: failed program was:" >&5
7425 cat conftest.$ac_ext >&5
7427 eval "ac_cv_lib_$ac_lib_var=no"
7430 LIBS="$ac_save_LIBS"
7433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7434 echo "$ac_t""yes" 1>&6
7436 BUILTINS="${BUILTINS} codec/a52/a52"
7437 a52_LDFLAGS="${a52_LDFLAGS} ${test_LDFLAGS} -la52 -lm"
7438 a52_CFLAGS="${a52_CFLAGS} ${test_CFLAGS}"
7441 echo "$ac_t""no" 1>&6
7443 if test "x${enable_dvbpsi}" != "x"
7445 { echo "configure: error: Could not find a52 on your system: you may get it from http://liba52.sf.net" 1>&2; exit 1; }
7452 echo "$ac_t""no" 1>&6
7456 CPPFLAGS="${save_CPPFLAGS}"
7457 LDFLAGS="${save_LDFLAGS}"
7461 # Check whether --enable-cinepak or --disable-cinepak was given.
7462 if test "${enable_cinepak+set}" = set; then
7463 enableval="$enable_cinepak"
7467 if test "x${enable_cinepak}" != "xno"
7469 PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7472 # Check whether --enable-vorbis or --disable-vorbis was given.
7473 if test "${enable_vorbis+set}" = set; then
7474 enableval="$enable_vorbis"
7478 if test "x${enable_vorbis}" != "xno"
7480 for ac_hdr in ogg/ogg.h
7482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7484 echo "configure:7485: checking for $ac_hdr" >&5
7485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7486 echo $ac_n "(cached) $ac_c" 1>&6
7488 cat > conftest.$ac_ext <<EOF
7489 #line 7490 "configure"
7490 #include "confdefs.h"
7493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7494 { (eval echo configure:7495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7496 if test -z "$ac_err"; then
7498 eval "ac_cv_header_$ac_safe=yes"
7501 echo "configure: failed program was:" >&5
7502 cat conftest.$ac_ext >&5
7504 eval "ac_cv_header_$ac_safe=no"
7508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7511 cat >> confdefs.h <<EOF
7512 #define $ac_tr_hdr 1
7515 #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7516 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7519 echo "$ac_t""no" 1>&6
7525 # Check whether --enable-dv or --disable-dv was given.
7526 if test "${enable_dv+set}" = set; then
7527 enableval="$enable_dv"
7531 if test "x${enable_dv}" = "xyes"
7533 for ac_hdr in libdv/dv.h
7535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7537 echo "configure:7538: checking for $ac_hdr" >&5
7538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7541 cat > conftest.$ac_ext <<EOF
7542 #line 7543 "configure"
7543 #include "confdefs.h"
7546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7547 { (eval echo configure:7548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7549 if test -z "$ac_err"; then
7551 eval "ac_cv_header_$ac_safe=yes"
7554 echo "configure: failed program was:" >&5
7555 cat conftest.$ac_ext >&5
7557 eval "ac_cv_header_$ac_safe=no"
7561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7562 echo "$ac_t""yes" 1>&6
7563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7564 cat >> confdefs.h <<EOF
7565 #define $ac_tr_hdr 1
7568 BUILTINS="${BUILTINS} codec/dv/dv"
7569 dv_LDFLAGS="${dv_LDFLAGS} -ldv"
7572 echo "$ac_t""no" 1>&6
7579 # Check whether --with- or --without- was given.
7580 if test "${with_+set}" = set; then
7586 # Check whether --enable-x11 or --disable-x11 was given.
7587 if test "${enable_x11+set}" = set; then
7588 enableval="$enable_x11"
7592 if test "x${enable_x11}" != "xno" &&
7593 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7594 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7595 for ac_hdr in X11/Xlib.h
7597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7599 echo "configure:7600: checking for $ac_hdr" >&5
7600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7603 cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7609 { (eval echo configure:7610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7611 if test -z "$ac_err"; then
7613 eval "ac_cv_header_$ac_safe=yes"
7616 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7619 eval "ac_cv_header_$ac_safe=no"
7623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7624 echo "$ac_t""yes" 1>&6
7625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7626 cat >> confdefs.h <<EOF
7627 #define $ac_tr_hdr 1
7630 PLUGINS="${PLUGINS} video_output/x11/x11"
7631 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7632 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7635 echo "$ac_t""no" 1>&6
7639 CPPFLAGS="${save_CPPFLAGS}"
7642 # Check whether --enable-xvideo or --disable-xvideo was given.
7643 if test "${enable_xvideo+set}" = set; then
7644 enableval="$enable_xvideo"
7648 if test "x${enable_xvideo}" != "xno" &&
7649 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7650 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7651 for ac_hdr in X11/extensions/Xv.h
7653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7655 echo "configure:7656: checking for $ac_hdr" >&5
7656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7657 echo $ac_n "(cached) $ac_c" 1>&6
7659 cat > conftest.$ac_ext <<EOF
7660 #line 7661 "configure"
7661 #include "confdefs.h"
7664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7665 { (eval echo configure:7666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7667 if test -z "$ac_err"; then
7669 eval "ac_cv_header_$ac_safe=yes"
7672 echo "configure: failed program was:" >&5
7673 cat conftest.$ac_ext >&5
7675 eval "ac_cv_header_$ac_safe=no"
7679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7682 cat >> confdefs.h <<EOF
7683 #define $ac_tr_hdr 1
7686 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7687 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7688 echo "configure:7689: checking for XvPutImage in -lXv_pic" >&5
7689 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7691 echo $ac_n "(cached) $ac_c" 1>&6
7693 ac_save_LIBS="$LIBS"
7694 LIBS="-lXv_pic $LIBS"
7695 cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7707 if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7709 eval "ac_cv_lib_$ac_lib_var=yes"
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7714 eval "ac_cv_lib_$ac_lib_var=no"
7717 LIBS="$ac_save_LIBS"
7720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7721 echo "$ac_t""yes" 1>&6
7722 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7723 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7724 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7725 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7727 echo "$ac_t""no" 1>&6
7728 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7729 echo "configure:7730: checking for XvPutImage in -lXv" >&5
7730 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7734 ac_save_LIBS="$LIBS"
7736 cat > conftest.$ac_ext <<EOF
7737 #line 7738 "configure"
7738 #include "confdefs.h"
7739 /* Override any gcc2 internal prototype to avoid an error. */
7740 /* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7748 if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7750 eval "ac_cv_lib_$ac_lib_var=yes"
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7755 eval "ac_cv_lib_$ac_lib_var=no"
7758 LIBS="$ac_save_LIBS"
7761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7762 echo "$ac_t""yes" 1>&6
7763 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7764 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7765 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7766 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7768 echo "$ac_t""no" 1>&6
7769 # Otherwise... well, do nothing.
7777 CFLAGS="${save_CFLAGS}"
7779 CPPFLAGS="${save_CPPFLAGS}"
7781 echo "$ac_t""no" 1>&6
7787 # Check whether --enable-sdl or --disable-sdl was given.
7788 if test "${enable_sdl+set}" = set; then
7789 enableval="$enable_sdl"
7793 if test "x${enable_sdl}" != "xno"
7796 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7797 if test "${with_sdl_config_path+set}" = set; then
7798 withval="$with_sdl_config_path"
7799 if test "x${with_sdl_config_path}" != "xno"
7801 SDL_PATH="${with_sdl_config_path}:${PATH}"
7805 # Extract the first word of "sdl12-config", so it can be a program name with args.
7806 set dummy sdl12-config; ac_word=$2
7807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7808 echo "configure:7809: checking for $ac_word" >&5
7809 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7810 echo $ac_n "(cached) $ac_c" 1>&6
7812 case "$SDL12_CONFIG" in
7814 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7817 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7821 ac_dummy="${SDL_PATH}"
7822 for ac_dir in $ac_dummy; do
7823 test -z "$ac_dir" && ac_dir=.
7824 if test -f $ac_dir/$ac_word; then
7825 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7830 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7834 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7835 if test -n "$SDL12_CONFIG"; then
7836 echo "$ac_t""$SDL12_CONFIG" 1>&6
7838 echo "$ac_t""no" 1>&6
7841 SDL_CONFIG="${SDL12_CONFIG}"
7842 SDL_HEADER="SDL12/SDL.h"
7843 if test "x${SDL_CONFIG}" = "xno"
7845 # Extract the first word of "sdl11-config", so it can be a program name with args.
7846 set dummy sdl11-config; ac_word=$2
7847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_word" >&5
7849 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7852 case "$SDL11_CONFIG" in
7854 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7857 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7861 ac_dummy="${SDL_PATH}"
7862 for ac_dir in $ac_dummy; do
7863 test -z "$ac_dir" && ac_dir=.
7864 if test -f $ac_dir/$ac_word; then
7865 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7870 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7874 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7875 if test -n "$SDL11_CONFIG"; then
7876 echo "$ac_t""$SDL11_CONFIG" 1>&6
7878 echo "$ac_t""no" 1>&6
7881 SDL_CONFIG=${SDL11_CONFIG}
7882 SDL_HEADER="SDL11/SDL.h"
7884 if test "x${SDL_CONFIG}" = "xno"
7886 # Extract the first word of "sdl-config", so it can be a program name with args.
7887 set dummy sdl-config; ac_word=$2
7888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7889 echo "configure:7890: checking for $ac_word" >&5
7890 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7891 echo $ac_n "(cached) $ac_c" 1>&6
7893 case "$SDL_CONFIG" in
7895 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7898 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7902 ac_dummy="${SDL_PATH}"
7903 for ac_dir in $ac_dummy; do
7904 test -z "$ac_dir" && ac_dir=.
7905 if test -f $ac_dir/$ac_word; then
7906 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7911 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7915 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7916 if test -n "$SDL_CONFIG"; then
7917 echo "$ac_t""$SDL_CONFIG" 1>&6
7919 echo "$ac_t""no" 1>&6
7922 SDL_HEADER="SDL/SDL.h"
7924 if test "x${SDL_CONFIG}" != "xno"
7926 PLUGINS="${PLUGINS} video_output/sdl/sdl"
7927 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7928 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7929 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7930 for ac_hdr in ${SDL_HEADER}
7932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7934 echo "configure:7935: checking for $ac_hdr" >&5
7935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7938 cat > conftest.$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7944 { (eval echo configure:7945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7946 if test -z "$ac_err"; then
7948 eval "ac_cv_header_$ac_safe=yes"
7951 echo "configure: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7954 eval "ac_cv_header_$ac_safe=no"
7958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7959 echo "$ac_t""yes" 1>&6
7960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7961 cat >> confdefs.h <<EOF
7962 #define $ac_tr_hdr 1
7964 cat >> confdefs.h <<EOF
7965 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7969 echo "$ac_t""no" 1>&6
7970 { echo "configure: error: The development package for SDL is not installed.
7971 Please install it and try again. Alternatively you can also configure with
7972 --disable-sdl." 1>&2; exit 1; }
7977 CPPFLAGS="${save_CPPFLAGS}"
7978 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7980 { echo "configure: error: The development package for SDL is not installed.
7981 Please install it and try again. Alternatively you can also configure with
7982 --disable-sdl." 1>&2; exit 1; }
7984 elif test "x${enable_sdl}" = "xyes"
7986 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7987 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7992 # Check whether --enable-directx or --disable-directx was given.
7993 if test "${enable_directx+set}" = set; then
7994 enableval="$enable_directx"
7998 if test "x${enable_directx}" != "xno"
8000 if test "x${SYS}" = "xmingw32"
8002 # Check whether --with-directx or --without-directx was given.
8003 if test "${with_directx+set}" = set; then
8004 withval="$with_directx"
8008 if test "x${with_directx}" = "x"
8010 for ac_hdr in ddraw.h
8012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8014 echo "configure:8015: checking for $ac_hdr" >&5
8015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8024 { (eval echo configure:8025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8026 if test -z "$ac_err"; then
8028 eval "ac_cv_header_$ac_safe=yes"
8031 echo "configure: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8034 eval "ac_cv_header_$ac_safe=no"
8038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8039 echo "$ac_t""yes" 1>&6
8040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8041 cat >> confdefs.h <<EOF
8042 #define $ac_tr_hdr 1
8044 PLUGINS="${PLUGINS} video_output/directx/directx"
8045 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8047 echo "$ac_t""no" 1>&6
8052 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
8053 echo "configure:8054: checking for directX headers in ${with_directx}" >&5
8054 if test -f ${with_directx}/ddraw.h
8056 PLUGINS="${PLUGINS} video_output/directx/directx"
8057 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8058 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
8059 echo "$ac_t""yes" 1>&6
8061 echo "$ac_t""no" 1>&6
8062 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
8068 # Check whether --enable-fb or --disable-fb was given.
8069 if test "${enable_fb+set}" = set; then
8070 enableval="$enable_fb"
8074 if test "x${enable_fb}" != "xno"
8076 for ac_hdr in linux/fb.h
8078 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8080 echo "configure:8081: checking for $ac_hdr" >&5
8081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8084 cat > conftest.$ac_ext <<EOF
8085 #line 8086 "configure"
8086 #include "confdefs.h"
8089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8090 { (eval echo configure:8091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8092 if test -z "$ac_err"; then
8094 eval "ac_cv_header_$ac_safe=yes"
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8100 eval "ac_cv_header_$ac_safe=no"
8104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8105 echo "$ac_t""yes" 1>&6
8106 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8107 cat >> confdefs.h <<EOF
8108 #define $ac_tr_hdr 1
8111 PLUGINS="${PLUGINS} video_output/fb/fb"
8114 echo "$ac_t""no" 1>&6
8120 # Check whether --enable-mga or --disable-mga was given.
8121 if test "${enable_mga+set}" = set; then
8122 enableval="$enable_mga"
8123 if test "x${enable_mga}" = "xyes"
8125 PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
8130 # Check whether --enable-ggi or --disable-ggi was given.
8131 if test "${enable_ggi+set}" = set; then
8132 enableval="$enable_ggi"
8136 if test "x${enable_ggi}" = "xyes"
8138 PLUGINS="${PLUGINS} video_output/ggi/ggi"
8139 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
8140 # Check whether --with-ggi or --without-ggi was given.
8141 if test "${with_ggi+set}" = set; then
8143 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
8145 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
8146 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
8152 # Check whether --enable-glide or --disable-glide was given.
8153 if test "${enable_glide+set}" = set; then
8154 enableval="$enable_glide"
8158 if test "x${enable_glide}" = "xyes"
8160 PLUGINS="${PLUGINS} video_output/glide/glide"
8161 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
8162 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
8163 # Check whether --with-glide or --without-glide was given.
8164 if test "${with_glide+set}" = set; then
8165 withval="$with_glide"
8166 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
8168 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
8169 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
8175 # Check whether --enable-aa or --disable-aa was given.
8176 if test "${enable_aa+set}" = set; then
8177 enableval="$enable_aa"
8181 if test "x${enable_aa}" = "xyes"
8183 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
8184 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
8185 echo "configure:8186: checking for aalib.h" >&5
8186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
8189 cat > conftest.$ac_ext <<EOF
8190 #line 8191 "configure"
8191 #include "confdefs.h"
8194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8195 { (eval echo configure:8196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8197 if test -z "$ac_err"; then
8199 eval "ac_cv_header_$ac_safe=yes"
8202 echo "configure: failed program was:" >&5
8203 cat conftest.$ac_ext >&5
8205 eval "ac_cv_header_$ac_safe=no"
8209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8210 echo "$ac_t""yes" 1>&6
8213 echo "$ac_t""no" 1>&6
8217 if test "x${have_aa}" = "xtrue"
8219 PLUGINS="${PLUGINS} video_output/aa/aa"
8220 aa_LDFLAGS="${aa_LDFLAGS} -laa"
8225 # Check whether --with- or --without- was given.
8226 if test "${with_+set}" = set; then
8232 # Check whether --enable-oss or --disable-oss was given.
8233 if test "${enable_oss+set}" = set; then
8234 enableval="$enable_oss"
8239 if test "x${enable_oss}" != "xno" &&
8240 (test "x${SYS}" != "xmingw32" || test "x${enable_oss}" = "xyes")
8242 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
8244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8246 echo "configure:8247: checking for $ac_hdr" >&5
8247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8248 echo $ac_n "(cached) $ac_c" 1>&6
8250 cat > conftest.$ac_ext <<EOF
8251 #line 8252 "configure"
8252 #include "confdefs.h"
8255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8256 { (eval echo configure:8257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8258 if test -z "$ac_err"; then
8260 eval "ac_cv_header_$ac_safe=yes"
8263 echo "configure: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8266 eval "ac_cv_header_$ac_safe=no"
8270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8271 echo "$ac_t""yes" 1>&6
8272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8273 cat >> confdefs.h <<EOF
8274 #define $ac_tr_hdr 1
8277 PLUGINS="${PLUGINS} audio_output/oss"
8278 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
8279 echo "configure:8280: checking for main in -lossaudio" >&5
8280 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
8281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8282 echo $ac_n "(cached) $ac_c" 1>&6
8284 ac_save_LIBS="$LIBS"
8285 LIBS="-lossaudio $LIBS"
8286 cat > conftest.$ac_ext <<EOF
8287 #line 8288 "configure"
8288 #include "confdefs.h"
8294 if { (eval echo configure:8295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8296 eval "ac_cv_lib_$ac_lib_var=yes"
8298 echo "configure: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8301 eval "ac_cv_lib_$ac_lib_var=no"
8304 LIBS="$ac_save_LIBS"
8307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8308 echo "$ac_t""yes" 1>&6
8309 oss_LDFLAGS="${oss_LDFLAGS} -lossaudio"
8311 echo "$ac_t""no" 1>&6
8316 echo "$ac_t""no" 1>&6
8322 # Check whether --enable-esd or --disable-esd was given.
8323 if test "${enable_esd+set}" = set; then
8324 enableval="$enable_esd"
8325 if test "x${enable_esd}" = "xyes"
8327 # Extract the first word of "esd-config", so it can be a program name with args.
8328 set dummy esd-config; ac_word=$2
8329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8330 echo "configure:8331: checking for $ac_word" >&5
8331 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
8332 echo $ac_n "(cached) $ac_c" 1>&6
8334 case "$ESD_CONFIG" in
8336 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
8339 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
8342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8344 for ac_dir in $ac_dummy; do
8345 test -z "$ac_dir" && ac_dir=.
8346 if test -f $ac_dir/$ac_word; then
8347 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
8352 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
8356 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
8357 if test -n "$ESD_CONFIG"; then
8358 echo "$ac_t""$ESD_CONFIG" 1>&6
8360 echo "$ac_t""no" 1>&6
8363 if test "x${ESD_CONFIG}" != "xno"
8365 #PLUGINS="${PLUGINS} audio_output/esd"
8366 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
8367 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
8373 # Check whether --enable-arts or --disable-arts was given.
8374 if test "${enable_arts+set}" = set; then
8375 enableval="$enable_arts"
8376 if test "x${enable_arts}" = "xyes"
8378 # Extract the first word of "artsc-config", so it can be a program name with args.
8379 set dummy artsc-config; ac_word=$2
8380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8381 echo "configure:8382: checking for $ac_word" >&5
8382 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
8385 case "$ARTS_CONFIG" in
8387 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8390 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8395 for ac_dir in $ac_dummy; do
8396 test -z "$ac_dir" && ac_dir=.
8397 if test -f $ac_dir/$ac_word; then
8398 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8403 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8407 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8408 if test -n "$ARTS_CONFIG"; then
8409 echo "$ac_t""$ARTS_CONFIG" 1>&6
8411 echo "$ac_t""no" 1>&6
8414 if test "x${ARTS_CONFIG}" != "xno"
8416 #PLUGINS="${PLUGINS} audio_output/arts"
8417 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8418 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8424 # Check whether --enable-alsa or --disable-alsa was given.
8425 if test "${enable_alsa+set}" = set; then
8426 enableval="$enable_alsa"
8427 if test "x${enable_alsa}" = "xyes"
8429 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8430 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8431 echo "configure:8432: checking for alsa/asoundlib.h" >&5
8432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8433 echo $ac_n "(cached) $ac_c" 1>&6
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 #include <alsa/asoundlib.h>
8440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8441 { (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8443 if test -z "$ac_err"; then
8445 eval "ac_cv_header_$ac_safe=yes"
8448 echo "configure: failed program was:" >&5
8449 cat conftest.$ac_ext >&5
8451 eval "ac_cv_header_$ac_safe=no"
8455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8458 echo "configure:8459: checking for main in -lasound" >&5
8459 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8463 ac_save_LIBS="$LIBS"
8464 LIBS="-lasound $LIBS"
8465 cat > conftest.$ac_ext <<EOF
8466 #line 8467 "configure"
8467 #include "confdefs.h"
8473 if { (eval echo configure:8474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8475 eval "ac_cv_lib_$ac_lib_var=yes"
8477 echo "configure: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8480 eval "ac_cv_lib_$ac_lib_var=no"
8483 LIBS="$ac_save_LIBS"
8486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8487 echo "$ac_t""yes" 1>&6
8490 echo "$ac_t""no" 1>&6
8495 echo "$ac_t""no" 1>&6
8499 if test "x${have_alsa}" = "xtrue"
8501 #PLUGINS="${PLUGINS} audio_output/alsa"
8502 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8508 # Check whether --enable-waveout or --disable-waveout was given.
8509 if test "${enable_waveout+set}" = set; then
8510 enableval="$enable_waveout"
8514 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8516 PLUGINS="${PLUGINS} audio_output/waveout"
8517 waveout_LDFLAGS="-lwinmm"
8521 # Check whether --with- or --without- was given.
8522 if test "${with_+set}" = set; then
8528 if test "x${SYS}" = "xbeos"
8530 PLUGINS="${PLUGINS} gui/beos/beos"
8533 # Check whether --enable-gtk or --disable-gtk was given.
8534 if test "${enable_gtk+set}" = set; then
8535 enableval="$enable_gtk"
8539 if test "x${enable_gtk}" != "xno"
8542 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8543 if test "${with_gtk_config_path+set}" = set; then
8544 withval="$with_gtk_config_path"
8545 if test "x${with_gtk_config_path}" != "xno"
8547 GTK_PATH="${with_gtk_config_path}:${PATH}"
8551 # look for gtk-config
8552 # Extract the first word of "gtk12-config", so it can be a program name with args.
8553 set dummy gtk12-config; ac_word=$2
8554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8555 echo "configure:8556: checking for $ac_word" >&5
8556 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8557 echo $ac_n "(cached) $ac_c" 1>&6
8559 case "$GTK12_CONFIG" in
8561 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8564 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8568 ac_dummy="${GTK_PATH}"
8569 for ac_dir in $ac_dummy; do
8570 test -z "$ac_dir" && ac_dir=.
8571 if test -f $ac_dir/$ac_word; then
8572 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8577 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8581 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8582 if test -n "$GTK12_CONFIG"; then
8583 echo "$ac_t""$GTK12_CONFIG" 1>&6
8585 echo "$ac_t""no" 1>&6
8588 GTK_CONFIG=${GTK12_CONFIG}
8589 if test "x${GTK_CONFIG}" = "xno"
8591 # Extract the first word of "gtk-config", so it can be a program name with args.
8592 set dummy gtk-config; ac_word=$2
8593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8594 echo "configure:8595: checking for $ac_word" >&5
8595 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8596 echo $ac_n "(cached) $ac_c" 1>&6
8598 case "$GTK_CONFIG" in
8600 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8603 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8607 ac_dummy="${GTK_PATH}"
8608 for ac_dir in $ac_dummy; do
8609 test -z "$ac_dir" && ac_dir=.
8610 if test -f $ac_dir/$ac_word; then
8611 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8616 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8620 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8621 if test -n "$GTK_CONFIG"; then
8622 echo "$ac_t""$GTK_CONFIG" 1>&6
8624 echo "$ac_t""no" 1>&6
8628 if test "x${GTK_CONFIG}" != "xno"
8630 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8632 { 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; }
8634 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8635 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8636 # now look for the gtk.h header
8637 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8638 ac_cv_gtk_headers=yes
8639 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8643 echo "configure:8644: checking for $ac_hdr" >&5
8644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8645 echo $ac_n "(cached) $ac_c" 1>&6
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8653 { (eval echo configure:8654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8655 if test -z "$ac_err"; then
8657 eval "ac_cv_header_$ac_safe=yes"
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8663 eval "ac_cv_header_$ac_safe=no"
8667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8668 echo "$ac_t""yes" 1>&6
8669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8670 cat >> confdefs.h <<EOF
8671 #define $ac_tr_hdr 1
8675 echo "$ac_t""no" 1>&6
8676 ac_cv_gtk_headers=no
8677 echo "Cannot find gtk development headers."
8682 if test "x${ac_cv_gtk_headers}" = "xyes"
8684 PLUGINS="${PLUGINS} gui/gtk/gtk"
8685 ALIASES="${ALIASES} gvlc"
8687 CPPFLAGS="${save_CPPFLAGS}"
8691 # Check whether --enable-familiar or --disable-familiar was given.
8692 if test "${enable_familiar+set}" = set; then
8693 enableval="$enable_familiar"
8697 if test "x${enable_familiar}" = "xyes"
8700 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8701 if test "${with_gtk_config_path+set}" = set; then
8702 withval="$with_gtk_config_path"
8703 if test "x${with_gtk_config_path}" != "xno"
8705 GTK_PATH="${with_gtk_config_path}:${PATH}"
8709 # look for gtk-config
8710 # Extract the first word of "gtk12-config", so it can be a program name with args.
8711 set dummy gtk12-config; ac_word=$2
8712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8713 echo "configure:8714: checking for $ac_word" >&5
8714 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8717 case "$GTK12_CONFIG" in
8719 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8722 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8726 ac_dummy="${GTK_PATH}"
8727 for ac_dir in $ac_dummy; do
8728 test -z "$ac_dir" && ac_dir=.
8729 if test -f $ac_dir/$ac_word; then
8730 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8735 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8739 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8740 if test -n "$GTK12_CONFIG"; then
8741 echo "$ac_t""$GTK12_CONFIG" 1>&6
8743 echo "$ac_t""no" 1>&6
8746 GTK_CONFIG=${GTK12_CONFIG}
8747 if test "x${GTK_CONFIG}" = "xno"
8749 # Extract the first word of "gtk-config", so it can be a program name with args.
8750 set dummy gtk-config; ac_word=$2
8751 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8752 echo "configure:8753: checking for $ac_word" >&5
8753 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8754 echo $ac_n "(cached) $ac_c" 1>&6
8756 case "$GTK_CONFIG" in
8758 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8761 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8765 ac_dummy="${GTK_PATH}"
8766 for ac_dir in $ac_dummy; do
8767 test -z "$ac_dir" && ac_dir=.
8768 if test -f $ac_dir/$ac_word; then
8769 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8774 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8778 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8779 if test -n "$GTK_CONFIG"; then
8780 echo "$ac_t""$GTK_CONFIG" 1>&6
8782 echo "$ac_t""no" 1>&6
8786 if test "x${GTK_CONFIG}" != "xno"
8788 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8790 { 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; }
8792 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8793 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8794 # now look for the gtk.h header
8795 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8796 ac_cv_gtk_headers=yes
8797 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8801 echo "configure:8802: checking for $ac_hdr" >&5
8802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8803 echo $ac_n "(cached) $ac_c" 1>&6
8805 cat > conftest.$ac_ext <<EOF
8806 #line 8807 "configure"
8807 #include "confdefs.h"
8810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8811 { (eval echo configure:8812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8813 if test -z "$ac_err"; then
8815 eval "ac_cv_header_$ac_safe=yes"
8818 echo "configure: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8821 eval "ac_cv_header_$ac_safe=no"
8825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8826 echo "$ac_t""yes" 1>&6
8827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8828 cat >> confdefs.h <<EOF
8829 #define $ac_tr_hdr 1
8833 echo "$ac_t""no" 1>&6
8834 ac_cv_gtk_headers=no
8835 echo "Cannot find gtk development headers."
8840 if test "x${ac_cv_gtk_headers}" = "xyes"
8842 PLUGINS="${PLUGINS} gui/familiar/familiar"
8844 CPPFLAGS="${save_CPPFLAGS}"
8848 # Check whether --enable-gnome or --disable-gnome was given.
8849 if test "${enable_gnome+set}" = set; then
8850 enableval="$enable_gnome"
8851 if test "x${enable_gnome}" = "xyes"; then
8852 # look for gnome-config
8853 # Extract the first word of "gnome-config", so it can be a program name with args.
8854 set dummy gnome-config; ac_word=$2
8855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8856 echo "configure:8857: checking for $ac_word" >&5
8857 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8858 echo $ac_n "(cached) $ac_c" 1>&6
8860 case "$GNOME_CONFIG" in
8862 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8865 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8870 for ac_dir in $ac_dummy; do
8871 test -z "$ac_dir" && ac_dir=.
8872 if test -f $ac_dir/$ac_word; then
8873 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8878 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8882 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8883 if test -n "$GNOME_CONFIG"; then
8884 echo "$ac_t""$GNOME_CONFIG" 1>&6
8886 echo "$ac_t""no" 1>&6
8889 if test -x ${GNOME_CONFIG}
8891 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8892 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8894 # now look for the gnome.h header
8895 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8896 for ac_hdr in gnome.h
8898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8900 echo "configure:8901: checking for $ac_hdr" >&5
8901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8902 echo $ac_n "(cached) $ac_c" 1>&6
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8910 { (eval echo configure:8911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8912 if test -z "$ac_err"; then
8914 eval "ac_cv_header_$ac_safe=yes"
8917 echo "configure: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8920 eval "ac_cv_header_$ac_safe=no"
8924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8925 echo "$ac_t""yes" 1>&6
8926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8927 cat >> confdefs.h <<EOF
8928 #define $ac_tr_hdr 1
8931 PLUGINS="${PLUGINS} gui/gtk/gnome"
8932 ALIASES="${ALIASES} gnome-vlc"
8935 echo "$ac_t""no" 1>&6
8936 { echo "configure: error: Can't find gnome headers. Please install the gnome
8937 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8942 CPPFLAGS="${save_CPPFLAGS}"
8947 # Check whether --enable-qt or --disable-qt was given.
8948 if test "${enable_qt+set}" = set; then
8949 enableval="$enable_qt"
8950 if test "x${enable_qt}" = "xyes"; then
8951 PLUGINS="${PLUGINS} gui/qt/qt"
8952 ALIASES="${ALIASES} qvlc"
8953 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8954 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8955 if test -x ${QTDIR}/bin/moc
8957 MOC=${QTDIR}/bin/moc
8965 # Check whether --enable-kde or --disable-kde was given.
8966 if test "${enable_kde+set}" = set; then
8967 enableval="$enable_kde"
8968 if test "x${enable_kde}" = "xyes"; then
8969 PLUGINS="${PLUGINS} gui/kde/kde"
8970 ALIASES="${ALIASES} kvlc"
8971 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8972 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8973 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8974 if test -x ${QTDIR}/bin/moc
8976 MOC=${QTDIR}/bin/moc
8984 # Check whether --enable-qte or --disable-qte was given.
8985 if test "${enable_qte+set}" = set; then
8986 enableval="$enable_qte"
8987 if test "x${enable_qte}" = "xyes"; then
8988 PLUGINS="${PLUGINS} gui/qte/qte"
8989 qte_LDFLAGS="${qte_LDFLAGS} -lqte -L${QTEDIR}/lib"
8990 qte_CFLAGS="${qte_CFLAGS} -I/usr/include/qte -I${QTEDIR}/include"
8991 if test -x ${QTEDIR}/bin/moc
8993 MOC=${QTEDIR}/bin/moc
9002 # Check whether --enable-macosx or --disable-macosx was given.
9003 if test "${enable_macosx+set}" = set; then
9004 enableval="$enable_macosx"
9005 if test "x${enable_macosx}" = "xyes"
9007 BUILTINS="${BUILTINS} gui/macosx/macosx"
9008 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9011 for ac_hdr in Cocoa/Cocoa.h
9013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9015 echo "configure:9016: checking for $ac_hdr" >&5
9016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9017 echo $ac_n "(cached) $ac_c" 1>&6
9019 cat > conftest.$ac_ext <<EOF
9020 #line 9021 "configure"
9021 #include "confdefs.h"
9024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9025 { (eval echo configure:9026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9027 if test -z "$ac_err"; then
9029 eval "ac_cv_header_$ac_safe=yes"
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9035 eval "ac_cv_header_$ac_safe=no"
9039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9040 echo "$ac_t""yes" 1>&6
9041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9042 cat >> confdefs.h <<EOF
9043 #define $ac_tr_hdr 1
9045 BUILTINS="${BUILTINS} gui/macosx/macosx"
9046 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9049 echo "$ac_t""no" 1>&6
9056 # Check whether --enable-qnx or --disable-qnx was given.
9057 if test "${enable_qnx+set}" = set; then
9058 enableval="$enable_qnx"
9062 if test "x${enable_qnx}" != "xno"
9066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9068 echo "configure:9069: checking for $ac_hdr" >&5
9069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9070 echo $ac_n "(cached) $ac_c" 1>&6
9072 cat > conftest.$ac_ext <<EOF
9073 #line 9074 "configure"
9074 #include "confdefs.h"
9077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9078 { (eval echo configure:9079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9080 if test -z "$ac_err"; then
9082 eval "ac_cv_header_$ac_safe=yes"
9085 echo "configure: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9088 eval "ac_cv_header_$ac_safe=no"
9092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9093 echo "$ac_t""yes" 1>&6
9094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9095 cat >> confdefs.h <<EOF
9096 #define $ac_tr_hdr 1
9099 PLUGINS="${PLUGINS} gui/qnx/qnx"
9100 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
9103 echo "$ac_t""no" 1>&6
9109 # Check whether --enable-intfwin or --disable-intfwin was given.
9110 if test "${enable_intfwin+set}" = set; then
9111 enableval="$enable_intfwin"
9112 if test "x${enable_intfwin}" != "xno"
9114 # Check whether --with-bcbuilder or --without-bcbuilder was given.
9115 if test "${with_bcbuilder+set}" = set; then
9116 withval="$with_bcbuilder"
9120 if test "x${with_bcbuilder}" != "x"
9122 BCBUILDER="${with_bcbuilder}"
9124 PLUGINS="${PLUGINS} gui/win32/win32"
9129 # Check whether --enable-ncurses or --disable-ncurses was given.
9130 if test "${enable_ncurses+set}" = set; then
9131 enableval="$enable_ncurses"
9132 if test "x${enable_ncurses}" = "xyes"; then
9133 PLUGINS="${PLUGINS} gui/ncurses/ncurses"
9134 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
9139 # Check whether --enable-xosd or --disable-xosd was given.
9140 if test "${enable_xosd+set}" = set; then
9141 enableval="$enable_xosd"
9145 if test "x${enable_xosd}" = "xyes"
9147 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
9148 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
9149 echo "configure:9150: checking for xosd.h" >&5
9150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9151 echo $ac_n "(cached) $ac_c" 1>&6
9153 cat > conftest.$ac_ext <<EOF
9154 #line 9155 "configure"
9155 #include "confdefs.h"
9158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9159 { (eval echo configure:9160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9161 if test -z "$ac_err"; then
9163 eval "ac_cv_header_$ac_safe=yes"
9166 echo "configure: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9169 eval "ac_cv_header_$ac_safe=no"
9173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9174 echo "$ac_t""yes" 1>&6
9177 echo "$ac_t""no" 1>&6
9181 if test "x${have_xosd}" = "xtrue"
9183 PLUGINS="${PLUGINS} visualization/xosd/xosd"
9184 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
9188 # Check whether --enable-lirc or --disable-lirc was given.
9189 if test "${enable_lirc+set}" = set; then
9190 enableval="$enable_lirc"
9194 if test "x${enable_lirc}" = "xyes"
9196 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
9197 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
9198 echo "configure:9199: checking for lirc/lirc_client.h" >&5
9199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9200 echo $ac_n "(cached) $ac_c" 1>&6
9202 cat > conftest.$ac_ext <<EOF
9203 #line 9204 "configure"
9204 #include "confdefs.h"
9205 #include <lirc/lirc_client.h>
9207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9208 { (eval echo configure:9209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9210 if test -z "$ac_err"; then
9212 eval "ac_cv_header_$ac_safe=yes"
9215 echo "configure: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9218 eval "ac_cv_header_$ac_safe=no"
9222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9223 echo "$ac_t""yes" 1>&6
9224 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
9225 echo "configure:9226: checking for lirc_init in -llirc_client" >&5
9226 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
9227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
9230 ac_save_LIBS="$LIBS"
9231 LIBS="-llirc_client $LIBS"
9232 cat > conftest.$ac_ext <<EOF
9233 #line 9234 "configure"
9234 #include "confdefs.h"
9235 /* Override any gcc2 internal prototype to avoid an error. */
9236 /* We use char because int might match the return type of a gcc2
9237 builtin and then its argument prototype would still apply. */
9244 if { (eval echo configure:9245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9246 eval "ac_cv_lib_$ac_lib_var=yes"
9248 echo "configure: failed program was:" >&5
9249 cat conftest.$ac_ext >&5
9251 eval "ac_cv_lib_$ac_lib_var=no"
9254 LIBS="$ac_save_LIBS"
9257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9258 echo "$ac_t""yes" 1>&6
9261 echo "$ac_t""no" 1>&6
9266 echo "$ac_t""no" 1>&6
9270 if test "x${have_lirc}" = "xtrue"
9272 PLUGINS="${PLUGINS} control/lirc/lirc"
9273 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
9277 # Check whether --with- or --without- was given.
9278 if test "${with_+set}" = set; then
9284 # Check whether --with-words or --without-words was given.
9285 if test "${with_words+set}" = set; then
9286 withval="$with_words"
9290 case "x${with_words}" in
9292 ac_cv_c_bigendian=yes
9295 ac_cv_c_bigendian=no
9298 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
9299 echo "configure:9300: checking whether the byte order is big-endian" >&5
9300 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9301 echo $ac_n "(cached) $ac_c" 1>&6
9303 ac_cv_c_bigendian="unknown"
9304 cat >conftest.c <<EOF
9305 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
9306 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
9307 void _a(void) { char*s = (char*)am; s = (char *)ai; }
9308 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
9309 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
9310 void _e(void) { char*s = (char*)em; s = (char*)ei; }
9311 int main(void) { _a(); _e(); return 0; }
9314 if test -f conftest.c
9316 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
9317 && test -f conftest.o
9319 if test "`strings conftest.o | grep BIGenDianSyS`"
9321 ac_cv_c_bigendian="yes"
9323 if test "`strings conftest.o | grep LiTTleEnDian`"
9325 ac_cv_c_bigendian="no"
9332 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9333 if test "x${ac_cv_c_bigendian}" = "xunknown"
9335 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
9339 if test "${ac_cv_c_bigendian}" = "yes"
9341 cat >> confdefs.h <<\EOF
9342 #define WORDS_BIGENDIAN 1
9350 # Check whether --enable-gprof or --disable-gprof was given.
9351 if test "${enable_gprof+set}" = set; then
9352 enableval="$enable_gprof"
9353 if test "x${enable_gprof}" = "xyes"
9363 # Check whether --enable-cprof or --disable-cprof was given.
9364 if test "${enable_cprof+set}" = set; then
9365 enableval="$enable_cprof"
9366 if test "x${enable_cprof}" = "xyes"
9368 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
9376 # Check whether --enable-pth or --disable-pth was given.
9377 if test "${enable_pth+set}" = set; then
9378 enableval="$enable_pth"
9379 if test "x${enable_pth}" = "xyes"; then
9380 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
9381 echo "configure:9382: checking for pth_init in -lpth" >&5
9382 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
9383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9384 echo $ac_n "(cached) $ac_c" 1>&6
9386 ac_save_LIBS="$LIBS"
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 /* Override any gcc2 internal prototype to avoid an error. */
9392 /* We use char because int might match the return type of a gcc2
9393 builtin and then its argument prototype would still apply. */
9400 if { (eval echo configure:9401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9402 eval "ac_cv_lib_$ac_lib_var=yes"
9404 echo "configure: failed program was:" >&5
9405 cat conftest.$ac_ext >&5
9407 eval "ac_cv_lib_$ac_lib_var=no"
9410 LIBS="$ac_save_LIBS"
9413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9414 echo "$ac_t""yes" 1>&6
9415 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9416 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9417 cat >> confdefs.h <<EOF
9418 #define $ac_tr_lib 1
9424 echo "$ac_t""no" 1>&6
9427 cat > conftest.$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9433 egrep "pth_init" >/dev/null 2>&1; then
9436 cat >> confdefs.h <<\EOF
9437 #define PTH_INIT_IN_PTH_H 1
9449 # Check whether --enable-st or --disable-st was given.
9450 if test "${enable_st+set}" = set; then
9451 enableval="$enable_st"
9452 if test "x${enable_st}" = "xyes"; then
9453 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9454 echo "configure:9455: checking for st_init in -lst" >&5
9455 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9457 echo $ac_n "(cached) $ac_c" 1>&6
9459 ac_save_LIBS="$LIBS"
9461 cat > conftest.$ac_ext <<EOF
9462 #line 9463 "configure"
9463 #include "confdefs.h"
9464 /* Override any gcc2 internal prototype to avoid an error. */
9465 /* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
9473 if { (eval echo configure:9474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9475 eval "ac_cv_lib_$ac_lib_var=yes"
9477 echo "configure: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9480 eval "ac_cv_lib_$ac_lib_var=no"
9483 LIBS="$ac_save_LIBS"
9486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9487 echo "$ac_t""yes" 1>&6
9488 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9490 cat >> confdefs.h <<EOF
9491 #define $ac_tr_lib 1
9497 echo "$ac_t""no" 1>&6
9500 cat > conftest.$ac_ext <<EOF
9501 #line 9502 "configure"
9502 #include "confdefs.h"
9505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9506 egrep "st_init" >/dev/null 2>&1; then
9509 cat >> confdefs.h <<\EOF
9510 #define ST_INIT_IN_ST_H 1
9522 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9523 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9526 # Check whether --enable-mozilla or --disable-mozilla was given.
9527 if test "${enable_mozilla+set}" = set; then
9528 enableval="$enable_mozilla"
9532 if test "x${enable_mozilla}" = "xyes"
9534 # Extract the first word of "mozilla-config", so it can be a program name with args.
9535 set dummy mozilla-config; ac_word=$2
9536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9537 echo "configure:9538: checking for $ac_word" >&5
9538 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9541 case "$MOZILLA_CONFIG" in
9543 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9546 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9551 for ac_dir in $ac_dummy; do
9552 test -z "$ac_dir" && ac_dir=.
9553 if test -f $ac_dir/$ac_word; then
9554 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9559 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9563 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9564 if test -n "$MOZILLA_CONFIG"; then
9565 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9567 echo "$ac_t""no" 1>&6
9570 if test "x${MOZILLA_CONFIG}" != "xno"
9572 if test "x${SYS}" != "xmingw32"; then
9573 LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9574 echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9575 echo "configure:9576: checking for XtStrings in -lXt" >&5
9576 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9578 echo $ac_n "(cached) $ac_c" 1>&6
9580 ac_save_LIBS="$LIBS"
9582 cat > conftest.$ac_ext <<EOF
9583 #line 9584 "configure"
9584 #include "confdefs.h"
9585 /* Override any gcc2 internal prototype to avoid an error. */
9586 /* We use char because int might match the return type of a gcc2
9587 builtin and then its argument prototype would still apply. */
9594 if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9596 eval "ac_cv_lib_$ac_lib_var=yes"
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9601 eval "ac_cv_lib_$ac_lib_var=no"
9604 LIBS="$ac_save_LIBS"
9607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9608 echo "$ac_t""yes" 1>&6
9610 mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9613 echo "$ac_t""no" 1>&6
9616 LDFLAGS="${save_LDFLAGS}"
9619 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9620 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9624 # Check whether --enable-plugins or --disable-plugins was given.
9625 if test "${enable_plugins+set}" = set; then
9626 enableval="$enable_plugins"
9627 if test "x${enable_plugins}" = "xno"
9629 BUILTINS="${BUILTINS} ${PLUGINS}"
9635 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9637 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9639 BUILTINS="${BUILTINS} ${PLUGINS}"
9643 cat >> confdefs.h <<EOF
9644 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9647 cat >> confdefs.h <<EOF
9648 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9651 cat >> confdefs.h <<EOF
9652 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9656 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9657 cat >> confdefs.h <<EOF
9658 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9661 cat >> confdefs.h <<EOF
9662 #define MODULE_SYMBOL ${VLC_SYMBOL}
9666 DATA_PATH="${ac_tool_prefix}/share/videolan"
9668 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9671 CPPFLAGS="${save_CPPFLAGS}"
9672 CFLAGS="${save_CFLAGS}"
9673 LDFLAGS="${save_LDFLAGS}"
9675 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9676 for i in `echo ${BUILTINS} | sed -e 's#[^ ]*/##g'` ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9790 cat > confcache <<\EOF
9791 # This file is a shell script that caches the results of configure
9792 # tests run on this system so they can be shared between configure
9793 # scripts and configure runs. It is not useful on other systems.
9794 # If it contains results you don't want to keep, you may remove or edit it.
9796 # By default, configure uses ./config.cache as the cache file,
9797 # creating it if it does not exist already. You can give configure
9798 # the --cache-file=FILE option to use a different cache file; that is
9799 # what configure does when it calls configure scripts in
9800 # subdirectories, so they share the cache.
9801 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9802 # config.status only pays attention to the cache file if you give it the
9803 # --recheck option to rerun configure.
9806 # The following way of writing the cache mishandles newlines in values,
9807 # but we know of no workaround that is simple, portable, and efficient.
9808 # So, don't put newlines in cache variables' values.
9809 # Ultrix sh set writes to stderr and can't be redirected directly,
9810 # and sets the high bit in the cache file unless we assign to the vars.
9812 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9814 # `set' does not quote correctly, so add quotes (double-quote substitution
9815 # turns \\\\ into \\, and sed turns \\ into \).
9817 -e "s/'/'\\\\''/g" \
9818 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9821 # `set' quotes correctly as required by POSIX, so do not add quotes.
9822 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9825 if cmp -s $cache_file confcache; then
9828 if test -w $cache_file; then
9829 echo "updating cache $cache_file"
9830 cat confcache > $cache_file
9832 echo "not updating unwritable cache $cache_file"
9837 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9839 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9840 # Let make expand exec_prefix.
9841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9843 # Any assignment to VPATH causes Sun make to only execute
9844 # the first set of double-colon rules, so remove it if not needed.
9845 # If there is a colon in the path, we need to keep it.
9846 if test "x$srcdir" = x.; then
9847 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9850 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9852 DEFS=-DHAVE_CONFIG_H
9854 # Without the "./", some shells look in PATH for config.status.
9855 : ${CONFIG_STATUS=./config.status}
9857 echo creating $CONFIG_STATUS
9858 rm -f $CONFIG_STATUS
9859 cat > $CONFIG_STATUS <<EOF
9861 # Generated automatically by configure.
9862 # Run this file to recreate the current configuration.
9863 # This directory was configured as follows,
9864 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9866 # $0 $ac_configure_args
9868 # Compiler output produced by configure, useful for debugging
9869 # configure, is in ./config.log if it exists.
9871 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9874 case "\$ac_option" in
9875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9876 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9877 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9878 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9879 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9881 -help | --help | --hel | --he | --h)
9882 echo "\$ac_cs_usage"; exit 0 ;;
9883 *) echo "\$ac_cs_usage"; exit 1 ;;
9887 ac_given_srcdir=$srcdir
9888 ac_given_INSTALL="$INSTALL"
9890 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
9892 cat >> $CONFIG_STATUS <<EOF
9894 # Protect against being on the right side of a sed subst in config.status.
9895 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9896 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9900 s%@CFLAGS@%$CFLAGS%g
9901 s%@CPPFLAGS@%$CPPFLAGS%g
9902 s%@CXXFLAGS@%$CXXFLAGS%g
9903 s%@FFLAGS@%$FFLAGS%g
9905 s%@LDFLAGS@%$LDFLAGS%g
9907 s%@exec_prefix@%$exec_prefix%g
9908 s%@prefix@%$prefix%g
9909 s%@program_transform_name@%$program_transform_name%g
9910 s%@bindir@%$bindir%g
9911 s%@sbindir@%$sbindir%g
9912 s%@libexecdir@%$libexecdir%g
9913 s%@datadir@%$datadir%g
9914 s%@sysconfdir@%$sysconfdir%g
9915 s%@sharedstatedir@%$sharedstatedir%g
9916 s%@localstatedir@%$localstatedir%g
9917 s%@libdir@%$libdir%g
9918 s%@includedir@%$includedir%g
9919 s%@oldincludedir@%$oldincludedir%g
9920 s%@infodir@%$infodir%g
9921 s%@mandir@%$mandir%g
9923 s%@host_alias@%$host_alias%g
9924 s%@host_cpu@%$host_cpu%g
9925 s%@host_vendor@%$host_vendor%g
9926 s%@host_os@%$host_os%g
9927 s%@target@%$target%g
9928 s%@target_alias@%$target_alias%g
9929 s%@target_cpu@%$target_cpu%g
9930 s%@target_vendor@%$target_vendor%g
9931 s%@target_os@%$target_os%g
9933 s%@build_alias@%$build_alias%g
9934 s%@build_cpu@%$build_cpu%g
9935 s%@build_vendor@%$build_vendor%g
9936 s%@build_os@%$build_os%g
9937 s%@SET_MAKE@%$SET_MAKE%g
9940 s%@RANLIB@%$RANLIB%g
9943 s%@ALLOCA@%$ALLOCA%g
9944 s%@GLIBC21@%$GLIBC21%g
9945 s%@LIBICONV@%$LIBICONV%g
9946 s%@USE_NLS@%$USE_NLS%g
9947 s%@MSGFMT@%$MSGFMT%g
9948 s%@GMSGFMT@%$GMSGFMT%g
9949 s%@XGETTEXT@%$XGETTEXT%g
9950 s%@INTLBISON@%$INTLBISON%g
9951 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9952 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9953 s%@CATALOGS@%$CATALOGS%g
9954 s%@CATOBJEXT@%$CATOBJEXT%g
9955 s%@GMOFILES@%$GMOFILES%g
9956 s%@INTLLIBS@%$INTLLIBS%g
9957 s%@INTLOBJS@%$INTLOBJS%g
9958 s%@POFILES@%$POFILES%g
9960 s%@DATADIRNAME@%$DATADIRNAME%g
9961 s%@INSTOBJEXT@%$INSTOBJEXT%g
9962 s%@GENCAT@%$GENCAT%g
9963 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9964 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9965 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9966 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9967 s%@INSTALL_DATA@%$INSTALL_DATA%g
9968 s%@WINDRES@%$WINDRES%g
9969 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9970 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9971 s%@SDL_CONFIG@%$SDL_CONFIG%g
9972 s%@ESD_CONFIG@%$ESD_CONFIG%g
9973 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9974 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9975 s%@GTK_CONFIG@%$GTK_CONFIG%g
9976 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9977 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9978 s%@DATA_PATH@%$DATA_PATH%g
9979 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9980 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
9983 s%@PLUGINS@%$PLUGINS%g
9984 s%@BUILTINS@%$BUILTINS%g
9985 s%@ALIASES@%$ALIASES%g
9990 s%@OPTIMS@%$OPTIMS%g
9991 s%@TUNING@%$TUNING%g
9992 s%@RELEASE@%$RELEASE%g
9994 s%@BCBUILDER@%$BCBUILDER%g
9995 s%@PACKAGE@%$PACKAGE%g
9996 s%@VERSION@%$VERSION%g
9997 s%@NEED_GETOPT@%$NEED_GETOPT%g
9998 s%@MOZILLA@%$MOZILLA%g
9999 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
10000 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
10001 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
10002 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
10003 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
10004 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
10005 s%@a52_CFLAGS@%$a52_CFLAGS%g
10006 s%@arts_CFLAGS@%$arts_CFLAGS%g
10007 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
10008 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
10009 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
10010 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
10011 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
10012 s%@directx_CFLAGS@%$directx_CFLAGS%g
10013 s%@esd_CFLAGS@%$esd_CFLAGS%g
10014 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
10015 s%@faad_CFLAGS@%$faad_CFLAGS%g
10016 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
10017 s%@glide_CFLAGS@%$glide_CFLAGS%g
10018 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
10019 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
10020 s%@kde_CFLAGS@%$kde_CFLAGS%g
10021 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
10022 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
10023 s%@mad_CFLAGS@%$mad_CFLAGS%g
10024 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
10025 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
10026 s%@qt_CFLAGS@%$qt_CFLAGS%g
10027 s%@qte_CFLAGS@%$qte_CFLAGS%g
10028 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
10029 s%@x11_CFLAGS@%$x11_CFLAGS%g
10030 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
10031 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
10032 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
10033 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
10034 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
10035 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
10036 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
10037 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
10038 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
10039 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
10040 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
10041 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
10042 s%@dv_LDFLAGS@%$dv_LDFLAGS%g
10043 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
10044 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
10045 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
10046 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
10047 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
10048 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
10049 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
10050 s%@faad_LDFLAGS@%$faad_LDFLAGS%g
10051 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
10052 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
10053 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
10054 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
10055 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
10056 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
10057 s%@http_LDFLAGS@%$http_LDFLAGS%g
10058 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
10059 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
10060 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
10061 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
10062 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
10063 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
10064 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
10065 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
10066 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
10067 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
10068 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
10069 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
10070 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
10071 s%@oss_LDFLAGS@%$oss_LDFLAGS%g
10072 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
10073 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
10074 s%@qte_LDFLAGS@%$qte_LDFLAGS%g
10075 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
10076 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
10077 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
10078 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
10079 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
10080 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
10081 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
10082 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
10087 cat >> $CONFIG_STATUS <<\EOF
10089 # Split the substitutions into bite-sized pieces for seds with
10090 # small command number limits, like on Digital OSF/1 and HP-UX.
10091 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10092 ac_file=1 # Number of current file.
10093 ac_beg=1 # First line for current file.
10094 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10097 while $ac_more_lines; do
10098 if test $ac_beg -gt 1; then
10099 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10101 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10103 if test ! -s conftest.s$ac_file; then
10104 ac_more_lines=false
10105 rm -f conftest.s$ac_file
10107 if test -z "$ac_sed_cmds"; then
10108 ac_sed_cmds="sed -f conftest.s$ac_file"
10110 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10112 ac_file=`expr $ac_file + 1`
10114 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10117 if test -z "$ac_sed_cmds"; then
10122 cat >> $CONFIG_STATUS <<EOF
10124 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
10126 cat >> $CONFIG_STATUS <<\EOF
10127 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10128 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10130 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10131 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10132 *) ac_file_in="${ac_file}.in" ;;
10135 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10137 # Remove last slash and all that follows it. Not all systems have dirname.
10138 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10139 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10140 # The file is in a subdirectory.
10141 test ! -d "$ac_dir" && mkdir "$ac_dir"
10142 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10143 # A "../" for each directory in $ac_dir_suffix.
10144 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10146 ac_dir_suffix= ac_dots=
10149 case "$ac_given_srcdir" in
10151 if test -z "$ac_dots"; then top_srcdir=.
10152 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10153 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10154 *) # Relative path.
10155 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10156 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10159 case "$ac_given_INSTALL" in
10160 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10161 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10164 echo creating "$ac_file"
10166 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10168 *Makefile*) ac_comsub="1i\\
10169 # $configure_input" ;;
10173 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10175 s%@configure_input@%$configure_input%g
10176 s%@srcdir@%$srcdir%g
10177 s%@top_srcdir@%$top_srcdir%g
10178 s%@INSTALL@%$INSTALL%g
10179 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10183 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10184 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10186 # ac_d sets the value in "#define NAME VALUE" lines.
10187 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10188 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10191 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10192 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10193 ac_uB='\([ ]\)%\1#\2define\3'
10196 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10197 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10198 ac_eB='$%\1#\2define\3'
10202 if test "${CONFIG_HEADERS+set}" != set; then
10204 cat >> $CONFIG_STATUS <<EOF
10205 CONFIG_HEADERS="include/defs.h"
10207 cat >> $CONFIG_STATUS <<\EOF
10209 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10210 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10212 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10213 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10214 *) ac_file_in="${ac_file}.in" ;;
10217 echo creating $ac_file
10219 rm -f conftest.frag conftest.in conftest.out
10220 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10221 cat $ac_file_inputs > conftest.in
10225 # Transform confdefs.h into a sed script conftest.vals that substitutes
10226 # the proper values into config.h.in to produce config.h. And first:
10227 # Protect against being on the right side of a sed subst in config.status.
10228 # Protect against being in an unquoted here document in config.status.
10229 rm -f conftest.vals
10230 cat > conftest.hdr <<\EOF
10233 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10237 sed -n -f conftest.hdr confdefs.h > conftest.vals
10240 # This sed command replaces #undef with comments. This is necessary, for
10241 # example, in the case of _POSIX_SOURCE, which is predefined and required
10242 # on some systems where configure will not decide to define it.
10243 cat >> conftest.vals <<\EOF
10244 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10247 # Break up conftest.vals because some shells have a limit on
10248 # the size of here documents, and old seds have small limits too.
10250 rm -f conftest.tail
10253 ac_lines=`grep -c . conftest.vals`
10254 # grep -c gives empty output for an empty file on some AIX systems.
10255 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10256 # Write a limited-size here document to conftest.frag.
10257 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10258 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10260 sed -f conftest.frag conftest.in > conftest.out
10262 mv conftest.out conftest.in
10263 ' >> $CONFIG_STATUS
10264 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10265 rm -f conftest.vals
10266 mv conftest.tail conftest.vals
10268 rm -f conftest.vals
10270 cat >> $CONFIG_STATUS <<\EOF
10271 rm -f conftest.frag conftest.h
10272 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10273 cat conftest.in >> conftest.h
10275 if cmp -s $ac_file conftest.h 2>/dev/null; then
10276 echo "$ac_file is unchanged"
10279 # Remove last slash and all that follows it. Not all systems have dirname.
10280 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10281 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10282 # The file is in a subdirectory.
10283 test ! -d "$ac_dir" && mkdir "$ac_dir"
10286 mv conftest.h $ac_file
10291 cat >> $CONFIG_STATUS <<EOF
10295 cat >> $CONFIG_STATUS <<\EOF
10296 for ac_file in $CONFIG_FILES; do
10297 # Support "outfile[:infile[:infile...]]"
10299 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10301 # PO directories have a Makefile.in generated from Makefile.in.in.
10302 case "$ac_file" in */Makefile.in)
10303 # Adjust a relative srcdir.
10304 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10305 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10306 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10307 # In autoconf-2.13 it is called $ac_given_srcdir.
10308 # In autoconf-2.50 it is called $srcdir.
10309 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10310 case "$ac_given_srcdir" in
10311 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10312 /*) top_srcdir="$ac_given_srcdir" ;;
10313 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10315 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10316 rm -f "$ac_dir/POTFILES"
10317 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10318 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10319 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10320 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10328 chmod +x $CONFIG_STATUS
10329 rm -fr confdefs* $ac_clean_files
10330 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10332 chmod a+x vlc-config
10336 --------------------
10337 vlc version : ${VERSION}
10339 architecture : ${ARCH}
10340 optimizations : ${OPTIMS}
10342 debug mode : ${DEBUG}
10343 release : ${RELEASE}
10344 profiling : ${PROFILING}
10345 need builtin getopt : ${NEED_GETOPT}
10346 built-in modules :${BUILTINS}
10347 plug-in modules :${PLUGINS}
10348 mozilla plugin : ${MOZILLA}
10349 vlc aliases :${ALIASES}
10351 You may now tune Makefile.opts at your convenience, for instance to choose
10352 which modules get compiled as plugins.
10354 To build vlc and its plugins, type \`${VLC_MAKE}'.