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 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
160 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
162 # Initialize some variables set by options.
163 # The variables have the same names as the options, with
164 # dashes changed to underlines.
166 cache_file=./config.cache
175 program_transform_name=s,x,x,
183 bindir='${exec_prefix}/bin'
184 sbindir='${exec_prefix}/sbin'
185 libexecdir='${exec_prefix}/libexec'
186 datadir='${prefix}/share'
187 sysconfdir='${prefix}/etc'
188 sharedstatedir='${prefix}/com'
189 localstatedir='${prefix}/var'
190 libdir='${exec_prefix}/lib'
191 includedir='${prefix}/include'
192 oldincludedir='/usr/include'
193 infodir='${prefix}/info'
194 mandir='${prefix}/man'
196 # Initialize some other variables.
199 SHELL=${CONFIG_SHELL-/bin/sh}
200 # Maximum number of lines to put in a shell here document.
207 # If the previous option needs an argument, assign it.
208 if test -n "$ac_prev"; then
209 eval "$ac_prev=\$ac_option"
215 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
219 # Accept the important Cygnus configure options, so we can diagnose typos.
223 -bindir | --bindir | --bindi | --bind | --bin | --bi)
225 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
226 bindir="$ac_optarg" ;;
228 -build | --build | --buil | --bui | --bu)
230 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
231 build="$ac_optarg" ;;
233 -cache-file | --cache-file | --cache-fil | --cache-fi \
234 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
235 ac_prev=cache_file ;;
236 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
237 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
238 cache_file="$ac_optarg" ;;
240 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
242 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
244 datadir="$ac_optarg" ;;
246 -disable-* | --disable-*)
247 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
248 # Reject names that are not valid shell variable names.
249 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
250 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
252 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
253 eval "enable_${ac_feature}=no" ;;
255 -enable-* | --enable-*)
256 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
257 # Reject names that are not valid shell variable names.
258 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
259 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
261 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
266 eval "enable_${ac_feature}='$ac_optarg'" ;;
268 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
269 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
270 | --exec | --exe | --ex)
271 ac_prev=exec_prefix ;;
272 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
273 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
274 | --exec=* | --exe=* | --ex=*)
275 exec_prefix="$ac_optarg" ;;
277 -gas | --gas | --ga | --g)
278 # Obsolete; use --with-gas.
281 -help | --help | --hel | --he)
282 # Omit some internal or obsolete options to make the list less imposing.
283 # This message is too long to be a string in the A/UX 3.1 sh.
285 Usage: configure [options] [host]
286 Options: [defaults in brackets after descriptions]
288 --cache-file=FILE cache test results in FILE
289 --help print this message
290 --no-create do not create output files
291 --quiet, --silent do not print \`checking...' messages
292 --version print the version of autoconf that created configure
293 Directory and file names:
294 --prefix=PREFIX install architecture-independent files in PREFIX
296 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
298 --bindir=DIR user executables in DIR [EPREFIX/bin]
299 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
300 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
301 --datadir=DIR read-only architecture-independent data in DIR
303 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
304 --sharedstatedir=DIR modifiable architecture-independent data in DIR
306 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
307 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
308 --includedir=DIR C header files in DIR [PREFIX/include]
309 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
310 --infodir=DIR info documentation in DIR [PREFIX/info]
311 --mandir=DIR man documentation in DIR [PREFIX/man]
312 --srcdir=DIR find the sources in DIR [configure dir or ..]
313 --program-prefix=PREFIX prepend PREFIX to installed program names
314 --program-suffix=SUFFIX append SUFFIX to installed program names
315 --program-transform-name=PROGRAM
316 run sed PROGRAM on installed program names
320 --build=BUILD configure for building on BUILD [BUILD=HOST]
321 --host=HOST configure for HOST [guessed]
322 --target=TARGET configure for TARGET [TARGET=HOST]
323 Features and packages:
324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
328 --x-includes=DIR X include files are in DIR
329 --x-libraries=DIR X library files are in DIR
331 if test -n "$ac_help"; then
332 echo "--enable and --with options recognized:$ac_help"
336 -host | --host | --hos | --ho)
338 -host=* | --host=* | --hos=* | --ho=*)
341 -includedir | --includedir | --includedi | --included | --include \
342 | --includ | --inclu | --incl | --inc)
343 ac_prev=includedir ;;
344 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
345 | --includ=* | --inclu=* | --incl=* | --inc=*)
346 includedir="$ac_optarg" ;;
348 -infodir | --infodir | --infodi | --infod | --info | --inf)
350 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
351 infodir="$ac_optarg" ;;
353 -libdir | --libdir | --libdi | --libd)
355 -libdir=* | --libdir=* | --libdi=* | --libd=*)
356 libdir="$ac_optarg" ;;
358 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
359 | --libexe | --libex | --libe)
360 ac_prev=libexecdir ;;
361 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
362 | --libexe=* | --libex=* | --libe=*)
363 libexecdir="$ac_optarg" ;;
365 -localstatedir | --localstatedir | --localstatedi | --localstated \
366 | --localstate | --localstat | --localsta | --localst \
367 | --locals | --local | --loca | --loc | --lo)
368 ac_prev=localstatedir ;;
369 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
370 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
371 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
372 localstatedir="$ac_optarg" ;;
374 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
376 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
377 mandir="$ac_optarg" ;;
380 # Obsolete; use --without-fp.
383 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
387 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
388 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
391 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
392 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
393 | --oldin | --oldi | --old | --ol | --o)
394 ac_prev=oldincludedir ;;
395 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
396 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
397 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
398 oldincludedir="$ac_optarg" ;;
400 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
402 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
403 prefix="$ac_optarg" ;;
405 -program-prefix | --program-prefix | --program-prefi | --program-pref \
406 | --program-pre | --program-pr | --program-p)
407 ac_prev=program_prefix ;;
408 -program-prefix=* | --program-prefix=* | --program-prefi=* \
409 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
410 program_prefix="$ac_optarg" ;;
412 -program-suffix | --program-suffix | --program-suffi | --program-suff \
413 | --program-suf | --program-su | --program-s)
414 ac_prev=program_suffix ;;
415 -program-suffix=* | --program-suffix=* | --program-suffi=* \
416 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
417 program_suffix="$ac_optarg" ;;
419 -program-transform-name | --program-transform-name \
420 | --program-transform-nam | --program-transform-na \
421 | --program-transform-n | --program-transform- \
422 | --program-transform | --program-transfor \
423 | --program-transfo | --program-transf \
424 | --program-trans | --program-tran \
425 | --progr-tra | --program-tr | --program-t)
426 ac_prev=program_transform_name ;;
427 -program-transform-name=* | --program-transform-name=* \
428 | --program-transform-nam=* | --program-transform-na=* \
429 | --program-transform-n=* | --program-transform-=* \
430 | --program-transform=* | --program-transfor=* \
431 | --program-transfo=* | --program-transf=* \
432 | --program-trans=* | --program-tran=* \
433 | --progr-tra=* | --program-tr=* | --program-t=*)
434 program_transform_name="$ac_optarg" ;;
436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
437 | -silent | --silent | --silen | --sile | --sil)
440 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
442 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
444 sbindir="$ac_optarg" ;;
446 -sharedstatedir | --sharedstatedir | --sharedstatedi \
447 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
448 | --sharedst | --shareds | --shared | --share | --shar \
450 ac_prev=sharedstatedir ;;
451 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
452 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
453 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
455 sharedstatedir="$ac_optarg" ;;
457 -site | --site | --sit)
459 -site=* | --site=* | --sit=*)
462 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
464 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
465 srcdir="$ac_optarg" ;;
467 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
468 | --syscon | --sysco | --sysc | --sys | --sy)
469 ac_prev=sysconfdir ;;
470 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
471 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
472 sysconfdir="$ac_optarg" ;;
474 -target | --target | --targe | --targ | --tar | --ta | --t)
476 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
477 target="$ac_optarg" ;;
479 -v | -verbose | --verbose | --verbos | --verbo | --verb)
482 -version | --version | --versio | --versi | --vers)
483 echo "configure generated by autoconf version 2.13"
487 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
488 # Reject names that are not valid shell variable names.
489 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
490 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
492 ac_package=`echo $ac_package| sed 's/-/_/g'`
497 eval "with_${ac_package}='$ac_optarg'" ;;
499 -without-* | --without-*)
500 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
501 # Reject names that are not valid shell variable names.
502 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
503 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
505 ac_package=`echo $ac_package| sed 's/-/_/g'`
506 eval "with_${ac_package}=no" ;;
509 # Obsolete; use --with-x.
512 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
513 | --x-incl | --x-inc | --x-in | --x-i)
514 ac_prev=x_includes ;;
515 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
516 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
517 x_includes="$ac_optarg" ;;
519 -x-libraries | --x-libraries | --x-librarie | --x-librari \
520 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
521 ac_prev=x_libraries ;;
522 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
523 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
524 x_libraries="$ac_optarg" ;;
526 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
530 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
531 echo "configure: warning: $ac_option: invalid host type" 1>&2
533 if test "x$nonopt" != xNONE; then
534 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
542 if test -n "$ac_prev"; then
543 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
546 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
548 # File descriptor usage:
551 # 2 errors and warnings
552 # 3 some systems may open it to /dev/tty
553 # 4 used on the Kubota Titan
554 # 6 checking for... messages and results
555 # 5 compiler messages saved in config.log
556 if test "$silent" = yes; then
564 This file contains any messages produced by compilers while
565 running configure, to aid debugging if configure makes a mistake.
568 # Strip out --no-create and --no-recursion so they do not pile up.
569 # Also quote any args containing shell metacharacters.
574 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
575 | --no-cr | --no-c) ;;
576 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
577 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
578 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
579 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
580 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
585 # Only set these to C if already set. These must not be set unconditionally
586 # because not all systems understand e.g. LANG=C (notably SCO).
587 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
588 # Non-C LC_CTYPE values break the ctype check.
589 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
590 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
591 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
592 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
594 # confdefs.h avoids OS command line length limits that DEFS can exceed.
595 rm -rf conftest* confdefs.h
596 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
599 # A filename unique to this package, relative to the directory that
600 # configure is in, which we can look for to find out if srcdir is correct.
601 ac_unique_file=include/main.h
603 # Find the source files, if location was not specified.
604 if test -z "$srcdir"; then
605 ac_srcdir_defaulted=yes
606 # Try the directory containing this script, then its parent.
608 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
609 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
611 if test ! -r $srcdir/$ac_unique_file; then
615 ac_srcdir_defaulted=no
617 if test ! -r $srcdir/$ac_unique_file; then
618 if test "$ac_srcdir_defaulted" = yes; then
619 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
621 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
624 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
626 # Prefer explicitly selected file to automatically selected ones.
627 if test -z "$CONFIG_SITE"; then
628 if test "x$prefix" != xNONE; then
629 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
631 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
634 for ac_site_file in $CONFIG_SITE; do
635 if test -r "$ac_site_file"; then
636 echo "loading site script $ac_site_file"
641 if test -r "$cache_file"; then
642 echo "loading cache $cache_file"
645 echo "creating cache $cache_file"
650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
651 ac_cpp='$CPP $CPPFLAGS'
652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
654 cross_compiling=$ac_cv_prog_cc_cross
658 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
659 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
660 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
667 ac_n= ac_c='\c' ac_t=
673 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
674 if test -f $ac_dir/install-sh; then
676 ac_install_sh="$ac_aux_dir/install-sh -c"
678 elif test -f $ac_dir/install.sh; then
680 ac_install_sh="$ac_aux_dir/install.sh -c"
684 if test -z "$ac_aux_dir"; then
685 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
687 ac_config_guess=$ac_aux_dir/config.guess
688 ac_config_sub=$ac_aux_dir/config.sub
689 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
692 # Do some error checking and defaulting for the host and target type.
694 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
697 # 1. You are not allowed to specify --host, --target, and nonopt at the
699 # 2. Host defaults to nonopt.
700 # 3. If nonopt is not specified, then host defaults to the current host,
701 # as determined by config.guess.
702 # 4. Target and build default to nonopt.
703 # 5. If nonopt is not specified, then target and build default to host.
705 # The aliases save the names the user supplied, while $host etc.
706 # will get canonicalized.
707 case $host---$target---$nonopt in
708 NONE---*---* | *---NONE---* | *---*---NONE) ;;
709 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
713 # Make sure we can run config.sub.
714 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
715 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
718 echo $ac_n "checking host system type""... $ac_c" 1>&6
719 echo "configure:720: checking host system type" >&5
722 case "$host_alias" in
726 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
727 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
729 *) host_alias=$nonopt ;;
733 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
734 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
735 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
736 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
737 echo "$ac_t""$host" 1>&6
739 echo $ac_n "checking target system type""... $ac_c" 1>&6
740 echo "configure:741: checking target system type" >&5
743 case "$target_alias" in
746 NONE) target_alias=$host_alias ;;
747 *) target_alias=$nonopt ;;
751 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
752 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
753 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
754 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
755 echo "$ac_t""$target" 1>&6
757 echo $ac_n "checking build system type""... $ac_c" 1>&6
758 echo "configure:759: checking build system type" >&5
761 case "$build_alias" in
764 NONE) build_alias=$host_alias ;;
765 *) build_alias=$nonopt ;;
769 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
770 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
771 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
772 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
773 echo "$ac_t""$build" 1>&6
775 test "$host_alias" != "$target_alias" &&
776 test "$program_prefix$program_suffix$program_transform_name" = \
778 program_prefix=${target_alias}-
781 CONFIGURE_LINE="$0 $*"
787 save_CPPFLAGS="${CPPFLAGS}"
788 save_CFLAGS="${CFLAGS}"
789 save_LDFLAGS="${LDFLAGS}"
791 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
792 echo "configure:793: checking whether ${MAKE-make} sets \${MAKE}" >&5
793 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
794 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 cat > conftestmake <<\EOF
799 @echo 'ac_maketemp="${MAKE}"'
801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
802 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
803 if test -n "$ac_maketemp"; then
804 eval ac_cv_prog_make_${ac_make}_set=yes
806 eval ac_cv_prog_make_${ac_make}_set=no
810 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
811 echo "$ac_t""yes" 1>&6
814 echo "$ac_t""no" 1>&6
815 SET_MAKE="MAKE=${MAKE-make}"
818 # Extract the first word of "gcc", so it can be a program name with args.
819 set dummy gcc; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 if test -n "$CC"; then
826 ac_cv_prog_CC="$CC" # Let the user override the test.
828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
830 for ac_dir in $ac_dummy; do
831 test -z "$ac_dir" && ac_dir=.
832 if test -f $ac_dir/$ac_word; then
841 if test -n "$CC"; then
842 echo "$ac_t""$CC" 1>&6
844 echo "$ac_t""no" 1>&6
847 if test -z "$CC"; then
848 # Extract the first word of "cc", so it can be a program name with args.
849 set dummy cc; ac_word=$2
850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851 echo "configure:852: checking for $ac_word" >&5
852 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 if test -n "$CC"; then
856 ac_cv_prog_CC="$CC" # Let the user override the test.
858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
861 for ac_dir in $ac_dummy; do
862 test -z "$ac_dir" && ac_dir=.
863 if test -f $ac_dir/$ac_word; then
864 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
873 if test $ac_prog_rejected = yes; then
874 # We found a bogon in the path, so make sure we never use it.
875 set dummy $ac_cv_prog_CC
877 if test $# -gt 0; then
878 # We chose a different compiler from the bogus one.
879 # However, it has the same basename, so the bogon will be chosen
880 # first if we set CC to just the basename; use the full file name.
882 set dummy "$ac_dir/$ac_word" "$@"
890 if test -n "$CC"; then
891 echo "$ac_t""$CC" 1>&6
893 echo "$ac_t""no" 1>&6
896 if test -z "$CC"; then
899 # Extract the first word of "cl", so it can be a program name with args.
900 set dummy cl; ac_word=$2
901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902 echo "configure:903: checking for $ac_word" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 if test -n "$CC"; then
907 ac_cv_prog_CC="$CC" # Let the user override the test.
909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
911 for ac_dir in $ac_dummy; do
912 test -z "$ac_dir" && ac_dir=.
913 if test -f $ac_dir/$ac_word; then
922 if test -n "$CC"; then
923 echo "$ac_t""$CC" 1>&6
925 echo "$ac_t""no" 1>&6
930 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
934 echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938 ac_cpp='$CPP $CPPFLAGS'
939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941 cross_compiling=$ac_cv_prog_cc_cross
943 cat > conftest.$ac_ext << EOF
945 #line 946 "configure"
946 #include "confdefs.h"
950 if { (eval echo configure:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
951 ac_cv_prog_cc_works=yes
952 # If we can't run a trivial program, we are probably using a cross compiler.
953 if (./conftest; exit) 2>/dev/null; then
954 ac_cv_prog_cc_cross=no
956 ac_cv_prog_cc_cross=yes
959 echo "configure: failed program was:" >&5
960 cat conftest.$ac_ext >&5
961 ac_cv_prog_cc_works=no
965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
966 ac_cpp='$CPP $CPPFLAGS'
967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
969 cross_compiling=$ac_cv_prog_cc_cross
971 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
972 if test $ac_cv_prog_cc_works = no; then
973 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
975 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
976 echo "configure:977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
977 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
978 cross_compiling=$ac_cv_prog_cc_cross
980 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
981 echo "configure:982: checking whether we are using GNU C" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 cat > conftest.c <<EOF
990 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
997 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
999 if test $ac_cv_prog_gcc = yes; then
1005 ac_test_CFLAGS="${CFLAGS+set}"
1006 ac_save_CFLAGS="$CFLAGS"
1008 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether ${CC-cc} accepts -g" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 echo 'void f(){}' > conftest.c
1014 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1023 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1024 if test "$ac_test_CFLAGS" = set; then
1025 CFLAGS="$ac_save_CFLAGS"
1026 elif test $ac_cv_prog_cc_g = yes; then
1027 if test "$GCC" = yes; then
1033 if test "$GCC" = yes; then
1040 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1041 echo "configure:1042: checking how to run the C preprocessor" >&5
1042 # On Suns, sometimes $CPP names a directory.
1043 if test -n "$CPP" && test -d "$CPP"; then
1046 if test -z "$CPP"; then
1047 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 # This must be in double quotes, not single quotes, because CPP may get
1051 # substituted into the Makefile and "${CC-cc}" will confuse make.
1053 # On the NeXT, cc -E runs the code through the compiler's parser,
1054 # not just through cpp.
1055 cat > conftest.$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1062 { (eval echo configure:1063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1064 if test -z "$ac_err"; then
1068 echo "configure: failed program was:" >&5
1069 cat conftest.$ac_ext >&5
1071 CPP="${CC-cc} -E -traditional-cpp"
1072 cat > conftest.$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1079 { (eval echo configure:1080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1081 if test -z "$ac_err"; then
1085 echo "configure: failed program was:" >&5
1086 cat conftest.$ac_ext >&5
1088 CPP="${CC-cc} -nologo -E"
1089 cat > conftest.$ac_ext <<EOF
1090 #line 1091 "configure"
1091 #include "confdefs.h"
1095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1096 { (eval echo configure:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1098 if test -z "$ac_err"; then
1102 echo "configure: failed program was:" >&5
1103 cat conftest.$ac_ext >&5
1112 ac_cv_prog_CPP="$CPP"
1114 CPP="$ac_cv_prog_CPP"
1116 ac_cv_prog_CPP="$CPP"
1118 echo "$ac_t""$CPP" 1>&6
1121 if test $host != $build; then
1122 ac_tool_prefix=${host_alias}-
1127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130 echo "configure:1131: checking for $ac_word" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 if test -n "$RANLIB"; then
1135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1139 for ac_dir in $ac_dummy; do
1140 test -z "$ac_dir" && ac_dir=.
1141 if test -f $ac_dir/$ac_word; then
1142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1149 RANLIB="$ac_cv_prog_RANLIB"
1150 if test -n "$RANLIB"; then
1151 echo "$ac_t""$RANLIB" 1>&6
1153 echo "$ac_t""no" 1>&6
1157 if test -z "$ac_cv_prog_RANLIB"; then
1158 if test -n "$ac_tool_prefix"; then
1159 # Extract the first word of "ranlib", so it can be a program name with args.
1160 set dummy ranlib; ac_word=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 if test -n "$RANLIB"; then
1167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1171 for ac_dir in $ac_dummy; do
1172 test -z "$ac_dir" && ac_dir=.
1173 if test -f $ac_dir/$ac_word; then
1174 ac_cv_prog_RANLIB="ranlib"
1179 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1182 RANLIB="$ac_cv_prog_RANLIB"
1183 if test -n "$RANLIB"; then
1184 echo "$ac_t""$RANLIB" 1>&6
1186 echo "$ac_t""no" 1>&6
1194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1195 set dummy ${ac_tool_prefix}strip; ac_word=$2
1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197 echo "configure:1198: checking for $ac_word" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 if test -n "$STRIP"; then
1202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1206 for ac_dir in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir=.
1208 if test -f $ac_dir/$ac_word; then
1209 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1216 STRIP="$ac_cv_prog_STRIP"
1217 if test -n "$STRIP"; then
1218 echo "$ac_t""$STRIP" 1>&6
1220 echo "$ac_t""no" 1>&6
1224 if test -z "$ac_cv_prog_STRIP"; then
1225 if test -n "$ac_tool_prefix"; then
1226 # Extract the first word of "strip", so it can be a program name with args.
1227 set dummy strip; ac_word=$2
1228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1229 echo "configure:1230: checking for $ac_word" >&5
1230 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 if test -n "$STRIP"; then
1234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1238 for ac_dir in $ac_dummy; do
1239 test -z "$ac_dir" && ac_dir=.
1240 if test -f $ac_dir/$ac_word; then
1241 ac_cv_prog_STRIP="strip"
1246 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1249 STRIP="$ac_cv_prog_STRIP"
1250 if test -n "$STRIP"; then
1251 echo "$ac_t""$STRIP" 1>&6
1253 echo "$ac_t""no" 1>&6
1262 # Extract the first word of "gmake", so it can be a program name with args.
1263 set dummy gmake; ac_word=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1271 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1274 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1279 for ac_dir in $ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 if test -f $ac_dir/$ac_word; then
1282 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1287 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1291 GMAKE="$ac_cv_path_GMAKE"
1292 if test -n "$GMAKE"; then
1293 echo "$ac_t""$GMAKE" 1>&6
1295 echo "$ac_t""no" 1>&6
1298 if test "x${GMAKE}" = "xno"; then
1299 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether GNU make is installed" >&5
1301 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 if make --version | grep -q -i gnu; then
1307 echo "This software needs you to install GNU make to compile properly."
1308 echo "You can get it from http://www.gnu.org/."
1313 echo "$ac_t""$ac_cv_gmake" 1>&6
1319 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
1321 cat >> confdefs.h <<EOF
1322 #define VLC_PACKAGE "${PACKAGE}"
1325 cat >> confdefs.h <<EOF
1326 #define VLC_VERSION "${VERSION}"
1329 # Extract the first word of "ranlib", so it can be a program name with args.
1330 set dummy ranlib; ac_word=$2
1331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1332 echo "configure:1333: checking for $ac_word" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 if test -n "$RANLIB"; then
1337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1341 for ac_dir in $ac_dummy; do
1342 test -z "$ac_dir" && ac_dir=.
1343 if test -f $ac_dir/$ac_word; then
1344 ac_cv_prog_RANLIB="ranlib"
1349 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1352 RANLIB="$ac_cv_prog_RANLIB"
1353 if test -n "$RANLIB"; then
1354 echo "$ac_t""$RANLIB" 1>&6
1356 echo "$ac_t""no" 1>&6
1360 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1361 echo "configure:1362: checking for strerror in -lcposix" >&5
1362 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 ac_save_LIBS="$LIBS"
1367 LIBS="-lcposix $LIBS"
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* Override any gcc2 internal prototype to avoid an error. */
1372 /* We use char because int might match the return type of a gcc2
1373 builtin and then its argument prototype would still apply. */
1380 if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1382 eval "ac_cv_lib_$ac_lib_var=yes"
1384 echo "configure: failed program was:" >&5
1385 cat conftest.$ac_ext >&5
1387 eval "ac_cv_lib_$ac_lib_var=no"
1390 LIBS="$ac_save_LIBS"
1393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1394 echo "$ac_t""yes" 1>&6
1395 LIBS="$LIBS -lcposix"
1397 echo "$ac_t""no" 1>&6
1402 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1403 echo "configure:1404: checking for ANSI C header files" >&5
1404 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 cat > conftest.$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1416 { (eval echo configure:1417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1418 if test -z "$ac_err"; then
1420 ac_cv_header_stdc=yes
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1426 ac_cv_header_stdc=no
1430 if test $ac_cv_header_stdc = yes; then
1431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1438 egrep "memchr" >/dev/null 2>&1; then
1442 ac_cv_header_stdc=no
1448 if test $ac_cv_header_stdc = yes; then
1449 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1456 egrep "free" >/dev/null 2>&1; then
1460 ac_cv_header_stdc=no
1466 if test $ac_cv_header_stdc = yes; then
1467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1468 if test "$cross_compiling" = yes; then
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1475 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1476 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1478 int main () { int i; for (i = 0; i < 256; i++)
1479 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1483 if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1487 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5
1490 ac_cv_header_stdc=no
1498 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1499 if test $ac_cv_header_stdc = yes; then
1500 cat >> confdefs.h <<\EOF
1501 #define STDC_HEADERS 1
1506 echo $ac_n "checking for working const""... $ac_c" 1>&6
1507 echo "configure:1508: checking for working const" >&5
1508 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1517 /* Ultrix mips cc rejects this. */
1518 typedef int charset[2]; const charset x = {0,0};
1519 /* SunOS 4.1.1 cc rejects this. */
1520 char const *const *ccp;
1522 /* NEC SVR4.0.2 mips cc rejects this. */
1523 struct point {int x, y;};
1524 static struct point const zero = {0,0};
1525 /* AIX XL C 1.02.0.0 rejects this.
1526 It does not let you subtract one const X* pointer from another in an arm
1527 of an if-expression whose if-part is not a constant expression */
1528 const char *g = "string";
1529 ccp = &g + (g ? g-g : 0);
1530 /* HPUX 7.0 cc rejects these. */
1533 ccp = (char const *const *) p;
1534 { /* SCO 3.2v4 cc rejects this. */
1536 char const *s = 0 ? (char *) 0 : (char const *) 0;
1540 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1542 const int *foo = &x[0];
1545 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1546 typedef const int *iptr;
1550 { /* AIX XL C 1.02.0.0 rejects this saying
1551 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1552 struct s { int j; const int *ap[3]; };
1553 struct s *b; b->j = 5;
1555 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1561 if { (eval echo configure:1562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1573 echo "$ac_t""$ac_cv_c_const" 1>&6
1574 if test $ac_cv_c_const = no; then
1575 cat >> confdefs.h <<\EOF
1581 echo $ac_n "checking for inline""... $ac_c" 1>&6
1582 echo "configure:1583: checking for inline" >&5
1583 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1587 for ac_kw in inline __inline__ __inline; do
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1593 } int $ac_kw foo() {
1596 if { (eval echo configure:1597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1598 ac_cv_c_inline=$ac_kw; break
1600 echo "configure: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1608 echo "$ac_t""$ac_cv_c_inline" 1>&6
1609 case "$ac_cv_c_inline" in
1611 no) cat >> confdefs.h <<\EOF
1615 *) cat >> confdefs.h <<EOF
1616 #define inline $ac_cv_c_inline
1621 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1622 echo "configure:1623: checking for off_t" >&5
1623 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 cat > conftest.$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1629 #include <sys/types.h>
1635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1636 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1638 ac_cv_type_off_t=yes
1646 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1647 if test $ac_cv_type_off_t = no; then
1648 cat >> confdefs.h <<\EOF
1654 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1655 echo "configure:1656: checking for size_t" >&5
1656 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 cat > conftest.$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1662 #include <sys/types.h>
1668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1669 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1671 ac_cv_type_size_t=yes
1674 ac_cv_type_size_t=no
1679 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1680 if test $ac_cv_type_size_t = no; then
1681 cat >> confdefs.h <<\EOF
1682 #define size_t unsigned
1687 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1688 # for constant arguments. Useless!
1689 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1690 echo "configure:1691: checking for working alloca.h" >&5
1691 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1699 void *p = alloca(2 * sizeof(int));
1702 if { (eval echo configure:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1704 ac_cv_header_alloca_h=yes
1706 echo "configure: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1709 ac_cv_header_alloca_h=no
1714 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1715 if test $ac_cv_header_alloca_h = yes; then
1716 cat >> confdefs.h <<\EOF
1717 #define HAVE_ALLOCA_H 1
1722 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1723 echo "configure:1724: checking for alloca" >&5
1724 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1732 # define alloca __builtin_alloca
1735 # include <malloc.h>
1736 # define alloca _alloca
1739 # include <alloca.h>
1744 # ifndef alloca /* predefined by HP cc +Olibcalls */
1753 char *p = (char *) alloca(1);
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1758 ac_cv_func_alloca_works=yes
1760 echo "configure: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1763 ac_cv_func_alloca_works=no
1768 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1769 if test $ac_cv_func_alloca_works = yes; then
1770 cat >> confdefs.h <<\EOF
1771 #define HAVE_ALLOCA 1
1776 if test $ac_cv_func_alloca_works = no; then
1777 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1778 # that cause trouble. Some versions do not even contain alloca or
1779 # contain a buggy version. If you still want to use their alloca,
1780 # use ar to extract alloca.o from them instead of compiling alloca.c.
1781 ALLOCA=alloca.${ac_objext}
1782 cat >> confdefs.h <<\EOF
1787 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether alloca needs Cray hooks" >&5
1789 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 #if defined(CRAY) && ! defined(CRAY2)
1802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1803 egrep "webecray" >/dev/null 2>&1; then
1814 echo "$ac_t""$ac_cv_os_cray" 1>&6
1815 if test $ac_cv_os_cray = yes; then
1816 for ac_func in _getb67 GETB67 getb67; do
1817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_func" >&5
1819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $ac_func(); below. */
1828 /* Override any gcc2 internal prototype to avoid an error. */
1829 /* We use char because int might match the return type of a gcc2
1830 builtin and then its argument prototype would still apply. */
1835 /* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
1838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1848 eval "ac_cv_func_$ac_func=yes"
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1853 eval "ac_cv_func_$ac_func=no"
1858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 cat >> confdefs.h <<EOF
1861 #define CRAY_STACKSEG_END $ac_func
1866 echo "$ac_t""no" 1>&6
1872 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1873 echo "configure:1874: checking stack direction for C alloca" >&5
1874 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 if test "$cross_compiling" = yes; then
1878 ac_cv_c_stack_direction=0
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 find_stack_direction ()
1885 static char *addr = 0;
1890 return find_stack_direction ();
1893 return (&dummy > addr) ? 1 : -1;
1897 exit (find_stack_direction() < 0);
1900 if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1902 ac_cv_c_stack_direction=1
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 ac_cv_c_stack_direction=-1
1914 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1915 cat >> confdefs.h <<EOF
1916 #define STACK_DIRECTION $ac_cv_c_stack_direction
1921 for ac_hdr in unistd.h
1923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1925 echo "configure:1926: checking for $ac_hdr" >&5
1926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 cat > conftest.$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1935 { (eval echo configure:1936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1937 if test -z "$ac_err"; then
1939 eval "ac_cv_header_$ac_safe=yes"
1942 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1945 eval "ac_cv_header_$ac_safe=no"
1949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1950 echo "$ac_t""yes" 1>&6
1951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1952 cat >> confdefs.h <<EOF
1953 #define $ac_tr_hdr 1
1957 echo "$ac_t""no" 1>&6
1961 for ac_func in getpagesize
1963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1964 echo "configure:1965: checking for $ac_func" >&5
1965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1971 /* System header to define __stub macros and hopefully few prototypes,
1972 which can conflict with char $ac_func(); below. */
1974 /* Override any gcc2 internal prototype to avoid an error. */
1975 /* We use char because int might match the return type of a gcc2
1976 builtin and then its argument prototype would still apply. */
1981 /* The GNU C library defines this for functions which it implements
1982 to always fail with ENOSYS. Some functions are actually named
1983 something starting with __ and the normal name is an alias. */
1984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1994 eval "ac_cv_func_$ac_func=yes"
1996 echo "configure: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
1999 eval "ac_cv_func_$ac_func=no"
2004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2005 echo "$ac_t""yes" 1>&6
2006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2007 cat >> confdefs.h <<EOF
2008 #define $ac_tr_func 1
2012 echo "$ac_t""no" 1>&6
2016 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2017 echo "configure:2018: checking for working mmap" >&5
2018 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 if test "$cross_compiling" = yes; then
2022 ac_cv_func_mmap_fixed_mapped=no
2024 cat > conftest.$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2028 /* Thanks to Mike Haertel and Jim Avera for this test.
2029 Here is a matrix of mmap possibilities:
2030 mmap private not fixed
2031 mmap private fixed at somewhere currently unmapped
2032 mmap private fixed at somewhere already mapped
2033 mmap shared not fixed
2034 mmap shared fixed at somewhere currently unmapped
2035 mmap shared fixed at somewhere already mapped
2036 For private mappings, we should verify that changes cannot be read()
2037 back from the file, nor mmap's back from the file at a different
2038 address. (There have been systems where private was not correctly
2039 implemented like the infamous i386 svr4.0, and systems where the
2040 VM page cache was not coherent with the filesystem buffer cache
2041 like early versions of FreeBSD and possibly contemporary NetBSD.)
2042 For shared mappings, we should conversely verify that changes get
2043 propogated back to all the places they're supposed to be.
2045 Grep wants private fixed already mapped.
2046 The main things grep needs to know about mmap are:
2047 * does it exist and is it safe to write into the mmap'd area
2048 * how to use it (BSD variants) */
2049 #include <sys/types.h>
2051 #include <sys/mman.h>
2053 #include <sys/stat.h>
2055 #ifdef HAVE_UNISTD_H
2056 # include <unistd.h>
2059 /* This mess was copied from the GNU getpagesize.h. */
2060 #ifndef HAVE_GETPAGESIZE
2062 /* Assume that all systems that can run configure have sys/param.h. */
2063 # ifndef HAVE_SYS_PARAM_H
2064 # define HAVE_SYS_PARAM_H 1
2067 # ifdef _SC_PAGESIZE
2068 # define getpagesize() sysconf(_SC_PAGESIZE)
2069 # else /* no _SC_PAGESIZE */
2070 # ifdef HAVE_SYS_PARAM_H
2071 # include <sys/param.h>
2072 # ifdef EXEC_PAGESIZE
2073 # define getpagesize() EXEC_PAGESIZE
2074 # else /* no EXEC_PAGESIZE */
2076 # define getpagesize() NBPG * CLSIZE
2079 # endif /* no CLSIZE */
2080 # else /* no NBPG */
2082 # define getpagesize() NBPC
2083 # else /* no NBPC */
2085 # define getpagesize() PAGESIZE
2086 # endif /* PAGESIZE */
2087 # endif /* no NBPC */
2088 # endif /* no NBPG */
2089 # endif /* no EXEC_PAGESIZE */
2090 # else /* no HAVE_SYS_PARAM_H */
2091 # define getpagesize() 8192 /* punt totally */
2092 # endif /* no HAVE_SYS_PARAM_H */
2093 # endif /* no _SC_PAGESIZE */
2095 #endif /* no HAVE_GETPAGESIZE */
2098 extern "C" { void *malloc(unsigned); }
2106 char *data, *data2, *data3;
2110 pagesize = getpagesize();
2113 * First, make a file with some known garbage in it.
2115 data = (char*)malloc(pagesize);
2118 for (i = 0; i < pagesize; ++i)
2119 *(data + i) = rand();
2121 fd = creat("conftestmmap", 0600);
2124 if (write(fd, data, pagesize) != pagesize)
2129 * Next, try to mmap the file at a fixed address which
2130 * already has something else allocated at it. If we can,
2131 * also make sure that we see the same garbage.
2133 fd = open("conftestmmap", O_RDWR);
2136 data2 = (char*)malloc(2 * pagesize);
2139 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2140 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2141 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2143 for (i = 0; i < pagesize; ++i)
2144 if (*(data + i) != *(data2 + i))
2148 * Finally, make sure that changes to the mapped area
2149 * do not percolate back to the file as seen by read().
2150 * (This is a bug on some variants of i386 svr4.0.)
2152 for (i = 0; i < pagesize; ++i)
2153 *(data2 + i) = *(data2 + i) + 1;
2154 data3 = (char*)malloc(pagesize);
2157 if (read(fd, data3, pagesize) != pagesize)
2159 for (i = 0; i < pagesize; ++i)
2160 if (*(data + i) != *(data3 + i))
2163 unlink("conftestmmap");
2168 if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2170 ac_cv_func_mmap_fixed_mapped=yes
2172 echo "configure: failed program was:" >&5
2173 cat conftest.$ac_ext >&5
2175 ac_cv_func_mmap_fixed_mapped=no
2182 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2183 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2184 cat >> confdefs.h <<\EOF
2191 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2192 echo "configure:2193: checking whether we are using the GNU C Library 2.1 or newer" >&5
2193 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2196 cat > conftest.$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2200 #include <features.h>
2201 #ifdef __GNU_LIBRARY__
2202 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2209 egrep "Lucky GNU user" >/dev/null 2>&1; then
2211 ac_cv_gnu_library_2_1=yes
2214 ac_cv_gnu_library_2_1=no
2222 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2224 GLIBC21="$ac_cv_gnu_library_2_1"
2228 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2229 stdlib.h string.h unistd.h sys/param.h
2231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_hdr" >&5
2234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2243 { (eval echo configure:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2245 if test -z "$ac_err"; then
2247 eval "ac_cv_header_$ac_safe=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2253 eval "ac_cv_header_$ac_safe=no"
2257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2258 echo "$ac_t""yes" 1>&6
2259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2260 cat >> confdefs.h <<EOF
2261 #define $ac_tr_hdr 1
2265 echo "$ac_t""no" 1>&6
2269 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2270 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2271 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_func" >&5
2275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2281 /* System header to define __stub macros and hopefully few prototypes,
2282 which can conflict with char $ac_func(); below. */
2284 /* Override any gcc2 internal prototype to avoid an error. */
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2291 /* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2304 eval "ac_cv_func_$ac_func=yes"
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 eval "ac_cv_func_$ac_func=no"
2314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2315 echo "$ac_t""yes" 1>&6
2316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2317 cat >> confdefs.h <<EOF
2318 #define $ac_tr_func 1
2322 echo "$ac_t""no" 1>&6
2329 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2330 if test "${with_libiconv_prefix+set}" = set; then
2331 withval="$with_libiconv_prefix"
2333 for dir in `echo "$withval" | tr : ' '`; do
2334 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2335 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2341 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2342 echo "configure:2343: checking for iconv" >&5
2343 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2347 am_cv_func_iconv="no, consider installing GNU libiconv"
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2355 iconv_t cd = iconv_open("","");
2356 iconv(cd,NULL,NULL,NULL,NULL);
2360 if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2362 am_cv_func_iconv=yes
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2368 if test "$am_cv_func_iconv" != yes; then
2369 am_save_LIBS="$LIBS"
2370 LIBS="$LIBS -liconv"
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2377 iconv_t cd = iconv_open("","");
2378 iconv(cd,NULL,NULL,NULL,NULL);
2382 if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2385 am_cv_func_iconv=yes
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2391 LIBS="$am_save_LIBS"
2396 echo "$ac_t""$am_cv_func_iconv" 1>&6
2397 if test "$am_cv_func_iconv" = yes; then
2398 cat >> confdefs.h <<\EOF
2399 #define HAVE_ICONV 1
2402 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2403 echo "configure:2404: checking for iconv declaration" >&5
2404 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2418 #if defined(__STDC__) || defined(__cplusplus)
2419 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2428 if { (eval echo configure:2429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2430 am_cv_proto_iconv_arg1=""
2432 echo "configure: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2435 am_cv_proto_iconv_arg1="const"
2438 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);"
2441 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2442 echo "$ac_t""${ac_t:-
2443 }$am_cv_proto_iconv" 1>&6
2444 cat >> confdefs.h <<EOF
2445 #define ICONV_CONST $am_cv_proto_iconv_arg1
2450 if test "$am_cv_lib_iconv" = yes; then
2456 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2457 echo "configure:2458: checking for nl_langinfo and CODESET" >&5
2458 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2461 cat > conftest.$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2464 #include <langinfo.h>
2466 char* cs = nl_langinfo(CODESET);
2469 if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2471 am_cv_langinfo_codeset=yes
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2476 am_cv_langinfo_codeset=no
2482 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2483 if test $am_cv_langinfo_codeset = yes; then
2484 cat >> confdefs.h <<\EOF
2485 #define HAVE_LANGINFO_CODESET 1
2490 if test $ac_cv_header_locale_h = yes; then
2491 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2492 echo "configure:2493: checking for LC_MESSAGES" >&5
2493 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2504 if { (eval echo configure:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2506 am_cv_val_LC_MESSAGES=yes
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2511 am_cv_val_LC_MESSAGES=no
2516 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2517 if test $am_cv_val_LC_MESSAGES = yes; then
2518 cat >> confdefs.h <<\EOF
2519 #define HAVE_LC_MESSAGES 1
2524 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2525 echo "configure:2526: checking whether NLS is requested" >&5
2526 # Check whether --enable-nls or --disable-nls was given.
2527 if test "${enable_nls+set}" = set; then
2528 enableval="$enable_nls"
2534 echo "$ac_t""$USE_NLS" 1>&6
2537 BUILD_INCLUDED_LIBINTL=no
2538 USE_INCLUDED_LIBINTL=no
2541 if test "$USE_NLS" = "yes"; then
2542 cat >> confdefs.h <<\EOF
2543 #define ENABLE_NLS 1
2546 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2547 echo "configure:2548: checking whether included gettext is requested" >&5
2548 # Check whether --with-included-gettext or --without-included-gettext was given.
2549 if test "${with_included_gettext+set}" = set; then
2550 withval="$with_included_gettext"
2551 nls_cv_force_use_gnu_gettext=$withval
2553 nls_cv_force_use_gnu_gettext=no
2556 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2558 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2559 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2565 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2566 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2567 echo "configure:2568: checking for libintl.h" >&5
2568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #include <libintl.h>
2576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2577 { (eval echo configure:2578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2579 if test -z "$ac_err"; then
2581 eval "ac_cv_header_$ac_safe=yes"
2584 echo "configure: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2587 eval "ac_cv_header_$ac_safe=no"
2591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2593 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2594 echo "configure:2595: checking for GNU gettext in libc" >&5
2595 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 #include <libintl.h>
2602 extern int _nl_msg_cat_cntr;
2604 bindtextdomain ("", "");
2605 return (int) gettext ("") + _nl_msg_cat_cntr
2608 if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2610 gt_cv_func_gnugettext1_libc=yes
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 gt_cv_func_gnugettext1_libc=no
2620 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2622 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2623 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2624 echo "configure:2625: checking for GNU gettext in libintl" >&5
2625 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 gt_save_LIBS="$LIBS"
2629 LIBS="$LIBS -lintl $LIBICONV"
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 #include <libintl.h>
2634 extern int _nl_msg_cat_cntr;
2636 bindtextdomain ("", "");
2637 return (int) gettext ("") + _nl_msg_cat_cntr
2640 if { (eval echo configure:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2642 gt_cv_func_gnugettext1_libintl=yes
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2647 gt_cv_func_gnugettext1_libintl=no
2650 LIBS="$gt_save_LIBS"
2653 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2656 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2657 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2658 && test "$PACKAGE" != gettext; }; then
2659 cat >> confdefs.h <<\EOF
2660 #define HAVE_GETTEXT 1
2664 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2665 INTLLIBS="-lintl $LIBICONV"
2668 gt_save_LIBS="$LIBS"
2669 LIBS="$LIBS $INTLLIBS"
2670 for ac_func in dcgettext
2672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2673 echo "configure:2674: checking for $ac_func" >&5
2674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 /* System header to define __stub macros and hopefully few prototypes,
2681 which can conflict with char $ac_func(); below. */
2683 /* Override any gcc2 internal prototype to avoid an error. */
2684 /* We use char because int might match the return type of a gcc2
2685 builtin and then its argument prototype would still apply. */
2690 /* The GNU C library defines this for functions which it implements
2691 to always fail with ENOSYS. Some functions are actually named
2692 something starting with __ and the normal name is an alias. */
2693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2701 if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2703 eval "ac_cv_func_$ac_func=yes"
2705 echo "configure: failed program was:" >&5
2706 cat conftest.$ac_ext >&5
2708 eval "ac_cv_func_$ac_func=no"
2713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2714 echo "$ac_t""yes" 1>&6
2715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2716 cat >> confdefs.h <<EOF
2717 #define $ac_tr_func 1
2721 echo "$ac_t""no" 1>&6
2725 LIBS="$gt_save_LIBS"
2727 # Extract the first word of "msgfmt", so it can be a program name with args.
2728 set dummy msgfmt; ac_word=$2
2729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2730 echo "configure:2731: checking for $ac_word" >&5
2731 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2736 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2740 for ac_dir in $PATH; do
2741 test -z "$ac_dir" && ac_dir=.
2742 if test -f $ac_dir/$ac_word; then
2743 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2744 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2750 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2754 MSGFMT="$ac_cv_path_MSGFMT"
2755 if test "$MSGFMT" != ":"; then
2756 echo "$ac_t""$MSGFMT" 1>&6
2758 echo "$ac_t""no" 1>&6
2761 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2762 set dummy gmsgfmt; ac_word=$2
2763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2764 echo "configure:2765: checking for $ac_word" >&5
2765 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2770 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2773 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2778 for ac_dir in $ac_dummy; do
2779 test -z "$ac_dir" && ac_dir=.
2780 if test -f $ac_dir/$ac_word; then
2781 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2786 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2790 GMSGFMT="$ac_cv_path_GMSGFMT"
2791 if test -n "$GMSGFMT"; then
2792 echo "$ac_t""$GMSGFMT" 1>&6
2794 echo "$ac_t""no" 1>&6
2798 # Extract the first word of "xgettext", so it can be a program name with args.
2799 set dummy xgettext; ac_word=$2
2800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2801 echo "configure:2802: checking for $ac_word" >&5
2802 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2807 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2811 for ac_dir in $PATH; do
2812 test -z "$ac_dir" && ac_dir=.
2813 if test -f $ac_dir/$ac_word; then
2814 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2815 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2821 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2825 XGETTEXT="$ac_cv_path_XGETTEXT"
2826 if test "$XGETTEXT" != ":"; then
2827 echo "$ac_t""$XGETTEXT" 1>&6
2829 echo "$ac_t""no" 1>&6
2837 echo "$ac_t""no" 1>&6
2841 if test "$CATOBJEXT" = "NONE"; then
2842 nls_cv_use_gnu_gettext=yes
2846 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2847 INTLOBJS="\$(GETTOBJS)"
2848 # Extract the first word of "msgfmt", so it can be a program name with args.
2849 set dummy msgfmt; ac_word=$2
2850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2851 echo "configure:2852: checking for $ac_word" >&5
2852 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2857 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2861 for ac_dir in $PATH; do
2862 test -z "$ac_dir" && ac_dir=.
2863 if test -f $ac_dir/$ac_word; then
2864 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2865 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2871 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2875 MSGFMT="$ac_cv_path_MSGFMT"
2876 if test "$MSGFMT" != ":"; then
2877 echo "$ac_t""$MSGFMT" 1>&6
2879 echo "$ac_t""no" 1>&6
2882 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2883 set dummy gmsgfmt; ac_word=$2
2884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2885 echo "configure:2886: checking for $ac_word" >&5
2886 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2891 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2894 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2899 for ac_dir in $ac_dummy; do
2900 test -z "$ac_dir" && ac_dir=.
2901 if test -f $ac_dir/$ac_word; then
2902 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2907 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2911 GMSGFMT="$ac_cv_path_GMSGFMT"
2912 if test -n "$GMSGFMT"; then
2913 echo "$ac_t""$GMSGFMT" 1>&6
2915 echo "$ac_t""no" 1>&6
2918 # Extract the first word of "xgettext", so it can be a program name with args.
2919 set dummy xgettext; ac_word=$2
2920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2921 echo "configure:2922: checking for $ac_word" >&5
2922 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2927 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2931 for ac_dir in $PATH; do
2932 test -z "$ac_dir" && ac_dir=.
2933 if test -f $ac_dir/$ac_word; then
2934 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2935 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2941 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2945 XGETTEXT="$ac_cv_path_XGETTEXT"
2946 if test "$XGETTEXT" != ":"; then
2947 echo "$ac_t""$XGETTEXT" 1>&6
2949 echo "$ac_t""no" 1>&6
2953 BUILD_INCLUDED_LIBINTL=yes
2954 USE_INCLUDED_LIBINTL=yes
2956 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2957 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2960 if test "$GMSGFMT" != ":"; then
2961 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2964 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2969 if test "$XGETTEXT" != ":"; then
2970 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2973 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2983 if test "$PACKAGE" = gettext; then
2984 BUILD_INCLUDED_LIBINTL=yes
2987 for ac_prog in bison
2989 # Extract the first word of "$ac_prog", so it can be a program name with args.
2990 set dummy $ac_prog; ac_word=$2
2991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2992 echo "configure:2993: checking for $ac_word" >&5
2993 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2996 if test -n "$INTLBISON"; then
2997 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3001 for ac_dir in $ac_dummy; do
3002 test -z "$ac_dir" && ac_dir=.
3003 if test -f $ac_dir/$ac_word; then
3004 ac_cv_prog_INTLBISON="$ac_prog"
3011 INTLBISON="$ac_cv_prog_INTLBISON"
3012 if test -n "$INTLBISON"; then
3013 echo "$ac_t""$INTLBISON" 1>&6
3015 echo "$ac_t""no" 1>&6
3018 test -n "$INTLBISON" && break
3021 if test -z "$INTLBISON"; then
3024 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3025 echo "configure:3026: checking version of bison" >&5
3026 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3027 case $ac_prog_version in
3028 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3029 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3030 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3031 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3033 echo "$ac_t""$ac_prog_version" 1>&6
3035 if test $ac_verc_fail = yes; then
3039 for lang in $ALL_LINGUAS; do
3040 GMOFILES="$GMOFILES $lang.gmo"
3041 POFILES="$POFILES $lang.po"
3055 nls_cv_header_libgt=
3067 if test "x$CATOBJEXT" != "x"; then
3068 if test "x$ALL_LINGUAS" = "x"; then
3071 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3072 echo "configure:3073: checking for catalogs to be installed" >&5
3074 for presentlang in $ALL_LINGUAS; do
3076 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3077 # Use the presentlang catalog if desiredlang is
3078 # a. equal to presentlang, or
3079 # b. a variant of presentlang (because in this case,
3080 # presentlang can be used as a fallback for messages
3081 # which are not translated in the desiredlang catalog).
3082 case "$desiredlang" in
3083 "$presentlang"*) useit=yes;;
3086 if test $useit = yes; then
3087 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3090 LINGUAS=$NEW_LINGUAS
3091 echo "$ac_t""$LINGUAS" 1>&6
3094 if test -n "$LINGUAS"; then
3095 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3100 if test -n "$ac_aux_dir"; then
3101 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3103 if test -z "$MKINSTALLDIRS"; then
3104 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3108 INTL_LIBTOOL_SUFFIX_PREFIX=
3112 # Find a good install program. We prefer a C program (faster),
3113 # so one script is as good as another. But avoid the broken or
3114 # incompatible versions:
3115 # SysV /etc/install, /usr/sbin/install
3116 # SunOS /usr/etc/install
3117 # IRIX /sbin/install
3119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3122 # ./install, which can be erroneously created by make from ./install.sh.
3123 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3124 echo "configure:3125: checking for a BSD compatible install" >&5
3125 if test -z "$INSTALL"; then
3126 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3130 for ac_dir in $PATH; do
3131 # Account for people who put trailing slashes in PATH elements.
3133 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3135 # OSF1 and SCO ODT 3.0 have their own names for install.
3136 # Don't use installbsd from OSF since it installs stuff as root
3138 for ac_prog in ginstall scoinst install; do
3139 if test -f $ac_dir/$ac_prog; then
3140 if test $ac_prog = install &&
3141 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3142 # AIX install. It has an incompatible calling convention.
3145 ac_cv_path_install="$ac_dir/$ac_prog -c"
3156 if test "${ac_cv_path_install+set}" = set; then
3157 INSTALL="$ac_cv_path_install"
3159 # As a last resort, use the slow shell script. We don't cache a
3160 # path for INSTALL within a source directory, because that will
3161 # break other packages using the cache if that directory is
3162 # removed, or if the path is relative.
3163 INSTALL="$ac_install_sh"
3166 echo "$ac_t""$INSTALL" 1>&6
3168 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3169 # It thinks the first close brace ends the variable substitution.
3170 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3172 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3174 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3177 vlc_LDFLAGS="${LDFLAGS}"
3179 case "x${target_os}" in
3188 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3189 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3190 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3194 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3198 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3202 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3203 set dummy ${ac_tool_prefix}windres; ac_word=$2
3204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3205 echo "configure:3206: checking for $ac_word" >&5
3206 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 if test -n "$WINDRES"; then
3210 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3214 for ac_dir in $ac_dummy; do
3215 test -z "$ac_dir" && ac_dir=.
3216 if test -f $ac_dir/$ac_word; then
3217 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3224 WINDRES="$ac_cv_prog_WINDRES"
3225 if test -n "$WINDRES"; then
3226 echo "$ac_t""$WINDRES" 1>&6
3228 echo "$ac_t""no" 1>&6
3232 if test -z "$ac_cv_prog_WINDRES"; then
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "windres", so it can be a program name with args.
3235 set dummy windres; ac_word=$2
3236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3237 echo "configure:3238: checking for $ac_word" >&5
3238 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 if test -n "$WINDRES"; then
3242 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3246 for ac_dir in $ac_dummy; do
3247 test -z "$ac_dir" && ac_dir=.
3248 if test -f $ac_dir/$ac_word; then
3249 ac_cv_prog_WINDRES="windres"
3254 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3257 WINDRES="$ac_cv_prog_WINDRES"
3258 if test -n "$WINDRES"; then
3259 echo "$ac_t""$WINDRES" 1>&6
3261 echo "$ac_t""no" 1>&6
3269 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3270 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3271 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3272 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3273 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3274 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3275 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3279 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3280 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3284 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3285 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3286 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3287 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3288 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3295 if test "x${SYS}" = "xmingw32"
3297 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3299 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3300 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3303 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3305 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3308 echo "configure:3309: checking for $ac_func" >&5
3309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 /* System header to define __stub macros and hopefully few prototypes,
3316 which can conflict with char $ac_func(); below. */
3318 /* Override any gcc2 internal prototype to avoid an error. */
3319 /* We use char because int might match the return type of a gcc2
3320 builtin and then its argument prototype would still apply. */
3325 /* The GNU C library defines this for functions which it implements
3326 to always fail with ENOSYS. Some functions are actually named
3327 something starting with __ and the normal name is an alias. */
3328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3336 if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3338 eval "ac_cv_func_$ac_func=yes"
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 eval "ac_cv_func_$ac_func=no"
3348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3349 echo "$ac_t""yes" 1>&6
3350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3351 cat >> confdefs.h <<EOF
3352 #define $ac_tr_func 1
3356 echo "$ac_t""no" 1>&6
3361 echo $ac_n "checking for connect""... $ac_c" 1>&6
3362 echo "configure:3363: checking for connect" >&5
3363 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 /* System header to define __stub macros and hopefully few prototypes,
3370 which can conflict with char connect(); below. */
3372 /* Override any gcc2 internal prototype to avoid an error. */
3373 /* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
3379 /* The GNU C library defines this for functions which it implements
3380 to always fail with ENOSYS. Some functions are actually named
3381 something starting with __ and the normal name is an alias. */
3382 #if defined (__stub_connect) || defined (__stub___connect)
3390 if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3392 eval "ac_cv_func_connect=yes"
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3397 eval "ac_cv_func_connect=no"
3402 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3403 echo "$ac_t""yes" 1>&6
3406 echo "$ac_t""no" 1>&6
3408 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3409 echo "configure:3410: checking for connect in -lsocket" >&5
3410 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 ac_save_LIBS="$LIBS"
3415 LIBS="-lsocket $LIBS"
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* Override any gcc2 internal prototype to avoid an error. */
3420 /* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3428 if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3430 eval "ac_cv_lib_$ac_lib_var=yes"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3435 eval "ac_cv_lib_$ac_lib_var=no"
3438 LIBS="$ac_save_LIBS"
3441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3444 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3447 echo "$ac_t""no" 1>&6
3452 echo $ac_n "checking for send""... $ac_c" 1>&6
3453 echo "configure:3454: checking for send" >&5
3454 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* System header to define __stub macros and hopefully few prototypes,
3461 which can conflict with char send(); below. */
3463 /* Override any gcc2 internal prototype to avoid an error. */
3464 /* We use char because int might match the return type of a gcc2
3465 builtin and then its argument prototype would still apply. */
3470 /* The GNU C library defines this for functions which it implements
3471 to always fail with ENOSYS. Some functions are actually named
3472 something starting with __ and the normal name is an alias. */
3473 #if defined (__stub_send) || defined (__stub___send)
3481 if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3483 eval "ac_cv_func_send=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 eval "ac_cv_func_send=no"
3493 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3497 echo "$ac_t""no" 1>&6
3499 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3500 echo "configure:3501: checking for send in -lsocket" >&5
3501 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 ac_save_LIBS="$LIBS"
3506 LIBS="-lsocket $LIBS"
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 /* Override any gcc2 internal prototype to avoid an error. */
3511 /* We use char because int might match the return type of a gcc2
3512 builtin and then its argument prototype would still apply. */
3519 if { (eval echo configure:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3521 eval "ac_cv_lib_$ac_lib_var=yes"
3523 echo "configure: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3526 eval "ac_cv_lib_$ac_lib_var=no"
3529 LIBS="$ac_save_LIBS"
3532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3533 echo "$ac_t""yes" 1>&6
3534 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3537 echo "$ac_t""no" 1>&6
3542 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3543 echo "configure:3544: checking for gethostbyname" >&5
3544 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 /* System header to define __stub macros and hopefully few prototypes,
3551 which can conflict with char gethostbyname(); below. */
3553 /* Override any gcc2 internal prototype to avoid an error. */
3554 /* We use char because int might match the return type of a gcc2
3555 builtin and then its argument prototype would still apply. */
3556 char gethostbyname();
3560 /* The GNU C library defines this for functions which it implements
3561 to always fail with ENOSYS. Some functions are actually named
3562 something starting with __ and the normal name is an alias. */
3563 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_func_gethostbyname=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_func_gethostbyname=no"
3583 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3584 echo "$ac_t""yes" 1>&6
3587 echo "$ac_t""no" 1>&6
3589 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3590 echo "configure:3591: checking for gethostbyname in -lnsl" >&5
3591 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 ac_save_LIBS="$LIBS"
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 /* Override any gcc2 internal prototype to avoid an error. */
3601 /* We use char because int might match the return type of a gcc2
3602 builtin and then its argument prototype would still apply. */
3603 char gethostbyname();
3609 if { (eval echo configure:3610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3611 eval "ac_cv_lib_$ac_lib_var=yes"
3613 echo "configure: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3616 eval "ac_cv_lib_$ac_lib_var=no"
3619 LIBS="$ac_save_LIBS"
3622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3623 echo "$ac_t""yes" 1>&6
3624 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3626 echo "$ac_t""no" 1>&6
3632 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3633 echo "configure:3634: checking for gethostbyname" >&5
3634 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 /* System header to define __stub macros and hopefully few prototypes,
3641 which can conflict with char gethostbyname(); below. */
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char gethostbyname();
3650 /* The GNU C library defines this for functions which it implements
3651 to always fail with ENOSYS. Some functions are actually named
3652 something starting with __ and the normal name is an alias. */
3653 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3663 eval "ac_cv_func_gethostbyname=yes"
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 eval "ac_cv_func_gethostbyname=no"
3673 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3677 echo "$ac_t""no" 1>&6
3679 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3680 echo "configure:3681: checking for gethostbyname in -lbind" >&5
3681 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 ac_save_LIBS="$LIBS"
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 /* We use char because int might match the return type of a gcc2
3692 builtin and then its argument prototype would still apply. */
3693 char gethostbyname();
3699 if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3701 eval "ac_cv_lib_$ac_lib_var=yes"
3703 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3706 eval "ac_cv_lib_$ac_lib_var=no"
3709 LIBS="$ac_save_LIBS"
3712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3713 echo "$ac_t""yes" 1>&6
3714 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3716 echo "$ac_t""no" 1>&6
3722 for ac_func in nanosleep
3724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_func" >&5
3726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 /* System header to define __stub macros and hopefully few prototypes,
3733 which can conflict with char $ac_func(); below. */
3735 /* Override any gcc2 internal prototype to avoid an error. */
3736 /* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3742 /* The GNU C library defines this for functions which it implements
3743 to always fail with ENOSYS. Some functions are actually named
3744 something starting with __ and the normal name is an alias. */
3745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3753 if { (eval echo configure:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3755 eval "ac_cv_func_$ac_func=yes"
3757 echo "configure: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3760 eval "ac_cv_func_$ac_func=no"
3765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3766 echo "$ac_t""yes" 1>&6
3767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3768 cat >> confdefs.h <<EOF
3769 #define $ac_tr_func 1
3773 echo "$ac_t""no" 1>&6
3774 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3775 echo "configure:3776: checking for nanosleep in -lrt" >&5
3776 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 ac_save_LIBS="$LIBS"
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 /* Override any gcc2 internal prototype to avoid an error. */
3786 /* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796 eval "ac_cv_lib_$ac_lib_var=yes"
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3801 eval "ac_cv_lib_$ac_lib_var=no"
3804 LIBS="$ac_save_LIBS"
3807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3808 echo "$ac_t""yes" 1>&6
3809 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3811 echo "$ac_t""no" 1>&6
3812 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3813 echo "configure:3814: checking for nanosleep in -lposix4" >&5
3814 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 ac_save_LIBS="$LIBS"
3819 LIBS="-lposix4 $LIBS"
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3834 eval "ac_cv_lib_$ac_lib_var=yes"
3836 echo "configure: failed program was:" >&5
3837 cat conftest.$ac_ext >&5
3839 eval "ac_cv_lib_$ac_lib_var=no"
3842 LIBS="$ac_save_LIBS"
3845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3847 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3849 echo "$ac_t""no" 1>&6
3859 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3860 echo "configure:3861: checking for inet_aton" >&5
3861 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 /* System header to define __stub macros and hopefully few prototypes,
3868 which can conflict with char inet_aton(); below. */
3870 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3877 /* The GNU C library defines this for functions which it implements
3878 to always fail with ENOSYS. Some functions are actually named
3879 something starting with __ and the normal name is an alias. */
3880 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3888 if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3890 eval "ac_cv_func_inet_aton=yes"
3892 echo "configure: failed program was:" >&5
3893 cat conftest.$ac_ext >&5
3895 eval "ac_cv_func_inet_aton=no"
3900 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3901 echo "$ac_t""yes" 1>&6
3904 echo "$ac_t""no" 1>&6
3906 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3907 echo "configure:3908: checking for inet_aton in -lresolv" >&5
3908 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3912 ac_save_LIBS="$LIBS"
3913 LIBS="-lresolv $LIBS"
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 /* Override any gcc2 internal prototype to avoid an error. */
3918 /* We use char because int might match the return type of a gcc2
3919 builtin and then its argument prototype would still apply. */
3926 if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3928 eval "ac_cv_lib_$ac_lib_var=yes"
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 eval "ac_cv_lib_$ac_lib_var=no"
3936 LIBS="$ac_save_LIBS"
3939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3941 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3943 echo "$ac_t""no" 1>&6
3949 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3950 echo "configure:3951: checking for textdomain" >&5
3951 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 /* System header to define __stub macros and hopefully few prototypes,
3958 which can conflict with char textdomain(); below. */
3960 /* Override any gcc2 internal prototype to avoid an error. */
3961 /* We use char because int might match the return type of a gcc2
3962 builtin and then its argument prototype would still apply. */
3967 /* The GNU C library defines this for functions which it implements
3968 to always fail with ENOSYS. Some functions are actually named
3969 something starting with __ and the normal name is an alias. */
3970 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3980 eval "ac_cv_func_textdomain=yes"
3982 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5
3985 eval "ac_cv_func_textdomain=no"
3990 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3991 echo "$ac_t""yes" 1>&6
3994 echo "$ac_t""no" 1>&6
3996 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3997 echo "configure:3998: checking for textdomain in -lintl" >&5
3998 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4002 ac_save_LIBS="$LIBS"
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4007 /* Override any gcc2 internal prototype to avoid an error. */
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4016 if { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4018 eval "ac_cv_lib_$ac_lib_var=yes"
4020 echo "configure: failed program was:" >&5
4021 cat conftest.$ac_ext >&5
4023 eval "ac_cv_lib_$ac_lib_var=no"
4026 LIBS="$ac_save_LIBS"
4029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4030 echo "$ac_t""yes" 1>&6
4031 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4032 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4035 echo "$ac_t""no" 1>&6
4043 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4044 echo "configure:4045: checking for getopt_long" >&5
4045 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 /* System header to define __stub macros and hopefully few prototypes,
4052 which can conflict with char getopt_long(); below. */
4054 /* Override any gcc2 internal prototype to avoid an error. */
4055 /* We use char because int might match the return type of a gcc2
4056 builtin and then its argument prototype would still apply. */
4061 /* The GNU C library defines this for functions which it implements
4062 to always fail with ENOSYS. Some functions are actually named
4063 something starting with __ and the normal name is an alias. */
4064 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4072 if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4074 eval "ac_cv_func_getopt_long=yes"
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 eval "ac_cv_func_getopt_long=no"
4084 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4085 echo "$ac_t""yes" 1>&6
4086 cat >> confdefs.h <<\EOF
4087 #define HAVE_GETOPT_LONG 1
4091 echo "$ac_t""no" 1>&6
4092 # FreeBSD has a gnugetopt library for this:
4093 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4094 echo "configure:4095: checking for getopt_long in -lgnugetopt" >&5
4095 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 ac_save_LIBS="$LIBS"
4100 LIBS="-lgnugetopt $LIBS"
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 /* Override any gcc2 internal prototype to avoid an error. */
4105 /* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4115 eval "ac_cv_lib_$ac_lib_var=yes"
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4120 eval "ac_cv_lib_$ac_lib_var=no"
4123 LIBS="$ac_save_LIBS"
4126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4128 cat >> confdefs.h <<\EOF
4129 #define HAVE_GETOPT_LONG 1
4131 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4133 echo "$ac_t""no" 1>&6
4140 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4141 echo "configure:4142: checking return type of signal handlers" >&5
4142 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4145 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 #include <sys/types.h>
4154 extern "C" void (*signal (int, void (*)(int)))(int);
4156 void (*signal ()) ();
4163 if { (eval echo configure:4164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4165 ac_cv_type_signal=void
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 ac_cv_type_signal=int
4175 echo "$ac_t""$ac_cv_type_signal" 1>&6
4176 cat >> confdefs.h <<EOF
4177 #define RETSIGTYPE $ac_cv_type_signal
4181 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4182 echo "configure:4183: checking for dlopen in -ldl" >&5
4183 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 ac_save_LIBS="$LIBS"
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4192 /* Override any gcc2 internal prototype to avoid an error. */
4193 /* We use char because int might match the return type of a gcc2
4194 builtin and then its argument prototype would still apply. */
4201 if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4203 eval "ac_cv_lib_$ac_lib_var=yes"
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4208 eval "ac_cv_lib_$ac_lib_var=no"
4211 LIBS="$ac_save_LIBS"
4214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4218 echo "$ac_t""no" 1>&6
4221 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4222 echo "configure:4223: checking for cos in -lm" >&5
4223 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4227 ac_save_LIBS="$LIBS"
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 /* Override any gcc2 internal prototype to avoid an error. */
4233 /* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */
4241 if { (eval echo configure:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4243 eval "ac_cv_lib_$ac_lib_var=yes"
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 eval "ac_cv_lib_$ac_lib_var=no"
4251 LIBS="$ac_save_LIBS"
4254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4255 echo "$ac_t""yes" 1>&6
4256 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4257 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4259 echo "$ac_t""no" 1>&6
4262 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4263 echo "configure:4264: checking for pow in -lm" >&5
4264 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4268 ac_save_LIBS="$LIBS"
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 /* Override any gcc2 internal prototype to avoid an error. */
4274 /* We use char because int might match the return type of a gcc2
4275 builtin and then its argument prototype would still apply. */
4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4284 eval "ac_cv_lib_$ac_lib_var=yes"
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4289 eval "ac_cv_lib_$ac_lib_var=no"
4292 LIBS="$ac_save_LIBS"
4295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4297 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4298 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4299 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4300 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4301 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4304 echo "$ac_t""no" 1>&6
4309 if test "x${THREAD_LIB}" = "xerror"; then
4310 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4311 echo "configure:4312: checking for pthread_attr_init in -lpthread" >&5
4312 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 ac_save_LIBS="$LIBS"
4317 LIBS="-lpthread $LIBS"
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 /* Override any gcc2 internal prototype to avoid an error. */
4322 /* We use char because int might match the return type of a gcc2
4323 builtin and then its argument prototype would still apply. */
4324 char pthread_attr_init();
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4332 eval "ac_cv_lib_$ac_lib_var=yes"
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4337 eval "ac_cv_lib_$ac_lib_var=no"
4340 LIBS="$ac_save_LIBS"
4343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4345 THREAD_LIB="-lpthread"
4347 echo "$ac_t""no" 1>&6
4351 if test "x${THREAD_LIB}" = "xerror"; then
4352 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4353 echo "configure:4354: checking for pthread_attr_init in -lpthreads" >&5
4354 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4358 ac_save_LIBS="$LIBS"
4359 LIBS="-lpthreads $LIBS"
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 /* Override any gcc2 internal prototype to avoid an error. */
4364 /* We use char because int might match the return type of a gcc2
4365 builtin and then its argument prototype would still apply. */
4366 char pthread_attr_init();
4372 if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4374 eval "ac_cv_lib_$ac_lib_var=yes"
4376 echo "configure: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4379 eval "ac_cv_lib_$ac_lib_var=no"
4382 LIBS="$ac_save_LIBS"
4385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4386 echo "$ac_t""yes" 1>&6
4387 THREAD_LIB="-lpthreads"
4389 echo "$ac_t""no" 1>&6
4393 if test "x${THREAD_LIB}" = "xerror"; then
4394 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4395 echo "configure:4396: checking for pthread_attr_init in -lc_r" >&5
4396 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4400 ac_save_LIBS="$LIBS"
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 /* Override any gcc2 internal prototype to avoid an error. */
4406 /* We use char because int might match the return type of a gcc2
4407 builtin and then its argument prototype would still apply. */
4408 char pthread_attr_init();
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4416 eval "ac_cv_lib_$ac_lib_var=yes"
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4421 eval "ac_cv_lib_$ac_lib_var=no"
4424 LIBS="$ac_save_LIBS"
4427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4428 echo "$ac_t""yes" 1>&6
4431 echo "$ac_t""no" 1>&6
4435 if test "x${THREAD_LIB}" = "xerror"; then
4436 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4437 echo "configure:4438: checking for pthread_attr_init" >&5
4438 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4444 /* System header to define __stub macros and hopefully few prototypes,
4445 which can conflict with char pthread_attr_init(); below. */
4447 /* Override any gcc2 internal prototype to avoid an error. */
4448 /* We use char because int might match the return type of a gcc2
4449 builtin and then its argument prototype would still apply. */
4450 char pthread_attr_init();
4454 /* The GNU C library defines this for functions which it implements
4455 to always fail with ENOSYS. Some functions are actually named
4456 something starting with __ and the normal name is an alias. */
4457 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4460 pthread_attr_init();
4465 if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4467 eval "ac_cv_func_pthread_attr_init=yes"
4469 echo "configure: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4472 eval "ac_cv_func_pthread_attr_init=no"
4477 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4481 echo "$ac_t""no" 1>&6
4487 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4488 echo "configure:4489: checking for cthread_fork in -lthreads" >&5
4489 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 ac_save_LIBS="$LIBS"
4494 LIBS="-lthreads $LIBS"
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4498 /* Override any gcc2 internal prototype to avoid an error. */
4499 /* We use char because int might match the return type of a gcc2
4500 builtin and then its argument prototype would still apply. */
4501 char cthread_fork();
4507 if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4509 eval "ac_cv_lib_$ac_lib_var=yes"
4511 echo "configure: failed program was:" >&5
4512 cat conftest.$ac_ext >&5
4514 eval "ac_cv_lib_$ac_lib_var=no"
4517 LIBS="$ac_save_LIBS"
4520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4522 THREAD_LIB="-lthreads"
4524 echo "$ac_t""no" 1>&6
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4531 #include <pthread.h>
4533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4534 egrep "pthread_cond_t" >/dev/null 2>&1; then
4537 cat >> confdefs.h <<\EOF
4538 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4544 cat > conftest.$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4547 #include <pthread.h>
4549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550 egrep "pthread_once" >/dev/null 2>&1; then
4553 cat >> confdefs.h <<\EOF
4554 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 #include <strings.h>
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566 egrep "strncasecmp" >/dev/null 2>&1; then
4569 cat >> confdefs.h <<\EOF
4570 #define STRNCASECMP_IN_STRINGS_H 1
4577 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4581 echo "configure:4582: checking for $ac_hdr" >&5
4582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4585 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4591 { (eval echo configure:4592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4593 if test -z "$ac_err"; then
4595 eval "ac_cv_header_$ac_safe=yes"
4598 echo "configure: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4601 eval "ac_cv_header_$ac_safe=no"
4605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4606 echo "$ac_t""yes" 1>&6
4607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4608 cat >> confdefs.h <<EOF
4609 #define $ac_tr_hdr 1
4613 echo "$ac_t""no" 1>&6
4617 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4621 echo "configure:4622: checking for $ac_hdr" >&5
4622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4631 { (eval echo configure:4632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4633 if test -z "$ac_err"; then
4635 eval "ac_cv_header_$ac_safe=yes"
4638 echo "configure: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4641 eval "ac_cv_header_$ac_safe=no"
4645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4648 cat >> confdefs.h <<EOF
4649 #define $ac_tr_hdr 1
4653 echo "$ac_t""no" 1>&6
4657 for ac_hdr in dlfcn.h image.h
4659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4661 echo "configure:4662: checking for $ac_hdr" >&5
4662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4671 { (eval echo configure:4672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4673 if test -z "$ac_err"; then
4675 eval "ac_cv_header_$ac_safe=yes"
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4681 eval "ac_cv_header_$ac_safe=no"
4685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4688 cat >> confdefs.h <<EOF
4689 #define $ac_tr_hdr 1
4693 echo "$ac_t""no" 1>&6
4697 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4701 echo "configure:4702: checking for $ac_hdr" >&5
4702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4711 { (eval echo configure:4712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4713 if test -z "$ac_err"; then
4715 eval "ac_cv_header_$ac_safe=yes"
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4721 eval "ac_cv_header_$ac_safe=no"
4725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4726 echo "$ac_t""yes" 1>&6
4727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4728 cat >> confdefs.h <<EOF
4729 #define $ac_tr_hdr 1
4733 echo "$ac_t""no" 1>&6
4737 for ac_hdr in machine/param.h sys/shm.h
4739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4741 echo "configure:4742: checking for $ac_hdr" >&5
4742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4751 { (eval echo configure:4752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4753 if test -z "$ac_err"; then
4755 eval "ac_cv_header_$ac_safe=yes"
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4761 eval "ac_cv_header_$ac_safe=no"
4765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4766 echo "$ac_t""yes" 1>&6
4767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4768 cat >> confdefs.h <<EOF
4769 #define $ac_tr_hdr 1
4773 echo "$ac_t""no" 1>&6
4777 for ac_hdr in linux/version.h
4779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4781 echo "configure:4782: checking for $ac_hdr" >&5
4782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4791 { (eval echo configure:4792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4793 if test -z "$ac_err"; then
4795 eval "ac_cv_header_$ac_safe=yes"
4798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4801 eval "ac_cv_header_$ac_safe=no"
4805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4806 echo "$ac_t""yes" 1>&6
4807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4808 cat >> confdefs.h <<EOF
4809 #define $ac_tr_hdr 1
4813 echo "$ac_t""no" 1>&6
4818 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4819 echo "configure:4820: checking whether time.h and sys/time.h may both be included" >&5
4820 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4826 #include <sys/types.h>
4827 #include <sys/time.h>
4833 if { (eval echo configure:4834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4835 ac_cv_header_time=yes
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 ac_cv_header_time=no
4845 echo "$ac_t""$ac_cv_header_time" 1>&6
4846 if test $ac_cv_header_time = yes; then
4847 cat >> confdefs.h <<\EOF
4848 #define TIME_WITH_SYS_TIME 1
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860 egrep "nanosleep" >/dev/null 2>&1; then
4863 cat >> confdefs.h <<\EOF
4864 #define HAVE_DECL_NANOSLEEP 1
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4875 #include <sys/time.h>
4877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4878 egrep "timespec" >/dev/null 2>&1; then
4881 cat >> confdefs.h <<\EOF
4882 #define HAVE_STRUCT_TIMESPEC 1
4890 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4894 echo "configure:4895: checking for $ac_hdr" >&5
4895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4904 { (eval echo configure:4905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4906 if test -z "$ac_err"; then
4908 eval "ac_cv_header_$ac_safe=yes"
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4914 eval "ac_cv_header_$ac_safe=no"
4918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4921 cat >> confdefs.h <<EOF
4922 #define $ac_tr_hdr 1
4926 echo "$ac_t""no" 1>&6
4931 if test "x${x_includes}" = "xNONE"; then
4932 x_includes="/usr/X11R6/include"
4934 if test "x${x_libraries}" = "xNONE"; then
4935 x_libraries="/usr/X11R6/lib"
4938 if test "x${SYS}" != "xmingw32"
4940 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
4941 for ac_hdr in X11/extensions/dpms.h
4943 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4945 echo "configure:4946: checking for $ac_hdr" >&5
4946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4955 { (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4957 if test -z "$ac_err"; then
4959 eval "ac_cv_header_$ac_safe=yes"
4962 echo "configure: failed program was:" >&5
4963 cat conftest.$ac_ext >&5
4965 eval "ac_cv_header_$ac_safe=no"
4969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4970 echo "$ac_t""yes" 1>&6
4971 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4972 cat >> confdefs.h <<EOF
4973 #define $ac_tr_hdr 1
4976 cat > conftest.$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4979 #include <X11/extensions/dpms.h>
4981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4982 egrep "DPMSInfo" >/dev/null 2>&1; then
4985 cat >> confdefs.h <<\EOF
4986 #define DPMSINFO_IN_DPMS_H 1
4995 echo "$ac_t""no" 1>&6
4999 CPPFLAGS="${save_CPPFLAGS}"
5002 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5003 echo "configure:5004: checking for ntohl in sys/param.h" >&5
5004 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5007 CFLAGS="${save_CFLAGS} -Wall -Werror"
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 #include <sys/param.h>
5013 void foo() { int meuh; ntohl(meuh); }
5016 if { (eval echo configure:5017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5018 ac_cv_c_ntohl_sys_param_h=yes
5020 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5023 ac_cv_c_ntohl_sys_param_h=no
5028 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5029 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5030 cat >> confdefs.h <<\EOF
5031 #define NTOHL_IN_SYS_PARAM_H 1
5036 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5037 echo "configure:5038: checking if \$CC accepts -finline-limit" >&5
5038 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5050 if { (eval echo configure:5051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5052 ac_cv_c_inline_limit=yes
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5057 ac_cv_c_inline_limit=no
5062 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5063 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5064 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5067 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5068 echo "configure:5069: checking if \$CC accepts -Wall -Winline" >&5
5069 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5081 if { (eval echo configure:5082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5083 ac_cv_c_Wall_Winline=yes
5085 echo "configure: failed program was:" >&5
5086 cat conftest.$ac_ext >&5
5088 ac_cv_c_Wall_Winline=no
5093 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5094 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5095 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5097 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5098 echo "configure:5099: checking if \$CC accepts -wall -winline" >&5
5099 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5102 CFLAGS="-wall -winline ${save_CFLAGS}"
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5111 if { (eval echo configure:5112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5113 ac_cv_c_wall_winline=yes
5115 echo "configure: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5118 ac_cv_c_wall_winline=no
5123 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5124 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5125 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5129 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5130 echo "configure:5131: checking if \$CC accepts -pipe" >&5
5131 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5134 CFLAGS="${save_CFLAGS} -pipe"
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5143 if { (eval echo configure:5144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5147 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5155 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5156 if test "x${ac_cv_c_pipe}" != "xno"; then
5157 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5160 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5161 echo "configure:5162: checking if \$CC accepts -O3" >&5
5162 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 CFLAGS="${save_CFLAGS} -O3"
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5174 if { (eval echo configure:5175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5186 echo "$ac_t""$ac_cv_c_o3" 1>&6
5187 if test "x${ac_cv_c_o3}" != "xno"; then
5188 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5190 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5191 echo "configure:5192: checking if \$CC accepts -O2" >&5
5192 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 CFLAGS="${save_CFLAGS} -O2"
5196 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5204 if { (eval echo configure:5205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5216 echo "$ac_t""$ac_cv_c_o2" 1>&6
5217 if test "x${ac_cv_c_o2}" != "xno"; then
5218 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5220 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5221 echo "configure:5222: checking if \$CC accepts -O" >&5
5222 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 CFLAGS="${save_CFLAGS} -O"
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5234 if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5246 echo "$ac_t""$ac_cv_c_o" 1>&6
5247 if test "x${ac_cv_c_o}" != "xno"; then
5248 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5253 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5254 echo "configure:5255: checking if \$CC accepts -ffast-math" >&5
5255 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5256 echo $ac_n "(cached) $ac_c" 1>&6
5258 CFLAGS="${save_CFLAGS} -ffast-math"
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5267 if { (eval echo configure:5268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5269 ac_cv_c_fast_math=yes
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5274 ac_cv_c_fast_math=no
5279 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5280 if test "x${ac_cv_c_fast_math}" != "xno"; then
5281 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5284 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5285 echo "configure:5286: checking if \$CC accepts -funroll-loops" >&5
5286 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 CFLAGS="${save_CFLAGS} -funroll-loops"
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5298 if { (eval echo configure:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5300 ac_cv_c_unroll_loops=yes
5302 echo "configure: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5305 ac_cv_c_unroll_loops=no
5310 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5311 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5312 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5315 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5316 echo "configure:5317: checking if \$CC accepts -fomit-frame-pointer" >&5
5317 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5320 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5329 if { (eval echo configure:5330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5331 ac_cv_c_omit_frame_pointer=yes
5333 echo "configure: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5336 ac_cv_c_omit_frame_pointer=no
5341 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5342 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5343 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5344 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5345 chroma_i420_yuy2_mmx_CFLAGS="${chroma_i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5348 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5349 echo "configure:5350: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5350 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5354 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5362 if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5374 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5375 if test "x${ac_cv_ld_darwin}" != "xno"; then
5376 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5379 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5380 echo "configure:5381: checking if \$CC accepts -shared" >&5
5381 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 CFLAGS="${save_CFLAGS} -shared"
5385 cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5393 if { (eval echo configure:5394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5395 ac_cv_ld_plugins=yes
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5405 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5406 if test "x${ac_cv_ld_plugins}" != "xno"; then
5407 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5410 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5411 echo "configure:5412: checking for variadic cpp macros" >&5
5412 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5415 CFLAGS="${save_CFLAGS}"
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5420 #define a(b,c...) printf(b,##c)
5422 a("foo");a("%s","bar");a("%s%s","baz","quux");
5425 if { (eval echo configure:5426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5427 ac_cv_cpp_variadic_macros=yes
5429 echo "configure: failed program was:" >&5
5430 cat conftest.$ac_ext >&5
5432 ac_cv_cpp_variadic_macros=no
5437 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5438 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5439 cat >> confdefs.h <<\EOF
5440 #define HAVE_VARIADIC_MACROS 1
5445 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5446 echo "configure:5447: checking __attribute__ ((aligned ())) support" >&5
5447 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5450 ac_cv_c_attribute_aligned=0
5451 CFLAGS="${save_CFLAGS} -Werror"
5452 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5453 cat > conftest.$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5458 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5461 if { (eval echo configure:5462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5463 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5465 echo "configure: failed program was:" >&5
5466 cat conftest.$ac_ext >&5
5470 CFLAGS="${save_CFLAGS}"
5473 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5474 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5475 cat >> confdefs.h <<EOF
5476 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5481 case "x${target_cpu}" in
5486 ARCH="${target_cpu}"
5490 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
5491 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"
5493 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5494 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5495 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5496 SSE_MODULES="imdctsse downmixsse"
5497 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5499 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5500 echo "configure:5501: checking if \$CC groks MMX inline assembly" >&5
5501 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5504 CFLAGS="${save_CFLAGS}"
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5510 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5513 if { (eval echo configure:5514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5515 ac_cv_mmx_inline=yes
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5525 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5526 if test "x${ac_cv_mmx_inline}" != "xno"; then
5527 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5530 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5531 echo "configure:5532: checking if \$CC groks MMX EXT inline assembly" >&5
5532 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5533 echo $ac_n "(cached) $ac_c" 1>&6
5535 CFLAGS="${save_CFLAGS}"
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5541 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5544 if { (eval echo configure:5545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5546 ac_cv_mmxext_inline=yes
5548 echo "configure: failed program was:" >&5
5549 cat conftest.$ac_ext >&5
5551 ac_cv_mmxext_inline=no
5556 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5557 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5558 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5561 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5562 echo "configure:5563: checking if \$CC groks 3D Now! inline assembly" >&5
5563 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5564 echo $ac_n "(cached) $ac_c" 1>&6
5566 CFLAGS="${save_CFLAGS}"
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5572 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5575 if { (eval echo configure:5576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5577 ac_cv_3dnow_inline=yes
5579 echo "configure: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5582 ac_cv_3dnow_inline=no
5587 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5588 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5589 cat >> confdefs.h <<\EOF
5590 #define CAN_COMPILE_3DNOW 1
5593 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5596 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5597 echo "configure:5598: checking if \$CC groks SSE inline assembly" >&5
5598 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5599 echo $ac_n "(cached) $ac_c" 1>&6
5601 CFLAGS="${save_CFLAGS}"
5602 cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5607 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5610 if { (eval echo configure:5611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5612 ac_cv_sse_inline=yes
5614 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5622 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5623 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5624 cat >> confdefs.h <<\EOF
5625 #define CAN_COMPILE_SSE 1
5628 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5631 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5632 # we should be able to remove this test with future versions of mingw32
5633 if test "x${SYS}" != "xmingw32"; then
5634 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5635 echo "configure:5636: checking if \$CC groks AltiVec inline assembly" >&5
5636 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5637 echo $ac_n "(cached) $ac_c" 1>&6
5639 CFLAGS="${save_CFLAGS}"
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5645 asm volatile("vperm 0,1,2,3");
5648 if { (eval echo configure:5649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5650 ac_cv_altivec_inline=yes
5652 echo "configure: failed program was:" >&5
5653 cat conftest.$ac_ext >&5
5655 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5661 asm volatile("vperm 0,1,2,3");
5664 if { (eval echo configure:5665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5666 ac_cv_altivec_inline="-Wa,-m7400"
5668 echo "configure: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5671 ac_cv_altivec_inline=no
5679 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5680 if test "x${ac_cv_altivec_inline}" != "xno"; then
5681 cat >> confdefs.h <<\EOF
5682 #define CAN_COMPILE_ALTIVEC 1
5685 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5686 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5687 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5688 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5689 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5691 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5694 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5695 echo "configure:5696: checking if \$CC groks AltiVec C extensions" >&5
5696 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5697 echo $ac_n "(cached) $ac_c" 1>&6
5699 CFLAGS="${save_CFLAGS} -faltivec"
5701 cat > conftest.$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5706 vec_mtvscr((vector unsigned int)(0));
5709 if { (eval echo configure:5710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5711 ac_cv_c_altivec=-faltivec
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5718 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5719 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5724 vec_mtvscr((vector unsigned int)(0));
5727 if { (eval echo configure:5728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5729 ac_cv_c_altivec="-fvec"
5731 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5740 CFLAGS="${save_CFLAGS}"
5743 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5744 if test "x${ac_cv_c_altivec}" != "xno"; then
5745 cat >> confdefs.h <<\EOF
5746 #define CAN_COMPILE_C_ALTIVEC 1
5749 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5750 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5751 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5752 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5753 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5756 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5757 echo "configure:5758: checking if linker needs -framework vecLib" >&5
5758 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5770 if { (eval echo configure:5771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5772 ac_cv_ld_altivec=yes
5774 echo "configure: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5780 LDFLAGS="${save_LDFLAGS}"
5784 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5785 if test "x${ac_cv_ld_altivec}" != "xno"; then
5786 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5787 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5788 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5789 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5794 # Check whether --with- or --without- was given.
5795 if test "${with_+set}" = set; then
5800 # Check whether --with- or --without- was given.
5801 if test "${with_+set}" = set; then
5807 # Check whether --with-tuning or --without-tuning was given.
5808 if test "${with_tuning+set}" = set; then
5809 withval="$with_tuning"
5813 if test "x${with_tuning}" != "x"; then
5814 TUNING="${with_tuning}"
5816 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5818 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5822 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
5825 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5828 # Check whether --enable-optimizations or --disable-optimizations was given.
5829 if test "${enable_optimizations+set}" = set; then
5830 enableval="$enable_optimizations"
5831 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
5837 # Check whether --enable-altivec or --disable-altivec was given.
5838 if test "${enable_altivec+set}" = set; then
5839 enableval="$enable_altivec"
5840 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
5841 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5843 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
5844 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5849 # Check whether --enable-debug or --disable-debug was given.
5850 if test "${enable_debug+set}" = set; then
5851 enableval="$enable_debug"
5852 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
5857 # Check whether --enable-release or --disable-release was given.
5858 if test "${enable_release+set}" = set; then
5859 enableval="$enable_release"
5860 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
5862 VERSION="${VERSION}_`date +%Y-%m-%d`"
5867 # Check whether --with- or --without- was given.
5868 if test "${with_+set}" = set; then
5874 # Check whether --enable-dvd or --disable-dvd was given.
5875 if test "${enable_dvd+set}" = set; then
5876 enableval="$enable_dvd"
5880 if test "x${enable_dvd}" != "xno"
5882 # Check whether --with-dvdcss or --without-dvdcss was given.
5883 if test "${with_dvdcss+set}" = set; then
5884 withval="$with_dvdcss"
5888 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5889 if test "${with_dvdcss_tree+set}" = set; then
5890 withval="$with_dvdcss_tree"
5894 case "x${with_dvdcss}" in
5896 if test "x${with_dvdcss_tree}" = x
5898 for ac_hdr in dvdcss/dvdcss.h
5900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5902 echo "configure:5903: checking for $ac_hdr" >&5
5903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5912 { (eval echo configure:5913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5914 if test -z "$ac_err"; then
5916 eval "ac_cv_header_$ac_safe=yes"
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 eval "ac_cv_header_$ac_safe=no"
5926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5929 cat >> confdefs.h <<EOF
5930 #define $ac_tr_hdr 1
5932 PLUGINS="${PLUGINS} dvd"
5933 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5935 echo "$ac_t""no" 1>&6
5936 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
5937 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5942 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5943 echo "configure:5944: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5944 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5945 if test "x${real_dvdcss_tree}" = "x"
5947 echo "$ac_t""no" 1>&6
5948 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5950 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5952 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5953 BUILTINS="${BUILTINS} dvd"
5954 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5955 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5957 echo "$ac_t""no" 1>&6
5958 { 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; }
5963 PLUGINS="${PLUGINS} dvd"
5964 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5965 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5968 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5969 echo "configure:5970: checking for dvdcss headers in ${with_dvdcss}" >&5
5970 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5972 echo "$ac_t""yes" 1>&6
5973 PLUGINS="${PLUGINS} dvd"
5974 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5975 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5977 echo "$ac_t""no" 1>&6
5978 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5984 # Check whether --enable-dvdread or --disable-dvdread was given.
5985 if test "${enable_dvdread+set}" = set; then
5986 enableval="$enable_dvdread"
5990 if test "x${enable_dvdread}" != "xno"
5992 # Check whether --with-dvdread or --without-dvdread was given.
5993 if test "${with_dvdread+set}" = set; then
5994 withval="$with_dvdread"
5998 if test "x${with_dvdread}" = "x"
6003 test_LDFLAGS="-L${with_dvdread}/lib"
6004 test_CFLAGS="-I${with_dvdread}/include"
6006 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6007 for ac_hdr in dvdread/dvd_reader.h
6009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6011 echo "configure:6012: checking for $ac_hdr" >&5
6012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6013 echo $ac_n "(cached) $ac_c" 1>&6
6015 cat > conftest.$ac_ext <<EOF
6016 #line 6017 "configure"
6017 #include "confdefs.h"
6020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6021 { (eval echo configure:6022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6023 if test -z "$ac_err"; then
6025 eval "ac_cv_header_$ac_safe=yes"
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 eval "ac_cv_header_$ac_safe=no"
6035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6036 echo "$ac_t""yes" 1>&6
6037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6038 cat >> confdefs.h <<EOF
6039 #define $ac_tr_hdr 1
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 #include <dvdread/dvd_reader.h>
6047 void foo() { int i=DVD_VIDEO_LB_LEN; }
6050 if { (eval echo configure:6051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6053 PLUGINS="${PLUGINS} dvdread"
6054 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6055 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6062 if test "x${enable_dvdread}" != "x"
6064 { 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; }
6071 echo "$ac_t""no" 1>&6
6072 if test "x${enable_dvdread}" != "x"
6074 if test "x${with_dvdread}" != "x"
6076 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6078 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6085 CPPFLAGS="${save_CPPFLAGS}"
6088 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6089 if test "${enable_dvbpsi+set}" = set; then
6090 enableval="$enable_dvbpsi"
6094 if test "x${enable_dvbpsi}" != "xno"
6096 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6097 if test "${with_dvbpsi+set}" = set; then
6098 withval="$with_dvbpsi"
6102 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6103 if test "${with_dvbpsi+set}" = set; then
6104 withval="$with_dvbpsi"
6108 case "x${with_dvbpsi}" in
6110 if test "x${with_dvbpsi_tree}" = "x"
6112 for ac_hdr in dvbpsi/dr.h
6114 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6115 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6116 echo "configure:6117: checking for $ac_hdr" >&5
6117 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6118 echo $ac_n "(cached) $ac_c" 1>&6
6120 cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6126 { (eval echo configure:6127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6128 if test -z "$ac_err"; then
6130 eval "ac_cv_header_$ac_safe=yes"
6133 echo "configure: failed program was:" >&5
6134 cat conftest.$ac_ext >&5
6136 eval "ac_cv_header_$ac_safe=no"
6140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6141 echo "$ac_t""yes" 1>&6
6142 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6143 cat >> confdefs.h <<EOF
6144 #define $ac_tr_hdr 1
6146 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6147 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6149 echo "$ac_t""no" 1>&6
6154 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6155 echo "configure:6156: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6156 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6157 if test "x${real_dvbpsi_tree}" = "x"
6159 echo "$ac_t""no" 1>&6
6160 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6162 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6164 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6165 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6166 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6167 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6169 echo "$ac_t""no" 1>&6
6170 { 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; }
6177 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6178 echo "configure:6179: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6179 if test "x${with_dvbpsi}" = "x"
6184 test_LDFLAGS="-L${with_dvbpsi}/lib"
6185 test_CFLAGS="-I${with_dvbpsi}/include"
6187 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6188 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6189 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6190 echo "configure:6191: checking for dvbpsi/dr.h" >&5
6191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6194 cat > conftest.$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6197 #include <dvbpsi/dr.h>
6199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6200 { (eval echo configure:6201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6202 if test -z "$ac_err"; then
6204 eval "ac_cv_header_$ac_safe=yes"
6207 echo "configure: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6210 eval "ac_cv_header_$ac_safe=no"
6214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6215 echo "$ac_t""yes" 1>&6
6217 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6218 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6219 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6222 echo "$ac_t""no" 1>&6
6224 if test "x${enable_dvbpsi}" != "x"
6226 { 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; }
6231 CPPFLAGS="${save_CPPFLAGS}"
6236 # Check whether --enable-vcd or --disable-vcd was given.
6237 if test "${enable_vcd+set}" = set; then
6238 enableval="$enable_vcd"
6243 if test "x${enable_vcd}" != "xno"
6245 cat > conftest.$ac_ext <<EOF
6246 #line 6247 "configure"
6247 #include "confdefs.h"
6248 #include <linux/cdrom.h>
6250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6251 egrep "cdrom_msf0" >/dev/null 2>&1; then
6254 PLUGINS="${PLUGINS} vcd"
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 #include <sys/cdio.h>
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 egrep "ioc_toc_header " >/dev/null 2>&1; then
6269 PLUGINS="${PLUGINS} vcd"
6270 cat >> confdefs.h <<\EOF
6271 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6279 if test "x${SYS}" = "xbsdi"
6281 PLUGINS="${PLUGINS} vcd"
6284 if test "x${SYS}" = "xdarwin"
6286 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6287 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6291 # Check whether --enable-satellite or --disable-satellite was given.
6292 if test "${enable_satellite+set}" = set; then
6293 enableval="$enable_satellite"
6294 if test "x${enable_satellite}" = "xyes"
6296 PLUGINS="${PLUGINS} satellite"
6301 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6303 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6304 echo "configure:6305: checking for inet_pton" >&5
6305 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6306 echo $ac_n "(cached) $ac_c" 1>&6
6308 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6311 /* System header to define __stub macros and hopefully few prototypes,
6312 which can conflict with char inet_pton(); below. */
6314 /* Override any gcc2 internal prototype to avoid an error. */
6315 /* We use char because int might match the return type of a gcc2
6316 builtin and then its argument prototype would still apply. */
6321 /* The GNU C library defines this for functions which it implements
6322 to always fail with ENOSYS. Some functions are actually named
6323 something starting with __ and the normal name is an alias. */
6324 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6334 eval "ac_cv_func_inet_pton=yes"
6336 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6339 eval "ac_cv_func_inet_pton=no"
6344 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6345 echo "$ac_t""yes" 1>&6
6346 PLUGINS="${PLUGINS} ipv6"
6348 echo "$ac_t""no" 1>&6
6350 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6351 echo "configure:6352: checking for inet_pton in -lresolv" >&5
6352 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 ac_save_LIBS="$LIBS"
6357 LIBS="-lresolv $LIBS"
6358 cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* Override any gcc2 internal prototype to avoid an error. */
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6370 if { (eval echo configure:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6372 eval "ac_cv_lib_$ac_lib_var=yes"
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6377 eval "ac_cv_lib_$ac_lib_var=no"
6380 LIBS="$ac_save_LIBS"
6383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6384 echo "$ac_t""yes" 1>&6
6385 PLUGINS="${PLUGINS} ipv6"
6386 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6388 echo "$ac_t""no" 1>&6
6395 if test "x${SYS}" = "xmingw32"
6397 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6398 echo "configure:6399: checking for getaddrinfo in ws2tcpip.h" >&5
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 #include <ws2tcpip.h>
6404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6405 egrep "addrinfo" >/dev/null 2>&1; then
6407 echo "$ac_t""yes" 1>&6
6408 PLUGINS="${PLUGINS} ipv6"
6411 echo "$ac_t""no" 1>&6
6417 # Check whether --enable-avi or --disable-avi was given.
6418 if test "${enable_avi+set}" = set; then
6419 enableval="$enable_avi"
6423 if test "x${enable_avi}" != "xno"
6425 PLUGINS="${PLUGINS} avi"
6429 # Check whether --with- or --without- was given.
6430 if test "${with_+set}" = set; then
6436 # Check whether --enable-mad or --disable-mad was given.
6437 if test "${enable_mad+set}" = set; then
6438 enableval="$enable_mad"
6442 if test "x${enable_mad}" = "xyes"
6444 # Check whether --with-mad or --without-mad was given.
6445 if test "${with_mad+set}" = set; then
6450 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6452 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6453 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6456 # Check whether --with-mad-tree or --without-mad-tree was given.
6457 if test "${with_mad_tree+set}" = set; then
6458 withval="$with_mad_tree"
6462 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6464 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6465 if test "x${real_mad_tree}" = "x"
6467 echo "$ac_t""no" 1>&6
6468 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6470 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6471 echo "configure:6472: checking for mad.h in ${real_mad_tree}/libmad" >&5
6472 if test -f ${real_mad_tree}/libmad/mad.h
6474 echo "$ac_t""yes" 1>&6
6475 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6476 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6477 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6478 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6479 echo "configure:6480: checking for mad_bit_init in -lmad" >&5
6480 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6481 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6484 ac_save_LIBS="$LIBS"
6486 cat > conftest.$ac_ext <<EOF
6487 #line 6488 "configure"
6488 #include "confdefs.h"
6489 /* Override any gcc2 internal prototype to avoid an error. */
6490 /* We use char because int might match the return type of a gcc2
6491 builtin and then its argument prototype would still apply. */
6492 char mad_bit_init();
6498 if { (eval echo configure:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6500 eval "ac_cv_lib_$ac_lib_var=yes"
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6505 eval "ac_cv_lib_$ac_lib_var=no"
6508 LIBS="$ac_save_LIBS"
6511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6512 echo "$ac_t""yes" 1>&6
6514 BUILTINS="${BUILTINS} mad"
6515 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6518 echo "$ac_t""no" 1>&6
6519 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6523 LDFLAGS="${save_LDFLAGS}"
6525 echo "$ac_t""no" 1>&6
6526 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6529 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6530 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6535 echo "configure:6536: checking for $ac_hdr" >&5
6536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6537 echo $ac_n "(cached) $ac_c" 1>&6
6539 cat > conftest.$ac_ext <<EOF
6540 #line 6541 "configure"
6541 #include "confdefs.h"
6544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6545 { (eval echo configure:6546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6547 if test -z "$ac_err"; then
6549 eval "ac_cv_header_$ac_safe=yes"
6552 echo "configure: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6555 eval "ac_cv_header_$ac_safe=no"
6559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6560 echo "$ac_t""yes" 1>&6
6561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6562 cat >> confdefs.h <<EOF
6563 #define $ac_tr_hdr 1
6567 echo "$ac_t""no" 1>&6
6568 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6572 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6573 echo "configure:6574: checking for mad_bit_init in -lmad" >&5
6574 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 ac_save_LIBS="$LIBS"
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6586 char mad_bit_init();
6592 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6594 eval "ac_cv_lib_$ac_lib_var=yes"
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 eval "ac_cv_lib_$ac_lib_var=no"
6602 LIBS="$ac_save_LIBS"
6605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6606 echo "$ac_t""yes" 1>&6
6608 PLUGINS="${PLUGINS} mad"
6609 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6611 echo "$ac_t""no" 1>&6
6612 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6615 CFLAGS="${save_CFLAGS}"
6616 LDFLAGS="${save_LDFLAGS}"
6620 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6621 if test "${enable_ffmpeg+set}" = set; then
6622 enableval="$enable_ffmpeg"
6626 if test "x${enable_ffmpeg}" = "xyes"
6628 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6629 if test "${with_ffmpeg+set}" = set; then
6630 withval="$with_ffmpeg"
6634 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6636 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6637 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6640 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6641 if test "${with_ffmpeg_tree+set}" = set; then
6642 withval="$with_ffmpeg_tree"
6646 if test "x${with_ffmpeg_tree}" != "x"
6648 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6649 echo "configure:6650: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6650 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6651 if test "x${real_ffmpeg_tree}" = x
6653 echo "$ac_t""no" 1>&6
6654 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6656 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6658 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6659 BUILTINS="${BUILTINS} ffmpeg"
6660 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6661 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6663 echo "$ac_t""no" 1>&6
6664 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6667 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
6668 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
6669 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6670 echo "configure:6671: checking for avcodec_init in -lavcodec" >&5
6671 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6675 ac_save_LIBS="$LIBS"
6676 LIBS="-lavcodec $LIBS"
6677 cat > conftest.$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6680 /* Override any gcc2 internal prototype to avoid an error. */
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6683 char avcodec_init();
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 eval "ac_cv_lib_$ac_lib_var=yes"
6693 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6696 eval "ac_cv_lib_$ac_lib_var=no"
6699 LIBS="$ac_save_LIBS"
6702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6703 echo "$ac_t""yes" 1>&6
6705 BUILTINS="${BUILTINS} ffmpeg"
6706 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6708 echo "$ac_t""no" 1>&6
6709 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6712 LDFLAGS="${save_LDFLAGS}"
6713 CFLAGS="${save_CFLAGS}"
6718 if test "x${SYS}" = "xbeos"
6720 PLUGINS="${PLUGINS} beos"
6723 # Check whether --enable-a52 or --disable-a52 was given.
6724 if test "${enable_a52+set}" = set; then
6725 enableval="$enable_a52"
6729 if test "x${enable_a52}" != "xno"
6731 # Check whether --with-a52-tree or --without-a52-tree was given.
6732 if test "${with_a52_tree+set}" = set; then
6733 withval="$with_a52_tree"
6737 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
6739 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6740 if test "x${real_a52_tree}" = "x"
6742 echo "$ac_t""no" 1>&6
6743 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6745 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6746 echo "configure:6747: checking for a52.h in ${real_a52_tree}/include" >&5
6747 if test -f ${real_a52_tree}/include/a52.h
6749 echo "$ac_t""yes" 1>&6
6750 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6751 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6752 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
6753 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6754 echo "configure:6755: checking for a52_free in -la52" >&5
6755 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6759 ac_save_LIBS="$LIBS"
6760 LIBS="-la52 -lm $LIBS"
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 /* Override any gcc2 internal prototype to avoid an error. */
6765 /* We use char because int might match the return type of a gcc2
6766 builtin and then its argument prototype would still apply. */
6773 if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6775 eval "ac_cv_lib_$ac_lib_var=yes"
6777 echo "configure: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6780 eval "ac_cv_lib_$ac_lib_var=no"
6783 LIBS="$ac_save_LIBS"
6786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6789 BUILTINS="${BUILTINS} a52"
6790 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6791 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6794 echo "$ac_t""no" 1>&6
6796 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6798 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6800 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6805 LDFLAGS="${save_LDFLAGS}"
6807 echo "$ac_t""no" 1>&6
6808 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6810 else for ac_hdr in a52dec/a52.h
6812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6814 echo "configure:6815: checking for $ac_hdr" >&5
6815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6816 echo $ac_n "(cached) $ac_c" 1>&6
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6824 { (eval echo configure:6825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6826 if test -z "$ac_err"; then
6828 eval "ac_cv_header_$ac_safe=yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6834 eval "ac_cv_header_$ac_safe=no"
6838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6839 echo "$ac_t""yes" 1>&6
6840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6841 cat >> confdefs.h <<EOF
6842 #define $ac_tr_hdr 1
6845 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6846 echo "configure:6847: checking for a52_free in -la52" >&5
6847 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6849 echo $ac_n "(cached) $ac_c" 1>&6
6851 ac_save_LIBS="$LIBS"
6852 LIBS="-la52 -lm $LIBS"
6853 cat > conftest.$ac_ext <<EOF
6854 #line 6855 "configure"
6855 #include "confdefs.h"
6856 /* Override any gcc2 internal prototype to avoid an error. */
6857 /* We use char because int might match the return type of a gcc2
6858 builtin and then its argument prototype would still apply. */
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6867 eval "ac_cv_lib_$ac_lib_var=yes"
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 eval "ac_cv_lib_$ac_lib_var=no"
6875 LIBS="$ac_save_LIBS"
6878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6879 echo "$ac_t""yes" 1>&6
6881 BUILTINS="${BUILTINS} a52"
6882 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6883 a52_CFLAGS="${a52_CFLAGS}"
6886 echo "$ac_t""no" 1>&6
6891 echo "$ac_t""no" 1>&6
6898 # Check whether --enable-vorbis or --disable-vorbis was given.
6899 if test "${enable_vorbis+set}" = set; then
6900 enableval="$enable_vorbis"
6904 if test "x${enable_vorbis}" != "xno"
6906 for ac_hdr in ogg/ogg.h
6908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_hdr" >&5
6911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6920 { (eval echo configure:6921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6922 if test -z "$ac_err"; then
6924 eval "ac_cv_header_$ac_safe=yes"
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 eval "ac_cv_header_$ac_safe=no"
6934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6935 echo "$ac_t""yes" 1>&6
6936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6937 cat >> confdefs.h <<EOF
6938 #define $ac_tr_hdr 1
6941 #PLUGINS="${PLUGINS} vorbis"
6942 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6945 echo "$ac_t""no" 1>&6
6952 # Check whether --with- or --without- was given.
6953 if test "${with_+set}" = set; then
6959 # Check whether --enable-x11 or --disable-x11 was given.
6960 if test "${enable_x11+set}" = set; then
6961 enableval="$enable_x11"
6965 if test "x${enable_x11}" != "xno" &&
6966 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
6967 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
6968 for ac_hdr in X11/Xlib.h
6970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6972 echo "configure:6973: checking for $ac_hdr" >&5
6973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6974 echo $ac_n "(cached) $ac_c" 1>&6
6976 cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure"
6978 #include "confdefs.h"
6981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6982 { (eval echo configure:6983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6984 if test -z "$ac_err"; then
6986 eval "ac_cv_header_$ac_safe=yes"
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 eval "ac_cv_header_$ac_safe=no"
6996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6997 echo "$ac_t""yes" 1>&6
6998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6999 cat >> confdefs.h <<EOF
7000 #define $ac_tr_hdr 1
7003 PLUGINS="${PLUGINS} x11"
7004 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7005 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7008 echo "$ac_t""no" 1>&6
7012 CPPFLAGS="${save_CPPFLAGS}"
7015 # Check whether --enable-xvideo or --disable-xvideo was given.
7016 if test "${enable_xvideo+set}" = set; then
7017 enableval="$enable_xvideo"
7021 if test "x${enable_xvideo}" != "xno" &&
7022 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7023 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7024 for ac_hdr in X11/extensions/Xv.h
7026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7028 echo "configure:7029: checking for $ac_hdr" >&5
7029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7032 cat > conftest.$ac_ext <<EOF
7033 #line 7034 "configure"
7034 #include "confdefs.h"
7037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7038 { (eval echo configure:7039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7040 if test -z "$ac_err"; then
7042 eval "ac_cv_header_$ac_safe=yes"
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7048 eval "ac_cv_header_$ac_safe=no"
7052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7055 cat >> confdefs.h <<EOF
7056 #define $ac_tr_hdr 1
7059 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7060 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7061 echo "configure:7062: checking for XvPutImage in -lXv_pic" >&5
7062 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 ac_save_LIBS="$LIBS"
7067 LIBS="-lXv_pic $LIBS"
7068 cat > conftest.$ac_ext <<EOF
7069 #line 7070 "configure"
7070 #include "confdefs.h"
7071 /* Override any gcc2 internal prototype to avoid an error. */
7072 /* We use char because int might match the return type of a gcc2
7073 builtin and then its argument prototype would still apply. */
7080 if { (eval echo configure:7081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7082 eval "ac_cv_lib_$ac_lib_var=yes"
7084 echo "configure: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7087 eval "ac_cv_lib_$ac_lib_var=no"
7090 LIBS="$ac_save_LIBS"
7093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7094 echo "$ac_t""yes" 1>&6
7095 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7096 PLUGINS="${PLUGINS} xvideo"
7097 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7098 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7100 echo "$ac_t""no" 1>&6
7101 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7102 echo "configure:7103: checking for XvPutImage in -lXv" >&5
7103 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7105 echo $ac_n "(cached) $ac_c" 1>&6
7107 ac_save_LIBS="$LIBS"
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 /* Override any gcc2 internal prototype to avoid an error. */
7113 /* We use char because int might match the return type of a gcc2
7114 builtin and then its argument prototype would still apply. */
7121 if { (eval echo configure:7122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7123 eval "ac_cv_lib_$ac_lib_var=yes"
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7128 eval "ac_cv_lib_$ac_lib_var=no"
7131 LIBS="$ac_save_LIBS"
7134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7135 echo "$ac_t""yes" 1>&6
7136 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7137 PLUGINS="${PLUGINS} xvideo"
7138 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7139 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7141 echo "$ac_t""no" 1>&6
7142 # Otherwise... well, do nothing.
7149 CFLAGS="${save_CFLAGS}"
7151 CPPFLAGS="${save_CPPFLAGS}"
7153 echo "$ac_t""no" 1>&6
7159 # Check whether --enable-sdl or --disable-sdl was given.
7160 if test "${enable_sdl+set}" = set; then
7161 enableval="$enable_sdl"
7165 if test "x${enable_sdl}" != "xno"
7168 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7169 if test "${with_sdl_config_path+set}" = set; then
7170 withval="$with_sdl_config_path"
7171 if test "x${with_sdl_config_path}" != "xno"
7173 SDL_PATH="${with_sdl_config_path}:${PATH}"
7177 # Extract the first word of "sdl12-config", so it can be a program name with args.
7178 set dummy sdl12-config; ac_word=$2
7179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7180 echo "configure:7181: checking for $ac_word" >&5
7181 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7184 case "$SDL12_CONFIG" in
7186 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7189 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7193 ac_dummy="${SDL_PATH}"
7194 for ac_dir in $ac_dummy; do
7195 test -z "$ac_dir" && ac_dir=.
7196 if test -f $ac_dir/$ac_word; then
7197 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7202 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7206 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7207 if test -n "$SDL12_CONFIG"; then
7208 echo "$ac_t""$SDL12_CONFIG" 1>&6
7210 echo "$ac_t""no" 1>&6
7213 SDL_CONFIG="${SDL12_CONFIG}"
7214 SDL_HEADER="SDL12/SDL.h"
7215 if test "x${SDL_CONFIG}" = "xno"
7217 # Extract the first word of "sdl11-config", so it can be a program name with args.
7218 set dummy sdl11-config; ac_word=$2
7219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7220 echo "configure:7221: checking for $ac_word" >&5
7221 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7222 echo $ac_n "(cached) $ac_c" 1>&6
7224 case "$SDL11_CONFIG" in
7226 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7229 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7233 ac_dummy="${SDL_PATH}"
7234 for ac_dir in $ac_dummy; do
7235 test -z "$ac_dir" && ac_dir=.
7236 if test -f $ac_dir/$ac_word; then
7237 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7242 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7246 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7247 if test -n "$SDL11_CONFIG"; then
7248 echo "$ac_t""$SDL11_CONFIG" 1>&6
7250 echo "$ac_t""no" 1>&6
7253 SDL_CONFIG=${SDL11_CONFIG}
7254 SDL_HEADER="SDL11/SDL.h"
7256 if test "x${SDL_CONFIG}" = "xno"
7258 # Extract the first word of "sdl-config", so it can be a program name with args.
7259 set dummy sdl-config; ac_word=$2
7260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7261 echo "configure:7262: checking for $ac_word" >&5
7262 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7263 echo $ac_n "(cached) $ac_c" 1>&6
7265 case "$SDL_CONFIG" in
7267 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7270 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7274 ac_dummy="${SDL_PATH}"
7275 for ac_dir in $ac_dummy; do
7276 test -z "$ac_dir" && ac_dir=.
7277 if test -f $ac_dir/$ac_word; then
7278 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7283 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7287 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7288 if test -n "$SDL_CONFIG"; then
7289 echo "$ac_t""$SDL_CONFIG" 1>&6
7291 echo "$ac_t""no" 1>&6
7294 SDL_HEADER="SDL/SDL.h"
7296 if test "x${SDL_CONFIG}" != "xno"
7298 PLUGINS="${PLUGINS} sdl"
7299 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7300 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7301 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7302 for ac_hdr in ${SDL_HEADER}
7304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7306 echo "configure:7307: checking for $ac_hdr" >&5
7307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7310 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7316 { (eval echo configure:7317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7318 if test -z "$ac_err"; then
7320 eval "ac_cv_header_$ac_safe=yes"
7323 echo "configure: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7326 eval "ac_cv_header_$ac_safe=no"
7330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7331 echo "$ac_t""yes" 1>&6
7332 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7333 cat >> confdefs.h <<EOF
7334 #define $ac_tr_hdr 1
7336 cat >> confdefs.h <<EOF
7337 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7341 echo "$ac_t""no" 1>&6
7342 { echo "configure: error: The development package for SDL is not installed.
7343 Please install it and try again. Alternatively you can also configure with
7344 --disable-sdl." 1>&2; exit 1; }
7349 CPPFLAGS="${save_CPPFLAGS}"
7350 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7352 { echo "configure: error: The development package for SDL is not installed.
7353 Please install it and try again. Alternatively you can also configure with
7354 --disable-sdl." 1>&2; exit 1; }
7356 elif test "x${enable_sdl}" = "xyes"
7358 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7359 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7364 # Check whether --enable-directx or --disable-directx was given.
7365 if test "${enable_directx+set}" = set; then
7366 enableval="$enable_directx"
7370 if test "x${enable_directx}" != "xno"
7372 if test "x${SYS}" = "xmingw32"
7374 # Check whether --with-directx or --without-directx was given.
7375 if test "${with_directx+set}" = set; then
7376 withval="$with_directx"
7380 if test "x${with_directx}" = "x"
7382 for ac_hdr in ddraw.h
7384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7386 echo "configure:7387: checking for $ac_hdr" >&5
7387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7390 cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7396 { (eval echo configure:7397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7398 if test -z "$ac_err"; then
7400 eval "ac_cv_header_$ac_safe=yes"
7403 echo "configure: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7406 eval "ac_cv_header_$ac_safe=no"
7410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7411 echo "$ac_t""yes" 1>&6
7412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7413 cat >> confdefs.h <<EOF
7414 #define $ac_tr_hdr 1
7416 PLUGINS="${PLUGINS} directx"
7417 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7419 echo "$ac_t""no" 1>&6
7424 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7425 echo "configure:7426: checking for directX headers in ${with_directx}" >&5
7426 if test -f ${with_directx}/ddraw.h
7428 PLUGINS="${PLUGINS} directx"
7429 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7430 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7431 echo "$ac_t""yes" 1>&6
7433 echo "$ac_t""no" 1>&6
7434 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7440 # Check whether --enable-fb or --disable-fb was given.
7441 if test "${enable_fb+set}" = set; then
7442 enableval="$enable_fb"
7446 if test "x${enable_fb}" != "xno"
7448 for ac_hdr in linux/fb.h
7450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7452 echo "configure:7453: checking for $ac_hdr" >&5
7453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7456 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7462 { (eval echo configure:7463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7464 if test -z "$ac_err"; then
7466 eval "ac_cv_header_$ac_safe=yes"
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7472 eval "ac_cv_header_$ac_safe=no"
7476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7477 echo "$ac_t""yes" 1>&6
7478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7479 cat >> confdefs.h <<EOF
7480 #define $ac_tr_hdr 1
7483 PLUGINS="${PLUGINS} fb"
7486 echo "$ac_t""no" 1>&6
7492 # Check whether --enable-mga or --disable-mga was given.
7493 if test "${enable_mga+set}" = set; then
7494 enableval="$enable_mga"
7495 if test "x${enable_mga}" = "xyes"
7497 PLUGINS="${PLUGINS} mga xmga"
7502 # Check whether --enable-ggi or --disable-ggi was given.
7503 if test "${enable_ggi+set}" = set; then
7504 enableval="$enable_ggi"
7508 if test "x${enable_ggi}" = "xyes"
7510 PLUGINS="${PLUGINS} ggi"
7511 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7512 # Check whether --with-ggi or --without-ggi was given.
7513 if test "${with_ggi+set}" = set; then
7515 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
7517 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
7518 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
7524 # Check whether --enable-glide or --disable-glide was given.
7525 if test "${enable_glide+set}" = set; then
7526 enableval="$enable_glide"
7530 if test "x${enable_glide}" = "xyes"
7532 PLUGINS="${PLUGINS} glide"
7533 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7534 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7535 # Check whether --with-glide or --without-glide was given.
7536 if test "${with_glide+set}" = set; then
7537 withval="$with_glide"
7538 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
7540 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
7541 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
7547 # Check whether --enable-aa or --disable-aa was given.
7548 if test "${enable_aa+set}" = set; then
7549 enableval="$enable_aa"
7553 if test "x${enable_aa}" = "xyes"
7555 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7556 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7557 echo "configure:7558: checking for aalib.h" >&5
7558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7561 cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7567 { (eval echo configure:7568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7569 if test -z "$ac_err"; then
7571 eval "ac_cv_header_$ac_safe=yes"
7574 echo "configure: failed program was:" >&5
7575 cat conftest.$ac_ext >&5
7577 eval "ac_cv_header_$ac_safe=no"
7581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7582 echo "$ac_t""yes" 1>&6
7585 echo "$ac_t""no" 1>&6
7589 if test "x${have_aa}" = "xtrue"
7591 PLUGINS="${PLUGINS} aa"
7592 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7597 # Check whether --with- or --without- was given.
7598 if test "${with_+set}" = set; then
7604 # Check whether --enable-dsp or --disable-dsp was given.
7605 if test "${enable_dsp+set}" = set; then
7606 enableval="$enable_dsp"
7611 if test "x${enable_dsp}" != "xno" &&
7612 (test "x${SYS}" != "xmingw32" || test "x${enable_dsp}" = "xyes")
7614 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7618 echo "configure:7619: checking for $ac_hdr" >&5
7619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7620 echo $ac_n "(cached) $ac_c" 1>&6
7622 cat > conftest.$ac_ext <<EOF
7623 #line 7624 "configure"
7624 #include "confdefs.h"
7627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7628 { (eval echo configure:7629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7630 if test -z "$ac_err"; then
7632 eval "ac_cv_header_$ac_safe=yes"
7635 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7638 eval "ac_cv_header_$ac_safe=no"
7642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7643 echo "$ac_t""yes" 1>&6
7644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7645 cat >> confdefs.h <<EOF
7646 #define $ac_tr_hdr 1
7649 PLUGINS="${PLUGINS} dsp"
7650 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7651 echo "configure:7652: checking for main in -lossaudio" >&5
7652 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7654 echo $ac_n "(cached) $ac_c" 1>&6
7656 ac_save_LIBS="$LIBS"
7657 LIBS="-lossaudio $LIBS"
7658 cat > conftest.$ac_ext <<EOF
7659 #line 7660 "configure"
7660 #include "confdefs.h"
7666 if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7668 eval "ac_cv_lib_$ac_lib_var=yes"
7670 echo "configure: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7673 eval "ac_cv_lib_$ac_lib_var=no"
7676 LIBS="$ac_save_LIBS"
7679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7681 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7683 echo "$ac_t""no" 1>&6
7688 echo "$ac_t""no" 1>&6
7694 # Check whether --enable-esd or --disable-esd was given.
7695 if test "${enable_esd+set}" = set; then
7696 enableval="$enable_esd"
7697 if test "x${enable_esd}" = "xyes"
7699 # Extract the first word of "esd-config", so it can be a program name with args.
7700 set dummy esd-config; ac_word=$2
7701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7702 echo "configure:7703: checking for $ac_word" >&5
7703 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7706 case "$ESD_CONFIG" in
7708 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7711 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7716 for ac_dir in $ac_dummy; do
7717 test -z "$ac_dir" && ac_dir=.
7718 if test -f $ac_dir/$ac_word; then
7719 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7724 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7728 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7729 if test -n "$ESD_CONFIG"; then
7730 echo "$ac_t""$ESD_CONFIG" 1>&6
7732 echo "$ac_t""no" 1>&6
7735 if test "x${ESD_CONFIG}" != "xno"
7737 PLUGINS="${PLUGINS} esd"
7738 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7739 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7745 # Check whether --enable-arts or --disable-arts was given.
7746 if test "${enable_arts+set}" = set; then
7747 enableval="$enable_arts"
7748 if test "x${enable_arts}" = "xyes"
7750 # Extract the first word of "artsc-config", so it can be a program name with args.
7751 set dummy artsc-config; ac_word=$2
7752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7753 echo "configure:7754: checking for $ac_word" >&5
7754 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7757 case "$ARTS_CONFIG" in
7759 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7762 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7767 for ac_dir in $ac_dummy; do
7768 test -z "$ac_dir" && ac_dir=.
7769 if test -f $ac_dir/$ac_word; then
7770 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7775 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7779 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7780 if test -n "$ARTS_CONFIG"; then
7781 echo "$ac_t""$ARTS_CONFIG" 1>&6
7783 echo "$ac_t""no" 1>&6
7786 if test "x${ARTS_CONFIG}" != "xno"
7788 PLUGINS="${PLUGINS} arts"
7789 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7790 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7796 # Check whether --enable-alsa or --disable-alsa was given.
7797 if test "${enable_alsa+set}" = set; then
7798 enableval="$enable_alsa"
7799 if test "x${enable_alsa}" = "xyes"
7801 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7802 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7803 echo "configure:7804: checking for alsa/asoundlib.h" >&5
7804 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7805 echo $ac_n "(cached) $ac_c" 1>&6
7807 cat > conftest.$ac_ext <<EOF
7808 #line 7809 "configure"
7809 #include "confdefs.h"
7810 #include <alsa/asoundlib.h>
7812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7813 { (eval echo configure:7814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7815 if test -z "$ac_err"; then
7817 eval "ac_cv_header_$ac_safe=yes"
7820 echo "configure: failed program was:" >&5
7821 cat conftest.$ac_ext >&5
7823 eval "ac_cv_header_$ac_safe=no"
7827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7830 echo "configure:7831: checking for main in -lasound" >&5
7831 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7833 echo $ac_n "(cached) $ac_c" 1>&6
7835 ac_save_LIBS="$LIBS"
7836 LIBS="-lasound $LIBS"
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7845 if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7847 eval "ac_cv_lib_$ac_lib_var=yes"
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7852 eval "ac_cv_lib_$ac_lib_var=no"
7855 LIBS="$ac_save_LIBS"
7858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7859 echo "$ac_t""yes" 1>&6
7862 echo "$ac_t""no" 1>&6
7867 echo "$ac_t""no" 1>&6
7871 if test "x${have_alsa}" = "xtrue"
7873 PLUGINS="${PLUGINS} alsa"
7874 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7880 # Check whether --enable-waveout or --disable-waveout was given.
7881 if test "${enable_waveout+set}" = set; then
7882 enableval="$enable_waveout"
7886 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
7888 PLUGINS="${PLUGINS} waveout"
7889 waveout_LDFLAGS="-lwinmm"
7893 # Check whether --with- or --without- was given.
7894 if test "${with_+set}" = set; then
7900 # Check whether --enable-gtk or --disable-gtk was given.
7901 if test "${enable_gtk+set}" = set; then
7902 enableval="$enable_gtk"
7906 if test "x${enable_gtk}" != "xno"
7909 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7910 if test "${with_gtk_config_path+set}" = set; then
7911 withval="$with_gtk_config_path"
7912 if test "x${with_gtk_config_path}" != "xno"
7914 GTK_PATH="${with_gtk_config_path}:${PATH}"
7918 # look for gtk-config
7919 # Extract the first word of "gtk12-config", so it can be a program name with args.
7920 set dummy gtk12-config; ac_word=$2
7921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7922 echo "configure:7923: checking for $ac_word" >&5
7923 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7924 echo $ac_n "(cached) $ac_c" 1>&6
7926 case "$GTK12_CONFIG" in
7928 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7931 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7935 ac_dummy="${GTK_PATH}"
7936 for ac_dir in $ac_dummy; do
7937 test -z "$ac_dir" && ac_dir=.
7938 if test -f $ac_dir/$ac_word; then
7939 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7944 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7948 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7949 if test -n "$GTK12_CONFIG"; then
7950 echo "$ac_t""$GTK12_CONFIG" 1>&6
7952 echo "$ac_t""no" 1>&6
7955 GTK_CONFIG=${GTK12_CONFIG}
7956 if test "x${GTK_CONFIG}" = "xno"
7958 # Extract the first word of "gtk-config", so it can be a program name with args.
7959 set dummy gtk-config; ac_word=$2
7960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7961 echo "configure:7962: checking for $ac_word" >&5
7962 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7965 case "$GTK_CONFIG" in
7967 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7970 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7974 ac_dummy="${GTK_PATH}"
7975 for ac_dir in $ac_dummy; do
7976 test -z "$ac_dir" && ac_dir=.
7977 if test -f $ac_dir/$ac_word; then
7978 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7983 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7987 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7988 if test -n "$GTK_CONFIG"; then
7989 echo "$ac_t""$GTK_CONFIG" 1>&6
7991 echo "$ac_t""no" 1>&6
7995 if test "x${GTK_CONFIG}" != "xno"
7997 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
7999 { 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; }
8001 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8002 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8003 # now look for the gtk.h header
8004 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8005 ac_cv_gtk_headers=yes
8006 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8008 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8010 echo "configure:8011: checking for $ac_hdr" >&5
8011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8020 { (eval echo configure:8021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8022 if test -z "$ac_err"; then
8024 eval "ac_cv_header_$ac_safe=yes"
8027 echo "configure: failed program was:" >&5
8028 cat conftest.$ac_ext >&5
8030 eval "ac_cv_header_$ac_safe=no"
8034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8035 echo "$ac_t""yes" 1>&6
8036 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8037 cat >> confdefs.h <<EOF
8038 #define $ac_tr_hdr 1
8042 echo "$ac_t""no" 1>&6
8043 ac_cv_gtk_headers=no
8044 echo "Cannot find gtk development headers."
8049 if test "x${ac_cv_gtk_headers}" = "xyes"
8051 PLUGINS="${PLUGINS} gtk"
8052 ALIASES="${ALIASES} gvlc"
8054 CPPFLAGS="${save_CPPFLAGS}"
8058 # Check whether --enable-gnome or --disable-gnome was given.
8059 if test "${enable_gnome+set}" = set; then
8060 enableval="$enable_gnome"
8061 if test "x${enable_gnome}" = "xyes"; then
8062 # look for gnome-config
8063 # Extract the first word of "gnome-config", so it can be a program name with args.
8064 set dummy gnome-config; ac_word=$2
8065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8066 echo "configure:8067: checking for $ac_word" >&5
8067 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8070 case "$GNOME_CONFIG" in
8072 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8075 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8080 for ac_dir in $ac_dummy; do
8081 test -z "$ac_dir" && ac_dir=.
8082 if test -f $ac_dir/$ac_word; then
8083 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8088 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8092 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8093 if test -n "$GNOME_CONFIG"; then
8094 echo "$ac_t""$GNOME_CONFIG" 1>&6
8096 echo "$ac_t""no" 1>&6
8099 if test -x ${GNOME_CONFIG}
8101 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8102 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8104 # now look for the gnome.h header
8105 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8106 for ac_hdr in gnome.h
8108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8110 echo "configure:8111: checking for $ac_hdr" >&5
8111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8120 { (eval echo configure:8121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8122 if test -z "$ac_err"; then
8124 eval "ac_cv_header_$ac_safe=yes"
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8130 eval "ac_cv_header_$ac_safe=no"
8134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8135 echo "$ac_t""yes" 1>&6
8136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8137 cat >> confdefs.h <<EOF
8138 #define $ac_tr_hdr 1
8141 PLUGINS="${PLUGINS} gnome"
8142 ALIASES="${ALIASES} gnome-vlc"
8145 echo "$ac_t""no" 1>&6
8146 { echo "configure: error: Can't find gnome headers. Please install the gnome
8147 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8152 CPPFLAGS="${save_CPPFLAGS}"
8157 # Check whether --enable-qt or --disable-qt was given.
8158 if test "${enable_qt+set}" = set; then
8159 enableval="$enable_qt"
8160 if test "x${enable_qt}" = "xyes"; then
8161 PLUGINS="${PLUGINS} qt"
8162 ALIASES="${ALIASES} qvlc"
8163 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8164 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8165 if test -x ${QTDIR}/bin/moc
8167 MOC=${QTDIR}/bin/moc
8175 # Check whether --enable-kde or --disable-kde was given.
8176 if test "${enable_kde+set}" = set; then
8177 enableval="$enable_kde"
8178 if test "x${enable_kde}" = "xyes"; then
8179 PLUGINS="${PLUGINS} kde"
8180 ALIASES="${ALIASES} kvlc"
8181 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8182 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8183 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8184 if test -x ${QTDIR}/bin/moc
8186 MOC=${QTDIR}/bin/moc
8194 # Check whether --enable-macosx or --disable-macosx was given.
8195 if test "${enable_macosx+set}" = set; then
8196 enableval="$enable_macosx"
8197 if test "x${enable_macosx}" = "xyes"
8199 BUILTINS="${BUILTINS} macosx"
8200 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8203 for ac_hdr in Cocoa/Cocoa.h
8205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8207 echo "configure:8208: checking for $ac_hdr" >&5
8208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8211 cat > conftest.$ac_ext <<EOF
8212 #line 8213 "configure"
8213 #include "confdefs.h"
8216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8217 { (eval echo configure:8218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8219 if test -z "$ac_err"; then
8221 eval "ac_cv_header_$ac_safe=yes"
8224 echo "configure: failed program was:" >&5
8225 cat conftest.$ac_ext >&5
8227 eval "ac_cv_header_$ac_safe=no"
8231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8232 echo "$ac_t""yes" 1>&6
8233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8234 cat >> confdefs.h <<EOF
8235 #define $ac_tr_hdr 1
8237 BUILTINS="${BUILTINS} macosx"
8238 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8241 echo "$ac_t""no" 1>&6
8248 # Check whether --enable-qnx or --disable-qnx was given.
8249 if test "${enable_qnx+set}" = set; then
8250 enableval="$enable_qnx"
8254 if test "x${enable_qnx}" != "xno"
8258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8260 echo "configure:8261: checking for $ac_hdr" >&5
8261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8264 cat > conftest.$ac_ext <<EOF
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8270 { (eval echo configure:8271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8272 if test -z "$ac_err"; then
8274 eval "ac_cv_header_$ac_safe=yes"
8277 echo "configure: failed program was:" >&5
8278 cat conftest.$ac_ext >&5
8280 eval "ac_cv_header_$ac_safe=no"
8284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8285 echo "$ac_t""yes" 1>&6
8286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8287 cat >> confdefs.h <<EOF
8288 #define $ac_tr_hdr 1
8291 PLUGINS="${PLUGINS} qnx"
8292 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8295 echo "$ac_t""no" 1>&6
8301 # Check whether --enable-intfwin or --disable-intfwin was given.
8302 if test "${enable_intfwin+set}" = set; then
8303 enableval="$enable_intfwin"
8304 if test "x${enable_intfwin}" != "xno"
8306 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8307 if test "${with_bcbuilder+set}" = set; then
8308 withval="$with_bcbuilder"
8312 if test "x${with_bcbuilder}" != "x"
8314 BCBUILDER="${with_bcbuilder}"
8316 PLUGINS="${PLUGINS} intfwin"
8321 # Check whether --enable-ncurses or --disable-ncurses was given.
8322 if test "${enable_ncurses+set}" = set; then
8323 enableval="$enable_ncurses"
8324 if test "x${enable_ncurses}" = "xyes"; then
8325 PLUGINS="${PLUGINS} ncurses"
8326 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8331 # Check whether --enable-xosd or --disable-xosd was given.
8332 if test "${enable_xosd+set}" = set; then
8333 enableval="$enable_xosd"
8337 if test "x${enable_xosd}" = "xyes"
8339 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8340 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8341 echo "configure:8342: checking for xosd.h" >&5
8342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8345 cat > conftest.$ac_ext <<EOF
8346 #line 8347 "configure"
8347 #include "confdefs.h"
8350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8351 { (eval echo configure:8352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8353 if test -z "$ac_err"; then
8355 eval "ac_cv_header_$ac_safe=yes"
8358 echo "configure: failed program was:" >&5
8359 cat conftest.$ac_ext >&5
8361 eval "ac_cv_header_$ac_safe=no"
8365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8366 echo "$ac_t""yes" 1>&6
8369 echo "$ac_t""no" 1>&6
8373 if test "x${have_xosd}" = "xtrue"
8375 PLUGINS="${PLUGINS} xosd"
8376 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8380 # Check whether --enable-lirc or --disable-lirc was given.
8381 if test "${enable_lirc+set}" = set; then
8382 enableval="$enable_lirc"
8386 if test "x${enable_lirc}" = "xyes"
8388 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8389 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8390 echo "configure:8391: checking for lirc/lirc_client.h" >&5
8391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8392 echo $ac_n "(cached) $ac_c" 1>&6
8394 cat > conftest.$ac_ext <<EOF
8395 #line 8396 "configure"
8396 #include "confdefs.h"
8397 #include <lirc/lirc_client.h>
8399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8400 { (eval echo configure:8401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8402 if test -z "$ac_err"; then
8404 eval "ac_cv_header_$ac_safe=yes"
8407 echo "configure: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8410 eval "ac_cv_header_$ac_safe=no"
8414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8415 echo "$ac_t""yes" 1>&6
8416 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8417 echo "configure:8418: checking for lirc_init in -llirc_client" >&5
8418 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8420 echo $ac_n "(cached) $ac_c" 1>&6
8422 ac_save_LIBS="$LIBS"
8423 LIBS="-llirc_client $LIBS"
8424 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8427 /* Override any gcc2 internal prototype to avoid an error. */
8428 /* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8436 if { (eval echo configure:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8438 eval "ac_cv_lib_$ac_lib_var=yes"
8440 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8443 eval "ac_cv_lib_$ac_lib_var=no"
8446 LIBS="$ac_save_LIBS"
8449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8450 echo "$ac_t""yes" 1>&6
8453 echo "$ac_t""no" 1>&6
8458 echo "$ac_t""no" 1>&6
8462 if test "x${have_lirc}" = "xtrue"
8464 PLUGINS="${PLUGINS} lirc"
8465 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8469 # Check whether --with- or --without- was given.
8470 if test "${with_+set}" = set; then
8476 # Check whether --with-words or --without-words was given.
8477 if test "${with_words+set}" = set; then
8478 withval="$with_words"
8482 case "x${with_words}" in
8484 ac_cv_c_bigendian=yes
8487 ac_cv_c_bigendian=no
8490 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8491 echo "configure:8492: checking whether the byte order is big-endian" >&5
8492 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8495 ac_cv_c_bigendian="unknown"
8496 cat >conftest.c <<EOF
8497 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8498 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8499 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8500 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8501 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8502 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8503 int main(void) { _a(); _e(); return 0; }
8506 if test -f conftest.c
8508 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8509 && test -f conftest.o
8511 if test "`strings conftest.o | grep BIGenDianSyS`"
8513 ac_cv_c_bigendian="yes"
8515 if test "`strings conftest.o | grep LiTTleEnDian`"
8517 ac_cv_c_bigendian="no"
8524 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8525 if test "x${ac_cv_c_bigendian}" = "xunknown"
8527 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8531 if test "${ac_cv_c_bigendian}" = "yes"
8533 cat >> confdefs.h <<\EOF
8534 #define WORDS_BIGENDIAN 1
8542 # Check whether --enable-gprof or --disable-gprof was given.
8543 if test "${enable_gprof+set}" = set; then
8544 enableval="$enable_gprof"
8545 if test "x${enable_gprof}" = "xyes"
8555 # Check whether --enable-cprof or --disable-cprof was given.
8556 if test "${enable_cprof+set}" = set; then
8557 enableval="$enable_cprof"
8558 if test "x${enable_cprof}" = "xyes"
8560 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
8568 # Check whether --enable-pth or --disable-pth was given.
8569 if test "${enable_pth+set}" = set; then
8570 enableval="$enable_pth"
8571 if test "x${enable_pth}" = "xyes"; then
8572 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8573 echo "configure:8574: checking for pth_init in -lpth" >&5
8574 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8576 echo $ac_n "(cached) $ac_c" 1>&6
8578 ac_save_LIBS="$LIBS"
8580 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8583 /* Override any gcc2 internal prototype to avoid an error. */
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8592 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8594 eval "ac_cv_lib_$ac_lib_var=yes"
8596 echo "configure: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8599 eval "ac_cv_lib_$ac_lib_var=no"
8602 LIBS="$ac_save_LIBS"
8605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8606 echo "$ac_t""yes" 1>&6
8607 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8609 cat >> confdefs.h <<EOF
8610 #define $ac_tr_lib 1
8616 echo "$ac_t""no" 1>&6
8619 cat > conftest.$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8625 egrep "pth_init" >/dev/null 2>&1; then
8628 cat >> confdefs.h <<\EOF
8629 #define PTH_INIT_IN_PTH_H 1
8641 # Check whether --enable-st or --disable-st was given.
8642 if test "${enable_st+set}" = set; then
8643 enableval="$enable_st"
8644 if test "x${enable_st}" = "xyes"; then
8645 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8646 echo "configure:8647: checking for st_init in -lst" >&5
8647 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8651 ac_save_LIBS="$LIBS"
8653 cat > conftest.$ac_ext <<EOF
8654 #line 8655 "configure"
8655 #include "confdefs.h"
8656 /* Override any gcc2 internal prototype to avoid an error. */
8657 /* We use char because int might match the return type of a gcc2
8658 builtin and then its argument prototype would still apply. */
8665 if { (eval echo configure:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8667 eval "ac_cv_lib_$ac_lib_var=yes"
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8672 eval "ac_cv_lib_$ac_lib_var=no"
8675 LIBS="$ac_save_LIBS"
8678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8679 echo "$ac_t""yes" 1>&6
8680 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8681 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8682 cat >> confdefs.h <<EOF
8683 #define $ac_tr_lib 1
8689 echo "$ac_t""no" 1>&6
8692 cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8698 egrep "st_init" >/dev/null 2>&1; then
8701 cat >> confdefs.h <<\EOF
8702 #define ST_INIT_IN_ST_H 1
8714 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8715 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8718 # Check whether --enable-mozilla or --disable-mozilla was given.
8719 if test "${enable_mozilla+set}" = set; then
8720 enableval="$enable_mozilla"
8724 if test "x${enable_mozilla}" = "xyes"
8726 # Extract the first word of "mozilla-config", so it can be a program name with args.
8727 set dummy mozilla-config; ac_word=$2
8728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8729 echo "configure:8730: checking for $ac_word" >&5
8730 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8733 case "$MOZILLA_CONFIG" in
8735 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
8738 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
8741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8743 for ac_dir in $ac_dummy; do
8744 test -z "$ac_dir" && ac_dir=.
8745 if test -f $ac_dir/$ac_word; then
8746 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
8751 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
8755 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
8756 if test -n "$MOZILLA_CONFIG"; then
8757 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
8759 echo "$ac_t""no" 1>&6
8762 if test "x${MOZILLA_CONFIG}" != "xno"
8765 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
8766 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs `"
8770 # Check whether --enable-plugins or --disable-plugins was given.
8771 if test "${enable_plugins+set}" = set; then
8772 enableval="$enable_plugins"
8773 if test "x${enable_plugins}" = "xno"
8775 BUILTINS="${BUILTINS} ${PLUGINS}"
8781 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
8783 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8785 BUILTINS="${BUILTINS} ${PLUGINS}"
8789 cat >> confdefs.h <<EOF
8790 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
8793 cat >> confdefs.h <<EOF
8794 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
8797 cat >> confdefs.h <<EOF
8798 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
8802 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8803 cat >> confdefs.h <<EOF
8804 #define MODULE_SUFFIX "__MODULE_${VLC_SYMBOL}"
8807 cat >> confdefs.h <<EOF
8808 #define MODULE_SYMBOL ${VLC_SYMBOL}
8812 DATA_PATH="${ac_tool_prefix}/share/videolan"
8814 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8817 CPPFLAGS="${save_CPPFLAGS}"
8818 CFLAGS="${save_CFLAGS}"
8819 LDFLAGS="${save_LDFLAGS}"
8922 cat > confcache <<\EOF
8923 # This file is a shell script that caches the results of configure
8924 # tests run on this system so they can be shared between configure
8925 # scripts and configure runs. It is not useful on other systems.
8926 # If it contains results you don't want to keep, you may remove or edit it.
8928 # By default, configure uses ./config.cache as the cache file,
8929 # creating it if it does not exist already. You can give configure
8930 # the --cache-file=FILE option to use a different cache file; that is
8931 # what configure does when it calls configure scripts in
8932 # subdirectories, so they share the cache.
8933 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8934 # config.status only pays attention to the cache file if you give it the
8935 # --recheck option to rerun configure.
8938 # The following way of writing the cache mishandles newlines in values,
8939 # but we know of no workaround that is simple, portable, and efficient.
8940 # So, don't put newlines in cache variables' values.
8941 # Ultrix sh set writes to stderr and can't be redirected directly,
8942 # and sets the high bit in the cache file unless we assign to the vars.
8944 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8946 # `set' does not quote correctly, so add quotes (double-quote substitution
8947 # turns \\\\ into \\, and sed turns \\ into \).
8949 -e "s/'/'\\\\''/g" \
8950 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8953 # `set' quotes correctly as required by POSIX, so do not add quotes.
8954 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8957 if cmp -s $cache_file confcache; then
8960 if test -w $cache_file; then
8961 echo "updating cache $cache_file"
8962 cat confcache > $cache_file
8964 echo "not updating unwritable cache $cache_file"
8969 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8971 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8972 # Let make expand exec_prefix.
8973 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8975 # Any assignment to VPATH causes Sun make to only execute
8976 # the first set of double-colon rules, so remove it if not needed.
8977 # If there is a colon in the path, we need to keep it.
8978 if test "x$srcdir" = x.; then
8979 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8982 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8984 DEFS=-DHAVE_CONFIG_H
8986 # Without the "./", some shells look in PATH for config.status.
8987 : ${CONFIG_STATUS=./config.status}
8989 echo creating $CONFIG_STATUS
8990 rm -f $CONFIG_STATUS
8991 cat > $CONFIG_STATUS <<EOF
8993 # Generated automatically by configure.
8994 # Run this file to recreate the current configuration.
8995 # This directory was configured as follows,
8996 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8998 # $0 $ac_configure_args
9000 # Compiler output produced by configure, useful for debugging
9001 # configure, is in ./config.log if it exists.
9003 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9006 case "\$ac_option" in
9007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9008 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9009 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9010 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9011 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9013 -help | --help | --hel | --he | --h)
9014 echo "\$ac_cs_usage"; exit 0 ;;
9015 *) echo "\$ac_cs_usage"; exit 1 ;;
9019 ac_given_srcdir=$srcdir
9020 ac_given_INSTALL="$INSTALL"
9022 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9024 cat >> $CONFIG_STATUS <<EOF
9026 # Protect against being on the right side of a sed subst in config.status.
9027 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9028 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9032 s%@CFLAGS@%$CFLAGS%g
9033 s%@CPPFLAGS@%$CPPFLAGS%g
9034 s%@CXXFLAGS@%$CXXFLAGS%g
9035 s%@FFLAGS@%$FFLAGS%g
9037 s%@LDFLAGS@%$LDFLAGS%g
9039 s%@exec_prefix@%$exec_prefix%g
9040 s%@prefix@%$prefix%g
9041 s%@program_transform_name@%$program_transform_name%g
9042 s%@bindir@%$bindir%g
9043 s%@sbindir@%$sbindir%g
9044 s%@libexecdir@%$libexecdir%g
9045 s%@datadir@%$datadir%g
9046 s%@sysconfdir@%$sysconfdir%g
9047 s%@sharedstatedir@%$sharedstatedir%g
9048 s%@localstatedir@%$localstatedir%g
9049 s%@libdir@%$libdir%g
9050 s%@includedir@%$includedir%g
9051 s%@oldincludedir@%$oldincludedir%g
9052 s%@infodir@%$infodir%g
9053 s%@mandir@%$mandir%g
9055 s%@host_alias@%$host_alias%g
9056 s%@host_cpu@%$host_cpu%g
9057 s%@host_vendor@%$host_vendor%g
9058 s%@host_os@%$host_os%g
9059 s%@target@%$target%g
9060 s%@target_alias@%$target_alias%g
9061 s%@target_cpu@%$target_cpu%g
9062 s%@target_vendor@%$target_vendor%g
9063 s%@target_os@%$target_os%g
9065 s%@build_alias@%$build_alias%g
9066 s%@build_cpu@%$build_cpu%g
9067 s%@build_vendor@%$build_vendor%g
9068 s%@build_os@%$build_os%g
9069 s%@SET_MAKE@%$SET_MAKE%g
9072 s%@RANLIB@%$RANLIB%g
9075 s%@ALLOCA@%$ALLOCA%g
9076 s%@GLIBC21@%$GLIBC21%g
9077 s%@LIBICONV@%$LIBICONV%g
9078 s%@USE_NLS@%$USE_NLS%g
9079 s%@MSGFMT@%$MSGFMT%g
9080 s%@GMSGFMT@%$GMSGFMT%g
9081 s%@XGETTEXT@%$XGETTEXT%g
9082 s%@INTLBISON@%$INTLBISON%g
9083 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9084 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9085 s%@CATALOGS@%$CATALOGS%g
9086 s%@CATOBJEXT@%$CATOBJEXT%g
9087 s%@GMOFILES@%$GMOFILES%g
9088 s%@INTLLIBS@%$INTLLIBS%g
9089 s%@INTLOBJS@%$INTLOBJS%g
9090 s%@POFILES@%$POFILES%g
9092 s%@DATADIRNAME@%$DATADIRNAME%g
9093 s%@INSTOBJEXT@%$INSTOBJEXT%g
9094 s%@GENCAT@%$GENCAT%g
9095 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9096 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9097 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9098 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9099 s%@INSTALL_DATA@%$INSTALL_DATA%g
9100 s%@WINDRES@%$WINDRES%g
9101 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9102 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9103 s%@SDL_CONFIG@%$SDL_CONFIG%g
9104 s%@ESD_CONFIG@%$ESD_CONFIG%g
9105 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9106 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9107 s%@GTK_CONFIG@%$GTK_CONFIG%g
9108 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9109 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9110 s%@DATA_PATH@%$DATA_PATH%g
9111 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9114 s%@PLUGINS@%$PLUGINS%g
9115 s%@BUILTINS@%$BUILTINS%g
9116 s%@ALIASES@%$ALIASES%g
9121 s%@OPTIMS@%$OPTIMS%g
9122 s%@TUNING@%$TUNING%g
9123 s%@RELEASE@%$RELEASE%g
9125 s%@BCBUILDER@%$BCBUILDER%g
9126 s%@PACKAGE@%$PACKAGE%g
9127 s%@VERSION@%$VERSION%g
9128 s%@NEED_GETOPT@%$NEED_GETOPT%g
9129 s%@MOZILLA@%$MOZILLA%g
9130 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9131 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9132 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9133 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9134 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9135 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
9136 s%@a52_CFLAGS@%$a52_CFLAGS%g
9137 s%@arts_CFLAGS@%$arts_CFLAGS%g
9138 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
9139 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9140 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9141 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9142 s%@directx_CFLAGS@%$directx_CFLAGS%g
9143 s%@esd_CFLAGS@%$esd_CFLAGS%g
9144 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9145 s%@glide_CFLAGS@%$glide_CFLAGS%g
9146 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9147 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9148 s%@kde_CFLAGS@%$kde_CFLAGS%g
9149 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9150 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9151 s%@mad_CFLAGS@%$mad_CFLAGS%g
9152 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9153 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9154 s%@qt_CFLAGS@%$qt_CFLAGS%g
9155 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9156 s%@x11_CFLAGS@%$x11_CFLAGS%g
9157 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9158 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9159 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9160 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9161 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
9162 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9163 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9164 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9165 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9166 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9167 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9168 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9169 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9170 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9171 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9172 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9173 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9174 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9175 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9176 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9177 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9178 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9179 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9180 s%@http_LDFLAGS@%$http_LDFLAGS%g
9181 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9182 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9183 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9184 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9185 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9186 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9187 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9188 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9189 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9190 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9191 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9192 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9193 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9194 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9195 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9196 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9197 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9198 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9199 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9200 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9201 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9202 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9203 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9208 cat >> $CONFIG_STATUS <<\EOF
9210 # Split the substitutions into bite-sized pieces for seds with
9211 # small command number limits, like on Digital OSF/1 and HP-UX.
9212 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9213 ac_file=1 # Number of current file.
9214 ac_beg=1 # First line for current file.
9215 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9218 while $ac_more_lines; do
9219 if test $ac_beg -gt 1; then
9220 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9222 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9224 if test ! -s conftest.s$ac_file; then
9226 rm -f conftest.s$ac_file
9228 if test -z "$ac_sed_cmds"; then
9229 ac_sed_cmds="sed -f conftest.s$ac_file"
9231 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9233 ac_file=`expr $ac_file + 1`
9235 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9238 if test -z "$ac_sed_cmds"; then
9243 cat >> $CONFIG_STATUS <<EOF
9245 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9247 cat >> $CONFIG_STATUS <<\EOF
9248 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9249 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9251 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9252 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9253 *) ac_file_in="${ac_file}.in" ;;
9256 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9258 # Remove last slash and all that follows it. Not all systems have dirname.
9259 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9260 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9261 # The file is in a subdirectory.
9262 test ! -d "$ac_dir" && mkdir "$ac_dir"
9263 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9264 # A "../" for each directory in $ac_dir_suffix.
9265 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9267 ac_dir_suffix= ac_dots=
9270 case "$ac_given_srcdir" in
9272 if test -z "$ac_dots"; then top_srcdir=.
9273 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9274 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9276 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9277 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9280 case "$ac_given_INSTALL" in
9281 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9282 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9285 echo creating "$ac_file"
9287 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9289 *Makefile*) ac_comsub="1i\\
9290 # $configure_input" ;;
9294 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9296 s%@configure_input@%$configure_input%g
9297 s%@srcdir@%$srcdir%g
9298 s%@top_srcdir@%$top_srcdir%g
9299 s%@INSTALL@%$INSTALL%g
9300 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9304 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9305 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9307 # ac_d sets the value in "#define NAME VALUE" lines.
9308 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9309 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9312 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9313 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9314 ac_uB='\([ ]\)%\1#\2define\3'
9317 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9318 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9319 ac_eB='$%\1#\2define\3'
9323 if test "${CONFIG_HEADERS+set}" != set; then
9325 cat >> $CONFIG_STATUS <<EOF
9326 CONFIG_HEADERS="include/defs.h"
9328 cat >> $CONFIG_STATUS <<\EOF
9330 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9331 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9333 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9334 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9335 *) ac_file_in="${ac_file}.in" ;;
9338 echo creating $ac_file
9340 rm -f conftest.frag conftest.in conftest.out
9341 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9342 cat $ac_file_inputs > conftest.in
9346 # Transform confdefs.h into a sed script conftest.vals that substitutes
9347 # the proper values into config.h.in to produce config.h. And first:
9348 # Protect against being on the right side of a sed subst in config.status.
9349 # Protect against being in an unquoted here document in config.status.
9351 cat > conftest.hdr <<\EOF
9354 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9358 sed -n -f conftest.hdr confdefs.h > conftest.vals
9361 # This sed command replaces #undef with comments. This is necessary, for
9362 # example, in the case of _POSIX_SOURCE, which is predefined and required
9363 # on some systems where configure will not decide to define it.
9364 cat >> conftest.vals <<\EOF
9365 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9368 # Break up conftest.vals because some shells have a limit on
9369 # the size of here documents, and old seds have small limits too.
9374 ac_lines=`grep -c . conftest.vals`
9375 # grep -c gives empty output for an empty file on some AIX systems.
9376 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9377 # Write a limited-size here document to conftest.frag.
9378 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9379 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9381 sed -f conftest.frag conftest.in > conftest.out
9383 mv conftest.out conftest.in
9385 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9387 mv conftest.tail conftest.vals
9391 cat >> $CONFIG_STATUS <<\EOF
9392 rm -f conftest.frag conftest.h
9393 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9394 cat conftest.in >> conftest.h
9396 if cmp -s $ac_file conftest.h 2>/dev/null; then
9397 echo "$ac_file is unchanged"
9400 # Remove last slash and all that follows it. Not all systems have dirname.
9401 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9402 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9403 # The file is in a subdirectory.
9404 test ! -d "$ac_dir" && mkdir "$ac_dir"
9407 mv conftest.h $ac_file
9412 cat >> $CONFIG_STATUS <<EOF
9416 cat >> $CONFIG_STATUS <<\EOF
9417 for ac_file in $CONFIG_FILES; do
9418 # Support "outfile[:infile[:infile...]]"
9420 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9422 # PO directories have a Makefile.in generated from Makefile.in.in.
9423 case "$ac_file" in */Makefile.in)
9424 # Adjust a relative srcdir.
9425 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9426 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9427 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9428 # In autoconf-2.13 it is called $ac_given_srcdir.
9429 # In autoconf-2.50 it is called $srcdir.
9430 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9431 case "$ac_given_srcdir" in
9432 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9433 /*) top_srcdir="$ac_given_srcdir" ;;
9434 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9436 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9437 rm -f "$ac_dir/POTFILES"
9438 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9439 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9440 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9441 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9449 chmod +x $CONFIG_STATUS
9450 rm -fr confdefs* $ac_clean_files
9451 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9456 --------------------
9457 vlc version : ${VERSION}
9459 architecture : ${ARCH}
9460 optimizations : ${OPTIMS}
9462 debug mode : ${DEBUG}
9463 release : ${RELEASE}
9464 profiling : ${PROFILING}
9465 need builtin getopt : ${NEED_GETOPT}
9466 built-in modules :${BUILTINS}
9467 plug-in modules :${PLUGINS}
9468 mozilla plugin : ${MOZILLA}
9469 vlc aliases :${ALIASES}
9471 You may now tune Makefile.opts at your convenience, for instance to choose
9472 which modules get compiled as plugins.
9474 To build vlc and its plugins, type \`${VLC_MAKE}'.