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-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
60 --enable-satellite satellite card support (default disabled)"
62 --enable-avi AVI demux module (default enabled)"
66 --enable-mad libmad module (default disabled)"
68 --with-mad=PATH path to libmad"
70 --with-mad-tree=PATH mad tree for static linking"
72 --enable-ffmpeg ffmpeg codec (default disabled)"
74 --with-ffmpeg=PATH path to ffmpeg installation"
76 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
78 --enable-mp4 MP4 demux module (default disabled)"
80 --enable-a52 AC3 support with liba52 (default enabled)"
82 --with-a52-tree=PATH a52dec tree for static linking "
84 --enable-cinepak Cinepak decoder (default enabled)"
86 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
88 --enable-dv DV decoder support (default disabled)"
92 --enable-x11 X11 support (default enabled)"
94 --enable-xvideo XVideo support (default enabled)"
96 --enable-sdl SDL support (default enabled)"
98 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
100 --enable-directx Win32 DirectX support (default enabled on Win32)"
102 --with-directx=PATH Win32 DirectX headers"
104 --enable-fb Linux framebuffer support (default enabled on Linux)"
106 --enable-mga Linux kernel Matrox support (default disabled)"
108 --enable-ggi GGI support (default disabled)"
110 --with-ggi=PATH path to libggi"
112 --enable-glide Glide (3dfx) support (default disabled)"
114 --with-glide=PATH path to libglide"
116 --enable-aa aalib output (default disabled)"
120 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
122 --enable-esd Esound library support (default disabled)"
124 --enable-arts aRts sound server (default disabled)"
126 --enable-alsa ALSA sound support for Linux (default disabled)"
128 --enable-waveout Win32 waveOut module (default enabled on Win32)"
132 --enable-gtk Gtk+ support (default enabled)"
134 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
136 --enable-familiar Familiar Gtk+ support (default disabled)"
138 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
140 --enable-gnome Gnome interface support (default disabled)"
142 --enable-qt Qt interface support (default disabled)"
144 --enable-kde KDE interface support (default disabled)"
146 --enable-macosx MacOS X support (default enabled on MacOS X)"
148 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
150 --enable-intfwin Win32 interface support (default disabled)"
152 --with-bcbuilder=PATH Borland C++ Builder installation path"
154 --enable-ncurses ncurses interface support (default disabled)"
156 --enable-xosd xosd interface support (default disabled)"
158 --enable-lirc lirc support (default disabled)"
162 --with-words=endianness set endianness (big or little)"
164 --enable-gprof gprof profiling (default disabled)"
166 --enable-cprof cprof profiling (default disabled)"
168 --enable-pth GNU Pth support (default disabled)"
170 --enable-st State Threads (default disabled)"
172 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
174 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
176 # Initialize some variables set by options.
177 # The variables have the same names as the options, with
178 # dashes changed to underlines.
180 cache_file=./config.cache
189 program_transform_name=s,x,x,
197 bindir='${exec_prefix}/bin'
198 sbindir='${exec_prefix}/sbin'
199 libexecdir='${exec_prefix}/libexec'
200 datadir='${prefix}/share'
201 sysconfdir='${prefix}/etc'
202 sharedstatedir='${prefix}/com'
203 localstatedir='${prefix}/var'
204 libdir='${exec_prefix}/lib'
205 includedir='${prefix}/include'
206 oldincludedir='/usr/include'
207 infodir='${prefix}/info'
208 mandir='${prefix}/man'
210 # Initialize some other variables.
213 SHELL=${CONFIG_SHELL-/bin/sh}
214 # Maximum number of lines to put in a shell here document.
221 # If the previous option needs an argument, assign it.
222 if test -n "$ac_prev"; then
223 eval "$ac_prev=\$ac_option"
229 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
233 # Accept the important Cygnus configure options, so we can diagnose typos.
237 -bindir | --bindir | --bindi | --bind | --bin | --bi)
239 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
240 bindir="$ac_optarg" ;;
242 -build | --build | --buil | --bui | --bu)
244 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
245 build="$ac_optarg" ;;
247 -cache-file | --cache-file | --cache-fil | --cache-fi \
248 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
249 ac_prev=cache_file ;;
250 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
251 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
252 cache_file="$ac_optarg" ;;
254 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
256 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
258 datadir="$ac_optarg" ;;
260 -disable-* | --disable-*)
261 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
262 # Reject names that are not valid shell variable names.
263 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
264 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
266 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
267 eval "enable_${ac_feature}=no" ;;
269 -enable-* | --enable-*)
270 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
271 # Reject names that are not valid shell variable names.
272 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
273 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
275 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
280 eval "enable_${ac_feature}='$ac_optarg'" ;;
282 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
283 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
284 | --exec | --exe | --ex)
285 ac_prev=exec_prefix ;;
286 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
287 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
288 | --exec=* | --exe=* | --ex=*)
289 exec_prefix="$ac_optarg" ;;
291 -gas | --gas | --ga | --g)
292 # Obsolete; use --with-gas.
295 -help | --help | --hel | --he)
296 # Omit some internal or obsolete options to make the list less imposing.
297 # This message is too long to be a string in the A/UX 3.1 sh.
299 Usage: configure [options] [host]
300 Options: [defaults in brackets after descriptions]
302 --cache-file=FILE cache test results in FILE
303 --help print this message
304 --no-create do not create output files
305 --quiet, --silent do not print \`checking...' messages
306 --version print the version of autoconf that created configure
307 Directory and file names:
308 --prefix=PREFIX install architecture-independent files in PREFIX
310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
312 --bindir=DIR user executables in DIR [EPREFIX/bin]
313 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
314 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
315 --datadir=DIR read-only architecture-independent data in DIR
317 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
318 --sharedstatedir=DIR modifiable architecture-independent data in DIR
320 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
321 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
322 --includedir=DIR C header files in DIR [PREFIX/include]
323 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
324 --infodir=DIR info documentation in DIR [PREFIX/info]
325 --mandir=DIR man documentation in DIR [PREFIX/man]
326 --srcdir=DIR find the sources in DIR [configure dir or ..]
327 --program-prefix=PREFIX prepend PREFIX to installed program names
328 --program-suffix=SUFFIX append SUFFIX to installed program names
329 --program-transform-name=PROGRAM
330 run sed PROGRAM on installed program names
334 --build=BUILD configure for building on BUILD [BUILD=HOST]
335 --host=HOST configure for HOST [guessed]
336 --target=TARGET configure for TARGET [TARGET=HOST]
337 Features and packages:
338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
340 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
341 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
342 --x-includes=DIR X include files are in DIR
343 --x-libraries=DIR X library files are in DIR
345 if test -n "$ac_help"; then
346 echo "--enable and --with options recognized:$ac_help"
350 -host | --host | --hos | --ho)
352 -host=* | --host=* | --hos=* | --ho=*)
355 -includedir | --includedir | --includedi | --included | --include \
356 | --includ | --inclu | --incl | --inc)
357 ac_prev=includedir ;;
358 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
359 | --includ=* | --inclu=* | --incl=* | --inc=*)
360 includedir="$ac_optarg" ;;
362 -infodir | --infodir | --infodi | --infod | --info | --inf)
364 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
365 infodir="$ac_optarg" ;;
367 -libdir | --libdir | --libdi | --libd)
369 -libdir=* | --libdir=* | --libdi=* | --libd=*)
370 libdir="$ac_optarg" ;;
372 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
373 | --libexe | --libex | --libe)
374 ac_prev=libexecdir ;;
375 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
376 | --libexe=* | --libex=* | --libe=*)
377 libexecdir="$ac_optarg" ;;
379 -localstatedir | --localstatedir | --localstatedi | --localstated \
380 | --localstate | --localstat | --localsta | --localst \
381 | --locals | --local | --loca | --loc | --lo)
382 ac_prev=localstatedir ;;
383 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
384 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
385 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
386 localstatedir="$ac_optarg" ;;
388 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
390 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
391 mandir="$ac_optarg" ;;
394 # Obsolete; use --without-fp.
397 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
401 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
402 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
405 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
406 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
407 | --oldin | --oldi | --old | --ol | --o)
408 ac_prev=oldincludedir ;;
409 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
410 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
411 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
412 oldincludedir="$ac_optarg" ;;
414 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
416 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
417 prefix="$ac_optarg" ;;
419 -program-prefix | --program-prefix | --program-prefi | --program-pref \
420 | --program-pre | --program-pr | --program-p)
421 ac_prev=program_prefix ;;
422 -program-prefix=* | --program-prefix=* | --program-prefi=* \
423 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
424 program_prefix="$ac_optarg" ;;
426 -program-suffix | --program-suffix | --program-suffi | --program-suff \
427 | --program-suf | --program-su | --program-s)
428 ac_prev=program_suffix ;;
429 -program-suffix=* | --program-suffix=* | --program-suffi=* \
430 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
431 program_suffix="$ac_optarg" ;;
433 -program-transform-name | --program-transform-name \
434 | --program-transform-nam | --program-transform-na \
435 | --program-transform-n | --program-transform- \
436 | --program-transform | --program-transfor \
437 | --program-transfo | --program-transf \
438 | --program-trans | --program-tran \
439 | --progr-tra | --program-tr | --program-t)
440 ac_prev=program_transform_name ;;
441 -program-transform-name=* | --program-transform-name=* \
442 | --program-transform-nam=* | --program-transform-na=* \
443 | --program-transform-n=* | --program-transform-=* \
444 | --program-transform=* | --program-transfor=* \
445 | --program-transfo=* | --program-transf=* \
446 | --program-trans=* | --program-tran=* \
447 | --progr-tra=* | --program-tr=* | --program-t=*)
448 program_transform_name="$ac_optarg" ;;
450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
451 | -silent | --silent | --silen | --sile | --sil)
454 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
456 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
458 sbindir="$ac_optarg" ;;
460 -sharedstatedir | --sharedstatedir | --sharedstatedi \
461 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
462 | --sharedst | --shareds | --shared | --share | --shar \
464 ac_prev=sharedstatedir ;;
465 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
466 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
467 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
469 sharedstatedir="$ac_optarg" ;;
471 -site | --site | --sit)
473 -site=* | --site=* | --sit=*)
476 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
478 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
479 srcdir="$ac_optarg" ;;
481 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
482 | --syscon | --sysco | --sysc | --sys | --sy)
483 ac_prev=sysconfdir ;;
484 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
485 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
486 sysconfdir="$ac_optarg" ;;
488 -target | --target | --targe | --targ | --tar | --ta | --t)
490 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
491 target="$ac_optarg" ;;
493 -v | -verbose | --verbose | --verbos | --verbo | --verb)
496 -version | --version | --versio | --versi | --vers)
497 echo "configure generated by autoconf version 2.13"
501 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
502 # Reject names that are not valid shell variable names.
503 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
504 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
506 ac_package=`echo $ac_package| sed 's/-/_/g'`
511 eval "with_${ac_package}='$ac_optarg'" ;;
513 -without-* | --without-*)
514 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
515 # Reject names that are not valid shell variable names.
516 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
517 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
519 ac_package=`echo $ac_package| sed 's/-/_/g'`
520 eval "with_${ac_package}=no" ;;
523 # Obsolete; use --with-x.
526 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
527 | --x-incl | --x-inc | --x-in | --x-i)
528 ac_prev=x_includes ;;
529 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
530 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
531 x_includes="$ac_optarg" ;;
533 -x-libraries | --x-libraries | --x-librarie | --x-librari \
534 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
535 ac_prev=x_libraries ;;
536 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
537 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
538 x_libraries="$ac_optarg" ;;
540 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
544 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
545 echo "configure: warning: $ac_option: invalid host type" 1>&2
547 if test "x$nonopt" != xNONE; then
548 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
556 if test -n "$ac_prev"; then
557 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
560 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
562 # File descriptor usage:
565 # 2 errors and warnings
566 # 3 some systems may open it to /dev/tty
567 # 4 used on the Kubota Titan
568 # 6 checking for... messages and results
569 # 5 compiler messages saved in config.log
570 if test "$silent" = yes; then
578 This file contains any messages produced by compilers while
579 running configure, to aid debugging if configure makes a mistake.
582 # Strip out --no-create and --no-recursion so they do not pile up.
583 # Also quote any args containing shell metacharacters.
588 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
589 | --no-cr | --no-c) ;;
590 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
591 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
592 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
593 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
594 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
599 # Only set these to C if already set. These must not be set unconditionally
600 # because not all systems understand e.g. LANG=C (notably SCO).
601 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
602 # Non-C LC_CTYPE values break the ctype check.
603 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
604 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
605 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
606 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
608 # confdefs.h avoids OS command line length limits that DEFS can exceed.
609 rm -rf conftest* confdefs.h
610 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
613 # A filename unique to this package, relative to the directory that
614 # configure is in, which we can look for to find out if srcdir is correct.
615 ac_unique_file=include/main.h
617 # Find the source files, if location was not specified.
618 if test -z "$srcdir"; then
619 ac_srcdir_defaulted=yes
620 # Try the directory containing this script, then its parent.
622 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
623 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
625 if test ! -r $srcdir/$ac_unique_file; then
629 ac_srcdir_defaulted=no
631 if test ! -r $srcdir/$ac_unique_file; then
632 if test "$ac_srcdir_defaulted" = yes; then
633 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
635 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
638 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
640 # Prefer explicitly selected file to automatically selected ones.
641 if test -z "$CONFIG_SITE"; then
642 if test "x$prefix" != xNONE; then
643 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
645 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
648 for ac_site_file in $CONFIG_SITE; do
649 if test -r "$ac_site_file"; then
650 echo "loading site script $ac_site_file"
655 if test -r "$cache_file"; then
656 echo "loading cache $cache_file"
659 echo "creating cache $cache_file"
664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
665 ac_cpp='$CPP $CPPFLAGS'
666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
668 cross_compiling=$ac_cv_prog_cc_cross
672 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
673 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
674 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
681 ac_n= ac_c='\c' ac_t=
687 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
688 if test -f $ac_dir/install-sh; then
690 ac_install_sh="$ac_aux_dir/install-sh -c"
692 elif test -f $ac_dir/install.sh; then
694 ac_install_sh="$ac_aux_dir/install.sh -c"
698 if test -z "$ac_aux_dir"; then
699 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
701 ac_config_guess=$ac_aux_dir/config.guess
702 ac_config_sub=$ac_aux_dir/config.sub
703 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
706 # Do some error checking and defaulting for the host and target type.
708 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
711 # 1. You are not allowed to specify --host, --target, and nonopt at the
713 # 2. Host defaults to nonopt.
714 # 3. If nonopt is not specified, then host defaults to the current host,
715 # as determined by config.guess.
716 # 4. Target and build default to nonopt.
717 # 5. If nonopt is not specified, then target and build default to host.
719 # The aliases save the names the user supplied, while $host etc.
720 # will get canonicalized.
721 case $host---$target---$nonopt in
722 NONE---*---* | *---NONE---* | *---*---NONE) ;;
723 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
727 # Make sure we can run config.sub.
728 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
729 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
732 echo $ac_n "checking host system type""... $ac_c" 1>&6
733 echo "configure:734: checking host system type" >&5
736 case "$host_alias" in
740 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
741 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
743 *) host_alias=$nonopt ;;
747 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
748 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
751 echo "$ac_t""$host" 1>&6
753 echo $ac_n "checking target system type""... $ac_c" 1>&6
754 echo "configure:755: checking target system type" >&5
757 case "$target_alias" in
760 NONE) target_alias=$host_alias ;;
761 *) target_alias=$nonopt ;;
765 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
766 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
767 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
768 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
769 echo "$ac_t""$target" 1>&6
771 echo $ac_n "checking build system type""... $ac_c" 1>&6
772 echo "configure:773: checking build system type" >&5
775 case "$build_alias" in
778 NONE) build_alias=$host_alias ;;
779 *) build_alias=$nonopt ;;
783 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
784 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
785 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
786 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
787 echo "$ac_t""$build" 1>&6
789 test "$host_alias" != "$target_alias" &&
790 test "$program_prefix$program_suffix$program_transform_name" = \
792 program_prefix=${target_alias}-
795 CONFIGURE_LINE="$0 $*"
801 save_CPPFLAGS="${CPPFLAGS}"
802 save_CFLAGS="${CFLAGS}"
803 save_LDFLAGS="${LDFLAGS}"
805 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${MAKE-make} sets \${MAKE}" >&5
807 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
808 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 cat > conftestmake <<\EOF
813 @echo 'ac_maketemp="${MAKE}"'
815 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
816 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
817 if test -n "$ac_maketemp"; then
818 eval ac_cv_prog_make_${ac_make}_set=yes
820 eval ac_cv_prog_make_${ac_make}_set=no
824 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
825 echo "$ac_t""yes" 1>&6
828 echo "$ac_t""no" 1>&6
829 SET_MAKE="MAKE=${MAKE-make}"
832 # Extract the first word of "gcc", so it can be a program name with args.
833 set dummy gcc; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 if test -n "$CC"; then
840 ac_cv_prog_CC="$CC" # Let the user override the test.
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
844 for ac_dir in $ac_dummy; do
845 test -z "$ac_dir" && ac_dir=.
846 if test -f $ac_dir/$ac_word; then
855 if test -n "$CC"; then
856 echo "$ac_t""$CC" 1>&6
858 echo "$ac_t""no" 1>&6
861 if test -z "$CC"; then
862 # Extract the first word of "cc", so it can be a program name with args.
863 set dummy cc; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 if test -n "$CC"; then
870 ac_cv_prog_CC="$CC" # Let the user override the test.
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
878 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
887 if test $ac_prog_rejected = yes; then
888 # We found a bogon in the path, so make sure we never use it.
889 set dummy $ac_cv_prog_CC
891 if test $# -gt 0; then
892 # We chose a different compiler from the bogus one.
893 # However, it has the same basename, so the bogon will be chosen
894 # first if we set CC to just the basename; use the full file name.
896 set dummy "$ac_dir/$ac_word" "$@"
904 if test -n "$CC"; then
905 echo "$ac_t""$CC" 1>&6
907 echo "$ac_t""no" 1>&6
910 if test -z "$CC"; then
913 # Extract the first word of "cl", so it can be a program name with args.
914 set dummy cl; ac_word=$2
915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916 echo "configure:917: checking for $ac_word" >&5
917 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
920 if test -n "$CC"; then
921 ac_cv_prog_CC="$CC" # Let the user override the test.
923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
925 for ac_dir in $ac_dummy; do
926 test -z "$ac_dir" && ac_dir=.
927 if test -f $ac_dir/$ac_word; then
936 if test -n "$CC"; then
937 echo "$ac_t""$CC" 1>&6
939 echo "$ac_t""no" 1>&6
944 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
948 echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
957 cat > conftest.$ac_ext << EOF
959 #line 960 "configure"
960 #include "confdefs.h"
964 if { (eval echo configure:965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
965 ac_cv_prog_cc_works=yes
966 # If we can't run a trivial program, we are probably using a cross compiler.
967 if (./conftest; exit) 2>/dev/null; then
968 ac_cv_prog_cc_cross=no
970 ac_cv_prog_cc_cross=yes
973 echo "configure: failed program was:" >&5
974 cat conftest.$ac_ext >&5
975 ac_cv_prog_cc_works=no
979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
980 ac_cpp='$CPP $CPPFLAGS'
981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
983 cross_compiling=$ac_cv_prog_cc_cross
985 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
986 if test $ac_cv_prog_cc_works = no; then
987 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
989 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
990 echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
991 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
992 cross_compiling=$ac_cv_prog_cc_cross
994 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
995 echo "configure:996: checking whether we are using GNU C" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 cat > conftest.c <<EOF
1004 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1011 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1013 if test $ac_cv_prog_gcc = yes; then
1019 ac_test_CFLAGS="${CFLAGS+set}"
1020 ac_save_CFLAGS="$CFLAGS"
1022 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether ${CC-cc} accepts -g" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 echo 'void f(){}' > conftest.c
1028 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1037 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1038 if test "$ac_test_CFLAGS" = set; then
1039 CFLAGS="$ac_save_CFLAGS"
1040 elif test $ac_cv_prog_cc_g = yes; then
1041 if test "$GCC" = yes; then
1047 if test "$GCC" = yes; then
1054 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1055 echo "configure:1056: checking how to run the C preprocessor" >&5
1056 # On Suns, sometimes $CPP names a directory.
1057 if test -n "$CPP" && test -d "$CPP"; then
1060 if test -z "$CPP"; then
1061 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 # This must be in double quotes, not single quotes, because CPP may get
1065 # substituted into the Makefile and "${CC-cc}" will confuse make.
1067 # On the NeXT, cc -E runs the code through the compiler's parser,
1068 # not just through cpp.
1069 cat > conftest.$ac_ext <<EOF
1070 #line 1071 "configure"
1071 #include "confdefs.h"
1075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1076 { (eval echo configure:1077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1078 if test -z "$ac_err"; then
1082 echo "configure: failed program was:" >&5
1083 cat conftest.$ac_ext >&5
1085 CPP="${CC-cc} -E -traditional-cpp"
1086 cat > conftest.$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1093 { (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1095 if test -z "$ac_err"; then
1099 echo "configure: failed program was:" >&5
1100 cat conftest.$ac_ext >&5
1102 CPP="${CC-cc} -nologo -E"
1103 cat > conftest.$ac_ext <<EOF
1104 #line 1105 "configure"
1105 #include "confdefs.h"
1109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1110 { (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1112 if test -z "$ac_err"; then
1116 echo "configure: failed program was:" >&5
1117 cat conftest.$ac_ext >&5
1126 ac_cv_prog_CPP="$CPP"
1128 CPP="$ac_cv_prog_CPP"
1130 ac_cv_prog_CPP="$CPP"
1132 echo "$ac_t""$CPP" 1>&6
1135 if test $host != $build; then
1136 ac_tool_prefix=${host_alias}-
1141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$RANLIB"; then
1149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1163 RANLIB="$ac_cv_prog_RANLIB"
1164 if test -n "$RANLIB"; then
1165 echo "$ac_t""$RANLIB" 1>&6
1167 echo "$ac_t""no" 1>&6
1171 if test -z "$ac_cv_prog_RANLIB"; then
1172 if test -n "$ac_tool_prefix"; then
1173 # Extract the first word of "ranlib", so it can be a program name with args.
1174 set dummy ranlib; ac_word=$2
1175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_word" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1180 if test -n "$RANLIB"; then
1181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1185 for ac_dir in $ac_dummy; do
1186 test -z "$ac_dir" && ac_dir=.
1187 if test -f $ac_dir/$ac_word; then
1188 ac_cv_prog_RANLIB="ranlib"
1193 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1196 RANLIB="$ac_cv_prog_RANLIB"
1197 if test -n "$RANLIB"; then
1198 echo "$ac_t""$RANLIB" 1>&6
1200 echo "$ac_t""no" 1>&6
1208 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1209 set dummy ${ac_tool_prefix}strip; ac_word=$2
1210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1211 echo "configure:1212: checking for $ac_word" >&5
1212 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 if test -n "$STRIP"; then
1216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1220 for ac_dir in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f $ac_dir/$ac_word; then
1223 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1230 STRIP="$ac_cv_prog_STRIP"
1231 if test -n "$STRIP"; then
1232 echo "$ac_t""$STRIP" 1>&6
1234 echo "$ac_t""no" 1>&6
1238 if test -z "$ac_cv_prog_STRIP"; then
1239 if test -n "$ac_tool_prefix"; then
1240 # Extract the first word of "strip", so it can be a program name with args.
1241 set dummy strip; ac_word=$2
1242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_word" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 if test -n "$STRIP"; then
1248 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1252 for ac_dir in $ac_dummy; do
1253 test -z "$ac_dir" && ac_dir=.
1254 if test -f $ac_dir/$ac_word; then
1255 ac_cv_prog_STRIP="strip"
1260 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1263 STRIP="$ac_cv_prog_STRIP"
1264 if test -n "$STRIP"; then
1265 echo "$ac_t""$STRIP" 1>&6
1267 echo "$ac_t""no" 1>&6
1276 # Extract the first word of "gmake", so it can be a program name with args.
1277 set dummy gmake; ac_word=$2
1278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1279 echo "configure:1280: checking for $ac_word" >&5
1280 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1285 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1288 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1293 for ac_dir in $ac_dummy; do
1294 test -z "$ac_dir" && ac_dir=.
1295 if test -f $ac_dir/$ac_word; then
1296 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1301 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1305 GMAKE="$ac_cv_path_GMAKE"
1306 if test -n "$GMAKE"; then
1307 echo "$ac_t""$GMAKE" 1>&6
1309 echo "$ac_t""no" 1>&6
1312 if test "x${GMAKE}" = "xno"; then
1313 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1314 echo "configure:1315: checking whether GNU make is installed" >&5
1315 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 if make --version | grep -q -i gnu; then
1321 echo "This software needs you to install GNU make to compile properly."
1322 echo "You can get it from http://www.gnu.org/."
1327 echo "$ac_t""$ac_cv_gmake" 1>&6
1333 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1335 cat >> confdefs.h <<EOF
1336 #define VLC_PACKAGE "${PACKAGE}"
1339 cat >> confdefs.h <<EOF
1340 #define VLC_VERSION "${VERSION}"
1343 # Extract the first word of "ranlib", so it can be a program name with args.
1344 set dummy ranlib; ac_word=$2
1345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1346 echo "configure:1347: checking for $ac_word" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 if test -n "$RANLIB"; then
1351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1355 for ac_dir in $ac_dummy; do
1356 test -z "$ac_dir" && ac_dir=.
1357 if test -f $ac_dir/$ac_word; then
1358 ac_cv_prog_RANLIB="ranlib"
1363 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1366 RANLIB="$ac_cv_prog_RANLIB"
1367 if test -n "$RANLIB"; then
1368 echo "$ac_t""$RANLIB" 1>&6
1370 echo "$ac_t""no" 1>&6
1374 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1375 echo "configure:1376: checking for strerror in -lcposix" >&5
1376 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1380 ac_save_LIBS="$LIBS"
1381 LIBS="-lcposix $LIBS"
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 /* Override any gcc2 internal prototype to avoid an error. */
1386 /* We use char because int might match the return type of a gcc2
1387 builtin and then its argument prototype would still apply. */
1394 if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1396 eval "ac_cv_lib_$ac_lib_var=yes"
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1401 eval "ac_cv_lib_$ac_lib_var=no"
1404 LIBS="$ac_save_LIBS"
1407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1408 echo "$ac_t""yes" 1>&6
1409 LIBS="$LIBS -lcposix"
1411 echo "$ac_t""no" 1>&6
1416 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1417 echo "configure:1418: checking for ANSI C header files" >&5
1418 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1430 { (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1432 if test -z "$ac_err"; then
1434 ac_cv_header_stdc=yes
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1440 ac_cv_header_stdc=no
1444 if test $ac_cv_header_stdc = yes; then
1445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1452 egrep "memchr" >/dev/null 2>&1; then
1456 ac_cv_header_stdc=no
1462 if test $ac_cv_header_stdc = yes; then
1463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1470 egrep "free" >/dev/null 2>&1; then
1474 ac_cv_header_stdc=no
1480 if test $ac_cv_header_stdc = yes; then
1481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1482 if test "$cross_compiling" = yes; then
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1489 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1490 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1492 int main () { int i; for (i = 0; i < 256; i++)
1493 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1497 if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1504 ac_cv_header_stdc=no
1512 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1513 if test $ac_cv_header_stdc = yes; then
1514 cat >> confdefs.h <<\EOF
1515 #define STDC_HEADERS 1
1520 echo $ac_n "checking for working const""... $ac_c" 1>&6
1521 echo "configure:1522: checking for working const" >&5
1522 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1531 /* Ultrix mips cc rejects this. */
1532 typedef int charset[2]; const charset x = {0,0};
1533 /* SunOS 4.1.1 cc rejects this. */
1534 char const *const *ccp;
1536 /* NEC SVR4.0.2 mips cc rejects this. */
1537 struct point {int x, y;};
1538 static struct point const zero = {0,0};
1539 /* AIX XL C 1.02.0.0 rejects this.
1540 It does not let you subtract one const X* pointer from another in an arm
1541 of an if-expression whose if-part is not a constant expression */
1542 const char *g = "string";
1543 ccp = &g + (g ? g-g : 0);
1544 /* HPUX 7.0 cc rejects these. */
1547 ccp = (char const *const *) p;
1548 { /* SCO 3.2v4 cc rejects this. */
1550 char const *s = 0 ? (char *) 0 : (char const *) 0;
1554 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1556 const int *foo = &x[0];
1559 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1560 typedef const int *iptr;
1564 { /* AIX XL C 1.02.0.0 rejects this saying
1565 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1566 struct s { int j; const int *ap[3]; };
1567 struct s *b; b->j = 5;
1569 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1575 if { (eval echo configure:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1579 echo "configure: failed program was:" >&5
1580 cat conftest.$ac_ext >&5
1587 echo "$ac_t""$ac_cv_c_const" 1>&6
1588 if test $ac_cv_c_const = no; then
1589 cat >> confdefs.h <<\EOF
1595 echo $ac_n "checking for inline""... $ac_c" 1>&6
1596 echo "configure:1597: checking for inline" >&5
1597 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1601 for ac_kw in inline __inline__ __inline; do
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1607 } int $ac_kw foo() {
1610 if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1612 ac_cv_c_inline=$ac_kw; break
1614 echo "configure: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1622 echo "$ac_t""$ac_cv_c_inline" 1>&6
1623 case "$ac_cv_c_inline" in
1625 no) cat >> confdefs.h <<\EOF
1629 *) cat >> confdefs.h <<EOF
1630 #define inline $ac_cv_c_inline
1635 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1636 echo "configure:1637: checking for off_t" >&5
1637 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 #include <sys/types.h>
1649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1650 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1652 ac_cv_type_off_t=yes
1660 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1661 if test $ac_cv_type_off_t = no; then
1662 cat >> confdefs.h <<\EOF
1668 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1669 echo "configure:1670: checking for size_t" >&5
1670 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 cat > conftest.$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1676 #include <sys/types.h>
1682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1683 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1685 ac_cv_type_size_t=yes
1688 ac_cv_type_size_t=no
1693 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1694 if test $ac_cv_type_size_t = no; then
1695 cat >> confdefs.h <<\EOF
1696 #define size_t unsigned
1701 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1702 # for constant arguments. Useless!
1703 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1704 echo "configure:1705: checking for working alloca.h" >&5
1705 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1713 void *p = alloca(2 * sizeof(int));
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1718 ac_cv_header_alloca_h=yes
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1723 ac_cv_header_alloca_h=no
1728 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1729 if test $ac_cv_header_alloca_h = yes; then
1730 cat >> confdefs.h <<\EOF
1731 #define HAVE_ALLOCA_H 1
1736 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1737 echo "configure:1738: checking for alloca" >&5
1738 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1746 # define alloca __builtin_alloca
1749 # include <malloc.h>
1750 # define alloca _alloca
1753 # include <alloca.h>
1758 # ifndef alloca /* predefined by HP cc +Olibcalls */
1767 char *p = (char *) alloca(1);
1770 if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1772 ac_cv_func_alloca_works=yes
1774 echo "configure: failed program was:" >&5
1775 cat conftest.$ac_ext >&5
1777 ac_cv_func_alloca_works=no
1782 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1783 if test $ac_cv_func_alloca_works = yes; then
1784 cat >> confdefs.h <<\EOF
1785 #define HAVE_ALLOCA 1
1790 if test $ac_cv_func_alloca_works = no; then
1791 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1792 # that cause trouble. Some versions do not even contain alloca or
1793 # contain a buggy version. If you still want to use their alloca,
1794 # use ar to extract alloca.o from them instead of compiling alloca.c.
1795 ALLOCA=alloca.${ac_objext}
1796 cat >> confdefs.h <<\EOF
1801 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1802 echo "configure:1803: checking whether alloca needs Cray hooks" >&5
1803 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 #if defined(CRAY) && ! defined(CRAY2)
1816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1817 egrep "webecray" >/dev/null 2>&1; then
1828 echo "$ac_t""$ac_cv_os_cray" 1>&6
1829 if test $ac_cv_os_cray = yes; then
1830 for ac_func in _getb67 GETB67 getb67; do
1831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1832 echo "configure:1833: checking for $ac_func" >&5
1833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1839 /* System header to define __stub macros and hopefully few prototypes,
1840 which can conflict with char $ac_func(); below. */
1842 /* Override any gcc2 internal prototype to avoid an error. */
1843 /* We use char because int might match the return type of a gcc2
1844 builtin and then its argument prototype would still apply. */
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1860 if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1862 eval "ac_cv_func_$ac_func=yes"
1864 echo "configure: failed program was:" >&5
1865 cat conftest.$ac_ext >&5
1867 eval "ac_cv_func_$ac_func=no"
1872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1873 echo "$ac_t""yes" 1>&6
1874 cat >> confdefs.h <<EOF
1875 #define CRAY_STACKSEG_END $ac_func
1880 echo "$ac_t""no" 1>&6
1886 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1887 echo "configure:1888: checking stack direction for C alloca" >&5
1888 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 if test "$cross_compiling" = yes; then
1892 ac_cv_c_stack_direction=0
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 find_stack_direction ()
1899 static char *addr = 0;
1904 return find_stack_direction ();
1907 return (&dummy > addr) ? 1 : -1;
1911 exit (find_stack_direction() < 0);
1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1916 ac_cv_c_stack_direction=1
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1921 ac_cv_c_stack_direction=-1
1928 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1929 cat >> confdefs.h <<EOF
1930 #define STACK_DIRECTION $ac_cv_c_stack_direction
1935 for ac_hdr in unistd.h
1937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_hdr" >&5
1940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1949 { (eval echo configure:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1951 if test -z "$ac_err"; then
1953 eval "ac_cv_header_$ac_safe=yes"
1956 echo "configure: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1959 eval "ac_cv_header_$ac_safe=no"
1963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1964 echo "$ac_t""yes" 1>&6
1965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1966 cat >> confdefs.h <<EOF
1967 #define $ac_tr_hdr 1
1971 echo "$ac_t""no" 1>&6
1975 for ac_func in getpagesize
1977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1978 echo "configure:1979: checking for $ac_func" >&5
1979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1982 cat > conftest.$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1985 /* System header to define __stub macros and hopefully few prototypes,
1986 which can conflict with char $ac_func(); below. */
1988 /* Override any gcc2 internal prototype to avoid an error. */
1989 /* We use char because int might match the return type of a gcc2
1990 builtin and then its argument prototype would still apply. */
1995 /* The GNU C library defines this for functions which it implements
1996 to always fail with ENOSYS. Some functions are actually named
1997 something starting with __ and the normal name is an alias. */
1998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2008 eval "ac_cv_func_$ac_func=yes"
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2013 eval "ac_cv_func_$ac_func=no"
2018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2021 cat >> confdefs.h <<EOF
2022 #define $ac_tr_func 1
2026 echo "$ac_t""no" 1>&6
2030 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2031 echo "configure:2032: checking for working mmap" >&5
2032 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 if test "$cross_compiling" = yes; then
2036 ac_cv_func_mmap_fixed_mapped=no
2038 cat > conftest.$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2042 /* Thanks to Mike Haertel and Jim Avera for this test.
2043 Here is a matrix of mmap possibilities:
2044 mmap private not fixed
2045 mmap private fixed at somewhere currently unmapped
2046 mmap private fixed at somewhere already mapped
2047 mmap shared not fixed
2048 mmap shared fixed at somewhere currently unmapped
2049 mmap shared fixed at somewhere already mapped
2050 For private mappings, we should verify that changes cannot be read()
2051 back from the file, nor mmap's back from the file at a different
2052 address. (There have been systems where private was not correctly
2053 implemented like the infamous i386 svr4.0, and systems where the
2054 VM page cache was not coherent with the filesystem buffer cache
2055 like early versions of FreeBSD and possibly contemporary NetBSD.)
2056 For shared mappings, we should conversely verify that changes get
2057 propogated back to all the places they're supposed to be.
2059 Grep wants private fixed already mapped.
2060 The main things grep needs to know about mmap are:
2061 * does it exist and is it safe to write into the mmap'd area
2062 * how to use it (BSD variants) */
2063 #include <sys/types.h>
2065 #include <sys/mman.h>
2067 #include <sys/stat.h>
2069 #ifdef HAVE_UNISTD_H
2070 # include <unistd.h>
2073 /* This mess was copied from the GNU getpagesize.h. */
2074 #ifndef HAVE_GETPAGESIZE
2076 /* Assume that all systems that can run configure have sys/param.h. */
2077 # ifndef HAVE_SYS_PARAM_H
2078 # define HAVE_SYS_PARAM_H 1
2081 # ifdef _SC_PAGESIZE
2082 # define getpagesize() sysconf(_SC_PAGESIZE)
2083 # else /* no _SC_PAGESIZE */
2084 # ifdef HAVE_SYS_PARAM_H
2085 # include <sys/param.h>
2086 # ifdef EXEC_PAGESIZE
2087 # define getpagesize() EXEC_PAGESIZE
2088 # else /* no EXEC_PAGESIZE */
2090 # define getpagesize() NBPG * CLSIZE
2093 # endif /* no CLSIZE */
2094 # else /* no NBPG */
2096 # define getpagesize() NBPC
2097 # else /* no NBPC */
2099 # define getpagesize() PAGESIZE
2100 # endif /* PAGESIZE */
2101 # endif /* no NBPC */
2102 # endif /* no NBPG */
2103 # endif /* no EXEC_PAGESIZE */
2104 # else /* no HAVE_SYS_PARAM_H */
2105 # define getpagesize() 8192 /* punt totally */
2106 # endif /* no HAVE_SYS_PARAM_H */
2107 # endif /* no _SC_PAGESIZE */
2109 #endif /* no HAVE_GETPAGESIZE */
2112 extern "C" { void *malloc(unsigned); }
2120 char *data, *data2, *data3;
2124 pagesize = getpagesize();
2127 * First, make a file with some known garbage in it.
2129 data = (char*)malloc(pagesize);
2132 for (i = 0; i < pagesize; ++i)
2133 *(data + i) = rand();
2135 fd = creat("conftestmmap", 0600);
2138 if (write(fd, data, pagesize) != pagesize)
2143 * Next, try to mmap the file at a fixed address which
2144 * already has something else allocated at it. If we can,
2145 * also make sure that we see the same garbage.
2147 fd = open("conftestmmap", O_RDWR);
2150 data2 = (char*)malloc(2 * pagesize);
2153 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2154 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2155 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2157 for (i = 0; i < pagesize; ++i)
2158 if (*(data + i) != *(data2 + i))
2162 * Finally, make sure that changes to the mapped area
2163 * do not percolate back to the file as seen by read().
2164 * (This is a bug on some variants of i386 svr4.0.)
2166 for (i = 0; i < pagesize; ++i)
2167 *(data2 + i) = *(data2 + i) + 1;
2168 data3 = (char*)malloc(pagesize);
2171 if (read(fd, data3, pagesize) != pagesize)
2173 for (i = 0; i < pagesize; ++i)
2174 if (*(data + i) != *(data3 + i))
2177 unlink("conftestmmap");
2182 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2184 ac_cv_func_mmap_fixed_mapped=yes
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2189 ac_cv_func_mmap_fixed_mapped=no
2196 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2197 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2198 cat >> confdefs.h <<\EOF
2205 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2206 echo "configure:2207: checking whether we are using the GNU C Library 2.1 or newer" >&5
2207 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2214 #include <features.h>
2215 #ifdef __GNU_LIBRARY__
2216 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2223 egrep "Lucky GNU user" >/dev/null 2>&1; then
2225 ac_cv_gnu_library_2_1=yes
2228 ac_cv_gnu_library_2_1=no
2236 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2238 GLIBC21="$ac_cv_gnu_library_2_1"
2242 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2243 stdlib.h string.h unistd.h sys/param.h
2245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2247 echo "configure:2248: checking for $ac_hdr" >&5
2248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2257 { (eval echo configure:2258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2259 if test -z "$ac_err"; then
2261 eval "ac_cv_header_$ac_safe=yes"
2264 echo "configure: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2267 eval "ac_cv_header_$ac_safe=no"
2271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2272 echo "$ac_t""yes" 1>&6
2273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2274 cat >> confdefs.h <<EOF
2275 #define $ac_tr_hdr 1
2279 echo "$ac_t""no" 1>&6
2283 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2284 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2285 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2288 echo "configure:2289: checking for $ac_func" >&5
2289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 cat > conftest.$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2295 /* System header to define __stub macros and hopefully few prototypes,
2296 which can conflict with char $ac_func(); below. */
2298 /* Override any gcc2 internal prototype to avoid an error. */
2299 /* We use char because int might match the return type of a gcc2
2300 builtin and then its argument prototype would still apply. */
2305 /* The GNU C library defines this for functions which it implements
2306 to always fail with ENOSYS. Some functions are actually named
2307 something starting with __ and the normal name is an alias. */
2308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2316 if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2318 eval "ac_cv_func_$ac_func=yes"
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2323 eval "ac_cv_func_$ac_func=no"
2328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2331 cat >> confdefs.h <<EOF
2332 #define $ac_tr_func 1
2336 echo "$ac_t""no" 1>&6
2343 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2344 if test "${with_libiconv_prefix+set}" = set; then
2345 withval="$with_libiconv_prefix"
2347 for dir in `echo "$withval" | tr : ' '`; do
2348 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2349 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2355 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2356 echo "configure:2357: checking for iconv" >&5
2357 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2361 am_cv_func_iconv="no, consider installing GNU libiconv"
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2369 iconv_t cd = iconv_open("","");
2370 iconv(cd,NULL,NULL,NULL,NULL);
2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2376 am_cv_func_iconv=yes
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2382 if test "$am_cv_func_iconv" != yes; then
2383 am_save_LIBS="$LIBS"
2384 LIBS="$LIBS -liconv"
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2391 iconv_t cd = iconv_open("","");
2392 iconv(cd,NULL,NULL,NULL,NULL);
2396 if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2399 am_cv_func_iconv=yes
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2405 LIBS="$am_save_LIBS"
2410 echo "$ac_t""$am_cv_func_iconv" 1>&6
2411 if test "$am_cv_func_iconv" = yes; then
2412 cat >> confdefs.h <<\EOF
2413 #define HAVE_ICONV 1
2416 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2417 echo "configure:2418: checking for iconv declaration" >&5
2418 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2432 #if defined(__STDC__) || defined(__cplusplus)
2433 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2442 if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2444 am_cv_proto_iconv_arg1=""
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2449 am_cv_proto_iconv_arg1="const"
2452 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);"
2455 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2456 echo "$ac_t""${ac_t:-
2457 }$am_cv_proto_iconv" 1>&6
2458 cat >> confdefs.h <<EOF
2459 #define ICONV_CONST $am_cv_proto_iconv_arg1
2464 if test "$am_cv_lib_iconv" = yes; then
2470 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2471 echo "configure:2472: checking for nl_langinfo and CODESET" >&5
2472 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 #include <langinfo.h>
2480 char* cs = nl_langinfo(CODESET);
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2485 am_cv_langinfo_codeset=yes
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 am_cv_langinfo_codeset=no
2496 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2497 if test $am_cv_langinfo_codeset = yes; then
2498 cat >> confdefs.h <<\EOF
2499 #define HAVE_LANGINFO_CODESET 1
2504 if test $ac_cv_header_locale_h = yes; then
2505 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2506 echo "configure:2507: checking for LC_MESSAGES" >&5
2507 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2520 am_cv_val_LC_MESSAGES=yes
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2525 am_cv_val_LC_MESSAGES=no
2530 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2531 if test $am_cv_val_LC_MESSAGES = yes; then
2532 cat >> confdefs.h <<\EOF
2533 #define HAVE_LC_MESSAGES 1
2538 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2539 echo "configure:2540: checking whether NLS is requested" >&5
2540 # Check whether --enable-nls or --disable-nls was given.
2541 if test "${enable_nls+set}" = set; then
2542 enableval="$enable_nls"
2548 echo "$ac_t""$USE_NLS" 1>&6
2551 BUILD_INCLUDED_LIBINTL=no
2552 USE_INCLUDED_LIBINTL=no
2555 if test "$USE_NLS" = "yes"; then
2556 cat >> confdefs.h <<\EOF
2557 #define ENABLE_NLS 1
2560 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2561 echo "configure:2562: checking whether included gettext is requested" >&5
2562 # Check whether --with-included-gettext or --without-included-gettext was given.
2563 if test "${with_included_gettext+set}" = set; then
2564 withval="$with_included_gettext"
2565 nls_cv_force_use_gnu_gettext=$withval
2567 nls_cv_force_use_gnu_gettext=no
2570 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2572 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2573 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2579 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2581 echo "configure:2582: checking for libintl.h" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #include <libintl.h>
2590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2595 eval "ac_cv_header_$ac_safe=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2601 eval "ac_cv_header_$ac_safe=no"
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2608 echo "configure:2609: checking for GNU gettext in libc" >&5
2609 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2612 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 #include <libintl.h>
2616 extern int _nl_msg_cat_cntr;
2618 bindtextdomain ("", "");
2619 return (int) gettext ("") + _nl_msg_cat_cntr
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2624 gt_cv_func_gnugettext1_libc=yes
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2629 gt_cv_func_gnugettext1_libc=no
2634 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2636 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2637 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2638 echo "configure:2639: checking for GNU gettext in libintl" >&5
2639 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 gt_save_LIBS="$LIBS"
2643 LIBS="$LIBS -lintl $LIBICONV"
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2647 #include <libintl.h>
2648 extern int _nl_msg_cat_cntr;
2650 bindtextdomain ("", "");
2651 return (int) gettext ("") + _nl_msg_cat_cntr
2654 if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2656 gt_cv_func_gnugettext1_libintl=yes
2658 echo "configure: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2661 gt_cv_func_gnugettext1_libintl=no
2664 LIBS="$gt_save_LIBS"
2667 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2670 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2671 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2672 && test "$PACKAGE" != gettext; }; then
2673 cat >> confdefs.h <<\EOF
2674 #define HAVE_GETTEXT 1
2678 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2679 INTLLIBS="-lintl $LIBICONV"
2682 gt_save_LIBS="$LIBS"
2683 LIBS="$LIBS $INTLLIBS"
2684 for ac_func in dcgettext
2686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2687 echo "configure:2688: checking for $ac_func" >&5
2688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 /* System header to define __stub macros and hopefully few prototypes,
2695 which can conflict with char $ac_func(); below. */
2697 /* Override any gcc2 internal prototype to avoid an error. */
2698 /* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2704 /* The GNU C library defines this for functions which it implements
2705 to always fail with ENOSYS. Some functions are actually named
2706 something starting with __ and the normal name is an alias. */
2707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2717 eval "ac_cv_func_$ac_func=yes"
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2722 eval "ac_cv_func_$ac_func=no"
2727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2730 cat >> confdefs.h <<EOF
2731 #define $ac_tr_func 1
2735 echo "$ac_t""no" 1>&6
2739 LIBS="$gt_save_LIBS"
2741 # Extract the first word of "msgfmt", so it can be a program name with args.
2742 set dummy msgfmt; ac_word=$2
2743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2744 echo "configure:2745: checking for $ac_word" >&5
2745 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2750 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2754 for ac_dir in $PATH; do
2755 test -z "$ac_dir" && ac_dir=.
2756 if test -f $ac_dir/$ac_word; then
2757 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2758 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2764 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2768 MSGFMT="$ac_cv_path_MSGFMT"
2769 if test "$MSGFMT" != ":"; then
2770 echo "$ac_t""$MSGFMT" 1>&6
2772 echo "$ac_t""no" 1>&6
2775 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2776 set dummy gmsgfmt; ac_word=$2
2777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2778 echo "configure:2779: checking for $ac_word" >&5
2779 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2784 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2787 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2792 for ac_dir in $ac_dummy; do
2793 test -z "$ac_dir" && ac_dir=.
2794 if test -f $ac_dir/$ac_word; then
2795 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2800 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2804 GMSGFMT="$ac_cv_path_GMSGFMT"
2805 if test -n "$GMSGFMT"; then
2806 echo "$ac_t""$GMSGFMT" 1>&6
2808 echo "$ac_t""no" 1>&6
2812 # Extract the first word of "xgettext", so it can be a program name with args.
2813 set dummy xgettext; ac_word=$2
2814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_word" >&5
2816 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2821 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2825 for ac_dir in $PATH; do
2826 test -z "$ac_dir" && ac_dir=.
2827 if test -f $ac_dir/$ac_word; then
2828 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2829 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2835 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2839 XGETTEXT="$ac_cv_path_XGETTEXT"
2840 if test "$XGETTEXT" != ":"; then
2841 echo "$ac_t""$XGETTEXT" 1>&6
2843 echo "$ac_t""no" 1>&6
2851 echo "$ac_t""no" 1>&6
2855 if test "$CATOBJEXT" = "NONE"; then
2856 nls_cv_use_gnu_gettext=yes
2860 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2861 INTLOBJS="\$(GETTOBJS)"
2862 # Extract the first word of "msgfmt", so it can be a program name with args.
2863 set dummy msgfmt; ac_word=$2
2864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_word" >&5
2866 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2871 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2875 for ac_dir in $PATH; do
2876 test -z "$ac_dir" && ac_dir=.
2877 if test -f $ac_dir/$ac_word; then
2878 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2879 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2885 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2889 MSGFMT="$ac_cv_path_MSGFMT"
2890 if test "$MSGFMT" != ":"; then
2891 echo "$ac_t""$MSGFMT" 1>&6
2893 echo "$ac_t""no" 1>&6
2896 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2897 set dummy gmsgfmt; ac_word=$2
2898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_word" >&5
2900 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2905 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2908 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2913 for ac_dir in $ac_dummy; do
2914 test -z "$ac_dir" && ac_dir=.
2915 if test -f $ac_dir/$ac_word; then
2916 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2921 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2925 GMSGFMT="$ac_cv_path_GMSGFMT"
2926 if test -n "$GMSGFMT"; then
2927 echo "$ac_t""$GMSGFMT" 1>&6
2929 echo "$ac_t""no" 1>&6
2932 # Extract the first word of "xgettext", so it can be a program name with args.
2933 set dummy xgettext; ac_word=$2
2934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2935 echo "configure:2936: checking for $ac_word" >&5
2936 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2941 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2945 for ac_dir in $PATH; do
2946 test -z "$ac_dir" && ac_dir=.
2947 if test -f $ac_dir/$ac_word; then
2948 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2949 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2955 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2959 XGETTEXT="$ac_cv_path_XGETTEXT"
2960 if test "$XGETTEXT" != ":"; then
2961 echo "$ac_t""$XGETTEXT" 1>&6
2963 echo "$ac_t""no" 1>&6
2967 BUILD_INCLUDED_LIBINTL=yes
2968 USE_INCLUDED_LIBINTL=yes
2970 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2971 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2974 if test "$GMSGFMT" != ":"; then
2975 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2978 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2983 if test "$XGETTEXT" != ":"; then
2984 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2987 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2997 if test "$PACKAGE" = gettext; then
2998 BUILD_INCLUDED_LIBINTL=yes
3001 for ac_prog in bison
3003 # Extract the first word of "$ac_prog", so it can be a program name with args.
3004 set dummy $ac_prog; ac_word=$2
3005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3006 echo "configure:3007: checking for $ac_word" >&5
3007 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 if test -n "$INTLBISON"; then
3011 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3015 for ac_dir in $ac_dummy; do
3016 test -z "$ac_dir" && ac_dir=.
3017 if test -f $ac_dir/$ac_word; then
3018 ac_cv_prog_INTLBISON="$ac_prog"
3025 INTLBISON="$ac_cv_prog_INTLBISON"
3026 if test -n "$INTLBISON"; then
3027 echo "$ac_t""$INTLBISON" 1>&6
3029 echo "$ac_t""no" 1>&6
3032 test -n "$INTLBISON" && break
3035 if test -z "$INTLBISON"; then
3038 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3039 echo "configure:3040: checking version of bison" >&5
3040 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3041 case $ac_prog_version in
3042 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3043 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3044 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3045 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3047 echo "$ac_t""$ac_prog_version" 1>&6
3049 if test $ac_verc_fail = yes; then
3053 for lang in $ALL_LINGUAS; do
3054 GMOFILES="$GMOFILES $lang.gmo"
3055 POFILES="$POFILES $lang.po"
3069 nls_cv_header_libgt=
3081 if test "x$CATOBJEXT" != "x"; then
3082 if test "x$ALL_LINGUAS" = "x"; then
3085 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3086 echo "configure:3087: checking for catalogs to be installed" >&5
3088 for presentlang in $ALL_LINGUAS; do
3090 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3091 # Use the presentlang catalog if desiredlang is
3092 # a. equal to presentlang, or
3093 # b. a variant of presentlang (because in this case,
3094 # presentlang can be used as a fallback for messages
3095 # which are not translated in the desiredlang catalog).
3096 case "$desiredlang" in
3097 "$presentlang"*) useit=yes;;
3100 if test $useit = yes; then
3101 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3104 LINGUAS=$NEW_LINGUAS
3105 echo "$ac_t""$LINGUAS" 1>&6
3108 if test -n "$LINGUAS"; then
3109 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3114 if test -n "$ac_aux_dir"; then
3115 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3117 if test -z "$MKINSTALLDIRS"; then
3118 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3122 INTL_LIBTOOL_SUFFIX_PREFIX=
3126 # Find a good install program. We prefer a C program (faster),
3127 # so one script is as good as another. But avoid the broken or
3128 # incompatible versions:
3129 # SysV /etc/install, /usr/sbin/install
3130 # SunOS /usr/etc/install
3131 # IRIX /sbin/install
3133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3136 # ./install, which can be erroneously created by make from ./install.sh.
3137 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3138 echo "configure:3139: checking for a BSD compatible install" >&5
3139 if test -z "$INSTALL"; then
3140 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3144 for ac_dir in $PATH; do
3145 # Account for people who put trailing slashes in PATH elements.
3147 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3149 # OSF1 and SCO ODT 3.0 have their own names for install.
3150 # Don't use installbsd from OSF since it installs stuff as root
3152 for ac_prog in ginstall scoinst install; do
3153 if test -f $ac_dir/$ac_prog; then
3154 if test $ac_prog = install &&
3155 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3156 # AIX install. It has an incompatible calling convention.
3159 ac_cv_path_install="$ac_dir/$ac_prog -c"
3170 if test "${ac_cv_path_install+set}" = set; then
3171 INSTALL="$ac_cv_path_install"
3173 # As a last resort, use the slow shell script. We don't cache a
3174 # path for INSTALL within a source directory, because that will
3175 # break other packages using the cache if that directory is
3176 # removed, or if the path is relative.
3177 INSTALL="$ac_install_sh"
3180 echo "$ac_t""$INSTALL" 1>&6
3182 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3183 # It thinks the first close brace ends the variable substitution.
3184 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3186 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3191 vlc_LDFLAGS="${LDFLAGS}"
3193 case "x${target_os}" in
3202 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3203 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3204 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3208 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3212 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3213 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3217 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}windres; ac_word=$2
3219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_word" >&5
3221 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 if test -n "$WINDRES"; then
3225 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3229 for ac_dir in $ac_dummy; do
3230 test -z "$ac_dir" && ac_dir=.
3231 if test -f $ac_dir/$ac_word; then
3232 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3239 WINDRES="$ac_cv_prog_WINDRES"
3240 if test -n "$WINDRES"; then
3241 echo "$ac_t""$WINDRES" 1>&6
3243 echo "$ac_t""no" 1>&6
3247 if test -z "$ac_cv_prog_WINDRES"; then
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "windres", so it can be a program name with args.
3250 set dummy windres; ac_word=$2
3251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_word" >&5
3253 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 if test -n "$WINDRES"; then
3257 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3261 for ac_dir in $ac_dummy; do
3262 test -z "$ac_dir" && ac_dir=.
3263 if test -f $ac_dir/$ac_word; then
3264 ac_cv_prog_WINDRES="windres"
3269 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3272 WINDRES="$ac_cv_prog_WINDRES"
3273 if test -n "$WINDRES"; then
3274 echo "$ac_t""$WINDRES" 1>&6
3276 echo "$ac_t""no" 1>&6
3284 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3285 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3286 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3287 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3288 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3289 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3290 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3294 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3295 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3302 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3303 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3304 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3305 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3306 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3313 if test "x${SYS}" = "xmingw32"
3315 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3317 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3318 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3321 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3323 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3326 echo "configure:3327: checking for $ac_func" >&5
3327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3330 cat > conftest.$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3333 /* System header to define __stub macros and hopefully few prototypes,
3334 which can conflict with char $ac_func(); below. */
3336 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3343 /* The GNU C library defines this for functions which it implements
3344 to always fail with ENOSYS. Some functions are actually named
3345 something starting with __ and the normal name is an alias. */
3346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3356 eval "ac_cv_func_$ac_func=yes"
3358 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3361 eval "ac_cv_func_$ac_func=no"
3366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3367 echo "$ac_t""yes" 1>&6
3368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3369 cat >> confdefs.h <<EOF
3370 #define $ac_tr_func 1
3374 echo "$ac_t""no" 1>&6
3379 echo $ac_n "checking for connect""... $ac_c" 1>&6
3380 echo "configure:3381: checking for connect" >&5
3381 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 /* System header to define __stub macros and hopefully few prototypes,
3388 which can conflict with char connect(); below. */
3390 /* Override any gcc2 internal prototype to avoid an error. */
3391 /* We use char because int might match the return type of a gcc2
3392 builtin and then its argument prototype would still apply. */
3397 /* The GNU C library defines this for functions which it implements
3398 to always fail with ENOSYS. Some functions are actually named
3399 something starting with __ and the normal name is an alias. */
3400 #if defined (__stub_connect) || defined (__stub___connect)
3408 if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3410 eval "ac_cv_func_connect=yes"
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3415 eval "ac_cv_func_connect=no"
3420 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3421 echo "$ac_t""yes" 1>&6
3424 echo "$ac_t""no" 1>&6
3426 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3427 echo "configure:3428: checking for connect in -lsocket" >&5
3428 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3432 ac_save_LIBS="$LIBS"
3433 LIBS="-lsocket $LIBS"
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3448 eval "ac_cv_lib_$ac_lib_var=yes"
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3453 eval "ac_cv_lib_$ac_lib_var=no"
3456 LIBS="$ac_save_LIBS"
3459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3462 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3465 echo "$ac_t""no" 1>&6
3470 echo $ac_n "checking for send""... $ac_c" 1>&6
3471 echo "configure:3472: checking for send" >&5
3472 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* System header to define __stub macros and hopefully few prototypes,
3479 which can conflict with char send(); below. */
3481 /* Override any gcc2 internal prototype to avoid an error. */
3482 /* We use char because int might match the return type of a gcc2
3483 builtin and then its argument prototype would still apply. */
3488 /* The GNU C library defines this for functions which it implements
3489 to always fail with ENOSYS. Some functions are actually named
3490 something starting with __ and the normal name is an alias. */
3491 #if defined (__stub_send) || defined (__stub___send)
3499 if { (eval echo configure:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3501 eval "ac_cv_func_send=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3506 eval "ac_cv_func_send=no"
3511 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3512 echo "$ac_t""yes" 1>&6
3515 echo "$ac_t""no" 1>&6
3517 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3518 echo "configure:3519: checking for send in -lsocket" >&5
3519 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 ac_save_LIBS="$LIBS"
3524 LIBS="-lsocket $LIBS"
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 /* Override any gcc2 internal prototype to avoid an error. */
3529 /* We use char because int might match the return type of a gcc2
3530 builtin and then its argument prototype would still apply. */
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3539 eval "ac_cv_lib_$ac_lib_var=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 eval "ac_cv_lib_$ac_lib_var=no"
3547 LIBS="$ac_save_LIBS"
3550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3552 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3555 echo "$ac_t""no" 1>&6
3560 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3561 echo "configure:3562: checking for gethostbyname" >&5
3562 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* System header to define __stub macros and hopefully few prototypes,
3569 which can conflict with char gethostbyname(); below. */
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3574 char gethostbyname();
3578 /* The GNU C library defines this for functions which it implements
3579 to always fail with ENOSYS. Some functions are actually named
3580 something starting with __ and the normal name is an alias. */
3581 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3591 eval "ac_cv_func_gethostbyname=yes"
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 eval "ac_cv_func_gethostbyname=no"
3601 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3605 echo "$ac_t""no" 1>&6
3607 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3608 echo "configure:3609: checking for gethostbyname in -lnsl" >&5
3609 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 ac_save_LIBS="$LIBS"
3615 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 /* Override any gcc2 internal prototype to avoid an error. */
3619 /* We use char because int might match the return type of a gcc2
3620 builtin and then its argument prototype would still apply. */
3621 char gethostbyname();
3627 if { (eval echo configure:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3629 eval "ac_cv_lib_$ac_lib_var=yes"
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3634 eval "ac_cv_lib_$ac_lib_var=no"
3637 LIBS="$ac_save_LIBS"
3640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3641 echo "$ac_t""yes" 1>&6
3642 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3644 echo "$ac_t""no" 1>&6
3650 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3651 echo "configure:3652: checking for gethostbyname" >&5
3652 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* System header to define __stub macros and hopefully few prototypes,
3659 which can conflict with char gethostbyname(); below. */
3661 /* Override any gcc2 internal prototype to avoid an error. */
3662 /* We use char because int might match the return type of a gcc2
3663 builtin and then its argument prototype would still apply. */
3664 char gethostbyname();
3668 /* The GNU C library defines this for functions which it implements
3669 to always fail with ENOSYS. Some functions are actually named
3670 something starting with __ and the normal name is an alias. */
3671 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3681 eval "ac_cv_func_gethostbyname=yes"
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 eval "ac_cv_func_gethostbyname=no"
3691 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3692 echo "$ac_t""yes" 1>&6
3695 echo "$ac_t""no" 1>&6
3697 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3698 echo "configure:3699: checking for gethostbyname in -lbind" >&5
3699 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 ac_save_LIBS="$LIBS"
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3711 char gethostbyname();
3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3719 eval "ac_cv_lib_$ac_lib_var=yes"
3721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3724 eval "ac_cv_lib_$ac_lib_var=no"
3727 LIBS="$ac_save_LIBS"
3730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3732 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3734 echo "$ac_t""no" 1>&6
3741 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3742 echo "configure:3743: checking for nanosleep" >&5
3743 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3746 cat > conftest.$ac_ext <<EOF
3747 #line 3748 "configure"
3748 #include "confdefs.h"
3749 /* System header to define __stub macros and hopefully few prototypes,
3750 which can conflict with char nanosleep(); below. */
3752 /* Override any gcc2 internal prototype to avoid an error. */
3753 /* We use char because int might match the return type of a gcc2
3754 builtin and then its argument prototype would still apply. */
3759 /* The GNU C library defines this for functions which it implements
3760 to always fail with ENOSYS. Some functions are actually named
3761 something starting with __ and the normal name is an alias. */
3762 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3770 if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3772 eval "ac_cv_func_nanosleep=yes"
3774 echo "configure: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3777 eval "ac_cv_func_nanosleep=no"
3782 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3783 echo "$ac_t""yes" 1>&6
3786 echo "$ac_t""no" 1>&6
3788 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3789 echo "configure:3790: checking for nanosleep in -lrt" >&5
3790 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 ac_save_LIBS="$LIBS"
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3810 eval "ac_cv_lib_$ac_lib_var=yes"
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3815 eval "ac_cv_lib_$ac_lib_var=no"
3818 LIBS="$ac_save_LIBS"
3821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3825 echo "$ac_t""no" 1>&6
3826 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3827 echo "configure:3828: checking for nanosleep in -lposix4" >&5
3828 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3832 ac_save_LIBS="$LIBS"
3833 LIBS="-lposix4 $LIBS"
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3837 /* Override any gcc2 internal prototype to avoid an error. */
3838 /* We use char because int might match the return type of a gcc2
3839 builtin and then its argument prototype would still apply. */
3846 if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3848 eval "ac_cv_lib_$ac_lib_var=yes"
3850 echo "configure: failed program was:" >&5
3851 cat conftest.$ac_ext >&5
3853 eval "ac_cv_lib_$ac_lib_var=no"
3856 LIBS="$ac_save_LIBS"
3859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3860 echo "$ac_t""yes" 1>&6
3861 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3863 echo "$ac_t""no" 1>&6
3872 if test x$have_nanosleep = x1; then
3873 cat >> confdefs.h <<\EOF
3874 #define HAVE_NANOSLEEP 1
3879 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
3880 echo "configure:3881: checking for sem_init in -lrt" >&5
3881 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
3882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3885 ac_save_LIBS="$LIBS"
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3890 /* Override any gcc2 internal prototype to avoid an error. */
3891 /* We use char because int might match the return type of a gcc2
3892 builtin and then its argument prototype would still apply. */
3899 if { (eval echo configure:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3901 eval "ac_cv_lib_$ac_lib_var=yes"
3903 echo "configure: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3906 eval "ac_cv_lib_$ac_lib_var=no"
3909 LIBS="$ac_save_LIBS"
3912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3913 echo "$ac_t""yes" 1>&6
3914 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3916 echo "$ac_t""no" 1>&6
3920 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3921 echo "configure:3922: checking for inet_aton" >&5
3922 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 /* System header to define __stub macros and hopefully few prototypes,
3929 which can conflict with char inet_aton(); below. */
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 /* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
3938 /* The GNU C library defines this for functions which it implements
3939 to always fail with ENOSYS. Some functions are actually named
3940 something starting with __ and the normal name is an alias. */
3941 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 eval "ac_cv_func_inet_aton=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3956 eval "ac_cv_func_inet_aton=no"
3961 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3965 echo "$ac_t""no" 1>&6
3967 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3968 echo "configure:3969: checking for inet_aton in -lresolv" >&5
3969 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 ac_save_LIBS="$LIBS"
3974 LIBS="-lresolv $LIBS"
3975 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3978 /* Override any gcc2 internal prototype to avoid an error. */
3979 /* We use char because int might match the return type of a gcc2
3980 builtin and then its argument prototype would still apply. */
3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3989 eval "ac_cv_lib_$ac_lib_var=yes"
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 eval "ac_cv_lib_$ac_lib_var=no"
3997 LIBS="$ac_save_LIBS"
4000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4002 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4004 echo "$ac_t""no" 1>&6
4010 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4011 echo "configure:4012: checking for textdomain" >&5
4012 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4015 cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 /* System header to define __stub macros and hopefully few prototypes,
4019 which can conflict with char textdomain(); below. */
4021 /* Override any gcc2 internal prototype to avoid an error. */
4022 /* We use char because int might match the return type of a gcc2
4023 builtin and then its argument prototype would still apply. */
4028 /* The GNU C library defines this for functions which it implements
4029 to always fail with ENOSYS. Some functions are actually named
4030 something starting with __ and the normal name is an alias. */
4031 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4039 if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4041 eval "ac_cv_func_textdomain=yes"
4043 echo "configure: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4046 eval "ac_cv_func_textdomain=no"
4051 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4052 echo "$ac_t""yes" 1>&6
4055 echo "$ac_t""no" 1>&6
4057 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4058 echo "configure:4059: checking for textdomain in -lintl" >&5
4059 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4063 ac_save_LIBS="$LIBS"
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 /* Override any gcc2 internal prototype to avoid an error. */
4069 /* We use char because int might match the return type of a gcc2
4070 builtin and then its argument prototype would still apply. */
4077 if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4079 eval "ac_cv_lib_$ac_lib_var=yes"
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 eval "ac_cv_lib_$ac_lib_var=no"
4087 LIBS="$ac_save_LIBS"
4090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4091 echo "$ac_t""yes" 1>&6
4092 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4093 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4096 echo "$ac_t""no" 1>&6
4104 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4105 echo "configure:4106: checking for getopt_long" >&5
4106 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4109 cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4112 /* System header to define __stub macros and hopefully few prototypes,
4113 which can conflict with char getopt_long(); below. */
4115 /* Override any gcc2 internal prototype to avoid an error. */
4116 /* We use char because int might match the return type of a gcc2
4117 builtin and then its argument prototype would still apply. */
4122 /* The GNU C library defines this for functions which it implements
4123 to always fail with ENOSYS. Some functions are actually named
4124 something starting with __ and the normal name is an alias. */
4125 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4133 if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4135 eval "ac_cv_func_getopt_long=yes"
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4140 eval "ac_cv_func_getopt_long=no"
4145 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4146 echo "$ac_t""yes" 1>&6
4147 cat >> confdefs.h <<\EOF
4148 #define HAVE_GETOPT_LONG 1
4152 echo "$ac_t""no" 1>&6
4153 # FreeBSD has a gnugetopt library for this:
4154 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4155 echo "configure:4156: checking for getopt_long in -lgnugetopt" >&5
4156 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 ac_save_LIBS="$LIBS"
4161 LIBS="-lgnugetopt $LIBS"
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* Override any gcc2 internal prototype to avoid an error. */
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 eval "ac_cv_lib_$ac_lib_var=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4181 eval "ac_cv_lib_$ac_lib_var=no"
4184 LIBS="$ac_save_LIBS"
4187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4188 echo "$ac_t""yes" 1>&6
4189 cat >> confdefs.h <<\EOF
4190 #define HAVE_GETOPT_LONG 1
4192 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4194 echo "$ac_t""no" 1>&6
4201 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4202 echo "configure:4203: checking return type of signal handlers" >&5
4203 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 #include <sys/types.h>
4215 extern "C" void (*signal (int, void (*)(int)))(int);
4217 void (*signal ()) ();
4224 if { (eval echo configure:4225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4226 ac_cv_type_signal=void
4228 echo "configure: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4231 ac_cv_type_signal=int
4236 echo "$ac_t""$ac_cv_type_signal" 1>&6
4237 cat >> confdefs.h <<EOF
4238 #define RETSIGTYPE $ac_cv_type_signal
4242 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4243 echo "configure:4244: checking for dlopen in -ldl" >&5
4244 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 ac_save_LIBS="$LIBS"
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264 eval "ac_cv_lib_$ac_lib_var=yes"
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 eval "ac_cv_lib_$ac_lib_var=no"
4272 LIBS="$ac_save_LIBS"
4275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4277 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4279 echo "$ac_t""no" 1>&6
4282 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4283 echo "configure:4284: checking for cos in -lm" >&5
4284 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4288 ac_save_LIBS="$LIBS"
4290 cat > conftest.$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4293 /* Override any gcc2 internal prototype to avoid an error. */
4294 /* We use char because int might match the return type of a gcc2
4295 builtin and then its argument prototype would still apply. */
4302 if { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4304 eval "ac_cv_lib_$ac_lib_var=yes"
4306 echo "configure: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4309 eval "ac_cv_lib_$ac_lib_var=no"
4312 LIBS="$ac_save_LIBS"
4315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4316 echo "$ac_t""yes" 1>&6
4317 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4318 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4320 echo "$ac_t""no" 1>&6
4323 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4324 echo "configure:4325: checking for pow in -lm" >&5
4325 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4329 ac_save_LIBS="$LIBS"
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 /* Override any gcc2 internal prototype to avoid an error. */
4335 /* We use char because int might match the return type of a gcc2
4336 builtin and then its argument prototype would still apply. */
4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4345 eval "ac_cv_lib_$ac_lib_var=yes"
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4350 eval "ac_cv_lib_$ac_lib_var=no"
4353 LIBS="$ac_save_LIBS"
4356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4359 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4360 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4361 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4362 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4365 echo "$ac_t""no" 1>&6
4370 if test "x${THREAD_LIB}" = "xerror"; then
4371 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4372 echo "configure:4373: checking for main in -lpthread" >&5
4373 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 ac_save_LIBS="$LIBS"
4378 LIBS="-lpthread $LIBS"
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
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 THREAD_LIB="-lpthread"
4404 echo "$ac_t""no" 1>&6
4408 if test "x${THREAD_LIB}" = "xerror"; then
4409 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4410 echo "configure:4411: checking for main in -lpthreads" >&5
4411 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 ac_save_LIBS="$LIBS"
4416 LIBS="-lpthreads $LIBS"
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 eval "ac_cv_lib_$ac_lib_var=yes"
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4432 eval "ac_cv_lib_$ac_lib_var=no"
4435 LIBS="$ac_save_LIBS"
4438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4440 THREAD_LIB="-lpthreads"
4442 echo "$ac_t""no" 1>&6
4446 if test "x${THREAD_LIB}" = "xerror"; then
4447 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4448 echo "configure:4449: checking for main in -lc_r" >&5
4449 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 ac_save_LIBS="$LIBS"
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4463 if { (eval echo configure:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4465 eval "ac_cv_lib_$ac_lib_var=yes"
4467 echo "configure: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4470 eval "ac_cv_lib_$ac_lib_var=no"
4473 LIBS="$ac_save_LIBS"
4476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4477 echo "$ac_t""yes" 1>&6
4480 echo "$ac_t""no" 1>&6
4484 if test "x${THREAD_LIB}" = "xerror"; then
4485 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4486 echo "configure:4487: checking for pthread_mutex_lock" >&5
4487 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 /* System header to define __stub macros and hopefully few prototypes,
4494 which can conflict with char pthread_mutex_lock(); below. */
4496 /* Override any gcc2 internal prototype to avoid an error. */
4497 /* We use char because int might match the return type of a gcc2
4498 builtin and then its argument prototype would still apply. */
4499 char pthread_mutex_lock();
4503 /* The GNU C library defines this for functions which it implements
4504 to always fail with ENOSYS. Some functions are actually named
4505 something starting with __ and the normal name is an alias. */
4506 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4509 pthread_mutex_lock();
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4516 eval "ac_cv_func_pthread_mutex_lock=yes"
4518 echo "configure: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4521 eval "ac_cv_func_pthread_mutex_lock=no"
4526 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4527 echo "$ac_t""yes" 1>&6
4530 echo "$ac_t""no" 1>&6
4536 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4537 echo "configure:4538: checking for cthread_fork in -lthreads" >&5
4538 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 ac_save_LIBS="$LIBS"
4543 LIBS="-lthreads $LIBS"
4544 cat > conftest.$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4547 /* Override any gcc2 internal prototype to avoid an error. */
4548 /* We use char because int might match the return type of a gcc2
4549 builtin and then its argument prototype would still apply. */
4550 char cthread_fork();
4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4558 eval "ac_cv_lib_$ac_lib_var=yes"
4560 echo "configure: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4563 eval "ac_cv_lib_$ac_lib_var=no"
4566 LIBS="$ac_save_LIBS"
4569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4570 echo "$ac_t""yes" 1>&6
4571 THREAD_LIB="-lthreads"
4573 echo "$ac_t""no" 1>&6
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4580 #include <pthread.h>
4582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4583 egrep "pthread_cond_t" >/dev/null 2>&1; then
4586 cat >> confdefs.h <<\EOF
4587 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 #include <pthread.h>
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 egrep "pthread_once" >/dev/null 2>&1; then
4602 cat >> confdefs.h <<\EOF
4603 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <strings.h>
4614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615 egrep "strncasecmp" >/dev/null 2>&1; then
4618 cat >> confdefs.h <<\EOF
4619 #define STRNCASECMP_IN_STRINGS_H 1
4626 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4630 echo "configure:4631: checking for $ac_hdr" >&5
4631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4640 { (eval echo configure:4641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4642 if test -z "$ac_err"; then
4644 eval "ac_cv_header_$ac_safe=yes"
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 eval "ac_cv_header_$ac_safe=no"
4654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4656 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4657 cat >> confdefs.h <<EOF
4658 #define $ac_tr_hdr 1
4662 echo "$ac_t""no" 1>&6
4666 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4670 echo "configure:4671: checking for $ac_hdr" >&5
4671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4680 { (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4682 if test -z "$ac_err"; then
4684 eval "ac_cv_header_$ac_safe=yes"
4687 echo "configure: failed program was:" >&5
4688 cat conftest.$ac_ext >&5
4690 eval "ac_cv_header_$ac_safe=no"
4694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4697 cat >> confdefs.h <<EOF
4698 #define $ac_tr_hdr 1
4702 echo "$ac_t""no" 1>&6
4706 for ac_hdr in dlfcn.h image.h
4708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4710 echo "configure:4711: checking for $ac_hdr" >&5
4711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4714 cat > conftest.$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4720 { (eval echo configure:4721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4722 if test -z "$ac_err"; then
4724 eval "ac_cv_header_$ac_safe=yes"
4727 echo "configure: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4730 eval "ac_cv_header_$ac_safe=no"
4734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4737 cat >> confdefs.h <<EOF
4738 #define $ac_tr_hdr 1
4742 echo "$ac_t""no" 1>&6
4746 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4750 echo "configure:4751: checking for $ac_hdr" >&5
4751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4760 { (eval echo configure:4761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4762 if test -z "$ac_err"; then
4764 eval "ac_cv_header_$ac_safe=yes"
4767 echo "configure: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4770 eval "ac_cv_header_$ac_safe=no"
4774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4775 echo "$ac_t""yes" 1>&6
4776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4777 cat >> confdefs.h <<EOF
4778 #define $ac_tr_hdr 1
4782 echo "$ac_t""no" 1>&6
4786 for ac_hdr in machine/param.h sys/shm.h
4788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4790 echo "configure:4791: checking for $ac_hdr" >&5
4791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4800 { (eval echo configure:4801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4802 if test -z "$ac_err"; then
4804 eval "ac_cv_header_$ac_safe=yes"
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4810 eval "ac_cv_header_$ac_safe=no"
4814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4817 cat >> confdefs.h <<EOF
4818 #define $ac_tr_hdr 1
4822 echo "$ac_t""no" 1>&6
4826 for ac_hdr in linux/version.h
4828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4830 echo "configure:4831: checking for $ac_hdr" >&5
4831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4840 { (eval echo configure:4841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4842 if test -z "$ac_err"; then
4844 eval "ac_cv_header_$ac_safe=yes"
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4850 eval "ac_cv_header_$ac_safe=no"
4854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4855 echo "$ac_t""yes" 1>&6
4856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4857 cat >> confdefs.h <<EOF
4858 #define $ac_tr_hdr 1
4862 echo "$ac_t""no" 1>&6
4867 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4868 echo "configure:4869: checking whether time.h and sys/time.h may both be included" >&5
4869 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4875 #include <sys/types.h>
4876 #include <sys/time.h>
4882 if { (eval echo configure:4883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4884 ac_cv_header_time=yes
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4889 ac_cv_header_time=no
4894 echo "$ac_t""$ac_cv_header_time" 1>&6
4895 if test $ac_cv_header_time = yes; then
4896 cat >> confdefs.h <<\EOF
4897 #define TIME_WITH_SYS_TIME 1
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 egrep "nanosleep" >/dev/null 2>&1; then
4912 cat >> confdefs.h <<\EOF
4913 #define HAVE_DECL_NANOSLEEP 1
4921 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4924 #include <sys/time.h>
4926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927 egrep "timespec" >/dev/null 2>&1; then
4930 cat >> confdefs.h <<\EOF
4931 #define HAVE_STRUCT_TIMESPEC 1
4939 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4943 echo "configure:4944: checking for $ac_hdr" >&5
4944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4953 { (eval echo configure:4954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4955 if test -z "$ac_err"; then
4957 eval "ac_cv_header_$ac_safe=yes"
4960 echo "configure: failed program was:" >&5
4961 cat conftest.$ac_ext >&5
4963 eval "ac_cv_header_$ac_safe=no"
4967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4968 echo "$ac_t""yes" 1>&6
4969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4970 cat >> confdefs.h <<EOF
4971 #define $ac_tr_hdr 1
4975 echo "$ac_t""no" 1>&6
4980 if test "x${x_includes}" = "xNONE"; then
4981 x_includes="/usr/X11R6/include"
4983 if test "x${x_libraries}" = "xNONE"; then
4984 x_libraries="/usr/X11R6/lib"
4987 if test "x${SYS}" != "xmingw32"
4989 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
4990 for ac_hdr in X11/extensions/dpms.h
4992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4994 echo "configure:4995: checking for $ac_hdr" >&5
4995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5004 { (eval echo configure:5005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5006 if test -z "$ac_err"; then
5008 eval "ac_cv_header_$ac_safe=yes"
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 eval "ac_cv_header_$ac_safe=no"
5018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5019 echo "$ac_t""yes" 1>&6
5020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5021 cat >> confdefs.h <<EOF
5022 #define $ac_tr_hdr 1
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5028 #include <X11/extensions/dpms.h>
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 egrep "DPMSInfo" >/dev/null 2>&1; then
5034 cat >> confdefs.h <<\EOF
5035 #define DPMSINFO_IN_DPMS_H 1
5044 echo "$ac_t""no" 1>&6
5048 CPPFLAGS="${save_CPPFLAGS}"
5051 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5052 echo "configure:5053: checking for ntohl in sys/param.h" >&5
5053 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5056 CFLAGS="${save_CFLAGS} -Wall -Werror"
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 #include <sys/param.h>
5062 void foo() { int meuh; ntohl(meuh); }
5065 if { (eval echo configure:5066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5067 ac_cv_c_ntohl_sys_param_h=yes
5069 echo "configure: failed program was:" >&5
5070 cat conftest.$ac_ext >&5
5072 ac_cv_c_ntohl_sys_param_h=no
5077 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5078 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5079 cat >> confdefs.h <<\EOF
5080 #define NTOHL_IN_SYS_PARAM_H 1
5085 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5086 echo "configure:5087: checking if \$CC accepts -finline-limit" >&5
5087 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5099 if { (eval echo configure:5100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5101 ac_cv_c_inline_limit=yes
5103 echo "configure: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5106 ac_cv_c_inline_limit=no
5111 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5112 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5113 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5116 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5117 echo "configure:5118: checking if \$CC accepts -Wall -Winline" >&5
5118 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5121 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5122 cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5130 if { (eval echo configure:5131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5132 ac_cv_c_Wall_Winline=yes
5134 echo "configure: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5137 ac_cv_c_Wall_Winline=no
5142 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5143 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5144 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5146 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5147 echo "configure:5148: checking if \$CC accepts -wall -winline" >&5
5148 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 CFLAGS="-wall -winline ${save_CFLAGS}"
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5160 if { (eval echo configure:5161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5162 ac_cv_c_wall_winline=yes
5164 echo "configure: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5167 ac_cv_c_wall_winline=no
5172 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5173 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5174 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5178 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5179 echo "configure:5180: checking if \$CC accepts -pipe" >&5
5180 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 CFLAGS="${save_CFLAGS} -pipe"
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5192 if { (eval echo configure:5193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5204 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5205 if test "x${ac_cv_c_pipe}" != "xno"; then
5206 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5209 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5210 echo "configure:5211: checking if \$CC accepts -O3" >&5
5211 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5214 CFLAGS="${save_CFLAGS} -O3"
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5235 echo "$ac_t""$ac_cv_c_o3" 1>&6
5236 if test "x${ac_cv_c_o3}" != "xno"; then
5237 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5239 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5240 echo "configure:5241: checking if \$CC accepts -O2" >&5
5241 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 CFLAGS="${save_CFLAGS} -O2"
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5253 if { (eval echo configure:5254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5265 echo "$ac_t""$ac_cv_c_o2" 1>&6
5266 if test "x${ac_cv_c_o2}" != "xno"; then
5267 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5269 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5270 echo "configure:5271: checking if \$CC accepts -O" >&5
5271 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5272 echo $ac_n "(cached) $ac_c" 1>&6
5274 CFLAGS="${save_CFLAGS} -O"
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5283 if { (eval echo configure:5284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5287 echo "configure: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5295 echo "$ac_t""$ac_cv_c_o" 1>&6
5296 if test "x${ac_cv_c_o}" != "xno"; then
5297 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5302 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5303 echo "configure:5304: checking if \$CC accepts -ffast-math" >&5
5304 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5307 CFLAGS="${save_CFLAGS} -ffast-math"
5308 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5316 if { (eval echo configure:5317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5318 ac_cv_c_fast_math=yes
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5323 ac_cv_c_fast_math=no
5328 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5329 if test "x${ac_cv_c_fast_math}" != "xno"; then
5330 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5333 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5334 echo "configure:5335: checking if \$CC accepts -funroll-loops" >&5
5335 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5336 echo $ac_n "(cached) $ac_c" 1>&6
5338 CFLAGS="${save_CFLAGS} -funroll-loops"
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5347 if { (eval echo configure:5348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5349 ac_cv_c_unroll_loops=yes
5351 echo "configure: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5354 ac_cv_c_unroll_loops=no
5359 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5360 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5361 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5364 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5365 echo "configure:5366: checking if \$CC accepts -fomit-frame-pointer" >&5
5366 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
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
5380 ac_cv_c_omit_frame_pointer=yes
5382 echo "configure: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5385 ac_cv_c_omit_frame_pointer=no
5390 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5391 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5392 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5393 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5394 i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5397 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5398 echo "configure:5399: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5399 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5402 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5403 cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5411 if { (eval echo configure:5412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5415 echo "configure: failed program was:" >&5
5416 cat conftest.$ac_ext >&5
5423 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5424 if test "x${ac_cv_ld_darwin}" != "xno"; then
5425 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5428 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5429 echo "configure:5430: checking if \$CC accepts -shared" >&5
5430 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5433 CFLAGS="${save_CFLAGS} -shared"
5434 cat > conftest.$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5442 if { (eval echo configure:5443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5444 ac_cv_ld_plugins=yes
5446 echo "configure: failed program was:" >&5
5447 cat conftest.$ac_ext >&5
5454 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5455 if test "x${ac_cv_ld_plugins}" != "xno"; then
5456 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5459 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5460 echo "configure:5461: checking for variadic cpp macros" >&5
5461 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5464 CFLAGS="${save_CFLAGS}"
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5469 #define a(b,c...) printf(b,##c)
5471 a("foo");a("%s","bar");a("%s%s","baz","quux");
5474 if { (eval echo configure:5475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5476 ac_cv_cpp_variadic_macros=yes
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5481 ac_cv_cpp_variadic_macros=no
5486 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5487 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5488 cat >> confdefs.h <<\EOF
5489 #define HAVE_VARIADIC_MACROS 1
5494 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5495 echo "configure:5496: checking __attribute__ ((aligned ())) support" >&5
5496 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5499 ac_cv_c_attribute_aligned=0
5500 CFLAGS="${save_CFLAGS} -Werror"
5501 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5507 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5510 if { (eval echo configure:5511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5512 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5519 CFLAGS="${save_CFLAGS}"
5522 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5523 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5524 cat >> confdefs.h <<EOF
5525 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5530 case "x${target_cpu}" in
5535 ARCH="${target_cpu}"
5539 BUILTINS="${BUILTINS}"
5540 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null/null"
5541 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file access/udp access/http misc/network/ipv4 misc/memcpy/memcpy"
5542 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/ps demux/mpeg/ts"
5543 PLUGINS="${PLUGINS} codec/mpeg_video/idct/idct codec/mpeg_video/idct/idctclassic codec/mpeg_video/motion/motion codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/mpeg_audio/mpeg_audio codec/a52old/a52old codec/mpeg_video/mpeg_video codec/lpcm/lpcm codec/spdif/spdif codec/spudec/spudec"
5544 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5545 PLUGINS="${PLUGINS} visualization/scope/scope"
5546 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5548 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"
5549 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5550 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5551 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5552 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5554 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5555 echo "configure:5556: checking if \$CC groks MMX inline assembly" >&5
5556 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5559 CFLAGS="${save_CFLAGS}"
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5565 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5568 if { (eval echo configure:5569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5570 ac_cv_mmx_inline=yes
5572 echo "configure: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5580 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5581 if test "x${ac_cv_mmx_inline}" != "xno"; then
5582 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5585 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5586 echo "configure:5587: checking if \$CC groks MMX EXT inline assembly" >&5
5587 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 CFLAGS="${save_CFLAGS}"
5591 cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5596 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5599 if { (eval echo configure:5600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5601 ac_cv_mmxext_inline=yes
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5606 ac_cv_mmxext_inline=no
5611 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5612 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5613 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5616 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5617 echo "configure:5618: checking if \$CC groks 3D Now! inline assembly" >&5
5618 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 CFLAGS="${save_CFLAGS}"
5622 cat > conftest.$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5627 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5630 if { (eval echo configure:5631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5632 ac_cv_3dnow_inline=yes
5634 echo "configure: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5637 ac_cv_3dnow_inline=no
5642 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5643 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5644 cat >> confdefs.h <<\EOF
5645 #define CAN_COMPILE_3DNOW 1
5648 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5651 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5652 echo "configure:5653: checking if \$CC groks SSE inline assembly" >&5
5653 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5656 CFLAGS="${save_CFLAGS}"
5657 cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5662 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5665 if { (eval echo configure:5666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5667 ac_cv_sse_inline=yes
5669 echo "configure: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5677 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5678 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5679 cat >> confdefs.h <<\EOF
5680 #define CAN_COMPILE_SSE 1
5683 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5686 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5687 # we should be able to remove this test with future versions of mingw32
5688 if test "x${SYS}" != "xmingw32"; then
5689 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5690 echo "configure:5691: checking if \$CC groks AltiVec inline assembly" >&5
5691 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5692 echo $ac_n "(cached) $ac_c" 1>&6
5694 CFLAGS="${save_CFLAGS}"
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5700 asm volatile("vperm 0,1,2,3");
5703 if { (eval echo configure:5704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5705 ac_cv_altivec_inline=yes
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5716 asm volatile("vperm 0,1,2,3");
5719 if { (eval echo configure:5720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5721 ac_cv_altivec_inline="-Wa,-m7400"
5723 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5726 ac_cv_altivec_inline=no
5734 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5735 if test "x${ac_cv_altivec_inline}" != "xno"; then
5736 cat >> confdefs.h <<\EOF
5737 #define CAN_COMPILE_ALTIVEC 1
5740 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5741 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5742 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5743 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5744 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5746 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5749 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5750 echo "configure:5751: checking if \$CC groks AltiVec C extensions" >&5
5751 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5752 echo $ac_n "(cached) $ac_c" 1>&6
5754 CFLAGS="${save_CFLAGS} -faltivec"
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5761 vec_mtvscr((vector unsigned int)(0));
5764 if { (eval echo configure:5765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5766 ac_cv_c_altivec=-faltivec
5768 echo "configure: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5773 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5774 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5779 vec_mtvscr((vector unsigned int)(0));
5782 if { (eval echo configure:5783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5784 ac_cv_c_altivec="-fvec"
5786 echo "configure: failed program was:" >&5
5787 cat conftest.$ac_ext >&5
5795 CFLAGS="${save_CFLAGS}"
5798 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5799 if test "x${ac_cv_c_altivec}" != "xno"; then
5800 cat >> confdefs.h <<\EOF
5801 #define CAN_COMPILE_C_ALTIVEC 1
5804 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5805 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5806 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5807 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5808 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5811 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5812 echo "configure:5813: checking if linker needs -framework vecLib" >&5
5813 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5827 ac_cv_ld_altivec=yes
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5835 LDFLAGS="${save_LDFLAGS}"
5839 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5840 if test "x${ac_cv_ld_altivec}" != "xno"; then
5841 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5842 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5843 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5844 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5849 # Check whether --with- or --without- was given.
5850 if test "${with_+set}" = set; then
5855 # Check whether --with- or --without- was given.
5856 if test "${with_+set}" = set; then
5862 # Check whether --with-tuning or --without-tuning was given.
5863 if test "${with_tuning+set}" = set; then
5864 withval="$with_tuning"
5868 if test "x${with_tuning}" != "x"; then
5869 TUNING="${with_tuning}"
5871 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5873 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5877 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
5880 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5883 # Check whether --enable-optimizations or --disable-optimizations was given.
5884 if test "${enable_optimizations+set}" = set; then
5885 enableval="$enable_optimizations"
5886 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
5892 # Check whether --enable-altivec or --disable-altivec was given.
5893 if test "${enable_altivec+set}" = set; then
5894 enableval="$enable_altivec"
5895 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
5896 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5898 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
5899 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5904 # Check whether --enable-debug or --disable-debug was given.
5905 if test "${enable_debug+set}" = set; then
5906 enableval="$enable_debug"
5907 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
5912 # Check whether --enable-release or --disable-release was given.
5913 if test "${enable_release+set}" = set; then
5914 enableval="$enable_release"
5915 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
5917 VERSION="${VERSION}_`date +%Y-%m-%d`"
5922 # Check whether --with- or --without- was given.
5923 if test "${with_+set}" = set; then
5929 # Check whether --enable-dvd or --disable-dvd was given.
5930 if test "${enable_dvd+set}" = set; then
5931 enableval="$enable_dvd"
5935 if test "x${enable_dvd}" != "xno"
5937 # Check whether --with-dvdcss or --without-dvdcss was given.
5938 if test "${with_dvdcss+set}" = set; then
5939 withval="$with_dvdcss"
5943 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5944 if test "${with_dvdcss_tree+set}" = set; then
5945 withval="$with_dvdcss_tree"
5949 case "x${with_dvdcss}" in
5951 if test "x${with_dvdcss_tree}" = x
5953 for ac_hdr in dvdcss/dvdcss.h
5955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5957 echo "configure:5958: checking for $ac_hdr" >&5
5958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5967 { (eval echo configure:5968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5969 if test -z "$ac_err"; then
5971 eval "ac_cv_header_$ac_safe=yes"
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5977 eval "ac_cv_header_$ac_safe=no"
5981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5984 cat >> confdefs.h <<EOF
5985 #define $ac_tr_hdr 1
5987 PLUGINS="${PLUGINS} access/dvd/dvd"
5988 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5990 echo "$ac_t""no" 1>&6
5991 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
5992 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5997 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5998 echo "configure:5999: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5999 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6000 if test "x${real_dvdcss_tree}" = "x"
6002 echo "$ac_t""no" 1>&6
6003 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6005 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6007 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6008 BUILTINS="${BUILTINS} access/dvd/dvd"
6009 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6010 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6012 echo "$ac_t""no" 1>&6
6013 { 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; }
6018 PLUGINS="${PLUGINS} access/dvd/dvd"
6019 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6020 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6023 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6024 echo "configure:6025: checking for dvdcss headers in ${with_dvdcss}" >&5
6025 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6027 echo "$ac_t""yes" 1>&6
6028 PLUGINS="${PLUGINS} access/dvd/dvd"
6029 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6030 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6032 echo "$ac_t""no" 1>&6
6033 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6039 # Check whether --enable-dvdread or --disable-dvdread was given.
6040 if test "${enable_dvdread+set}" = set; then
6041 enableval="$enable_dvdread"
6045 if test "x${enable_dvdread}" != "xno"
6047 # Check whether --with-dvdread or --without-dvdread was given.
6048 if test "${with_dvdread+set}" = set; then
6049 withval="$with_dvdread"
6053 if test "x${with_dvdread}" = "x"
6058 test_LDFLAGS="-L${with_dvdread}/lib"
6059 test_CFLAGS="-I${with_dvdread}/include"
6061 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6062 for ac_hdr in dvdread/dvd_reader.h
6064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6066 echo "configure:6067: checking for $ac_hdr" >&5
6067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6068 echo $ac_n "(cached) $ac_c" 1>&6
6070 cat > conftest.$ac_ext <<EOF
6071 #line 6072 "configure"
6072 #include "confdefs.h"
6075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6076 { (eval echo configure:6077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6078 if test -z "$ac_err"; then
6080 eval "ac_cv_header_$ac_safe=yes"
6083 echo "configure: failed program was:" >&5
6084 cat conftest.$ac_ext >&5
6086 eval "ac_cv_header_$ac_safe=no"
6090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6091 echo "$ac_t""yes" 1>&6
6092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6093 cat >> confdefs.h <<EOF
6094 #define $ac_tr_hdr 1
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 #include <dvdread/dvd_reader.h>
6102 void foo() { int i=DVD_VIDEO_LB_LEN; }
6105 if { (eval echo configure:6106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6108 PLUGINS="${PLUGINS} access/dvdread/dvdread"
6109 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6110 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6117 if test "x${enable_dvdread}" != "x"
6119 { 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; }
6126 echo "$ac_t""no" 1>&6
6127 if test "x${enable_dvdread}" != "x"
6129 if test "x${with_dvdread}" != "x"
6131 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6133 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6140 CPPFLAGS="$save_CPPFLAGS"
6143 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6144 if test "${enable_dvdplay+set}" = set; then
6145 enableval="$enable_dvdplay"
6149 if test "x$enable_dvdplay" != "xno"
6151 # Check whether --with-dvdplay or --without-dvdplay was given.
6152 if test "${with_dvdplay+set}" = set; then
6153 withval="$with_dvdplay"
6157 if test "x$with_dvdplay" = x
6162 test_LDFLAGS="-L${with_dvdplay}/lib"
6163 test_CFLAGS="-I${with_dvdplay}/include"
6165 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6166 for ac_hdr in dvdplay/dvdplay.h
6168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6170 echo "configure:6171: checking for $ac_hdr" >&5
6171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6172 echo $ac_n "(cached) $ac_c" 1>&6
6174 cat > conftest.$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6180 { (eval echo configure:6181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6182 if test -z "$ac_err"; then
6184 eval "ac_cv_header_$ac_safe=yes"
6187 echo "configure: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6190 eval "ac_cv_header_$ac_safe=no"
6194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6197 cat >> confdefs.h <<EOF
6198 #define $ac_tr_hdr 1
6201 PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6202 dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6203 dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6206 echo "$ac_t""no" 1>&6
6207 if test "x$enable_dvdplay" != x
6209 if test "x$with_dvdplay" != x
6211 { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6213 { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6220 CPPFLAGS="${save_CPPFLAGS}"
6224 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6225 if test "${enable_dvbpsi+set}" = set; then
6226 enableval="$enable_dvbpsi"
6230 if test "x${enable_dvbpsi}" != "xno"
6232 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6233 if test "${with_dvbpsi+set}" = set; then
6234 withval="$with_dvbpsi"
6238 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6239 if test "${with_dvbpsi+set}" = set; then
6240 withval="$with_dvbpsi"
6244 case "x${with_dvbpsi}" in
6246 if test "x${with_dvbpsi_tree}" = "x"
6248 for ac_hdr in dvbpsi/dr.h
6250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6252 echo "configure:6253: checking for $ac_hdr" >&5
6253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6254 echo $ac_n "(cached) $ac_c" 1>&6
6256 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6262 { (eval echo configure:6263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6264 if test -z "$ac_err"; then
6266 eval "ac_cv_header_$ac_safe=yes"
6269 echo "configure: failed program was:" >&5
6270 cat conftest.$ac_ext >&5
6272 eval "ac_cv_header_$ac_safe=no"
6276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6277 echo "$ac_t""yes" 1>&6
6278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6279 cat >> confdefs.h <<EOF
6280 #define $ac_tr_hdr 1
6282 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6283 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi"
6285 echo "$ac_t""no" 1>&6
6290 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6291 echo "configure:6292: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6292 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6293 if test "x${real_dvbpsi_tree}" = "x"
6295 echo "$ac_t""no" 1>&6
6296 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6298 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6300 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6301 BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6302 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6303 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6305 echo "$ac_t""no" 1>&6
6306 { 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; }
6313 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6314 echo "configure:6315: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6315 if test "x${with_dvbpsi}" = "x"
6320 test_LDFLAGS="-L${with_dvbpsi}/lib"
6321 test_CFLAGS="-I${with_dvbpsi}/include"
6323 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6324 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6325 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6326 echo "configure:6327: checking for dvbpsi/dr.h" >&5
6327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6330 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6333 #include <dvbpsi/dr.h>
6335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6336 { (eval echo configure:6337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6338 if test -z "$ac_err"; then
6340 eval "ac_cv_header_$ac_safe=yes"
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 eval "ac_cv_header_$ac_safe=no"
6350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6353 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6354 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6355 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6358 echo "$ac_t""no" 1>&6
6360 if test "x${enable_dvbpsi}" != "x"
6362 { 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; }
6367 CPPFLAGS="${save_CPPFLAGS}"
6372 # Check whether --enable-vcd or --disable-vcd was given.
6373 if test "${enable_vcd+set}" = set; then
6374 enableval="$enable_vcd"
6379 if test "x${enable_vcd}" != "xno"
6381 cat > conftest.$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6384 #include <linux/cdrom.h>
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 egrep "cdrom_msf0" >/dev/null 2>&1; then
6390 PLUGINS="${PLUGINS} access/vcd/vcd"
6396 cat > conftest.$ac_ext <<EOF
6397 #line 6398 "configure"
6398 #include "confdefs.h"
6399 #include <sys/cdio.h>
6401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6402 egrep "ioc_toc_header " >/dev/null 2>&1; then
6405 PLUGINS="${PLUGINS} access/vcd/vcd"
6406 cat >> confdefs.h <<\EOF
6407 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6415 if test "x${SYS}" = "xbsdi"
6417 PLUGINS="${PLUGINS} access/vcd/vcd"
6420 if test "x${SYS}" = "xdarwin"
6422 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6423 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6427 # Check whether --enable-satellite or --disable-satellite was given.
6428 if test "${enable_satellite+set}" = set; then
6429 enableval="$enable_satellite"
6430 if test "x${enable_satellite}" = "xyes"
6432 PLUGINS="${PLUGINS} access/satellite/satellite"
6437 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6440 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6441 echo "configure:6442: checking for inet_pton" >&5
6442 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6448 /* System header to define __stub macros and hopefully few prototypes,
6449 which can conflict with char inet_pton(); below. */
6451 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6458 /* The GNU C library defines this for functions which it implements
6459 to always fail with ENOSYS. Some functions are actually named
6460 something starting with __ and the normal name is an alias. */
6461 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6469 if { (eval echo configure:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6471 eval "ac_cv_func_inet_pton=yes"
6473 echo "configure: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6476 eval "ac_cv_func_inet_pton=no"
6481 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6485 echo "$ac_t""no" 1>&6
6487 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6488 echo "configure:6489: checking for inet_pton in -lresolv" >&5
6489 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6493 ac_save_LIBS="$LIBS"
6494 LIBS="-lresolv $LIBS"
6495 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 /* Override any gcc2 internal prototype to avoid an error. */
6499 /* We use char because int might match the return type of a gcc2
6500 builtin and then its argument prototype would still apply. */
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 eval "ac_cv_lib_$ac_lib_var=yes"
6511 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6514 eval "ac_cv_lib_$ac_lib_var=no"
6517 LIBS="$ac_save_LIBS"
6520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6521 echo "$ac_t""yes" 1>&6
6523 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6525 echo "$ac_t""no" 1>&6
6531 echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6532 echo "configure:6533: checking for sockaddr_in6 in netinet/in.h" >&5
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 #include <netinet/in.h>
6538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6539 egrep "sockaddr_in6" >/dev/null 2>&1; then
6541 echo "$ac_t""yes" 1>&6
6544 echo "$ac_t""no" 1>&6; have_ipv6=0
6548 if test x$have_ipv6 = x1; then
6549 PLUGINS="${PLUGINS} misc/network/ipv6"
6552 if test "x${SYS}" = "xmingw32"
6554 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6555 echo "configure:6556: checking for getaddrinfo in ws2tcpip.h" >&5
6556 cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6559 #include <ws2tcpip.h>
6561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6562 egrep "addrinfo" >/dev/null 2>&1; then
6564 echo "$ac_t""yes" 1>&6
6565 PLUGINS="${PLUGINS} misc/network/ipv6"
6568 echo "$ac_t""no" 1>&6
6574 # Check whether --enable-avi or --disable-avi was given.
6575 if test "${enable_avi+set}" = set; then
6576 enableval="$enable_avi"
6580 if test "x${enable_avi}" != "xno"
6582 PLUGINS="${PLUGINS} demux/avi/avi"
6586 # Check whether --with- or --without- was given.
6587 if test "${with_+set}" = set; then
6593 # Check whether --enable-mad or --disable-mad was given.
6594 if test "${enable_mad+set}" = set; then
6595 enableval="$enable_mad"
6599 if test "x${enable_mad}" = "xyes"
6601 # Check whether --with-mad or --without-mad was given.
6602 if test "${with_mad+set}" = set; then
6607 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6609 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6610 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6613 # Check whether --with-mad-tree or --without-mad-tree was given.
6614 if test "${with_mad_tree+set}" = set; then
6615 withval="$with_mad_tree"
6619 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6621 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6622 if test "x${real_mad_tree}" = "x"
6624 echo "$ac_t""no" 1>&6
6625 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6627 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6628 echo "configure:6629: checking for mad.h in ${real_mad_tree}/libmad" >&5
6629 if test -f ${real_mad_tree}/libmad/mad.h
6631 echo "$ac_t""yes" 1>&6
6632 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6633 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6634 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6635 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6636 echo "configure:6637: checking for mad_bit_init in -lmad" >&5
6637 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6641 ac_save_LIBS="$LIBS"
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */
6649 char mad_bit_init();
6655 if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6657 eval "ac_cv_lib_$ac_lib_var=yes"
6659 echo "configure: failed program was:" >&5
6660 cat conftest.$ac_ext >&5
6662 eval "ac_cv_lib_$ac_lib_var=no"
6665 LIBS="$ac_save_LIBS"
6668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6669 echo "$ac_t""yes" 1>&6
6671 BUILTINS="${BUILTINS} codec/mad/mad"
6672 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6675 echo "$ac_t""no" 1>&6
6676 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6680 LDFLAGS="${save_LDFLAGS}"
6682 echo "$ac_t""no" 1>&6
6683 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6686 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6687 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_hdr" >&5
6693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6702 { (eval echo configure:6703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6704 if test -z "$ac_err"; then
6706 eval "ac_cv_header_$ac_safe=yes"
6709 echo "configure: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6712 eval "ac_cv_header_$ac_safe=no"
6716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6717 echo "$ac_t""yes" 1>&6
6718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6719 cat >> confdefs.h <<EOF
6720 #define $ac_tr_hdr 1
6724 echo "$ac_t""no" 1>&6
6725 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6729 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6730 echo "configure:6731: checking for mad_bit_init in -lmad" >&5
6731 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6
6735 ac_save_LIBS="$LIBS"
6737 cat > conftest.$ac_ext <<EOF
6738 #line 6739 "configure"
6739 #include "confdefs.h"
6740 /* Override any gcc2 internal prototype to avoid an error. */
6741 /* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */
6743 char mad_bit_init();
6749 if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6751 eval "ac_cv_lib_$ac_lib_var=yes"
6753 echo "configure: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6756 eval "ac_cv_lib_$ac_lib_var=no"
6759 LIBS="$ac_save_LIBS"
6762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6763 echo "$ac_t""yes" 1>&6
6765 PLUGINS="${PLUGINS} codec/mad/mad"
6766 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6768 echo "$ac_t""no" 1>&6
6769 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6772 CFLAGS="${save_CFLAGS}"
6773 LDFLAGS="${save_LDFLAGS}"
6777 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6778 if test "${enable_ffmpeg+set}" = set; then
6779 enableval="$enable_ffmpeg"
6783 if test "x${enable_ffmpeg}" = "xyes"
6785 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6786 if test "${with_ffmpeg+set}" = set; then
6787 withval="$with_ffmpeg"
6791 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6793 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6794 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6797 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c"
6798 if test "x${ac_cv_mmx_inline}" != "xno"; then
6799 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx"
6802 if test "x${ac_cv_mmxext_inline}" != "xno"; then
6803 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext"
6807 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6808 if test "${with_ffmpeg_tree+set}" = set; then
6809 withval="$with_ffmpeg_tree"
6813 if test "x${with_ffmpeg_tree}" != "x"
6815 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6816 echo "configure:6817: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6817 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6818 if test "x${real_ffmpeg_tree}" = x
6820 echo "$ac_t""no" 1>&6
6821 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6823 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6825 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6826 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
6827 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6828 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6830 echo "$ac_t""no" 1>&6
6831 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6834 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
6835 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
6836 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6837 echo "configure:6838: checking for avcodec_init in -lavcodec" >&5
6838 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6842 ac_save_LIBS="$LIBS"
6843 LIBS="-lavcodec $LIBS"
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* Override any gcc2 internal prototype to avoid an error. */
6848 /* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */
6850 char avcodec_init();
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6858 eval "ac_cv_lib_$ac_lib_var=yes"
6860 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6863 eval "ac_cv_lib_$ac_lib_var=no"
6866 LIBS="$ac_save_LIBS"
6869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6870 echo "$ac_t""yes" 1>&6
6872 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
6873 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6875 echo "$ac_t""no" 1>&6
6876 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6879 LDFLAGS="${save_LDFLAGS}"
6880 CFLAGS="${save_CFLAGS}"
6884 # Check whether --enable-mp4 or --disable-mp4 was given.
6885 if test "${enable_mp4+set}" = set; then
6886 enableval="$enable_mp4"
6890 if test "x${enable_mp4}" = "xyes"
6892 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
6893 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
6894 echo "configure:6895: checking for zlib.h" >&5
6895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6896 echo $ac_n "(cached) $ac_c" 1>&6
6898 cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6904 { (eval echo configure:6905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6906 if test -z "$ac_err"; then
6908 eval "ac_cv_header_$ac_safe=yes"
6911 echo "configure: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6914 eval "ac_cv_header_$ac_safe=no"
6918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6919 echo "$ac_t""yes" 1>&6
6920 echo $ac_n "checking for inflateEnd in -lz""... $ac_c" 1>&6
6921 echo "configure:6922: checking for inflateEnd in -lz" >&5
6922 ac_lib_var=`echo z'_'inflateEnd | sed 'y%./+-%__p_%'`
6923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6926 ac_save_LIBS="$LIBS"
6928 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure"
6930 #include "confdefs.h"
6931 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6942 eval "ac_cv_lib_$ac_lib_var=yes"
6944 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6947 eval "ac_cv_lib_$ac_lib_var=no"
6950 LIBS="$ac_save_LIBS"
6953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6954 echo "$ac_t""yes" 1>&6
6955 PLUGINS="${PLUGINS} demux/mp4/mp4"
6956 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
6958 echo "$ac_t""no" 1>&6
6959 { echo "configure: error: cannot find zlib library..." 1>&2; exit 1; }
6963 echo "$ac_t""no" 1>&6
6964 { echo "configure: error: cannot find zlib header..." 1>&2; exit 1; }
6969 if test "x${SYS}" = "xbeos"
6971 PLUGINS="${PLUGINS} gui/beos/beos"
6974 # Check whether --enable-a52 or --disable-a52 was given.
6975 if test "${enable_a52+set}" = set; then
6976 enableval="$enable_a52"
6980 if test "x${enable_a52}" != "xno"
6982 # Check whether --with-a52-tree or --without-a52-tree was given.
6983 if test "${with_a52_tree+set}" = set; then
6984 withval="$with_a52_tree"
6988 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
6990 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6991 if test "x${real_a52_tree}" = "x"
6993 echo "$ac_t""no" 1>&6
6994 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6996 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6997 echo "configure:6998: checking for a52.h in ${real_a52_tree}/include" >&5
6998 if test -f ${real_a52_tree}/include/a52.h
7000 echo "$ac_t""yes" 1>&6
7001 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
7002 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
7003 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
7004 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7005 echo "configure:7006: checking for a52_free in -la52" >&5
7006 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7010 ac_save_LIBS="$LIBS"
7011 LIBS="-la52 -lm $LIBS"
7012 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7015 /* Override any gcc2 internal prototype to avoid an error. */
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7026 eval "ac_cv_lib_$ac_lib_var=yes"
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7031 eval "ac_cv_lib_$ac_lib_var=no"
7034 LIBS="$ac_save_LIBS"
7037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7038 echo "$ac_t""yes" 1>&6
7040 BUILTINS="${BUILTINS} codec/a52/a52"
7041 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7042 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7045 echo "$ac_t""no" 1>&6
7047 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7049 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7051 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7056 LDFLAGS="${save_LDFLAGS}"
7058 echo "$ac_t""no" 1>&6
7059 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7061 else for ac_hdr in a52dec/a52.h
7063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7065 echo "configure:7066: checking for $ac_hdr" >&5
7066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6
7069 cat > conftest.$ac_ext <<EOF
7070 #line 7071 "configure"
7071 #include "confdefs.h"
7074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7075 { (eval echo configure:7076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7077 if test -z "$ac_err"; then
7079 eval "ac_cv_header_$ac_safe=yes"
7082 echo "configure: failed program was:" >&5
7083 cat conftest.$ac_ext >&5
7085 eval "ac_cv_header_$ac_safe=no"
7089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7090 echo "$ac_t""yes" 1>&6
7091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7092 cat >> confdefs.h <<EOF
7093 #define $ac_tr_hdr 1
7096 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7097 echo "configure:7098: checking for a52_free in -la52" >&5
7098 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7102 ac_save_LIBS="$LIBS"
7103 LIBS="-la52 -lm $LIBS"
7104 cat > conftest.$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7107 /* Override any gcc2 internal prototype to avoid an error. */
7108 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7118 eval "ac_cv_lib_$ac_lib_var=yes"
7120 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7123 eval "ac_cv_lib_$ac_lib_var=no"
7126 LIBS="$ac_save_LIBS"
7129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7130 echo "$ac_t""yes" 1>&6
7132 BUILTINS="${BUILTINS} codec/a52/a52"
7133 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7134 a52_CFLAGS="${a52_CFLAGS}"
7137 echo "$ac_t""no" 1>&6
7142 echo "$ac_t""no" 1>&6
7149 # Check whether --enable-cinepak or --disable-cinepak was given.
7150 if test "${enable_cinepak+set}" = set; then
7151 enableval="$enable_cinepak"
7155 if test "x${enable_cinepak}" != "xno"
7157 PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7160 # Check whether --enable-vorbis or --disable-vorbis was given.
7161 if test "${enable_vorbis+set}" = set; then
7162 enableval="$enable_vorbis"
7166 if test "x${enable_vorbis}" != "xno"
7168 for ac_hdr in ogg/ogg.h
7170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7172 echo "configure:7173: checking for $ac_hdr" >&5
7173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7176 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7182 { (eval echo configure:7183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7184 if test -z "$ac_err"; then
7186 eval "ac_cv_header_$ac_safe=yes"
7189 echo "configure: failed program was:" >&5
7190 cat conftest.$ac_ext >&5
7192 eval "ac_cv_header_$ac_safe=no"
7196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7197 echo "$ac_t""yes" 1>&6
7198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7199 cat >> confdefs.h <<EOF
7200 #define $ac_tr_hdr 1
7203 #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7204 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7207 echo "$ac_t""no" 1>&6
7213 # Check whether --enable-dv or --disable-dv was given.
7214 if test "${enable_dv+set}" = set; then
7215 enableval="$enable_dv"
7219 if test "x${enable_dv}" = "xyes"
7221 for ac_hdr in libdv/dv.h
7223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7225 echo "configure:7226: checking for $ac_hdr" >&5
7226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7227 echo $ac_n "(cached) $ac_c" 1>&6
7229 cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7235 { (eval echo configure:7236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7237 if test -z "$ac_err"; then
7239 eval "ac_cv_header_$ac_safe=yes"
7242 echo "configure: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7245 eval "ac_cv_header_$ac_safe=no"
7249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7250 echo "$ac_t""yes" 1>&6
7251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7252 cat >> confdefs.h <<EOF
7253 #define $ac_tr_hdr 1
7256 BUILTINS="${BUILTINS} codec/dv/dv"
7257 dv_LDFLAGS="${dv_LDFLAGS} -ldv"
7260 echo "$ac_t""no" 1>&6
7267 # Check whether --with- or --without- was given.
7268 if test "${with_+set}" = set; then
7274 # Check whether --enable-x11 or --disable-x11 was given.
7275 if test "${enable_x11+set}" = set; then
7276 enableval="$enable_x11"
7280 if test "x${enable_x11}" != "xno" &&
7281 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7282 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7283 for ac_hdr in X11/Xlib.h
7285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7287 echo "configure:7288: checking for $ac_hdr" >&5
7288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7291 cat > conftest.$ac_ext <<EOF
7292 #line 7293 "configure"
7293 #include "confdefs.h"
7296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7297 { (eval echo configure:7298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7299 if test -z "$ac_err"; then
7301 eval "ac_cv_header_$ac_safe=yes"
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7307 eval "ac_cv_header_$ac_safe=no"
7311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7312 echo "$ac_t""yes" 1>&6
7313 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7314 cat >> confdefs.h <<EOF
7315 #define $ac_tr_hdr 1
7318 PLUGINS="${PLUGINS} video_output/x11/x11"
7319 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7320 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7323 echo "$ac_t""no" 1>&6
7327 CPPFLAGS="${save_CPPFLAGS}"
7330 # Check whether --enable-xvideo or --disable-xvideo was given.
7331 if test "${enable_xvideo+set}" = set; then
7332 enableval="$enable_xvideo"
7336 if test "x${enable_xvideo}" != "xno" &&
7337 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7338 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7339 for ac_hdr in X11/extensions/Xv.h
7341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7343 echo "configure:7344: checking for $ac_hdr" >&5
7344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7345 echo $ac_n "(cached) $ac_c" 1>&6
7347 cat > conftest.$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7353 { (eval echo configure:7354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7355 if test -z "$ac_err"; then
7357 eval "ac_cv_header_$ac_safe=yes"
7360 echo "configure: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7363 eval "ac_cv_header_$ac_safe=no"
7367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7368 echo "$ac_t""yes" 1>&6
7369 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7370 cat >> confdefs.h <<EOF
7371 #define $ac_tr_hdr 1
7374 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7375 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7376 echo "configure:7377: checking for XvPutImage in -lXv_pic" >&5
7377 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7379 echo $ac_n "(cached) $ac_c" 1>&6
7381 ac_save_LIBS="$LIBS"
7382 LIBS="-lXv_pic $LIBS"
7383 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7386 /* Override any gcc2 internal prototype to avoid an error. */
7387 /* We use char because int might match the return type of a gcc2
7388 builtin and then its argument prototype would still apply. */
7395 if { (eval echo configure:7396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7397 eval "ac_cv_lib_$ac_lib_var=yes"
7399 echo "configure: failed program was:" >&5
7400 cat conftest.$ac_ext >&5
7402 eval "ac_cv_lib_$ac_lib_var=no"
7405 LIBS="$ac_save_LIBS"
7408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7409 echo "$ac_t""yes" 1>&6
7410 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7411 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7412 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7413 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7415 echo "$ac_t""no" 1>&6
7416 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7417 echo "configure:7418: checking for XvPutImage in -lXv" >&5
7418 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7422 ac_save_LIBS="$LIBS"
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 /* Override any gcc2 internal prototype to avoid an error. */
7428 /* We use char because int might match the return type of a gcc2
7429 builtin and then its argument prototype would still apply. */
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7438 eval "ac_cv_lib_$ac_lib_var=yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 eval "ac_cv_lib_$ac_lib_var=no"
7446 LIBS="$ac_save_LIBS"
7449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7450 echo "$ac_t""yes" 1>&6
7451 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7452 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7453 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7454 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7456 echo "$ac_t""no" 1>&6
7457 # Otherwise... well, do nothing.
7465 CFLAGS="${save_CFLAGS}"
7467 CPPFLAGS="${save_CPPFLAGS}"
7469 echo "$ac_t""no" 1>&6
7475 # Check whether --enable-sdl or --disable-sdl was given.
7476 if test "${enable_sdl+set}" = set; then
7477 enableval="$enable_sdl"
7481 if test "x${enable_sdl}" != "xno"
7484 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7485 if test "${with_sdl_config_path+set}" = set; then
7486 withval="$with_sdl_config_path"
7487 if test "x${with_sdl_config_path}" != "xno"
7489 SDL_PATH="${with_sdl_config_path}:${PATH}"
7493 # Extract the first word of "sdl12-config", so it can be a program name with args.
7494 set dummy sdl12-config; ac_word=$2
7495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7496 echo "configure:7497: checking for $ac_word" >&5
7497 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7500 case "$SDL12_CONFIG" in
7502 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7505 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7509 ac_dummy="${SDL_PATH}"
7510 for ac_dir in $ac_dummy; do
7511 test -z "$ac_dir" && ac_dir=.
7512 if test -f $ac_dir/$ac_word; then
7513 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7518 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7522 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7523 if test -n "$SDL12_CONFIG"; then
7524 echo "$ac_t""$SDL12_CONFIG" 1>&6
7526 echo "$ac_t""no" 1>&6
7529 SDL_CONFIG="${SDL12_CONFIG}"
7530 SDL_HEADER="SDL12/SDL.h"
7531 if test "x${SDL_CONFIG}" = "xno"
7533 # Extract the first word of "sdl11-config", so it can be a program name with args.
7534 set dummy sdl11-config; ac_word=$2
7535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7536 echo "configure:7537: checking for $ac_word" >&5
7537 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7538 echo $ac_n "(cached) $ac_c" 1>&6
7540 case "$SDL11_CONFIG" in
7542 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7545 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7549 ac_dummy="${SDL_PATH}"
7550 for ac_dir in $ac_dummy; do
7551 test -z "$ac_dir" && ac_dir=.
7552 if test -f $ac_dir/$ac_word; then
7553 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7558 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7562 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7563 if test -n "$SDL11_CONFIG"; then
7564 echo "$ac_t""$SDL11_CONFIG" 1>&6
7566 echo "$ac_t""no" 1>&6
7569 SDL_CONFIG=${SDL11_CONFIG}
7570 SDL_HEADER="SDL11/SDL.h"
7572 if test "x${SDL_CONFIG}" = "xno"
7574 # Extract the first word of "sdl-config", so it can be a program name with args.
7575 set dummy sdl-config; ac_word=$2
7576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7577 echo "configure:7578: checking for $ac_word" >&5
7578 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7579 echo $ac_n "(cached) $ac_c" 1>&6
7581 case "$SDL_CONFIG" in
7583 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7586 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7590 ac_dummy="${SDL_PATH}"
7591 for ac_dir in $ac_dummy; do
7592 test -z "$ac_dir" && ac_dir=.
7593 if test -f $ac_dir/$ac_word; then
7594 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7599 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7603 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7604 if test -n "$SDL_CONFIG"; then
7605 echo "$ac_t""$SDL_CONFIG" 1>&6
7607 echo "$ac_t""no" 1>&6
7610 SDL_HEADER="SDL/SDL.h"
7612 if test "x${SDL_CONFIG}" != "xno"
7614 PLUGINS="${PLUGINS} video_output/sdl/sdl"
7615 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7616 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7617 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7618 for ac_hdr in ${SDL_HEADER}
7620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7622 echo "configure:7623: checking for $ac_hdr" >&5
7623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7626 cat > conftest.$ac_ext <<EOF
7627 #line 7628 "configure"
7628 #include "confdefs.h"
7631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7632 { (eval echo configure:7633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7634 if test -z "$ac_err"; then
7636 eval "ac_cv_header_$ac_safe=yes"
7639 echo "configure: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7642 eval "ac_cv_header_$ac_safe=no"
7646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7647 echo "$ac_t""yes" 1>&6
7648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7649 cat >> confdefs.h <<EOF
7650 #define $ac_tr_hdr 1
7652 cat >> confdefs.h <<EOF
7653 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7657 echo "$ac_t""no" 1>&6
7658 { echo "configure: error: The development package for SDL is not installed.
7659 Please install it and try again. Alternatively you can also configure with
7660 --disable-sdl." 1>&2; exit 1; }
7665 CPPFLAGS="${save_CPPFLAGS}"
7666 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7668 { echo "configure: error: The development package for SDL is not installed.
7669 Please install it and try again. Alternatively you can also configure with
7670 --disable-sdl." 1>&2; exit 1; }
7672 elif test "x${enable_sdl}" = "xyes"
7674 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7675 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7680 # Check whether --enable-directx or --disable-directx was given.
7681 if test "${enable_directx+set}" = set; then
7682 enableval="$enable_directx"
7686 if test "x${enable_directx}" != "xno"
7688 if test "x${SYS}" = "xmingw32"
7690 # Check whether --with-directx or --without-directx was given.
7691 if test "${with_directx+set}" = set; then
7692 withval="$with_directx"
7696 if test "x${with_directx}" = "x"
7698 for ac_hdr in ddraw.h
7700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7702 echo "configure:7703: checking for $ac_hdr" >&5
7703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7706 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7712 { (eval echo configure:7713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7714 if test -z "$ac_err"; then
7716 eval "ac_cv_header_$ac_safe=yes"
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7722 eval "ac_cv_header_$ac_safe=no"
7726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7729 cat >> confdefs.h <<EOF
7730 #define $ac_tr_hdr 1
7732 PLUGINS="${PLUGINS} video_output/directx/directx"
7733 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7735 echo "$ac_t""no" 1>&6
7740 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7741 echo "configure:7742: checking for directX headers in ${with_directx}" >&5
7742 if test -f ${with_directx}/ddraw.h
7744 PLUGINS="${PLUGINS} video_output/directx/directx"
7745 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7746 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7747 echo "$ac_t""yes" 1>&6
7749 echo "$ac_t""no" 1>&6
7750 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7756 # Check whether --enable-fb or --disable-fb was given.
7757 if test "${enable_fb+set}" = set; then
7758 enableval="$enable_fb"
7762 if test "x${enable_fb}" != "xno"
7764 for ac_hdr in linux/fb.h
7766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7768 echo "configure:7769: checking for $ac_hdr" >&5
7769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7770 echo $ac_n "(cached) $ac_c" 1>&6
7772 cat > conftest.$ac_ext <<EOF
7773 #line 7774 "configure"
7774 #include "confdefs.h"
7777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7778 { (eval echo configure:7779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7780 if test -z "$ac_err"; then
7782 eval "ac_cv_header_$ac_safe=yes"
7785 echo "configure: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7788 eval "ac_cv_header_$ac_safe=no"
7792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7793 echo "$ac_t""yes" 1>&6
7794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7795 cat >> confdefs.h <<EOF
7796 #define $ac_tr_hdr 1
7799 PLUGINS="${PLUGINS} video_output/fb/fb"
7802 echo "$ac_t""no" 1>&6
7808 # Check whether --enable-mga or --disable-mga was given.
7809 if test "${enable_mga+set}" = set; then
7810 enableval="$enable_mga"
7811 if test "x${enable_mga}" = "xyes"
7813 PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
7818 # Check whether --enable-ggi or --disable-ggi was given.
7819 if test "${enable_ggi+set}" = set; then
7820 enableval="$enable_ggi"
7824 if test "x${enable_ggi}" = "xyes"
7826 PLUGINS="${PLUGINS} video_output/ggi/ggi"
7827 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7828 # Check whether --with-ggi or --without-ggi was given.
7829 if test "${with_ggi+set}" = set; then
7831 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
7833 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
7834 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
7840 # Check whether --enable-glide or --disable-glide was given.
7841 if test "${enable_glide+set}" = set; then
7842 enableval="$enable_glide"
7846 if test "x${enable_glide}" = "xyes"
7848 PLUGINS="${PLUGINS} video_output/glide/glide"
7849 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7850 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7851 # Check whether --with-glide or --without-glide was given.
7852 if test "${with_glide+set}" = set; then
7853 withval="$with_glide"
7854 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
7856 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
7857 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
7863 # Check whether --enable-aa or --disable-aa was given.
7864 if test "${enable_aa+set}" = set; then
7865 enableval="$enable_aa"
7869 if test "x${enable_aa}" = "xyes"
7871 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7872 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7873 echo "configure:7874: checking for aalib.h" >&5
7874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7875 echo $ac_n "(cached) $ac_c" 1>&6
7877 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7883 { (eval echo configure:7884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7885 if test -z "$ac_err"; then
7887 eval "ac_cv_header_$ac_safe=yes"
7890 echo "configure: failed program was:" >&5
7891 cat conftest.$ac_ext >&5
7893 eval "ac_cv_header_$ac_safe=no"
7897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7898 echo "$ac_t""yes" 1>&6
7901 echo "$ac_t""no" 1>&6
7905 if test "x${have_aa}" = "xtrue"
7907 PLUGINS="${PLUGINS} video_output/aa/aa"
7908 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7913 # Check whether --with- or --without- was given.
7914 if test "${with_+set}" = set; then
7920 # Check whether --enable-dsp or --disable-dsp was given.
7921 if test "${enable_dsp+set}" = set; then
7922 enableval="$enable_dsp"
7927 if test "x${enable_dsp}" != "xno" &&
7928 (test "x${SYS}" != "xmingw32" || test "x${enable_dsp}" = "xyes")
7930 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
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
7965 PLUGINS="${PLUGINS} audio_output/dsp/dsp"
7966 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7967 echo "configure:7968: checking for main in -lossaudio" >&5
7968 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7972 ac_save_LIBS="$LIBS"
7973 LIBS="-lossaudio $LIBS"
7974 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7982 if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7984 eval "ac_cv_lib_$ac_lib_var=yes"
7986 echo "configure: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7989 eval "ac_cv_lib_$ac_lib_var=no"
7992 LIBS="$ac_save_LIBS"
7995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7996 echo "$ac_t""yes" 1>&6
7997 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7999 echo "$ac_t""no" 1>&6
8004 echo "$ac_t""no" 1>&6
8010 # Check whether --enable-esd or --disable-esd was given.
8011 if test "${enable_esd+set}" = set; then
8012 enableval="$enable_esd"
8013 if test "x${enable_esd}" = "xyes"
8015 # Extract the first word of "esd-config", so it can be a program name with args.
8016 set dummy esd-config; ac_word=$2
8017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8018 echo "configure:8019: checking for $ac_word" >&5
8019 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8022 case "$ESD_CONFIG" in
8024 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
8027 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
8030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8032 for ac_dir in $ac_dummy; do
8033 test -z "$ac_dir" && ac_dir=.
8034 if test -f $ac_dir/$ac_word; then
8035 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
8040 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
8044 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
8045 if test -n "$ESD_CONFIG"; then
8046 echo "$ac_t""$ESD_CONFIG" 1>&6
8048 echo "$ac_t""no" 1>&6
8051 if test "x${ESD_CONFIG}" != "xno"
8053 PLUGINS="${PLUGINS} audio_output/esd/esd"
8054 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
8055 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
8061 # Check whether --enable-arts or --disable-arts was given.
8062 if test "${enable_arts+set}" = set; then
8063 enableval="$enable_arts"
8064 if test "x${enable_arts}" = "xyes"
8066 # Extract the first word of "artsc-config", so it can be a program name with args.
8067 set dummy artsc-config; ac_word=$2
8068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8069 echo "configure:8070: checking for $ac_word" >&5
8070 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8073 case "$ARTS_CONFIG" in
8075 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8078 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8083 for ac_dir in $ac_dummy; do
8084 test -z "$ac_dir" && ac_dir=.
8085 if test -f $ac_dir/$ac_word; then
8086 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8091 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8095 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8096 if test -n "$ARTS_CONFIG"; then
8097 echo "$ac_t""$ARTS_CONFIG" 1>&6
8099 echo "$ac_t""no" 1>&6
8102 if test "x${ARTS_CONFIG}" != "xno"
8104 PLUGINS="${PLUGINS} audio_output/arts/arts"
8105 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8106 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8112 # Check whether --enable-alsa or --disable-alsa was given.
8113 if test "${enable_alsa+set}" = set; then
8114 enableval="$enable_alsa"
8115 if test "x${enable_alsa}" = "xyes"
8117 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8118 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8119 echo "configure:8120: checking for alsa/asoundlib.h" >&5
8120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8123 cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure"
8125 #include "confdefs.h"
8126 #include <alsa/asoundlib.h>
8128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8129 { (eval echo configure:8130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8131 if test -z "$ac_err"; then
8133 eval "ac_cv_header_$ac_safe=yes"
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8139 eval "ac_cv_header_$ac_safe=no"
8143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8144 echo "$ac_t""yes" 1>&6
8145 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8146 echo "configure:8147: checking for main in -lasound" >&5
8147 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8151 ac_save_LIBS="$LIBS"
8152 LIBS="-lasound $LIBS"
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 eval "ac_cv_lib_$ac_lib_var=yes"
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8168 eval "ac_cv_lib_$ac_lib_var=no"
8171 LIBS="$ac_save_LIBS"
8174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8175 echo "$ac_t""yes" 1>&6
8178 echo "$ac_t""no" 1>&6
8183 echo "$ac_t""no" 1>&6
8187 if test "x${have_alsa}" = "xtrue"
8189 PLUGINS="${PLUGINS} audio_output/alsa/alsa"
8190 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8196 # Check whether --enable-waveout or --disable-waveout was given.
8197 if test "${enable_waveout+set}" = set; then
8198 enableval="$enable_waveout"
8202 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8204 PLUGINS="${PLUGINS} audio_output/waveout/waveout"
8205 waveout_LDFLAGS="-lwinmm"
8209 # Check whether --with- or --without- was given.
8210 if test "${with_+set}" = set; then
8216 # Check whether --enable-gtk or --disable-gtk was given.
8217 if test "${enable_gtk+set}" = set; then
8218 enableval="$enable_gtk"
8222 if test "x${enable_gtk}" != "xno"
8225 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8226 if test "${with_gtk_config_path+set}" = set; then
8227 withval="$with_gtk_config_path"
8228 if test "x${with_gtk_config_path}" != "xno"
8230 GTK_PATH="${with_gtk_config_path}:${PATH}"
8234 # look for gtk-config
8235 # Extract the first word of "gtk12-config", so it can be a program name with args.
8236 set dummy gtk12-config; ac_word=$2
8237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8238 echo "configure:8239: checking for $ac_word" >&5
8239 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8242 case "$GTK12_CONFIG" in
8244 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8247 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8251 ac_dummy="${GTK_PATH}"
8252 for ac_dir in $ac_dummy; do
8253 test -z "$ac_dir" && ac_dir=.
8254 if test -f $ac_dir/$ac_word; then
8255 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8260 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8264 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8265 if test -n "$GTK12_CONFIG"; then
8266 echo "$ac_t""$GTK12_CONFIG" 1>&6
8268 echo "$ac_t""no" 1>&6
8271 GTK_CONFIG=${GTK12_CONFIG}
8272 if test "x${GTK_CONFIG}" = "xno"
8274 # Extract the first word of "gtk-config", so it can be a program name with args.
8275 set dummy gtk-config; ac_word=$2
8276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8277 echo "configure:8278: checking for $ac_word" >&5
8278 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8279 echo $ac_n "(cached) $ac_c" 1>&6
8281 case "$GTK_CONFIG" in
8283 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8286 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8290 ac_dummy="${GTK_PATH}"
8291 for ac_dir in $ac_dummy; do
8292 test -z "$ac_dir" && ac_dir=.
8293 if test -f $ac_dir/$ac_word; then
8294 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8299 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8303 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8304 if test -n "$GTK_CONFIG"; then
8305 echo "$ac_t""$GTK_CONFIG" 1>&6
8307 echo "$ac_t""no" 1>&6
8311 if test "x${GTK_CONFIG}" != "xno"
8313 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8315 { 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; }
8317 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8318 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8319 # now look for the gtk.h header
8320 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8321 ac_cv_gtk_headers=yes
8322 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8326 echo "configure:8327: checking for $ac_hdr" >&5
8327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8328 echo $ac_n "(cached) $ac_c" 1>&6
8330 cat > conftest.$ac_ext <<EOF
8331 #line 8332 "configure"
8332 #include "confdefs.h"
8335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8336 { (eval echo configure:8337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8338 if test -z "$ac_err"; then
8340 eval "ac_cv_header_$ac_safe=yes"
8343 echo "configure: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8346 eval "ac_cv_header_$ac_safe=no"
8350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8351 echo "$ac_t""yes" 1>&6
8352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8353 cat >> confdefs.h <<EOF
8354 #define $ac_tr_hdr 1
8358 echo "$ac_t""no" 1>&6
8359 ac_cv_gtk_headers=no
8360 echo "Cannot find gtk development headers."
8365 if test "x${ac_cv_gtk_headers}" = "xyes"
8367 PLUGINS="${PLUGINS} gui/gtk/gtk"
8368 ALIASES="${ALIASES} gvlc"
8370 CPPFLAGS="${save_CPPFLAGS}"
8374 # Check whether --enable-familiar or --disable-familiar was given.
8375 if test "${enable_familiar+set}" = set; then
8376 enableval="$enable_familiar"
8380 if test "x${enable_familiar}" = "xyes"
8383 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8384 if test "${with_gtk_config_path+set}" = set; then
8385 withval="$with_gtk_config_path"
8386 if test "x${with_gtk_config_path}" != "xno"
8388 GTK_PATH="${with_gtk_config_path}:${PATH}"
8392 # look for gtk-config
8393 # Extract the first word of "gtk12-config", so it can be a program name with args.
8394 set dummy gtk12-config; ac_word=$2
8395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8396 echo "configure:8397: checking for $ac_word" >&5
8397 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8398 echo $ac_n "(cached) $ac_c" 1>&6
8400 case "$GTK12_CONFIG" in
8402 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8405 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8409 ac_dummy="${GTK_PATH}"
8410 for ac_dir in $ac_dummy; do
8411 test -z "$ac_dir" && ac_dir=.
8412 if test -f $ac_dir/$ac_word; then
8413 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8418 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8422 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8423 if test -n "$GTK12_CONFIG"; then
8424 echo "$ac_t""$GTK12_CONFIG" 1>&6
8426 echo "$ac_t""no" 1>&6
8429 GTK_CONFIG=${GTK12_CONFIG}
8430 if test "x${GTK_CONFIG}" = "xno"
8432 # Extract the first word of "gtk-config", so it can be a program name with args.
8433 set dummy gtk-config; ac_word=$2
8434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8435 echo "configure:8436: checking for $ac_word" >&5
8436 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8437 echo $ac_n "(cached) $ac_c" 1>&6
8439 case "$GTK_CONFIG" in
8441 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8444 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8448 ac_dummy="${GTK_PATH}"
8449 for ac_dir in $ac_dummy; do
8450 test -z "$ac_dir" && ac_dir=.
8451 if test -f $ac_dir/$ac_word; then
8452 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8457 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8461 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8462 if test -n "$GTK_CONFIG"; then
8463 echo "$ac_t""$GTK_CONFIG" 1>&6
8465 echo "$ac_t""no" 1>&6
8469 if test "x${GTK_CONFIG}" != "xno"
8471 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8473 { 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; }
8475 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8476 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8477 # now look for the gtk.h header
8478 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8479 ac_cv_gtk_headers=yes
8480 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8484 echo "configure:8485: checking for $ac_hdr" >&5
8485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8486 echo $ac_n "(cached) $ac_c" 1>&6
8488 cat > conftest.$ac_ext <<EOF
8489 #line 8490 "configure"
8490 #include "confdefs.h"
8493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8494 { (eval echo configure:8495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8496 if test -z "$ac_err"; then
8498 eval "ac_cv_header_$ac_safe=yes"
8501 echo "configure: failed program was:" >&5
8502 cat conftest.$ac_ext >&5
8504 eval "ac_cv_header_$ac_safe=no"
8508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8509 echo "$ac_t""yes" 1>&6
8510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8511 cat >> confdefs.h <<EOF
8512 #define $ac_tr_hdr 1
8516 echo "$ac_t""no" 1>&6
8517 ac_cv_gtk_headers=no
8518 echo "Cannot find gtk development headers."
8523 if test "x${ac_cv_gtk_headers}" = "xyes"
8525 PLUGINS="${PLUGINS} gui/familiar/familiar"
8527 CPPFLAGS="${save_CPPFLAGS}"
8531 # Check whether --enable-gnome or --disable-gnome was given.
8532 if test "${enable_gnome+set}" = set; then
8533 enableval="$enable_gnome"
8534 if test "x${enable_gnome}" = "xyes"; then
8535 # look for gnome-config
8536 # Extract the first word of "gnome-config", so it can be a program name with args.
8537 set dummy gnome-config; ac_word=$2
8538 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8539 echo "configure:8540: checking for $ac_word" >&5
8540 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8541 echo $ac_n "(cached) $ac_c" 1>&6
8543 case "$GNOME_CONFIG" in
8545 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8548 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8553 for ac_dir in $ac_dummy; do
8554 test -z "$ac_dir" && ac_dir=.
8555 if test -f $ac_dir/$ac_word; then
8556 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8561 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8565 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8566 if test -n "$GNOME_CONFIG"; then
8567 echo "$ac_t""$GNOME_CONFIG" 1>&6
8569 echo "$ac_t""no" 1>&6
8572 if test -x ${GNOME_CONFIG}
8574 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8575 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8577 # now look for the gnome.h header
8578 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8579 for ac_hdr in gnome.h
8581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8583 echo "configure:8584: checking for $ac_hdr" >&5
8584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8585 echo $ac_n "(cached) $ac_c" 1>&6
8587 cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8593 { (eval echo configure:8594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8595 if test -z "$ac_err"; then
8597 eval "ac_cv_header_$ac_safe=yes"
8600 echo "configure: failed program was:" >&5
8601 cat conftest.$ac_ext >&5
8603 eval "ac_cv_header_$ac_safe=no"
8607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8608 echo "$ac_t""yes" 1>&6
8609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8610 cat >> confdefs.h <<EOF
8611 #define $ac_tr_hdr 1
8614 PLUGINS="${PLUGINS} gui/gtk/gnome"
8615 ALIASES="${ALIASES} gnome-vlc"
8618 echo "$ac_t""no" 1>&6
8619 { echo "configure: error: Can't find gnome headers. Please install the gnome
8620 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8625 CPPFLAGS="${save_CPPFLAGS}"
8630 # Check whether --enable-qt or --disable-qt was given.
8631 if test "${enable_qt+set}" = set; then
8632 enableval="$enable_qt"
8633 if test "x${enable_qt}" = "xyes"; then
8634 PLUGINS="${PLUGINS} gui/qt/qt"
8635 ALIASES="${ALIASES} qvlc"
8636 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8637 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8638 if test -x ${QTDIR}/bin/moc
8640 MOC=${QTDIR}/bin/moc
8648 # Check whether --enable-kde or --disable-kde was given.
8649 if test "${enable_kde+set}" = set; then
8650 enableval="$enable_kde"
8651 if test "x${enable_kde}" = "xyes"; then
8652 PLUGINS="${PLUGINS} gui/kde/kde"
8653 ALIASES="${ALIASES} kvlc"
8654 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8655 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8656 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8657 if test -x ${QTDIR}/bin/moc
8659 MOC=${QTDIR}/bin/moc
8667 # Check whether --enable-macosx or --disable-macosx was given.
8668 if test "${enable_macosx+set}" = set; then
8669 enableval="$enable_macosx"
8670 if test "x${enable_macosx}" = "xyes"
8672 BUILTINS="${BUILTINS} gui/macosx/macosx"
8673 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8676 for ac_hdr in Cocoa/Cocoa.h
8678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8680 echo "configure:8681: checking for $ac_hdr" >&5
8681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8684 cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8690 { (eval echo configure:8691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8692 if test -z "$ac_err"; then
8694 eval "ac_cv_header_$ac_safe=yes"
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8700 eval "ac_cv_header_$ac_safe=no"
8704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8705 echo "$ac_t""yes" 1>&6
8706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8707 cat >> confdefs.h <<EOF
8708 #define $ac_tr_hdr 1
8710 BUILTINS="${BUILTINS} gui/macosx/macosx"
8711 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8714 echo "$ac_t""no" 1>&6
8721 # Check whether --enable-qnx or --disable-qnx was given.
8722 if test "${enable_qnx+set}" = set; then
8723 enableval="$enable_qnx"
8727 if test "x${enable_qnx}" != "xno"
8731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8733 echo "configure:8734: checking for $ac_hdr" >&5
8734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8735 echo $ac_n "(cached) $ac_c" 1>&6
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8743 { (eval echo configure:8744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8745 if test -z "$ac_err"; then
8747 eval "ac_cv_header_$ac_safe=yes"
8750 echo "configure: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8753 eval "ac_cv_header_$ac_safe=no"
8757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8758 echo "$ac_t""yes" 1>&6
8759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8760 cat >> confdefs.h <<EOF
8761 #define $ac_tr_hdr 1
8764 PLUGINS="${PLUGINS} gui/qnx/qnx"
8765 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8768 echo "$ac_t""no" 1>&6
8774 # Check whether --enable-intfwin or --disable-intfwin was given.
8775 if test "${enable_intfwin+set}" = set; then
8776 enableval="$enable_intfwin"
8777 if test "x${enable_intfwin}" != "xno"
8779 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8780 if test "${with_bcbuilder+set}" = set; then
8781 withval="$with_bcbuilder"
8785 if test "x${with_bcbuilder}" != "x"
8787 BCBUILDER="${with_bcbuilder}"
8789 PLUGINS="${PLUGINS} gui/win32/win32"
8794 # Check whether --enable-ncurses or --disable-ncurses was given.
8795 if test "${enable_ncurses+set}" = set; then
8796 enableval="$enable_ncurses"
8797 if test "x${enable_ncurses}" = "xyes"; then
8798 PLUGINS="${PLUGINS} gui/ncurses/ncurses"
8799 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8804 # Check whether --enable-xosd or --disable-xosd was given.
8805 if test "${enable_xosd+set}" = set; then
8806 enableval="$enable_xosd"
8810 if test "x${enable_xosd}" = "xyes"
8812 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8813 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8814 echo "configure:8815: checking for xosd.h" >&5
8815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8816 echo $ac_n "(cached) $ac_c" 1>&6
8818 cat > conftest.$ac_ext <<EOF
8819 #line 8820 "configure"
8820 #include "confdefs.h"
8823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8824 { (eval echo configure:8825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8826 if test -z "$ac_err"; then
8828 eval "ac_cv_header_$ac_safe=yes"
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8834 eval "ac_cv_header_$ac_safe=no"
8838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8839 echo "$ac_t""yes" 1>&6
8842 echo "$ac_t""no" 1>&6
8846 if test "x${have_xosd}" = "xtrue"
8848 PLUGINS="${PLUGINS} visualization/xosd/xosd"
8849 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8853 # Check whether --enable-lirc or --disable-lirc was given.
8854 if test "${enable_lirc+set}" = set; then
8855 enableval="$enable_lirc"
8859 if test "x${enable_lirc}" = "xyes"
8861 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8862 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8863 echo "configure:8864: checking for lirc/lirc_client.h" >&5
8864 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8865 echo $ac_n "(cached) $ac_c" 1>&6
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 #include <lirc/lirc_client.h>
8872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8873 { (eval echo configure:8874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8875 if test -z "$ac_err"; then
8877 eval "ac_cv_header_$ac_safe=yes"
8880 echo "configure: failed program was:" >&5
8881 cat conftest.$ac_ext >&5
8883 eval "ac_cv_header_$ac_safe=no"
8887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8888 echo "$ac_t""yes" 1>&6
8889 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8890 echo "configure:8891: checking for lirc_init in -llirc_client" >&5
8891 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8893 echo $ac_n "(cached) $ac_c" 1>&6
8895 ac_save_LIBS="$LIBS"
8896 LIBS="-llirc_client $LIBS"
8897 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8900 /* Override any gcc2 internal prototype to avoid an error. */
8901 /* We use char because int might match the return type of a gcc2
8902 builtin and then its argument prototype would still apply. */
8909 if { (eval echo configure:8910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8911 eval "ac_cv_lib_$ac_lib_var=yes"
8913 echo "configure: failed program was:" >&5
8914 cat conftest.$ac_ext >&5
8916 eval "ac_cv_lib_$ac_lib_var=no"
8919 LIBS="$ac_save_LIBS"
8922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8923 echo "$ac_t""yes" 1>&6
8926 echo "$ac_t""no" 1>&6
8931 echo "$ac_t""no" 1>&6
8935 if test "x${have_lirc}" = "xtrue"
8937 PLUGINS="${PLUGINS} control/lirc/lirc"
8938 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8942 # Check whether --with- or --without- was given.
8943 if test "${with_+set}" = set; then
8949 # Check whether --with-words or --without-words was given.
8950 if test "${with_words+set}" = set; then
8951 withval="$with_words"
8955 case "x${with_words}" in
8957 ac_cv_c_bigendian=yes
8960 ac_cv_c_bigendian=no
8963 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8964 echo "configure:8965: checking whether the byte order is big-endian" >&5
8965 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8966 echo $ac_n "(cached) $ac_c" 1>&6
8968 ac_cv_c_bigendian="unknown"
8969 cat >conftest.c <<EOF
8970 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8971 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8972 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8973 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8974 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8975 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8976 int main(void) { _a(); _e(); return 0; }
8979 if test -f conftest.c
8981 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8982 && test -f conftest.o
8984 if test "`strings conftest.o | grep BIGenDianSyS`"
8986 ac_cv_c_bigendian="yes"
8988 if test "`strings conftest.o | grep LiTTleEnDian`"
8990 ac_cv_c_bigendian="no"
8997 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8998 if test "x${ac_cv_c_bigendian}" = "xunknown"
9000 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
9004 if test "${ac_cv_c_bigendian}" = "yes"
9006 cat >> confdefs.h <<\EOF
9007 #define WORDS_BIGENDIAN 1
9015 # Check whether --enable-gprof or --disable-gprof was given.
9016 if test "${enable_gprof+set}" = set; then
9017 enableval="$enable_gprof"
9018 if test "x${enable_gprof}" = "xyes"
9028 # Check whether --enable-cprof or --disable-cprof was given.
9029 if test "${enable_cprof+set}" = set; then
9030 enableval="$enable_cprof"
9031 if test "x${enable_cprof}" = "xyes"
9033 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
9041 # Check whether --enable-pth or --disable-pth was given.
9042 if test "${enable_pth+set}" = set; then
9043 enableval="$enable_pth"
9044 if test "x${enable_pth}" = "xyes"; then
9045 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
9046 echo "configure:9047: checking for pth_init in -lpth" >&5
9047 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
9048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9051 ac_save_LIBS="$LIBS"
9053 cat > conftest.$ac_ext <<EOF
9054 #line 9055 "configure"
9055 #include "confdefs.h"
9056 /* Override any gcc2 internal prototype to avoid an error. */
9057 /* We use char because int might match the return type of a gcc2
9058 builtin and then its argument prototype would still apply. */
9065 if { (eval echo configure:9066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9067 eval "ac_cv_lib_$ac_lib_var=yes"
9069 echo "configure: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9072 eval "ac_cv_lib_$ac_lib_var=no"
9075 LIBS="$ac_save_LIBS"
9078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9079 echo "$ac_t""yes" 1>&6
9080 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9081 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9082 cat >> confdefs.h <<EOF
9083 #define $ac_tr_lib 1
9089 echo "$ac_t""no" 1>&6
9092 cat > conftest.$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9098 egrep "pth_init" >/dev/null 2>&1; then
9101 cat >> confdefs.h <<\EOF
9102 #define PTH_INIT_IN_PTH_H 1
9114 # Check whether --enable-st or --disable-st was given.
9115 if test "${enable_st+set}" = set; then
9116 enableval="$enable_st"
9117 if test "x${enable_st}" = "xyes"; then
9118 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9119 echo "configure:9120: checking for st_init in -lst" >&5
9120 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9124 ac_save_LIBS="$LIBS"
9126 cat > conftest.$ac_ext <<EOF
9127 #line 9128 "configure"
9128 #include "confdefs.h"
9129 /* Override any gcc2 internal prototype to avoid an error. */
9130 /* We use char because int might match the return type of a gcc2
9131 builtin and then its argument prototype would still apply. */
9138 if { (eval echo configure:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9140 eval "ac_cv_lib_$ac_lib_var=yes"
9142 echo "configure: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9145 eval "ac_cv_lib_$ac_lib_var=no"
9148 LIBS="$ac_save_LIBS"
9151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9152 echo "$ac_t""yes" 1>&6
9153 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9154 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9155 cat >> confdefs.h <<EOF
9156 #define $ac_tr_lib 1
9162 echo "$ac_t""no" 1>&6
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9171 egrep "st_init" >/dev/null 2>&1; then
9174 cat >> confdefs.h <<\EOF
9175 #define ST_INIT_IN_ST_H 1
9187 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9188 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9191 # Check whether --enable-mozilla or --disable-mozilla was given.
9192 if test "${enable_mozilla+set}" = set; then
9193 enableval="$enable_mozilla"
9197 if test "x${enable_mozilla}" = "xyes"
9199 # Extract the first word of "mozilla-config", so it can be a program name with args.
9200 set dummy mozilla-config; ac_word=$2
9201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9202 echo "configure:9203: checking for $ac_word" >&5
9203 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9204 echo $ac_n "(cached) $ac_c" 1>&6
9206 case "$MOZILLA_CONFIG" in
9208 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9211 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9216 for ac_dir in $ac_dummy; do
9217 test -z "$ac_dir" && ac_dir=.
9218 if test -f $ac_dir/$ac_word; then
9219 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9224 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9228 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9229 if test -n "$MOZILLA_CONFIG"; then
9230 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9232 echo "$ac_t""no" 1>&6
9235 if test "x${MOZILLA_CONFIG}" != "xno"
9237 if test "x${SYS}" != "xmingw32"; then
9238 LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9239 echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9240 echo "configure:9241: checking for XtStrings in -lXt" >&5
9241 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9243 echo $ac_n "(cached) $ac_c" 1>&6
9245 ac_save_LIBS="$LIBS"
9247 cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure"
9249 #include "confdefs.h"
9250 /* Override any gcc2 internal prototype to avoid an error. */
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9259 if { (eval echo configure:9260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9261 eval "ac_cv_lib_$ac_lib_var=yes"
9263 echo "configure: failed program was:" >&5
9264 cat conftest.$ac_ext >&5
9266 eval "ac_cv_lib_$ac_lib_var=no"
9269 LIBS="$ac_save_LIBS"
9272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9273 echo "$ac_t""yes" 1>&6
9275 mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9278 echo "$ac_t""no" 1>&6
9281 LDFLAGS="${save_LDFLAGS}"
9284 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9285 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9289 # Check whether --enable-plugins or --disable-plugins was given.
9290 if test "${enable_plugins+set}" = set; then
9291 enableval="$enable_plugins"
9292 if test "x${enable_plugins}" = "xno"
9294 BUILTINS="${BUILTINS} ${PLUGINS}"
9300 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9302 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9304 BUILTINS="${BUILTINS} ${PLUGINS}"
9308 cat >> confdefs.h <<EOF
9309 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9312 cat >> confdefs.h <<EOF
9313 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9316 cat >> confdefs.h <<EOF
9317 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9321 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9322 cat >> confdefs.h <<EOF
9323 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9326 cat >> confdefs.h <<EOF
9327 #define MODULE_SYMBOL ${VLC_SYMBOL}
9331 DATA_PATH="${ac_tool_prefix}/share/videolan"
9333 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9336 CPPFLAGS="${save_CPPFLAGS}"
9337 CFLAGS="${save_CFLAGS}"
9338 LDFLAGS="${save_LDFLAGS}"
9340 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9341 for i in ${BUILTINS} ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9451 cat > confcache <<\EOF
9452 # This file is a shell script that caches the results of configure
9453 # tests run on this system so they can be shared between configure
9454 # scripts and configure runs. It is not useful on other systems.
9455 # If it contains results you don't want to keep, you may remove or edit it.
9457 # By default, configure uses ./config.cache as the cache file,
9458 # creating it if it does not exist already. You can give configure
9459 # the --cache-file=FILE option to use a different cache file; that is
9460 # what configure does when it calls configure scripts in
9461 # subdirectories, so they share the cache.
9462 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9463 # config.status only pays attention to the cache file if you give it the
9464 # --recheck option to rerun configure.
9467 # The following way of writing the cache mishandles newlines in values,
9468 # but we know of no workaround that is simple, portable, and efficient.
9469 # So, don't put newlines in cache variables' values.
9470 # Ultrix sh set writes to stderr and can't be redirected directly,
9471 # and sets the high bit in the cache file unless we assign to the vars.
9473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9475 # `set' does not quote correctly, so add quotes (double-quote substitution
9476 # turns \\\\ into \\, and sed turns \\ into \).
9478 -e "s/'/'\\\\''/g" \
9479 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9482 # `set' quotes correctly as required by POSIX, so do not add quotes.
9483 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9486 if cmp -s $cache_file confcache; then
9489 if test -w $cache_file; then
9490 echo "updating cache $cache_file"
9491 cat confcache > $cache_file
9493 echo "not updating unwritable cache $cache_file"
9498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9500 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9501 # Let make expand exec_prefix.
9502 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9504 # Any assignment to VPATH causes Sun make to only execute
9505 # the first set of double-colon rules, so remove it if not needed.
9506 # If there is a colon in the path, we need to keep it.
9507 if test "x$srcdir" = x.; then
9508 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9511 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9513 DEFS=-DHAVE_CONFIG_H
9515 # Without the "./", some shells look in PATH for config.status.
9516 : ${CONFIG_STATUS=./config.status}
9518 echo creating $CONFIG_STATUS
9519 rm -f $CONFIG_STATUS
9520 cat > $CONFIG_STATUS <<EOF
9522 # Generated automatically by configure.
9523 # Run this file to recreate the current configuration.
9524 # This directory was configured as follows,
9525 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9527 # $0 $ac_configure_args
9529 # Compiler output produced by configure, useful for debugging
9530 # configure, is in ./config.log if it exists.
9532 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9535 case "\$ac_option" in
9536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9537 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9538 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9539 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9540 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9542 -help | --help | --hel | --he | --h)
9543 echo "\$ac_cs_usage"; exit 0 ;;
9544 *) echo "\$ac_cs_usage"; exit 1 ;;
9548 ac_given_srcdir=$srcdir
9549 ac_given_INSTALL="$INSTALL"
9551 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
9553 cat >> $CONFIG_STATUS <<EOF
9555 # Protect against being on the right side of a sed subst in config.status.
9556 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9557 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9561 s%@CFLAGS@%$CFLAGS%g
9562 s%@CPPFLAGS@%$CPPFLAGS%g
9563 s%@CXXFLAGS@%$CXXFLAGS%g
9564 s%@FFLAGS@%$FFLAGS%g
9566 s%@LDFLAGS@%$LDFLAGS%g
9568 s%@exec_prefix@%$exec_prefix%g
9569 s%@prefix@%$prefix%g
9570 s%@program_transform_name@%$program_transform_name%g
9571 s%@bindir@%$bindir%g
9572 s%@sbindir@%$sbindir%g
9573 s%@libexecdir@%$libexecdir%g
9574 s%@datadir@%$datadir%g
9575 s%@sysconfdir@%$sysconfdir%g
9576 s%@sharedstatedir@%$sharedstatedir%g
9577 s%@localstatedir@%$localstatedir%g
9578 s%@libdir@%$libdir%g
9579 s%@includedir@%$includedir%g
9580 s%@oldincludedir@%$oldincludedir%g
9581 s%@infodir@%$infodir%g
9582 s%@mandir@%$mandir%g
9584 s%@host_alias@%$host_alias%g
9585 s%@host_cpu@%$host_cpu%g
9586 s%@host_vendor@%$host_vendor%g
9587 s%@host_os@%$host_os%g
9588 s%@target@%$target%g
9589 s%@target_alias@%$target_alias%g
9590 s%@target_cpu@%$target_cpu%g
9591 s%@target_vendor@%$target_vendor%g
9592 s%@target_os@%$target_os%g
9594 s%@build_alias@%$build_alias%g
9595 s%@build_cpu@%$build_cpu%g
9596 s%@build_vendor@%$build_vendor%g
9597 s%@build_os@%$build_os%g
9598 s%@SET_MAKE@%$SET_MAKE%g
9601 s%@RANLIB@%$RANLIB%g
9604 s%@ALLOCA@%$ALLOCA%g
9605 s%@GLIBC21@%$GLIBC21%g
9606 s%@LIBICONV@%$LIBICONV%g
9607 s%@USE_NLS@%$USE_NLS%g
9608 s%@MSGFMT@%$MSGFMT%g
9609 s%@GMSGFMT@%$GMSGFMT%g
9610 s%@XGETTEXT@%$XGETTEXT%g
9611 s%@INTLBISON@%$INTLBISON%g
9612 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9613 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9614 s%@CATALOGS@%$CATALOGS%g
9615 s%@CATOBJEXT@%$CATOBJEXT%g
9616 s%@GMOFILES@%$GMOFILES%g
9617 s%@INTLLIBS@%$INTLLIBS%g
9618 s%@INTLOBJS@%$INTLOBJS%g
9619 s%@POFILES@%$POFILES%g
9621 s%@DATADIRNAME@%$DATADIRNAME%g
9622 s%@INSTOBJEXT@%$INSTOBJEXT%g
9623 s%@GENCAT@%$GENCAT%g
9624 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9625 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9626 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9627 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9628 s%@INSTALL_DATA@%$INSTALL_DATA%g
9629 s%@WINDRES@%$WINDRES%g
9630 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9631 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9632 s%@SDL_CONFIG@%$SDL_CONFIG%g
9633 s%@ESD_CONFIG@%$ESD_CONFIG%g
9634 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9635 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9636 s%@GTK_CONFIG@%$GTK_CONFIG%g
9637 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9638 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9639 s%@DATA_PATH@%$DATA_PATH%g
9640 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9641 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
9644 s%@PLUGINS@%$PLUGINS%g
9645 s%@BUILTINS@%$BUILTINS%g
9646 s%@ALIASES@%$ALIASES%g
9651 s%@OPTIMS@%$OPTIMS%g
9652 s%@TUNING@%$TUNING%g
9653 s%@RELEASE@%$RELEASE%g
9655 s%@BCBUILDER@%$BCBUILDER%g
9656 s%@PACKAGE@%$PACKAGE%g
9657 s%@VERSION@%$VERSION%g
9658 s%@NEED_GETOPT@%$NEED_GETOPT%g
9659 s%@MOZILLA@%$MOZILLA%g
9660 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9661 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9662 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9663 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9664 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9665 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
9666 s%@a52_CFLAGS@%$a52_CFLAGS%g
9667 s%@arts_CFLAGS@%$arts_CFLAGS%g
9668 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
9669 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9670 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9671 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
9672 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
9673 s%@directx_CFLAGS@%$directx_CFLAGS%g
9674 s%@esd_CFLAGS@%$esd_CFLAGS%g
9675 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
9676 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9677 s%@glide_CFLAGS@%$glide_CFLAGS%g
9678 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9679 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9680 s%@kde_CFLAGS@%$kde_CFLAGS%g
9681 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9682 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9683 s%@mad_CFLAGS@%$mad_CFLAGS%g
9684 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9685 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9686 s%@qt_CFLAGS@%$qt_CFLAGS%g
9687 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9688 s%@x11_CFLAGS@%$x11_CFLAGS%g
9689 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9690 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9691 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9692 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9693 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
9694 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9695 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9696 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9697 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9698 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9699 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
9700 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9701 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9702 s%@dv_LDFLAGS@%$dv_LDFLAGS%g
9703 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9704 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9705 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
9706 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
9707 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9708 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
9709 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
9710 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9711 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
9712 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9713 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9714 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9715 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9716 s%@http_LDFLAGS@%$http_LDFLAGS%g
9717 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9718 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9719 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9720 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9721 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9722 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9723 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9724 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9725 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9726 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9727 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9728 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9729 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9730 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9731 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9732 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9733 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9734 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9735 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9736 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9737 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9738 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9739 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9744 cat >> $CONFIG_STATUS <<\EOF
9746 # Split the substitutions into bite-sized pieces for seds with
9747 # small command number limits, like on Digital OSF/1 and HP-UX.
9748 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9749 ac_file=1 # Number of current file.
9750 ac_beg=1 # First line for current file.
9751 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9754 while $ac_more_lines; do
9755 if test $ac_beg -gt 1; then
9756 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9758 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9760 if test ! -s conftest.s$ac_file; then
9762 rm -f conftest.s$ac_file
9764 if test -z "$ac_sed_cmds"; then
9765 ac_sed_cmds="sed -f conftest.s$ac_file"
9767 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9769 ac_file=`expr $ac_file + 1`
9771 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9774 if test -z "$ac_sed_cmds"; then
9779 cat >> $CONFIG_STATUS <<EOF
9781 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
9783 cat >> $CONFIG_STATUS <<\EOF
9784 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9787 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9788 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9789 *) ac_file_in="${ac_file}.in" ;;
9792 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9794 # Remove last slash and all that follows it. Not all systems have dirname.
9795 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9796 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9797 # The file is in a subdirectory.
9798 test ! -d "$ac_dir" && mkdir "$ac_dir"
9799 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9800 # A "../" for each directory in $ac_dir_suffix.
9801 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9803 ac_dir_suffix= ac_dots=
9806 case "$ac_given_srcdir" in
9808 if test -z "$ac_dots"; then top_srcdir=.
9809 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9810 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9812 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9813 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9816 case "$ac_given_INSTALL" in
9817 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9818 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9821 echo creating "$ac_file"
9823 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9825 *Makefile*) ac_comsub="1i\\
9826 # $configure_input" ;;
9830 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9832 s%@configure_input@%$configure_input%g
9833 s%@srcdir@%$srcdir%g
9834 s%@top_srcdir@%$top_srcdir%g
9835 s%@INSTALL@%$INSTALL%g
9836 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9840 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9841 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9843 # ac_d sets the value in "#define NAME VALUE" lines.
9844 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9845 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9848 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9849 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9850 ac_uB='\([ ]\)%\1#\2define\3'
9853 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9854 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9855 ac_eB='$%\1#\2define\3'
9859 if test "${CONFIG_HEADERS+set}" != set; then
9861 cat >> $CONFIG_STATUS <<EOF
9862 CONFIG_HEADERS="include/defs.h"
9864 cat >> $CONFIG_STATUS <<\EOF
9866 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9869 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9870 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9871 *) ac_file_in="${ac_file}.in" ;;
9874 echo creating $ac_file
9876 rm -f conftest.frag conftest.in conftest.out
9877 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9878 cat $ac_file_inputs > conftest.in
9882 # Transform confdefs.h into a sed script conftest.vals that substitutes
9883 # the proper values into config.h.in to produce config.h. And first:
9884 # Protect against being on the right side of a sed subst in config.status.
9885 # Protect against being in an unquoted here document in config.status.
9887 cat > conftest.hdr <<\EOF
9890 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9894 sed -n -f conftest.hdr confdefs.h > conftest.vals
9897 # This sed command replaces #undef with comments. This is necessary, for
9898 # example, in the case of _POSIX_SOURCE, which is predefined and required
9899 # on some systems where configure will not decide to define it.
9900 cat >> conftest.vals <<\EOF
9901 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9904 # Break up conftest.vals because some shells have a limit on
9905 # the size of here documents, and old seds have small limits too.
9910 ac_lines=`grep -c . conftest.vals`
9911 # grep -c gives empty output for an empty file on some AIX systems.
9912 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9913 # Write a limited-size here document to conftest.frag.
9914 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9915 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9917 sed -f conftest.frag conftest.in > conftest.out
9919 mv conftest.out conftest.in
9921 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9923 mv conftest.tail conftest.vals
9927 cat >> $CONFIG_STATUS <<\EOF
9928 rm -f conftest.frag conftest.h
9929 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9930 cat conftest.in >> conftest.h
9932 if cmp -s $ac_file conftest.h 2>/dev/null; then
9933 echo "$ac_file is unchanged"
9936 # Remove last slash and all that follows it. Not all systems have dirname.
9937 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9938 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9939 # The file is in a subdirectory.
9940 test ! -d "$ac_dir" && mkdir "$ac_dir"
9943 mv conftest.h $ac_file
9948 cat >> $CONFIG_STATUS <<EOF
9952 cat >> $CONFIG_STATUS <<\EOF
9953 for ac_file in $CONFIG_FILES; do
9954 # Support "outfile[:infile[:infile...]]"
9956 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9958 # PO directories have a Makefile.in generated from Makefile.in.in.
9959 case "$ac_file" in */Makefile.in)
9960 # Adjust a relative srcdir.
9961 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9962 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9963 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9964 # In autoconf-2.13 it is called $ac_given_srcdir.
9965 # In autoconf-2.50 it is called $srcdir.
9966 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9967 case "$ac_given_srcdir" in
9968 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9969 /*) top_srcdir="$ac_given_srcdir" ;;
9970 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9972 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9973 rm -f "$ac_dir/POTFILES"
9974 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9975 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9976 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9977 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9985 chmod +x $CONFIG_STATUS
9986 rm -fr confdefs* $ac_clean_files
9987 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9989 chmod a+x vlc-config
9993 --------------------
9994 vlc version : ${VERSION}
9996 architecture : ${ARCH}
9997 optimizations : ${OPTIMS}
9999 debug mode : ${DEBUG}
10000 release : ${RELEASE}
10001 profiling : ${PROFILING}
10002 need builtin getopt : ${NEED_GETOPT}
10003 built-in modules :${BUILTINS}
10004 plug-in modules :${PLUGINS}
10005 mozilla plugin : ${MOZILLA}
10006 vlc aliases :${ALIASES}
10008 You may now tune Makefile.opts at your convenience, for instance to choose
10009 which modules get compiled as plugins.
10011 To build vlc and its plugins, type \`${VLC_MAKE}'.