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)"
90 --enable-x11 X11 support (default enabled)"
92 --enable-xvideo XVideo support (default enabled)"
94 --enable-sdl SDL support (default enabled)"
96 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
98 --enable-directx Win32 DirectX support (default enabled on Win32)"
100 --with-directx=PATH Win32 DirectX headers"
102 --enable-fb Linux framebuffer support (default enabled on Linux)"
104 --enable-mga Linux kernel Matrox support (default disabled)"
106 --enable-ggi GGI support (default disabled)"
108 --with-ggi=PATH path to libggi"
110 --enable-glide Glide (3dfx) support (default disabled)"
112 --with-glide=PATH path to libglide"
114 --enable-aa aalib output (default disabled)"
118 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
120 --enable-esd Esound library support (default disabled)"
122 --enable-arts aRts sound server (default disabled)"
124 --enable-alsa ALSA sound support for Linux (default disabled)"
126 --enable-waveout Win32 waveOut module (default enabled on Win32)"
130 --enable-gtk Gtk+ support (default enabled)"
132 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
134 --enable-familiar Familiar Gtk+ support (default disabled)"
136 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
138 --enable-gnome Gnome interface support (default disabled)"
140 --enable-qt Qt interface support (default disabled)"
142 --enable-kde KDE interface support (default disabled)"
144 --enable-macosx MacOS X support (default enabled on MacOS X)"
146 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
148 --enable-intfwin Win32 interface support (default disabled)"
150 --with-bcbuilder=PATH Borland C++ Builder installation path"
152 --enable-ncurses ncurses interface support (default disabled)"
154 --enable-xosd xosd interface support (default disabled)"
156 --enable-lirc lirc support (default disabled)"
160 --with-words=endianness set endianness (big or little)"
162 --enable-gprof gprof profiling (default disabled)"
164 --enable-cprof cprof profiling (default disabled)"
166 --enable-pth GNU Pth support (default disabled)"
168 --enable-st State Threads (default disabled)"
170 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
172 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
174 # Initialize some variables set by options.
175 # The variables have the same names as the options, with
176 # dashes changed to underlines.
178 cache_file=./config.cache
187 program_transform_name=s,x,x,
195 bindir='${exec_prefix}/bin'
196 sbindir='${exec_prefix}/sbin'
197 libexecdir='${exec_prefix}/libexec'
198 datadir='${prefix}/share'
199 sysconfdir='${prefix}/etc'
200 sharedstatedir='${prefix}/com'
201 localstatedir='${prefix}/var'
202 libdir='${exec_prefix}/lib'
203 includedir='${prefix}/include'
204 oldincludedir='/usr/include'
205 infodir='${prefix}/info'
206 mandir='${prefix}/man'
208 # Initialize some other variables.
211 SHELL=${CONFIG_SHELL-/bin/sh}
212 # Maximum number of lines to put in a shell here document.
219 # If the previous option needs an argument, assign it.
220 if test -n "$ac_prev"; then
221 eval "$ac_prev=\$ac_option"
227 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
231 # Accept the important Cygnus configure options, so we can diagnose typos.
235 -bindir | --bindir | --bindi | --bind | --bin | --bi)
237 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
238 bindir="$ac_optarg" ;;
240 -build | --build | --buil | --bui | --bu)
242 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
243 build="$ac_optarg" ;;
245 -cache-file | --cache-file | --cache-fil | --cache-fi \
246 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
247 ac_prev=cache_file ;;
248 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
249 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
250 cache_file="$ac_optarg" ;;
252 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
254 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
256 datadir="$ac_optarg" ;;
258 -disable-* | --disable-*)
259 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
260 # Reject names that are not valid shell variable names.
261 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
262 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
264 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
265 eval "enable_${ac_feature}=no" ;;
267 -enable-* | --enable-*)
268 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
269 # Reject names that are not valid shell variable names.
270 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
271 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
273 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
278 eval "enable_${ac_feature}='$ac_optarg'" ;;
280 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
281 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
282 | --exec | --exe | --ex)
283 ac_prev=exec_prefix ;;
284 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
285 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
286 | --exec=* | --exe=* | --ex=*)
287 exec_prefix="$ac_optarg" ;;
289 -gas | --gas | --ga | --g)
290 # Obsolete; use --with-gas.
293 -help | --help | --hel | --he)
294 # Omit some internal or obsolete options to make the list less imposing.
295 # This message is too long to be a string in the A/UX 3.1 sh.
297 Usage: configure [options] [host]
298 Options: [defaults in brackets after descriptions]
300 --cache-file=FILE cache test results in FILE
301 --help print this message
302 --no-create do not create output files
303 --quiet, --silent do not print \`checking...' messages
304 --version print the version of autoconf that created configure
305 Directory and file names:
306 --prefix=PREFIX install architecture-independent files in PREFIX
308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
310 --bindir=DIR user executables in DIR [EPREFIX/bin]
311 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
312 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
313 --datadir=DIR read-only architecture-independent data in DIR
315 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
316 --sharedstatedir=DIR modifiable architecture-independent data in DIR
318 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
319 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
320 --includedir=DIR C header files in DIR [PREFIX/include]
321 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
322 --infodir=DIR info documentation in DIR [PREFIX/info]
323 --mandir=DIR man documentation in DIR [PREFIX/man]
324 --srcdir=DIR find the sources in DIR [configure dir or ..]
325 --program-prefix=PREFIX prepend PREFIX to installed program names
326 --program-suffix=SUFFIX append SUFFIX to installed program names
327 --program-transform-name=PROGRAM
328 run sed PROGRAM on installed program names
332 --build=BUILD configure for building on BUILD [BUILD=HOST]
333 --host=HOST configure for HOST [guessed]
334 --target=TARGET configure for TARGET [TARGET=HOST]
335 Features and packages:
336 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
337 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
340 --x-includes=DIR X include files are in DIR
341 --x-libraries=DIR X library files are in DIR
343 if test -n "$ac_help"; then
344 echo "--enable and --with options recognized:$ac_help"
348 -host | --host | --hos | --ho)
350 -host=* | --host=* | --hos=* | --ho=*)
353 -includedir | --includedir | --includedi | --included | --include \
354 | --includ | --inclu | --incl | --inc)
355 ac_prev=includedir ;;
356 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
357 | --includ=* | --inclu=* | --incl=* | --inc=*)
358 includedir="$ac_optarg" ;;
360 -infodir | --infodir | --infodi | --infod | --info | --inf)
362 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
363 infodir="$ac_optarg" ;;
365 -libdir | --libdir | --libdi | --libd)
367 -libdir=* | --libdir=* | --libdi=* | --libd=*)
368 libdir="$ac_optarg" ;;
370 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
371 | --libexe | --libex | --libe)
372 ac_prev=libexecdir ;;
373 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
374 | --libexe=* | --libex=* | --libe=*)
375 libexecdir="$ac_optarg" ;;
377 -localstatedir | --localstatedir | --localstatedi | --localstated \
378 | --localstate | --localstat | --localsta | --localst \
379 | --locals | --local | --loca | --loc | --lo)
380 ac_prev=localstatedir ;;
381 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
382 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
383 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
384 localstatedir="$ac_optarg" ;;
386 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
388 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
389 mandir="$ac_optarg" ;;
392 # Obsolete; use --without-fp.
395 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
399 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
400 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
403 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
404 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
405 | --oldin | --oldi | --old | --ol | --o)
406 ac_prev=oldincludedir ;;
407 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
408 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
409 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
410 oldincludedir="$ac_optarg" ;;
412 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
414 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
415 prefix="$ac_optarg" ;;
417 -program-prefix | --program-prefix | --program-prefi | --program-pref \
418 | --program-pre | --program-pr | --program-p)
419 ac_prev=program_prefix ;;
420 -program-prefix=* | --program-prefix=* | --program-prefi=* \
421 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
422 program_prefix="$ac_optarg" ;;
424 -program-suffix | --program-suffix | --program-suffi | --program-suff \
425 | --program-suf | --program-su | --program-s)
426 ac_prev=program_suffix ;;
427 -program-suffix=* | --program-suffix=* | --program-suffi=* \
428 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
429 program_suffix="$ac_optarg" ;;
431 -program-transform-name | --program-transform-name \
432 | --program-transform-nam | --program-transform-na \
433 | --program-transform-n | --program-transform- \
434 | --program-transform | --program-transfor \
435 | --program-transfo | --program-transf \
436 | --program-trans | --program-tran \
437 | --progr-tra | --program-tr | --program-t)
438 ac_prev=program_transform_name ;;
439 -program-transform-name=* | --program-transform-name=* \
440 | --program-transform-nam=* | --program-transform-na=* \
441 | --program-transform-n=* | --program-transform-=* \
442 | --program-transform=* | --program-transfor=* \
443 | --program-transfo=* | --program-transf=* \
444 | --program-trans=* | --program-tran=* \
445 | --progr-tra=* | --program-tr=* | --program-t=*)
446 program_transform_name="$ac_optarg" ;;
448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
449 | -silent | --silent | --silen | --sile | --sil)
452 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
454 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
456 sbindir="$ac_optarg" ;;
458 -sharedstatedir | --sharedstatedir | --sharedstatedi \
459 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
460 | --sharedst | --shareds | --shared | --share | --shar \
462 ac_prev=sharedstatedir ;;
463 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
464 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
465 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
467 sharedstatedir="$ac_optarg" ;;
469 -site | --site | --sit)
471 -site=* | --site=* | --sit=*)
474 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
476 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
477 srcdir="$ac_optarg" ;;
479 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
480 | --syscon | --sysco | --sysc | --sys | --sy)
481 ac_prev=sysconfdir ;;
482 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
483 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
484 sysconfdir="$ac_optarg" ;;
486 -target | --target | --targe | --targ | --tar | --ta | --t)
488 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
489 target="$ac_optarg" ;;
491 -v | -verbose | --verbose | --verbos | --verbo | --verb)
494 -version | --version | --versio | --versi | --vers)
495 echo "configure generated by autoconf version 2.13"
499 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
500 # Reject names that are not valid shell variable names.
501 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
502 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
504 ac_package=`echo $ac_package| sed 's/-/_/g'`
509 eval "with_${ac_package}='$ac_optarg'" ;;
511 -without-* | --without-*)
512 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
513 # Reject names that are not valid shell variable names.
514 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
515 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
517 ac_package=`echo $ac_package| sed 's/-/_/g'`
518 eval "with_${ac_package}=no" ;;
521 # Obsolete; use --with-x.
524 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
525 | --x-incl | --x-inc | --x-in | --x-i)
526 ac_prev=x_includes ;;
527 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
528 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
529 x_includes="$ac_optarg" ;;
531 -x-libraries | --x-libraries | --x-librarie | --x-librari \
532 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
533 ac_prev=x_libraries ;;
534 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
535 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
536 x_libraries="$ac_optarg" ;;
538 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
542 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
543 echo "configure: warning: $ac_option: invalid host type" 1>&2
545 if test "x$nonopt" != xNONE; then
546 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
554 if test -n "$ac_prev"; then
555 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
558 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
560 # File descriptor usage:
563 # 2 errors and warnings
564 # 3 some systems may open it to /dev/tty
565 # 4 used on the Kubota Titan
566 # 6 checking for... messages and results
567 # 5 compiler messages saved in config.log
568 if test "$silent" = yes; then
576 This file contains any messages produced by compilers while
577 running configure, to aid debugging if configure makes a mistake.
580 # Strip out --no-create and --no-recursion so they do not pile up.
581 # Also quote any args containing shell metacharacters.
586 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
587 | --no-cr | --no-c) ;;
588 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
589 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
590 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
591 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
592 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
597 # Only set these to C if already set. These must not be set unconditionally
598 # because not all systems understand e.g. LANG=C (notably SCO).
599 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
600 # Non-C LC_CTYPE values break the ctype check.
601 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
602 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
603 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
604 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
607 rm -rf conftest* confdefs.h
608 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
611 # A filename unique to this package, relative to the directory that
612 # configure is in, which we can look for to find out if srcdir is correct.
613 ac_unique_file=include/main.h
615 # Find the source files, if location was not specified.
616 if test -z "$srcdir"; then
617 ac_srcdir_defaulted=yes
618 # Try the directory containing this script, then its parent.
620 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
621 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
623 if test ! -r $srcdir/$ac_unique_file; then
627 ac_srcdir_defaulted=no
629 if test ! -r $srcdir/$ac_unique_file; then
630 if test "$ac_srcdir_defaulted" = yes; then
631 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
633 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
636 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
638 # Prefer explicitly selected file to automatically selected ones.
639 if test -z "$CONFIG_SITE"; then
640 if test "x$prefix" != xNONE; then
641 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
643 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
646 for ac_site_file in $CONFIG_SITE; do
647 if test -r "$ac_site_file"; then
648 echo "loading site script $ac_site_file"
653 if test -r "$cache_file"; then
654 echo "loading cache $cache_file"
657 echo "creating cache $cache_file"
662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
663 ac_cpp='$CPP $CPPFLAGS'
664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
666 cross_compiling=$ac_cv_prog_cc_cross
670 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
671 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
672 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
679 ac_n= ac_c='\c' ac_t=
685 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
686 if test -f $ac_dir/install-sh; then
688 ac_install_sh="$ac_aux_dir/install-sh -c"
690 elif test -f $ac_dir/install.sh; then
692 ac_install_sh="$ac_aux_dir/install.sh -c"
696 if test -z "$ac_aux_dir"; then
697 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
699 ac_config_guess=$ac_aux_dir/config.guess
700 ac_config_sub=$ac_aux_dir/config.sub
701 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
704 # Do some error checking and defaulting for the host and target type.
706 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
709 # 1. You are not allowed to specify --host, --target, and nonopt at the
711 # 2. Host defaults to nonopt.
712 # 3. If nonopt is not specified, then host defaults to the current host,
713 # as determined by config.guess.
714 # 4. Target and build default to nonopt.
715 # 5. If nonopt is not specified, then target and build default to host.
717 # The aliases save the names the user supplied, while $host etc.
718 # will get canonicalized.
719 case $host---$target---$nonopt in
720 NONE---*---* | *---NONE---* | *---*---NONE) ;;
721 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
725 # Make sure we can run config.sub.
726 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
727 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
730 echo $ac_n "checking host system type""... $ac_c" 1>&6
731 echo "configure:732: checking host system type" >&5
734 case "$host_alias" in
738 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
739 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
741 *) host_alias=$nonopt ;;
745 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
746 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
749 echo "$ac_t""$host" 1>&6
751 echo $ac_n "checking target system type""... $ac_c" 1>&6
752 echo "configure:753: checking target system type" >&5
755 case "$target_alias" in
758 NONE) target_alias=$host_alias ;;
759 *) target_alias=$nonopt ;;
763 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
764 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
767 echo "$ac_t""$target" 1>&6
769 echo $ac_n "checking build system type""... $ac_c" 1>&6
770 echo "configure:771: checking build system type" >&5
773 case "$build_alias" in
776 NONE) build_alias=$host_alias ;;
777 *) build_alias=$nonopt ;;
781 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
782 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
783 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
784 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
785 echo "$ac_t""$build" 1>&6
787 test "$host_alias" != "$target_alias" &&
788 test "$program_prefix$program_suffix$program_transform_name" = \
790 program_prefix=${target_alias}-
793 CONFIGURE_LINE="$0 $*"
799 save_CPPFLAGS="${CPPFLAGS}"
800 save_CFLAGS="${CFLAGS}"
801 save_LDFLAGS="${LDFLAGS}"
803 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${MAKE-make} sets \${MAKE}" >&5
805 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
806 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftestmake <<\EOF
811 @echo 'ac_maketemp="${MAKE}"'
813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
814 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
815 if test -n "$ac_maketemp"; then
816 eval ac_cv_prog_make_${ac_make}_set=yes
818 eval ac_cv_prog_make_${ac_make}_set=no
822 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
823 echo "$ac_t""yes" 1>&6
826 echo "$ac_t""no" 1>&6
827 SET_MAKE="MAKE=${MAKE-make}"
830 # Extract the first word of "gcc", so it can be a program name with args.
831 set dummy gcc; ac_word=$2
832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
833 echo "configure:834: checking for $ac_word" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 if test -n "$CC"; then
838 ac_cv_prog_CC="$CC" # Let the user override the test.
840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
842 for ac_dir in $ac_dummy; do
843 test -z "$ac_dir" && ac_dir=.
844 if test -f $ac_dir/$ac_word; then
853 if test -n "$CC"; then
854 echo "$ac_t""$CC" 1>&6
856 echo "$ac_t""no" 1>&6
859 if test -z "$CC"; then
860 # Extract the first word of "cc", so it can be a program name with args.
861 set dummy cc; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 if test -n "$CC"; then
868 ac_cv_prog_CC="$CC" # Let the user override the test.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
873 for ac_dir in $ac_dummy; do
874 test -z "$ac_dir" && ac_dir=.
875 if test -f $ac_dir/$ac_word; then
876 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
885 if test $ac_prog_rejected = yes; then
886 # We found a bogon in the path, so make sure we never use it.
887 set dummy $ac_cv_prog_CC
889 if test $# -gt 0; then
890 # We chose a different compiler from the bogus one.
891 # However, it has the same basename, so the bogon will be chosen
892 # first if we set CC to just the basename; use the full file name.
894 set dummy "$ac_dir/$ac_word" "$@"
902 if test -n "$CC"; then
903 echo "$ac_t""$CC" 1>&6
905 echo "$ac_t""no" 1>&6
908 if test -z "$CC"; then
911 # Extract the first word of "cl", so it can be a program name with args.
912 set dummy cl; ac_word=$2
913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
914 echo "configure:915: checking for $ac_word" >&5
915 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
918 if test -n "$CC"; then
919 ac_cv_prog_CC="$CC" # Let the user override the test.
921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
923 for ac_dir in $ac_dummy; do
924 test -z "$ac_dir" && ac_dir=.
925 if test -f $ac_dir/$ac_word; then
934 if test -n "$CC"; then
935 echo "$ac_t""$CC" 1>&6
937 echo "$ac_t""no" 1>&6
942 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
945 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
946 echo "configure:947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp='$CPP $CPPFLAGS'
951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling=$ac_cv_prog_cc_cross
955 cat > conftest.$ac_ext << EOF
957 #line 958 "configure"
958 #include "confdefs.h"
962 if { (eval echo configure:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
963 ac_cv_prog_cc_works=yes
964 # If we can't run a trivial program, we are probably using a cross compiler.
965 if (./conftest; exit) 2>/dev/null; then
966 ac_cv_prog_cc_cross=no
968 ac_cv_prog_cc_cross=yes
971 echo "configure: failed program was:" >&5
972 cat conftest.$ac_ext >&5
973 ac_cv_prog_cc_works=no
977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
978 ac_cpp='$CPP $CPPFLAGS'
979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
981 cross_compiling=$ac_cv_prog_cc_cross
983 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
984 if test $ac_cv_prog_cc_works = no; then
985 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
987 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
988 echo "configure:989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
989 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
990 cross_compiling=$ac_cv_prog_cc_cross
992 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
993 echo "configure:994: checking whether we are using GNU C" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 cat > conftest.c <<EOF
1002 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1009 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1011 if test $ac_cv_prog_gcc = yes; then
1017 ac_test_CFLAGS="${CFLAGS+set}"
1018 ac_save_CFLAGS="$CFLAGS"
1020 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1021 echo "configure:1022: checking whether ${CC-cc} accepts -g" >&5
1022 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 echo 'void f(){}' > conftest.c
1026 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1035 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1036 if test "$ac_test_CFLAGS" = set; then
1037 CFLAGS="$ac_save_CFLAGS"
1038 elif test $ac_cv_prog_cc_g = yes; then
1039 if test "$GCC" = yes; then
1045 if test "$GCC" = yes; then
1052 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1053 echo "configure:1054: checking how to run the C preprocessor" >&5
1054 # On Suns, sometimes $CPP names a directory.
1055 if test -n "$CPP" && test -d "$CPP"; then
1058 if test -z "$CPP"; then
1059 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 # This must be in double quotes, not single quotes, because CPP may get
1063 # substituted into the Makefile and "${CC-cc}" will confuse make.
1065 # On the NeXT, cc -E runs the code through the compiler's parser,
1066 # not just through cpp.
1067 cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1074 { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1076 if test -z "$ac_err"; then
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1083 CPP="${CC-cc} -E -traditional-cpp"
1084 cat > conftest.$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1091 { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1093 if test -z "$ac_err"; then
1097 echo "configure: failed program was:" >&5
1098 cat conftest.$ac_ext >&5
1100 CPP="${CC-cc} -nologo -E"
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1108 { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1110 if test -z "$ac_err"; then
1114 echo "configure: failed program was:" >&5
1115 cat conftest.$ac_ext >&5
1124 ac_cv_prog_CPP="$CPP"
1126 CPP="$ac_cv_prog_CPP"
1128 ac_cv_prog_CPP="$CPP"
1130 echo "$ac_t""$CPP" 1>&6
1133 if test $host != $build; then
1134 ac_tool_prefix=${host_alias}-
1139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 echo "configure:1143: checking for $ac_word" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 if test -n "$RANLIB"; then
1147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1151 for ac_dir in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir=.
1153 if test -f $ac_dir/$ac_word; then
1154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1161 RANLIB="$ac_cv_prog_RANLIB"
1162 if test -n "$RANLIB"; then
1163 echo "$ac_t""$RANLIB" 1>&6
1165 echo "$ac_t""no" 1>&6
1169 if test -z "$ac_cv_prog_RANLIB"; then
1170 if test -n "$ac_tool_prefix"; then
1171 # Extract the first word of "ranlib", so it can be a program name with args.
1172 set dummy ranlib; ac_word=$2
1173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1174 echo "configure:1175: checking for $ac_word" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 if test -n "$RANLIB"; then
1179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 for ac_dir in $ac_dummy; do
1184 test -z "$ac_dir" && ac_dir=.
1185 if test -f $ac_dir/$ac_word; then
1186 ac_cv_prog_RANLIB="ranlib"
1191 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1194 RANLIB="$ac_cv_prog_RANLIB"
1195 if test -n "$RANLIB"; then
1196 echo "$ac_t""$RANLIB" 1>&6
1198 echo "$ac_t""no" 1>&6
1206 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1207 set dummy ${ac_tool_prefix}strip; ac_word=$2
1208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1209 echo "configure:1210: checking for $ac_word" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 if test -n "$STRIP"; then
1214 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1218 for ac_dir in $ac_dummy; do
1219 test -z "$ac_dir" && ac_dir=.
1220 if test -f $ac_dir/$ac_word; then
1221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1228 STRIP="$ac_cv_prog_STRIP"
1229 if test -n "$STRIP"; then
1230 echo "$ac_t""$STRIP" 1>&6
1232 echo "$ac_t""no" 1>&6
1236 if test -z "$ac_cv_prog_STRIP"; then
1237 if test -n "$ac_tool_prefix"; then
1238 # Extract the first word of "strip", so it can be a program name with args.
1239 set dummy strip; ac_word=$2
1240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1241 echo "configure:1242: checking for $ac_word" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 if test -n "$STRIP"; then
1246 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1250 for ac_dir in $ac_dummy; do
1251 test -z "$ac_dir" && ac_dir=.
1252 if test -f $ac_dir/$ac_word; then
1253 ac_cv_prog_STRIP="strip"
1258 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1261 STRIP="$ac_cv_prog_STRIP"
1262 if test -n "$STRIP"; then
1263 echo "$ac_t""$STRIP" 1>&6
1265 echo "$ac_t""no" 1>&6
1274 # Extract the first word of "gmake", so it can be a program name with args.
1275 set dummy gmake; ac_word=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1283 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1286 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 for ac_dir in $ac_dummy; do
1292 test -z "$ac_dir" && ac_dir=.
1293 if test -f $ac_dir/$ac_word; then
1294 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1299 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1303 GMAKE="$ac_cv_path_GMAKE"
1304 if test -n "$GMAKE"; then
1305 echo "$ac_t""$GMAKE" 1>&6
1307 echo "$ac_t""no" 1>&6
1310 if test "x${GMAKE}" = "xno"; then
1311 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1312 echo "configure:1313: checking whether GNU make is installed" >&5
1313 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 if make --version | grep -q -i gnu; then
1319 echo "This software needs you to install GNU make to compile properly."
1320 echo "You can get it from http://www.gnu.org/."
1325 echo "$ac_t""$ac_cv_gmake" 1>&6
1331 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1333 cat >> confdefs.h <<EOF
1334 #define VLC_PACKAGE "${PACKAGE}"
1337 cat >> confdefs.h <<EOF
1338 #define VLC_VERSION "${VERSION}"
1341 # Extract the first word of "ranlib", so it can be a program name with args.
1342 set dummy ranlib; ac_word=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 if test -n "$RANLIB"; then
1349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1353 for ac_dir in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_RANLIB="ranlib"
1361 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1364 RANLIB="$ac_cv_prog_RANLIB"
1365 if test -n "$RANLIB"; then
1366 echo "$ac_t""$RANLIB" 1>&6
1368 echo "$ac_t""no" 1>&6
1372 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1373 echo "configure:1374: checking for strerror in -lcposix" >&5
1374 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 ac_save_LIBS="$LIBS"
1379 LIBS="-lcposix $LIBS"
1380 cat > conftest.$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1383 /* Override any gcc2 internal prototype to avoid an error. */
1384 /* We use char because int might match the return type of a gcc2
1385 builtin and then its argument prototype would still apply. */
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1394 eval "ac_cv_lib_$ac_lib_var=yes"
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1399 eval "ac_cv_lib_$ac_lib_var=no"
1402 LIBS="$ac_save_LIBS"
1405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1406 echo "$ac_t""yes" 1>&6
1407 LIBS="$LIBS -lcposix"
1409 echo "$ac_t""no" 1>&6
1414 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1415 echo "configure:1416: checking for ANSI C header files" >&5
1416 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1428 { (eval echo configure:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1430 if test -z "$ac_err"; then
1432 ac_cv_header_stdc=yes
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1438 ac_cv_header_stdc=no
1442 if test $ac_cv_header_stdc = yes; then
1443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1444 cat > conftest.$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1450 egrep "memchr" >/dev/null 2>&1; then
1454 ac_cv_header_stdc=no
1460 if test $ac_cv_header_stdc = yes; then
1461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1468 egrep "free" >/dev/null 2>&1; then
1472 ac_cv_header_stdc=no
1478 if test $ac_cv_header_stdc = yes; then
1479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1480 if test "$cross_compiling" = yes; then
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1487 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1488 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1490 int main () { int i; for (i = 0; i < 256; i++)
1491 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1502 ac_cv_header_stdc=no
1510 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1511 if test $ac_cv_header_stdc = yes; then
1512 cat >> confdefs.h <<\EOF
1513 #define STDC_HEADERS 1
1518 echo $ac_n "checking for working const""... $ac_c" 1>&6
1519 echo "configure:1520: checking for working const" >&5
1520 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1529 /* Ultrix mips cc rejects this. */
1530 typedef int charset[2]; const charset x;
1531 /* SunOS 4.1.1 cc rejects this. */
1532 char const *const *ccp;
1534 /* NEC SVR4.0.2 mips cc rejects this. */
1535 struct point {int x, y;};
1536 static struct point const zero = {0,0};
1537 /* AIX XL C 1.02.0.0 rejects this.
1538 It does not let you subtract one const X* pointer from another in an arm
1539 of an if-expression whose if-part is not a constant expression */
1540 const char *g = "string";
1541 ccp = &g + (g ? g-g : 0);
1542 /* HPUX 7.0 cc rejects these. */
1545 ccp = (char const *const *) p;
1546 { /* SCO 3.2v4 cc rejects this. */
1548 char const *s = 0 ? (char *) 0 : (char const *) 0;
1552 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1554 const int *foo = &x[0];
1557 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1558 typedef const int *iptr;
1562 { /* AIX XL C 1.02.0.0 rejects this saying
1563 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1564 struct s { int j; const int *ap[3]; };
1565 struct s *b; b->j = 5;
1567 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1573 if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1585 echo "$ac_t""$ac_cv_c_const" 1>&6
1586 if test $ac_cv_c_const = no; then
1587 cat >> confdefs.h <<\EOF
1593 echo $ac_n "checking for inline""... $ac_c" 1>&6
1594 echo "configure:1595: checking for inline" >&5
1595 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1599 for ac_kw in inline __inline__ __inline; do
1600 cat > conftest.$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1608 if { (eval echo configure:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 ac_cv_c_inline=$ac_kw; break
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1620 echo "$ac_t""$ac_cv_c_inline" 1>&6
1621 case "$ac_cv_c_inline" in
1623 no) cat >> confdefs.h <<\EOF
1627 *) cat >> confdefs.h <<EOF
1628 #define inline $ac_cv_c_inline
1633 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1634 echo "configure:1635: checking for off_t" >&5
1635 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 #include <sys/types.h>
1647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1648 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1650 ac_cv_type_off_t=yes
1658 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1659 if test $ac_cv_type_off_t = no; then
1660 cat >> confdefs.h <<\EOF
1666 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1667 echo "configure:1668: checking for size_t" >&5
1668 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 cat > conftest.$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1674 #include <sys/types.h>
1680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1681 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1683 ac_cv_type_size_t=yes
1686 ac_cv_type_size_t=no
1691 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1692 if test $ac_cv_type_size_t = no; then
1693 cat >> confdefs.h <<\EOF
1694 #define size_t unsigned
1699 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1700 # for constant arguments. Useless!
1701 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1702 echo "configure:1703: checking for working alloca.h" >&5
1703 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1711 char *p = alloca(2 * sizeof(int));
1714 if { (eval echo configure:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1716 ac_cv_header_alloca_h=yes
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 ac_cv_header_alloca_h=no
1726 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1727 if test $ac_cv_header_alloca_h = yes; then
1728 cat >> confdefs.h <<\EOF
1729 #define HAVE_ALLOCA_H 1
1734 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1735 echo "configure:1736: checking for alloca" >&5
1736 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1744 # define alloca __builtin_alloca
1747 # include <malloc.h>
1748 # define alloca _alloca
1751 # include <alloca.h>
1756 # ifndef alloca /* predefined by HP cc +Olibcalls */
1765 char *p = (char *) alloca(1);
1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1770 ac_cv_func_alloca_works=yes
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 ac_cv_func_alloca_works=no
1780 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1781 if test $ac_cv_func_alloca_works = yes; then
1782 cat >> confdefs.h <<\EOF
1783 #define HAVE_ALLOCA 1
1788 if test $ac_cv_func_alloca_works = no; then
1789 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1790 # that cause trouble. Some versions do not even contain alloca or
1791 # contain a buggy version. If you still want to use their alloca,
1792 # use ar to extract alloca.o from them instead of compiling alloca.c.
1793 ALLOCA=alloca.${ac_objext}
1794 cat >> confdefs.h <<\EOF
1799 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1800 echo "configure:1801: checking whether alloca needs Cray hooks" >&5
1801 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 #if defined(CRAY) && ! defined(CRAY2)
1814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1815 egrep "webecray" >/dev/null 2>&1; then
1826 echo "$ac_t""$ac_cv_os_cray" 1>&6
1827 if test $ac_cv_os_cray = yes; then
1828 for ac_func in _getb67 GETB67 getb67; do
1829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1830 echo "configure:1831: checking for $ac_func" >&5
1831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 /* System header to define __stub macros and hopefully few prototypes,
1838 which can conflict with char $ac_func(); below. */
1840 /* Override any gcc2 internal prototype to avoid an error. */
1841 /* We use char because int might match the return type of a gcc2
1842 builtin and then its argument prototype would still apply. */
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1858 if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1860 eval "ac_cv_func_$ac_func=yes"
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1865 eval "ac_cv_func_$ac_func=no"
1870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1871 echo "$ac_t""yes" 1>&6
1872 cat >> confdefs.h <<EOF
1873 #define CRAY_STACKSEG_END $ac_func
1878 echo "$ac_t""no" 1>&6
1884 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1885 echo "configure:1886: checking stack direction for C alloca" >&5
1886 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 if test "$cross_compiling" = yes; then
1890 ac_cv_c_stack_direction=0
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1895 find_stack_direction ()
1897 static char *addr = 0;
1902 return find_stack_direction ();
1905 return (&dummy > addr) ? 1 : -1;
1909 exit (find_stack_direction() < 0);
1912 if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1914 ac_cv_c_stack_direction=1
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1919 ac_cv_c_stack_direction=-1
1926 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1927 cat >> confdefs.h <<EOF
1928 #define STACK_DIRECTION $ac_cv_c_stack_direction
1933 for ac_hdr in unistd.h
1935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1937 echo "configure:1938: checking for $ac_hdr" >&5
1938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1947 { (eval echo configure:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1949 if test -z "$ac_err"; then
1951 eval "ac_cv_header_$ac_safe=yes"
1954 echo "configure: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1957 eval "ac_cv_header_$ac_safe=no"
1961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1962 echo "$ac_t""yes" 1>&6
1963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1964 cat >> confdefs.h <<EOF
1965 #define $ac_tr_hdr 1
1969 echo "$ac_t""no" 1>&6
1973 for ac_func in getpagesize
1975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1976 echo "configure:1977: checking for $ac_func" >&5
1977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983 /* System header to define __stub macros and hopefully few prototypes,
1984 which can conflict with char $ac_func(); below. */
1986 /* Override any gcc2 internal prototype to avoid an error. */
1987 /* We use char because int might match the return type of a gcc2
1988 builtin and then its argument prototype would still apply. */
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2006 eval "ac_cv_func_$ac_func=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_func_$ac_func=no"
2016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2017 echo "$ac_t""yes" 1>&6
2018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2019 cat >> confdefs.h <<EOF
2020 #define $ac_tr_func 1
2024 echo "$ac_t""no" 1>&6
2028 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2029 echo "configure:2030: checking for working mmap" >&5
2030 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 if test "$cross_compiling" = yes; then
2034 ac_cv_func_mmap_fixed_mapped=no
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2040 /* Thanks to Mike Haertel and Jim Avera for this test.
2041 Here is a matrix of mmap possibilities:
2042 mmap private not fixed
2043 mmap private fixed at somewhere currently unmapped
2044 mmap private fixed at somewhere already mapped
2045 mmap shared not fixed
2046 mmap shared fixed at somewhere currently unmapped
2047 mmap shared fixed at somewhere already mapped
2048 For private mappings, we should verify that changes cannot be read()
2049 back from the file, nor mmap's back from the file at a different
2050 address. (There have been systems where private was not correctly
2051 implemented like the infamous i386 svr4.0, and systems where the
2052 VM page cache was not coherent with the filesystem buffer cache
2053 like early versions of FreeBSD and possibly contemporary NetBSD.)
2054 For shared mappings, we should conversely verify that changes get
2055 propogated back to all the places they're supposed to be.
2057 Grep wants private fixed already mapped.
2058 The main things grep needs to know about mmap are:
2059 * does it exist and is it safe to write into the mmap'd area
2060 * how to use it (BSD variants) */
2061 #include <sys/types.h>
2063 #include <sys/mman.h>
2065 /* This mess was copied from the GNU getpagesize.h. */
2066 #ifndef HAVE_GETPAGESIZE
2067 # ifdef HAVE_UNISTD_H
2068 # include <unistd.h>
2071 /* Assume that all systems that can run configure have sys/param.h. */
2072 # ifndef HAVE_SYS_PARAM_H
2073 # define HAVE_SYS_PARAM_H 1
2076 # ifdef _SC_PAGESIZE
2077 # define getpagesize() sysconf(_SC_PAGESIZE)
2078 # else /* no _SC_PAGESIZE */
2079 # ifdef HAVE_SYS_PARAM_H
2080 # include <sys/param.h>
2081 # ifdef EXEC_PAGESIZE
2082 # define getpagesize() EXEC_PAGESIZE
2083 # else /* no EXEC_PAGESIZE */
2085 # define getpagesize() NBPG * CLSIZE
2088 # endif /* no CLSIZE */
2089 # else /* no NBPG */
2091 # define getpagesize() NBPC
2092 # else /* no NBPC */
2094 # define getpagesize() PAGESIZE
2095 # endif /* PAGESIZE */
2096 # endif /* no NBPC */
2097 # endif /* no NBPG */
2098 # endif /* no EXEC_PAGESIZE */
2099 # else /* no HAVE_SYS_PARAM_H */
2100 # define getpagesize() 8192 /* punt totally */
2101 # endif /* no HAVE_SYS_PARAM_H */
2102 # endif /* no _SC_PAGESIZE */
2104 #endif /* no HAVE_GETPAGESIZE */
2107 extern "C" { void *malloc(unsigned); }
2115 char *data, *data2, *data3;
2119 pagesize = getpagesize();
2122 * First, make a file with some known garbage in it.
2124 data = malloc(pagesize);
2127 for (i = 0; i < pagesize; ++i)
2128 *(data + i) = rand();
2130 fd = creat("conftestmmap", 0600);
2133 if (write(fd, data, pagesize) != pagesize)
2138 * Next, try to mmap the file at a fixed address which
2139 * already has something else allocated at it. If we can,
2140 * also make sure that we see the same garbage.
2142 fd = open("conftestmmap", O_RDWR);
2145 data2 = malloc(2 * pagesize);
2148 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2149 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2150 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2152 for (i = 0; i < pagesize; ++i)
2153 if (*(data + i) != *(data2 + i))
2157 * Finally, make sure that changes to the mapped area
2158 * do not percolate back to the file as seen by read().
2159 * (This is a bug on some variants of i386 svr4.0.)
2161 for (i = 0; i < pagesize; ++i)
2162 *(data2 + i) = *(data2 + i) + 1;
2163 data3 = malloc(pagesize);
2166 if (read(fd, data3, pagesize) != pagesize)
2168 for (i = 0; i < pagesize; ++i)
2169 if (*(data + i) != *(data3 + i))
2172 unlink("conftestmmap");
2177 if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2179 ac_cv_func_mmap_fixed_mapped=yes
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2184 ac_cv_func_mmap_fixed_mapped=no
2191 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2192 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2193 cat >> confdefs.h <<\EOF
2200 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2201 echo "configure:2202: checking whether we are using the GNU C Library 2.1 or newer" >&5
2202 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2209 #include <features.h>
2210 #ifdef __GNU_LIBRARY__
2211 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2218 egrep "Lucky GNU user" >/dev/null 2>&1; then
2220 ac_cv_gnu_library_2_1=yes
2223 ac_cv_gnu_library_2_1=no
2231 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2233 GLIBC21="$ac_cv_gnu_library_2_1"
2237 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2238 stdlib.h string.h unistd.h sys/param.h
2240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2242 echo "configure:2243: checking for $ac_hdr" >&5
2243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2252 { (eval echo configure:2253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2254 if test -z "$ac_err"; then
2256 eval "ac_cv_header_$ac_safe=yes"
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2262 eval "ac_cv_header_$ac_safe=no"
2266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2267 echo "$ac_t""yes" 1>&6
2268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2269 cat >> confdefs.h <<EOF
2270 #define $ac_tr_hdr 1
2274 echo "$ac_t""no" 1>&6
2278 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2279 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2280 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2283 echo "configure:2284: checking for $ac_func" >&5
2284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 /* System header to define __stub macros and hopefully few prototypes,
2291 which can conflict with char $ac_func(); below. */
2293 /* Override any gcc2 internal prototype to avoid an error. */
2294 /* We use char because int might match the return type of a gcc2
2295 builtin and then its argument prototype would still apply. */
2300 /* The GNU C library defines this for functions which it implements
2301 to always fail with ENOSYS. Some functions are actually named
2302 something starting with __ and the normal name is an alias. */
2303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2313 eval "ac_cv_func_$ac_func=yes"
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 eval "ac_cv_func_$ac_func=no"
2323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2326 cat >> confdefs.h <<EOF
2327 #define $ac_tr_func 1
2331 echo "$ac_t""no" 1>&6
2338 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2339 if test "${with_libiconv_prefix+set}" = set; then
2340 withval="$with_libiconv_prefix"
2342 for dir in `echo "$withval" | tr : ' '`; do
2343 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2344 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2350 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2351 echo "configure:2352: checking for iconv" >&5
2352 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2356 am_cv_func_iconv="no, consider installing GNU libiconv"
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2364 iconv_t cd = iconv_open("","");
2365 iconv(cd,NULL,NULL,NULL,NULL);
2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2371 am_cv_func_iconv=yes
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2377 if test "$am_cv_func_iconv" != yes; then
2378 am_save_LIBS="$LIBS"
2379 LIBS="$LIBS -liconv"
2380 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2386 iconv_t cd = iconv_open("","");
2387 iconv(cd,NULL,NULL,NULL,NULL);
2391 if { (eval echo configure:2392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2394 am_cv_func_iconv=yes
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2400 LIBS="$am_save_LIBS"
2405 echo "$ac_t""$am_cv_func_iconv" 1>&6
2406 if test "$am_cv_func_iconv" = yes; then
2407 cat >> confdefs.h <<\EOF
2408 #define HAVE_ICONV 1
2411 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2412 echo "configure:2413: checking for iconv declaration" >&5
2413 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2427 #if defined(__STDC__) || defined(__cplusplus)
2428 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2437 if { (eval echo configure:2438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2439 am_cv_proto_iconv_arg1=""
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 am_cv_proto_iconv_arg1="const"
2447 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);"
2450 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2451 echo "$ac_t""${ac_t:-
2452 }$am_cv_proto_iconv" 1>&6
2453 cat >> confdefs.h <<EOF
2454 #define ICONV_CONST $am_cv_proto_iconv_arg1
2459 if test "$am_cv_lib_iconv" = yes; then
2465 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2466 echo "configure:2467: checking for nl_langinfo and CODESET" >&5
2467 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <langinfo.h>
2475 char* cs = nl_langinfo(CODESET);
2478 if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2480 am_cv_langinfo_codeset=yes
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 am_cv_langinfo_codeset=no
2491 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2492 if test $am_cv_langinfo_codeset = yes; then
2493 cat >> confdefs.h <<\EOF
2494 #define HAVE_LANGINFO_CODESET 1
2499 if test $ac_cv_header_locale_h = yes; then
2500 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2501 echo "configure:2502: checking for LC_MESSAGES" >&5
2502 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2515 am_cv_val_LC_MESSAGES=yes
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 am_cv_val_LC_MESSAGES=no
2525 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2526 if test $am_cv_val_LC_MESSAGES = yes; then
2527 cat >> confdefs.h <<\EOF
2528 #define HAVE_LC_MESSAGES 1
2533 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2534 echo "configure:2535: checking whether NLS is requested" >&5
2535 # Check whether --enable-nls or --disable-nls was given.
2536 if test "${enable_nls+set}" = set; then
2537 enableval="$enable_nls"
2543 echo "$ac_t""$USE_NLS" 1>&6
2546 BUILD_INCLUDED_LIBINTL=no
2547 USE_INCLUDED_LIBINTL=no
2550 if test "$USE_NLS" = "yes"; then
2551 cat >> confdefs.h <<\EOF
2552 #define ENABLE_NLS 1
2555 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2556 echo "configure:2557: checking whether included gettext is requested" >&5
2557 # Check whether --with-included-gettext or --without-included-gettext was given.
2558 if test "${with_included_gettext+set}" = set; then
2559 withval="$with_included_gettext"
2560 nls_cv_force_use_gnu_gettext=$withval
2562 nls_cv_force_use_gnu_gettext=no
2565 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2567 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2568 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2574 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2575 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2576 echo "configure:2577: checking for libintl.h" >&5
2577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 #include <libintl.h>
2585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2586 { (eval echo configure:2587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2588 if test -z "$ac_err"; then
2590 eval "ac_cv_header_$ac_safe=yes"
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2596 eval "ac_cv_header_$ac_safe=no"
2600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2603 echo "configure:2604: checking for GNU gettext in libc" >&5
2604 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 #include <libintl.h>
2611 extern int _nl_msg_cat_cntr;
2613 bindtextdomain ("", "");
2614 return (int) gettext ("") + _nl_msg_cat_cntr
2617 if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2619 gt_cv_func_gnugettext1_libc=yes
2621 echo "configure: failed program was:" >&5
2622 cat conftest.$ac_ext >&5
2624 gt_cv_func_gnugettext1_libc=no
2629 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2631 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2632 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2633 echo "configure:2634: checking for GNU gettext in libintl" >&5
2634 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2637 gt_save_LIBS="$LIBS"
2638 LIBS="$LIBS -lintl $LIBICONV"
2639 cat > conftest.$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2642 #include <libintl.h>
2643 extern int _nl_msg_cat_cntr;
2645 bindtextdomain ("", "");
2646 return (int) gettext ("") + _nl_msg_cat_cntr
2649 if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2651 gt_cv_func_gnugettext1_libintl=yes
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2656 gt_cv_func_gnugettext1_libintl=no
2659 LIBS="$gt_save_LIBS"
2662 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2665 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2666 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2667 && test "$PACKAGE" != gettext; }; then
2668 cat >> confdefs.h <<\EOF
2669 #define HAVE_GETTEXT 1
2673 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2674 INTLLIBS="-lintl $LIBICONV"
2677 gt_save_LIBS="$LIBS"
2678 LIBS="$LIBS $INTLLIBS"
2679 for ac_func in dcgettext
2681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2682 echo "configure:2683: checking for $ac_func" >&5
2683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 /* System header to define __stub macros and hopefully few prototypes,
2690 which can conflict with char $ac_func(); below. */
2692 /* Override any gcc2 internal prototype to avoid an error. */
2693 /* We use char because int might match the return type of a gcc2
2694 builtin and then its argument prototype would still apply. */
2699 /* The GNU C library defines this for functions which it implements
2700 to always fail with ENOSYS. Some functions are actually named
2701 something starting with __ and the normal name is an alias. */
2702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2710 if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2712 eval "ac_cv_func_$ac_func=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2717 eval "ac_cv_func_$ac_func=no"
2722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2723 echo "$ac_t""yes" 1>&6
2724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2725 cat >> confdefs.h <<EOF
2726 #define $ac_tr_func 1
2730 echo "$ac_t""no" 1>&6
2734 LIBS="$gt_save_LIBS"
2736 # Extract the first word of "msgfmt", so it can be a program name with args.
2737 set dummy msgfmt; ac_word=$2
2738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_word" >&5
2740 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2745 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2749 for ac_dir in $PATH; do
2750 test -z "$ac_dir" && ac_dir=.
2751 if test -f $ac_dir/$ac_word; then
2752 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2753 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2759 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2763 MSGFMT="$ac_cv_path_MSGFMT"
2764 if test "$MSGFMT" != ":"; then
2765 echo "$ac_t""$MSGFMT" 1>&6
2767 echo "$ac_t""no" 1>&6
2770 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2771 set dummy gmsgfmt; ac_word=$2
2772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2773 echo "configure:2774: checking for $ac_word" >&5
2774 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2779 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2782 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2787 for ac_dir in $ac_dummy; do
2788 test -z "$ac_dir" && ac_dir=.
2789 if test -f $ac_dir/$ac_word; then
2790 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2795 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2799 GMSGFMT="$ac_cv_path_GMSGFMT"
2800 if test -n "$GMSGFMT"; then
2801 echo "$ac_t""$GMSGFMT" 1>&6
2803 echo "$ac_t""no" 1>&6
2807 # Extract the first word of "xgettext", so it can be a program name with args.
2808 set dummy xgettext; ac_word=$2
2809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_word" >&5
2811 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2816 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2820 for ac_dir in $PATH; do
2821 test -z "$ac_dir" && ac_dir=.
2822 if test -f $ac_dir/$ac_word; then
2823 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2824 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2830 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2834 XGETTEXT="$ac_cv_path_XGETTEXT"
2835 if test "$XGETTEXT" != ":"; then
2836 echo "$ac_t""$XGETTEXT" 1>&6
2838 echo "$ac_t""no" 1>&6
2846 echo "$ac_t""no" 1>&6
2850 if test "$CATOBJEXT" = "NONE"; then
2851 nls_cv_use_gnu_gettext=yes
2855 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2856 INTLOBJS="\$(GETTOBJS)"
2857 # Extract the first word of "msgfmt", so it can be a program name with args.
2858 set dummy msgfmt; ac_word=$2
2859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2860 echo "configure:2861: checking for $ac_word" >&5
2861 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2866 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2870 for ac_dir in $PATH; do
2871 test -z "$ac_dir" && ac_dir=.
2872 if test -f $ac_dir/$ac_word; then
2873 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2874 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2880 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2884 MSGFMT="$ac_cv_path_MSGFMT"
2885 if test "$MSGFMT" != ":"; then
2886 echo "$ac_t""$MSGFMT" 1>&6
2888 echo "$ac_t""no" 1>&6
2891 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2892 set dummy gmsgfmt; ac_word=$2
2893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2894 echo "configure:2895: checking for $ac_word" >&5
2895 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2900 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2903 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2908 for ac_dir in $ac_dummy; do
2909 test -z "$ac_dir" && ac_dir=.
2910 if test -f $ac_dir/$ac_word; then
2911 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2916 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2920 GMSGFMT="$ac_cv_path_GMSGFMT"
2921 if test -n "$GMSGFMT"; then
2922 echo "$ac_t""$GMSGFMT" 1>&6
2924 echo "$ac_t""no" 1>&6
2927 # Extract the first word of "xgettext", so it can be a program name with args.
2928 set dummy xgettext; ac_word=$2
2929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2930 echo "configure:2931: checking for $ac_word" >&5
2931 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2936 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2940 for ac_dir in $PATH; do
2941 test -z "$ac_dir" && ac_dir=.
2942 if test -f $ac_dir/$ac_word; then
2943 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2954 XGETTEXT="$ac_cv_path_XGETTEXT"
2955 if test "$XGETTEXT" != ":"; then
2956 echo "$ac_t""$XGETTEXT" 1>&6
2958 echo "$ac_t""no" 1>&6
2962 BUILD_INCLUDED_LIBINTL=yes
2963 USE_INCLUDED_LIBINTL=yes
2965 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2966 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2969 if test "$GMSGFMT" != ":"; then
2970 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2973 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2978 if test "$XGETTEXT" != ":"; then
2979 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2982 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2992 if test "$PACKAGE" = gettext; then
2993 BUILD_INCLUDED_LIBINTL=yes
2996 for ac_prog in bison
2998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2999 set dummy $ac_prog; ac_word=$2
3000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3001 echo "configure:3002: checking for $ac_word" >&5
3002 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 if test -n "$INTLBISON"; then
3006 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3010 for ac_dir in $ac_dummy; do
3011 test -z "$ac_dir" && ac_dir=.
3012 if test -f $ac_dir/$ac_word; then
3013 ac_cv_prog_INTLBISON="$ac_prog"
3020 INTLBISON="$ac_cv_prog_INTLBISON"
3021 if test -n "$INTLBISON"; then
3022 echo "$ac_t""$INTLBISON" 1>&6
3024 echo "$ac_t""no" 1>&6
3027 test -n "$INTLBISON" && break
3030 if test -z "$INTLBISON"; then
3033 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3034 echo "configure:3035: checking version of bison" >&5
3035 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3036 case $ac_prog_version in
3037 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3038 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3039 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3040 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3042 echo "$ac_t""$ac_prog_version" 1>&6
3044 if test $ac_verc_fail = yes; then
3048 for lang in $ALL_LINGUAS; do
3049 GMOFILES="$GMOFILES $lang.gmo"
3050 POFILES="$POFILES $lang.po"
3064 nls_cv_header_libgt=
3076 if test "x$CATOBJEXT" != "x"; then
3077 if test "x$ALL_LINGUAS" = "x"; then
3080 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3081 echo "configure:3082: checking for catalogs to be installed" >&5
3083 for presentlang in $ALL_LINGUAS; do
3085 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3086 # Use the presentlang catalog if desiredlang is
3087 # a. equal to presentlang, or
3088 # b. a variant of presentlang (because in this case,
3089 # presentlang can be used as a fallback for messages
3090 # which are not translated in the desiredlang catalog).
3091 case "$desiredlang" in
3092 "$presentlang"*) useit=yes;;
3095 if test $useit = yes; then
3096 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3099 LINGUAS=$NEW_LINGUAS
3100 echo "$ac_t""$LINGUAS" 1>&6
3103 if test -n "$LINGUAS"; then
3104 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3109 if test -n "$ac_aux_dir"; then
3110 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3112 if test -z "$MKINSTALLDIRS"; then
3113 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3117 INTL_LIBTOOL_SUFFIX_PREFIX=
3121 # Find a good install program. We prefer a C program (faster),
3122 # so one script is as good as another. But avoid the broken or
3123 # incompatible versions:
3124 # SysV /etc/install, /usr/sbin/install
3125 # SunOS /usr/etc/install
3126 # IRIX /sbin/install
3128 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3129 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3130 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3131 # ./install, which can be erroneously created by make from ./install.sh.
3132 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3133 echo "configure:3134: checking for a BSD compatible install" >&5
3134 if test -z "$INSTALL"; then
3135 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3138 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3139 for ac_dir in $PATH; do
3140 # Account for people who put trailing slashes in PATH elements.
3142 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3144 # OSF1 and SCO ODT 3.0 have their own names for install.
3145 # Don't use installbsd from OSF since it installs stuff as root
3147 for ac_prog in ginstall scoinst install; do
3148 if test -f $ac_dir/$ac_prog; then
3149 if test $ac_prog = install &&
3150 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3151 # AIX install. It has an incompatible calling convention.
3154 ac_cv_path_install="$ac_dir/$ac_prog -c"
3165 if test "${ac_cv_path_install+set}" = set; then
3166 INSTALL="$ac_cv_path_install"
3168 # As a last resort, use the slow shell script. We don't cache a
3169 # path for INSTALL within a source directory, because that will
3170 # break other packages using the cache if that directory is
3171 # removed, or if the path is relative.
3172 INSTALL="$ac_install_sh"
3175 echo "$ac_t""$INSTALL" 1>&6
3177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3178 # It thinks the first close brace ends the variable substitution.
3179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3186 vlc_LDFLAGS="${LDFLAGS}"
3188 case "x${target_os}" in
3197 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3198 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3199 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3203 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3207 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3208 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3212 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3213 set dummy ${ac_tool_prefix}windres; ac_word=$2
3214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3215 echo "configure:3216: checking for $ac_word" >&5
3216 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 if test -n "$WINDRES"; then
3220 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3224 for ac_dir in $ac_dummy; do
3225 test -z "$ac_dir" && ac_dir=.
3226 if test -f $ac_dir/$ac_word; then
3227 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3234 WINDRES="$ac_cv_prog_WINDRES"
3235 if test -n "$WINDRES"; then
3236 echo "$ac_t""$WINDRES" 1>&6
3238 echo "$ac_t""no" 1>&6
3242 if test -z "$ac_cv_prog_WINDRES"; then
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "windres", so it can be a program name with args.
3245 set dummy windres; ac_word=$2
3246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3247 echo "configure:3248: checking for $ac_word" >&5
3248 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3251 if test -n "$WINDRES"; then
3252 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3256 for ac_dir in $ac_dummy; do
3257 test -z "$ac_dir" && ac_dir=.
3258 if test -f $ac_dir/$ac_word; then
3259 ac_cv_prog_WINDRES="windres"
3264 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3267 WINDRES="$ac_cv_prog_WINDRES"
3268 if test -n "$WINDRES"; then
3269 echo "$ac_t""$WINDRES" 1>&6
3271 echo "$ac_t""no" 1>&6
3279 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3280 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3281 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3282 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3283 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3284 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3285 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3289 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3290 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3297 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3298 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3299 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3300 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3301 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3308 if test "x${SYS}" = "xmingw32"
3310 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3312 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3313 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3316 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3318 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3321 echo "configure:3322: checking for $ac_func" >&5
3322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 /* System header to define __stub macros and hopefully few prototypes,
3329 which can conflict with char $ac_func(); below. */
3331 /* Override any gcc2 internal prototype to avoid an error. */
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3338 /* The GNU C library defines this for functions which it implements
3339 to always fail with ENOSYS. Some functions are actually named
3340 something starting with __ and the normal name is an alias. */
3341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3349 if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3351 eval "ac_cv_func_$ac_func=yes"
3353 echo "configure: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3356 eval "ac_cv_func_$ac_func=no"
3361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3364 cat >> confdefs.h <<EOF
3365 #define $ac_tr_func 1
3369 echo "$ac_t""no" 1>&6
3374 echo $ac_n "checking for connect""... $ac_c" 1>&6
3375 echo "configure:3376: checking for connect" >&5
3376 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 /* System header to define __stub macros and hopefully few prototypes,
3383 which can conflict with char connect(); below. */
3385 /* Override any gcc2 internal prototype to avoid an error. */
3386 /* We use char because int might match the return type of a gcc2
3387 builtin and then its argument prototype would still apply. */
3392 /* The GNU C library defines this for functions which it implements
3393 to always fail with ENOSYS. Some functions are actually named
3394 something starting with __ and the normal name is an alias. */
3395 #if defined (__stub_connect) || defined (__stub___connect)
3403 if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3405 eval "ac_cv_func_connect=yes"
3407 echo "configure: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3410 eval "ac_cv_func_connect=no"
3415 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3416 echo "$ac_t""yes" 1>&6
3419 echo "$ac_t""no" 1>&6
3421 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3422 echo "configure:3423: checking for connect in -lsocket" >&5
3423 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 ac_save_LIBS="$LIBS"
3428 LIBS="-lsocket $LIBS"
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 /* Override any gcc2 internal prototype to avoid an error. */
3433 /* We use char because int might match the return type of a gcc2
3434 builtin and then its argument prototype would still apply. */
3441 if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3443 eval "ac_cv_lib_$ac_lib_var=yes"
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3448 eval "ac_cv_lib_$ac_lib_var=no"
3451 LIBS="$ac_save_LIBS"
3454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3455 echo "$ac_t""yes" 1>&6
3456 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3457 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3460 echo "$ac_t""no" 1>&6
3465 echo $ac_n "checking for send""... $ac_c" 1>&6
3466 echo "configure:3467: checking for send" >&5
3467 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 /* System header to define __stub macros and hopefully few prototypes,
3474 which can conflict with char send(); below. */
3476 /* Override any gcc2 internal prototype to avoid an error. */
3477 /* We use char because int might match the return type of a gcc2
3478 builtin and then its argument prototype would still apply. */
3483 /* The GNU C library defines this for functions which it implements
3484 to always fail with ENOSYS. Some functions are actually named
3485 something starting with __ and the normal name is an alias. */
3486 #if defined (__stub_send) || defined (__stub___send)
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3496 eval "ac_cv_func_send=yes"
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3501 eval "ac_cv_func_send=no"
3506 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3507 echo "$ac_t""yes" 1>&6
3510 echo "$ac_t""no" 1>&6
3512 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3513 echo "configure:3514: checking for send in -lsocket" >&5
3514 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 ac_save_LIBS="$LIBS"
3519 LIBS="-lsocket $LIBS"
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* Override any gcc2 internal prototype to avoid an error. */
3524 /* We use char because int might match the return type of a gcc2
3525 builtin and then its argument prototype would still apply. */
3532 if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3534 eval "ac_cv_lib_$ac_lib_var=yes"
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3539 eval "ac_cv_lib_$ac_lib_var=no"
3542 LIBS="$ac_save_LIBS"
3545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3550 echo "$ac_t""no" 1>&6
3555 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3556 echo "configure:3557: checking for gethostbyname" >&5
3557 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 /* System header to define __stub macros and hopefully few prototypes,
3564 which can conflict with char gethostbyname(); below. */
3566 /* Override any gcc2 internal prototype to avoid an error. */
3567 /* We use char because int might match the return type of a gcc2
3568 builtin and then its argument prototype would still apply. */
3569 char gethostbyname();
3573 /* The GNU C library defines this for functions which it implements
3574 to always fail with ENOSYS. Some functions are actually named
3575 something starting with __ and the normal name is an alias. */
3576 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3584 if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3586 eval "ac_cv_func_gethostbyname=yes"
3588 echo "configure: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3591 eval "ac_cv_func_gethostbyname=no"
3596 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3597 echo "$ac_t""yes" 1>&6
3600 echo "$ac_t""no" 1>&6
3602 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3603 echo "configure:3604: checking for gethostbyname in -lnsl" >&5
3604 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 ac_save_LIBS="$LIBS"
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 /* Override any gcc2 internal prototype to avoid an error. */
3614 /* We use char because int might match the return type of a gcc2
3615 builtin and then its argument prototype would still apply. */
3616 char gethostbyname();
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3624 eval "ac_cv_lib_$ac_lib_var=yes"
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3629 eval "ac_cv_lib_$ac_lib_var=no"
3632 LIBS="$ac_save_LIBS"
3635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3637 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3639 echo "$ac_t""no" 1>&6
3645 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3646 echo "configure:3647: checking for gethostbyname" >&5
3647 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 /* System header to define __stub macros and hopefully few prototypes,
3654 which can conflict with char gethostbyname(); below. */
3656 /* Override any gcc2 internal prototype to avoid an error. */
3657 /* We use char because int might match the return type of a gcc2
3658 builtin and then its argument prototype would still apply. */
3659 char gethostbyname();
3663 /* The GNU C library defines this for functions which it implements
3664 to always fail with ENOSYS. Some functions are actually named
3665 something starting with __ and the normal name is an alias. */
3666 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3674 if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3676 eval "ac_cv_func_gethostbyname=yes"
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3681 eval "ac_cv_func_gethostbyname=no"
3686 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3687 echo "$ac_t""yes" 1>&6
3690 echo "$ac_t""no" 1>&6
3692 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3693 echo "configure:3694: checking for gethostbyname in -lbind" >&5
3694 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_save_LIBS="$LIBS"
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 /* Override any gcc2 internal prototype to avoid an error. */
3704 /* We use char because int might match the return type of a gcc2
3705 builtin and then its argument prototype would still apply. */
3706 char gethostbyname();
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3714 eval "ac_cv_lib_$ac_lib_var=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 eval "ac_cv_lib_$ac_lib_var=no"
3722 LIBS="$ac_save_LIBS"
3725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3726 echo "$ac_t""yes" 1>&6
3727 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3729 echo "$ac_t""no" 1>&6
3736 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3737 echo "configure:3738: checking for nanosleep" >&5
3738 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 /* System header to define __stub macros and hopefully few prototypes,
3745 which can conflict with char nanosleep(); below. */
3747 /* Override any gcc2 internal prototype to avoid an error. */
3748 /* We use char because int might match the return type of a gcc2
3749 builtin and then its argument prototype would still apply. */
3754 /* The GNU C library defines this for functions which it implements
3755 to always fail with ENOSYS. Some functions are actually named
3756 something starting with __ and the normal name is an alias. */
3757 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3765 if { (eval echo configure:3766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3767 eval "ac_cv_func_nanosleep=yes"
3769 echo "configure: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3772 eval "ac_cv_func_nanosleep=no"
3777 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3781 echo "$ac_t""no" 1>&6
3783 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3784 echo "configure:3785: checking for nanosleep in -lrt" >&5
3785 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3789 ac_save_LIBS="$LIBS"
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 /* Override any gcc2 internal prototype to avoid an error. */
3795 /* We use char because int might match the return type of a gcc2
3796 builtin and then its argument prototype would still apply. */
3803 if { (eval echo configure:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3805 eval "ac_cv_lib_$ac_lib_var=yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3810 eval "ac_cv_lib_$ac_lib_var=no"
3813 LIBS="$ac_save_LIBS"
3816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3817 echo "$ac_t""yes" 1>&6
3818 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3820 echo "$ac_t""no" 1>&6
3821 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3822 echo "configure:3823: checking for nanosleep in -lposix4" >&5
3823 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3827 ac_save_LIBS="$LIBS"
3828 LIBS="-lposix4 $LIBS"
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3832 /* Override any gcc2 internal prototype to avoid an error. */
3833 /* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3841 if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3843 eval "ac_cv_lib_$ac_lib_var=yes"
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3848 eval "ac_cv_lib_$ac_lib_var=no"
3851 LIBS="$ac_save_LIBS"
3854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3855 echo "$ac_t""yes" 1>&6
3856 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3858 echo "$ac_t""no" 1>&6
3867 if test x$have_nanosleep = x1; then
3868 cat >> confdefs.h <<\EOF
3869 #define HAVE_NANOSLEEP 1
3874 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
3875 echo "configure:3876: checking for sem_init in -lrt" >&5
3876 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
3877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3880 ac_save_LIBS="$LIBS"
3882 cat > conftest.$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3885 /* Override any gcc2 internal prototype to avoid an error. */
3886 /* We use char because int might match the return type of a gcc2
3887 builtin and then its argument prototype would still apply. */
3894 if { (eval echo configure:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3896 eval "ac_cv_lib_$ac_lib_var=yes"
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3901 eval "ac_cv_lib_$ac_lib_var=no"
3904 LIBS="$ac_save_LIBS"
3907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3908 echo "$ac_t""yes" 1>&6
3909 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3911 echo "$ac_t""no" 1>&6
3915 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3916 echo "configure:3917: checking for inet_aton" >&5
3917 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 /* System header to define __stub macros and hopefully few prototypes,
3924 which can conflict with char inet_aton(); below. */
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3933 /* The GNU C library defines this for functions which it implements
3934 to always fail with ENOSYS. Some functions are actually named
3935 something starting with __ and the normal name is an alias. */
3936 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3944 if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3946 eval "ac_cv_func_inet_aton=yes"
3948 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3951 eval "ac_cv_func_inet_aton=no"
3956 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3957 echo "$ac_t""yes" 1>&6
3960 echo "$ac_t""no" 1>&6
3962 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3963 echo "configure:3964: checking for inet_aton in -lresolv" >&5
3964 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 ac_save_LIBS="$LIBS"
3969 LIBS="-lresolv $LIBS"
3970 cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 /* Override any gcc2 internal prototype to avoid an error. */
3974 /* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3982 if { (eval echo configure:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3984 eval "ac_cv_lib_$ac_lib_var=yes"
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3989 eval "ac_cv_lib_$ac_lib_var=no"
3992 LIBS="$ac_save_LIBS"
3995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3996 echo "$ac_t""yes" 1>&6
3997 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3999 echo "$ac_t""no" 1>&6
4005 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4006 echo "configure:4007: checking for textdomain" >&5
4007 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 /* System header to define __stub macros and hopefully few prototypes,
4014 which can conflict with char textdomain(); below. */
4016 /* Override any gcc2 internal prototype to avoid an error. */
4017 /* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4023 /* The GNU C library defines this for functions which it implements
4024 to always fail with ENOSYS. Some functions are actually named
4025 something starting with __ and the normal name is an alias. */
4026 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4034 if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4036 eval "ac_cv_func_textdomain=yes"
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 eval "ac_cv_func_textdomain=no"
4046 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4047 echo "$ac_t""yes" 1>&6
4050 echo "$ac_t""no" 1>&6
4052 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4053 echo "configure:4054: checking for textdomain in -lintl" >&5
4054 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 ac_save_LIBS="$LIBS"
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 /* Override any gcc2 internal prototype to avoid an error. */
4064 /* We use char because int might match the return type of a gcc2
4065 builtin and then its argument prototype would still apply. */
4072 if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4074 eval "ac_cv_lib_$ac_lib_var=yes"
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 eval "ac_cv_lib_$ac_lib_var=no"
4082 LIBS="$ac_save_LIBS"
4085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4086 echo "$ac_t""yes" 1>&6
4087 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4088 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4091 echo "$ac_t""no" 1>&6
4099 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4100 echo "configure:4101: checking for getopt_long" >&5
4101 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 /* System header to define __stub macros and hopefully few prototypes,
4108 which can conflict with char getopt_long(); below. */
4110 /* Override any gcc2 internal prototype to avoid an error. */
4111 /* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4117 /* The GNU C library defines this for functions which it implements
4118 to always fail with ENOSYS. Some functions are actually named
4119 something starting with __ and the normal name is an alias. */
4120 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4128 if { (eval echo configure:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4130 eval "ac_cv_func_getopt_long=yes"
4132 echo "configure: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4135 eval "ac_cv_func_getopt_long=no"
4140 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4141 echo "$ac_t""yes" 1>&6
4142 cat >> confdefs.h <<\EOF
4143 #define HAVE_GETOPT_LONG 1
4147 echo "$ac_t""no" 1>&6
4148 # FreeBSD has a gnugetopt library for this:
4149 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4150 echo "configure:4151: checking for getopt_long in -lgnugetopt" >&5
4151 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 ac_save_LIBS="$LIBS"
4156 LIBS="-lgnugetopt $LIBS"
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 /* Override any gcc2 internal prototype to avoid an error. */
4161 /* We use char because int might match the return type of a gcc2
4162 builtin and then its argument prototype would still apply. */
4169 if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4171 eval "ac_cv_lib_$ac_lib_var=yes"
4173 echo "configure: failed program was:" >&5
4174 cat conftest.$ac_ext >&5
4176 eval "ac_cv_lib_$ac_lib_var=no"
4179 LIBS="$ac_save_LIBS"
4182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4183 echo "$ac_t""yes" 1>&6
4184 cat >> confdefs.h <<\EOF
4185 #define HAVE_GETOPT_LONG 1
4187 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4189 echo "$ac_t""no" 1>&6
4196 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4197 echo "configure:4198: checking return type of signal handlers" >&5
4198 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 #include <sys/types.h>
4210 extern "C" void (*signal (int, void (*)(int)))(int);
4212 void (*signal ()) ();
4219 if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4221 ac_cv_type_signal=void
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 ac_cv_type_signal=int
4231 echo "$ac_t""$ac_cv_type_signal" 1>&6
4232 cat >> confdefs.h <<EOF
4233 #define RETSIGTYPE $ac_cv_type_signal
4237 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4238 echo "configure:4239: checking for dlopen in -ldl" >&5
4239 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 ac_save_LIBS="$LIBS"
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4259 eval "ac_cv_lib_$ac_lib_var=yes"
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4264 eval "ac_cv_lib_$ac_lib_var=no"
4267 LIBS="$ac_save_LIBS"
4270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4271 echo "$ac_t""yes" 1>&6
4272 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4274 echo "$ac_t""no" 1>&6
4277 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4278 echo "configure:4279: checking for cos in -lm" >&5
4279 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4283 ac_save_LIBS="$LIBS"
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4288 /* Override any gcc2 internal prototype to avoid an error. */
4289 /* We use char because int might match the return type of a gcc2
4290 builtin and then its argument prototype would still apply. */
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4299 eval "ac_cv_lib_$ac_lib_var=yes"
4301 echo "configure: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4304 eval "ac_cv_lib_$ac_lib_var=no"
4307 LIBS="$ac_save_LIBS"
4310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4311 echo "$ac_t""yes" 1>&6
4312 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4313 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4315 echo "$ac_t""no" 1>&6
4318 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4319 echo "configure:4320: checking for pow in -lm" >&5
4320 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 ac_save_LIBS="$LIBS"
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4329 /* Override any gcc2 internal prototype to avoid an error. */
4330 /* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4338 if { (eval echo configure:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4340 eval "ac_cv_lib_$ac_lib_var=yes"
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4345 eval "ac_cv_lib_$ac_lib_var=no"
4348 LIBS="$ac_save_LIBS"
4351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4352 echo "$ac_t""yes" 1>&6
4353 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4354 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4355 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4356 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4357 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4360 echo "$ac_t""no" 1>&6
4365 if test "x${THREAD_LIB}" = "xerror"; then
4366 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4367 echo "configure:4368: checking for main in -lpthread" >&5
4368 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 ac_save_LIBS="$LIBS"
4373 LIBS="-lpthread $LIBS"
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4382 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4384 eval "ac_cv_lib_$ac_lib_var=yes"
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4389 eval "ac_cv_lib_$ac_lib_var=no"
4392 LIBS="$ac_save_LIBS"
4395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4397 THREAD_LIB="-lpthread"
4399 echo "$ac_t""no" 1>&6
4403 if test "x${THREAD_LIB}" = "xerror"; then
4404 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4405 echo "configure:4406: checking for main in -lpthreads" >&5
4406 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 ac_save_LIBS="$LIBS"
4411 LIBS="-lpthreads $LIBS"
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4422 eval "ac_cv_lib_$ac_lib_var=yes"
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4427 eval "ac_cv_lib_$ac_lib_var=no"
4430 LIBS="$ac_save_LIBS"
4433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4434 echo "$ac_t""yes" 1>&6
4435 THREAD_LIB="-lpthreads"
4437 echo "$ac_t""no" 1>&6
4441 if test "x${THREAD_LIB}" = "xerror"; then
4442 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4443 echo "configure:4444: checking for main in -lc_r" >&5
4444 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 ac_save_LIBS="$LIBS"
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4460 eval "ac_cv_lib_$ac_lib_var=yes"
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4465 eval "ac_cv_lib_$ac_lib_var=no"
4468 LIBS="$ac_save_LIBS"
4471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4475 echo "$ac_t""no" 1>&6
4479 if test "x${THREAD_LIB}" = "xerror"; then
4480 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4481 echo "configure:4482: checking for pthread_mutex_lock" >&5
4482 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 /* System header to define __stub macros and hopefully few prototypes,
4489 which can conflict with char pthread_mutex_lock(); below. */
4491 /* Override any gcc2 internal prototype to avoid an error. */
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4494 char pthread_mutex_lock();
4498 /* The GNU C library defines this for functions which it implements
4499 to always fail with ENOSYS. Some functions are actually named
4500 something starting with __ and the normal name is an alias. */
4501 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4504 pthread_mutex_lock();
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 eval "ac_cv_func_pthread_mutex_lock=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_func_pthread_mutex_lock=no"
4521 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4525 echo "$ac_t""no" 1>&6
4531 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4532 echo "configure:4533: checking for cthread_fork in -lthreads" >&5
4533 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4537 ac_save_LIBS="$LIBS"
4538 LIBS="-lthreads $LIBS"
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4542 /* Override any gcc2 internal prototype to avoid an error. */
4543 /* We use char because int might match the return type of a gcc2
4544 builtin and then its argument prototype would still apply. */
4545 char cthread_fork();
4551 if { (eval echo configure:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4553 eval "ac_cv_lib_$ac_lib_var=yes"
4555 echo "configure: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4558 eval "ac_cv_lib_$ac_lib_var=no"
4561 LIBS="$ac_save_LIBS"
4564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4565 echo "$ac_t""yes" 1>&6
4566 THREAD_LIB="-lthreads"
4568 echo "$ac_t""no" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 #include <pthread.h>
4577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4578 egrep "pthread_cond_t" >/dev/null 2>&1; then
4581 cat >> confdefs.h <<\EOF
4582 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4588 cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4591 #include <pthread.h>
4593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4594 egrep "pthread_once" >/dev/null 2>&1; then
4597 cat >> confdefs.h <<\EOF
4598 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #include <strings.h>
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610 egrep "strncasecmp" >/dev/null 2>&1; then
4613 cat >> confdefs.h <<\EOF
4614 #define STRNCASECMP_IN_STRINGS_H 1
4621 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_hdr" >&5
4626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4635 { (eval echo configure:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4637 if test -z "$ac_err"; then
4639 eval "ac_cv_header_$ac_safe=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 eval "ac_cv_header_$ac_safe=no"
4649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_hdr 1
4657 echo "$ac_t""no" 1>&6
4661 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4665 echo "configure:4666: checking for $ac_hdr" >&5
4666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4675 { (eval echo configure:4676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4677 if test -z "$ac_err"; then
4679 eval "ac_cv_header_$ac_safe=yes"
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4685 eval "ac_cv_header_$ac_safe=no"
4689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4692 cat >> confdefs.h <<EOF
4693 #define $ac_tr_hdr 1
4697 echo "$ac_t""no" 1>&6
4701 for ac_hdr in dlfcn.h image.h
4703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4705 echo "configure:4706: checking for $ac_hdr" >&5
4706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4707 echo $ac_n "(cached) $ac_c" 1>&6
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4715 { (eval echo configure:4716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4717 if test -z "$ac_err"; then
4719 eval "ac_cv_header_$ac_safe=yes"
4722 echo "configure: failed program was:" >&5
4723 cat conftest.$ac_ext >&5
4725 eval "ac_cv_header_$ac_safe=no"
4729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4730 echo "$ac_t""yes" 1>&6
4731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4732 cat >> confdefs.h <<EOF
4733 #define $ac_tr_hdr 1
4737 echo "$ac_t""no" 1>&6
4741 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4745 echo "configure:4746: checking for $ac_hdr" >&5
4746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4749 cat > conftest.$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4755 { (eval echo configure:4756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4757 if test -z "$ac_err"; then
4759 eval "ac_cv_header_$ac_safe=yes"
4762 echo "configure: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4765 eval "ac_cv_header_$ac_safe=no"
4769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4770 echo "$ac_t""yes" 1>&6
4771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4772 cat >> confdefs.h <<EOF
4773 #define $ac_tr_hdr 1
4777 echo "$ac_t""no" 1>&6
4781 for ac_hdr in machine/param.h sys/shm.h
4783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4785 echo "configure:4786: checking for $ac_hdr" >&5
4786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4795 { (eval echo configure:4796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4797 if test -z "$ac_err"; then
4799 eval "ac_cv_header_$ac_safe=yes"
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4805 eval "ac_cv_header_$ac_safe=no"
4809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4810 echo "$ac_t""yes" 1>&6
4811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4812 cat >> confdefs.h <<EOF
4813 #define $ac_tr_hdr 1
4817 echo "$ac_t""no" 1>&6
4821 for ac_hdr in linux/version.h
4823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4825 echo "configure:4826: checking for $ac_hdr" >&5
4826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4835 { (eval echo configure:4836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4837 if test -z "$ac_err"; then
4839 eval "ac_cv_header_$ac_safe=yes"
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4845 eval "ac_cv_header_$ac_safe=no"
4849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6
4851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4852 cat >> confdefs.h <<EOF
4853 #define $ac_tr_hdr 1
4857 echo "$ac_t""no" 1>&6
4862 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4863 echo "configure:4864: checking whether time.h and sys/time.h may both be included" >&5
4864 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 #include <sys/types.h>
4871 #include <sys/time.h>
4877 if { (eval echo configure:4878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4879 ac_cv_header_time=yes
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4884 ac_cv_header_time=no
4889 echo "$ac_t""$ac_cv_header_time" 1>&6
4890 if test $ac_cv_header_time = yes; then
4891 cat >> confdefs.h <<\EOF
4892 #define TIME_WITH_SYS_TIME 1
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4904 egrep "nanosleep" >/dev/null 2>&1; then
4907 cat >> confdefs.h <<\EOF
4908 #define HAVE_DECL_NANOSLEEP 1
4916 cat > conftest.$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4919 #include <sys/time.h>
4921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4922 egrep "timespec" >/dev/null 2>&1; then
4925 cat >> confdefs.h <<\EOF
4926 #define HAVE_STRUCT_TIMESPEC 1
4934 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4938 echo "configure:4939: checking for $ac_hdr" >&5
4939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4948 { (eval echo configure:4949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4950 if test -z "$ac_err"; then
4952 eval "ac_cv_header_$ac_safe=yes"
4955 echo "configure: failed program was:" >&5
4956 cat conftest.$ac_ext >&5
4958 eval "ac_cv_header_$ac_safe=no"
4962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4963 echo "$ac_t""yes" 1>&6
4964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4965 cat >> confdefs.h <<EOF
4966 #define $ac_tr_hdr 1
4970 echo "$ac_t""no" 1>&6
4975 if test "x${x_includes}" = "xNONE"; then
4976 x_includes="/usr/X11R6/include"
4978 if test "x${x_libraries}" = "xNONE"; then
4979 x_libraries="/usr/X11R6/lib"
4982 if test "x${SYS}" != "xmingw32"
4984 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
4985 for ac_hdr in X11/extensions/dpms.h
4987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4989 echo "configure:4990: checking for $ac_hdr" >&5
4990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4999 { (eval echo configure:5000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5001 if test -z "$ac_err"; then
5003 eval "ac_cv_header_$ac_safe=yes"
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5009 eval "ac_cv_header_$ac_safe=no"
5013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5016 cat >> confdefs.h <<EOF
5017 #define $ac_tr_hdr 1
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 #include <X11/extensions/dpms.h>
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026 egrep "DPMSInfo" >/dev/null 2>&1; then
5029 cat >> confdefs.h <<\EOF
5030 #define DPMSINFO_IN_DPMS_H 1
5039 echo "$ac_t""no" 1>&6
5043 CPPFLAGS="${save_CPPFLAGS}"
5046 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5047 echo "configure:5048: checking for ntohl in sys/param.h" >&5
5048 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5051 CFLAGS="${save_CFLAGS} -Wall -Werror"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 #include <sys/param.h>
5057 void foo() { int meuh; ntohl(meuh); }
5060 if { (eval echo configure:5061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5062 ac_cv_c_ntohl_sys_param_h=yes
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 ac_cv_c_ntohl_sys_param_h=no
5072 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5073 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5074 cat >> confdefs.h <<\EOF
5075 #define NTOHL_IN_SYS_PARAM_H 1
5080 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5081 echo "configure:5082: checking if \$CC accepts -finline-limit" >&5
5082 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5094 if { (eval echo configure:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5096 ac_cv_c_inline_limit=yes
5098 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5101 ac_cv_c_inline_limit=no
5106 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5107 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5108 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5111 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5112 echo "configure:5113: checking if \$CC accepts -Wall -Winline" >&5
5113 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5116 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5125 if { (eval echo configure:5126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5127 ac_cv_c_Wall_Winline=yes
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5132 ac_cv_c_Wall_Winline=no
5137 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5138 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5139 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5141 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5142 echo "configure:5143: checking if \$CC accepts -wall -winline" >&5
5143 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 CFLAGS="-wall -winline ${save_CFLAGS}"
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5155 if { (eval echo configure:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 ac_cv_c_wall_winline=yes
5159 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5162 ac_cv_c_wall_winline=no
5167 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5168 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5169 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5173 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5174 echo "configure:5175: checking if \$CC accepts -pipe" >&5
5175 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5178 CFLAGS="${save_CFLAGS} -pipe"
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5187 if { (eval echo configure:5188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5199 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5200 if test "x${ac_cv_c_pipe}" != "xno"; then
5201 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5204 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5205 echo "configure:5206: checking if \$CC accepts -O3" >&5
5206 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5209 CFLAGS="${save_CFLAGS} -O3"
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5218 if { (eval echo configure:5219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5222 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5230 echo "$ac_t""$ac_cv_c_o3" 1>&6
5231 if test "x${ac_cv_c_o3}" != "xno"; then
5232 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5234 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5235 echo "configure:5236: checking if \$CC accepts -O2" >&5
5236 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5237 echo $ac_n "(cached) $ac_c" 1>&6
5239 CFLAGS="${save_CFLAGS} -O2"
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5248 if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5260 echo "$ac_t""$ac_cv_c_o2" 1>&6
5261 if test "x${ac_cv_c_o2}" != "xno"; then
5262 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5264 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5265 echo "configure:5266: checking if \$CC accepts -O" >&5
5266 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 CFLAGS="${save_CFLAGS} -O"
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5278 if { (eval echo configure:5279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5290 echo "$ac_t""$ac_cv_c_o" 1>&6
5291 if test "x${ac_cv_c_o}" != "xno"; then
5292 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5297 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5298 echo "configure:5299: checking if \$CC accepts -ffast-math" >&5
5299 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 CFLAGS="${save_CFLAGS} -ffast-math"
5303 cat > conftest.$ac_ext <<EOF
5304 #line 5305 "configure"
5305 #include "confdefs.h"
5311 if { (eval echo configure:5312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5313 ac_cv_c_fast_math=yes
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5318 ac_cv_c_fast_math=no
5323 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5324 if test "x${ac_cv_c_fast_math}" != "xno"; then
5325 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5328 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5329 echo "configure:5330: checking if \$CC accepts -funroll-loops" >&5
5330 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5333 CFLAGS="${save_CFLAGS} -funroll-loops"
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5342 if { (eval echo configure:5343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5344 ac_cv_c_unroll_loops=yes
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5349 ac_cv_c_unroll_loops=no
5354 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5355 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5356 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5359 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5360 echo "configure:5361: checking if \$CC accepts -fomit-frame-pointer" >&5
5361 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5364 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5365 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure"
5367 #include "confdefs.h"
5373 if { (eval echo configure:5374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5375 ac_cv_c_omit_frame_pointer=yes
5377 echo "configure: failed program was:" >&5
5378 cat conftest.$ac_ext >&5
5380 ac_cv_c_omit_frame_pointer=no
5385 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5386 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5387 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5388 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5389 chroma_i420_yuy2_mmx_CFLAGS="${chroma_i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5392 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5393 echo "configure:5394: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5394 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5406 if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5418 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5419 if test "x${ac_cv_ld_darwin}" != "xno"; then
5420 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5423 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5424 echo "configure:5425: checking if \$CC accepts -shared" >&5
5425 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5428 CFLAGS="${save_CFLAGS} -shared"
5429 cat > conftest.$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5437 if { (eval echo configure:5438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5439 ac_cv_ld_plugins=yes
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5449 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5450 if test "x${ac_cv_ld_plugins}" != "xno"; then
5451 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5454 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5455 echo "configure:5456: checking for variadic cpp macros" >&5
5456 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5459 CFLAGS="${save_CFLAGS}"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5464 #define a(b,c...) printf(b,##c)
5466 a("foo");a("%s","bar");a("%s%s","baz","quux");
5469 if { (eval echo configure:5470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5471 ac_cv_cpp_variadic_macros=yes
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 ac_cv_cpp_variadic_macros=no
5481 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5482 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5483 cat >> confdefs.h <<\EOF
5484 #define HAVE_VARIADIC_MACROS 1
5489 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5490 echo "configure:5491: checking __attribute__ ((aligned ())) support" >&5
5491 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5492 echo $ac_n "(cached) $ac_c" 1>&6
5494 ac_cv_c_attribute_aligned=0
5495 CFLAGS="${save_CFLAGS} -Werror"
5496 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5502 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5505 if { (eval echo configure:5506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5507 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5514 CFLAGS="${save_CFLAGS}"
5517 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5518 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5519 cat >> confdefs.h <<EOF
5520 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5525 case "x${target_cpu}" in
5530 ARCH="${target_cpu}"
5534 BUILTINS="${BUILTINS}"
5535 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_audio mpeg_ps mpeg_ts idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga"
5537 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5538 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5539 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5540 SSE_MODULES="imdctsse downmixsse"
5541 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5543 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5544 echo "configure:5545: checking if \$CC groks MMX inline assembly" >&5
5545 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5548 CFLAGS="${save_CFLAGS}"
5549 cat > conftest.$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5554 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5557 if { (eval echo configure:5558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5559 ac_cv_mmx_inline=yes
5561 echo "configure: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5569 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5570 if test "x${ac_cv_mmx_inline}" != "xno"; then
5571 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5574 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5575 echo "configure:5576: checking if \$CC groks MMX EXT inline assembly" >&5
5576 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5577 echo $ac_n "(cached) $ac_c" 1>&6
5579 CFLAGS="${save_CFLAGS}"
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5585 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5588 if { (eval echo configure:5589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5590 ac_cv_mmxext_inline=yes
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5595 ac_cv_mmxext_inline=no
5600 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5601 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5602 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5605 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5606 echo "configure:5607: checking if \$CC groks 3D Now! inline assembly" >&5
5607 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5610 CFLAGS="${save_CFLAGS}"
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5616 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5619 if { (eval echo configure:5620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5621 ac_cv_3dnow_inline=yes
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5626 ac_cv_3dnow_inline=no
5631 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5632 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5633 cat >> confdefs.h <<\EOF
5634 #define CAN_COMPILE_3DNOW 1
5637 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5640 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5641 echo "configure:5642: checking if \$CC groks SSE inline assembly" >&5
5642 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5645 CFLAGS="${save_CFLAGS}"
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5651 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5654 if { (eval echo configure:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5656 ac_cv_sse_inline=yes
5658 echo "configure: failed program was:" >&5
5659 cat conftest.$ac_ext >&5
5666 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5667 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5668 cat >> confdefs.h <<\EOF
5669 #define CAN_COMPILE_SSE 1
5672 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5675 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5676 # we should be able to remove this test with future versions of mingw32
5677 if test "x${SYS}" != "xmingw32"; then
5678 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5679 echo "configure:5680: checking if \$CC groks AltiVec inline assembly" >&5
5680 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5683 CFLAGS="${save_CFLAGS}"
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5689 asm volatile("vperm 0,1,2,3");
5692 if { (eval echo configure:5693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5694 ac_cv_altivec_inline=yes
5696 echo "configure: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5699 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5705 asm volatile("vperm 0,1,2,3");
5708 if { (eval echo configure:5709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5710 ac_cv_altivec_inline="-Wa,-m7400"
5712 echo "configure: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5715 ac_cv_altivec_inline=no
5723 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5724 if test "x${ac_cv_altivec_inline}" != "xno"; then
5725 cat >> confdefs.h <<\EOF
5726 #define CAN_COMPILE_ALTIVEC 1
5729 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5730 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5731 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5732 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5733 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5735 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5738 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5739 echo "configure:5740: checking if \$CC groks AltiVec C extensions" >&5
5740 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 CFLAGS="${save_CFLAGS} -faltivec"
5745 cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5750 vec_mtvscr((vector unsigned int)(0));
5753 if { (eval echo configure:5754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5755 ac_cv_c_altivec=-faltivec
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5762 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5763 cat > conftest.$ac_ext <<EOF
5764 #line 5765 "configure"
5765 #include "confdefs.h"
5768 vec_mtvscr((vector unsigned int)(0));
5771 if { (eval echo configure:5772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5773 ac_cv_c_altivec="-fvec"
5775 echo "configure: failed program was:" >&5
5776 cat conftest.$ac_ext >&5
5784 CFLAGS="${save_CFLAGS}"
5787 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5788 if test "x${ac_cv_c_altivec}" != "xno"; then
5789 cat >> confdefs.h <<\EOF
5790 #define CAN_COMPILE_C_ALTIVEC 1
5793 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5794 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5795 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5796 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5797 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5800 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5801 echo "configure:5802: checking if linker needs -framework vecLib" >&5
5802 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6
5805 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5806 cat > conftest.$ac_ext <<EOF
5807 #line 5808 "configure"
5808 #include "confdefs.h"
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5816 ac_cv_ld_altivec=yes
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5824 LDFLAGS="${save_LDFLAGS}"
5828 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5829 if test "x${ac_cv_ld_altivec}" != "xno"; then
5830 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5831 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5832 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5833 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5838 # Check whether --with- or --without- was given.
5839 if test "${with_+set}" = set; then
5844 # Check whether --with- or --without- was given.
5845 if test "${with_+set}" = set; then
5851 # Check whether --with-tuning or --without-tuning was given.
5852 if test "${with_tuning+set}" = set; then
5853 withval="$with_tuning"
5857 if test "x${with_tuning}" != "x"; then
5858 TUNING="${with_tuning}"
5860 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5862 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5866 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
5869 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5872 # Check whether --enable-optimizations or --disable-optimizations was given.
5873 if test "${enable_optimizations+set}" = set; then
5874 enableval="$enable_optimizations"
5875 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
5881 # Check whether --enable-altivec or --disable-altivec was given.
5882 if test "${enable_altivec+set}" = set; then
5883 enableval="$enable_altivec"
5884 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
5885 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5887 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
5888 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5893 # Check whether --enable-debug or --disable-debug was given.
5894 if test "${enable_debug+set}" = set; then
5895 enableval="$enable_debug"
5896 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
5901 # Check whether --enable-release or --disable-release was given.
5902 if test "${enable_release+set}" = set; then
5903 enableval="$enable_release"
5904 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
5906 VERSION="${VERSION}_`date +%Y-%m-%d`"
5911 # Check whether --with- or --without- was given.
5912 if test "${with_+set}" = set; then
5918 # Check whether --enable-dvd or --disable-dvd was given.
5919 if test "${enable_dvd+set}" = set; then
5920 enableval="$enable_dvd"
5924 if test "x${enable_dvd}" != "xno"
5926 # Check whether --with-dvdcss or --without-dvdcss was given.
5927 if test "${with_dvdcss+set}" = set; then
5928 withval="$with_dvdcss"
5932 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5933 if test "${with_dvdcss_tree+set}" = set; then
5934 withval="$with_dvdcss_tree"
5938 case "x${with_dvdcss}" in
5940 if test "x${with_dvdcss_tree}" = x
5942 for ac_hdr in dvdcss/dvdcss.h
5944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5946 echo "configure:5947: checking for $ac_hdr" >&5
5947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5956 { (eval echo configure:5957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5958 if test -z "$ac_err"; then
5960 eval "ac_cv_header_$ac_safe=yes"
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5966 eval "ac_cv_header_$ac_safe=no"
5970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5973 cat >> confdefs.h <<EOF
5974 #define $ac_tr_hdr 1
5976 PLUGINS="${PLUGINS} dvd"
5977 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5979 echo "$ac_t""no" 1>&6
5980 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
5981 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5986 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5987 echo "configure:5988: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5988 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5989 if test "x${real_dvdcss_tree}" = "x"
5991 echo "$ac_t""no" 1>&6
5992 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5994 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5996 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5997 BUILTINS="${BUILTINS} dvd"
5998 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5999 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6001 echo "$ac_t""no" 1>&6
6002 { 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; }
6007 PLUGINS="${PLUGINS} dvd"
6008 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6009 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6012 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6013 echo "configure:6014: checking for dvdcss headers in ${with_dvdcss}" >&5
6014 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6016 echo "$ac_t""yes" 1>&6
6017 PLUGINS="${PLUGINS} dvd"
6018 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6019 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6021 echo "$ac_t""no" 1>&6
6022 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6028 # Check whether --enable-dvdread or --disable-dvdread was given.
6029 if test "${enable_dvdread+set}" = set; then
6030 enableval="$enable_dvdread"
6034 if test "x${enable_dvdread}" != "xno"
6036 # Check whether --with-dvdread or --without-dvdread was given.
6037 if test "${with_dvdread+set}" = set; then
6038 withval="$with_dvdread"
6042 if test "x${with_dvdread}" = "x"
6047 test_LDFLAGS="-L${with_dvdread}/lib"
6048 test_CFLAGS="-I${with_dvdread}/include"
6050 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6051 for ac_hdr in dvdread/dvd_reader.h
6053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6055 echo "configure:6056: checking for $ac_hdr" >&5
6056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6065 { (eval echo configure:6066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6067 if test -z "$ac_err"; then
6069 eval "ac_cv_header_$ac_safe=yes"
6072 echo "configure: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6075 eval "ac_cv_header_$ac_safe=no"
6079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6082 cat >> confdefs.h <<EOF
6083 #define $ac_tr_hdr 1
6086 cat > conftest.$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6089 #include <dvdread/dvd_reader.h>
6091 void foo() { int i=DVD_VIDEO_LB_LEN; }
6094 if { (eval echo configure:6095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6097 PLUGINS="${PLUGINS} dvdread"
6098 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6099 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6106 if test "x${enable_dvdread}" != "x"
6108 { 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; }
6115 echo "$ac_t""no" 1>&6
6116 if test "x${enable_dvdread}" != "x"
6118 if test "x${with_dvdread}" != "x"
6120 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6122 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6129 CPPFLAGS="$save_CPPFLAGS"
6132 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6133 if test "${enable_dvdplay+set}" = set; then
6134 enableval="$enable_dvdplay"
6138 if test "x$enable_dvdplay" != "xno"
6140 # Check whether --with-dvdplay or --without-dvdplay was given.
6141 if test "${with_dvdplay+set}" = set; then
6142 withval="$with_dvdplay"
6146 if test "x$with_dvdplay" = x
6151 test_LDFLAGS="-L${with_dvdplay}/lib"
6152 test_CFLAGS="-I${with_dvdplay}/include"
6154 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6155 for ac_hdr in dvdplay/dvdplay.h
6157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6159 echo "configure:6160: checking for $ac_hdr" >&5
6160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6169 { (eval echo configure:6170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6171 if test -z "$ac_err"; then
6173 eval "ac_cv_header_$ac_safe=yes"
6176 echo "configure: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6179 eval "ac_cv_header_$ac_safe=no"
6183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6184 echo "$ac_t""yes" 1>&6
6185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6186 cat >> confdefs.h <<EOF
6187 #define $ac_tr_hdr 1
6190 PLUGINS="${PLUGINS} dvdplay"
6191 dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6192 dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6195 echo "$ac_t""no" 1>&6
6196 if test "x$enable_dvdplay" != x
6198 if test "x$with_dvdplay" != x
6200 { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6202 { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6209 CPPFLAGS="${save_CPPFLAGS}"
6213 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6214 if test "${enable_dvbpsi+set}" = set; then
6215 enableval="$enable_dvbpsi"
6219 if test "x${enable_dvbpsi}" != "xno"
6221 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6222 if test "${with_dvbpsi+set}" = set; then
6223 withval="$with_dvbpsi"
6227 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6228 if test "${with_dvbpsi+set}" = set; then
6229 withval="$with_dvbpsi"
6233 case "x${with_dvbpsi}" in
6235 if test "x${with_dvbpsi_tree}" = "x"
6237 for ac_hdr in dvbpsi/dr.h
6239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6241 echo "configure:6242: checking for $ac_hdr" >&5
6242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6243 echo $ac_n "(cached) $ac_c" 1>&6
6245 cat > conftest.$ac_ext <<EOF
6246 #line 6247 "configure"
6247 #include "confdefs.h"
6250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6251 { (eval echo configure:6252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6253 if test -z "$ac_err"; then
6255 eval "ac_cv_header_$ac_safe=yes"
6258 echo "configure: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6261 eval "ac_cv_header_$ac_safe=no"
6265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6266 echo "$ac_t""yes" 1>&6
6267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6268 cat >> confdefs.h <<EOF
6269 #define $ac_tr_hdr 1
6271 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6272 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6274 echo "$ac_t""no" 1>&6
6279 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6280 echo "configure:6281: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6281 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6282 if test "x${real_dvbpsi_tree}" = "x"
6284 echo "$ac_t""no" 1>&6
6285 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6287 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6289 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6290 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6291 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6292 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6294 echo "$ac_t""no" 1>&6
6295 { 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; }
6302 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6303 echo "configure:6304: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6304 if test "x${with_dvbpsi}" = "x"
6309 test_LDFLAGS="-L${with_dvbpsi}/lib"
6310 test_CFLAGS="-I${with_dvbpsi}/include"
6312 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6313 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6314 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6315 echo "configure:6316: checking for dvbpsi/dr.h" >&5
6316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6317 echo $ac_n "(cached) $ac_c" 1>&6
6319 cat > conftest.$ac_ext <<EOF
6320 #line 6321 "configure"
6321 #include "confdefs.h"
6322 #include <dvbpsi/dr.h>
6324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6325 { (eval echo configure:6326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6327 if test -z "$ac_err"; then
6329 eval "ac_cv_header_$ac_safe=yes"
6332 echo "configure: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 eval "ac_cv_header_$ac_safe=no"
6339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6342 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6343 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6344 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6347 echo "$ac_t""no" 1>&6
6349 if test "x${enable_dvbpsi}" != "x"
6351 { 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; }
6356 CPPFLAGS="${save_CPPFLAGS}"
6361 # Check whether --enable-vcd or --disable-vcd was given.
6362 if test "${enable_vcd+set}" = set; then
6363 enableval="$enable_vcd"
6368 if test "x${enable_vcd}" != "xno"
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6373 #include <linux/cdrom.h>
6375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 egrep "cdrom_msf0" >/dev/null 2>&1; then
6379 PLUGINS="${PLUGINS} vcd"
6385 cat > conftest.$ac_ext <<EOF
6386 #line 6387 "configure"
6387 #include "confdefs.h"
6388 #include <sys/cdio.h>
6390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391 egrep "ioc_toc_header " >/dev/null 2>&1; then
6394 PLUGINS="${PLUGINS} vcd"
6395 cat >> confdefs.h <<\EOF
6396 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6404 if test "x${SYS}" = "xbsdi"
6406 PLUGINS="${PLUGINS} vcd"
6409 if test "x${SYS}" = "xdarwin"
6411 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6412 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6416 # Check whether --enable-satellite or --disable-satellite was given.
6417 if test "${enable_satellite+set}" = set; then
6418 enableval="$enable_satellite"
6419 if test "x${enable_satellite}" = "xyes"
6421 PLUGINS="${PLUGINS} satellite"
6426 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6429 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6430 echo "configure:6431: checking for inet_pton" >&5
6431 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 /* System header to define __stub macros and hopefully few prototypes,
6438 which can conflict with char inet_pton(); below. */
6440 /* Override any gcc2 internal prototype to avoid an error. */
6441 /* We use char because int might match the return type of a gcc2
6442 builtin and then its argument prototype would still apply. */
6447 /* The GNU C library defines this for functions which it implements
6448 to always fail with ENOSYS. Some functions are actually named
6449 something starting with __ and the normal name is an alias. */
6450 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6458 if { (eval echo configure:6459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6460 eval "ac_cv_func_inet_pton=yes"
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6465 eval "ac_cv_func_inet_pton=no"
6470 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6471 echo "$ac_t""yes" 1>&6
6474 echo "$ac_t""no" 1>&6
6476 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6477 echo "configure:6478: checking for inet_pton in -lresolv" >&5
6478 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 ac_save_LIBS="$LIBS"
6483 LIBS="-lresolv $LIBS"
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6496 if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6498 eval "ac_cv_lib_$ac_lib_var=yes"
6500 echo "configure: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6503 eval "ac_cv_lib_$ac_lib_var=no"
6506 LIBS="$ac_save_LIBS"
6509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6510 echo "$ac_t""yes" 1>&6
6512 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6514 echo "$ac_t""no" 1>&6
6520 echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6521 echo "configure:6522: checking for sockaddr_in6 in netinet/in.h" >&5
6522 cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 #include <netinet/in.h>
6527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6528 egrep "sockaddr_in6" >/dev/null 2>&1; then
6530 echo "$ac_t""yes" 1>&6
6533 echo "$ac_t""no" 1>&6; have_ipv6=0
6537 if test x$have_ipv6 = x1; then
6538 PLUGINS="${PLUGINS} ipv6"
6541 if test "x${SYS}" = "xmingw32"
6543 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6544 echo "configure:6545: checking for getaddrinfo in ws2tcpip.h" >&5
6545 cat > conftest.$ac_ext <<EOF
6546 #line 6547 "configure"
6547 #include "confdefs.h"
6548 #include <ws2tcpip.h>
6550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6551 egrep "addrinfo" >/dev/null 2>&1; then
6553 echo "$ac_t""yes" 1>&6
6554 PLUGINS="${PLUGINS} ipv6"
6557 echo "$ac_t""no" 1>&6
6563 # Check whether --enable-avi or --disable-avi was given.
6564 if test "${enable_avi+set}" = set; then
6565 enableval="$enable_avi"
6569 if test "x${enable_avi}" != "xno"
6571 PLUGINS="${PLUGINS} avi"
6575 # Check whether --with- or --without- was given.
6576 if test "${with_+set}" = set; then
6582 # Check whether --enable-mad or --disable-mad was given.
6583 if test "${enable_mad+set}" = set; then
6584 enableval="$enable_mad"
6588 if test "x${enable_mad}" = "xyes"
6590 # Check whether --with-mad or --without-mad was given.
6591 if test "${with_mad+set}" = set; then
6596 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6598 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6599 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6602 # Check whether --with-mad-tree or --without-mad-tree was given.
6603 if test "${with_mad_tree+set}" = set; then
6604 withval="$with_mad_tree"
6608 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6610 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6611 if test "x${real_mad_tree}" = "x"
6613 echo "$ac_t""no" 1>&6
6614 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6616 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6617 echo "configure:6618: checking for mad.h in ${real_mad_tree}/libmad" >&5
6618 if test -f ${real_mad_tree}/libmad/mad.h
6620 echo "$ac_t""yes" 1>&6
6621 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6622 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6623 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6624 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6625 echo "configure:6626: checking for mad_bit_init in -lmad" >&5
6626 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6628 echo $ac_n "(cached) $ac_c" 1>&6
6630 ac_save_LIBS="$LIBS"
6632 cat > conftest.$ac_ext <<EOF
6633 #line 6634 "configure"
6634 #include "confdefs.h"
6635 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6638 char mad_bit_init();
6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6646 eval "ac_cv_lib_$ac_lib_var=yes"
6648 echo "configure: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6651 eval "ac_cv_lib_$ac_lib_var=no"
6654 LIBS="$ac_save_LIBS"
6657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6658 echo "$ac_t""yes" 1>&6
6660 BUILTINS="${BUILTINS} mad"
6661 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6664 echo "$ac_t""no" 1>&6
6665 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6669 LDFLAGS="${save_LDFLAGS}"
6671 echo "$ac_t""no" 1>&6
6672 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6675 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6676 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6681 echo "configure:6682: checking for $ac_hdr" >&5
6682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6691 { (eval echo configure:6692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6693 if test -z "$ac_err"; then
6695 eval "ac_cv_header_$ac_safe=yes"
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 eval "ac_cv_header_$ac_safe=no"
6705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6708 cat >> confdefs.h <<EOF
6709 #define $ac_tr_hdr 1
6713 echo "$ac_t""no" 1>&6
6714 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6718 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6719 echo "configure:6720: checking for mad_bit_init in -lmad" >&5
6720 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6724 ac_save_LIBS="$LIBS"
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729 /* Override any gcc2 internal prototype to avoid an error. */
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6732 char mad_bit_init();
6738 if { (eval echo configure:6739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6740 eval "ac_cv_lib_$ac_lib_var=yes"
6742 echo "configure: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6745 eval "ac_cv_lib_$ac_lib_var=no"
6748 LIBS="$ac_save_LIBS"
6751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6752 echo "$ac_t""yes" 1>&6
6754 PLUGINS="${PLUGINS} mad"
6755 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6757 echo "$ac_t""no" 1>&6
6758 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6761 CFLAGS="${save_CFLAGS}"
6762 LDFLAGS="${save_LDFLAGS}"
6766 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6767 if test "${enable_ffmpeg+set}" = set; then
6768 enableval="$enable_ffmpeg"
6772 if test "x${enable_ffmpeg}" = "xyes"
6774 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6775 if test "${with_ffmpeg+set}" = set; then
6776 withval="$with_ffmpeg"
6780 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6782 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6783 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6786 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6787 if test "${with_ffmpeg_tree+set}" = set; then
6788 withval="$with_ffmpeg_tree"
6792 if test "x${with_ffmpeg_tree}" != "x"
6794 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6795 echo "configure:6796: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6796 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6797 if test "x${real_ffmpeg_tree}" = x
6799 echo "$ac_t""no" 1>&6
6800 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6802 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6804 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6805 BUILTINS="${BUILTINS} ffmpeg"
6806 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6807 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6809 echo "$ac_t""no" 1>&6
6810 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6813 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
6814 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
6815 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6816 echo "configure:6817: checking for avcodec_init in -lavcodec" >&5
6817 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6819 echo $ac_n "(cached) $ac_c" 1>&6
6821 ac_save_LIBS="$LIBS"
6822 LIBS="-lavcodec $LIBS"
6823 cat > conftest.$ac_ext <<EOF
6824 #line 6825 "configure"
6825 #include "confdefs.h"
6826 /* Override any gcc2 internal prototype to avoid an error. */
6827 /* We use char because int might match the return type of a gcc2
6828 builtin and then its argument prototype would still apply. */
6829 char avcodec_init();
6835 if { (eval echo configure:6836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6837 eval "ac_cv_lib_$ac_lib_var=yes"
6839 echo "configure: failed program was:" >&5
6840 cat conftest.$ac_ext >&5
6842 eval "ac_cv_lib_$ac_lib_var=no"
6845 LIBS="$ac_save_LIBS"
6848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6849 echo "$ac_t""yes" 1>&6
6851 BUILTINS="${BUILTINS} ffmpeg"
6852 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6854 echo "$ac_t""no" 1>&6
6855 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6858 LDFLAGS="${save_LDFLAGS}"
6859 CFLAGS="${save_CFLAGS}"
6863 # Check whether --enable-mp4 or --disable-mp4 was given.
6864 if test "${enable_mp4+set}" = set; then
6865 enableval="$enable_mp4"
6869 if test "x${enable_mp4}" = "xyes"
6871 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
6872 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
6873 echo "configure:6874: checking for zlib.h" >&5
6874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6875 echo $ac_n "(cached) $ac_c" 1>&6
6877 cat > conftest.$ac_ext <<EOF
6878 #line 6879 "configure"
6879 #include "confdefs.h"
6882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6883 { (eval echo configure:6884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6885 if test -z "$ac_err"; then
6887 eval "ac_cv_header_$ac_safe=yes"
6890 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6893 eval "ac_cv_header_$ac_safe=no"
6897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 echo $ac_n "checking for inflateEnd in -lz""... $ac_c" 1>&6
6900 echo "configure:6901: checking for inflateEnd in -lz" >&5
6901 ac_lib_var=`echo z'_'inflateEnd | sed 'y%./+-%__p_%'`
6902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6903 echo $ac_n "(cached) $ac_c" 1>&6
6905 ac_save_LIBS="$LIBS"
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6910 /* Override any gcc2 internal prototype to avoid an error. */
6911 /* We use char because int might match the return type of a gcc2
6912 builtin and then its argument prototype would still apply. */
6919 if { (eval echo configure:6920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6921 eval "ac_cv_lib_$ac_lib_var=yes"
6923 echo "configure: failed program was:" >&5
6924 cat conftest.$ac_ext >&5
6926 eval "ac_cv_lib_$ac_lib_var=no"
6929 LIBS="$ac_save_LIBS"
6932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6933 echo "$ac_t""yes" 1>&6
6934 PLUGINS="${PLUGINS} mp4"
6935 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
6937 echo "$ac_t""no" 1>&6
6938 { echo "configure: error: cannot find zlib library..." 1>&2; exit 1; }
6942 echo "$ac_t""no" 1>&6
6943 { echo "configure: error: cannot find zlib header..." 1>&2; exit 1; }
6948 if test "x${SYS}" = "xbeos"
6950 PLUGINS="${PLUGINS} beos"
6953 # Check whether --enable-a52 or --disable-a52 was given.
6954 if test "${enable_a52+set}" = set; then
6955 enableval="$enable_a52"
6959 if test "x${enable_a52}" != "xno"
6961 # Check whether --with-a52-tree or --without-a52-tree was given.
6962 if test "${with_a52_tree+set}" = set; then
6963 withval="$with_a52_tree"
6967 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
6969 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6970 if test "x${real_a52_tree}" = "x"
6972 echo "$ac_t""no" 1>&6
6973 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6975 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6976 echo "configure:6977: checking for a52.h in ${real_a52_tree}/include" >&5
6977 if test -f ${real_a52_tree}/include/a52.h
6979 echo "$ac_t""yes" 1>&6
6980 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6981 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6982 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
6983 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6984 echo "configure:6985: checking for a52_free in -la52" >&5
6985 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6987 echo $ac_n "(cached) $ac_c" 1>&6
6989 ac_save_LIBS="$LIBS"
6990 LIBS="-la52 -lm $LIBS"
6991 cat > conftest.$ac_ext <<EOF
6992 #line 6993 "configure"
6993 #include "confdefs.h"
6994 /* Override any gcc2 internal prototype to avoid an error. */
6995 /* We use char because int might match the return type of a gcc2
6996 builtin and then its argument prototype would still apply. */
7003 if { (eval echo configure:7004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7005 eval "ac_cv_lib_$ac_lib_var=yes"
7007 echo "configure: failed program was:" >&5
7008 cat conftest.$ac_ext >&5
7010 eval "ac_cv_lib_$ac_lib_var=no"
7013 LIBS="$ac_save_LIBS"
7016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7017 echo "$ac_t""yes" 1>&6
7019 BUILTINS="${BUILTINS} a52"
7020 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7021 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7024 echo "$ac_t""no" 1>&6
7026 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7028 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7030 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7035 LDFLAGS="${save_LDFLAGS}"
7037 echo "$ac_t""no" 1>&6
7038 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7040 else for ac_hdr in a52dec/a52.h
7042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7044 echo "configure:7045: checking for $ac_hdr" >&5
7045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7048 cat > conftest.$ac_ext <<EOF
7049 #line 7050 "configure"
7050 #include "confdefs.h"
7053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7054 { (eval echo configure:7055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7056 if test -z "$ac_err"; then
7058 eval "ac_cv_header_$ac_safe=yes"
7061 echo "configure: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7064 eval "ac_cv_header_$ac_safe=no"
7068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7069 echo "$ac_t""yes" 1>&6
7070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7071 cat >> confdefs.h <<EOF
7072 #define $ac_tr_hdr 1
7075 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7076 echo "configure:7077: checking for a52_free in -la52" >&5
7077 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7079 echo $ac_n "(cached) $ac_c" 1>&6
7081 ac_save_LIBS="$LIBS"
7082 LIBS="-la52 -lm $LIBS"
7083 cat > conftest.$ac_ext <<EOF
7084 #line 7085 "configure"
7085 #include "confdefs.h"
7086 /* Override any gcc2 internal prototype to avoid an error. */
7087 /* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7095 if { (eval echo configure:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7097 eval "ac_cv_lib_$ac_lib_var=yes"
7099 echo "configure: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7102 eval "ac_cv_lib_$ac_lib_var=no"
7105 LIBS="$ac_save_LIBS"
7108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7109 echo "$ac_t""yes" 1>&6
7111 BUILTINS="${BUILTINS} a52"
7112 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7113 a52_CFLAGS="${a52_CFLAGS}"
7116 echo "$ac_t""no" 1>&6
7121 echo "$ac_t""no" 1>&6
7128 # Check whether --enable-cinepak or --disable-cinepak was given.
7129 if test "${enable_cinepak+set}" = set; then
7130 enableval="$enable_cinepak"
7134 if test "x${enable_cinepak}" != "xno"
7136 PLUGINS="${PLUGINS} cinepak"
7139 # Check whether --enable-vorbis or --disable-vorbis was given.
7140 if test "${enable_vorbis+set}" = set; then
7141 enableval="$enable_vorbis"
7145 if test "x${enable_vorbis}" != "xno"
7147 for ac_hdr in ogg/ogg.h
7149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7151 echo "configure:7152: checking for $ac_hdr" >&5
7152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7155 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure"
7157 #include "confdefs.h"
7160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7161 { (eval echo configure:7162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7163 if test -z "$ac_err"; then
7165 eval "ac_cv_header_$ac_safe=yes"
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7171 eval "ac_cv_header_$ac_safe=no"
7175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7178 cat >> confdefs.h <<EOF
7179 #define $ac_tr_hdr 1
7182 #PLUGINS="${PLUGINS} vorbis"
7183 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7186 echo "$ac_t""no" 1>&6
7193 # Check whether --with- or --without- was given.
7194 if test "${with_+set}" = set; then
7200 # Check whether --enable-x11 or --disable-x11 was given.
7201 if test "${enable_x11+set}" = set; then
7202 enableval="$enable_x11"
7206 if test "x${enable_x11}" != "xno" &&
7207 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7208 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7209 for ac_hdr in X11/Xlib.h
7211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7213 echo "configure:7214: checking for $ac_hdr" >&5
7214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7215 echo $ac_n "(cached) $ac_c" 1>&6
7217 cat > conftest.$ac_ext <<EOF
7218 #line 7219 "configure"
7219 #include "confdefs.h"
7222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7223 { (eval echo configure:7224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7225 if test -z "$ac_err"; then
7227 eval "ac_cv_header_$ac_safe=yes"
7230 echo "configure: failed program was:" >&5
7231 cat conftest.$ac_ext >&5
7233 eval "ac_cv_header_$ac_safe=no"
7237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7238 echo "$ac_t""yes" 1>&6
7239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7240 cat >> confdefs.h <<EOF
7241 #define $ac_tr_hdr 1
7244 PLUGINS="${PLUGINS} x11"
7245 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7246 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7249 echo "$ac_t""no" 1>&6
7253 CPPFLAGS="${save_CPPFLAGS}"
7256 # Check whether --enable-xvideo or --disable-xvideo was given.
7257 if test "${enable_xvideo+set}" = set; then
7258 enableval="$enable_xvideo"
7262 if test "x${enable_xvideo}" != "xno" &&
7263 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7264 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7265 for ac_hdr in X11/extensions/Xv.h
7267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7269 echo "configure:7270: checking for $ac_hdr" >&5
7270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7273 cat > conftest.$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7279 { (eval echo configure:7280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7281 if test -z "$ac_err"; then
7283 eval "ac_cv_header_$ac_safe=yes"
7286 echo "configure: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7289 eval "ac_cv_header_$ac_safe=no"
7293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7294 echo "$ac_t""yes" 1>&6
7295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7296 cat >> confdefs.h <<EOF
7297 #define $ac_tr_hdr 1
7300 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7301 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7302 echo "configure:7303: checking for XvPutImage in -lXv_pic" >&5
7303 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7307 ac_save_LIBS="$LIBS"
7308 LIBS="-lXv_pic $LIBS"
7309 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7312 /* Override any gcc2 internal prototype to avoid an error. */
7313 /* We use char because int might match the return type of a gcc2
7314 builtin and then its argument prototype would still apply. */
7321 if { (eval echo configure:7322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7323 eval "ac_cv_lib_$ac_lib_var=yes"
7325 echo "configure: failed program was:" >&5
7326 cat conftest.$ac_ext >&5
7328 eval "ac_cv_lib_$ac_lib_var=no"
7331 LIBS="$ac_save_LIBS"
7334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7335 echo "$ac_t""yes" 1>&6
7336 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7337 PLUGINS="${PLUGINS} xvideo"
7338 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7339 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7341 echo "$ac_t""no" 1>&6
7342 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7343 echo "configure:7344: checking for XvPutImage in -lXv" >&5
7344 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7348 ac_save_LIBS="$LIBS"
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* Override any gcc2 internal prototype to avoid an error. */
7354 /* We use char because int might match the return type of a gcc2
7355 builtin and then its argument prototype would still apply. */
7362 if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7364 eval "ac_cv_lib_$ac_lib_var=yes"
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 eval "ac_cv_lib_$ac_lib_var=no"
7372 LIBS="$ac_save_LIBS"
7375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7376 echo "$ac_t""yes" 1>&6
7377 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7378 PLUGINS="${PLUGINS} xvideo"
7379 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7380 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7382 echo "$ac_t""no" 1>&6
7383 # Otherwise... well, do nothing.
7390 CFLAGS="${save_CFLAGS}"
7392 CPPFLAGS="${save_CPPFLAGS}"
7394 echo "$ac_t""no" 1>&6
7400 # Check whether --enable-sdl or --disable-sdl was given.
7401 if test "${enable_sdl+set}" = set; then
7402 enableval="$enable_sdl"
7406 if test "x${enable_sdl}" != "xno"
7409 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7410 if test "${with_sdl_config_path+set}" = set; then
7411 withval="$with_sdl_config_path"
7412 if test "x${with_sdl_config_path}" != "xno"
7414 SDL_PATH="${with_sdl_config_path}:${PATH}"
7418 # Extract the first word of "sdl12-config", so it can be a program name with args.
7419 set dummy sdl12-config; ac_word=$2
7420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7421 echo "configure:7422: checking for $ac_word" >&5
7422 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7423 echo $ac_n "(cached) $ac_c" 1>&6
7425 case "$SDL12_CONFIG" in
7427 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7430 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7434 ac_dummy="${SDL_PATH}"
7435 for ac_dir in $ac_dummy; do
7436 test -z "$ac_dir" && ac_dir=.
7437 if test -f $ac_dir/$ac_word; then
7438 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7443 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7447 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7448 if test -n "$SDL12_CONFIG"; then
7449 echo "$ac_t""$SDL12_CONFIG" 1>&6
7451 echo "$ac_t""no" 1>&6
7454 SDL_CONFIG="${SDL12_CONFIG}"
7455 SDL_HEADER="SDL12/SDL.h"
7456 if test "x${SDL_CONFIG}" = "xno"
7458 # Extract the first word of "sdl11-config", so it can be a program name with args.
7459 set dummy sdl11-config; ac_word=$2
7460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7461 echo "configure:7462: checking for $ac_word" >&5
7462 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7465 case "$SDL11_CONFIG" in
7467 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7470 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7474 ac_dummy="${SDL_PATH}"
7475 for ac_dir in $ac_dummy; do
7476 test -z "$ac_dir" && ac_dir=.
7477 if test -f $ac_dir/$ac_word; then
7478 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7483 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7487 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7488 if test -n "$SDL11_CONFIG"; then
7489 echo "$ac_t""$SDL11_CONFIG" 1>&6
7491 echo "$ac_t""no" 1>&6
7494 SDL_CONFIG=${SDL11_CONFIG}
7495 SDL_HEADER="SDL11/SDL.h"
7497 if test "x${SDL_CONFIG}" = "xno"
7499 # Extract the first word of "sdl-config", so it can be a program name with args.
7500 set dummy sdl-config; ac_word=$2
7501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7502 echo "configure:7503: checking for $ac_word" >&5
7503 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7504 echo $ac_n "(cached) $ac_c" 1>&6
7506 case "$SDL_CONFIG" in
7508 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7511 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7515 ac_dummy="${SDL_PATH}"
7516 for ac_dir in $ac_dummy; do
7517 test -z "$ac_dir" && ac_dir=.
7518 if test -f $ac_dir/$ac_word; then
7519 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7524 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7528 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7529 if test -n "$SDL_CONFIG"; then
7530 echo "$ac_t""$SDL_CONFIG" 1>&6
7532 echo "$ac_t""no" 1>&6
7535 SDL_HEADER="SDL/SDL.h"
7537 if test "x${SDL_CONFIG}" != "xno"
7539 PLUGINS="${PLUGINS} sdl"
7540 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7541 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7542 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7543 for ac_hdr in ${SDL_HEADER}
7545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7547 echo "configure:7548: checking for $ac_hdr" >&5
7548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7551 cat > conftest.$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7557 { (eval echo configure:7558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7559 if test -z "$ac_err"; then
7561 eval "ac_cv_header_$ac_safe=yes"
7564 echo "configure: failed program was:" >&5
7565 cat conftest.$ac_ext >&5
7567 eval "ac_cv_header_$ac_safe=no"
7571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7572 echo "$ac_t""yes" 1>&6
7573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7574 cat >> confdefs.h <<EOF
7575 #define $ac_tr_hdr 1
7577 cat >> confdefs.h <<EOF
7578 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7582 echo "$ac_t""no" 1>&6
7583 { echo "configure: error: The development package for SDL is not installed.
7584 Please install it and try again. Alternatively you can also configure with
7585 --disable-sdl." 1>&2; exit 1; }
7590 CPPFLAGS="${save_CPPFLAGS}"
7591 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7593 { echo "configure: error: The development package for SDL is not installed.
7594 Please install it and try again. Alternatively you can also configure with
7595 --disable-sdl." 1>&2; exit 1; }
7597 elif test "x${enable_sdl}" = "xyes"
7599 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7600 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7605 # Check whether --enable-directx or --disable-directx was given.
7606 if test "${enable_directx+set}" = set; then
7607 enableval="$enable_directx"
7611 if test "x${enable_directx}" != "xno"
7613 if test "x${SYS}" = "xmingw32"
7615 # Check whether --with-directx or --without-directx was given.
7616 if test "${with_directx+set}" = set; then
7617 withval="$with_directx"
7621 if test "x${with_directx}" = "x"
7623 for ac_hdr in ddraw.h
7625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7627 echo "configure:7628: checking for $ac_hdr" >&5
7628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7631 cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7637 { (eval echo configure:7638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7639 if test -z "$ac_err"; then
7641 eval "ac_cv_header_$ac_safe=yes"
7644 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7647 eval "ac_cv_header_$ac_safe=no"
7651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7652 echo "$ac_t""yes" 1>&6
7653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7654 cat >> confdefs.h <<EOF
7655 #define $ac_tr_hdr 1
7657 PLUGINS="${PLUGINS} directx"
7658 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7660 echo "$ac_t""no" 1>&6
7665 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7666 echo "configure:7667: checking for directX headers in ${with_directx}" >&5
7667 if test -f ${with_directx}/ddraw.h
7669 PLUGINS="${PLUGINS} directx"
7670 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7671 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7672 echo "$ac_t""yes" 1>&6
7674 echo "$ac_t""no" 1>&6
7675 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7681 # Check whether --enable-fb or --disable-fb was given.
7682 if test "${enable_fb+set}" = set; then
7683 enableval="$enable_fb"
7687 if test "x${enable_fb}" != "xno"
7689 for ac_hdr in linux/fb.h
7691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7693 echo "configure:7694: checking for $ac_hdr" >&5
7694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7695 echo $ac_n "(cached) $ac_c" 1>&6
7697 cat > conftest.$ac_ext <<EOF
7698 #line 7699 "configure"
7699 #include "confdefs.h"
7702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7703 { (eval echo configure:7704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7705 if test -z "$ac_err"; then
7707 eval "ac_cv_header_$ac_safe=yes"
7710 echo "configure: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7713 eval "ac_cv_header_$ac_safe=no"
7717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7718 echo "$ac_t""yes" 1>&6
7719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7720 cat >> confdefs.h <<EOF
7721 #define $ac_tr_hdr 1
7724 PLUGINS="${PLUGINS} fb"
7727 echo "$ac_t""no" 1>&6
7733 # Check whether --enable-mga or --disable-mga was given.
7734 if test "${enable_mga+set}" = set; then
7735 enableval="$enable_mga"
7736 if test "x${enable_mga}" = "xyes"
7738 PLUGINS="${PLUGINS} mga xmga"
7743 # Check whether --enable-ggi or --disable-ggi was given.
7744 if test "${enable_ggi+set}" = set; then
7745 enableval="$enable_ggi"
7749 if test "x${enable_ggi}" = "xyes"
7751 PLUGINS="${PLUGINS} ggi"
7752 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7753 # Check whether --with-ggi or --without-ggi was given.
7754 if test "${with_ggi+set}" = set; then
7756 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
7758 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
7759 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
7765 # Check whether --enable-glide or --disable-glide was given.
7766 if test "${enable_glide+set}" = set; then
7767 enableval="$enable_glide"
7771 if test "x${enable_glide}" = "xyes"
7773 PLUGINS="${PLUGINS} glide"
7774 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7775 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7776 # Check whether --with-glide or --without-glide was given.
7777 if test "${with_glide+set}" = set; then
7778 withval="$with_glide"
7779 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
7781 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
7782 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
7788 # Check whether --enable-aa or --disable-aa was given.
7789 if test "${enable_aa+set}" = set; then
7790 enableval="$enable_aa"
7794 if test "x${enable_aa}" = "xyes"
7796 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7797 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7798 echo "configure:7799: checking for aalib.h" >&5
7799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7800 echo $ac_n "(cached) $ac_c" 1>&6
7802 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7808 { (eval echo configure:7809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7810 if test -z "$ac_err"; then
7812 eval "ac_cv_header_$ac_safe=yes"
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7818 eval "ac_cv_header_$ac_safe=no"
7822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7823 echo "$ac_t""yes" 1>&6
7826 echo "$ac_t""no" 1>&6
7830 if test "x${have_aa}" = "xtrue"
7832 PLUGINS="${PLUGINS} aa"
7833 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7838 # Check whether --with- or --without- was given.
7839 if test "${with_+set}" = set; then
7845 # Check whether --enable-dsp or --disable-dsp was given.
7846 if test "${enable_dsp+set}" = set; then
7847 enableval="$enable_dsp"
7852 if test "x${enable_dsp}" != "xno" &&
7853 (test "x${SYS}" != "xmingw32" || test "x${enable_dsp}" = "xyes")
7855 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7859 echo "configure:7860: checking for $ac_hdr" >&5
7860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7863 cat > conftest.$ac_ext <<EOF
7864 #line 7865 "configure"
7865 #include "confdefs.h"
7868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7869 { (eval echo configure:7870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7871 if test -z "$ac_err"; then
7873 eval "ac_cv_header_$ac_safe=yes"
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7879 eval "ac_cv_header_$ac_safe=no"
7883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7884 echo "$ac_t""yes" 1>&6
7885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7886 cat >> confdefs.h <<EOF
7887 #define $ac_tr_hdr 1
7890 PLUGINS="${PLUGINS} dsp"
7891 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7892 echo "configure:7893: checking for main in -lossaudio" >&5
7893 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7897 ac_save_LIBS="$LIBS"
7898 LIBS="-lossaudio $LIBS"
7899 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure"
7901 #include "confdefs.h"
7907 if { (eval echo configure:7908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7909 eval "ac_cv_lib_$ac_lib_var=yes"
7911 echo "configure: failed program was:" >&5
7912 cat conftest.$ac_ext >&5
7914 eval "ac_cv_lib_$ac_lib_var=no"
7917 LIBS="$ac_save_LIBS"
7920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7922 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7924 echo "$ac_t""no" 1>&6
7929 echo "$ac_t""no" 1>&6
7935 # Check whether --enable-esd or --disable-esd was given.
7936 if test "${enable_esd+set}" = set; then
7937 enableval="$enable_esd"
7938 if test "x${enable_esd}" = "xyes"
7940 # Extract the first word of "esd-config", so it can be a program name with args.
7941 set dummy esd-config; ac_word=$2
7942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7943 echo "configure:7944: checking for $ac_word" >&5
7944 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7945 echo $ac_n "(cached) $ac_c" 1>&6
7947 case "$ESD_CONFIG" in
7949 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7952 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7957 for ac_dir in $ac_dummy; do
7958 test -z "$ac_dir" && ac_dir=.
7959 if test -f $ac_dir/$ac_word; then
7960 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7965 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7969 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7970 if test -n "$ESD_CONFIG"; then
7971 echo "$ac_t""$ESD_CONFIG" 1>&6
7973 echo "$ac_t""no" 1>&6
7976 if test "x${ESD_CONFIG}" != "xno"
7978 PLUGINS="${PLUGINS} esd"
7979 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7980 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7986 # Check whether --enable-arts or --disable-arts was given.
7987 if test "${enable_arts+set}" = set; then
7988 enableval="$enable_arts"
7989 if test "x${enable_arts}" = "xyes"
7991 # Extract the first word of "artsc-config", so it can be a program name with args.
7992 set dummy artsc-config; ac_word=$2
7993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7994 echo "configure:7995: checking for $ac_word" >&5
7995 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7998 case "$ARTS_CONFIG" in
8000 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8003 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8008 for ac_dir in $ac_dummy; do
8009 test -z "$ac_dir" && ac_dir=.
8010 if test -f $ac_dir/$ac_word; then
8011 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8016 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8020 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8021 if test -n "$ARTS_CONFIG"; then
8022 echo "$ac_t""$ARTS_CONFIG" 1>&6
8024 echo "$ac_t""no" 1>&6
8027 if test "x${ARTS_CONFIG}" != "xno"
8029 PLUGINS="${PLUGINS} arts"
8030 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8031 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8037 # Check whether --enable-alsa or --disable-alsa was given.
8038 if test "${enable_alsa+set}" = set; then
8039 enableval="$enable_alsa"
8040 if test "x${enable_alsa}" = "xyes"
8042 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8043 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8044 echo "configure:8045: checking for alsa/asoundlib.h" >&5
8045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8046 echo $ac_n "(cached) $ac_c" 1>&6
8048 cat > conftest.$ac_ext <<EOF
8049 #line 8050 "configure"
8050 #include "confdefs.h"
8051 #include <alsa/asoundlib.h>
8053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8054 { (eval echo configure:8055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8056 if test -z "$ac_err"; then
8058 eval "ac_cv_header_$ac_safe=yes"
8061 echo "configure: failed program was:" >&5
8062 cat conftest.$ac_ext >&5
8064 eval "ac_cv_header_$ac_safe=no"
8068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8069 echo "$ac_t""yes" 1>&6
8070 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8071 echo "configure:8072: checking for main in -lasound" >&5
8072 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8076 ac_save_LIBS="$LIBS"
8077 LIBS="-lasound $LIBS"
8078 cat > conftest.$ac_ext <<EOF
8079 #line 8080 "configure"
8080 #include "confdefs.h"
8086 if { (eval echo configure:8087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8088 eval "ac_cv_lib_$ac_lib_var=yes"
8090 echo "configure: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8093 eval "ac_cv_lib_$ac_lib_var=no"
8096 LIBS="$ac_save_LIBS"
8099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8103 echo "$ac_t""no" 1>&6
8108 echo "$ac_t""no" 1>&6
8112 if test "x${have_alsa}" = "xtrue"
8114 PLUGINS="${PLUGINS} alsa"
8115 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8121 # Check whether --enable-waveout or --disable-waveout was given.
8122 if test "${enable_waveout+set}" = set; then
8123 enableval="$enable_waveout"
8127 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8129 PLUGINS="${PLUGINS} waveout"
8130 waveout_LDFLAGS="-lwinmm"
8134 # Check whether --with- or --without- was given.
8135 if test "${with_+set}" = set; then
8141 # Check whether --enable-gtk or --disable-gtk was given.
8142 if test "${enable_gtk+set}" = set; then
8143 enableval="$enable_gtk"
8147 if test "x${enable_gtk}" != "xno"
8150 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8151 if test "${with_gtk_config_path+set}" = set; then
8152 withval="$with_gtk_config_path"
8153 if test "x${with_gtk_config_path}" != "xno"
8155 GTK_PATH="${with_gtk_config_path}:${PATH}"
8159 # look for gtk-config
8160 # Extract the first word of "gtk12-config", so it can be a program name with args.
8161 set dummy gtk12-config; ac_word=$2
8162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8163 echo "configure:8164: checking for $ac_word" >&5
8164 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8165 echo $ac_n "(cached) $ac_c" 1>&6
8167 case "$GTK12_CONFIG" in
8169 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8172 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8176 ac_dummy="${GTK_PATH}"
8177 for ac_dir in $ac_dummy; do
8178 test -z "$ac_dir" && ac_dir=.
8179 if test -f $ac_dir/$ac_word; then
8180 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8185 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8189 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8190 if test -n "$GTK12_CONFIG"; then
8191 echo "$ac_t""$GTK12_CONFIG" 1>&6
8193 echo "$ac_t""no" 1>&6
8196 GTK_CONFIG=${GTK12_CONFIG}
8197 if test "x${GTK_CONFIG}" = "xno"
8199 # Extract the first word of "gtk-config", so it can be a program name with args.
8200 set dummy gtk-config; ac_word=$2
8201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8202 echo "configure:8203: checking for $ac_word" >&5
8203 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8204 echo $ac_n "(cached) $ac_c" 1>&6
8206 case "$GTK_CONFIG" in
8208 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8211 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8215 ac_dummy="${GTK_PATH}"
8216 for ac_dir in $ac_dummy; do
8217 test -z "$ac_dir" && ac_dir=.
8218 if test -f $ac_dir/$ac_word; then
8219 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8224 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8228 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8229 if test -n "$GTK_CONFIG"; then
8230 echo "$ac_t""$GTK_CONFIG" 1>&6
8232 echo "$ac_t""no" 1>&6
8236 if test "x${GTK_CONFIG}" != "xno"
8238 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8240 { 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; }
8242 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8243 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8244 # now look for the gtk.h header
8245 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8246 ac_cv_gtk_headers=yes
8247 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8251 echo "configure:8252: checking for $ac_hdr" >&5
8252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8261 { (eval echo configure:8262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8263 if test -z "$ac_err"; then
8265 eval "ac_cv_header_$ac_safe=yes"
8268 echo "configure: failed program was:" >&5
8269 cat conftest.$ac_ext >&5
8271 eval "ac_cv_header_$ac_safe=no"
8275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8276 echo "$ac_t""yes" 1>&6
8277 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8278 cat >> confdefs.h <<EOF
8279 #define $ac_tr_hdr 1
8283 echo "$ac_t""no" 1>&6
8284 ac_cv_gtk_headers=no
8285 echo "Cannot find gtk development headers."
8290 if test "x${ac_cv_gtk_headers}" = "xyes"
8292 PLUGINS="${PLUGINS} gtk"
8293 ALIASES="${ALIASES} gvlc"
8295 CPPFLAGS="${save_CPPFLAGS}"
8299 # Check whether --enable-familiar or --disable-familiar was given.
8300 if test "${enable_familiar+set}" = set; then
8301 enableval="$enable_familiar"
8305 if test "x${enable_familiar}" = "xyes"
8308 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8309 if test "${with_gtk_config_path+set}" = set; then
8310 withval="$with_gtk_config_path"
8311 if test "x${with_gtk_config_path}" != "xno"
8313 GTK_PATH="${with_gtk_config_path}:${PATH}"
8317 # look for gtk-config
8318 # Extract the first word of "gtk12-config", so it can be a program name with args.
8319 set dummy gtk12-config; ac_word=$2
8320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8321 echo "configure:8322: checking for $ac_word" >&5
8322 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8323 echo $ac_n "(cached) $ac_c" 1>&6
8325 case "$GTK12_CONFIG" in
8327 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8330 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8334 ac_dummy="${GTK_PATH}"
8335 for ac_dir in $ac_dummy; do
8336 test -z "$ac_dir" && ac_dir=.
8337 if test -f $ac_dir/$ac_word; then
8338 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8343 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8347 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8348 if test -n "$GTK12_CONFIG"; then
8349 echo "$ac_t""$GTK12_CONFIG" 1>&6
8351 echo "$ac_t""no" 1>&6
8354 GTK_CONFIG=${GTK12_CONFIG}
8355 if test "x${GTK_CONFIG}" = "xno"
8357 # Extract the first word of "gtk-config", so it can be a program name with args.
8358 set dummy gtk-config; ac_word=$2
8359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8360 echo "configure:8361: checking for $ac_word" >&5
8361 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8362 echo $ac_n "(cached) $ac_c" 1>&6
8364 case "$GTK_CONFIG" in
8366 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8369 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8373 ac_dummy="${GTK_PATH}"
8374 for ac_dir in $ac_dummy; do
8375 test -z "$ac_dir" && ac_dir=.
8376 if test -f $ac_dir/$ac_word; then
8377 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8382 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8386 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8387 if test -n "$GTK_CONFIG"; then
8388 echo "$ac_t""$GTK_CONFIG" 1>&6
8390 echo "$ac_t""no" 1>&6
8394 if test "x${GTK_CONFIG}" != "xno"
8396 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8398 { 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; }
8400 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8401 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8402 # now look for the gtk.h header
8403 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8404 ac_cv_gtk_headers=yes
8405 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8409 echo "configure:8410: checking for $ac_hdr" >&5
8410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8411 echo $ac_n "(cached) $ac_c" 1>&6
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8419 { (eval echo configure:8420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8421 if test -z "$ac_err"; then
8423 eval "ac_cv_header_$ac_safe=yes"
8426 echo "configure: failed program was:" >&5
8427 cat conftest.$ac_ext >&5
8429 eval "ac_cv_header_$ac_safe=no"
8433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8434 echo "$ac_t""yes" 1>&6
8435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8436 cat >> confdefs.h <<EOF
8437 #define $ac_tr_hdr 1
8441 echo "$ac_t""no" 1>&6
8442 ac_cv_gtk_headers=no
8443 echo "Cannot find gtk development headers."
8448 if test "x${ac_cv_gtk_headers}" = "xyes"
8450 PLUGINS="${PLUGINS} familiar"
8452 CPPFLAGS="${save_CPPFLAGS}"
8456 # Check whether --enable-gnome or --disable-gnome was given.
8457 if test "${enable_gnome+set}" = set; then
8458 enableval="$enable_gnome"
8459 if test "x${enable_gnome}" = "xyes"; then
8460 # look for gnome-config
8461 # Extract the first word of "gnome-config", so it can be a program name with args.
8462 set dummy gnome-config; ac_word=$2
8463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8464 echo "configure:8465: checking for $ac_word" >&5
8465 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8468 case "$GNOME_CONFIG" in
8470 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8473 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8478 for ac_dir in $ac_dummy; do
8479 test -z "$ac_dir" && ac_dir=.
8480 if test -f $ac_dir/$ac_word; then
8481 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8486 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8490 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8491 if test -n "$GNOME_CONFIG"; then
8492 echo "$ac_t""$GNOME_CONFIG" 1>&6
8494 echo "$ac_t""no" 1>&6
8497 if test -x ${GNOME_CONFIG}
8499 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8500 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8502 # now look for the gnome.h header
8503 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8504 for ac_hdr in gnome.h
8506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8508 echo "configure:8509: checking for $ac_hdr" >&5
8509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
8512 cat > conftest.$ac_ext <<EOF
8513 #line 8514 "configure"
8514 #include "confdefs.h"
8517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8518 { (eval echo configure:8519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8520 if test -z "$ac_err"; then
8522 eval "ac_cv_header_$ac_safe=yes"
8525 echo "configure: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8528 eval "ac_cv_header_$ac_safe=no"
8532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8533 echo "$ac_t""yes" 1>&6
8534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8535 cat >> confdefs.h <<EOF
8536 #define $ac_tr_hdr 1
8539 PLUGINS="${PLUGINS} gnome"
8540 ALIASES="${ALIASES} gnome-vlc"
8543 echo "$ac_t""no" 1>&6
8544 { echo "configure: error: Can't find gnome headers. Please install the gnome
8545 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8550 CPPFLAGS="${save_CPPFLAGS}"
8555 # Check whether --enable-qt or --disable-qt was given.
8556 if test "${enable_qt+set}" = set; then
8557 enableval="$enable_qt"
8558 if test "x${enable_qt}" = "xyes"; then
8559 PLUGINS="${PLUGINS} qt"
8560 ALIASES="${ALIASES} qvlc"
8561 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8562 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8563 if test -x ${QTDIR}/bin/moc
8565 MOC=${QTDIR}/bin/moc
8573 # Check whether --enable-kde or --disable-kde was given.
8574 if test "${enable_kde+set}" = set; then
8575 enableval="$enable_kde"
8576 if test "x${enable_kde}" = "xyes"; then
8577 PLUGINS="${PLUGINS} kde"
8578 ALIASES="${ALIASES} kvlc"
8579 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8580 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8581 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8582 if test -x ${QTDIR}/bin/moc
8584 MOC=${QTDIR}/bin/moc
8592 # Check whether --enable-macosx or --disable-macosx was given.
8593 if test "${enable_macosx+set}" = set; then
8594 enableval="$enable_macosx"
8595 if test "x${enable_macosx}" = "xyes"
8597 BUILTINS="${BUILTINS} macosx"
8598 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8601 for ac_hdr in Cocoa/Cocoa.h
8603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8605 echo "configure:8606: checking for $ac_hdr" >&5
8606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8607 echo $ac_n "(cached) $ac_c" 1>&6
8609 cat > conftest.$ac_ext <<EOF
8610 #line 8611 "configure"
8611 #include "confdefs.h"
8614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8615 { (eval echo configure:8616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8617 if test -z "$ac_err"; then
8619 eval "ac_cv_header_$ac_safe=yes"
8622 echo "configure: failed program was:" >&5
8623 cat conftest.$ac_ext >&5
8625 eval "ac_cv_header_$ac_safe=no"
8629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8630 echo "$ac_t""yes" 1>&6
8631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8632 cat >> confdefs.h <<EOF
8633 #define $ac_tr_hdr 1
8635 BUILTINS="${BUILTINS} macosx"
8636 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8639 echo "$ac_t""no" 1>&6
8646 # Check whether --enable-qnx or --disable-qnx was given.
8647 if test "${enable_qnx+set}" = set; then
8648 enableval="$enable_qnx"
8652 if test "x${enable_qnx}" != "xno"
8656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8658 echo "configure:8659: checking for $ac_hdr" >&5
8659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8662 cat > conftest.$ac_ext <<EOF
8663 #line 8664 "configure"
8664 #include "confdefs.h"
8667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8668 { (eval echo configure:8669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8670 if test -z "$ac_err"; then
8672 eval "ac_cv_header_$ac_safe=yes"
8675 echo "configure: failed program was:" >&5
8676 cat conftest.$ac_ext >&5
8678 eval "ac_cv_header_$ac_safe=no"
8682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8683 echo "$ac_t""yes" 1>&6
8684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8685 cat >> confdefs.h <<EOF
8686 #define $ac_tr_hdr 1
8689 PLUGINS="${PLUGINS} qnx"
8690 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8693 echo "$ac_t""no" 1>&6
8699 # Check whether --enable-intfwin or --disable-intfwin was given.
8700 if test "${enable_intfwin+set}" = set; then
8701 enableval="$enable_intfwin"
8702 if test "x${enable_intfwin}" != "xno"
8704 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8705 if test "${with_bcbuilder+set}" = set; then
8706 withval="$with_bcbuilder"
8710 if test "x${with_bcbuilder}" != "x"
8712 BCBUILDER="${with_bcbuilder}"
8714 PLUGINS="${PLUGINS} intfwin"
8719 # Check whether --enable-ncurses or --disable-ncurses was given.
8720 if test "${enable_ncurses+set}" = set; then
8721 enableval="$enable_ncurses"
8722 if test "x${enable_ncurses}" = "xyes"; then
8723 PLUGINS="${PLUGINS} ncurses"
8724 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8729 # Check whether --enable-xosd or --disable-xosd was given.
8730 if test "${enable_xosd+set}" = set; then
8731 enableval="$enable_xosd"
8735 if test "x${enable_xosd}" = "xyes"
8737 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8738 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8739 echo "configure:8740: checking for xosd.h" >&5
8740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8741 echo $ac_n "(cached) $ac_c" 1>&6
8743 cat > conftest.$ac_ext <<EOF
8744 #line 8745 "configure"
8745 #include "confdefs.h"
8748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8749 { (eval echo configure:8750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8751 if test -z "$ac_err"; then
8753 eval "ac_cv_header_$ac_safe=yes"
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8759 eval "ac_cv_header_$ac_safe=no"
8763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8764 echo "$ac_t""yes" 1>&6
8767 echo "$ac_t""no" 1>&6
8771 if test "x${have_xosd}" = "xtrue"
8773 PLUGINS="${PLUGINS} xosd"
8774 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8778 # Check whether --enable-lirc or --disable-lirc was given.
8779 if test "${enable_lirc+set}" = set; then
8780 enableval="$enable_lirc"
8784 if test "x${enable_lirc}" = "xyes"
8786 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8787 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8788 echo "configure:8789: checking for lirc/lirc_client.h" >&5
8789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8795 #include <lirc/lirc_client.h>
8797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8798 { (eval echo configure:8799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8800 if test -z "$ac_err"; then
8802 eval "ac_cv_header_$ac_safe=yes"
8805 echo "configure: failed program was:" >&5
8806 cat conftest.$ac_ext >&5
8808 eval "ac_cv_header_$ac_safe=no"
8812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8813 echo "$ac_t""yes" 1>&6
8814 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8815 echo "configure:8816: checking for lirc_init in -llirc_client" >&5
8816 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8818 echo $ac_n "(cached) $ac_c" 1>&6
8820 ac_save_LIBS="$LIBS"
8821 LIBS="-llirc_client $LIBS"
8822 cat > conftest.$ac_ext <<EOF
8823 #line 8824 "configure"
8824 #include "confdefs.h"
8825 /* Override any gcc2 internal prototype to avoid an error. */
8826 /* We use char because int might match the return type of a gcc2
8827 builtin and then its argument prototype would still apply. */
8834 if { (eval echo configure:8835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8836 eval "ac_cv_lib_$ac_lib_var=yes"
8838 echo "configure: failed program was:" >&5
8839 cat conftest.$ac_ext >&5
8841 eval "ac_cv_lib_$ac_lib_var=no"
8844 LIBS="$ac_save_LIBS"
8847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8848 echo "$ac_t""yes" 1>&6
8851 echo "$ac_t""no" 1>&6
8856 echo "$ac_t""no" 1>&6
8860 if test "x${have_lirc}" = "xtrue"
8862 PLUGINS="${PLUGINS} lirc"
8863 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8867 # Check whether --with- or --without- was given.
8868 if test "${with_+set}" = set; then
8874 # Check whether --with-words or --without-words was given.
8875 if test "${with_words+set}" = set; then
8876 withval="$with_words"
8880 case "x${with_words}" in
8882 ac_cv_c_bigendian=yes
8885 ac_cv_c_bigendian=no
8888 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8889 echo "configure:8890: checking whether the byte order is big-endian" >&5
8890 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8891 echo $ac_n "(cached) $ac_c" 1>&6
8893 ac_cv_c_bigendian="unknown"
8894 cat >conftest.c <<EOF
8895 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8896 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8897 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8898 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8899 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8900 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8901 int main(void) { _a(); _e(); return 0; }
8904 if test -f conftest.c
8906 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8907 && test -f conftest.o
8909 if test "`strings conftest.o | grep BIGenDianSyS`"
8911 ac_cv_c_bigendian="yes"
8913 if test "`strings conftest.o | grep LiTTleEnDian`"
8915 ac_cv_c_bigendian="no"
8922 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8923 if test "x${ac_cv_c_bigendian}" = "xunknown"
8925 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8929 if test "${ac_cv_c_bigendian}" = "yes"
8931 cat >> confdefs.h <<\EOF
8932 #define WORDS_BIGENDIAN 1
8940 # Check whether --enable-gprof or --disable-gprof was given.
8941 if test "${enable_gprof+set}" = set; then
8942 enableval="$enable_gprof"
8943 if test "x${enable_gprof}" = "xyes"
8953 # Check whether --enable-cprof or --disable-cprof was given.
8954 if test "${enable_cprof+set}" = set; then
8955 enableval="$enable_cprof"
8956 if test "x${enable_cprof}" = "xyes"
8958 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
8966 # Check whether --enable-pth or --disable-pth was given.
8967 if test "${enable_pth+set}" = set; then
8968 enableval="$enable_pth"
8969 if test "x${enable_pth}" = "xyes"; then
8970 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8971 echo "configure:8972: checking for pth_init in -lpth" >&5
8972 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8974 echo $ac_n "(cached) $ac_c" 1>&6
8976 ac_save_LIBS="$LIBS"
8978 cat > conftest.$ac_ext <<EOF
8979 #line 8980 "configure"
8980 #include "confdefs.h"
8981 /* Override any gcc2 internal prototype to avoid an error. */
8982 /* We use char because int might match the return type of a gcc2
8983 builtin and then its argument prototype would still apply. */
8990 if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8992 eval "ac_cv_lib_$ac_lib_var=yes"
8994 echo "configure: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8997 eval "ac_cv_lib_$ac_lib_var=no"
9000 LIBS="$ac_save_LIBS"
9003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9004 echo "$ac_t""yes" 1>&6
9005 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9006 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9007 cat >> confdefs.h <<EOF
9008 #define $ac_tr_lib 1
9014 echo "$ac_t""no" 1>&6
9017 cat > conftest.$ac_ext <<EOF
9018 #line 9019 "configure"
9019 #include "confdefs.h"
9022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9023 egrep "pth_init" >/dev/null 2>&1; then
9026 cat >> confdefs.h <<\EOF
9027 #define PTH_INIT_IN_PTH_H 1
9039 # Check whether --enable-st or --disable-st was given.
9040 if test "${enable_st+set}" = set; then
9041 enableval="$enable_st"
9042 if test "x${enable_st}" = "xyes"; then
9043 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9044 echo "configure:9045: checking for st_init in -lst" >&5
9045 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9047 echo $ac_n "(cached) $ac_c" 1>&6
9049 ac_save_LIBS="$LIBS"
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 /* Override any gcc2 internal prototype to avoid an error. */
9055 /* We use char because int might match the return type of a gcc2
9056 builtin and then its argument prototype would still apply. */
9063 if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9065 eval "ac_cv_lib_$ac_lib_var=yes"
9067 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9070 eval "ac_cv_lib_$ac_lib_var=no"
9073 LIBS="$ac_save_LIBS"
9076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9077 echo "$ac_t""yes" 1>&6
9078 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9079 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9080 cat >> confdefs.h <<EOF
9081 #define $ac_tr_lib 1
9087 echo "$ac_t""no" 1>&6
9090 cat > conftest.$ac_ext <<EOF
9091 #line 9092 "configure"
9092 #include "confdefs.h"
9095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9096 egrep "st_init" >/dev/null 2>&1; then
9099 cat >> confdefs.h <<\EOF
9100 #define ST_INIT_IN_ST_H 1
9112 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9113 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9116 # Check whether --enable-mozilla or --disable-mozilla was given.
9117 if test "${enable_mozilla+set}" = set; then
9118 enableval="$enable_mozilla"
9122 if test "x${enable_mozilla}" = "xyes"
9124 # Extract the first word of "mozilla-config", so it can be a program name with args.
9125 set dummy mozilla-config; ac_word=$2
9126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9127 echo "configure:9128: checking for $ac_word" >&5
9128 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9131 case "$MOZILLA_CONFIG" in
9133 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9136 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9141 for ac_dir in $ac_dummy; do
9142 test -z "$ac_dir" && ac_dir=.
9143 if test -f $ac_dir/$ac_word; then
9144 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9149 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9153 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9154 if test -n "$MOZILLA_CONFIG"; then
9155 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9157 echo "$ac_t""no" 1>&6
9160 if test "x${MOZILLA_CONFIG}" != "xno"
9162 if test "x${SYS}" != "xmingw32"; then
9163 LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9164 echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9165 echo "configure:9166: checking for XtStrings in -lXt" >&5
9166 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9170 ac_save_LIBS="$LIBS"
9172 cat > conftest.$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9175 /* Override any gcc2 internal prototype to avoid an error. */
9176 /* We use char because int might match the return type of a gcc2
9177 builtin and then its argument prototype would still apply. */
9184 if { (eval echo configure:9185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9186 eval "ac_cv_lib_$ac_lib_var=yes"
9188 echo "configure: failed program was:" >&5
9189 cat conftest.$ac_ext >&5
9191 eval "ac_cv_lib_$ac_lib_var=no"
9194 LIBS="$ac_save_LIBS"
9197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9198 echo "$ac_t""yes" 1>&6
9200 mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9203 echo "$ac_t""no" 1>&6
9206 LDFLAGS="${save_LDFLAGS}"
9209 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9210 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9214 # Check whether --enable-plugins or --disable-plugins was given.
9215 if test "${enable_plugins+set}" = set; then
9216 enableval="$enable_plugins"
9217 if test "x${enable_plugins}" = "xno"
9219 BUILTINS="${BUILTINS} ${PLUGINS}"
9225 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9227 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9229 BUILTINS="${BUILTINS} ${PLUGINS}"
9233 cat >> confdefs.h <<EOF
9234 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9237 cat >> confdefs.h <<EOF
9238 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9241 cat >> confdefs.h <<EOF
9242 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9246 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9247 cat >> confdefs.h <<EOF
9248 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9251 cat >> confdefs.h <<EOF
9252 #define MODULE_SYMBOL ${VLC_SYMBOL}
9256 DATA_PATH="${ac_tool_prefix}/share/videolan"
9258 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9261 CPPFLAGS="${save_CPPFLAGS}"
9262 CFLAGS="${save_CFLAGS}"
9263 LDFLAGS="${save_LDFLAGS}"
9265 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9266 for i in ${BUILTINS} ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9375 cat > confcache <<\EOF
9376 # This file is a shell script that caches the results of configure
9377 # tests run on this system so they can be shared between configure
9378 # scripts and configure runs. It is not useful on other systems.
9379 # If it contains results you don't want to keep, you may remove or edit it.
9381 # By default, configure uses ./config.cache as the cache file,
9382 # creating it if it does not exist already. You can give configure
9383 # the --cache-file=FILE option to use a different cache file; that is
9384 # what configure does when it calls configure scripts in
9385 # subdirectories, so they share the cache.
9386 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9387 # config.status only pays attention to the cache file if you give it the
9388 # --recheck option to rerun configure.
9391 # The following way of writing the cache mishandles newlines in values,
9392 # but we know of no workaround that is simple, portable, and efficient.
9393 # So, don't put newlines in cache variables' values.
9394 # Ultrix sh set writes to stderr and can't be redirected directly,
9395 # and sets the high bit in the cache file unless we assign to the vars.
9397 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9399 # `set' does not quote correctly, so add quotes (double-quote substitution
9400 # turns \\\\ into \\, and sed turns \\ into \).
9402 -e "s/'/'\\\\''/g" \
9403 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9406 # `set' quotes correctly as required by POSIX, so do not add quotes.
9407 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9410 if cmp -s $cache_file confcache; then
9413 if test -w $cache_file; then
9414 echo "updating cache $cache_file"
9415 cat confcache > $cache_file
9417 echo "not updating unwritable cache $cache_file"
9422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9424 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9425 # Let make expand exec_prefix.
9426 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9428 # Any assignment to VPATH causes Sun make to only execute
9429 # the first set of double-colon rules, so remove it if not needed.
9430 # If there is a colon in the path, we need to keep it.
9431 if test "x$srcdir" = x.; then
9432 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9435 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9437 DEFS=-DHAVE_CONFIG_H
9439 # Without the "./", some shells look in PATH for config.status.
9440 : ${CONFIG_STATUS=./config.status}
9442 echo creating $CONFIG_STATUS
9443 rm -f $CONFIG_STATUS
9444 cat > $CONFIG_STATUS <<EOF
9446 # Generated automatically by configure.
9447 # Run this file to recreate the current configuration.
9448 # This directory was configured as follows,
9449 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9451 # $0 $ac_configure_args
9453 # Compiler output produced by configure, useful for debugging
9454 # configure, is in ./config.log if it exists.
9456 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9459 case "\$ac_option" in
9460 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9461 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9462 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9463 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9464 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9466 -help | --help | --hel | --he | --h)
9467 echo "\$ac_cs_usage"; exit 0 ;;
9468 *) echo "\$ac_cs_usage"; exit 1 ;;
9472 ac_given_srcdir=$srcdir
9473 ac_given_INSTALL="$INSTALL"
9475 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
9477 cat >> $CONFIG_STATUS <<EOF
9479 # Protect against being on the right side of a sed subst in config.status.
9480 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9481 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9485 s%@CFLAGS@%$CFLAGS%g
9486 s%@CPPFLAGS@%$CPPFLAGS%g
9487 s%@CXXFLAGS@%$CXXFLAGS%g
9488 s%@FFLAGS@%$FFLAGS%g
9490 s%@LDFLAGS@%$LDFLAGS%g
9492 s%@exec_prefix@%$exec_prefix%g
9493 s%@prefix@%$prefix%g
9494 s%@program_transform_name@%$program_transform_name%g
9495 s%@bindir@%$bindir%g
9496 s%@sbindir@%$sbindir%g
9497 s%@libexecdir@%$libexecdir%g
9498 s%@datadir@%$datadir%g
9499 s%@sysconfdir@%$sysconfdir%g
9500 s%@sharedstatedir@%$sharedstatedir%g
9501 s%@localstatedir@%$localstatedir%g
9502 s%@libdir@%$libdir%g
9503 s%@includedir@%$includedir%g
9504 s%@oldincludedir@%$oldincludedir%g
9505 s%@infodir@%$infodir%g
9506 s%@mandir@%$mandir%g
9508 s%@host_alias@%$host_alias%g
9509 s%@host_cpu@%$host_cpu%g
9510 s%@host_vendor@%$host_vendor%g
9511 s%@host_os@%$host_os%g
9512 s%@target@%$target%g
9513 s%@target_alias@%$target_alias%g
9514 s%@target_cpu@%$target_cpu%g
9515 s%@target_vendor@%$target_vendor%g
9516 s%@target_os@%$target_os%g
9518 s%@build_alias@%$build_alias%g
9519 s%@build_cpu@%$build_cpu%g
9520 s%@build_vendor@%$build_vendor%g
9521 s%@build_os@%$build_os%g
9522 s%@SET_MAKE@%$SET_MAKE%g
9525 s%@RANLIB@%$RANLIB%g
9528 s%@ALLOCA@%$ALLOCA%g
9529 s%@GLIBC21@%$GLIBC21%g
9530 s%@LIBICONV@%$LIBICONV%g
9531 s%@USE_NLS@%$USE_NLS%g
9532 s%@MSGFMT@%$MSGFMT%g
9533 s%@GMSGFMT@%$GMSGFMT%g
9534 s%@XGETTEXT@%$XGETTEXT%g
9535 s%@INTLBISON@%$INTLBISON%g
9536 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9537 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9538 s%@CATALOGS@%$CATALOGS%g
9539 s%@CATOBJEXT@%$CATOBJEXT%g
9540 s%@GMOFILES@%$GMOFILES%g
9541 s%@INTLLIBS@%$INTLLIBS%g
9542 s%@INTLOBJS@%$INTLOBJS%g
9543 s%@POFILES@%$POFILES%g
9545 s%@DATADIRNAME@%$DATADIRNAME%g
9546 s%@INSTOBJEXT@%$INSTOBJEXT%g
9547 s%@GENCAT@%$GENCAT%g
9548 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9549 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9550 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9551 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9552 s%@INSTALL_DATA@%$INSTALL_DATA%g
9553 s%@WINDRES@%$WINDRES%g
9554 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9555 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9556 s%@SDL_CONFIG@%$SDL_CONFIG%g
9557 s%@ESD_CONFIG@%$ESD_CONFIG%g
9558 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9559 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9560 s%@GTK_CONFIG@%$GTK_CONFIG%g
9561 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9562 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9563 s%@DATA_PATH@%$DATA_PATH%g
9564 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9565 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
9568 s%@PLUGINS@%$PLUGINS%g
9569 s%@BUILTINS@%$BUILTINS%g
9570 s%@ALIASES@%$ALIASES%g
9575 s%@OPTIMS@%$OPTIMS%g
9576 s%@TUNING@%$TUNING%g
9577 s%@RELEASE@%$RELEASE%g
9579 s%@BCBUILDER@%$BCBUILDER%g
9580 s%@PACKAGE@%$PACKAGE%g
9581 s%@VERSION@%$VERSION%g
9582 s%@NEED_GETOPT@%$NEED_GETOPT%g
9583 s%@MOZILLA@%$MOZILLA%g
9584 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9585 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9586 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9587 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9588 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9589 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
9590 s%@a52_CFLAGS@%$a52_CFLAGS%g
9591 s%@arts_CFLAGS@%$arts_CFLAGS%g
9592 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
9593 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9594 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9595 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
9596 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9597 s%@directx_CFLAGS@%$directx_CFLAGS%g
9598 s%@esd_CFLAGS@%$esd_CFLAGS%g
9599 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
9600 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9601 s%@glide_CFLAGS@%$glide_CFLAGS%g
9602 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9603 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9604 s%@kde_CFLAGS@%$kde_CFLAGS%g
9605 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9606 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9607 s%@mad_CFLAGS@%$mad_CFLAGS%g
9608 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9609 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9610 s%@qt_CFLAGS@%$qt_CFLAGS%g
9611 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9612 s%@x11_CFLAGS@%$x11_CFLAGS%g
9613 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9614 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9615 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9616 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9617 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
9618 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9619 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9620 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9621 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9622 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9623 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9624 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9625 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9626 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9627 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9628 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
9629 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9630 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9631 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
9632 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9633 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9634 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
9635 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9636 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9637 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9638 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9639 s%@http_LDFLAGS@%$http_LDFLAGS%g
9640 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9641 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9642 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9643 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9644 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9645 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9646 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9647 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9648 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9649 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9650 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9651 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9652 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9653 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9654 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9655 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9656 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9657 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9658 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9659 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9660 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9661 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9662 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9667 cat >> $CONFIG_STATUS <<\EOF
9669 # Split the substitutions into bite-sized pieces for seds with
9670 # small command number limits, like on Digital OSF/1 and HP-UX.
9671 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9672 ac_file=1 # Number of current file.
9673 ac_beg=1 # First line for current file.
9674 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9677 while $ac_more_lines; do
9678 if test $ac_beg -gt 1; then
9679 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9681 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9683 if test ! -s conftest.s$ac_file; then
9685 rm -f conftest.s$ac_file
9687 if test -z "$ac_sed_cmds"; then
9688 ac_sed_cmds="sed -f conftest.s$ac_file"
9690 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9692 ac_file=`expr $ac_file + 1`
9694 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9697 if test -z "$ac_sed_cmds"; then
9702 cat >> $CONFIG_STATUS <<EOF
9704 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
9706 cat >> $CONFIG_STATUS <<\EOF
9707 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9710 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9711 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9712 *) ac_file_in="${ac_file}.in" ;;
9715 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9717 # Remove last slash and all that follows it. Not all systems have dirname.
9718 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9719 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9720 # The file is in a subdirectory.
9721 test ! -d "$ac_dir" && mkdir "$ac_dir"
9722 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9723 # A "../" for each directory in $ac_dir_suffix.
9724 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9726 ac_dir_suffix= ac_dots=
9729 case "$ac_given_srcdir" in
9731 if test -z "$ac_dots"; then top_srcdir=.
9732 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9733 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9735 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9736 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9739 case "$ac_given_INSTALL" in
9740 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9741 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9744 echo creating "$ac_file"
9746 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9748 *Makefile*) ac_comsub="1i\\
9749 # $configure_input" ;;
9753 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9755 s%@configure_input@%$configure_input%g
9756 s%@srcdir@%$srcdir%g
9757 s%@top_srcdir@%$top_srcdir%g
9758 s%@INSTALL@%$INSTALL%g
9759 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9763 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9764 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9766 # ac_d sets the value in "#define NAME VALUE" lines.
9767 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9768 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9771 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9772 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9773 ac_uB='\([ ]\)%\1#\2define\3'
9776 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9777 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9778 ac_eB='$%\1#\2define\3'
9782 if test "${CONFIG_HEADERS+set}" != set; then
9784 cat >> $CONFIG_STATUS <<EOF
9785 CONFIG_HEADERS="include/defs.h"
9787 cat >> $CONFIG_STATUS <<\EOF
9789 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9790 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9792 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9793 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9794 *) ac_file_in="${ac_file}.in" ;;
9797 echo creating $ac_file
9799 rm -f conftest.frag conftest.in conftest.out
9800 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9801 cat $ac_file_inputs > conftest.in
9805 # Transform confdefs.h into a sed script conftest.vals that substitutes
9806 # the proper values into config.h.in to produce config.h. And first:
9807 # Protect against being on the right side of a sed subst in config.status.
9808 # Protect against being in an unquoted here document in config.status.
9810 cat > conftest.hdr <<\EOF
9813 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9817 sed -n -f conftest.hdr confdefs.h > conftest.vals
9820 # This sed command replaces #undef with comments. This is necessary, for
9821 # example, in the case of _POSIX_SOURCE, which is predefined and required
9822 # on some systems where configure will not decide to define it.
9823 cat >> conftest.vals <<\EOF
9824 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9827 # Break up conftest.vals because some shells have a limit on
9828 # the size of here documents, and old seds have small limits too.
9833 ac_lines=`grep -c . conftest.vals`
9834 # grep -c gives empty output for an empty file on some AIX systems.
9835 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9836 # Write a limited-size here document to conftest.frag.
9837 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9838 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9840 sed -f conftest.frag conftest.in > conftest.out
9842 mv conftest.out conftest.in
9844 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9846 mv conftest.tail conftest.vals
9850 cat >> $CONFIG_STATUS <<\EOF
9851 rm -f conftest.frag conftest.h
9852 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9853 cat conftest.in >> conftest.h
9855 if cmp -s $ac_file conftest.h 2>/dev/null; then
9856 echo "$ac_file is unchanged"
9859 # Remove last slash and all that follows it. Not all systems have dirname.
9860 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9861 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9862 # The file is in a subdirectory.
9863 test ! -d "$ac_dir" && mkdir "$ac_dir"
9866 mv conftest.h $ac_file
9871 cat >> $CONFIG_STATUS <<EOF
9875 cat >> $CONFIG_STATUS <<\EOF
9876 for ac_file in $CONFIG_FILES; do
9877 # Support "outfile[:infile[:infile...]]"
9879 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9881 # PO directories have a Makefile.in generated from Makefile.in.in.
9882 case "$ac_file" in */Makefile.in)
9883 # Adjust a relative srcdir.
9884 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9885 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9886 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9887 # In autoconf-2.13 it is called $ac_given_srcdir.
9888 # In autoconf-2.50 it is called $srcdir.
9889 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9890 case "$ac_given_srcdir" in
9891 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9892 /*) top_srcdir="$ac_given_srcdir" ;;
9893 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9895 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9896 rm -f "$ac_dir/POTFILES"
9897 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9898 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9899 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9900 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9908 chmod +x $CONFIG_STATUS
9909 rm -fr confdefs* $ac_clean_files
9910 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9912 chmod a+x vlc-config
9916 --------------------
9917 vlc version : ${VERSION}
9919 architecture : ${ARCH}
9920 optimizations : ${OPTIMS}
9922 debug mode : ${DEBUG}
9923 release : ${RELEASE}
9924 profiling : ${PROFILING}
9925 need builtin getopt : ${NEED_GETOPT}
9926 built-in modules :${BUILTINS}
9927 plug-in modules :${PLUGINS}
9928 mozilla plugin : ${MOZILLA}
9929 vlc aliases :${ALIASES}
9931 You may now tune Makefile.opts at your convenience, for instance to choose
9932 which modules get compiled as plugins.
9934 To build vlc and its plugins, type \`${VLC_MAKE}'.