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-dvbpsi dvbpsi ts demux module (default disabled)"
50 --with-dvbpsi=PATH libdvbpsi headers and libraries"
52 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
54 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
56 --enable-satellite satellite card support (default disabled)"
58 --enable-avi AVI demux module (default enabled)"
62 --enable-mad libmad module (default disabled)"
64 --with-mad=PATH path to libmad"
66 --with-mad-tree=PATH mad tree for static linking"
68 --enable-ffmpeg ffmpeg codec (default disabled)"
70 --with-ffmpeg=PATH path to ffmpeg installation"
72 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
74 --enable-a52 AC3 support with liba52 (default enabled)"
76 --with-a52-tree=PATH a52dec tree for static linking "
78 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
82 --enable-x11 X11 support (default enabled)"
84 --enable-xvideo XVideo support (default enabled)"
86 --enable-sdl SDL support (default enabled)"
88 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
90 --enable-directx Win32 DirectX support (default enabled on Win32)"
92 --with-directx=PATH Win32 DirectX headers"
94 --enable-fb Linux framebuffer support (default enabled on Linux)"
96 --enable-mga Linux kernel Matrox support (default disabled)"
98 --enable-ggi GGI support (default disabled)"
100 --with-ggi=PATH path to libggi"
102 --enable-glide Glide (3dfx) support (default disabled)"
104 --with-glide=PATH path to libglide"
106 --enable-aa aalib output (default disabled)"
110 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
112 --enable-esd Esound library support (default disabled)"
114 --enable-arts aRts sound server (default disabled)"
116 --enable-alsa ALSA sound support for Linux (default disabled)"
118 --enable-waveout Win32 waveOut module (default enabled on Win32)"
122 --enable-gtk Gtk+ support (default enabled)"
124 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
126 --enable-gnome Gnome interface support (default disabled)"
128 --enable-qt Qt interface support (default disabled)"
130 --enable-kde KDE interface support (default disabled)"
132 --enable-macosx MacOS X support (default enabled on MacOS X)"
134 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
136 --enable-intfwin Win32 interface support (default disabled)"
138 --with-bcbuilder=PATH Borland C++ Builder installation path"
140 --enable-ncurses ncurses interface support (default disabled)"
142 --enable-xosd xosd interface support (default disabled)"
144 --enable-lirc lirc support (default disabled)"
148 --with-words=endianness set endianness (big or little)"
150 --enable-gprof gprof profiling (default disabled)"
152 --enable-cprof cprof profiling (default disabled)"
154 --enable-pth GNU Pth support (default disabled)"
156 --enable-st State Threads (default disabled)"
158 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
160 # Initialize some variables set by options.
161 # The variables have the same names as the options, with
162 # dashes changed to underlines.
164 cache_file=./config.cache
173 program_transform_name=s,x,x,
181 bindir='${exec_prefix}/bin'
182 sbindir='${exec_prefix}/sbin'
183 libexecdir='${exec_prefix}/libexec'
184 datadir='${prefix}/share'
185 sysconfdir='${prefix}/etc'
186 sharedstatedir='${prefix}/com'
187 localstatedir='${prefix}/var'
188 libdir='${exec_prefix}/lib'
189 includedir='${prefix}/include'
190 oldincludedir='/usr/include'
191 infodir='${prefix}/info'
192 mandir='${prefix}/man'
194 # Initialize some other variables.
197 SHELL=${CONFIG_SHELL-/bin/sh}
198 # Maximum number of lines to put in a shell here document.
205 # If the previous option needs an argument, assign it.
206 if test -n "$ac_prev"; then
207 eval "$ac_prev=\$ac_option"
213 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
217 # Accept the important Cygnus configure options, so we can diagnose typos.
221 -bindir | --bindir | --bindi | --bind | --bin | --bi)
223 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
224 bindir="$ac_optarg" ;;
226 -build | --build | --buil | --bui | --bu)
228 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
229 build="$ac_optarg" ;;
231 -cache-file | --cache-file | --cache-fil | --cache-fi \
232 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
233 ac_prev=cache_file ;;
234 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
235 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
236 cache_file="$ac_optarg" ;;
238 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
240 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
242 datadir="$ac_optarg" ;;
244 -disable-* | --disable-*)
245 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
246 # Reject names that are not valid shell variable names.
247 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
248 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
250 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
251 eval "enable_${ac_feature}=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
255 # Reject names that are not valid shell variable names.
256 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
257 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
259 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
264 eval "enable_${ac_feature}='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix="$ac_optarg" ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he)
280 # Omit some internal or obsolete options to make the list less imposing.
281 # This message is too long to be a string in the A/UX 3.1 sh.
283 Usage: configure [options] [host]
284 Options: [defaults in brackets after descriptions]
286 --cache-file=FILE cache test results in FILE
287 --help print this message
288 --no-create do not create output files
289 --quiet, --silent do not print \`checking...' messages
290 --version print the version of autoconf that created configure
291 Directory and file names:
292 --prefix=PREFIX install architecture-independent files in PREFIX
294 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
296 --bindir=DIR user executables in DIR [EPREFIX/bin]
297 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
298 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
299 --datadir=DIR read-only architecture-independent data in DIR
301 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
302 --sharedstatedir=DIR modifiable architecture-independent data in DIR
304 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
305 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
306 --includedir=DIR C header files in DIR [PREFIX/include]
307 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
308 --infodir=DIR info documentation in DIR [PREFIX/info]
309 --mandir=DIR man documentation in DIR [PREFIX/man]
310 --srcdir=DIR find the sources in DIR [configure dir or ..]
311 --program-prefix=PREFIX prepend PREFIX to installed program names
312 --program-suffix=SUFFIX append SUFFIX to installed program names
313 --program-transform-name=PROGRAM
314 run sed PROGRAM on installed program names
318 --build=BUILD configure for building on BUILD [BUILD=HOST]
319 --host=HOST configure for HOST [guessed]
320 --target=TARGET configure for TARGET [TARGET=HOST]
321 Features and packages:
322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
324 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
325 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
326 --x-includes=DIR X include files are in DIR
327 --x-libraries=DIR X library files are in DIR
329 if test -n "$ac_help"; then
330 echo "--enable and --with options recognized:$ac_help"
334 -host | --host | --hos | --ho)
336 -host=* | --host=* | --hos=* | --ho=*)
339 -includedir | --includedir | --includedi | --included | --include \
340 | --includ | --inclu | --incl | --inc)
341 ac_prev=includedir ;;
342 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
343 | --includ=* | --inclu=* | --incl=* | --inc=*)
344 includedir="$ac_optarg" ;;
346 -infodir | --infodir | --infodi | --infod | --info | --inf)
348 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
349 infodir="$ac_optarg" ;;
351 -libdir | --libdir | --libdi | --libd)
353 -libdir=* | --libdir=* | --libdi=* | --libd=*)
354 libdir="$ac_optarg" ;;
356 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
357 | --libexe | --libex | --libe)
358 ac_prev=libexecdir ;;
359 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
360 | --libexe=* | --libex=* | --libe=*)
361 libexecdir="$ac_optarg" ;;
363 -localstatedir | --localstatedir | --localstatedi | --localstated \
364 | --localstate | --localstat | --localsta | --localst \
365 | --locals | --local | --loca | --loc | --lo)
366 ac_prev=localstatedir ;;
367 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
368 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
369 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
370 localstatedir="$ac_optarg" ;;
372 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
374 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
375 mandir="$ac_optarg" ;;
378 # Obsolete; use --without-fp.
381 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
385 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
386 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
389 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
390 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
391 | --oldin | --oldi | --old | --ol | --o)
392 ac_prev=oldincludedir ;;
393 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
394 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
395 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
396 oldincludedir="$ac_optarg" ;;
398 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
400 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
401 prefix="$ac_optarg" ;;
403 -program-prefix | --program-prefix | --program-prefi | --program-pref \
404 | --program-pre | --program-pr | --program-p)
405 ac_prev=program_prefix ;;
406 -program-prefix=* | --program-prefix=* | --program-prefi=* \
407 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
408 program_prefix="$ac_optarg" ;;
410 -program-suffix | --program-suffix | --program-suffi | --program-suff \
411 | --program-suf | --program-su | --program-s)
412 ac_prev=program_suffix ;;
413 -program-suffix=* | --program-suffix=* | --program-suffi=* \
414 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
415 program_suffix="$ac_optarg" ;;
417 -program-transform-name | --program-transform-name \
418 | --program-transform-nam | --program-transform-na \
419 | --program-transform-n | --program-transform- \
420 | --program-transform | --program-transfor \
421 | --program-transfo | --program-transf \
422 | --program-trans | --program-tran \
423 | --progr-tra | --program-tr | --program-t)
424 ac_prev=program_transform_name ;;
425 -program-transform-name=* | --program-transform-name=* \
426 | --program-transform-nam=* | --program-transform-na=* \
427 | --program-transform-n=* | --program-transform-=* \
428 | --program-transform=* | --program-transfor=* \
429 | --program-transfo=* | --program-transf=* \
430 | --program-trans=* | --program-tran=* \
431 | --progr-tra=* | --program-tr=* | --program-t=*)
432 program_transform_name="$ac_optarg" ;;
434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
435 | -silent | --silent | --silen | --sile | --sil)
438 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
440 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
442 sbindir="$ac_optarg" ;;
444 -sharedstatedir | --sharedstatedir | --sharedstatedi \
445 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
446 | --sharedst | --shareds | --shared | --share | --shar \
448 ac_prev=sharedstatedir ;;
449 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
450 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
451 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
453 sharedstatedir="$ac_optarg" ;;
455 -site | --site | --sit)
457 -site=* | --site=* | --sit=*)
460 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
462 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
463 srcdir="$ac_optarg" ;;
465 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
466 | --syscon | --sysco | --sysc | --sys | --sy)
467 ac_prev=sysconfdir ;;
468 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
469 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
470 sysconfdir="$ac_optarg" ;;
472 -target | --target | --targe | --targ | --tar | --ta | --t)
474 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
475 target="$ac_optarg" ;;
477 -v | -verbose | --verbose | --verbos | --verbo | --verb)
480 -version | --version | --versio | --versi | --vers)
481 echo "configure generated by autoconf version 2.13"
485 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
486 # Reject names that are not valid shell variable names.
487 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
488 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
490 ac_package=`echo $ac_package| sed 's/-/_/g'`
495 eval "with_${ac_package}='$ac_optarg'" ;;
497 -without-* | --without-*)
498 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
499 # Reject names that are not valid shell variable names.
500 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
501 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
503 ac_package=`echo $ac_package| sed 's/-/_/g'`
504 eval "with_${ac_package}=no" ;;
507 # Obsolete; use --with-x.
510 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
511 | --x-incl | --x-inc | --x-in | --x-i)
512 ac_prev=x_includes ;;
513 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
514 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
515 x_includes="$ac_optarg" ;;
517 -x-libraries | --x-libraries | --x-librarie | --x-librari \
518 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
519 ac_prev=x_libraries ;;
520 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
521 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
522 x_libraries="$ac_optarg" ;;
524 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
528 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
529 echo "configure: warning: $ac_option: invalid host type" 1>&2
531 if test "x$nonopt" != xNONE; then
532 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
540 if test -n "$ac_prev"; then
541 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
544 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
546 # File descriptor usage:
549 # 2 errors and warnings
550 # 3 some systems may open it to /dev/tty
551 # 4 used on the Kubota Titan
552 # 6 checking for... messages and results
553 # 5 compiler messages saved in config.log
554 if test "$silent" = yes; then
562 This file contains any messages produced by compilers while
563 running configure, to aid debugging if configure makes a mistake.
566 # Strip out --no-create and --no-recursion so they do not pile up.
567 # Also quote any args containing shell metacharacters.
572 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
573 | --no-cr | --no-c) ;;
574 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
575 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
576 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
577 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
578 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
583 # Only set these to C if already set. These must not be set unconditionally
584 # because not all systems understand e.g. LANG=C (notably SCO).
585 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
586 # Non-C LC_CTYPE values break the ctype check.
587 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
588 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
589 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
590 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
592 # confdefs.h avoids OS command line length limits that DEFS can exceed.
593 rm -rf conftest* confdefs.h
594 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
597 # A filename unique to this package, relative to the directory that
598 # configure is in, which we can look for to find out if srcdir is correct.
599 ac_unique_file=include/main.h
601 # Find the source files, if location was not specified.
602 if test -z "$srcdir"; then
603 ac_srcdir_defaulted=yes
604 # Try the directory containing this script, then its parent.
606 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
607 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
609 if test ! -r $srcdir/$ac_unique_file; then
613 ac_srcdir_defaulted=no
615 if test ! -r $srcdir/$ac_unique_file; then
616 if test "$ac_srcdir_defaulted" = yes; then
617 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
619 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
622 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
624 # Prefer explicitly selected file to automatically selected ones.
625 if test -z "$CONFIG_SITE"; then
626 if test "x$prefix" != xNONE; then
627 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
629 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
632 for ac_site_file in $CONFIG_SITE; do
633 if test -r "$ac_site_file"; then
634 echo "loading site script $ac_site_file"
639 if test -r "$cache_file"; then
640 echo "loading cache $cache_file"
643 echo "creating cache $cache_file"
648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
649 ac_cpp='$CPP $CPPFLAGS'
650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
652 cross_compiling=$ac_cv_prog_cc_cross
656 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
657 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
658 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
665 ac_n= ac_c='\c' ac_t=
671 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
672 if test -f $ac_dir/install-sh; then
674 ac_install_sh="$ac_aux_dir/install-sh -c"
676 elif test -f $ac_dir/install.sh; then
678 ac_install_sh="$ac_aux_dir/install.sh -c"
682 if test -z "$ac_aux_dir"; then
683 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
685 ac_config_guess=$ac_aux_dir/config.guess
686 ac_config_sub=$ac_aux_dir/config.sub
687 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
690 # Do some error checking and defaulting for the host and target type.
692 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
695 # 1. You are not allowed to specify --host, --target, and nonopt at the
697 # 2. Host defaults to nonopt.
698 # 3. If nonopt is not specified, then host defaults to the current host,
699 # as determined by config.guess.
700 # 4. Target and build default to nonopt.
701 # 5. If nonopt is not specified, then target and build default to host.
703 # The aliases save the names the user supplied, while $host etc.
704 # will get canonicalized.
705 case $host---$target---$nonopt in
706 NONE---*---* | *---NONE---* | *---*---NONE) ;;
707 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
711 # Make sure we can run config.sub.
712 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
713 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
716 echo $ac_n "checking host system type""... $ac_c" 1>&6
717 echo "configure:718: checking host system type" >&5
720 case "$host_alias" in
724 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
725 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
727 *) host_alias=$nonopt ;;
731 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
732 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
733 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
734 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
735 echo "$ac_t""$host" 1>&6
737 echo $ac_n "checking target system type""... $ac_c" 1>&6
738 echo "configure:739: checking target system type" >&5
741 case "$target_alias" in
744 NONE) target_alias=$host_alias ;;
745 *) target_alias=$nonopt ;;
749 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
750 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
751 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
752 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
753 echo "$ac_t""$target" 1>&6
755 echo $ac_n "checking build system type""... $ac_c" 1>&6
756 echo "configure:757: checking build system type" >&5
759 case "$build_alias" in
762 NONE) build_alias=$host_alias ;;
763 *) build_alias=$nonopt ;;
767 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
768 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
769 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
770 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
771 echo "$ac_t""$build" 1>&6
773 test "$host_alias" != "$target_alias" &&
774 test "$program_prefix$program_suffix$program_transform_name" = \
776 program_prefix=${target_alias}-
779 CONFIGURE_LINE="$0 $*"
785 save_CPPFLAGS="${CPPFLAGS}"
786 save_CFLAGS="${CFLAGS}"
787 save_LDFLAGS="${LDFLAGS}"
789 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
790 echo "configure:791: checking whether ${MAKE-make} sets \${MAKE}" >&5
791 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
792 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 cat > conftestmake <<\EOF
797 @echo 'ac_maketemp="${MAKE}"'
799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
800 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
801 if test -n "$ac_maketemp"; then
802 eval ac_cv_prog_make_${ac_make}_set=yes
804 eval ac_cv_prog_make_${ac_make}_set=no
808 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
809 echo "$ac_t""yes" 1>&6
812 echo "$ac_t""no" 1>&6
813 SET_MAKE="MAKE=${MAKE-make}"
816 # Extract the first word of "gcc", so it can be a program name with args.
817 set dummy gcc; ac_word=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 if test -n "$CC"; then
824 ac_cv_prog_CC="$CC" # Let the user override the test.
826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
828 for ac_dir in $ac_dummy; do
829 test -z "$ac_dir" && ac_dir=.
830 if test -f $ac_dir/$ac_word; then
839 if test -n "$CC"; then
840 echo "$ac_t""$CC" 1>&6
842 echo "$ac_t""no" 1>&6
845 if test -z "$CC"; then
846 # Extract the first word of "cc", so it can be a program name with args.
847 set dummy cc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
859 for ac_dir in $ac_dummy; do
860 test -z "$ac_dir" && ac_dir=.
861 if test -f $ac_dir/$ac_word; then
862 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
871 if test $ac_prog_rejected = yes; then
872 # We found a bogon in the path, so make sure we never use it.
873 set dummy $ac_cv_prog_CC
875 if test $# -gt 0; then
876 # We chose a different compiler from the bogus one.
877 # However, it has the same basename, so the bogon will be chosen
878 # first if we set CC to just the basename; use the full file name.
880 set dummy "$ac_dir/$ac_word" "$@"
888 if test -n "$CC"; then
889 echo "$ac_t""$CC" 1>&6
891 echo "$ac_t""no" 1>&6
894 if test -z "$CC"; then
897 # Extract the first word of "cl", so it can be a program name with args.
898 set dummy cl; ac_word=$2
899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
900 echo "configure:901: checking for $ac_word" >&5
901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 if test -n "$CC"; then
905 ac_cv_prog_CC="$CC" # Let the user override the test.
907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
909 for ac_dir in $ac_dummy; do
910 test -z "$ac_dir" && ac_dir=.
911 if test -f $ac_dir/$ac_word; then
920 if test -n "$CC"; then
921 echo "$ac_t""$CC" 1>&6
923 echo "$ac_t""no" 1>&6
928 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
932 echo "configure:933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
936 ac_cpp='$CPP $CPPFLAGS'
937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
939 cross_compiling=$ac_cv_prog_cc_cross
941 cat > conftest.$ac_ext << EOF
943 #line 944 "configure"
944 #include "confdefs.h"
948 if { (eval echo configure:949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
949 ac_cv_prog_cc_works=yes
950 # If we can't run a trivial program, we are probably using a cross compiler.
951 if (./conftest; exit) 2>/dev/null; then
952 ac_cv_prog_cc_cross=no
954 ac_cv_prog_cc_cross=yes
957 echo "configure: failed program was:" >&5
958 cat conftest.$ac_ext >&5
959 ac_cv_prog_cc_works=no
963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
964 ac_cpp='$CPP $CPPFLAGS'
965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
967 cross_compiling=$ac_cv_prog_cc_cross
969 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
970 if test $ac_cv_prog_cc_works = no; then
971 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
973 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
974 echo "configure:975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
975 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
976 cross_compiling=$ac_cv_prog_cc_cross
978 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
979 echo "configure:980: checking whether we are using GNU C" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 cat > conftest.c <<EOF
988 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
995 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
997 if test $ac_cv_prog_gcc = yes; then
1003 ac_test_CFLAGS="${CFLAGS+set}"
1004 ac_save_CFLAGS="$CFLAGS"
1006 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether ${CC-cc} accepts -g" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 echo 'void f(){}' > conftest.c
1012 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1021 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1022 if test "$ac_test_CFLAGS" = set; then
1023 CFLAGS="$ac_save_CFLAGS"
1024 elif test $ac_cv_prog_cc_g = yes; then
1025 if test "$GCC" = yes; then
1031 if test "$GCC" = yes; then
1038 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1039 echo "configure:1040: checking how to run the C preprocessor" >&5
1040 # On Suns, sometimes $CPP names a directory.
1041 if test -n "$CPP" && test -d "$CPP"; then
1044 if test -z "$CPP"; then
1045 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 # This must be in double quotes, not single quotes, because CPP may get
1049 # substituted into the Makefile and "${CC-cc}" will confuse make.
1051 # On the NeXT, cc -E runs the code through the compiler's parser,
1052 # not just through cpp.
1053 cat > conftest.$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1060 { (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1062 if test -z "$ac_err"; then
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
1069 CPP="${CC-cc} -E -traditional-cpp"
1070 cat > conftest.$ac_ext <<EOF
1071 #line 1072 "configure"
1072 #include "confdefs.h"
1076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1077 { (eval echo configure:1078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1079 if test -z "$ac_err"; then
1083 echo "configure: failed program was:" >&5
1084 cat conftest.$ac_ext >&5
1086 CPP="${CC-cc} -nologo -E"
1087 cat > conftest.$ac_ext <<EOF
1088 #line 1089 "configure"
1089 #include "confdefs.h"
1093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1094 { (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1096 if test -z "$ac_err"; then
1100 echo "configure: failed program was:" >&5
1101 cat conftest.$ac_ext >&5
1110 ac_cv_prog_CPP="$CPP"
1112 CPP="$ac_cv_prog_CPP"
1114 ac_cv_prog_CPP="$CPP"
1116 echo "$ac_t""$CPP" 1>&6
1119 if test $host != $build; then
1120 ac_tool_prefix=${host_alias}-
1125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 if test -n "$RANLIB"; then
1133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1137 for ac_dir in $ac_dummy; do
1138 test -z "$ac_dir" && ac_dir=.
1139 if test -f $ac_dir/$ac_word; then
1140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1147 RANLIB="$ac_cv_prog_RANLIB"
1148 if test -n "$RANLIB"; then
1149 echo "$ac_t""$RANLIB" 1>&6
1151 echo "$ac_t""no" 1>&6
1155 if test -z "$ac_cv_prog_RANLIB"; then
1156 if test -n "$ac_tool_prefix"; then
1157 # Extract the first word of "ranlib", so it can be a program name with args.
1158 set dummy ranlib; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$RANLIB"; then
1165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1172 ac_cv_prog_RANLIB="ranlib"
1177 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1180 RANLIB="$ac_cv_prog_RANLIB"
1181 if test -n "$RANLIB"; then
1182 echo "$ac_t""$RANLIB" 1>&6
1184 echo "$ac_t""no" 1>&6
1192 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1193 set dummy ${ac_tool_prefix}strip; ac_word=$2
1194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195 echo "configure:1196: checking for $ac_word" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1199 if test -n "$STRIP"; then
1200 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1204 for ac_dir in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1214 STRIP="$ac_cv_prog_STRIP"
1215 if test -n "$STRIP"; then
1216 echo "$ac_t""$STRIP" 1>&6
1218 echo "$ac_t""no" 1>&6
1222 if test -z "$ac_cv_prog_STRIP"; then
1223 if test -n "$ac_tool_prefix"; then
1224 # Extract the first word of "strip", so it can be a program name with args.
1225 set dummy strip; ac_word=$2
1226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1227 echo "configure:1228: checking for $ac_word" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 if test -n "$STRIP"; then
1232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1236 for ac_dir in $ac_dummy; do
1237 test -z "$ac_dir" && ac_dir=.
1238 if test -f $ac_dir/$ac_word; then
1239 ac_cv_prog_STRIP="strip"
1244 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1247 STRIP="$ac_cv_prog_STRIP"
1248 if test -n "$STRIP"; then
1249 echo "$ac_t""$STRIP" 1>&6
1251 echo "$ac_t""no" 1>&6
1260 # Extract the first word of "gmake", so it can be a program name with args.
1261 set dummy gmake; ac_word=$2
1262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1263 echo "configure:1264: checking for $ac_word" >&5
1264 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1269 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1272 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1277 for ac_dir in $ac_dummy; do
1278 test -z "$ac_dir" && ac_dir=.
1279 if test -f $ac_dir/$ac_word; then
1280 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1285 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1289 GMAKE="$ac_cv_path_GMAKE"
1290 if test -n "$GMAKE"; then
1291 echo "$ac_t""$GMAKE" 1>&6
1293 echo "$ac_t""no" 1>&6
1296 if test "x$GMAKE" = "xno"; then
1297 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether GNU make is installed" >&5
1299 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if make --version | grep -q -i gnu; then
1305 echo "This software needs you to install GNU make to compile properly."
1306 echo "You can get it from http://www.gnu.org/."
1311 echo "$ac_t""$ac_cv_gmake" 1>&6
1317 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
1319 cat >> confdefs.h <<EOF
1320 #define VLC_PACKAGE "$PACKAGE"
1323 cat >> confdefs.h <<EOF
1324 #define VLC_VERSION "$VERSION"
1327 # Extract the first word of "ranlib", so it can be a program name with args.
1328 set dummy ranlib; ac_word=$2
1329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330 echo "configure:1331: checking for $ac_word" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 if test -n "$RANLIB"; then
1335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1339 for ac_dir in $ac_dummy; do
1340 test -z "$ac_dir" && ac_dir=.
1341 if test -f $ac_dir/$ac_word; then
1342 ac_cv_prog_RANLIB="ranlib"
1347 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1350 RANLIB="$ac_cv_prog_RANLIB"
1351 if test -n "$RANLIB"; then
1352 echo "$ac_t""$RANLIB" 1>&6
1354 echo "$ac_t""no" 1>&6
1358 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1359 echo "configure:1360: checking for strerror in -lcposix" >&5
1360 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 ac_save_LIBS="$LIBS"
1365 LIBS="-lcposix $LIBS"
1366 cat > conftest.$ac_ext <<EOF
1367 #line 1368 "configure"
1368 #include "confdefs.h"
1369 /* Override any gcc2 internal prototype to avoid an error. */
1370 /* We use char because int might match the return type of a gcc2
1371 builtin and then its argument prototype would still apply. */
1378 if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1380 eval "ac_cv_lib_$ac_lib_var=yes"
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1385 eval "ac_cv_lib_$ac_lib_var=no"
1388 LIBS="$ac_save_LIBS"
1391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1392 echo "$ac_t""yes" 1>&6
1393 LIBS="$LIBS -lcposix"
1395 echo "$ac_t""no" 1>&6
1400 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1401 echo "configure:1402: checking for ANSI C header files" >&5
1402 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1414 { (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1416 if test -z "$ac_err"; then
1418 ac_cv_header_stdc=yes
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1424 ac_cv_header_stdc=no
1428 if test $ac_cv_header_stdc = yes; then
1429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1436 egrep "memchr" >/dev/null 2>&1; then
1440 ac_cv_header_stdc=no
1446 if test $ac_cv_header_stdc = yes; then
1447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1448 cat > conftest.$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1454 egrep "free" >/dev/null 2>&1; then
1458 ac_cv_header_stdc=no
1464 if test $ac_cv_header_stdc = yes; then
1465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1466 if test "$cross_compiling" = yes; then
1469 cat > conftest.$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1473 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1474 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1476 int main () { int i; for (i = 0; i < 256; i++)
1477 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1481 if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1488 ac_cv_header_stdc=no
1496 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1497 if test $ac_cv_header_stdc = yes; then
1498 cat >> confdefs.h <<\EOF
1499 #define STDC_HEADERS 1
1504 echo $ac_n "checking for working const""... $ac_c" 1>&6
1505 echo "configure:1506: checking for working const" >&5
1506 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1515 /* Ultrix mips cc rejects this. */
1516 typedef int charset[2]; const charset x;
1517 /* SunOS 4.1.1 cc rejects this. */
1518 char const *const *ccp;
1520 /* NEC SVR4.0.2 mips cc rejects this. */
1521 struct point {int x, y;};
1522 static struct point const zero = {0,0};
1523 /* AIX XL C 1.02.0.0 rejects this.
1524 It does not let you subtract one const X* pointer from another in an arm
1525 of an if-expression whose if-part is not a constant expression */
1526 const char *g = "string";
1527 ccp = &g + (g ? g-g : 0);
1528 /* HPUX 7.0 cc rejects these. */
1531 ccp = (char const *const *) p;
1532 { /* SCO 3.2v4 cc rejects this. */
1534 char const *s = 0 ? (char *) 0 : (char const *) 0;
1538 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1540 const int *foo = &x[0];
1543 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1544 typedef const int *iptr;
1548 { /* AIX XL C 1.02.0.0 rejects this saying
1549 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1550 struct s { int j; const int *ap[3]; };
1551 struct s *b; b->j = 5;
1553 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1559 if { (eval echo configure:1560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1571 echo "$ac_t""$ac_cv_c_const" 1>&6
1572 if test $ac_cv_c_const = no; then
1573 cat >> confdefs.h <<\EOF
1579 echo $ac_n "checking for inline""... $ac_c" 1>&6
1580 echo "configure:1581: checking for inline" >&5
1581 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1585 for ac_kw in inline __inline__ __inline; do
1586 cat > conftest.$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1594 if { (eval echo configure:1595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1596 ac_cv_c_inline=$ac_kw; break
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1606 echo "$ac_t""$ac_cv_c_inline" 1>&6
1607 case "$ac_cv_c_inline" in
1609 no) cat >> confdefs.h <<\EOF
1613 *) cat >> confdefs.h <<EOF
1614 #define inline $ac_cv_c_inline
1619 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1620 echo "configure:1621: checking for off_t" >&5
1621 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 #include <sys/types.h>
1633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1634 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1636 ac_cv_type_off_t=yes
1644 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1645 if test $ac_cv_type_off_t = no; then
1646 cat >> confdefs.h <<\EOF
1652 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1653 echo "configure:1654: checking for size_t" >&5
1654 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 #include <sys/types.h>
1666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1667 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1669 ac_cv_type_size_t=yes
1672 ac_cv_type_size_t=no
1677 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1678 if test $ac_cv_type_size_t = no; then
1679 cat >> confdefs.h <<\EOF
1680 #define size_t unsigned
1685 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1686 # for constant arguments. Useless!
1687 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1688 echo "configure:1689: checking for working alloca.h" >&5
1689 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1697 char *p = alloca(2 * sizeof(int));
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1702 ac_cv_header_alloca_h=yes
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 ac_cv_header_alloca_h=no
1712 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1713 if test $ac_cv_header_alloca_h = yes; then
1714 cat >> confdefs.h <<\EOF
1715 #define HAVE_ALLOCA_H 1
1720 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1721 echo "configure:1722: checking for alloca" >&5
1722 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1730 # define alloca __builtin_alloca
1733 # include <malloc.h>
1734 # define alloca _alloca
1737 # include <alloca.h>
1742 # ifndef alloca /* predefined by HP cc +Olibcalls */
1751 char *p = (char *) alloca(1);
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756 ac_cv_func_alloca_works=yes
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1761 ac_cv_func_alloca_works=no
1766 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1767 if test $ac_cv_func_alloca_works = yes; then
1768 cat >> confdefs.h <<\EOF
1769 #define HAVE_ALLOCA 1
1774 if test $ac_cv_func_alloca_works = no; then
1775 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1776 # that cause trouble. Some versions do not even contain alloca or
1777 # contain a buggy version. If you still want to use their alloca,
1778 # use ar to extract alloca.o from them instead of compiling alloca.c.
1779 ALLOCA=alloca.${ac_objext}
1780 cat >> confdefs.h <<\EOF
1785 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether alloca needs Cray hooks" >&5
1787 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1793 #if defined(CRAY) && ! defined(CRAY2)
1800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1801 egrep "webecray" >/dev/null 2>&1; then
1812 echo "$ac_t""$ac_cv_os_cray" 1>&6
1813 if test $ac_cv_os_cray = yes; then
1814 for ac_func in _getb67 GETB67 getb67; do
1815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1816 echo "configure:1817: checking for $ac_func" >&5
1817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 /* System header to define __stub macros and hopefully few prototypes,
1824 which can conflict with char $ac_func(); below. */
1826 /* Override any gcc2 internal prototype to avoid an error. */
1827 /* We use char because int might match the return type of a gcc2
1828 builtin and then its argument prototype would still apply. */
1833 /* The GNU C library defines this for functions which it implements
1834 to always fail with ENOSYS. Some functions are actually named
1835 something starting with __ and the normal name is an alias. */
1836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1844 if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1846 eval "ac_cv_func_$ac_func=yes"
1848 echo "configure: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1851 eval "ac_cv_func_$ac_func=no"
1856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1857 echo "$ac_t""yes" 1>&6
1858 cat >> confdefs.h <<EOF
1859 #define CRAY_STACKSEG_END $ac_func
1864 echo "$ac_t""no" 1>&6
1870 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1871 echo "configure:1872: checking stack direction for C alloca" >&5
1872 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 if test "$cross_compiling" = yes; then
1876 ac_cv_c_stack_direction=0
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 find_stack_direction ()
1883 static char *addr = 0;
1888 return find_stack_direction ();
1891 return (&dummy > addr) ? 1 : -1;
1895 exit (find_stack_direction() < 0);
1898 if { (eval echo configure:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1900 ac_cv_c_stack_direction=1
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 ac_cv_c_stack_direction=-1
1912 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1913 cat >> confdefs.h <<EOF
1914 #define STACK_DIRECTION $ac_cv_c_stack_direction
1919 for ac_hdr in unistd.h
1921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1923 echo "configure:1924: checking for $ac_hdr" >&5
1924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1933 { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1935 if test -z "$ac_err"; then
1937 eval "ac_cv_header_$ac_safe=yes"
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1943 eval "ac_cv_header_$ac_safe=no"
1947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1948 echo "$ac_t""yes" 1>&6
1949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1950 cat >> confdefs.h <<EOF
1951 #define $ac_tr_hdr 1
1955 echo "$ac_t""no" 1>&6
1959 for ac_func in getpagesize
1961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_func" >&5
1963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 cat > conftest.$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1969 /* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $ac_func(); below. */
1972 /* Override any gcc2 internal prototype to avoid an error. */
1973 /* We use char because int might match the return type of a gcc2
1974 builtin and then its argument prototype would still apply. */
1979 /* The GNU C library defines this for functions which it implements
1980 to always fail with ENOSYS. Some functions are actually named
1981 something starting with __ and the normal name is an alias. */
1982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1990 if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1992 eval "ac_cv_func_$ac_func=yes"
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1997 eval "ac_cv_func_$ac_func=no"
2002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2003 echo "$ac_t""yes" 1>&6
2004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2005 cat >> confdefs.h <<EOF
2006 #define $ac_tr_func 1
2010 echo "$ac_t""no" 1>&6
2014 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2015 echo "configure:2016: checking for working mmap" >&5
2016 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 if test "$cross_compiling" = yes; then
2020 ac_cv_func_mmap_fixed_mapped=no
2022 cat > conftest.$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2026 /* Thanks to Mike Haertel and Jim Avera for this test.
2027 Here is a matrix of mmap possibilities:
2028 mmap private not fixed
2029 mmap private fixed at somewhere currently unmapped
2030 mmap private fixed at somewhere already mapped
2031 mmap shared not fixed
2032 mmap shared fixed at somewhere currently unmapped
2033 mmap shared fixed at somewhere already mapped
2034 For private mappings, we should verify that changes cannot be read()
2035 back from the file, nor mmap's back from the file at a different
2036 address. (There have been systems where private was not correctly
2037 implemented like the infamous i386 svr4.0, and systems where the
2038 VM page cache was not coherent with the filesystem buffer cache
2039 like early versions of FreeBSD and possibly contemporary NetBSD.)
2040 For shared mappings, we should conversely verify that changes get
2041 propogated back to all the places they're supposed to be.
2043 Grep wants private fixed already mapped.
2044 The main things grep needs to know about mmap are:
2045 * does it exist and is it safe to write into the mmap'd area
2046 * how to use it (BSD variants) */
2047 #include <sys/types.h>
2049 #include <sys/mman.h>
2051 /* This mess was copied from the GNU getpagesize.h. */
2052 #ifndef HAVE_GETPAGESIZE
2053 # ifdef HAVE_UNISTD_H
2054 # include <unistd.h>
2057 /* Assume that all systems that can run configure have sys/param.h. */
2058 # ifndef HAVE_SYS_PARAM_H
2059 # define HAVE_SYS_PARAM_H 1
2062 # ifdef _SC_PAGESIZE
2063 # define getpagesize() sysconf(_SC_PAGESIZE)
2064 # else /* no _SC_PAGESIZE */
2065 # ifdef HAVE_SYS_PARAM_H
2066 # include <sys/param.h>
2067 # ifdef EXEC_PAGESIZE
2068 # define getpagesize() EXEC_PAGESIZE
2069 # else /* no EXEC_PAGESIZE */
2071 # define getpagesize() NBPG * CLSIZE
2074 # endif /* no CLSIZE */
2075 # else /* no NBPG */
2077 # define getpagesize() NBPC
2078 # else /* no NBPC */
2080 # define getpagesize() PAGESIZE
2081 # endif /* PAGESIZE */
2082 # endif /* no NBPC */
2083 # endif /* no NBPG */
2084 # endif /* no EXEC_PAGESIZE */
2085 # else /* no HAVE_SYS_PARAM_H */
2086 # define getpagesize() 8192 /* punt totally */
2087 # endif /* no HAVE_SYS_PARAM_H */
2088 # endif /* no _SC_PAGESIZE */
2090 #endif /* no HAVE_GETPAGESIZE */
2093 extern "C" { void *malloc(unsigned); }
2101 char *data, *data2, *data3;
2105 pagesize = getpagesize();
2108 * First, make a file with some known garbage in it.
2110 data = malloc(pagesize);
2113 for (i = 0; i < pagesize; ++i)
2114 *(data + i) = rand();
2116 fd = creat("conftestmmap", 0600);
2119 if (write(fd, data, pagesize) != pagesize)
2124 * Next, try to mmap the file at a fixed address which
2125 * already has something else allocated at it. If we can,
2126 * also make sure that we see the same garbage.
2128 fd = open("conftestmmap", O_RDWR);
2131 data2 = malloc(2 * pagesize);
2134 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2135 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2136 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2138 for (i = 0; i < pagesize; ++i)
2139 if (*(data + i) != *(data2 + i))
2143 * Finally, make sure that changes to the mapped area
2144 * do not percolate back to the file as seen by read().
2145 * (This is a bug on some variants of i386 svr4.0.)
2147 for (i = 0; i < pagesize; ++i)
2148 *(data2 + i) = *(data2 + i) + 1;
2149 data3 = malloc(pagesize);
2152 if (read(fd, data3, pagesize) != pagesize)
2154 for (i = 0; i < pagesize; ++i)
2155 if (*(data + i) != *(data3 + i))
2158 unlink("conftestmmap");
2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2165 ac_cv_func_mmap_fixed_mapped=yes
2167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2170 ac_cv_func_mmap_fixed_mapped=no
2177 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2178 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2179 cat >> confdefs.h <<\EOF
2186 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2187 echo "configure:2188: checking whether we are using the GNU C Library 2.1 or newer" >&5
2188 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2195 #include <features.h>
2196 #ifdef __GNU_LIBRARY__
2197 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2204 egrep "Lucky GNU user" >/dev/null 2>&1; then
2206 ac_cv_gnu_library_2_1=yes
2209 ac_cv_gnu_library_2_1=no
2217 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2219 GLIBC21="$ac_cv_gnu_library_2_1"
2223 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2224 stdlib.h string.h unistd.h sys/param.h
2226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_hdr" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2242 eval "ac_cv_header_$ac_safe=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2248 eval "ac_cv_header_$ac_safe=no"
2252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2255 cat >> confdefs.h <<EOF
2256 #define $ac_tr_hdr 1
2260 echo "$ac_t""no" 1>&6
2264 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2265 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2266 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_func" >&5
2270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 /* System header to define __stub macros and hopefully few prototypes,
2277 which can conflict with char $ac_func(); below. */
2279 /* Override any gcc2 internal prototype to avoid an error. */
2280 /* We use char because int might match the return type of a gcc2
2281 builtin and then its argument prototype would still apply. */
2286 /* The GNU C library defines this for functions which it implements
2287 to always fail with ENOSYS. Some functions are actually named
2288 something starting with __ and the normal name is an alias. */
2289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2299 eval "ac_cv_func_$ac_func=yes"
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2304 eval "ac_cv_func_$ac_func=no"
2309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2312 cat >> confdefs.h <<EOF
2313 #define $ac_tr_func 1
2317 echo "$ac_t""no" 1>&6
2324 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2325 if test "${with_libiconv_prefix+set}" = set; then
2326 withval="$with_libiconv_prefix"
2328 for dir in `echo "$withval" | tr : ' '`; do
2329 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2330 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2336 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2337 echo "configure:2338: checking for iconv" >&5
2338 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2342 am_cv_func_iconv="no, consider installing GNU libiconv"
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2350 iconv_t cd = iconv_open("","");
2351 iconv(cd,NULL,NULL,NULL,NULL);
2355 if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2357 am_cv_func_iconv=yes
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2363 if test "$am_cv_func_iconv" != yes; then
2364 am_save_LIBS="$LIBS"
2365 LIBS="$LIBS -liconv"
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2372 iconv_t cd = iconv_open("","");
2373 iconv(cd,NULL,NULL,NULL,NULL);
2377 if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2380 am_cv_func_iconv=yes
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2386 LIBS="$am_save_LIBS"
2391 echo "$ac_t""$am_cv_func_iconv" 1>&6
2392 if test "$am_cv_func_iconv" = yes; then
2393 cat >> confdefs.h <<\EOF
2394 #define HAVE_ICONV 1
2397 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2398 echo "configure:2399: checking for iconv declaration" >&5
2399 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2413 #if defined(__STDC__) || defined(__cplusplus)
2414 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2423 if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425 am_cv_proto_iconv_arg1=""
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2430 am_cv_proto_iconv_arg1="const"
2433 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);"
2436 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2437 echo "$ac_t""${ac_t:-
2438 }$am_cv_proto_iconv" 1>&6
2439 cat >> confdefs.h <<EOF
2440 #define ICONV_CONST $am_cv_proto_iconv_arg1
2445 if test "$am_cv_lib_iconv" = yes; then
2451 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2452 echo "configure:2453: checking for nl_langinfo and CODESET" >&5
2453 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2459 #include <langinfo.h>
2461 char* cs = nl_langinfo(CODESET);
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466 am_cv_langinfo_codeset=yes
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2471 am_cv_langinfo_codeset=no
2477 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2478 if test $am_cv_langinfo_codeset = yes; then
2479 cat >> confdefs.h <<\EOF
2480 #define HAVE_LANGINFO_CODESET 1
2485 if test $ac_cv_header_locale_h = yes; then
2486 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2487 echo "configure:2488: checking for LC_MESSAGES" >&5
2488 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 cat > conftest.$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2501 am_cv_val_LC_MESSAGES=yes
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2506 am_cv_val_LC_MESSAGES=no
2511 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2512 if test $am_cv_val_LC_MESSAGES = yes; then
2513 cat >> confdefs.h <<\EOF
2514 #define HAVE_LC_MESSAGES 1
2519 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2520 echo "configure:2521: checking whether NLS is requested" >&5
2521 # Check whether --enable-nls or --disable-nls was given.
2522 if test "${enable_nls+set}" = set; then
2523 enableval="$enable_nls"
2529 echo "$ac_t""$USE_NLS" 1>&6
2532 BUILD_INCLUDED_LIBINTL=no
2533 USE_INCLUDED_LIBINTL=no
2536 if test "$USE_NLS" = "yes"; then
2537 cat >> confdefs.h <<\EOF
2538 #define ENABLE_NLS 1
2541 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2542 echo "configure:2543: checking whether included gettext is requested" >&5
2543 # Check whether --with-included-gettext or --without-included-gettext was given.
2544 if test "${with_included_gettext+set}" = set; then
2545 withval="$with_included_gettext"
2546 nls_cv_force_use_gnu_gettext=$withval
2548 nls_cv_force_use_gnu_gettext=no
2551 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2553 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2554 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2560 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2561 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2562 echo "configure:2563: checking for libintl.h" >&5
2563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2569 #include <libintl.h>
2571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2572 { (eval echo configure:2573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2574 if test -z "$ac_err"; then
2576 eval "ac_cv_header_$ac_safe=yes"
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2582 eval "ac_cv_header_$ac_safe=no"
2586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2589 echo "configure:2590: checking for GNU gettext in libc" >&5
2590 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 #include <libintl.h>
2597 extern int _nl_msg_cat_cntr;
2599 bindtextdomain ("", "");
2600 return (int) gettext ("") + _nl_msg_cat_cntr
2603 if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2605 gt_cv_func_gnugettext1_libc=yes
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2610 gt_cv_func_gnugettext1_libc=no
2615 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2617 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2618 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2619 echo "configure:2620: checking for GNU gettext in libintl" >&5
2620 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 gt_save_LIBS="$LIBS"
2624 LIBS="$LIBS -lintl $LIBICONV"
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <libintl.h>
2629 extern int _nl_msg_cat_cntr;
2631 bindtextdomain ("", "");
2632 return (int) gettext ("") + _nl_msg_cat_cntr
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2637 gt_cv_func_gnugettext1_libintl=yes
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 gt_cv_func_gnugettext1_libintl=no
2645 LIBS="$gt_save_LIBS"
2648 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2651 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2652 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2653 && test "$PACKAGE" != gettext; }; then
2654 cat >> confdefs.h <<\EOF
2655 #define HAVE_GETTEXT 1
2659 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2660 INTLLIBS="-lintl $LIBICONV"
2663 gt_save_LIBS="$LIBS"
2664 LIBS="$LIBS $INTLLIBS"
2665 for ac_func in dcgettext
2667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2668 echo "configure:2669: checking for $ac_func" >&5
2669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 /* System header to define __stub macros and hopefully few prototypes,
2676 which can conflict with char $ac_func(); below. */
2678 /* Override any gcc2 internal prototype to avoid an error. */
2679 /* We use char because int might match the return type of a gcc2
2680 builtin and then its argument prototype would still apply. */
2685 /* The GNU C library defines this for functions which it implements
2686 to always fail with ENOSYS. Some functions are actually named
2687 something starting with __ and the normal name is an alias. */
2688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2696 if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2698 eval "ac_cv_func_$ac_func=yes"
2700 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2703 eval "ac_cv_func_$ac_func=no"
2708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2709 echo "$ac_t""yes" 1>&6
2710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2711 cat >> confdefs.h <<EOF
2712 #define $ac_tr_func 1
2716 echo "$ac_t""no" 1>&6
2720 LIBS="$gt_save_LIBS"
2722 # Extract the first word of "msgfmt", so it can be a program name with args.
2723 set dummy msgfmt; ac_word=$2
2724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2725 echo "configure:2726: checking for $ac_word" >&5
2726 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2731 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2735 for ac_dir in $PATH; do
2736 test -z "$ac_dir" && ac_dir=.
2737 if test -f $ac_dir/$ac_word; then
2738 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2739 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2745 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2749 MSGFMT="$ac_cv_path_MSGFMT"
2750 if test "$MSGFMT" != ":"; then
2751 echo "$ac_t""$MSGFMT" 1>&6
2753 echo "$ac_t""no" 1>&6
2756 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2757 set dummy gmsgfmt; ac_word=$2
2758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2759 echo "configure:2760: checking for $ac_word" >&5
2760 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2765 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2768 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2773 for ac_dir in $ac_dummy; do
2774 test -z "$ac_dir" && ac_dir=.
2775 if test -f $ac_dir/$ac_word; then
2776 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2781 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2785 GMSGFMT="$ac_cv_path_GMSGFMT"
2786 if test -n "$GMSGFMT"; then
2787 echo "$ac_t""$GMSGFMT" 1>&6
2789 echo "$ac_t""no" 1>&6
2793 # Extract the first word of "xgettext", so it can be a program name with args.
2794 set dummy xgettext; ac_word=$2
2795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2796 echo "configure:2797: checking for $ac_word" >&5
2797 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2802 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2806 for ac_dir in $PATH; do
2807 test -z "$ac_dir" && ac_dir=.
2808 if test -f $ac_dir/$ac_word; then
2809 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2810 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2816 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2820 XGETTEXT="$ac_cv_path_XGETTEXT"
2821 if test "$XGETTEXT" != ":"; then
2822 echo "$ac_t""$XGETTEXT" 1>&6
2824 echo "$ac_t""no" 1>&6
2832 echo "$ac_t""no" 1>&6
2836 if test "$CATOBJEXT" = "NONE"; then
2837 nls_cv_use_gnu_gettext=yes
2841 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2842 INTLOBJS="\$(GETTOBJS)"
2843 # Extract the first word of "msgfmt", so it can be a program name with args.
2844 set dummy msgfmt; ac_word=$2
2845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2846 echo "configure:2847: checking for $ac_word" >&5
2847 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2852 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2856 for ac_dir in $PATH; do
2857 test -z "$ac_dir" && ac_dir=.
2858 if test -f $ac_dir/$ac_word; then
2859 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2860 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2866 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2870 MSGFMT="$ac_cv_path_MSGFMT"
2871 if test "$MSGFMT" != ":"; then
2872 echo "$ac_t""$MSGFMT" 1>&6
2874 echo "$ac_t""no" 1>&6
2877 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2878 set dummy gmsgfmt; ac_word=$2
2879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2880 echo "configure:2881: checking for $ac_word" >&5
2881 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2886 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2889 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2894 for ac_dir in $ac_dummy; do
2895 test -z "$ac_dir" && ac_dir=.
2896 if test -f $ac_dir/$ac_word; then
2897 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2902 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2906 GMSGFMT="$ac_cv_path_GMSGFMT"
2907 if test -n "$GMSGFMT"; then
2908 echo "$ac_t""$GMSGFMT" 1>&6
2910 echo "$ac_t""no" 1>&6
2913 # Extract the first word of "xgettext", so it can be a program name with args.
2914 set dummy xgettext; ac_word=$2
2915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_word" >&5
2917 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2922 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2926 for ac_dir in $PATH; do
2927 test -z "$ac_dir" && ac_dir=.
2928 if test -f $ac_dir/$ac_word; then
2929 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2930 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2936 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2940 XGETTEXT="$ac_cv_path_XGETTEXT"
2941 if test "$XGETTEXT" != ":"; then
2942 echo "$ac_t""$XGETTEXT" 1>&6
2944 echo "$ac_t""no" 1>&6
2948 BUILD_INCLUDED_LIBINTL=yes
2949 USE_INCLUDED_LIBINTL=yes
2951 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2952 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2955 if test "$GMSGFMT" != ":"; then
2956 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2959 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2964 if test "$XGETTEXT" != ":"; then
2965 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2968 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2978 if test "$PACKAGE" = gettext; then
2979 BUILD_INCLUDED_LIBINTL=yes
2982 for ac_prog in bison
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_word" >&5
2988 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 if test -n "$INTLBISON"; then
2992 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2996 for ac_dir in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir=.
2998 if test -f $ac_dir/$ac_word; then
2999 ac_cv_prog_INTLBISON="$ac_prog"
3006 INTLBISON="$ac_cv_prog_INTLBISON"
3007 if test -n "$INTLBISON"; then
3008 echo "$ac_t""$INTLBISON" 1>&6
3010 echo "$ac_t""no" 1>&6
3013 test -n "$INTLBISON" && break
3016 if test -z "$INTLBISON"; then
3019 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3020 echo "configure:3021: checking version of bison" >&5
3021 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3022 case $ac_prog_version in
3023 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3024 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3025 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3026 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3028 echo "$ac_t""$ac_prog_version" 1>&6
3030 if test $ac_verc_fail = yes; then
3034 for lang in $ALL_LINGUAS; do
3035 GMOFILES="$GMOFILES $lang.gmo"
3036 POFILES="$POFILES $lang.po"
3050 nls_cv_header_libgt=
3062 if test "x$CATOBJEXT" != "x"; then
3063 if test "x$ALL_LINGUAS" = "x"; then
3066 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3067 echo "configure:3068: checking for catalogs to be installed" >&5
3069 for presentlang in $ALL_LINGUAS; do
3071 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3072 # Use the presentlang catalog if desiredlang is
3073 # a. equal to presentlang, or
3074 # b. a variant of presentlang (because in this case,
3075 # presentlang can be used as a fallback for messages
3076 # which are not translated in the desiredlang catalog).
3077 case "$desiredlang" in
3078 "$presentlang"*) useit=yes;;
3081 if test $useit = yes; then
3082 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3085 LINGUAS=$NEW_LINGUAS
3086 echo "$ac_t""$LINGUAS" 1>&6
3089 if test -n "$LINGUAS"; then
3090 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3095 if test -n "$ac_aux_dir"; then
3096 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3098 if test -z "$MKINSTALLDIRS"; then
3099 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3103 INTL_LIBTOOL_SUFFIX_PREFIX=
3107 # Find a good install program. We prefer a C program (faster),
3108 # so one script is as good as another. But avoid the broken or
3109 # incompatible versions:
3110 # SysV /etc/install, /usr/sbin/install
3111 # SunOS /usr/etc/install
3112 # IRIX /sbin/install
3114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3117 # ./install, which can be erroneously created by make from ./install.sh.
3118 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3119 echo "configure:3120: checking for a BSD compatible install" >&5
3120 if test -z "$INSTALL"; then
3121 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3125 for ac_dir in $PATH; do
3126 # Account for people who put trailing slashes in PATH elements.
3128 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3130 # OSF1 and SCO ODT 3.0 have their own names for install.
3131 # Don't use installbsd from OSF since it installs stuff as root
3133 for ac_prog in ginstall scoinst install; do
3134 if test -f $ac_dir/$ac_prog; then
3135 if test $ac_prog = install &&
3136 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3137 # AIX install. It has an incompatible calling convention.
3140 ac_cv_path_install="$ac_dir/$ac_prog -c"
3151 if test "${ac_cv_path_install+set}" = set; then
3152 INSTALL="$ac_cv_path_install"
3154 # As a last resort, use the slow shell script. We don't cache a
3155 # path for INSTALL within a source directory, because that will
3156 # break other packages using the cache if that directory is
3157 # removed, or if the path is relative.
3158 INSTALL="$ac_install_sh"
3161 echo "$ac_t""$INSTALL" 1>&6
3163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3164 # It thinks the first close brace ends the variable substitution.
3165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3172 vlc_LDFLAGS="${LDFLAGS}"
3174 case x"${target_os}" in
3183 save_CFLAGS="${save_CFLAGS} -pthread"
3184 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3185 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3189 save_CFLAGS="${save_CFLAGS} -pthread"
3193 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3197 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3198 set dummy ${ac_tool_prefix}windres; ac_word=$2
3199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_word" >&5
3201 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 if test -n "$WINDRES"; then
3205 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3209 for ac_dir in $ac_dummy; do
3210 test -z "$ac_dir" && ac_dir=.
3211 if test -f $ac_dir/$ac_word; then
3212 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3219 WINDRES="$ac_cv_prog_WINDRES"
3220 if test -n "$WINDRES"; then
3221 echo "$ac_t""$WINDRES" 1>&6
3223 echo "$ac_t""no" 1>&6
3227 if test -z "$ac_cv_prog_WINDRES"; then
3228 if test -n "$ac_tool_prefix"; then
3229 # Extract the first word of "windres", so it can be a program name with args.
3230 set dummy windres; ac_word=$2
3231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_word" >&5
3233 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 if test -n "$WINDRES"; then
3237 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3241 for ac_dir in $ac_dummy; do
3242 test -z "$ac_dir" && ac_dir=.
3243 if test -f $ac_dir/$ac_word; then
3244 ac_cv_prog_WINDRES="windres"
3249 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3252 WINDRES="$ac_cv_prog_WINDRES"
3253 if test -n "$WINDRES"; then
3254 echo "$ac_t""$WINDRES" 1>&6
3256 echo "$ac_t""no" 1>&6
3264 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3265 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3266 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3267 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3268 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3269 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3270 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3274 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3275 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3279 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3280 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3281 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3282 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3283 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3290 if test x"${SYS}" = xmingw32
3292 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3294 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3297 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3299 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
3301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3302 echo "configure:3303: checking for $ac_func" >&5
3303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3309 /* System header to define __stub macros and hopefully few prototypes,
3310 which can conflict with char $ac_func(); below. */
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 /* We use char because int might match the return type of a gcc2
3314 builtin and then its argument prototype would still apply. */
3319 /* The GNU C library defines this for functions which it implements
3320 to always fail with ENOSYS. Some functions are actually named
3321 something starting with __ and the normal name is an alias. */
3322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3330 if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3332 eval "ac_cv_func_$ac_func=yes"
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3337 eval "ac_cv_func_$ac_func=no"
3342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3343 echo "$ac_t""yes" 1>&6
3344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3345 cat >> confdefs.h <<EOF
3346 #define $ac_tr_func 1
3350 echo "$ac_t""no" 1>&6
3355 echo $ac_n "checking for connect""... $ac_c" 1>&6
3356 echo "configure:3357: checking for connect" >&5
3357 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 /* System header to define __stub macros and hopefully few prototypes,
3364 which can conflict with char connect(); below. */
3366 /* Override any gcc2 internal prototype to avoid an error. */
3367 /* We use char because int might match the return type of a gcc2
3368 builtin and then its argument prototype would still apply. */
3373 /* The GNU C library defines this for functions which it implements
3374 to always fail with ENOSYS. Some functions are actually named
3375 something starting with __ and the normal name is an alias. */
3376 #if defined (__stub_connect) || defined (__stub___connect)
3384 if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3386 eval "ac_cv_func_connect=yes"
3388 echo "configure: failed program was:" >&5
3389 cat conftest.$ac_ext >&5
3391 eval "ac_cv_func_connect=no"
3396 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3397 echo "$ac_t""yes" 1>&6
3400 echo "$ac_t""no" 1>&6
3402 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3403 echo "configure:3404: checking for connect in -lsocket" >&5
3404 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 ac_save_LIBS="$LIBS"
3409 LIBS="-lsocket $LIBS"
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* Override any gcc2 internal prototype to avoid an error. */
3414 /* We use char because int might match the return type of a gcc2
3415 builtin and then its argument prototype would still apply. */
3422 if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3424 eval "ac_cv_lib_$ac_lib_var=yes"
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3429 eval "ac_cv_lib_$ac_lib_var=no"
3432 LIBS="$ac_save_LIBS"
3435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3436 echo "$ac_t""yes" 1>&6
3437 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3438 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3441 echo "$ac_t""no" 1>&6
3446 echo $ac_n "checking for send""... $ac_c" 1>&6
3447 echo "configure:3448: checking for send" >&5
3448 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* System header to define __stub macros and hopefully few prototypes,
3455 which can conflict with char send(); below. */
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3464 /* The GNU C library defines this for functions which it implements
3465 to always fail with ENOSYS. Some functions are actually named
3466 something starting with __ and the normal name is an alias. */
3467 #if defined (__stub_send) || defined (__stub___send)
3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3477 eval "ac_cv_func_send=yes"
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3482 eval "ac_cv_func_send=no"
3487 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3491 echo "$ac_t""no" 1>&6
3493 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3494 echo "configure:3495: checking for send in -lsocket" >&5
3495 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 ac_save_LIBS="$LIBS"
3500 LIBS="-lsocket $LIBS"
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 /* Override any gcc2 internal prototype to avoid an error. */
3505 /* We use char because int might match the return type of a gcc2
3506 builtin and then its argument prototype would still apply. */
3513 if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3515 eval "ac_cv_lib_$ac_lib_var=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 eval "ac_cv_lib_$ac_lib_var=no"
3523 LIBS="$ac_save_LIBS"
3526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3528 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3531 echo "$ac_t""no" 1>&6
3536 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3537 echo "configure:3538: checking for gethostbyname" >&5
3538 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 /* System header to define __stub macros and hopefully few prototypes,
3545 which can conflict with char gethostbyname(); below. */
3547 /* Override any gcc2 internal prototype to avoid an error. */
3548 /* We use char because int might match the return type of a gcc2
3549 builtin and then its argument prototype would still apply. */
3550 char gethostbyname();
3554 /* The GNU C library defines this for functions which it implements
3555 to always fail with ENOSYS. Some functions are actually named
3556 something starting with __ and the normal name is an alias. */
3557 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3565 if { (eval echo configure:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3567 eval "ac_cv_func_gethostbyname=yes"
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3572 eval "ac_cv_func_gethostbyname=no"
3577 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3578 echo "$ac_t""yes" 1>&6
3581 echo "$ac_t""no" 1>&6
3583 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3584 echo "configure:3585: checking for gethostbyname in -lnsl" >&5
3585 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 ac_save_LIBS="$LIBS"
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 /* Override any gcc2 internal prototype to avoid an error. */
3595 /* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3597 char gethostbyname();
3603 if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3605 eval "ac_cv_lib_$ac_lib_var=yes"
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 eval "ac_cv_lib_$ac_lib_var=no"
3613 LIBS="$ac_save_LIBS"
3616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3617 echo "$ac_t""yes" 1>&6
3618 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3620 echo "$ac_t""no" 1>&6
3626 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3627 echo "configure:3628: checking for gethostbyname" >&5
3628 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* System header to define __stub macros and hopefully few prototypes,
3635 which can conflict with char gethostbyname(); below. */
3637 /* Override any gcc2 internal prototype to avoid an error. */
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3640 char gethostbyname();
3644 /* The GNU C library defines this for functions which it implements
3645 to always fail with ENOSYS. Some functions are actually named
3646 something starting with __ and the normal name is an alias. */
3647 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3655 if { (eval echo configure:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3657 eval "ac_cv_func_gethostbyname=yes"
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3662 eval "ac_cv_func_gethostbyname=no"
3667 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3668 echo "$ac_t""yes" 1>&6
3671 echo "$ac_t""no" 1>&6
3673 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3674 echo "configure:3675: checking for gethostbyname in -lbind" >&5
3675 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 ac_save_LIBS="$LIBS"
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3687 char gethostbyname();
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3695 eval "ac_cv_lib_$ac_lib_var=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3700 eval "ac_cv_lib_$ac_lib_var=no"
3703 LIBS="$ac_save_LIBS"
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3710 echo "$ac_t""no" 1>&6
3716 for ac_func in nanosleep
3718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3719 echo "configure:3720: checking for $ac_func" >&5
3720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 /* System header to define __stub macros and hopefully few prototypes,
3727 which can conflict with char $ac_func(); below. */
3729 /* Override any gcc2 internal prototype to avoid an error. */
3730 /* We use char because int might match the return type of a gcc2
3731 builtin and then its argument prototype would still apply. */
3736 /* The GNU C library defines this for functions which it implements
3737 to always fail with ENOSYS. Some functions are actually named
3738 something starting with __ and the normal name is an alias. */
3739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3749 eval "ac_cv_func_$ac_func=yes"
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 eval "ac_cv_func_$ac_func=no"
3759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3760 echo "$ac_t""yes" 1>&6
3761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3762 cat >> confdefs.h <<EOF
3763 #define $ac_tr_func 1
3767 echo "$ac_t""no" 1>&6
3768 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3769 echo "configure:3770: checking for nanosleep in -lrt" >&5
3770 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 ac_save_LIBS="$LIBS"
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 /* Override any gcc2 internal prototype to avoid an error. */
3780 /* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3790 eval "ac_cv_lib_$ac_lib_var=yes"
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 eval "ac_cv_lib_$ac_lib_var=no"
3798 LIBS="$ac_save_LIBS"
3801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3805 echo "$ac_t""no" 1>&6
3806 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3807 echo "configure:3808: checking for nanosleep in -lposix4" >&5
3808 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 ac_save_LIBS="$LIBS"
3813 LIBS="-lposix4 $LIBS"
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 /* We use char because int might match the return type of a gcc2
3819 builtin and then its argument prototype would still apply. */
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 eval "ac_cv_lib_$ac_lib_var=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 eval "ac_cv_lib_$ac_lib_var=no"
3836 LIBS="$ac_save_LIBS"
3839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3843 echo "$ac_t""no" 1>&6
3853 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3854 echo "configure:3855: checking for inet_aton" >&5
3855 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 /* System header to define __stub macros and hopefully few prototypes,
3862 which can conflict with char inet_aton(); below. */
3864 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */
3871 /* The GNU C library defines this for functions which it implements
3872 to always fail with ENOSYS. Some functions are actually named
3873 something starting with __ and the normal name is an alias. */
3874 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 eval "ac_cv_func_inet_aton=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_func_inet_aton=no"
3894 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3898 echo "$ac_t""no" 1>&6
3900 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3901 echo "configure:3902: checking for inet_aton in -lresolv" >&5
3902 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 ac_save_LIBS="$LIBS"
3907 LIBS="-lresolv $LIBS"
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3911 /* Override any gcc2 internal prototype to avoid an error. */
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3920 if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3922 eval "ac_cv_lib_$ac_lib_var=yes"
3924 echo "configure: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3927 eval "ac_cv_lib_$ac_lib_var=no"
3930 LIBS="$ac_save_LIBS"
3933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3934 echo "$ac_t""yes" 1>&6
3935 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3937 echo "$ac_t""no" 1>&6
3943 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3944 echo "configure:3945: checking for textdomain" >&5
3945 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3951 /* System header to define __stub macros and hopefully few prototypes,
3952 which can conflict with char textdomain(); below. */
3954 /* Override any gcc2 internal prototype to avoid an error. */
3955 /* We use char because int might match the return type of a gcc2
3956 builtin and then its argument prototype would still apply. */
3961 /* The GNU C library defines this for functions which it implements
3962 to always fail with ENOSYS. Some functions are actually named
3963 something starting with __ and the normal name is an alias. */
3964 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3974 eval "ac_cv_func_textdomain=yes"
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 eval "ac_cv_func_textdomain=no"
3984 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3988 echo "$ac_t""no" 1>&6
3990 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3991 echo "configure:3992: checking for textdomain in -lintl" >&5
3992 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 ac_save_LIBS="$LIBS"
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4010 if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4012 eval "ac_cv_lib_$ac_lib_var=yes"
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4017 eval "ac_cv_lib_$ac_lib_var=no"
4020 LIBS="$ac_save_LIBS"
4023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4025 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4027 echo "$ac_t""no" 1>&6
4035 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4036 echo "configure:4037: checking for getopt_long" >&5
4037 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4043 /* System header to define __stub macros and hopefully few prototypes,
4044 which can conflict with char getopt_long(); below. */
4046 /* Override any gcc2 internal prototype to avoid an error. */
4047 /* We use char because int might match the return type of a gcc2
4048 builtin and then its argument prototype would still apply. */
4053 /* The GNU C library defines this for functions which it implements
4054 to always fail with ENOSYS. Some functions are actually named
4055 something starting with __ and the normal name is an alias. */
4056 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4064 if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4066 eval "ac_cv_func_getopt_long=yes"
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4071 eval "ac_cv_func_getopt_long=no"
4076 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4077 echo "$ac_t""yes" 1>&6
4078 cat >> confdefs.h <<\EOF
4079 #define HAVE_GETOPT_LONG 1
4083 echo "$ac_t""no" 1>&6
4084 # FreeBSD has a gnugetopt library for this:
4085 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4086 echo "configure:4087: checking for getopt_long in -lgnugetopt" >&5
4087 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 ac_save_LIBS="$LIBS"
4092 LIBS="-lgnugetopt $LIBS"
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4107 eval "ac_cv_lib_$ac_lib_var=yes"
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4112 eval "ac_cv_lib_$ac_lib_var=no"
4115 LIBS="$ac_save_LIBS"
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_GETOPT_LONG 1
4123 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4125 echo "$ac_t""no" 1>&6
4132 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4133 echo "configure:4134: checking return type of signal handlers" >&5
4134 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <sys/types.h>
4146 extern "C" void (*signal (int, void (*)(int)))(int);
4148 void (*signal ()) ();
4155 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4157 ac_cv_type_signal=void
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 ac_cv_type_signal=int
4167 echo "$ac_t""$ac_cv_type_signal" 1>&6
4168 cat >> confdefs.h <<EOF
4169 #define RETSIGTYPE $ac_cv_type_signal
4173 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4174 echo "configure:4175: checking for dlopen in -ldl" >&5
4175 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4179 ac_save_LIBS="$LIBS"
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 /* Override any gcc2 internal prototype to avoid an error. */
4185 /* We use char because int might match the return type of a gcc2
4186 builtin and then its argument prototype would still apply. */
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4195 eval "ac_cv_lib_$ac_lib_var=yes"
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4200 eval "ac_cv_lib_$ac_lib_var=no"
4203 LIBS="$ac_save_LIBS"
4206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4207 echo "$ac_t""yes" 1>&6
4208 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4210 echo "$ac_t""no" 1>&6
4213 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4214 echo "configure:4215: checking for cos in -lm" >&5
4215 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4217 echo $ac_n "(cached) $ac_c" 1>&6
4219 ac_save_LIBS="$LIBS"
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 /* Override any gcc2 internal prototype to avoid an error. */
4225 /* We use char because int might match the return type of a gcc2
4226 builtin and then its argument prototype would still apply. */
4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235 eval "ac_cv_lib_$ac_lib_var=yes"
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 eval "ac_cv_lib_$ac_lib_var=no"
4243 LIBS="$ac_save_LIBS"
4246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4247 echo "$ac_t""yes" 1>&6
4248 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4249 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4251 echo "$ac_t""no" 1>&6
4254 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4255 echo "configure:4256: checking for pow in -lm" >&5
4256 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 ac_save_LIBS="$LIBS"
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 /* Override any gcc2 internal prototype to avoid an error. */
4266 /* We use char because int might match the return type of a gcc2
4267 builtin and then its argument prototype would still apply. */
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4276 eval "ac_cv_lib_$ac_lib_var=yes"
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4281 eval "ac_cv_lib_$ac_lib_var=no"
4284 LIBS="$ac_save_LIBS"
4287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4288 echo "$ac_t""yes" 1>&6
4289 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4290 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4291 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4292 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4293 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4296 echo "$ac_t""no" 1>&6
4301 if test "x${THREAD_LIB}" = xerror; then
4302 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4303 echo "configure:4304: checking for pthread_attr_init in -lpthread" >&5
4304 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 ac_save_LIBS="$LIBS"
4309 LIBS="-lpthread $LIBS"
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 /* Override any gcc2 internal prototype to avoid an error. */
4314 /* We use char because int might match the return type of a gcc2
4315 builtin and then its argument prototype would still apply. */
4316 char pthread_attr_init();
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4324 eval "ac_cv_lib_$ac_lib_var=yes"
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4329 eval "ac_cv_lib_$ac_lib_var=no"
4332 LIBS="$ac_save_LIBS"
4335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4336 echo "$ac_t""yes" 1>&6
4337 THREAD_LIB="-lpthread"
4339 echo "$ac_t""no" 1>&6
4343 if test "x${THREAD_LIB}" = xerror; then
4344 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4345 echo "configure:4346: checking for pthread_attr_init in -lpthreads" >&5
4346 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 ac_save_LIBS="$LIBS"
4351 LIBS="-lpthreads $LIBS"
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 /* Override any gcc2 internal prototype to avoid an error. */
4356 /* We use char because int might match the return type of a gcc2
4357 builtin and then its argument prototype would still apply. */
4358 char pthread_attr_init();
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4366 eval "ac_cv_lib_$ac_lib_var=yes"
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 eval "ac_cv_lib_$ac_lib_var=no"
4374 LIBS="$ac_save_LIBS"
4377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4378 echo "$ac_t""yes" 1>&6
4379 THREAD_LIB="-lpthreads"
4381 echo "$ac_t""no" 1>&6
4385 if test "x${THREAD_LIB}" = xerror; then
4386 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4387 echo "configure:4388: checking for pthread_attr_init in -lc_r" >&5
4388 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 ac_save_LIBS="$LIBS"
4394 cat > conftest.$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 /* Override any gcc2 internal prototype to avoid an error. */
4398 /* We use char because int might match the return type of a gcc2
4399 builtin and then its argument prototype would still apply. */
4400 char pthread_attr_init();
4406 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4408 eval "ac_cv_lib_$ac_lib_var=yes"
4410 echo "configure: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4413 eval "ac_cv_lib_$ac_lib_var=no"
4416 LIBS="$ac_save_LIBS"
4419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4420 echo "$ac_t""yes" 1>&6
4423 echo "$ac_t""no" 1>&6
4427 if test "x${THREAD_LIB}" = xerror; then
4428 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4429 echo "configure:4430: checking for pthread_attr_init" >&5
4430 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 /* System header to define __stub macros and hopefully few prototypes,
4437 which can conflict with char pthread_attr_init(); below. */
4439 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4442 char pthread_attr_init();
4446 /* The GNU C library defines this for functions which it implements
4447 to always fail with ENOSYS. Some functions are actually named
4448 something starting with __ and the normal name is an alias. */
4449 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4452 pthread_attr_init();
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4459 eval "ac_cv_func_pthread_attr_init=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4464 eval "ac_cv_func_pthread_attr_init=no"
4469 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4470 echo "$ac_t""yes" 1>&6
4473 echo "$ac_t""no" 1>&6
4479 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4480 echo "configure:4481: checking for cthread_fork in -lthreads" >&5
4481 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 ac_save_LIBS="$LIBS"
4486 LIBS="-lthreads $LIBS"
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4493 char cthread_fork();
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 eval "ac_cv_lib_$ac_lib_var=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 eval "ac_cv_lib_$ac_lib_var=no"
4509 LIBS="$ac_save_LIBS"
4512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4514 THREAD_LIB="-lthreads"
4516 echo "$ac_t""no" 1>&6
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 #include <pthread.h>
4525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4526 egrep "pthread_cond_t" >/dev/null 2>&1; then
4529 cat >> confdefs.h <<\EOF
4530 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 #include <pthread.h>
4541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4542 egrep "pthread_once" >/dev/null 2>&1; then
4545 cat >> confdefs.h <<\EOF
4546 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 #include <strings.h>
4557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4558 egrep "strncasecmp" >/dev/null 2>&1; then
4561 cat >> confdefs.h <<\EOF
4562 #define STRNCASECMP_IN_STRINGS_H 1
4569 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4573 echo "configure:4574: checking for $ac_hdr" >&5
4574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4583 { (eval echo configure:4584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4585 if test -z "$ac_err"; then
4587 eval "ac_cv_header_$ac_safe=yes"
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4593 eval "ac_cv_header_$ac_safe=no"
4597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4600 cat >> confdefs.h <<EOF
4601 #define $ac_tr_hdr 1
4605 echo "$ac_t""no" 1>&6
4609 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4613 echo "configure:4614: checking for $ac_hdr" >&5
4614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4623 { (eval echo configure:4624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4625 if test -z "$ac_err"; then
4627 eval "ac_cv_header_$ac_safe=yes"
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 eval "ac_cv_header_$ac_safe=no"
4637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4638 echo "$ac_t""yes" 1>&6
4639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4640 cat >> confdefs.h <<EOF
4641 #define $ac_tr_hdr 1
4645 echo "$ac_t""no" 1>&6
4649 for ac_hdr in dlfcn.h image.h
4651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4653 echo "configure:4654: checking for $ac_hdr" >&5
4654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4663 { (eval echo configure:4664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4665 if test -z "$ac_err"; then
4667 eval "ac_cv_header_$ac_safe=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 eval "ac_cv_header_$ac_safe=no"
4677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4678 echo "$ac_t""yes" 1>&6
4679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4680 cat >> confdefs.h <<EOF
4681 #define $ac_tr_hdr 1
4685 echo "$ac_t""no" 1>&6
4689 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4693 echo "configure:4694: checking for $ac_hdr" >&5
4694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4703 { (eval echo configure:4704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4705 if test -z "$ac_err"; then
4707 eval "ac_cv_header_$ac_safe=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 eval "ac_cv_header_$ac_safe=no"
4717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4720 cat >> confdefs.h <<EOF
4721 #define $ac_tr_hdr 1
4725 echo "$ac_t""no" 1>&6
4729 for ac_hdr in machine/param.h sys/shm.h
4731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4733 echo "configure:4734: checking for $ac_hdr" >&5
4734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4743 { (eval echo configure:4744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4745 if test -z "$ac_err"; then
4747 eval "ac_cv_header_$ac_safe=yes"
4750 echo "configure: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4753 eval "ac_cv_header_$ac_safe=no"
4757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4758 echo "$ac_t""yes" 1>&6
4759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4760 cat >> confdefs.h <<EOF
4761 #define $ac_tr_hdr 1
4765 echo "$ac_t""no" 1>&6
4769 for ac_hdr in linux/version.h
4771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4773 echo "configure:4774: checking for $ac_hdr" >&5
4774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4783 { (eval echo configure:4784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4785 if test -z "$ac_err"; then
4787 eval "ac_cv_header_$ac_safe=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_header_$ac_safe=no"
4797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4800 cat >> confdefs.h <<EOF
4801 #define $ac_tr_hdr 1
4805 echo "$ac_t""no" 1>&6
4810 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4811 echo "configure:4812: checking whether time.h and sys/time.h may both be included" >&5
4812 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 #include <sys/types.h>
4819 #include <sys/time.h>
4825 if { (eval echo configure:4826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4827 ac_cv_header_time=yes
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4832 ac_cv_header_time=no
4837 echo "$ac_t""$ac_cv_header_time" 1>&6
4838 if test $ac_cv_header_time = yes; then
4839 cat >> confdefs.h <<\EOF
4840 #define TIME_WITH_SYS_TIME 1
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4852 egrep "nanosleep" >/dev/null 2>&1; then
4855 cat >> confdefs.h <<\EOF
4856 #define HAVE_DECL_NANOSLEEP 1
4864 cat > conftest.$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4867 #include <sys/time.h>
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 egrep "timespec" >/dev/null 2>&1; then
4873 cat >> confdefs.h <<\EOF
4874 #define HAVE_STRUCT_TIMESPEC 1
4882 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4886 echo "configure:4887: checking for $ac_hdr" >&5
4887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4896 { (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4898 if test -z "$ac_err"; then
4900 eval "ac_cv_header_$ac_safe=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4906 eval "ac_cv_header_$ac_safe=no"
4910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4913 cat >> confdefs.h <<EOF
4914 #define $ac_tr_hdr 1
4918 echo "$ac_t""no" 1>&6
4923 if test x$SYS != xmingw32
4925 if test x$x_includes = xNONE; then
4926 x_includes=/usr/X11R6/include
4928 if test x$x_libraries = xNONE; then
4929 x_libraries=/usr/X11R6/lib
4931 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4932 for ac_hdr in X11/extensions/dpms.h
4934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4936 echo "configure:4937: checking for $ac_hdr" >&5
4937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 cat > conftest.$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4946 { (eval echo configure:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4948 if test -z "$ac_err"; then
4950 eval "ac_cv_header_$ac_safe=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 eval "ac_cv_header_$ac_safe=no"
4960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_hdr 1
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 #include <X11/extensions/dpms.h>
4972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4973 egrep "DPMSInfo" >/dev/null 2>&1; then
4976 cat >> confdefs.h <<\EOF
4977 #define DPMSINFO_IN_DPMS_H 1
4986 echo "$ac_t""no" 1>&6
4990 CPPFLAGS="$save_CPPFLAGS"
4993 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4994 echo "configure:4995: checking for ntohl in sys/param.h" >&5
4995 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 CFLAGS="${save_CFLAGS} -Wall -Werror"
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 #include <sys/param.h>
5004 void foo() { int meuh; ntohl(meuh); }
5007 if { (eval echo configure:5008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5009 ac_cv_c_ntohl_sys_param_h=yes
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 ac_cv_c_ntohl_sys_param_h=no
5019 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5020 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5021 cat >> confdefs.h <<\EOF
5022 #define NTOHL_IN_SYS_PARAM_H 1
5027 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5028 echo "configure:5029: checking if \$CC accepts -finline-limit" >&5
5029 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5030 echo $ac_n "(cached) $ac_c" 1>&6
5032 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5041 if { (eval echo configure:5042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5043 ac_cv_c_inline_limit=yes
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5048 ac_cv_c_inline_limit=no
5053 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5054 if test x"$ac_cv_c_inline_limit" != x"no"; then
5055 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5058 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5059 echo "configure:5060: checking if \$CC accepts -Wall -Winline" >&5
5060 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5063 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5072 if { (eval echo configure:5073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5074 ac_cv_c_Wall_Winline=yes
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5079 ac_cv_c_Wall_Winline=no
5084 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5085 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5086 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"
5088 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5089 echo "configure:5090: checking if \$CC accepts -wall -winline" >&5
5090 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5093 CFLAGS="-wall -winline ${save_CFLAGS}"
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5102 if { (eval echo configure:5103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5104 ac_cv_c_wall_winline=yes
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5109 ac_cv_c_wall_winline=no
5114 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5115 if test x"$ac_cv_c_wall_winline" != x"no"; then
5116 save_CFLAGS="-wall -winline ${save_CFLAGS}"
5120 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5121 echo "configure:5122: checking if \$CC accepts -pipe" >&5
5122 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 CFLAGS="${save_CFLAGS} -pipe"
5126 cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5134 if { (eval echo configure:5135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5146 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5147 if test x"$ac_cv_c_pipe" != x"no"; then
5148 save_CFLAGS="${save_CFLAGS} -pipe"
5151 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5152 echo "configure:5153: checking if \$CC accepts -O3" >&5
5153 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5156 CFLAGS="${save_CFLAGS} -O3"
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5165 if { (eval echo configure:5166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5177 echo "$ac_t""$ac_cv_c_o3" 1>&6
5178 if test x"$ac_cv_c_o3" != x"no"; then
5179 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5181 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5182 echo "configure:5183: checking if \$CC accepts -O2" >&5
5183 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5186 CFLAGS="${save_CFLAGS} -O2"
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5195 if { (eval echo configure:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5207 echo "$ac_t""$ac_cv_c_o2" 1>&6
5208 if test x"$ac_cv_c_o2" != x"no"; then
5209 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5211 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5212 echo "configure:5213: checking if \$CC accepts -O" >&5
5213 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 CFLAGS="${save_CFLAGS} -O"
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5225 if { (eval echo configure:5226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5237 echo "$ac_t""$ac_cv_c_o" 1>&6
5238 if test x"$ac_cv_c_o" != x"no"; then
5239 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5244 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5245 echo "configure:5246: checking if \$CC accepts -ffast-math" >&5
5246 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6
5249 CFLAGS="${save_CFLAGS} -ffast-math"
5250 cat > conftest.$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5258 if { (eval echo configure:5259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5260 ac_cv_c_fast_math=yes
5262 echo "configure: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5265 ac_cv_c_fast_math=no
5270 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5271 if test x"$ac_cv_c_fast_math" != x"no"; then
5272 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5275 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5276 echo "configure:5277: checking if \$CC accepts -funroll-loops" >&5
5277 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 CFLAGS="${save_CFLAGS} -funroll-loops"
5281 cat > conftest.$ac_ext <<EOF
5282 #line 5283 "configure"
5283 #include "confdefs.h"
5289 if { (eval echo configure:5290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5291 ac_cv_c_unroll_loops=yes
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5296 ac_cv_c_unroll_loops=no
5301 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5302 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5303 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5306 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5307 echo "configure:5308: checking if \$CC accepts -fomit-frame-pointer" >&5
5308 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5311 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5312 cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5320 if { (eval echo configure:5321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5322 ac_cv_c_omit_frame_pointer=yes
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5327 ac_cv_c_omit_frame_pointer=no
5332 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5333 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5334 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5335 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5336 chroma_i420_yuy2_mmx_CFLAGS="${chroma_i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5339 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5340 echo "configure:5341: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5341 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5344 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5353 if { (eval echo configure:5354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5365 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5366 if test x"$ac_cv_ld_darwin" != x"no"; then
5367 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5370 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5371 echo "configure:5372: checking if \$CC accepts -shared" >&5
5372 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5375 CFLAGS="${save_CFLAGS} -shared"
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5384 if { (eval echo configure:5385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5386 ac_cv_ld_plugins=yes
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5396 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5397 if test x"$ac_cv_ld_plugins" != x"no"; then
5398 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5401 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5402 echo "configure:5403: checking for variadic cpp macros" >&5
5403 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5404 echo $ac_n "(cached) $ac_c" 1>&6
5406 CFLAGS="${save_CFLAGS}"
5407 cat > conftest.$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5411 #define a(b,c...) printf(b,##c)
5413 a("foo");a("%s","bar");a("%s%s","baz","quux");
5416 if { (eval echo configure:5417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5418 ac_cv_cpp_variadic_macros=yes
5420 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5423 ac_cv_cpp_variadic_macros=no
5428 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5429 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5430 cat >> confdefs.h <<\EOF
5431 #define HAVE_VARIADIC_MACROS 1
5436 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5437 echo "configure:5438: checking __attribute__ ((aligned ())) support" >&5
5438 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5439 echo $ac_n "(cached) $ac_c" 1>&6
5441 ac_cv_c_attribute_aligned=0
5442 CFLAGS="${save_CFLAGS} -Werror"
5443 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5444 cat > conftest.$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5449 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5452 if { (eval echo configure:5453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5454 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5463 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5464 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5465 cat >> confdefs.h <<EOF
5466 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5471 case x"${target_cpu}" in
5476 ARCH="${target_cpu}"
5480 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
5481 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_audio mpeg_ps mpeg_ts 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"
5483 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5484 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5485 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5486 SSE_MODULES="imdctsse downmixsse"
5487 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5489 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5490 echo "configure:5491: checking if \$CC groks MMX inline assembly" >&5
5491 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5492 echo $ac_n "(cached) $ac_c" 1>&6
5494 CFLAGS="${save_CFLAGS}"
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5500 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5503 if { (eval echo configure:5504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5505 ac_cv_mmx_inline=yes
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5515 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5516 if test x"$ac_cv_mmx_inline" != x"no"; then
5517 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5520 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5521 echo "configure:5522: checking if \$CC groks MMX EXT inline assembly" >&5
5522 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5525 CFLAGS="${save_CFLAGS}"
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5531 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5534 if { (eval echo configure:5535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5536 ac_cv_mmxext_inline=yes
5538 echo "configure: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5541 ac_cv_mmxext_inline=no
5546 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5547 if test x"$ac_cv_mmxext_inline" != x"no"; then
5548 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5551 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5552 echo "configure:5553: checking if \$CC groks 3D Now! inline assembly" >&5
5553 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5556 CFLAGS="${save_CFLAGS}"
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5562 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5565 if { (eval echo configure:5566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5567 ac_cv_3dnow_inline=yes
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5572 ac_cv_3dnow_inline=no
5577 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5578 if test x"$ac_cv_3dnow_inline" != x"no"; then
5579 cat >> confdefs.h <<\EOF
5580 #define CAN_COMPILE_3DNOW 1
5583 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5586 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5587 echo "configure:5588: checking if \$CC groks SSE inline assembly" >&5
5588 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5591 CFLAGS="${save_CFLAGS}"
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5597 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5600 if { (eval echo configure:5601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5602 ac_cv_sse_inline=yes
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5612 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5613 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5614 cat >> confdefs.h <<\EOF
5615 #define CAN_COMPILE_SSE 1
5618 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5621 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5622 # we should be able to remove this test with future versions of mingw32
5623 if test x$SYS != xmingw32; then
5624 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5625 echo "configure:5626: checking if \$CC groks AltiVec inline assembly" >&5
5626 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 CFLAGS="${save_CFLAGS}"
5630 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5635 asm volatile("vperm 0,1,2,3");
5638 if { (eval echo configure:5639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5640 ac_cv_altivec_inline=yes
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5645 CFLAGS="$save_CFLAGS -Wa,-m7400"
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5651 asm volatile("vperm 0,1,2,3");
5654 if { (eval echo configure:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5656 ac_cv_altivec_inline="-Wa,-m7400"
5658 echo "configure: failed program was:" >&5
5659 cat conftest.$ac_ext >&5
5661 ac_cv_altivec_inline=no
5669 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5670 if test x"$ac_cv_altivec_inline" != x"no"; then
5671 cat >> confdefs.h <<\EOF
5672 #define CAN_COMPILE_ALTIVEC 1
5675 if test x"$ac_cv_altivec_inline" != x"yes"; then
5676 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5677 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5678 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5679 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5681 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5684 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5685 echo "configure:5686: checking if \$CC groks AltiVec C extensions" >&5
5686 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5689 CFLAGS="$save_CFLAGS -faltivec"
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5696 vec_mtvscr((vector unsigned int)(0));
5699 if { (eval echo configure:5700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5701 ac_cv_c_altivec=-faltivec
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5708 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5709 cat > conftest.$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5714 vec_mtvscr((vector unsigned int)(0));
5717 if { (eval echo configure:5718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5719 ac_cv_c_altivec="-fvec"
5721 echo "configure: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5733 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5734 if test x"$ac_cv_c_altivec" != x"no"; then
5735 cat >> confdefs.h <<\EOF
5736 #define CAN_COMPILE_C_ALTIVEC 1
5739 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5740 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5741 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5742 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5743 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5746 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5747 echo "configure:5748: checking if linker needs -framework vecLib" >&5
5748 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 LDFLAGS="$vlc_LDFLAGS -framework vecLib"
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762 ac_cv_ld_altivec=yes
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5773 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5774 if test x"$ac_cv_ld_altivec" != x"no"; then
5775 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5776 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5777 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5778 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5783 # Check whether --with- or --without- was given.
5784 if test "${with_+set}" = set; then
5789 # Check whether --with- or --without- was given.
5790 if test "${with_+set}" = set; then
5796 # Check whether --with-tuning or --without-tuning was given.
5797 if test "${with_tuning+set}" = set; then
5798 withval="$with_tuning"
5802 if test "x$with_tuning" != "x"; then
5803 TUNING="$with_tuning"
5805 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5807 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5811 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5814 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5817 # Check whether --enable-optimizations or --disable-optimizations was given.
5818 if test "${enable_optimizations+set}" = set; then
5819 enableval="$enable_optimizations"
5820 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5826 # Check whether --enable-altivec or --disable-altivec was given.
5827 if test "${enable_altivec+set}" = set; then
5828 enableval="$enable_altivec"
5829 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5830 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5832 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5833 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5838 # Check whether --enable-debug or --disable-debug was given.
5839 if test "${enable_debug+set}" = set; then
5840 enableval="$enable_debug"
5841 if test x$enable_debug = xyes; then DEBUG=1; fi
5846 # Check whether --enable-release or --disable-release was given.
5847 if test "${enable_release+set}" = set; then
5848 enableval="$enable_release"
5849 if test x$enable_release = xyes; then RELEASE=1; fi
5851 VERSION="${VERSION}_`date +%Y-%m-%d`"
5856 # Check whether --with- or --without- was given.
5857 if test "${with_+set}" = set; then
5863 # Check whether --enable-dvd or --disable-dvd was given.
5864 if test "${enable_dvd+set}" = set; then
5865 enableval="$enable_dvd"
5869 if test "x$enable_dvd" != "xno"
5871 # Check whether --with-dvdcss or --without-dvdcss was given.
5872 if test "${with_dvdcss+set}" = set; then
5873 withval="$with_dvdcss"
5877 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5878 if test "${with_dvdcss_tree+set}" = set; then
5879 withval="$with_dvdcss_tree"
5883 case "x$with_dvdcss" in
5885 if test "x$with_dvdcss_tree" = x
5887 for ac_hdr in dvdcss/dvdcss.h
5889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5891 echo "configure:5892: checking for $ac_hdr" >&5
5892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5901 { (eval echo configure:5902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5903 if test -z "$ac_err"; then
5905 eval "ac_cv_header_$ac_safe=yes"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 eval "ac_cv_header_$ac_safe=no"
5915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5916 echo "$ac_t""yes" 1>&6
5917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5918 cat >> confdefs.h <<EOF
5919 #define $ac_tr_hdr 1
5921 PLUGINS="${PLUGINS} dvd"
5922 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5924 echo "$ac_t""no" 1>&6
5925 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
5926 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5931 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5932 echo "configure:5933: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5933 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5934 if test "x$real_dvdcss_tree" = x
5936 echo "$ac_t""no" 1>&6
5937 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5939 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5941 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5942 BUILTINS="${BUILTINS} dvd"
5943 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5944 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5946 echo "$ac_t""no" 1>&6
5947 { 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; }
5952 PLUGINS="${PLUGINS} dvd"
5953 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5954 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5957 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5958 echo "configure:5959: checking for dvdcss headers in ${with_dvdcss}" >&5
5959 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5961 echo "$ac_t""yes" 1>&6
5962 PLUGINS="${PLUGINS} dvd"
5963 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5964 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5966 echo "$ac_t""no" 1>&6
5967 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5973 # Check whether --enable-dvdread or --disable-dvdread was given.
5974 if test "${enable_dvdread+set}" = set; then
5975 enableval="$enable_dvdread"
5979 if test "x$enable_dvdread" != "xno"
5981 # Check whether --with-dvdread or --without-dvdread was given.
5982 if test "${with_dvdread+set}" = set; then
5983 withval="$with_dvdread"
5987 if test "x$with_dvdread" = x
5992 test_LDFLAGS="-L${with_dvdread}/lib"
5993 test_CFLAGS="-I${with_dvdread}/include"
5995 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5996 for ac_hdr in dvdread/dvd_reader.h
5998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_hdr" >&5
6001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6004 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6010 { (eval echo configure:6011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6012 if test -z "$ac_err"; then
6014 eval "ac_cv_header_$ac_safe=yes"
6017 echo "configure: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6020 eval "ac_cv_header_$ac_safe=no"
6024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6027 cat >> confdefs.h <<EOF
6028 #define $ac_tr_hdr 1
6031 CFLAGS="${save_CFLAGS}"
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 #include <dvdread/dvd_reader.h>
6037 void foo() { int i=DVD_VIDEO_LB_LEN; }
6040 if { (eval echo configure:6041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6043 PLUGINS="${PLUGINS} dvdread"
6044 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6045 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6048 echo "configure: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6052 if test "x$enable_dvdread" != x
6054 { 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; }
6061 echo "$ac_t""no" 1>&6
6062 if test "x$enable_dvdread" != x
6064 if test "x$with_dvdread" != x
6066 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6068 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6075 CPPFLAGS="$save_CPPFLAGS"
6078 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6079 if test "${enable_dvbpsi+set}" = set; then
6080 enableval="$enable_dvbpsi"
6084 if test "x$enable_dvbpsi" != "xno"
6086 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6087 if test "${with_dvbpsi+set}" = set; then
6088 withval="$with_dvbpsi"
6092 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6093 if test "${with_dvbpsi+set}" = set; then
6094 withval="$with_dvbpsi"
6098 case "x$with_dvbpsi" in
6100 if test "x$with_dvbpsi_tree" = x
6102 for ac_hdr in dvbpsi/dr.h
6104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6106 echo "configure:6107: checking for $ac_hdr" >&5
6107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6116 { (eval echo configure:6117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6118 if test -z "$ac_err"; then
6120 eval "ac_cv_header_$ac_safe=yes"
6123 echo "configure: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6126 eval "ac_cv_header_$ac_safe=no"
6130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6131 echo "$ac_t""yes" 1>&6
6132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6133 cat >> confdefs.h <<EOF
6134 #define $ac_tr_hdr 1
6136 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6137 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6139 echo "$ac_t""no" 1>&6
6144 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6145 echo "configure:6146: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6146 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6147 if test "x$real_dvbpsi_tree" = x
6149 echo "$ac_t""no" 1>&6
6150 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6152 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6154 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6155 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6156 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6157 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6159 echo "$ac_t""no" 1>&6
6160 { 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; }
6167 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6168 echo "configure:6169: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6169 if test "x$with_dvbpsi" = x
6174 test_LDFLAGS="-L${with_dvbpsi}/lib"
6175 test_CFLAGS="-I${with_dvbpsi}/include"
6177 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6178 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6179 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6180 echo "configure:6181: checking for dvbpsi/dr.h" >&5
6181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6182 echo $ac_n "(cached) $ac_c" 1>&6
6184 cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure"
6186 #include "confdefs.h"
6187 #include <dvbpsi/dr.h>
6189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6190 { (eval echo configure:6191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6192 if test -z "$ac_err"; then
6194 eval "ac_cv_header_$ac_safe=yes"
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 eval "ac_cv_header_$ac_safe=no"
6204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6205 echo "$ac_t""yes" 1>&6
6207 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6208 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6209 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6212 echo "$ac_t""no" 1>&6
6214 if test "x$enable_dvbpsi" != x
6216 { 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; }
6221 CPPFLAGS="$save_CPPFLAGS"
6226 # Check whether --enable-vcd or --disable-vcd was given.
6227 if test "${enable_vcd+set}" = set; then
6228 enableval="$enable_vcd"
6233 if test x$enable_vcd != xno
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6238 #include <linux/cdrom.h>
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241 egrep "cdrom_msf0" >/dev/null 2>&1; then
6244 PLUGINS="${PLUGINS} vcd"
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 #include <sys/cdio.h>
6255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6256 egrep "ioc_toc_header " >/dev/null 2>&1; then
6259 PLUGINS="${PLUGINS} vcd"
6260 cat >> confdefs.h <<\EOF
6261 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6269 if test "x${SYS}" = "xbsdi"
6271 PLUGINS="${PLUGINS} vcd"
6274 if test "x${SYS}" = "xdarwin"
6276 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6277 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6281 # Check whether --enable-satellite or --disable-satellite was given.
6282 if test "${enable_satellite+set}" = set; then
6283 enableval="$enable_satellite"
6284 if test x$enable_satellite = xyes
6286 PLUGINS="${PLUGINS} satellite"
6291 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6293 CFLAGS="$save_CFLAGS"
6294 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6295 echo "configure:6296: checking for inet_pton" >&5
6296 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 /* System header to define __stub macros and hopefully few prototypes,
6303 which can conflict with char inet_pton(); below. */
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6325 eval "ac_cv_func_inet_pton=yes"
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6330 eval "ac_cv_func_inet_pton=no"
6335 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6337 PLUGINS="${PLUGINS} ipv6"
6339 echo "$ac_t""no" 1>&6
6341 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6342 echo "configure:6343: checking for inet_pton in -lresolv" >&5
6343 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6345 echo $ac_n "(cached) $ac_c" 1>&6
6347 ac_save_LIBS="$LIBS"
6348 LIBS="-lresolv $LIBS"
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6361 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6363 eval "ac_cv_lib_$ac_lib_var=yes"
6365 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6368 eval "ac_cv_lib_$ac_lib_var=no"
6371 LIBS="$ac_save_LIBS"
6374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6375 echo "$ac_t""yes" 1>&6
6376 PLUGINS="${PLUGINS} ipv6"
6377 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6379 echo "$ac_t""no" 1>&6
6386 if test "x$SYS" = "xmingw32"
6388 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6389 echo "configure:6390: checking for getaddrinfo in ws2tcpip.h" >&5
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6393 #include <ws2tcpip.h>
6395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396 egrep "addrinfo" >/dev/null 2>&1; then
6398 echo "$ac_t""yes" 1>&6
6399 PLUGINS="${PLUGINS} ipv6"
6402 echo "$ac_t""no" 1>&6
6408 # Check whether --enable-avi or --disable-avi was given.
6409 if test "${enable_avi+set}" = set; then
6410 enableval="$enable_avi"
6414 if test x$enable_avi != xno
6416 PLUGINS="${PLUGINS} avi"
6420 # Check whether --with- or --without- was given.
6421 if test "${with_+set}" = set; then
6427 # Check whether --enable-mad or --disable-mad was given.
6428 if test "${enable_mad+set}" = set; then
6429 enableval="$enable_mad"
6433 if test x$enable_mad = xyes
6435 # Check whether --with-mad or --without-mad was given.
6436 if test "${with_mad+set}" = set; then
6441 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6443 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6444 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6447 # Check whether --with-mad-tree or --without-mad-tree was given.
6448 if test "${with_mad_tree+set}" = set; then
6449 withval="$with_mad_tree"
6453 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6455 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6456 if test "x$real_mad_tree" = x
6458 echo "$ac_t""no" 1>&6
6459 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6461 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6462 echo "configure:6463: checking for mad.h in ${real_mad_tree}/libmad" >&5
6463 if test -f ${real_mad_tree}/libmad/mad.h
6465 echo "$ac_t""yes" 1>&6
6466 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6467 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6468 save_LDFLAGS=$LDFLAGS
6469 LDFLAGS=$mad_LDFLAGS
6470 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6471 echo "configure:6472: checking for mad_bit_init in -lmad" >&5
6472 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6476 ac_save_LIBS="$LIBS"
6478 cat > conftest.$ac_ext <<EOF
6479 #line 6480 "configure"
6480 #include "confdefs.h"
6481 /* Override any gcc2 internal prototype to avoid an error. */
6482 /* We use char because int might match the return type of a gcc2
6483 builtin and then its argument prototype would still apply. */
6484 char mad_bit_init();
6490 if { (eval echo configure:6491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6492 eval "ac_cv_lib_$ac_lib_var=yes"
6494 echo "configure: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 eval "ac_cv_lib_$ac_lib_var=no"
6500 LIBS="$ac_save_LIBS"
6503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6504 echo "$ac_t""yes" 1>&6
6506 BUILTINS="${BUILTINS} mad"
6507 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6510 echo "$ac_t""no" 1>&6
6511 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6515 LDFLAGS=$save_LDFLAGS
6517 echo "$ac_t""no" 1>&6
6518 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6521 CFLAGS="$vlc_CFLAGS $mad_CFLAGS"
6522 LDFLAGS="$vlc_LDFLAGS $mad_LDFLAGS"
6525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6527 echo "configure:6528: checking for $ac_hdr" >&5
6528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6537 { (eval echo configure:6538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6539 if test -z "$ac_err"; then
6541 eval "ac_cv_header_$ac_safe=yes"
6544 echo "configure: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6547 eval "ac_cv_header_$ac_safe=no"
6551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6552 echo "$ac_t""yes" 1>&6
6553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6554 cat >> confdefs.h <<EOF
6555 #define $ac_tr_hdr 1
6559 echo "$ac_t""no" 1>&6
6560 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6564 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6565 echo "configure:6566: checking for mad_bit_init in -lmad" >&5
6566 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
6570 ac_save_LIBS="$LIBS"
6572 cat > conftest.$ac_ext <<EOF
6573 #line 6574 "configure"
6574 #include "confdefs.h"
6575 /* Override any gcc2 internal prototype to avoid an error. */
6576 /* We use char because int might match the return type of a gcc2
6577 builtin and then its argument prototype would still apply. */
6578 char mad_bit_init();
6584 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6586 eval "ac_cv_lib_$ac_lib_var=yes"
6588 echo "configure: failed program was:" >&5
6589 cat conftest.$ac_ext >&5
6591 eval "ac_cv_lib_$ac_lib_var=no"
6594 LIBS="$ac_save_LIBS"
6597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6598 echo "$ac_t""yes" 1>&6
6600 PLUGINS="${PLUGINS} mad"
6601 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6603 echo "$ac_t""no" 1>&6
6604 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6610 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6611 if test "${enable_ffmpeg+set}" = set; then
6612 enableval="$enable_ffmpeg"
6616 if test "x$enable_ffmpeg" = "xyes"
6618 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6619 if test "${with_ffmpeg+set}" = set; then
6620 withval="$with_ffmpeg"
6624 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6626 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6627 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6630 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6631 if test "${with_ffmpeg_tree+set}" = set; then
6632 withval="$with_ffmpeg_tree"
6636 if test "x$with_ffmpeg_tree" != "x"
6638 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6639 echo "configure:6640: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6640 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6641 if test "x$real_ffmpeg_tree" = x
6643 echo "$ac_t""no" 1>&6
6644 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6646 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6648 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6649 BUILTINS="${BUILTINS} ffmpeg"
6650 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6651 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6653 echo "$ac_t""no" 1>&6
6654 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6658 save_LDFLAGS=$LDFLAGS
6659 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6660 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6661 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6662 echo "configure:6663: checking for avcodec_init in -lavcodec" >&5
6663 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 ac_save_LIBS="$LIBS"
6668 LIBS="-lavcodec $LIBS"
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* Override any gcc2 internal prototype to avoid an error. */
6673 /* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6675 char avcodec_init();
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 eval "ac_cv_lib_$ac_lib_var=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_lib_$ac_lib_var=no"
6691 LIBS="$ac_save_LIBS"
6694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6697 BUILTINS="${BUILTINS} ffmpeg"
6698 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6700 echo "$ac_t""no" 1>&6
6701 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6705 LDFLAGS=$save_LDFLAGS
6710 if test x$SYS = xbeos
6712 PLUGINS="${PLUGINS} beos"
6715 # Check whether --enable-a52 or --disable-a52 was given.
6716 if test "${enable_a52+set}" = set; then
6717 enableval="$enable_a52"
6721 if test "x$enable_a52" != "xno"
6723 # Check whether --with-a52-tree or --without-a52-tree was given.
6724 if test "${with_a52_tree+set}" = set; then
6725 withval="$with_a52_tree"
6729 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6731 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6732 if test "x$real_a52_tree" = x
6734 echo "$ac_t""no" 1>&6
6735 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6737 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6738 echo "configure:6739: checking for a52.h in ${real_a52_tree}/include" >&5
6739 if test -f ${real_a52_tree}/include/a52.h
6741 echo "$ac_t""yes" 1>&6
6742 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6743 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6744 save_LDFLAGS=$LDFLAGS
6745 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6746 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6747 echo "configure:6748: checking for a52_free in -la52" >&5
6748 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6750 echo $ac_n "(cached) $ac_c" 1>&6
6752 ac_save_LIBS="$LIBS"
6753 LIBS="-la52 -lm $LIBS"
6754 cat > conftest.$ac_ext <<EOF
6755 #line 6756 "configure"
6756 #include "confdefs.h"
6757 /* Override any gcc2 internal prototype to avoid an error. */
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6766 if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6768 eval "ac_cv_lib_$ac_lib_var=yes"
6770 echo "configure: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6773 eval "ac_cv_lib_$ac_lib_var=no"
6776 LIBS="$ac_save_LIBS"
6779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6780 echo "$ac_t""yes" 1>&6
6782 BUILTINS="${BUILTINS} a52"
6783 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6784 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6787 echo "$ac_t""no" 1>&6
6789 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6791 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6793 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6798 LDFLAGS=$save_LDFLAGS
6800 echo "$ac_t""no" 1>&6
6801 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6803 else for ac_hdr in a52dec/a52.h
6805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6807 echo "configure:6808: checking for $ac_hdr" >&5
6808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6811 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6817 { (eval echo configure:6818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6819 if test -z "$ac_err"; then
6821 eval "ac_cv_header_$ac_safe=yes"
6824 echo "configure: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6827 eval "ac_cv_header_$ac_safe=no"
6831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6832 echo "$ac_t""yes" 1>&6
6833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6834 cat >> confdefs.h <<EOF
6835 #define $ac_tr_hdr 1
6838 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6839 echo "configure:6840: checking for a52_free in -la52" >&5
6840 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6844 ac_save_LIBS="$LIBS"
6845 LIBS="-la52 -lm $LIBS"
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 /* Override any gcc2 internal prototype to avoid an error. */
6850 /* We use char because int might match the return type of a gcc2
6851 builtin and then its argument prototype would still apply. */
6858 if { (eval echo configure:6859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6860 eval "ac_cv_lib_$ac_lib_var=yes"
6862 echo "configure: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6865 eval "ac_cv_lib_$ac_lib_var=no"
6868 LIBS="$ac_save_LIBS"
6871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6872 echo "$ac_t""yes" 1>&6
6874 BUILTINS="${BUILTINS} a52"
6875 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6876 a52_CFLAGS="${a52_CFLAGS}"
6879 echo "$ac_t""no" 1>&6
6884 echo "$ac_t""no" 1>&6
6891 # Check whether --enable-vorbis or --disable-vorbis was given.
6892 if test "${enable_vorbis+set}" = set; then
6893 enableval="$enable_vorbis"
6897 if test "x$enable_vorbis" != "xno"
6899 for ac_hdr in ogg/ogg.h
6901 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6902 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6903 echo "configure:6904: checking for $ac_hdr" >&5
6904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6905 echo $ac_n "(cached) $ac_c" 1>&6
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6913 { (eval echo configure:6914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6915 if test -z "$ac_err"; then
6917 eval "ac_cv_header_$ac_safe=yes"
6920 echo "configure: failed program was:" >&5
6921 cat conftest.$ac_ext >&5
6923 eval "ac_cv_header_$ac_safe=no"
6927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6928 echo "$ac_t""yes" 1>&6
6929 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6930 cat >> confdefs.h <<EOF
6931 #define $ac_tr_hdr 1
6934 #PLUGINS="${PLUGINS} vorbis"
6935 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6938 echo "$ac_t""no" 1>&6
6945 # Check whether --with- or --without- was given.
6946 if test "${with_+set}" = set; then
6952 # Check whether --enable-x11 or --disable-x11 was given.
6953 if test "${enable_x11+set}" = set; then
6954 enableval="$enable_x11"
6958 if test x$enable_x11 != xno &&
6959 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6960 if test x$x_includes = xNONE; then
6961 x_includes=/usr/X11R6/include
6963 if test x$x_libraries = xNONE; then
6964 x_libraries=/usr/X11R6/lib
6966 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6967 for ac_hdr in X11/Xlib.h
6969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6971 echo "configure:6972: checking for $ac_hdr" >&5
6972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6981 { (eval echo configure:6982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6983 if test -z "$ac_err"; then
6985 eval "ac_cv_header_$ac_safe=yes"
6988 echo "configure: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6991 eval "ac_cv_header_$ac_safe=no"
6995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6998 cat >> confdefs.h <<EOF
6999 #define $ac_tr_hdr 1
7002 PLUGINS="${PLUGINS} x11"
7003 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
7004 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
7007 echo "$ac_t""no" 1>&6
7011 CPPFLAGS="$save_CPPFLAGS"
7014 # Check whether --enable-xvideo or --disable-xvideo was given.
7015 if test "${enable_xvideo+set}" = set; then
7016 enableval="$enable_xvideo"
7020 if test x$enable_xvideo != xno &&
7021 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
7022 if test x$x_includes = xNONE; then
7023 x_includes=/usr/X11R6/include
7025 if test x$x_libraries = xNONE; then
7026 x_libraries=/usr/X11R6/lib
7028 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
7029 for ac_hdr in X11/extensions/Xv.h
7031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7033 echo "configure:7034: checking for $ac_hdr" >&5
7034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 cat > conftest.$ac_ext <<EOF
7038 #line 7039 "configure"
7039 #include "confdefs.h"
7042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7043 { (eval echo configure:7044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7045 if test -z "$ac_err"; then
7047 eval "ac_cv_header_$ac_safe=yes"
7050 echo "configure: failed program was:" >&5
7051 cat conftest.$ac_ext >&5
7053 eval "ac_cv_header_$ac_safe=no"
7057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7058 echo "$ac_t""yes" 1>&6
7059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7060 cat >> confdefs.h <<EOF
7061 #define $ac_tr_hdr 1
7064 CFLAGS="$save_CFLAGS -L$x_libraries -lX11 -lXext"
7065 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7066 echo "configure:7067: checking for XvSetPortAttribute in -lXv_pic" >&5
7067 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7071 ac_save_LIBS="$LIBS"
7072 LIBS="-lXv_pic $LIBS"
7073 cat > conftest.$ac_ext <<EOF
7074 #line 7075 "configure"
7075 #include "confdefs.h"
7076 /* Override any gcc2 internal prototype to avoid an error. */
7077 /* We use char because int might match the return type of a gcc2
7078 builtin and then its argument prototype would still apply. */
7079 char XvSetPortAttribute();
7082 XvSetPortAttribute()
7085 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7087 eval "ac_cv_lib_$ac_lib_var=yes"
7089 echo "configure: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7092 eval "ac_cv_lib_$ac_lib_var=no"
7095 LIBS="$ac_save_LIBS"
7098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7099 echo "$ac_t""yes" 1>&6
7100 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7101 PLUGINS="${PLUGINS} xvideo"
7102 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
7103 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7105 echo "$ac_t""no" 1>&6
7106 # We don't have Xv_pic, let's make xvideo.a as builtin
7107 BUILTINS="${BUILTINS} xvideo"
7108 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
7109 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7113 CPPFLAGS="$save_CPPFLAGS"
7115 echo "$ac_t""no" 1>&6
7121 # Check whether --enable-sdl or --disable-sdl was given.
7122 if test "${enable_sdl+set}" = set; then
7123 enableval="$enable_sdl"
7127 if test "x$enable_sdl" != "xno"
7130 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7131 if test "${with_sdl_config_path+set}" = set; then
7132 withval="$with_sdl_config_path"
7133 if test "x$with_sdl_config_path" != "xno"
7135 SDL_PATH="$with_sdl_config_path:$PATH"
7139 # Extract the first word of "sdl12-config", so it can be a program name with args.
7140 set dummy sdl12-config; ac_word=$2
7141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7142 echo "configure:7143: checking for $ac_word" >&5
7143 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7144 echo $ac_n "(cached) $ac_c" 1>&6
7146 case "$SDL12_CONFIG" in
7148 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7151 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7155 ac_dummy="$SDL_PATH"
7156 for ac_dir in $ac_dummy; do
7157 test -z "$ac_dir" && ac_dir=.
7158 if test -f $ac_dir/$ac_word; then
7159 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7164 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7168 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7169 if test -n "$SDL12_CONFIG"; then
7170 echo "$ac_t""$SDL12_CONFIG" 1>&6
7172 echo "$ac_t""no" 1>&6
7175 SDL_CONFIG=${SDL12_CONFIG}
7176 SDL_HEADER="SDL12/SDL.h"
7177 if test x${SDL_CONFIG} = xno
7179 # Extract the first word of "sdl11-config", so it can be a program name with args.
7180 set dummy sdl11-config; ac_word=$2
7181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7182 echo "configure:7183: checking for $ac_word" >&5
7183 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7184 echo $ac_n "(cached) $ac_c" 1>&6
7186 case "$SDL11_CONFIG" in
7188 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7191 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7195 ac_dummy="$SDL_PATH"
7196 for ac_dir in $ac_dummy; do
7197 test -z "$ac_dir" && ac_dir=.
7198 if test -f $ac_dir/$ac_word; then
7199 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7204 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7208 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7209 if test -n "$SDL11_CONFIG"; then
7210 echo "$ac_t""$SDL11_CONFIG" 1>&6
7212 echo "$ac_t""no" 1>&6
7215 SDL_CONFIG=${SDL11_CONFIG}
7216 SDL_HEADER="SDL11/SDL.h"
7218 if test x${SDL_CONFIG} = xno
7220 # Extract the first word of "sdl-config", so it can be a program name with args.
7221 set dummy sdl-config; ac_word=$2
7222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7223 echo "configure:7224: checking for $ac_word" >&5
7224 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7225 echo $ac_n "(cached) $ac_c" 1>&6
7227 case "$SDL_CONFIG" in
7229 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7232 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7236 ac_dummy="$SDL_PATH"
7237 for ac_dir in $ac_dummy; do
7238 test -z "$ac_dir" && ac_dir=.
7239 if test -f $ac_dir/$ac_word; then
7240 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7245 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7249 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7250 if test -n "$SDL_CONFIG"; then
7251 echo "$ac_t""$SDL_CONFIG" 1>&6
7253 echo "$ac_t""no" 1>&6
7256 SDL_HEADER="SDL/SDL.h"
7258 if test x${SDL_CONFIG} != xno
7260 PLUGINS="${PLUGINS} sdl"
7261 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7262 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7263 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7264 for ac_hdr in ${SDL_HEADER}
7266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7268 echo "configure:7269: checking for $ac_hdr" >&5
7269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7270 echo $ac_n "(cached) $ac_c" 1>&6
7272 cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7278 { (eval echo configure:7279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7280 if test -z "$ac_err"; then
7282 eval "ac_cv_header_$ac_safe=yes"
7285 echo "configure: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7288 eval "ac_cv_header_$ac_safe=no"
7292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7293 echo "$ac_t""yes" 1>&6
7294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7295 cat >> confdefs.h <<EOF
7296 #define $ac_tr_hdr 1
7298 cat >> confdefs.h <<EOF
7299 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7303 echo "$ac_t""no" 1>&6
7304 { echo "configure: error: The development package for SDL is not installed.
7305 Please install it and try again. Alternatively you can also configure with
7306 --disable-sdl." 1>&2; exit 1; }
7311 CPPFLAGS="$save_CPPFLAGS"
7312 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7314 { echo "configure: error: The development package for SDL is not installed.
7315 Please install it and try again. Alternatively you can also configure with
7316 --disable-sdl." 1>&2; exit 1; }
7318 elif test "x$enable_sdl" = "xyes"
7320 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7321 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7326 # Check whether --enable-directx or --disable-directx was given.
7327 if test "${enable_directx+set}" = set; then
7328 enableval="$enable_directx"
7332 if test "x$enable_directx" != "xno"
7334 if test x$SYS = xmingw32
7336 # Check whether --with-directx or --without-directx was given.
7337 if test "${with_directx+set}" = set; then
7338 withval="$with_directx"
7342 if test "x$with_directx" = "x"
7344 for ac_hdr in ddraw.h
7346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7348 echo "configure:7349: checking for $ac_hdr" >&5
7349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7358 { (eval echo configure:7359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7360 if test -z "$ac_err"; then
7362 eval "ac_cv_header_$ac_safe=yes"
7365 echo "configure: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7368 eval "ac_cv_header_$ac_safe=no"
7372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7373 echo "$ac_t""yes" 1>&6
7374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7375 cat >> confdefs.h <<EOF
7376 #define $ac_tr_hdr 1
7378 PLUGINS="${PLUGINS} directx"
7379 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7381 echo "$ac_t""no" 1>&6
7386 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7387 echo "configure:7388: checking for directX headers in ${with_directx}" >&5
7388 if test -f ${with_directx}/ddraw.h
7390 PLUGINS="${PLUGINS} directx"
7391 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7392 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7393 echo "$ac_t""yes" 1>&6
7395 echo "$ac_t""no" 1>&6
7396 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7402 # Check whether --enable-fb or --disable-fb was given.
7403 if test "${enable_fb+set}" = set; then
7404 enableval="$enable_fb"
7408 if test x$enable_fb != xno
7410 for ac_hdr in linux/fb.h
7412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7414 echo "configure:7415: checking for $ac_hdr" >&5
7415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7418 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7424 { (eval echo configure:7425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7426 if test -z "$ac_err"; then
7428 eval "ac_cv_header_$ac_safe=yes"
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7434 eval "ac_cv_header_$ac_safe=no"
7438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7439 echo "$ac_t""yes" 1>&6
7440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7441 cat >> confdefs.h <<EOF
7442 #define $ac_tr_hdr 1
7445 PLUGINS="${PLUGINS} fb"
7448 echo "$ac_t""no" 1>&6
7454 # Check whether --enable-mga or --disable-mga was given.
7455 if test "${enable_mga+set}" = set; then
7456 enableval="$enable_mga"
7457 if test x$enable_mga = xyes
7459 PLUGINS="${PLUGINS} mga xmga"
7464 # Check whether --enable-ggi or --disable-ggi was given.
7465 if test "${enable_ggi+set}" = set; then
7466 enableval="$enable_ggi"
7470 if test x$enable_ggi = xyes
7472 PLUGINS="${PLUGINS} ggi"
7473 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7474 # Check whether --with-ggi or --without-ggi was given.
7475 if test "${with_ggi+set}" = set; then
7477 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7479 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7480 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7486 # Check whether --enable-glide or --disable-glide was given.
7487 if test "${enable_glide+set}" = set; then
7488 enableval="$enable_glide"
7492 if test x$enable_glide = xyes
7494 PLUGINS="${PLUGINS} glide"
7495 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7496 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7497 # Check whether --with-glide or --without-glide was given.
7498 if test "${with_glide+set}" = set; then
7499 withval="$with_glide"
7500 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7502 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7503 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7509 # Check whether --enable-aa or --disable-aa was given.
7510 if test "${enable_aa+set}" = set; then
7511 enableval="$enable_aa"
7515 if test x$enable_aa = xyes
7517 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7518 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7519 echo "configure:7520: checking for aalib.h" >&5
7520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7521 echo $ac_n "(cached) $ac_c" 1>&6
7523 cat > conftest.$ac_ext <<EOF
7524 #line 7525 "configure"
7525 #include "confdefs.h"
7528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7529 { (eval echo configure:7530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7531 if test -z "$ac_err"; then
7533 eval "ac_cv_header_$ac_safe=yes"
7536 echo "configure: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7539 eval "ac_cv_header_$ac_safe=no"
7543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7544 echo "$ac_t""yes" 1>&6
7547 echo "$ac_t""no" 1>&6
7551 if test x$have_aa = xtrue
7553 PLUGINS="${PLUGINS} aa"
7554 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7559 # Check whether --with- or --without- was given.
7560 if test "${with_+set}" = set; then
7566 # Check whether --enable-dsp or --disable-dsp was given.
7567 if test "${enable_dsp+set}" = set; then
7568 enableval="$enable_dsp"
7573 if test x$enable_dsp != xno &&
7574 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7576 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7580 echo "configure:7581: checking for $ac_hdr" >&5
7581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7584 cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7590 { (eval echo configure:7591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7592 if test -z "$ac_err"; then
7594 eval "ac_cv_header_$ac_safe=yes"
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7600 eval "ac_cv_header_$ac_safe=no"
7604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7605 echo "$ac_t""yes" 1>&6
7606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7607 cat >> confdefs.h <<EOF
7608 #define $ac_tr_hdr 1
7611 PLUGINS="${PLUGINS} dsp"
7612 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7613 echo "configure:7614: checking for main in -lossaudio" >&5
7614 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7616 echo $ac_n "(cached) $ac_c" 1>&6
7618 ac_save_LIBS="$LIBS"
7619 LIBS="-lossaudio $LIBS"
7620 cat > conftest.$ac_ext <<EOF
7621 #line 7622 "configure"
7622 #include "confdefs.h"
7628 if { (eval echo configure:7629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7630 eval "ac_cv_lib_$ac_lib_var=yes"
7632 echo "configure: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7635 eval "ac_cv_lib_$ac_lib_var=no"
7638 LIBS="$ac_save_LIBS"
7641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7642 echo "$ac_t""yes" 1>&6
7643 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7645 echo "$ac_t""no" 1>&6
7650 echo "$ac_t""no" 1>&6
7656 # Check whether --enable-esd or --disable-esd was given.
7657 if test "${enable_esd+set}" = set; then
7658 enableval="$enable_esd"
7659 if test x$enable_esd = xyes
7661 # Extract the first word of "esd-config", so it can be a program name with args.
7662 set dummy esd-config; ac_word=$2
7663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7664 echo "configure:7665: checking for $ac_word" >&5
7665 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7666 echo $ac_n "(cached) $ac_c" 1>&6
7668 case "$ESD_CONFIG" in
7670 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7673 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7678 for ac_dir in $ac_dummy; do
7679 test -z "$ac_dir" && ac_dir=.
7680 if test -f $ac_dir/$ac_word; then
7681 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7686 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7690 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7691 if test -n "$ESD_CONFIG"; then
7692 echo "$ac_t""$ESD_CONFIG" 1>&6
7694 echo "$ac_t""no" 1>&6
7697 if test x${ESD_CONFIG} != xno
7699 PLUGINS="${PLUGINS} esd"
7700 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7701 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7707 # Check whether --enable-arts or --disable-arts was given.
7708 if test "${enable_arts+set}" = set; then
7709 enableval="$enable_arts"
7710 if test x$enable_arts = xyes
7712 # Extract the first word of "artsc-config", so it can be a program name with args.
7713 set dummy artsc-config; ac_word=$2
7714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7715 echo "configure:7716: checking for $ac_word" >&5
7716 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7719 case "$ARTS_CONFIG" in
7721 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7724 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7729 for ac_dir in $ac_dummy; do
7730 test -z "$ac_dir" && ac_dir=.
7731 if test -f $ac_dir/$ac_word; then
7732 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7737 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7741 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7742 if test -n "$ARTS_CONFIG"; then
7743 echo "$ac_t""$ARTS_CONFIG" 1>&6
7745 echo "$ac_t""no" 1>&6
7748 if test x${ARTS_CONFIG} != xno
7750 PLUGINS="${PLUGINS} arts"
7751 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7752 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7758 # Check whether --enable-alsa or --disable-alsa was given.
7759 if test "${enable_alsa+set}" = set; then
7760 enableval="$enable_alsa"
7761 if test x$enable_alsa = xyes
7763 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7764 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7765 echo "configure:7766: checking for alsa/asoundlib.h" >&5
7766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7767 echo $ac_n "(cached) $ac_c" 1>&6
7769 cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 #include <alsa/asoundlib.h>
7774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7775 { (eval echo configure:7776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7777 if test -z "$ac_err"; then
7779 eval "ac_cv_header_$ac_safe=yes"
7782 echo "configure: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7785 eval "ac_cv_header_$ac_safe=no"
7789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7790 echo "$ac_t""yes" 1>&6
7791 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7792 echo "configure:7793: checking for main in -lasound" >&5
7793 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7797 ac_save_LIBS="$LIBS"
7798 LIBS="-lasound $LIBS"
7799 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure"
7801 #include "confdefs.h"
7807 if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7809 eval "ac_cv_lib_$ac_lib_var=yes"
7811 echo "configure: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7814 eval "ac_cv_lib_$ac_lib_var=no"
7817 LIBS="$ac_save_LIBS"
7820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7821 echo "$ac_t""yes" 1>&6
7824 echo "$ac_t""no" 1>&6
7829 echo "$ac_t""no" 1>&6
7833 if test x$have_alsa = xtrue
7835 PLUGINS="${PLUGINS} alsa"
7836 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7842 # Check whether --enable-waveout or --disable-waveout was given.
7843 if test "${enable_waveout+set}" = set; then
7844 enableval="$enable_waveout"
7848 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7850 PLUGINS="${PLUGINS} waveout"
7851 waveout_LDFLAGS="-lwinmm"
7855 # Check whether --with- or --without- was given.
7856 if test "${with_+set}" = set; then
7862 # Check whether --enable-gtk or --disable-gtk was given.
7863 if test "${enable_gtk+set}" = set; then
7864 enableval="$enable_gtk"
7868 if test x$enable_gtk != xno
7871 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7872 if test "${with_gtk_config_path+set}" = set; then
7873 withval="$with_gtk_config_path"
7874 if test "x$with_gtk_config_path" != "xno"
7876 GTK_PATH="$with_gtk_config_path:$PATH"
7880 # look for gtk-config
7881 # Extract the first word of "gtk12-config", so it can be a program name with args.
7882 set dummy gtk12-config; ac_word=$2
7883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7884 echo "configure:7885: checking for $ac_word" >&5
7885 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7888 case "$GTK12_CONFIG" in
7890 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7893 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7897 ac_dummy="$GTK_PATH"
7898 for ac_dir in $ac_dummy; do
7899 test -z "$ac_dir" && ac_dir=.
7900 if test -f $ac_dir/$ac_word; then
7901 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7906 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7910 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7911 if test -n "$GTK12_CONFIG"; then
7912 echo "$ac_t""$GTK12_CONFIG" 1>&6
7914 echo "$ac_t""no" 1>&6
7917 GTK_CONFIG=${GTK12_CONFIG}
7918 if test x${GTK_CONFIG} = xno
7920 # Extract the first word of "gtk-config", so it can be a program name with args.
7921 set dummy gtk-config; ac_word=$2
7922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7923 echo "configure:7924: checking for $ac_word" >&5
7924 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7927 case "$GTK_CONFIG" in
7929 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7932 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7936 ac_dummy="$GTK_PATH"
7937 for ac_dir in $ac_dummy; do
7938 test -z "$ac_dir" && ac_dir=.
7939 if test -f $ac_dir/$ac_word; then
7940 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7945 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7949 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7950 if test -n "$GTK_CONFIG"; then
7951 echo "$ac_t""$GTK_CONFIG" 1>&6
7953 echo "$ac_t""no" 1>&6
7957 if test x${GTK_CONFIG} != xno
7959 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7961 { 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; }
7963 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7964 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7965 # now look for the gtk.h header
7966 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7967 ac_cv_gtk_headers=yes
7968 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7972 echo "configure:7973: checking for $ac_hdr" >&5
7973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7974 echo $ac_n "(cached) $ac_c" 1>&6
7976 cat > conftest.$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7982 { (eval echo configure:7983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7984 if test -z "$ac_err"; then
7986 eval "ac_cv_header_$ac_safe=yes"
7989 echo "configure: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7992 eval "ac_cv_header_$ac_safe=no"
7996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7997 echo "$ac_t""yes" 1>&6
7998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7999 cat >> confdefs.h <<EOF
8000 #define $ac_tr_hdr 1
8004 echo "$ac_t""no" 1>&6
8005 ac_cv_gtk_headers=no
8006 echo "Cannot find gtk development headers."
8011 if test "x$ac_cv_gtk_headers" = xyes
8013 PLUGINS="${PLUGINS} gtk"
8014 ALIASES="${ALIASES} gvlc"
8016 CPPFLAGS="$save_CPPFLAGS"
8020 # Check whether --enable-gnome or --disable-gnome was given.
8021 if test "${enable_gnome+set}" = set; then
8022 enableval="$enable_gnome"
8023 if test x$enable_gnome = xyes; then
8024 # look for gnome-config
8025 # Extract the first word of "gnome-config", so it can be a program name with args.
8026 set dummy gnome-config; ac_word=$2
8027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8028 echo "configure:8029: checking for $ac_word" >&5
8029 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8032 case "$GNOME_CONFIG" in
8034 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8037 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8042 for ac_dir in $ac_dummy; do
8043 test -z "$ac_dir" && ac_dir=.
8044 if test -f $ac_dir/$ac_word; then
8045 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8050 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8054 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8055 if test -n "$GNOME_CONFIG"; then
8056 echo "$ac_t""$GNOME_CONFIG" 1>&6
8058 echo "$ac_t""no" 1>&6
8061 if test -x ${GNOME_CONFIG}
8063 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8064 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8066 # now look for the gnome.h header
8067 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
8068 for ac_hdr in gnome.h
8070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8072 echo "configure:8073: checking for $ac_hdr" >&5
8073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8076 cat > conftest.$ac_ext <<EOF
8077 #line 8078 "configure"
8078 #include "confdefs.h"
8081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8082 { (eval echo configure:8083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8084 if test -z "$ac_err"; then
8086 eval "ac_cv_header_$ac_safe=yes"
8089 echo "configure: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8092 eval "ac_cv_header_$ac_safe=no"
8096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8097 echo "$ac_t""yes" 1>&6
8098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8099 cat >> confdefs.h <<EOF
8100 #define $ac_tr_hdr 1
8103 PLUGINS="${PLUGINS} gnome"
8104 ALIASES="${ALIASES} gnome-vlc"
8107 echo "$ac_t""no" 1>&6
8108 { echo "configure: error: Can't find gnome headers. Please install the gnome
8109 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8114 CPPFLAGS="$save_CPPFLAGS"
8119 # Check whether --enable-qt or --disable-qt was given.
8120 if test "${enable_qt+set}" = set; then
8121 enableval="$enable_qt"
8122 if test x$enable_qt = xyes; then
8123 PLUGINS="${PLUGINS} qt"
8124 ALIASES="${ALIASES} qvlc"
8125 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8126 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8127 if test -x ${QTDIR}/bin/moc
8129 MOC=${QTDIR}/bin/moc
8137 # Check whether --enable-kde or --disable-kde was given.
8138 if test "${enable_kde+set}" = set; then
8139 enableval="$enable_kde"
8140 if test x$enable_kde = xyes; then
8141 PLUGINS="${PLUGINS} kde"
8142 ALIASES="${ALIASES} kvlc"
8143 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8144 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8145 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8146 if test -x ${QTDIR}/bin/moc
8148 MOC=${QTDIR}/bin/moc
8156 # Check whether --enable-macosx or --disable-macosx was given.
8157 if test "${enable_macosx+set}" = set; then
8158 enableval="$enable_macosx"
8159 if test x$enable_macosx = xyes
8161 BUILTINS="${BUILTINS} macosx"
8162 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8165 for ac_hdr in Cocoa/Cocoa.h
8167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8169 echo "configure:8170: checking for $ac_hdr" >&5
8170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8173 cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8179 { (eval echo configure:8180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8181 if test -z "$ac_err"; then
8183 eval "ac_cv_header_$ac_safe=yes"
8186 echo "configure: failed program was:" >&5
8187 cat conftest.$ac_ext >&5
8189 eval "ac_cv_header_$ac_safe=no"
8193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8194 echo "$ac_t""yes" 1>&6
8195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8196 cat >> confdefs.h <<EOF
8197 #define $ac_tr_hdr 1
8199 BUILTINS="${BUILTINS} macosx"
8200 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8203 echo "$ac_t""no" 1>&6
8210 # Check whether --enable-qnx or --disable-qnx was given.
8211 if test "${enable_qnx+set}" = set; then
8212 enableval="$enable_qnx"
8216 if test x$enable_qnx != xno
8220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8222 echo "configure:8223: checking for $ac_hdr" >&5
8223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8226 cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8232 { (eval echo configure:8233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8234 if test -z "$ac_err"; then
8236 eval "ac_cv_header_$ac_safe=yes"
8239 echo "configure: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8242 eval "ac_cv_header_$ac_safe=no"
8246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8247 echo "$ac_t""yes" 1>&6
8248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8249 cat >> confdefs.h <<EOF
8250 #define $ac_tr_hdr 1
8253 PLUGINS="${PLUGINS} qnx"
8254 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8257 echo "$ac_t""no" 1>&6
8263 # Check whether --enable-intfwin or --disable-intfwin was given.
8264 if test "${enable_intfwin+set}" = set; then
8265 enableval="$enable_intfwin"
8266 if test "x$enable_intfwin" != "xno"
8268 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8269 if test "${with_bcbuilder+set}" = set; then
8270 withval="$with_bcbuilder"
8274 if test "x$with_bcbuilder" != "x"
8276 BCBUILDER="$with_bcbuilder"
8278 PLUGINS="${PLUGINS} intfwin"
8283 # Check whether --enable-ncurses or --disable-ncurses was given.
8284 if test "${enable_ncurses+set}" = set; then
8285 enableval="$enable_ncurses"
8286 if test x$enable_ncurses = xyes; then
8287 PLUGINS="${PLUGINS} ncurses"
8288 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8293 # Check whether --enable-xosd or --disable-xosd was given.
8294 if test "${enable_xosd+set}" = set; then
8295 enableval="$enable_xosd"
8299 if test x$enable_xosd = xyes
8301 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8302 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8303 echo "configure:8304: checking for xosd.h" >&5
8304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8305 echo $ac_n "(cached) $ac_c" 1>&6
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8313 { (eval echo configure:8314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8315 if test -z "$ac_err"; then
8317 eval "ac_cv_header_$ac_safe=yes"
8320 echo "configure: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8323 eval "ac_cv_header_$ac_safe=no"
8327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8328 echo "$ac_t""yes" 1>&6
8331 echo "$ac_t""no" 1>&6
8335 if test x$have_xosd = xtrue
8337 PLUGINS="${PLUGINS} xosd"
8338 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8342 # Check whether --enable-lirc or --disable-lirc was given.
8343 if test "${enable_lirc+set}" = set; then
8344 enableval="$enable_lirc"
8348 if test x$enable_lirc = xyes
8350 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8351 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8352 echo "configure:8353: checking for lirc/lirc_client.h" >&5
8353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8354 echo $ac_n "(cached) $ac_c" 1>&6
8356 cat > conftest.$ac_ext <<EOF
8357 #line 8358 "configure"
8358 #include "confdefs.h"
8359 #include <lirc/lirc_client.h>
8361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8362 { (eval echo configure:8363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8364 if test -z "$ac_err"; then
8366 eval "ac_cv_header_$ac_safe=yes"
8369 echo "configure: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8372 eval "ac_cv_header_$ac_safe=no"
8376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8377 echo "$ac_t""yes" 1>&6
8378 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8379 echo "configure:8380: checking for lirc_init in -llirc_client" >&5
8380 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8382 echo $ac_n "(cached) $ac_c" 1>&6
8384 ac_save_LIBS="$LIBS"
8385 LIBS="-llirc_client $LIBS"
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 /* Override any gcc2 internal prototype to avoid an error. */
8390 /* We use char because int might match the return type of a gcc2
8391 builtin and then its argument prototype would still apply. */
8398 if { (eval echo configure:8399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8400 eval "ac_cv_lib_$ac_lib_var=yes"
8402 echo "configure: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8405 eval "ac_cv_lib_$ac_lib_var=no"
8408 LIBS="$ac_save_LIBS"
8411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8412 echo "$ac_t""yes" 1>&6
8415 echo "$ac_t""no" 1>&6
8420 echo "$ac_t""no" 1>&6
8424 if test x$have_lirc = xtrue
8426 PLUGINS="${PLUGINS} lirc"
8427 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8431 # Check whether --with- or --without- was given.
8432 if test "${with_+set}" = set; then
8438 # Check whether --with-words or --without-words was given.
8439 if test "${with_words+set}" = set; then
8440 withval="$with_words"
8444 case "x$with_words" in
8446 ac_cv_c_bigendian=yes
8449 ac_cv_c_bigendian=no
8452 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8453 echo "configure:8454: checking whether the byte order is big-endian" >&5
8454 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8455 echo $ac_n "(cached) $ac_c" 1>&6
8457 ac_cv_c_bigendian=unknown
8458 cat >conftest.c <<EOF
8459 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8460 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8461 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8462 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8463 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8464 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8465 int main(void) { _a(); _e(); return 0; }
8468 if test -f conftest.c
8470 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8471 && test -f conftest.o
8473 if test "`strings conftest.o | grep BIGenDianSyS`"
8475 ac_cv_c_bigendian=yes
8477 if test "`strings conftest.o | grep LiTTleEnDian`"
8479 ac_cv_c_bigendian=no
8486 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8487 if test x$ac_cv_c_bigendian = xunknown
8489 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8493 if test $ac_cv_c_bigendian = yes
8495 cat >> confdefs.h <<\EOF
8496 #define WORDS_BIGENDIAN 1
8504 # Check whether --enable-gprof or --disable-gprof was given.
8505 if test "${enable_gprof+set}" = set; then
8506 enableval="$enable_gprof"
8507 if test "x$enable_gprof" = "xyes"
8517 # Check whether --enable-cprof or --disable-cprof was given.
8518 if test "${enable_cprof+set}" = set; then
8519 enableval="$enable_cprof"
8520 if test "x$enable_cprof" = "xyes"
8522 LDFLAGS="${LDFLAGS} -lcprof"
8530 # Check whether --enable-pth or --disable-pth was given.
8531 if test "${enable_pth+set}" = set; then
8532 enableval="$enable_pth"
8533 if test "x$enable_pth" = "xyes"; then
8534 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8535 echo "configure:8536: checking for pth_init in -lpth" >&5
8536 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8538 echo $ac_n "(cached) $ac_c" 1>&6
8540 ac_save_LIBS="$LIBS"
8542 cat > conftest.$ac_ext <<EOF
8543 #line 8544 "configure"
8544 #include "confdefs.h"
8545 /* Override any gcc2 internal prototype to avoid an error. */
8546 /* We use char because int might match the return type of a gcc2
8547 builtin and then its argument prototype would still apply. */
8554 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8556 eval "ac_cv_lib_$ac_lib_var=yes"
8558 echo "configure: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8561 eval "ac_cv_lib_$ac_lib_var=no"
8564 LIBS="$ac_save_LIBS"
8567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8568 echo "$ac_t""yes" 1>&6
8569 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8570 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8571 cat >> confdefs.h <<EOF
8572 #define $ac_tr_lib 1
8578 echo "$ac_t""no" 1>&6
8581 cat > conftest.$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8587 egrep "pth_init" >/dev/null 2>&1; then
8590 cat >> confdefs.h <<\EOF
8591 #define PTH_INIT_IN_PTH_H 1
8603 # Check whether --enable-st or --disable-st was given.
8604 if test "${enable_st+set}" = set; then
8605 enableval="$enable_st"
8606 if test "x$enable_st" = "xyes"; then
8607 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8608 echo "configure:8609: checking for st_init in -lst" >&5
8609 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8613 ac_save_LIBS="$LIBS"
8615 cat > conftest.$ac_ext <<EOF
8616 #line 8617 "configure"
8617 #include "confdefs.h"
8618 /* Override any gcc2 internal prototype to avoid an error. */
8619 /* We use char because int might match the return type of a gcc2
8620 builtin and then its argument prototype would still apply. */
8627 if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8629 eval "ac_cv_lib_$ac_lib_var=yes"
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8634 eval "ac_cv_lib_$ac_lib_var=no"
8637 LIBS="$ac_save_LIBS"
8640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8641 echo "$ac_t""yes" 1>&6
8642 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8644 cat >> confdefs.h <<EOF
8645 #define $ac_tr_lib 1
8651 echo "$ac_t""no" 1>&6
8654 cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure"
8656 #include "confdefs.h"
8659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660 egrep "st_init" >/dev/null 2>&1; then
8663 cat >> confdefs.h <<\EOF
8664 #define ST_INIT_IN_ST_H 1
8676 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8677 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8679 # Check whether --enable-plugins or --disable-plugins was given.
8680 if test "${enable_plugins+set}" = set; then
8681 enableval="$enable_plugins"
8682 if test x$enable_plugins = xno
8684 BUILTINS="${BUILTINS} ${PLUGINS}"
8690 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8692 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8694 BUILTINS="${BUILTINS} ${PLUGINS}"
8698 cat >> confdefs.h <<EOF
8699 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8702 cat >> confdefs.h <<EOF
8703 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8706 cat >> confdefs.h <<EOF
8707 #define CONFIGURE_LINE "$CONFIGURE_LINE"
8711 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8712 cat >> confdefs.h <<EOF
8713 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8716 cat >> confdefs.h <<EOF
8717 #define MODULE_SYMBOL $VLC_SYMBOL
8721 DATA_PATH="${ac_tool_prefix}/share/videolan"
8723 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8726 CPPFLAGS="${save_CPPFLAGS}"
8727 CFLAGS="${save_CFLAGS}"
8728 LDFLAGS="${save_LDFLAGS}"
8828 cat > confcache <<\EOF
8829 # This file is a shell script that caches the results of configure
8830 # tests run on this system so they can be shared between configure
8831 # scripts and configure runs. It is not useful on other systems.
8832 # If it contains results you don't want to keep, you may remove or edit it.
8834 # By default, configure uses ./config.cache as the cache file,
8835 # creating it if it does not exist already. You can give configure
8836 # the --cache-file=FILE option to use a different cache file; that is
8837 # what configure does when it calls configure scripts in
8838 # subdirectories, so they share the cache.
8839 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8840 # config.status only pays attention to the cache file if you give it the
8841 # --recheck option to rerun configure.
8844 # The following way of writing the cache mishandles newlines in values,
8845 # but we know of no workaround that is simple, portable, and efficient.
8846 # So, don't put newlines in cache variables' values.
8847 # Ultrix sh set writes to stderr and can't be redirected directly,
8848 # and sets the high bit in the cache file unless we assign to the vars.
8850 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8852 # `set' does not quote correctly, so add quotes (double-quote substitution
8853 # turns \\\\ into \\, and sed turns \\ into \).
8855 -e "s/'/'\\\\''/g" \
8856 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8859 # `set' quotes correctly as required by POSIX, so do not add quotes.
8860 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8863 if cmp -s $cache_file confcache; then
8866 if test -w $cache_file; then
8867 echo "updating cache $cache_file"
8868 cat confcache > $cache_file
8870 echo "not updating unwritable cache $cache_file"
8875 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8877 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8878 # Let make expand exec_prefix.
8879 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8881 # Any assignment to VPATH causes Sun make to only execute
8882 # the first set of double-colon rules, so remove it if not needed.
8883 # If there is a colon in the path, we need to keep it.
8884 if test "x$srcdir" = x.; then
8885 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8888 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8890 DEFS=-DHAVE_CONFIG_H
8892 # Without the "./", some shells look in PATH for config.status.
8893 : ${CONFIG_STATUS=./config.status}
8895 echo creating $CONFIG_STATUS
8896 rm -f $CONFIG_STATUS
8897 cat > $CONFIG_STATUS <<EOF
8899 # Generated automatically by configure.
8900 # Run this file to recreate the current configuration.
8901 # This directory was configured as follows,
8902 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8904 # $0 $ac_configure_args
8906 # Compiler output produced by configure, useful for debugging
8907 # configure, is in ./config.log if it exists.
8909 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8912 case "\$ac_option" in
8913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8914 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8915 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8916 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8917 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8919 -help | --help | --hel | --he | --h)
8920 echo "\$ac_cs_usage"; exit 0 ;;
8921 *) echo "\$ac_cs_usage"; exit 1 ;;
8925 ac_given_srcdir=$srcdir
8926 ac_given_INSTALL="$INSTALL"
8928 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8930 cat >> $CONFIG_STATUS <<EOF
8932 # Protect against being on the right side of a sed subst in config.status.
8933 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8934 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8938 s%@CFLAGS@%$CFLAGS%g
8939 s%@CPPFLAGS@%$CPPFLAGS%g
8940 s%@CXXFLAGS@%$CXXFLAGS%g
8941 s%@FFLAGS@%$FFLAGS%g
8943 s%@LDFLAGS@%$LDFLAGS%g
8945 s%@exec_prefix@%$exec_prefix%g
8946 s%@prefix@%$prefix%g
8947 s%@program_transform_name@%$program_transform_name%g
8948 s%@bindir@%$bindir%g
8949 s%@sbindir@%$sbindir%g
8950 s%@libexecdir@%$libexecdir%g
8951 s%@datadir@%$datadir%g
8952 s%@sysconfdir@%$sysconfdir%g
8953 s%@sharedstatedir@%$sharedstatedir%g
8954 s%@localstatedir@%$localstatedir%g
8955 s%@libdir@%$libdir%g
8956 s%@includedir@%$includedir%g
8957 s%@oldincludedir@%$oldincludedir%g
8958 s%@infodir@%$infodir%g
8959 s%@mandir@%$mandir%g
8961 s%@host_alias@%$host_alias%g
8962 s%@host_cpu@%$host_cpu%g
8963 s%@host_vendor@%$host_vendor%g
8964 s%@host_os@%$host_os%g
8965 s%@target@%$target%g
8966 s%@target_alias@%$target_alias%g
8967 s%@target_cpu@%$target_cpu%g
8968 s%@target_vendor@%$target_vendor%g
8969 s%@target_os@%$target_os%g
8971 s%@build_alias@%$build_alias%g
8972 s%@build_cpu@%$build_cpu%g
8973 s%@build_vendor@%$build_vendor%g
8974 s%@build_os@%$build_os%g
8975 s%@SET_MAKE@%$SET_MAKE%g
8978 s%@RANLIB@%$RANLIB%g
8981 s%@ALLOCA@%$ALLOCA%g
8982 s%@GLIBC21@%$GLIBC21%g
8983 s%@LIBICONV@%$LIBICONV%g
8984 s%@USE_NLS@%$USE_NLS%g
8985 s%@MSGFMT@%$MSGFMT%g
8986 s%@GMSGFMT@%$GMSGFMT%g
8987 s%@XGETTEXT@%$XGETTEXT%g
8988 s%@INTLBISON@%$INTLBISON%g
8989 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8990 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8991 s%@CATALOGS@%$CATALOGS%g
8992 s%@CATOBJEXT@%$CATOBJEXT%g
8993 s%@GMOFILES@%$GMOFILES%g
8994 s%@INTLLIBS@%$INTLLIBS%g
8995 s%@INTLOBJS@%$INTLOBJS%g
8996 s%@POFILES@%$POFILES%g
8998 s%@DATADIRNAME@%$DATADIRNAME%g
8999 s%@INSTOBJEXT@%$INSTOBJEXT%g
9000 s%@GENCAT@%$GENCAT%g
9001 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9002 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9003 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9004 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9005 s%@INSTALL_DATA@%$INSTALL_DATA%g
9006 s%@WINDRES@%$WINDRES%g
9007 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9008 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9009 s%@SDL_CONFIG@%$SDL_CONFIG%g
9010 s%@ESD_CONFIG@%$ESD_CONFIG%g
9011 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9012 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9013 s%@GTK_CONFIG@%$GTK_CONFIG%g
9014 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9015 s%@DATA_PATH@%$DATA_PATH%g
9016 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9019 s%@PLUGINS@%$PLUGINS%g
9020 s%@BUILTINS@%$BUILTINS%g
9021 s%@ALIASES@%$ALIASES%g
9026 s%@OPTIMS@%$OPTIMS%g
9027 s%@TUNING@%$TUNING%g
9028 s%@RELEASE@%$RELEASE%g
9030 s%@BCBUILDER@%$BCBUILDER%g
9031 s%@PACKAGE@%$PACKAGE%g
9032 s%@VERSION@%$VERSION%g
9033 s%@NEED_GETOPT@%$NEED_GETOPT%g
9034 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9035 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9036 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9037 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9038 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9039 s%@a52_CFLAGS@%$a52_CFLAGS%g
9040 s%@arts_CFLAGS@%$arts_CFLAGS%g
9041 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
9042 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9043 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9044 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9045 s%@directx_CFLAGS@%$directx_CFLAGS%g
9046 s%@esd_CFLAGS@%$esd_CFLAGS%g
9047 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9048 s%@glide_CFLAGS@%$glide_CFLAGS%g
9049 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9050 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9051 s%@kde_CFLAGS@%$kde_CFLAGS%g
9052 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9053 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9054 s%@mad_CFLAGS@%$mad_CFLAGS%g
9055 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9056 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9057 s%@qt_CFLAGS@%$qt_CFLAGS%g
9058 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9059 s%@x11_CFLAGS@%$x11_CFLAGS%g
9060 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9061 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9062 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9063 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9064 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9065 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9066 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9067 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9068 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9069 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9070 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9071 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9072 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9073 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9074 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9075 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9076 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9077 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9078 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9079 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9080 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9081 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9082 s%@http_LDFLAGS@%$http_LDFLAGS%g
9083 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9084 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9085 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9086 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9087 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9088 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9089 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9090 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9091 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9092 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9093 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9094 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9095 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9096 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9097 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9098 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9099 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9100 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9101 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9102 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9103 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9104 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9105 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9110 cat >> $CONFIG_STATUS <<\EOF
9112 # Split the substitutions into bite-sized pieces for seds with
9113 # small command number limits, like on Digital OSF/1 and HP-UX.
9114 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9115 ac_file=1 # Number of current file.
9116 ac_beg=1 # First line for current file.
9117 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9120 while $ac_more_lines; do
9121 if test $ac_beg -gt 1; then
9122 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9124 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9126 if test ! -s conftest.s$ac_file; then
9128 rm -f conftest.s$ac_file
9130 if test -z "$ac_sed_cmds"; then
9131 ac_sed_cmds="sed -f conftest.s$ac_file"
9133 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9135 ac_file=`expr $ac_file + 1`
9137 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9140 if test -z "$ac_sed_cmds"; then
9145 cat >> $CONFIG_STATUS <<EOF
9147 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9149 cat >> $CONFIG_STATUS <<\EOF
9150 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9151 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9153 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9154 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9155 *) ac_file_in="${ac_file}.in" ;;
9158 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9160 # Remove last slash and all that follows it. Not all systems have dirname.
9161 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9162 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9163 # The file is in a subdirectory.
9164 test ! -d "$ac_dir" && mkdir "$ac_dir"
9165 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9166 # A "../" for each directory in $ac_dir_suffix.
9167 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9169 ac_dir_suffix= ac_dots=
9172 case "$ac_given_srcdir" in
9174 if test -z "$ac_dots"; then top_srcdir=.
9175 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9176 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9178 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9179 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9182 case "$ac_given_INSTALL" in
9183 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9184 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9187 echo creating "$ac_file"
9189 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9191 *Makefile*) ac_comsub="1i\\
9192 # $configure_input" ;;
9196 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9198 s%@configure_input@%$configure_input%g
9199 s%@srcdir@%$srcdir%g
9200 s%@top_srcdir@%$top_srcdir%g
9201 s%@INSTALL@%$INSTALL%g
9202 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9206 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9207 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9209 # ac_d sets the value in "#define NAME VALUE" lines.
9210 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9211 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9214 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9215 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9216 ac_uB='\([ ]\)%\1#\2define\3'
9219 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9220 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9221 ac_eB='$%\1#\2define\3'
9225 if test "${CONFIG_HEADERS+set}" != set; then
9227 cat >> $CONFIG_STATUS <<EOF
9228 CONFIG_HEADERS="include/defs.h"
9230 cat >> $CONFIG_STATUS <<\EOF
9232 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9235 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9236 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9237 *) ac_file_in="${ac_file}.in" ;;
9240 echo creating $ac_file
9242 rm -f conftest.frag conftest.in conftest.out
9243 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9244 cat $ac_file_inputs > conftest.in
9248 # Transform confdefs.h into a sed script conftest.vals that substitutes
9249 # the proper values into config.h.in to produce config.h. And first:
9250 # Protect against being on the right side of a sed subst in config.status.
9251 # Protect against being in an unquoted here document in config.status.
9253 cat > conftest.hdr <<\EOF
9256 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9260 sed -n -f conftest.hdr confdefs.h > conftest.vals
9263 # This sed command replaces #undef with comments. This is necessary, for
9264 # example, in the case of _POSIX_SOURCE, which is predefined and required
9265 # on some systems where configure will not decide to define it.
9266 cat >> conftest.vals <<\EOF
9267 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9270 # Break up conftest.vals because some shells have a limit on
9271 # the size of here documents, and old seds have small limits too.
9276 ac_lines=`grep -c . conftest.vals`
9277 # grep -c gives empty output for an empty file on some AIX systems.
9278 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9279 # Write a limited-size here document to conftest.frag.
9280 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9281 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9283 sed -f conftest.frag conftest.in > conftest.out
9285 mv conftest.out conftest.in
9287 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9289 mv conftest.tail conftest.vals
9293 cat >> $CONFIG_STATUS <<\EOF
9294 rm -f conftest.frag conftest.h
9295 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9296 cat conftest.in >> conftest.h
9298 if cmp -s $ac_file conftest.h 2>/dev/null; then
9299 echo "$ac_file is unchanged"
9302 # Remove last slash and all that follows it. Not all systems have dirname.
9303 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9304 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9305 # The file is in a subdirectory.
9306 test ! -d "$ac_dir" && mkdir "$ac_dir"
9309 mv conftest.h $ac_file
9314 cat >> $CONFIG_STATUS <<EOF
9318 cat >> $CONFIG_STATUS <<\EOF
9319 for ac_file in $CONFIG_FILES; do
9320 # Support "outfile[:infile[:infile...]]"
9322 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9324 # PO directories have a Makefile.in generated from Makefile.in.in.
9325 case "$ac_file" in */Makefile.in)
9326 # Adjust a relative srcdir.
9327 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9328 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9329 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9330 # In autoconf-2.13 it is called $ac_given_srcdir.
9331 # In autoconf-2.50 it is called $srcdir.
9332 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9333 case "$ac_given_srcdir" in
9334 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9335 /*) top_srcdir="$ac_given_srcdir" ;;
9336 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9338 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9339 rm -f "$ac_dir/POTFILES"
9340 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9341 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9342 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9343 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9351 chmod +x $CONFIG_STATUS
9352 rm -fr confdefs* $ac_clean_files
9353 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9358 --------------------
9359 vlc version : ${VERSION}
9361 architecture : ${ARCH}
9362 optimizations : ${OPTIMS}
9364 debug mode : ${DEBUG}
9365 release : ${RELEASE}
9366 profiling : ${PROFILING}
9367 need builtin getopt : ${NEED_GETOPT}
9368 built-in modules :${BUILTINS}
9369 plug-in modules :${PLUGINS}
9370 vlc aliases :${ALIASES}
9372 You may now tune Makefile.opts at your convenience, for instance to choose
9373 which modules get compiled as plugins.
9375 To build vlc and its plugins, type \`$VLC_MAKE'.