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 and libraries"
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)
143 if test x$enable_xosd = xyes
145 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
146 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
147 echo "configure:148: checking for xosd.h" >&5
148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
149 echo $ac_n "(cached) $ac_c" 1>&6
151 cat > conftest.$ac_ext <<EOF
152 #line 153 "configure"
153 #include "confdefs.h"
156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
157 { (eval echo configure:158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
159 if test -z "$ac_err"; then
161 eval "ac_cv_header_$ac_safe=yes"
164 echo "configure: failed program was:" >&5
165 cat conftest.$ac_ext >&5
167 eval "ac_cv_header_$ac_safe=no"
171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
172 echo "$ac_t""yes" 1>&6
175 echo "$ac_t""no" 1>&6
179 --enable-gprof gprof profiling (default disabled)"
181 --enable-cprof cprof profiling (default disabled)"
183 --enable-pth GNU Pth support (default disabled)"
185 --enable-st State Threads (default disabled)"
187 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
189 # Initialize some variables set by options.
190 # The variables have the same names as the options, with
191 # dashes changed to underlines.
193 cache_file=./config.cache
202 program_transform_name=s,x,x,
210 bindir='${exec_prefix}/bin'
211 sbindir='${exec_prefix}/sbin'
212 libexecdir='${exec_prefix}/libexec'
213 datadir='${prefix}/share'
214 sysconfdir='${prefix}/etc'
215 sharedstatedir='${prefix}/com'
216 localstatedir='${prefix}/var'
217 libdir='${exec_prefix}/lib'
218 includedir='${prefix}/include'
219 oldincludedir='/usr/include'
220 infodir='${prefix}/info'
221 mandir='${prefix}/man'
223 # Initialize some other variables.
226 SHELL=${CONFIG_SHELL-/bin/sh}
227 # Maximum number of lines to put in a shell here document.
234 # If the previous option needs an argument, assign it.
235 if test -n "$ac_prev"; then
236 eval "$ac_prev=\$ac_option"
242 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
246 # Accept the important Cygnus configure options, so we can diagnose typos.
250 -bindir | --bindir | --bindi | --bind | --bin | --bi)
252 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
253 bindir="$ac_optarg" ;;
255 -build | --build | --buil | --bui | --bu)
257 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
258 build="$ac_optarg" ;;
260 -cache-file | --cache-file | --cache-fil | --cache-fi \
261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
262 ac_prev=cache_file ;;
263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
265 cache_file="$ac_optarg" ;;
267 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
269 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
271 datadir="$ac_optarg" ;;
273 -disable-* | --disable-*)
274 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
275 # Reject names that are not valid shell variable names.
276 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
277 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
279 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
280 eval "enable_${ac_feature}=no" ;;
282 -enable-* | --enable-*)
283 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
284 # Reject names that are not valid shell variable names.
285 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
286 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
288 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
293 eval "enable_${ac_feature}='$ac_optarg'" ;;
295 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
296 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
297 | --exec | --exe | --ex)
298 ac_prev=exec_prefix ;;
299 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
300 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
301 | --exec=* | --exe=* | --ex=*)
302 exec_prefix="$ac_optarg" ;;
304 -gas | --gas | --ga | --g)
305 # Obsolete; use --with-gas.
308 -help | --help | --hel | --he)
309 # Omit some internal or obsolete options to make the list less imposing.
310 # This message is too long to be a string in the A/UX 3.1 sh.
312 Usage: configure [options] [host]
313 Options: [defaults in brackets after descriptions]
315 --cache-file=FILE cache test results in FILE
316 --help print this message
317 --no-create do not create output files
318 --quiet, --silent do not print \`checking...' messages
319 --version print the version of autoconf that created configure
320 Directory and file names:
321 --prefix=PREFIX install architecture-independent files in PREFIX
323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
325 --bindir=DIR user executables in DIR [EPREFIX/bin]
326 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
327 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
328 --datadir=DIR read-only architecture-independent data in DIR
330 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
331 --sharedstatedir=DIR modifiable architecture-independent data in DIR
333 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
334 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
335 --includedir=DIR C header files in DIR [PREFIX/include]
336 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
337 --infodir=DIR info documentation in DIR [PREFIX/info]
338 --mandir=DIR man documentation in DIR [PREFIX/man]
339 --srcdir=DIR find the sources in DIR [configure dir or ..]
340 --program-prefix=PREFIX prepend PREFIX to installed program names
341 --program-suffix=SUFFIX append SUFFIX to installed program names
342 --program-transform-name=PROGRAM
343 run sed PROGRAM on installed program names
347 --build=BUILD configure for building on BUILD [BUILD=HOST]
348 --host=HOST configure for HOST [guessed]
349 --target=TARGET configure for TARGET [TARGET=HOST]
350 Features and packages:
351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
353 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
354 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
355 --x-includes=DIR X include files are in DIR
356 --x-libraries=DIR X library files are in DIR
358 if test -n "$ac_help"; then
359 echo "--enable and --with options recognized:$ac_help"
363 -host | --host | --hos | --ho)
365 -host=* | --host=* | --hos=* | --ho=*)
368 -includedir | --includedir | --includedi | --included | --include \
369 | --includ | --inclu | --incl | --inc)
370 ac_prev=includedir ;;
371 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
372 | --includ=* | --inclu=* | --incl=* | --inc=*)
373 includedir="$ac_optarg" ;;
375 -infodir | --infodir | --infodi | --infod | --info | --inf)
377 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
378 infodir="$ac_optarg" ;;
380 -libdir | --libdir | --libdi | --libd)
382 -libdir=* | --libdir=* | --libdi=* | --libd=*)
383 libdir="$ac_optarg" ;;
385 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
386 | --libexe | --libex | --libe)
387 ac_prev=libexecdir ;;
388 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
389 | --libexe=* | --libex=* | --libe=*)
390 libexecdir="$ac_optarg" ;;
392 -localstatedir | --localstatedir | --localstatedi | --localstated \
393 | --localstate | --localstat | --localsta | --localst \
394 | --locals | --local | --loca | --loc | --lo)
395 ac_prev=localstatedir ;;
396 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
397 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
398 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
399 localstatedir="$ac_optarg" ;;
401 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
403 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
404 mandir="$ac_optarg" ;;
407 # Obsolete; use --without-fp.
410 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
414 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
415 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
418 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
419 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
420 | --oldin | --oldi | --old | --ol | --o)
421 ac_prev=oldincludedir ;;
422 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
423 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
424 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
425 oldincludedir="$ac_optarg" ;;
427 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
429 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
430 prefix="$ac_optarg" ;;
432 -program-prefix | --program-prefix | --program-prefi | --program-pref \
433 | --program-pre | --program-pr | --program-p)
434 ac_prev=program_prefix ;;
435 -program-prefix=* | --program-prefix=* | --program-prefi=* \
436 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
437 program_prefix="$ac_optarg" ;;
439 -program-suffix | --program-suffix | --program-suffi | --program-suff \
440 | --program-suf | --program-su | --program-s)
441 ac_prev=program_suffix ;;
442 -program-suffix=* | --program-suffix=* | --program-suffi=* \
443 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
444 program_suffix="$ac_optarg" ;;
446 -program-transform-name | --program-transform-name \
447 | --program-transform-nam | --program-transform-na \
448 | --program-transform-n | --program-transform- \
449 | --program-transform | --program-transfor \
450 | --program-transfo | --program-transf \
451 | --program-trans | --program-tran \
452 | --progr-tra | --program-tr | --program-t)
453 ac_prev=program_transform_name ;;
454 -program-transform-name=* | --program-transform-name=* \
455 | --program-transform-nam=* | --program-transform-na=* \
456 | --program-transform-n=* | --program-transform-=* \
457 | --program-transform=* | --program-transfor=* \
458 | --program-transfo=* | --program-transf=* \
459 | --program-trans=* | --program-tran=* \
460 | --progr-tra=* | --program-tr=* | --program-t=*)
461 program_transform_name="$ac_optarg" ;;
463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
464 | -silent | --silent | --silen | --sile | --sil)
467 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
469 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
471 sbindir="$ac_optarg" ;;
473 -sharedstatedir | --sharedstatedir | --sharedstatedi \
474 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
475 | --sharedst | --shareds | --shared | --share | --shar \
477 ac_prev=sharedstatedir ;;
478 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
479 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
480 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
482 sharedstatedir="$ac_optarg" ;;
484 -site | --site | --sit)
486 -site=* | --site=* | --sit=*)
489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
492 srcdir="$ac_optarg" ;;
494 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
495 | --syscon | --sysco | --sysc | --sys | --sy)
496 ac_prev=sysconfdir ;;
497 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
498 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
499 sysconfdir="$ac_optarg" ;;
501 -target | --target | --targe | --targ | --tar | --ta | --t)
503 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
504 target="$ac_optarg" ;;
506 -v | -verbose | --verbose | --verbos | --verbo | --verb)
509 -version | --version | --versio | --versi | --vers)
510 echo "configure generated by autoconf version 2.13"
514 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
515 # Reject names that are not valid shell variable names.
516 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
517 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
519 ac_package=`echo $ac_package| sed 's/-/_/g'`
524 eval "with_${ac_package}='$ac_optarg'" ;;
526 -without-* | --without-*)
527 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
528 # Reject names that are not valid shell variable names.
529 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
530 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
532 ac_package=`echo $ac_package| sed 's/-/_/g'`
533 eval "with_${ac_package}=no" ;;
536 # Obsolete; use --with-x.
539 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
540 | --x-incl | --x-inc | --x-in | --x-i)
541 ac_prev=x_includes ;;
542 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
543 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
544 x_includes="$ac_optarg" ;;
546 -x-libraries | --x-libraries | --x-librarie | --x-librari \
547 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
548 ac_prev=x_libraries ;;
549 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
550 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
551 x_libraries="$ac_optarg" ;;
553 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
557 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
558 echo "configure: warning: $ac_option: invalid host type" 1>&2
560 if test "x$nonopt" != xNONE; then
561 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
569 if test -n "$ac_prev"; then
570 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
573 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
575 # File descriptor usage:
578 # 2 errors and warnings
579 # 3 some systems may open it to /dev/tty
580 # 4 used on the Kubota Titan
581 # 6 checking for... messages and results
582 # 5 compiler messages saved in config.log
583 if test "$silent" = yes; then
591 This file contains any messages produced by compilers while
592 running configure, to aid debugging if configure makes a mistake.
595 # Strip out --no-create and --no-recursion so they do not pile up.
596 # Also quote any args containing shell metacharacters.
601 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
602 | --no-cr | --no-c) ;;
603 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
604 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
605 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
606 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
607 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
612 # Only set these to C if already set. These must not be set unconditionally
613 # because not all systems understand e.g. LANG=C (notably SCO).
614 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
615 # Non-C LC_CTYPE values break the ctype check.
616 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
617 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
618 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
619 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
621 # confdefs.h avoids OS command line length limits that DEFS can exceed.
622 rm -rf conftest* confdefs.h
623 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
626 # A filename unique to this package, relative to the directory that
627 # configure is in, which we can look for to find out if srcdir is correct.
628 ac_unique_file=include/main.h
630 # Find the source files, if location was not specified.
631 if test -z "$srcdir"; then
632 ac_srcdir_defaulted=yes
633 # Try the directory containing this script, then its parent.
635 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
636 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
638 if test ! -r $srcdir/$ac_unique_file; then
642 ac_srcdir_defaulted=no
644 if test ! -r $srcdir/$ac_unique_file; then
645 if test "$ac_srcdir_defaulted" = yes; then
646 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
648 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
651 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
653 # Prefer explicitly selected file to automatically selected ones.
654 if test -z "$CONFIG_SITE"; then
655 if test "x$prefix" != xNONE; then
656 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
658 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
661 for ac_site_file in $CONFIG_SITE; do
662 if test -r "$ac_site_file"; then
663 echo "loading site script $ac_site_file"
668 if test -r "$cache_file"; then
669 echo "loading cache $cache_file"
672 echo "creating cache $cache_file"
677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
678 ac_cpp='$CPP $CPPFLAGS'
679 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
680 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
681 cross_compiling=$ac_cv_prog_cc_cross
685 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
686 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
687 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
694 ac_n= ac_c='\c' ac_t=
700 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
701 if test -f $ac_dir/install-sh; then
703 ac_install_sh="$ac_aux_dir/install-sh -c"
705 elif test -f $ac_dir/install.sh; then
707 ac_install_sh="$ac_aux_dir/install.sh -c"
711 if test -z "$ac_aux_dir"; then
712 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
714 ac_config_guess=$ac_aux_dir/config.guess
715 ac_config_sub=$ac_aux_dir/config.sub
716 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
719 # Do some error checking and defaulting for the host and target type.
721 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
724 # 1. You are not allowed to specify --host, --target, and nonopt at the
726 # 2. Host defaults to nonopt.
727 # 3. If nonopt is not specified, then host defaults to the current host,
728 # as determined by config.guess.
729 # 4. Target and build default to nonopt.
730 # 5. If nonopt is not specified, then target and build default to host.
732 # The aliases save the names the user supplied, while $host etc.
733 # will get canonicalized.
734 case $host---$target---$nonopt in
735 NONE---*---* | *---NONE---* | *---*---NONE) ;;
736 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
740 # Make sure we can run config.sub.
741 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
742 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
745 echo $ac_n "checking host system type""... $ac_c" 1>&6
746 echo "configure:747: checking host system type" >&5
749 case "$host_alias" in
753 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
754 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
756 *) host_alias=$nonopt ;;
760 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
761 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
764 echo "$ac_t""$host" 1>&6
766 echo $ac_n "checking target system type""... $ac_c" 1>&6
767 echo "configure:768: checking target system type" >&5
770 case "$target_alias" in
773 NONE) target_alias=$host_alias ;;
774 *) target_alias=$nonopt ;;
778 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
779 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
780 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
781 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
782 echo "$ac_t""$target" 1>&6
784 echo $ac_n "checking build system type""... $ac_c" 1>&6
785 echo "configure:786: checking build system type" >&5
788 case "$build_alias" in
791 NONE) build_alias=$host_alias ;;
792 *) build_alias=$nonopt ;;
796 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
797 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
798 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
799 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
800 echo "$ac_t""$build" 1>&6
802 test "$host_alias" != "$target_alias" &&
803 test "$program_prefix$program_suffix$program_transform_name" = \
805 program_prefix=${target_alias}-
808 CONFIGURE_LINE="$0 $*"
814 save_CPPFLAGS="${CPPFLAGS}"
815 save_CFLAGS="${CFLAGS}"
816 save_LDFLAGS="${LDFLAGS}"
818 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
819 echo "configure:820: checking whether ${MAKE-make} sets \${MAKE}" >&5
820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
821 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 cat > conftestmake <<\EOF
826 @echo 'ac_maketemp="${MAKE}"'
828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
829 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
830 if test -n "$ac_maketemp"; then
831 eval ac_cv_prog_make_${ac_make}_set=yes
833 eval ac_cv_prog_make_${ac_make}_set=no
837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
838 echo "$ac_t""yes" 1>&6
841 echo "$ac_t""no" 1>&6
842 SET_MAKE="MAKE=${MAKE-make}"
845 # Extract the first word of "gcc", so it can be a program name with args.
846 set dummy gcc; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$CC"; then
853 ac_cv_prog_CC="$CC" # Let the user override the test.
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
868 if test -n "$CC"; then
869 echo "$ac_t""$CC" 1>&6
871 echo "$ac_t""no" 1>&6
874 if test -z "$CC"; then
875 # Extract the first word of "cc", so it can be a program name with args.
876 set dummy cc; ac_word=$2
877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
878 echo "configure:879: checking for $ac_word" >&5
879 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 if test -n "$CC"; then
883 ac_cv_prog_CC="$CC" # Let the user override the test.
885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
888 for ac_dir in $ac_dummy; do
889 test -z "$ac_dir" && ac_dir=.
890 if test -f $ac_dir/$ac_word; then
891 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
900 if test $ac_prog_rejected = yes; then
901 # We found a bogon in the path, so make sure we never use it.
902 set dummy $ac_cv_prog_CC
904 if test $# -gt 0; then
905 # We chose a different compiler from the bogus one.
906 # However, it has the same basename, so the bogon will be chosen
907 # first if we set CC to just the basename; use the full file name.
909 set dummy "$ac_dir/$ac_word" "$@"
917 if test -n "$CC"; then
918 echo "$ac_t""$CC" 1>&6
920 echo "$ac_t""no" 1>&6
923 if test -z "$CC"; then
926 # Extract the first word of "cl", so it can be a program name with args.
927 set dummy cl; ac_word=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 if test -n "$CC"; then
934 ac_cv_prog_CC="$CC" # Let the user override the test.
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
938 for ac_dir in $ac_dummy; do
939 test -z "$ac_dir" && ac_dir=.
940 if test -f $ac_dir/$ac_word; then
949 if test -n "$CC"; then
950 echo "$ac_t""$CC" 1>&6
952 echo "$ac_t""no" 1>&6
957 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
960 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
961 echo "configure:962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
965 ac_cpp='$CPP $CPPFLAGS'
966 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
967 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
968 cross_compiling=$ac_cv_prog_cc_cross
970 cat > conftest.$ac_ext << EOF
972 #line 973 "configure"
973 #include "confdefs.h"
977 if { (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
978 ac_cv_prog_cc_works=yes
979 # If we can't run a trivial program, we are probably using a cross compiler.
980 if (./conftest; exit) 2>/dev/null; then
981 ac_cv_prog_cc_cross=no
983 ac_cv_prog_cc_cross=yes
986 echo "configure: failed program was:" >&5
987 cat conftest.$ac_ext >&5
988 ac_cv_prog_cc_works=no
992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
993 ac_cpp='$CPP $CPPFLAGS'
994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
996 cross_compiling=$ac_cv_prog_cc_cross
998 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
999 if test $ac_cv_prog_cc_works = no; then
1000 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1002 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1004 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1005 cross_compiling=$ac_cv_prog_cc_cross
1007 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1008 echo "configure:1009: checking whether we are using GNU C" >&5
1009 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 cat > conftest.c <<EOF
1017 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1024 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1026 if test $ac_cv_prog_gcc = yes; then
1032 ac_test_CFLAGS="${CFLAGS+set}"
1033 ac_save_CFLAGS="$CFLAGS"
1035 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5
1037 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 echo 'void f(){}' > conftest.c
1041 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1050 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1051 if test "$ac_test_CFLAGS" = set; then
1052 CFLAGS="$ac_save_CFLAGS"
1053 elif test $ac_cv_prog_cc_g = yes; then
1054 if test "$GCC" = yes; then
1060 if test "$GCC" = yes; then
1067 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1068 echo "configure:1069: checking how to run the C preprocessor" >&5
1069 # On Suns, sometimes $CPP names a directory.
1070 if test -n "$CPP" && test -d "$CPP"; then
1073 if test -z "$CPP"; then
1074 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 # This must be in double quotes, not single quotes, because CPP may get
1078 # substituted into the Makefile and "${CC-cc}" will confuse make.
1080 # On the NeXT, cc -E runs the code through the compiler's parser,
1081 # not just through cpp.
1082 cat > conftest.$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1089 { (eval echo configure:1090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1091 if test -z "$ac_err"; then
1095 echo "configure: failed program was:" >&5
1096 cat conftest.$ac_ext >&5
1098 CPP="${CC-cc} -E -traditional-cpp"
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1106 { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1108 if test -z "$ac_err"; then
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1115 CPP="${CC-cc} -nologo -E"
1116 cat > conftest.$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1123 { (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1125 if test -z "$ac_err"; then
1129 echo "configure: failed program was:" >&5
1130 cat conftest.$ac_ext >&5
1139 ac_cv_prog_CPP="$CPP"
1141 CPP="$ac_cv_prog_CPP"
1143 ac_cv_prog_CPP="$CPP"
1145 echo "$ac_t""$CPP" 1>&6
1148 if test $host != $build; then
1149 ac_tool_prefix=${host_alias}-
1154 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1155 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1157 echo "configure:1158: checking for $ac_word" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 if test -n "$RANLIB"; then
1162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1166 for ac_dir in $ac_dummy; do
1167 test -z "$ac_dir" && ac_dir=.
1168 if test -f $ac_dir/$ac_word; then
1169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1176 RANLIB="$ac_cv_prog_RANLIB"
1177 if test -n "$RANLIB"; then
1178 echo "$ac_t""$RANLIB" 1>&6
1180 echo "$ac_t""no" 1>&6
1184 if test -z "$ac_cv_prog_RANLIB"; then
1185 if test -n "$ac_tool_prefix"; then
1186 # Extract the first word of "ranlib", so it can be a program name with args.
1187 set dummy ranlib; ac_word=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 if test -n "$RANLIB"; then
1194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1198 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_prog_RANLIB="ranlib"
1206 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1209 RANLIB="$ac_cv_prog_RANLIB"
1210 if test -n "$RANLIB"; then
1211 echo "$ac_t""$RANLIB" 1>&6
1213 echo "$ac_t""no" 1>&6
1221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1222 set dummy ${ac_tool_prefix}strip; ac_word=$2
1223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 if test -n "$STRIP"; then
1229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1233 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 if test -f $ac_dir/$ac_word; then
1236 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1243 STRIP="$ac_cv_prog_STRIP"
1244 if test -n "$STRIP"; then
1245 echo "$ac_t""$STRIP" 1>&6
1247 echo "$ac_t""no" 1>&6
1251 if test -z "$ac_cv_prog_STRIP"; then
1252 if test -n "$ac_tool_prefix"; then
1253 # Extract the first word of "strip", so it can be a program name with args.
1254 set dummy strip; ac_word=$2
1255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_word" >&5
1257 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 if test -n "$STRIP"; then
1261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1265 for ac_dir in $ac_dummy; do
1266 test -z "$ac_dir" && ac_dir=.
1267 if test -f $ac_dir/$ac_word; then
1268 ac_cv_prog_STRIP="strip"
1273 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1276 STRIP="$ac_cv_prog_STRIP"
1277 if test -n "$STRIP"; then
1278 echo "$ac_t""$STRIP" 1>&6
1280 echo "$ac_t""no" 1>&6
1289 # Extract the first word of "gmake", so it can be a program name with args.
1290 set dummy gmake; ac_word=$2
1291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1292 echo "configure:1293: checking for $ac_word" >&5
1293 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1298 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1301 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1306 for ac_dir in $ac_dummy; do
1307 test -z "$ac_dir" && ac_dir=.
1308 if test -f $ac_dir/$ac_word; then
1309 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1314 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1318 GMAKE="$ac_cv_path_GMAKE"
1319 if test -n "$GMAKE"; then
1320 echo "$ac_t""$GMAKE" 1>&6
1322 echo "$ac_t""no" 1>&6
1325 if test "x$GMAKE" = "xno"; then
1326 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1327 echo "configure:1328: checking whether GNU make is installed" >&5
1328 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1331 if make --version | grep -q -i gnu; then
1334 echo "This software needs you to install GNU make to compile properly."
1335 echo "You can get it from http://www.gnu.org/."
1340 echo "$ac_t""$ac_cv_gmake" 1>&6
1346 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
1348 cat >> confdefs.h <<EOF
1349 #define VLC_PACKAGE "$PACKAGE"
1352 cat >> confdefs.h <<EOF
1353 #define VLC_VERSION "$VERSION"
1356 # Extract the first word of "ranlib", so it can be a program name with args.
1357 set dummy ranlib; ac_word=$2
1358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1359 echo "configure:1360: checking for $ac_word" >&5
1360 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 if test -n "$RANLIB"; then
1364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1368 for ac_dir in $ac_dummy; do
1369 test -z "$ac_dir" && ac_dir=.
1370 if test -f $ac_dir/$ac_word; then
1371 ac_cv_prog_RANLIB="ranlib"
1376 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1379 RANLIB="$ac_cv_prog_RANLIB"
1380 if test -n "$RANLIB"; then
1381 echo "$ac_t""$RANLIB" 1>&6
1383 echo "$ac_t""no" 1>&6
1387 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1388 echo "configure:1389: checking for strerror in -lcposix" >&5
1389 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 ac_save_LIBS="$LIBS"
1394 LIBS="-lcposix $LIBS"
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1398 /* Override any gcc2 internal prototype to avoid an error. */
1399 /* We use char because int might match the return type of a gcc2
1400 builtin and then its argument prototype would still apply. */
1407 if { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1409 eval "ac_cv_lib_$ac_lib_var=yes"
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1414 eval "ac_cv_lib_$ac_lib_var=no"
1417 LIBS="$ac_save_LIBS"
1420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1421 echo "$ac_t""yes" 1>&6
1422 LIBS="$LIBS -lcposix"
1424 echo "$ac_t""no" 1>&6
1429 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1430 echo "configure:1431: checking for ANSI C header files" >&5
1431 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1443 { (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1445 if test -z "$ac_err"; then
1447 ac_cv_header_stdc=yes
1450 echo "configure: failed program was:" >&5
1451 cat conftest.$ac_ext >&5
1453 ac_cv_header_stdc=no
1457 if test $ac_cv_header_stdc = yes; then
1458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1465 egrep "memchr" >/dev/null 2>&1; then
1469 ac_cv_header_stdc=no
1475 if test $ac_cv_header_stdc = yes; then
1476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1483 egrep "free" >/dev/null 2>&1; then
1487 ac_cv_header_stdc=no
1493 if test $ac_cv_header_stdc = yes; then
1494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1495 if test "$cross_compiling" = yes; then
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1502 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1503 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1504 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1505 int main () { int i; for (i = 0; i < 256; i++)
1506 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1510 if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1517 ac_cv_header_stdc=no
1525 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1526 if test $ac_cv_header_stdc = yes; then
1527 cat >> confdefs.h <<\EOF
1528 #define STDC_HEADERS 1
1533 echo $ac_n "checking for working const""... $ac_c" 1>&6
1534 echo "configure:1535: checking for working const" >&5
1535 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1544 /* Ultrix mips cc rejects this. */
1545 typedef int charset[2]; const charset x;
1546 /* SunOS 4.1.1 cc rejects this. */
1547 char const *const *ccp;
1549 /* NEC SVR4.0.2 mips cc rejects this. */
1550 struct point {int x, y;};
1551 static struct point const zero = {0,0};
1552 /* AIX XL C 1.02.0.0 rejects this.
1553 It does not let you subtract one const X* pointer from another in an arm
1554 of an if-expression whose if-part is not a constant expression */
1555 const char *g = "string";
1556 ccp = &g + (g ? g-g : 0);
1557 /* HPUX 7.0 cc rejects these. */
1560 ccp = (char const *const *) p;
1561 { /* SCO 3.2v4 cc rejects this. */
1563 char const *s = 0 ? (char *) 0 : (char const *) 0;
1567 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1569 const int *foo = &x[0];
1572 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1573 typedef const int *iptr;
1577 { /* AIX XL C 1.02.0.0 rejects this saying
1578 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1579 struct s { int j; const int *ap[3]; };
1580 struct s *b; b->j = 5;
1582 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1588 if { (eval echo configure:1589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1600 echo "$ac_t""$ac_cv_c_const" 1>&6
1601 if test $ac_cv_c_const = no; then
1602 cat >> confdefs.h <<\EOF
1608 echo $ac_n "checking for inline""... $ac_c" 1>&6
1609 echo "configure:1610: checking for inline" >&5
1610 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1614 for ac_kw in inline __inline__ __inline; do
1615 cat > conftest.$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1623 if { (eval echo configure:1624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1625 ac_cv_c_inline=$ac_kw; break
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1635 echo "$ac_t""$ac_cv_c_inline" 1>&6
1636 case "$ac_cv_c_inline" in
1638 no) cat >> confdefs.h <<\EOF
1642 *) cat >> confdefs.h <<EOF
1643 #define inline $ac_cv_c_inline
1648 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1649 echo "configure:1650: checking for off_t" >&5
1650 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656 #include <sys/types.h>
1662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1663 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1665 ac_cv_type_off_t=yes
1673 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1674 if test $ac_cv_type_off_t = no; then
1675 cat >> confdefs.h <<\EOF
1681 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1682 echo "configure:1683: checking for size_t" >&5
1683 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1689 #include <sys/types.h>
1695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1696 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1698 ac_cv_type_size_t=yes
1701 ac_cv_type_size_t=no
1706 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1707 if test $ac_cv_type_size_t = no; then
1708 cat >> confdefs.h <<\EOF
1709 #define size_t unsigned
1714 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1715 # for constant arguments. Useless!
1716 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1717 echo "configure:1718: checking for working alloca.h" >&5
1718 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1726 char *p = alloca(2 * sizeof(int));
1729 if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1731 ac_cv_header_alloca_h=yes
1733 echo "configure: failed program was:" >&5
1734 cat conftest.$ac_ext >&5
1736 ac_cv_header_alloca_h=no
1741 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1742 if test $ac_cv_header_alloca_h = yes; then
1743 cat >> confdefs.h <<\EOF
1744 #define HAVE_ALLOCA_H 1
1749 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1750 echo "configure:1751: checking for alloca" >&5
1751 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 cat > conftest.$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1759 # define alloca __builtin_alloca
1762 # include <malloc.h>
1763 # define alloca _alloca
1766 # include <alloca.h>
1771 # ifndef alloca /* predefined by HP cc +Olibcalls */
1780 char *p = (char *) alloca(1);
1783 if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1785 ac_cv_func_alloca_works=yes
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1790 ac_cv_func_alloca_works=no
1795 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1796 if test $ac_cv_func_alloca_works = yes; then
1797 cat >> confdefs.h <<\EOF
1798 #define HAVE_ALLOCA 1
1803 if test $ac_cv_func_alloca_works = no; then
1804 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1805 # that cause trouble. Some versions do not even contain alloca or
1806 # contain a buggy version. If you still want to use their alloca,
1807 # use ar to extract alloca.o from them instead of compiling alloca.c.
1808 ALLOCA=alloca.${ac_objext}
1809 cat >> confdefs.h <<\EOF
1814 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1815 echo "configure:1816: checking whether alloca needs Cray hooks" >&5
1816 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 #if defined(CRAY) && ! defined(CRAY2)
1829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1830 egrep "webecray" >/dev/null 2>&1; then
1841 echo "$ac_t""$ac_cv_os_cray" 1>&6
1842 if test $ac_cv_os_cray = yes; then
1843 for ac_func in _getb67 GETB67 getb67; do
1844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $ac_func" >&5
1846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $ac_func(); below. */
1855 /* Override any gcc2 internal prototype to avoid an error. */
1856 /* We use char because int might match the return type of a gcc2
1857 builtin and then its argument prototype would still apply. */
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1873 if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1875 eval "ac_cv_func_$ac_func=yes"
1877 echo "configure: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1880 eval "ac_cv_func_$ac_func=no"
1885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1887 cat >> confdefs.h <<EOF
1888 #define CRAY_STACKSEG_END $ac_func
1893 echo "$ac_t""no" 1>&6
1899 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1900 echo "configure:1901: checking stack direction for C alloca" >&5
1901 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 if test "$cross_compiling" = yes; then
1905 ac_cv_c_stack_direction=0
1907 cat > conftest.$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1910 find_stack_direction ()
1912 static char *addr = 0;
1917 return find_stack_direction ();
1920 return (&dummy > addr) ? 1 : -1;
1924 exit (find_stack_direction() < 0);
1927 if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1929 ac_cv_c_stack_direction=1
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1934 ac_cv_c_stack_direction=-1
1941 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1942 cat >> confdefs.h <<EOF
1943 #define STACK_DIRECTION $ac_cv_c_stack_direction
1948 for ac_hdr in unistd.h
1950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_hdr" >&5
1953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1962 { (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1964 if test -z "$ac_err"; then
1966 eval "ac_cv_header_$ac_safe=yes"
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1972 eval "ac_cv_header_$ac_safe=no"
1976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1977 echo "$ac_t""yes" 1>&6
1978 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1979 cat >> confdefs.h <<EOF
1980 #define $ac_tr_hdr 1
1984 echo "$ac_t""no" 1>&6
1988 for ac_func in getpagesize
1990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_func" >&5
1992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1998 /* System header to define __stub macros and hopefully few prototypes,
1999 which can conflict with char $ac_func(); below. */
2001 /* Override any gcc2 internal prototype to avoid an error. */
2002 /* We use char because int might match the return type of a gcc2
2003 builtin and then its argument prototype would still apply. */
2008 /* The GNU C library defines this for functions which it implements
2009 to always fail with ENOSYS. Some functions are actually named
2010 something starting with __ and the normal name is an alias. */
2011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2019 if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2021 eval "ac_cv_func_$ac_func=yes"
2023 echo "configure: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2026 eval "ac_cv_func_$ac_func=no"
2031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2032 echo "$ac_t""yes" 1>&6
2033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2034 cat >> confdefs.h <<EOF
2035 #define $ac_tr_func 1
2039 echo "$ac_t""no" 1>&6
2043 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2044 echo "configure:2045: checking for working mmap" >&5
2045 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 if test "$cross_compiling" = yes; then
2049 ac_cv_func_mmap_fixed_mapped=no
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2055 /* Thanks to Mike Haertel and Jim Avera for this test.
2056 Here is a matrix of mmap possibilities:
2057 mmap private not fixed
2058 mmap private fixed at somewhere currently unmapped
2059 mmap private fixed at somewhere already mapped
2060 mmap shared not fixed
2061 mmap shared fixed at somewhere currently unmapped
2062 mmap shared fixed at somewhere already mapped
2063 For private mappings, we should verify that changes cannot be read()
2064 back from the file, nor mmap's back from the file at a different
2065 address. (There have been systems where private was not correctly
2066 implemented like the infamous i386 svr4.0, and systems where the
2067 VM page cache was not coherent with the filesystem buffer cache
2068 like early versions of FreeBSD and possibly contemporary NetBSD.)
2069 For shared mappings, we should conversely verify that changes get
2070 propogated back to all the places they're supposed to be.
2072 Grep wants private fixed already mapped.
2073 The main things grep needs to know about mmap are:
2074 * does it exist and is it safe to write into the mmap'd area
2075 * how to use it (BSD variants) */
2076 #include <sys/types.h>
2078 #include <sys/mman.h>
2080 /* This mess was copied from the GNU getpagesize.h. */
2081 #ifndef HAVE_GETPAGESIZE
2082 # ifdef HAVE_UNISTD_H
2083 # include <unistd.h>
2086 /* Assume that all systems that can run configure have sys/param.h. */
2087 # ifndef HAVE_SYS_PARAM_H
2088 # define HAVE_SYS_PARAM_H 1
2091 # ifdef _SC_PAGESIZE
2092 # define getpagesize() sysconf(_SC_PAGESIZE)
2093 # else /* no _SC_PAGESIZE */
2094 # ifdef HAVE_SYS_PARAM_H
2095 # include <sys/param.h>
2096 # ifdef EXEC_PAGESIZE
2097 # define getpagesize() EXEC_PAGESIZE
2098 # else /* no EXEC_PAGESIZE */
2100 # define getpagesize() NBPG * CLSIZE
2103 # endif /* no CLSIZE */
2104 # else /* no NBPG */
2106 # define getpagesize() NBPC
2107 # else /* no NBPC */
2109 # define getpagesize() PAGESIZE
2110 # endif /* PAGESIZE */
2111 # endif /* no NBPC */
2112 # endif /* no NBPG */
2113 # endif /* no EXEC_PAGESIZE */
2114 # else /* no HAVE_SYS_PARAM_H */
2115 # define getpagesize() 8192 /* punt totally */
2116 # endif /* no HAVE_SYS_PARAM_H */
2117 # endif /* no _SC_PAGESIZE */
2119 #endif /* no HAVE_GETPAGESIZE */
2122 extern "C" { void *malloc(unsigned); }
2130 char *data, *data2, *data3;
2134 pagesize = getpagesize();
2137 * First, make a file with some known garbage in it.
2139 data = malloc(pagesize);
2142 for (i = 0; i < pagesize; ++i)
2143 *(data + i) = rand();
2145 fd = creat("conftestmmap", 0600);
2148 if (write(fd, data, pagesize) != pagesize)
2153 * Next, try to mmap the file at a fixed address which
2154 * already has something else allocated at it. If we can,
2155 * also make sure that we see the same garbage.
2157 fd = open("conftestmmap", O_RDWR);
2160 data2 = malloc(2 * pagesize);
2163 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2164 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2165 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2167 for (i = 0; i < pagesize; ++i)
2168 if (*(data + i) != *(data2 + i))
2172 * Finally, make sure that changes to the mapped area
2173 * do not percolate back to the file as seen by read().
2174 * (This is a bug on some variants of i386 svr4.0.)
2176 for (i = 0; i < pagesize; ++i)
2177 *(data2 + i) = *(data2 + i) + 1;
2178 data3 = malloc(pagesize);
2181 if (read(fd, data3, pagesize) != pagesize)
2183 for (i = 0; i < pagesize; ++i)
2184 if (*(data + i) != *(data3 + i))
2187 unlink("conftestmmap");
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2194 ac_cv_func_mmap_fixed_mapped=yes
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2199 ac_cv_func_mmap_fixed_mapped=no
2206 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2207 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2208 cat >> confdefs.h <<\EOF
2215 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2216 echo "configure:2217: checking whether we are using the GNU C Library 2.1 or newer" >&5
2217 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2224 #include <features.h>
2225 #ifdef __GNU_LIBRARY__
2226 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2233 egrep "Lucky GNU user" >/dev/null 2>&1; then
2235 ac_cv_gnu_library_2_1=yes
2238 ac_cv_gnu_library_2_1=no
2246 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2248 GLIBC21="$ac_cv_gnu_library_2_1"
2252 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2253 stdlib.h string.h unistd.h sys/param.h
2255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_hdr" >&5
2258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2267 { (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2269 if test -z "$ac_err"; then
2271 eval "ac_cv_header_$ac_safe=yes"
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2277 eval "ac_cv_header_$ac_safe=no"
2281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2284 cat >> confdefs.h <<EOF
2285 #define $ac_tr_hdr 1
2289 echo "$ac_t""no" 1>&6
2293 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2294 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2295 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_func" >&5
2299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 /* System header to define __stub macros and hopefully few prototypes,
2306 which can conflict with char $ac_func(); below. */
2308 /* Override any gcc2 internal prototype to avoid an error. */
2309 /* We use char because int might match the return type of a gcc2
2310 builtin and then its argument prototype would still apply. */
2315 /* The GNU C library defines this for functions which it implements
2316 to always fail with ENOSYS. Some functions are actually named
2317 something starting with __ and the normal name is an alias. */
2318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2326 if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2328 eval "ac_cv_func_$ac_func=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2333 eval "ac_cv_func_$ac_func=no"
2338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2341 cat >> confdefs.h <<EOF
2342 #define $ac_tr_func 1
2346 echo "$ac_t""no" 1>&6
2353 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2354 if test "${with_libiconv_prefix+set}" = set; then
2355 withval="$with_libiconv_prefix"
2357 for dir in `echo "$withval" | tr : ' '`; do
2358 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2359 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2365 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2366 echo "configure:2367: checking for iconv" >&5
2367 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2371 am_cv_func_iconv="no, consider installing GNU libiconv"
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2379 iconv_t cd = iconv_open("","");
2380 iconv(cd,NULL,NULL,NULL,NULL);
2384 if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2386 am_cv_func_iconv=yes
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2392 if test "$am_cv_func_iconv" != yes; then
2393 am_save_LIBS="$LIBS"
2394 LIBS="$LIBS -liconv"
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2401 iconv_t cd = iconv_open("","");
2402 iconv(cd,NULL,NULL,NULL,NULL);
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2409 am_cv_func_iconv=yes
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2415 LIBS="$am_save_LIBS"
2420 echo "$ac_t""$am_cv_func_iconv" 1>&6
2421 if test "$am_cv_func_iconv" = yes; then
2422 cat >> confdefs.h <<\EOF
2423 #define HAVE_ICONV 1
2426 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2427 echo "configure:2428: checking for iconv declaration" >&5
2428 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2442 #if defined(__STDC__) || defined(__cplusplus)
2443 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2452 if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454 am_cv_proto_iconv_arg1=""
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2459 am_cv_proto_iconv_arg1="const"
2462 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);"
2465 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2466 echo "$ac_t""${ac_t:-
2467 }$am_cv_proto_iconv" 1>&6
2468 cat >> confdefs.h <<EOF
2469 #define ICONV_CONST $am_cv_proto_iconv_arg1
2474 if test "$am_cv_lib_iconv" = yes; then
2480 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2481 echo "configure:2482: checking for nl_langinfo and CODESET" >&5
2482 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <langinfo.h>
2490 char* cs = nl_langinfo(CODESET);
2493 if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2495 am_cv_langinfo_codeset=yes
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 am_cv_langinfo_codeset=no
2506 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2507 if test $am_cv_langinfo_codeset = yes; then
2508 cat >> confdefs.h <<\EOF
2509 #define HAVE_LANGINFO_CODESET 1
2514 if test $ac_cv_header_locale_h = yes; then
2515 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2516 echo "configure:2517: checking for LC_MESSAGES" >&5
2517 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2528 if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2530 am_cv_val_LC_MESSAGES=yes
2532 echo "configure: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2535 am_cv_val_LC_MESSAGES=no
2540 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2541 if test $am_cv_val_LC_MESSAGES = yes; then
2542 cat >> confdefs.h <<\EOF
2543 #define HAVE_LC_MESSAGES 1
2548 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2549 echo "configure:2550: checking whether NLS is requested" >&5
2550 # Check whether --enable-nls or --disable-nls was given.
2551 if test "${enable_nls+set}" = set; then
2552 enableval="$enable_nls"
2558 echo "$ac_t""$USE_NLS" 1>&6
2561 BUILD_INCLUDED_LIBINTL=no
2562 USE_INCLUDED_LIBINTL=no
2565 if test "$USE_NLS" = "yes"; then
2566 cat >> confdefs.h <<\EOF
2567 #define ENABLE_NLS 1
2570 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2571 echo "configure:2572: checking whether included gettext is requested" >&5
2572 # Check whether --with-included-gettext or --without-included-gettext was given.
2573 if test "${with_included_gettext+set}" = set; then
2574 withval="$with_included_gettext"
2575 nls_cv_force_use_gnu_gettext=$withval
2577 nls_cv_force_use_gnu_gettext=no
2580 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2582 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2583 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2589 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2590 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2591 echo "configure:2592: checking for libintl.h" >&5
2592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 #include <libintl.h>
2600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2601 { (eval echo configure:2602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2603 if test -z "$ac_err"; then
2605 eval "ac_cv_header_$ac_safe=yes"
2608 echo "configure: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2611 eval "ac_cv_header_$ac_safe=no"
2615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2616 echo "$ac_t""yes" 1>&6
2617 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2618 echo "configure:2619: checking for GNU gettext in libc" >&5
2619 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2625 #include <libintl.h>
2626 extern int _nl_msg_cat_cntr;
2628 bindtextdomain ("", "");
2629 return (int) gettext ("") + _nl_msg_cat_cntr
2632 if { (eval echo configure:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2634 gt_cv_func_gnugettext1_libc=yes
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2639 gt_cv_func_gnugettext1_libc=no
2644 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2646 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2647 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2648 echo "configure:2649: checking for GNU gettext in libintl" >&5
2649 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 gt_save_LIBS="$LIBS"
2653 LIBS="$LIBS -lintl $LIBICONV"
2654 cat > conftest.$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2657 #include <libintl.h>
2658 extern int _nl_msg_cat_cntr;
2660 bindtextdomain ("", "");
2661 return (int) gettext ("") + _nl_msg_cat_cntr
2664 if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2666 gt_cv_func_gnugettext1_libintl=yes
2668 echo "configure: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2671 gt_cv_func_gnugettext1_libintl=no
2674 LIBS="$gt_save_LIBS"
2677 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2680 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2681 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2682 && test "$PACKAGE" != gettext; }; then
2683 cat >> confdefs.h <<\EOF
2684 #define HAVE_GETTEXT 1
2688 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2689 INTLLIBS="-lintl $LIBICONV"
2692 gt_save_LIBS="$LIBS"
2693 LIBS="$LIBS $INTLLIBS"
2694 for ac_func in dcgettext
2696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_func" >&5
2698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2704 /* System header to define __stub macros and hopefully few prototypes,
2705 which can conflict with char $ac_func(); below. */
2707 /* Override any gcc2 internal prototype to avoid an error. */
2708 /* We use char because int might match the return type of a gcc2
2709 builtin and then its argument prototype would still apply. */
2714 /* The GNU C library defines this for functions which it implements
2715 to always fail with ENOSYS. Some functions are actually named
2716 something starting with __ and the normal name is an alias. */
2717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2725 if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2727 eval "ac_cv_func_$ac_func=yes"
2729 echo "configure: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2732 eval "ac_cv_func_$ac_func=no"
2737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2738 echo "$ac_t""yes" 1>&6
2739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2740 cat >> confdefs.h <<EOF
2741 #define $ac_tr_func 1
2745 echo "$ac_t""no" 1>&6
2749 LIBS="$gt_save_LIBS"
2751 # Extract the first word of "msgfmt", so it can be a program name with args.
2752 set dummy msgfmt; ac_word=$2
2753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2754 echo "configure:2755: checking for $ac_word" >&5
2755 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2760 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2764 for ac_dir in $PATH; do
2765 test -z "$ac_dir" && ac_dir=.
2766 if test -f $ac_dir/$ac_word; then
2767 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2768 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2774 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2778 MSGFMT="$ac_cv_path_MSGFMT"
2779 if test "$MSGFMT" != ":"; then
2780 echo "$ac_t""$MSGFMT" 1>&6
2782 echo "$ac_t""no" 1>&6
2785 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2786 set dummy gmsgfmt; ac_word=$2
2787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_word" >&5
2789 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2794 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2797 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2802 for ac_dir in $ac_dummy; do
2803 test -z "$ac_dir" && ac_dir=.
2804 if test -f $ac_dir/$ac_word; then
2805 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2810 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2814 GMSGFMT="$ac_cv_path_GMSGFMT"
2815 if test -n "$GMSGFMT"; then
2816 echo "$ac_t""$GMSGFMT" 1>&6
2818 echo "$ac_t""no" 1>&6
2822 # Extract the first word of "xgettext", so it can be a program name with args.
2823 set dummy xgettext; ac_word=$2
2824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2825 echo "configure:2826: checking for $ac_word" >&5
2826 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2831 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2835 for ac_dir in $PATH; do
2836 test -z "$ac_dir" && ac_dir=.
2837 if test -f $ac_dir/$ac_word; then
2838 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2839 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2845 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2849 XGETTEXT="$ac_cv_path_XGETTEXT"
2850 if test "$XGETTEXT" != ":"; then
2851 echo "$ac_t""$XGETTEXT" 1>&6
2853 echo "$ac_t""no" 1>&6
2861 echo "$ac_t""no" 1>&6
2865 if test "$CATOBJEXT" = "NONE"; then
2866 nls_cv_use_gnu_gettext=yes
2870 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2871 INTLOBJS="\$(GETTOBJS)"
2872 # Extract the first word of "msgfmt", so it can be a program name with args.
2873 set dummy msgfmt; ac_word=$2
2874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2875 echo "configure:2876: checking for $ac_word" >&5
2876 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2881 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2885 for ac_dir in $PATH; do
2886 test -z "$ac_dir" && ac_dir=.
2887 if test -f $ac_dir/$ac_word; then
2888 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2889 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2895 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2899 MSGFMT="$ac_cv_path_MSGFMT"
2900 if test "$MSGFMT" != ":"; then
2901 echo "$ac_t""$MSGFMT" 1>&6
2903 echo "$ac_t""no" 1>&6
2906 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2907 set dummy gmsgfmt; ac_word=$2
2908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2909 echo "configure:2910: checking for $ac_word" >&5
2910 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2915 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2918 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2923 for ac_dir in $ac_dummy; do
2924 test -z "$ac_dir" && ac_dir=.
2925 if test -f $ac_dir/$ac_word; then
2926 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2931 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2935 GMSGFMT="$ac_cv_path_GMSGFMT"
2936 if test -n "$GMSGFMT"; then
2937 echo "$ac_t""$GMSGFMT" 1>&6
2939 echo "$ac_t""no" 1>&6
2942 # Extract the first word of "xgettext", so it can be a program name with args.
2943 set dummy xgettext; ac_word=$2
2944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2945 echo "configure:2946: checking for $ac_word" >&5
2946 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2951 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2955 for ac_dir in $PATH; do
2956 test -z "$ac_dir" && ac_dir=.
2957 if test -f $ac_dir/$ac_word; then
2958 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2959 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2965 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2969 XGETTEXT="$ac_cv_path_XGETTEXT"
2970 if test "$XGETTEXT" != ":"; then
2971 echo "$ac_t""$XGETTEXT" 1>&6
2973 echo "$ac_t""no" 1>&6
2977 BUILD_INCLUDED_LIBINTL=yes
2978 USE_INCLUDED_LIBINTL=yes
2980 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2981 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2984 if test "$GMSGFMT" != ":"; then
2985 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2988 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2993 if test "$XGETTEXT" != ":"; then
2994 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2997 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3007 if test "$PACKAGE" = gettext; then
3008 BUILD_INCLUDED_LIBINTL=yes
3011 for ac_prog in bison
3013 # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy $ac_prog; ac_word=$2
3015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3016 echo "configure:3017: checking for $ac_word" >&5
3017 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 if test -n "$INTLBISON"; then
3021 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3025 for ac_dir in $ac_dummy; do
3026 test -z "$ac_dir" && ac_dir=.
3027 if test -f $ac_dir/$ac_word; then
3028 ac_cv_prog_INTLBISON="$ac_prog"
3035 INTLBISON="$ac_cv_prog_INTLBISON"
3036 if test -n "$INTLBISON"; then
3037 echo "$ac_t""$INTLBISON" 1>&6
3039 echo "$ac_t""no" 1>&6
3042 test -n "$INTLBISON" && break
3045 if test -z "$INTLBISON"; then
3048 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3049 echo "configure:3050: checking version of bison" >&5
3050 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3051 case $ac_prog_version in
3052 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3053 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3054 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3055 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3057 echo "$ac_t""$ac_prog_version" 1>&6
3059 if test $ac_verc_fail = yes; then
3063 for lang in $ALL_LINGUAS; do
3064 GMOFILES="$GMOFILES $lang.gmo"
3065 POFILES="$POFILES $lang.po"
3079 nls_cv_header_libgt=
3091 if test "x$CATOBJEXT" != "x"; then
3092 if test "x$ALL_LINGUAS" = "x"; then
3095 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3096 echo "configure:3097: checking for catalogs to be installed" >&5
3098 for presentlang in $ALL_LINGUAS; do
3100 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3101 # Use the presentlang catalog if desiredlang is
3102 # a. equal to presentlang, or
3103 # b. a variant of presentlang (because in this case,
3104 # presentlang can be used as a fallback for messages
3105 # which are not translated in the desiredlang catalog).
3106 case "$desiredlang" in
3107 "$presentlang"*) useit=yes;;
3110 if test $useit = yes; then
3111 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3114 LINGUAS=$NEW_LINGUAS
3115 echo "$ac_t""$LINGUAS" 1>&6
3118 if test -n "$LINGUAS"; then
3119 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3124 if test -n "$ac_aux_dir"; then
3125 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3127 if test -z "$MKINSTALLDIRS"; then
3128 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3132 INTL_LIBTOOL_SUFFIX_PREFIX=
3136 # Find a good install program. We prefer a C program (faster),
3137 # so one script is as good as another. But avoid the broken or
3138 # incompatible versions:
3139 # SysV /etc/install, /usr/sbin/install
3140 # SunOS /usr/etc/install
3141 # IRIX /sbin/install
3143 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3144 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3145 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3146 # ./install, which can be erroneously created by make from ./install.sh.
3147 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3148 echo "configure:3149: checking for a BSD compatible install" >&5
3149 if test -z "$INSTALL"; then
3150 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3154 for ac_dir in $PATH; do
3155 # Account for people who put trailing slashes in PATH elements.
3157 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3159 # OSF1 and SCO ODT 3.0 have their own names for install.
3160 # Don't use installbsd from OSF since it installs stuff as root
3162 for ac_prog in ginstall scoinst install; do
3163 if test -f $ac_dir/$ac_prog; then
3164 if test $ac_prog = install &&
3165 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3166 # AIX install. It has an incompatible calling convention.
3169 ac_cv_path_install="$ac_dir/$ac_prog -c"
3180 if test "${ac_cv_path_install+set}" = set; then
3181 INSTALL="$ac_cv_path_install"
3183 # As a last resort, use the slow shell script. We don't cache a
3184 # path for INSTALL within a source directory, because that will
3185 # break other packages using the cache if that directory is
3186 # removed, or if the path is relative.
3187 INSTALL="$ac_install_sh"
3190 echo "$ac_t""$INSTALL" 1>&6
3192 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3193 # It thinks the first close brace ends the variable substitution.
3194 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3196 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3198 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3201 vlc_LDFLAGS="${LDFLAGS}"
3203 case x"${target_os}" in
3212 save_CFLAGS="${save_CFLAGS} -pthread"
3213 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3214 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3218 save_CFLAGS="${save_CFLAGS} -pthread"
3222 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3226 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}windres; ac_word=$2
3228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3229 echo "configure:3230: checking for $ac_word" >&5
3230 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 if test -n "$WINDRES"; then
3234 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3238 for ac_dir in $ac_dummy; do
3239 test -z "$ac_dir" && ac_dir=.
3240 if test -f $ac_dir/$ac_word; then
3241 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3248 WINDRES="$ac_cv_prog_WINDRES"
3249 if test -n "$WINDRES"; then
3250 echo "$ac_t""$WINDRES" 1>&6
3252 echo "$ac_t""no" 1>&6
3256 if test -z "$ac_cv_prog_WINDRES"; then
3257 if test -n "$ac_tool_prefix"; then
3258 # Extract the first word of "windres", so it can be a program name with args.
3259 set dummy windres; ac_word=$2
3260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3261 echo "configure:3262: checking for $ac_word" >&5
3262 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3265 if test -n "$WINDRES"; then
3266 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3270 for ac_dir in $ac_dummy; do
3271 test -z "$ac_dir" && ac_dir=.
3272 if test -f $ac_dir/$ac_word; then
3273 ac_cv_prog_WINDRES="windres"
3278 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3281 WINDRES="$ac_cv_prog_WINDRES"
3282 if test -n "$WINDRES"; then
3283 echo "$ac_t""$WINDRES" 1>&6
3285 echo "$ac_t""no" 1>&6
3293 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3294 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3295 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3296 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3297 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3298 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3299 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3303 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3304 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3308 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3309 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3310 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3311 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3312 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3319 if test x"${SYS}" = xmingw32
3321 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3323 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3326 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3328 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3331 echo "configure:3332: checking for $ac_func" >&5
3332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 /* System header to define __stub macros and hopefully few prototypes,
3339 which can conflict with char $ac_func(); below. */
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 /* We use char because int might match the return type of a gcc2
3343 builtin and then its argument prototype would still apply. */
3348 /* The GNU C library defines this for functions which it implements
3349 to always fail with ENOSYS. Some functions are actually named
3350 something starting with __ and the normal name is an alias. */
3351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3359 if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3361 eval "ac_cv_func_$ac_func=yes"
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3366 eval "ac_cv_func_$ac_func=no"
3371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3372 echo "$ac_t""yes" 1>&6
3373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3374 cat >> confdefs.h <<EOF
3375 #define $ac_tr_func 1
3379 echo "$ac_t""no" 1>&6
3384 echo $ac_n "checking for connect""... $ac_c" 1>&6
3385 echo "configure:3386: checking for connect" >&5
3386 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 /* System header to define __stub macros and hopefully few prototypes,
3393 which can conflict with char connect(); below. */
3395 /* Override any gcc2 internal prototype to avoid an error. */
3396 /* We use char because int might match the return type of a gcc2
3397 builtin and then its argument prototype would still apply. */
3402 /* The GNU C library defines this for functions which it implements
3403 to always fail with ENOSYS. Some functions are actually named
3404 something starting with __ and the normal name is an alias. */
3405 #if defined (__stub_connect) || defined (__stub___connect)
3413 if { (eval echo configure:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3415 eval "ac_cv_func_connect=yes"
3417 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3420 eval "ac_cv_func_connect=no"
3425 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3429 echo "$ac_t""no" 1>&6
3431 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3432 echo "configure:3433: checking for connect in -lsocket" >&5
3433 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 ac_save_LIBS="$LIBS"
3438 LIBS="-lsocket $LIBS"
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 /* Override any gcc2 internal prototype to avoid an error. */
3443 /* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3451 if { (eval echo configure:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3453 eval "ac_cv_lib_$ac_lib_var=yes"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3458 eval "ac_cv_lib_$ac_lib_var=no"
3461 LIBS="$ac_save_LIBS"
3464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3466 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3467 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3470 echo "$ac_t""no" 1>&6
3475 echo $ac_n "checking for send""... $ac_c" 1>&6
3476 echo "configure:3477: checking for send" >&5
3477 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 /* System header to define __stub macros and hopefully few prototypes,
3484 which can conflict with char send(); below. */
3486 /* Override any gcc2 internal prototype to avoid an error. */
3487 /* We use char because int might match the return type of a gcc2
3488 builtin and then its argument prototype would still apply. */
3493 /* The GNU C library defines this for functions which it implements
3494 to always fail with ENOSYS. Some functions are actually named
3495 something starting with __ and the normal name is an alias. */
3496 #if defined (__stub_send) || defined (__stub___send)
3504 if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3506 eval "ac_cv_func_send=yes"
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3511 eval "ac_cv_func_send=no"
3516 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3520 echo "$ac_t""no" 1>&6
3522 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3523 echo "configure:3524: checking for send in -lsocket" >&5
3524 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 ac_save_LIBS="$LIBS"
3529 LIBS="-lsocket $LIBS"
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 /* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3542 if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3544 eval "ac_cv_lib_$ac_lib_var=yes"
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 eval "ac_cv_lib_$ac_lib_var=no"
3552 LIBS="$ac_save_LIBS"
3555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3556 echo "$ac_t""yes" 1>&6
3557 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3560 echo "$ac_t""no" 1>&6
3565 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3566 echo "configure:3567: checking for gethostbyname" >&5
3567 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* System header to define __stub macros and hopefully few prototypes,
3574 which can conflict with char gethostbyname(); below. */
3576 /* Override any gcc2 internal prototype to avoid an error. */
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3579 char gethostbyname();
3583 /* The GNU C library defines this for functions which it implements
3584 to always fail with ENOSYS. Some functions are actually named
3585 something starting with __ and the normal name is an alias. */
3586 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3596 eval "ac_cv_func_gethostbyname=yes"
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3601 eval "ac_cv_func_gethostbyname=no"
3606 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3610 echo "$ac_t""no" 1>&6
3612 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3613 echo "configure:3614: checking for gethostbyname in -lnsl" >&5
3614 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 ac_save_LIBS="$LIBS"
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 /* We use char because int might match the return type of a gcc2
3625 builtin and then its argument prototype would still apply. */
3626 char gethostbyname();
3632 if { (eval echo configure:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3634 eval "ac_cv_lib_$ac_lib_var=yes"
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3639 eval "ac_cv_lib_$ac_lib_var=no"
3642 LIBS="$ac_save_LIBS"
3645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3646 echo "$ac_t""yes" 1>&6
3647 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3649 echo "$ac_t""no" 1>&6
3655 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3656 echo "configure:3657: checking for gethostbyname" >&5
3657 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 /* System header to define __stub macros and hopefully few prototypes,
3664 which can conflict with char gethostbyname(); below. */
3666 /* Override any gcc2 internal prototype to avoid an error. */
3667 /* We use char because int might match the return type of a gcc2
3668 builtin and then its argument prototype would still apply. */
3669 char gethostbyname();
3673 /* The GNU C library defines this for functions which it implements
3674 to always fail with ENOSYS. Some functions are actually named
3675 something starting with __ and the normal name is an alias. */
3676 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3684 if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3686 eval "ac_cv_func_gethostbyname=yes"
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3691 eval "ac_cv_func_gethostbyname=no"
3696 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3697 echo "$ac_t""yes" 1>&6
3700 echo "$ac_t""no" 1>&6
3702 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3703 echo "configure:3704: checking for gethostbyname in -lbind" >&5
3704 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 ac_save_LIBS="$LIBS"
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3716 char gethostbyname();
3722 if { (eval echo configure:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3724 eval "ac_cv_lib_$ac_lib_var=yes"
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3729 eval "ac_cv_lib_$ac_lib_var=no"
3732 LIBS="$ac_save_LIBS"
3735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3736 echo "$ac_t""yes" 1>&6
3737 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3739 echo "$ac_t""no" 1>&6
3745 for ac_func in nanosleep
3747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3748 echo "configure:3749: checking for $ac_func" >&5
3749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 /* System header to define __stub macros and hopefully few prototypes,
3756 which can conflict with char $ac_func(); below. */
3758 /* Override any gcc2 internal prototype to avoid an error. */
3759 /* We use char because int might match the return type of a gcc2
3760 builtin and then its argument prototype would still apply. */
3765 /* The GNU C library defines this for functions which it implements
3766 to always fail with ENOSYS. Some functions are actually named
3767 something starting with __ and the normal name is an alias. */
3768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3776 if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3778 eval "ac_cv_func_$ac_func=yes"
3780 echo "configure: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3783 eval "ac_cv_func_$ac_func=no"
3788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3789 echo "$ac_t""yes" 1>&6
3790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3791 cat >> confdefs.h <<EOF
3792 #define $ac_tr_func 1
3796 echo "$ac_t""no" 1>&6
3797 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3798 echo "configure:3799: checking for nanosleep in -lrt" >&5
3799 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 ac_save_LIBS="$LIBS"
3805 cat > conftest.$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3808 /* Override any gcc2 internal prototype to avoid an error. */
3809 /* We use char because int might match the return type of a gcc2
3810 builtin and then its argument prototype would still apply. */
3817 if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819 eval "ac_cv_lib_$ac_lib_var=yes"
3821 echo "configure: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3824 eval "ac_cv_lib_$ac_lib_var=no"
3827 LIBS="$ac_save_LIBS"
3830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3831 echo "$ac_t""yes" 1>&6
3832 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3834 echo "$ac_t""no" 1>&6
3835 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3836 echo "configure:3837: checking for nanosleep in -lposix4" >&5
3837 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3841 ac_save_LIBS="$LIBS"
3842 LIBS="-lposix4 $LIBS"
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3846 /* Override any gcc2 internal prototype to avoid an error. */
3847 /* We use char because int might match the return type of a gcc2
3848 builtin and then its argument prototype would still apply. */
3855 if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3857 eval "ac_cv_lib_$ac_lib_var=yes"
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3862 eval "ac_cv_lib_$ac_lib_var=no"
3865 LIBS="$ac_save_LIBS"
3868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3869 echo "$ac_t""yes" 1>&6
3870 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3872 echo "$ac_t""no" 1>&6
3882 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3883 echo "configure:3884: checking for inet_aton" >&5
3884 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3890 /* System header to define __stub macros and hopefully few prototypes,
3891 which can conflict with char inet_aton(); below. */
3893 /* Override any gcc2 internal prototype to avoid an error. */
3894 /* We use char because int might match the return type of a gcc2
3895 builtin and then its argument prototype would still apply. */
3900 /* The GNU C library defines this for functions which it implements
3901 to always fail with ENOSYS. Some functions are actually named
3902 something starting with __ and the normal name is an alias. */
3903 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3913 eval "ac_cv_func_inet_aton=yes"
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3918 eval "ac_cv_func_inet_aton=no"
3923 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3924 echo "$ac_t""yes" 1>&6
3927 echo "$ac_t""no" 1>&6
3929 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3930 echo "configure:3931: checking for inet_aton in -lresolv" >&5
3931 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 ac_save_LIBS="$LIBS"
3936 LIBS="-lresolv $LIBS"
3937 cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3940 /* Override any gcc2 internal prototype to avoid an error. */
3941 /* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 eval "ac_cv_lib_$ac_lib_var=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3956 eval "ac_cv_lib_$ac_lib_var=no"
3959 LIBS="$ac_save_LIBS"
3962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3963 echo "$ac_t""yes" 1>&6
3964 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3966 echo "$ac_t""no" 1>&6
3972 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3973 echo "configure:3974: checking for textdomain" >&5
3974 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3977 cat > conftest.$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3980 /* System header to define __stub macros and hopefully few prototypes,
3981 which can conflict with char textdomain(); below. */
3983 /* Override any gcc2 internal prototype to avoid an error. */
3984 /* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3990 /* The GNU C library defines this for functions which it implements
3991 to always fail with ENOSYS. Some functions are actually named
3992 something starting with __ and the normal name is an alias. */
3993 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4001 if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4003 eval "ac_cv_func_textdomain=yes"
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4008 eval "ac_cv_func_textdomain=no"
4013 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4017 echo "$ac_t""no" 1>&6
4019 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4020 echo "configure:4021: checking for textdomain in -lintl" >&5
4021 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 ac_save_LIBS="$LIBS"
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4030 /* Override any gcc2 internal prototype to avoid an error. */
4031 /* We use char because int might match the return type of a gcc2
4032 builtin and then its argument prototype would still apply. */
4039 if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4041 eval "ac_cv_lib_$ac_lib_var=yes"
4043 echo "configure: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4046 eval "ac_cv_lib_$ac_lib_var=no"
4049 LIBS="$ac_save_LIBS"
4052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4053 echo "$ac_t""yes" 1>&6
4054 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4056 echo "$ac_t""no" 1>&6
4064 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4065 echo "configure:4066: checking for getopt_long" >&5
4066 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 /* System header to define __stub macros and hopefully few prototypes,
4073 which can conflict with char getopt_long(); below. */
4075 /* Override any gcc2 internal prototype to avoid an error. */
4076 /* We use char because int might match the return type of a gcc2
4077 builtin and then its argument prototype would still apply. */
4082 /* The GNU C library defines this for functions which it implements
4083 to always fail with ENOSYS. Some functions are actually named
4084 something starting with __ and the normal name is an alias. */
4085 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4093 if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4095 eval "ac_cv_func_getopt_long=yes"
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4100 eval "ac_cv_func_getopt_long=no"
4105 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4106 echo "$ac_t""yes" 1>&6
4107 cat >> confdefs.h <<\EOF
4108 #define HAVE_GETOPT_LONG 1
4112 echo "$ac_t""no" 1>&6
4113 # FreeBSD has a gnugetopt library for this:
4114 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4115 echo "configure:4116: checking for getopt_long in -lgnugetopt" >&5
4116 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4120 ac_save_LIBS="$LIBS"
4121 LIBS="-lgnugetopt $LIBS"
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 /* Override any gcc2 internal prototype to avoid an error. */
4126 /* We use char because int might match the return type of a gcc2
4127 builtin and then its argument prototype would still apply. */
4134 if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4136 eval "ac_cv_lib_$ac_lib_var=yes"
4138 echo "configure: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4141 eval "ac_cv_lib_$ac_lib_var=no"
4144 LIBS="$ac_save_LIBS"
4147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4148 echo "$ac_t""yes" 1>&6
4149 cat >> confdefs.h <<\EOF
4150 #define HAVE_GETOPT_LONG 1
4152 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4154 echo "$ac_t""no" 1>&6
4161 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4162 echo "configure:4163: checking return type of signal handlers" >&5
4163 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 #include <sys/types.h>
4175 extern "C" void (*signal (int, void (*)(int)))(int);
4177 void (*signal ()) ();
4184 if { (eval echo configure:4185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4186 ac_cv_type_signal=void
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 ac_cv_type_signal=int
4196 echo "$ac_t""$ac_cv_type_signal" 1>&6
4197 cat >> confdefs.h <<EOF
4198 #define RETSIGTYPE $ac_cv_type_signal
4202 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4203 echo "configure:4204: checking for dlopen in -ldl" >&5
4204 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4208 ac_save_LIBS="$LIBS"
4210 cat > conftest.$ac_ext <<EOF
4211 #line 4212 "configure"
4212 #include "confdefs.h"
4213 /* Override any gcc2 internal prototype to avoid an error. */
4214 /* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4222 if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4224 eval "ac_cv_lib_$ac_lib_var=yes"
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4229 eval "ac_cv_lib_$ac_lib_var=no"
4232 LIBS="$ac_save_LIBS"
4235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4236 echo "$ac_t""yes" 1>&6
4237 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4239 echo "$ac_t""no" 1>&6
4242 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4243 echo "configure:4244: checking for cos in -lm" >&5
4244 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 ac_save_LIBS="$LIBS"
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264 eval "ac_cv_lib_$ac_lib_var=yes"
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 eval "ac_cv_lib_$ac_lib_var=no"
4272 LIBS="$ac_save_LIBS"
4275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4277 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4278 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4280 echo "$ac_t""no" 1>&6
4283 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4284 echo "configure:4285: checking for pow in -lm" >&5
4285 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 ac_save_LIBS="$LIBS"
4291 cat > conftest.$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4294 /* Override any gcc2 internal prototype to avoid an error. */
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4303 if { (eval echo configure:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4305 eval "ac_cv_lib_$ac_lib_var=yes"
4307 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4310 eval "ac_cv_lib_$ac_lib_var=no"
4313 LIBS="$ac_save_LIBS"
4316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4317 echo "$ac_t""yes" 1>&6
4318 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4319 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4320 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4321 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4322 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4325 echo "$ac_t""no" 1>&6
4330 if test "x${THREAD_LIB}" = xerror; then
4331 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4332 echo "configure:4333: checking for pthread_attr_init in -lpthread" >&5
4333 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 ac_save_LIBS="$LIBS"
4338 LIBS="-lpthread $LIBS"
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 /* Override any gcc2 internal prototype to avoid an error. */
4343 /* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4345 char pthread_attr_init();
4351 if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4353 eval "ac_cv_lib_$ac_lib_var=yes"
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4358 eval "ac_cv_lib_$ac_lib_var=no"
4361 LIBS="$ac_save_LIBS"
4364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4366 THREAD_LIB="-lpthread"
4368 echo "$ac_t""no" 1>&6
4372 if test "x${THREAD_LIB}" = xerror; then
4373 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4374 echo "configure:4375: checking for pthread_attr_init in -lpthreads" >&5
4375 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 ac_save_LIBS="$LIBS"
4380 LIBS="-lpthreads $LIBS"
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 /* Override any gcc2 internal prototype to avoid an error. */
4385 /* We use char because int might match the return type of a gcc2
4386 builtin and then its argument prototype would still apply. */
4387 char pthread_attr_init();
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 eval "ac_cv_lib_$ac_lib_var=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4400 eval "ac_cv_lib_$ac_lib_var=no"
4403 LIBS="$ac_save_LIBS"
4406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4407 echo "$ac_t""yes" 1>&6
4408 THREAD_LIB="-lpthreads"
4410 echo "$ac_t""no" 1>&6
4414 if test "x${THREAD_LIB}" = xerror; then
4415 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4416 echo "configure:4417: checking for pthread_attr_init in -lc_r" >&5
4417 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 ac_save_LIBS="$LIBS"
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426 /* Override any gcc2 internal prototype to avoid an error. */
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4429 char pthread_attr_init();
4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437 eval "ac_cv_lib_$ac_lib_var=yes"
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 eval "ac_cv_lib_$ac_lib_var=no"
4445 LIBS="$ac_save_LIBS"
4448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4452 echo "$ac_t""no" 1>&6
4456 if test "x${THREAD_LIB}" = xerror; then
4457 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4458 echo "configure:4459: checking for pthread_attr_init" >&5
4459 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4465 /* System header to define __stub macros and hopefully few prototypes,
4466 which can conflict with char pthread_attr_init(); below. */
4468 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4471 char pthread_attr_init();
4475 /* The GNU C library defines this for functions which it implements
4476 to always fail with ENOSYS. Some functions are actually named
4477 something starting with __ and the normal name is an alias. */
4478 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4481 pthread_attr_init();
4486 if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4488 eval "ac_cv_func_pthread_attr_init=yes"
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4493 eval "ac_cv_func_pthread_attr_init=no"
4498 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4499 echo "$ac_t""yes" 1>&6
4502 echo "$ac_t""no" 1>&6
4508 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4509 echo "configure:4510: checking for cthread_fork in -lthreads" >&5
4510 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4514 ac_save_LIBS="$LIBS"
4515 LIBS="-lthreads $LIBS"
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4519 /* Override any gcc2 internal prototype to avoid an error. */
4520 /* We use char because int might match the return type of a gcc2
4521 builtin and then its argument prototype would still apply. */
4522 char cthread_fork();
4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4530 eval "ac_cv_lib_$ac_lib_var=yes"
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4535 eval "ac_cv_lib_$ac_lib_var=no"
4538 LIBS="$ac_save_LIBS"
4541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4542 echo "$ac_t""yes" 1>&6
4543 THREAD_LIB="-lthreads"
4545 echo "$ac_t""no" 1>&6
4549 cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4552 #include <pthread.h>
4554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555 egrep "pthread_cond_t" >/dev/null 2>&1; then
4558 cat >> confdefs.h <<\EOF
4559 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4565 cat > conftest.$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4568 #include <pthread.h>
4570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4571 egrep "pthread_once" >/dev/null 2>&1; then
4574 cat >> confdefs.h <<\EOF
4575 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 #include <strings.h>
4586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4587 egrep "strncasecmp" >/dev/null 2>&1; then
4590 cat >> confdefs.h <<\EOF
4591 #define STRNCASECMP_IN_STRINGS_H 1
4598 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4602 echo "configure:4603: checking for $ac_hdr" >&5
4603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4612 { (eval echo configure:4613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4614 if test -z "$ac_err"; then
4616 eval "ac_cv_header_$ac_safe=yes"
4619 echo "configure: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4622 eval "ac_cv_header_$ac_safe=no"
4626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4627 echo "$ac_t""yes" 1>&6
4628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4629 cat >> confdefs.h <<EOF
4630 #define $ac_tr_hdr 1
4634 echo "$ac_t""no" 1>&6
4638 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4642 echo "configure:4643: checking for $ac_hdr" >&5
4643 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4644 echo $ac_n "(cached) $ac_c" 1>&6
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4652 { (eval echo configure:4653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4654 if test -z "$ac_err"; then
4656 eval "ac_cv_header_$ac_safe=yes"
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4662 eval "ac_cv_header_$ac_safe=no"
4666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4667 echo "$ac_t""yes" 1>&6
4668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4669 cat >> confdefs.h <<EOF
4670 #define $ac_tr_hdr 1
4674 echo "$ac_t""no" 1>&6
4678 for ac_hdr in dlfcn.h image.h
4680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4682 echo "configure:4683: checking for $ac_hdr" >&5
4683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 cat > conftest.$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4692 { (eval echo configure:4693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4694 if test -z "$ac_err"; then
4696 eval "ac_cv_header_$ac_safe=yes"
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4702 eval "ac_cv_header_$ac_safe=no"
4706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4707 echo "$ac_t""yes" 1>&6
4708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4709 cat >> confdefs.h <<EOF
4710 #define $ac_tr_hdr 1
4714 echo "$ac_t""no" 1>&6
4718 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4722 echo "configure:4723: checking for $ac_hdr" >&5
4723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4732 { (eval echo configure:4733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4734 if test -z "$ac_err"; then
4736 eval "ac_cv_header_$ac_safe=yes"
4739 echo "configure: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4742 eval "ac_cv_header_$ac_safe=no"
4746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4747 echo "$ac_t""yes" 1>&6
4748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4749 cat >> confdefs.h <<EOF
4750 #define $ac_tr_hdr 1
4754 echo "$ac_t""no" 1>&6
4758 for ac_hdr in machine/param.h sys/shm.h
4760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4762 echo "configure:4763: checking for $ac_hdr" >&5
4763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4764 echo $ac_n "(cached) $ac_c" 1>&6
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4772 { (eval echo configure:4773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4774 if test -z "$ac_err"; then
4776 eval "ac_cv_header_$ac_safe=yes"
4779 echo "configure: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4782 eval "ac_cv_header_$ac_safe=no"
4786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4787 echo "$ac_t""yes" 1>&6
4788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4789 cat >> confdefs.h <<EOF
4790 #define $ac_tr_hdr 1
4794 echo "$ac_t""no" 1>&6
4798 for ac_hdr in linux/version.h
4800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4802 echo "configure:4803: checking for $ac_hdr" >&5
4803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4806 cat > conftest.$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4812 { (eval echo configure:4813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4814 if test -z "$ac_err"; then
4816 eval "ac_cv_header_$ac_safe=yes"
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4822 eval "ac_cv_header_$ac_safe=no"
4826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4829 cat >> confdefs.h <<EOF
4830 #define $ac_tr_hdr 1
4834 echo "$ac_t""no" 1>&6
4839 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4840 echo "configure:4841: checking whether time.h and sys/time.h may both be included" >&5
4841 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 #include <sys/types.h>
4848 #include <sys/time.h>
4854 if { (eval echo configure:4855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4856 ac_cv_header_time=yes
4858 echo "configure: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4861 ac_cv_header_time=no
4866 echo "$ac_t""$ac_cv_header_time" 1>&6
4867 if test $ac_cv_header_time = yes; then
4868 cat >> confdefs.h <<\EOF
4869 #define TIME_WITH_SYS_TIME 1
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4881 egrep "nanosleep" >/dev/null 2>&1; then
4884 cat >> confdefs.h <<\EOF
4885 #define HAVE_DECL_NANOSLEEP 1
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 #include <sys/time.h>
4898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4899 egrep "timespec" >/dev/null 2>&1; then
4902 cat >> confdefs.h <<\EOF
4903 #define HAVE_STRUCT_TIMESPEC 1
4911 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4915 echo "configure:4916: checking for $ac_hdr" >&5
4916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4925 { (eval echo configure:4926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4927 if test -z "$ac_err"; then
4929 eval "ac_cv_header_$ac_safe=yes"
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4935 eval "ac_cv_header_$ac_safe=no"
4939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4941 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_hdr 1
4947 echo "$ac_t""no" 1>&6
4952 if test x$SYS != xmingw32
4954 if test x$x_includes = xNONE; then
4955 x_includes=/usr/X11R6/include
4957 if test x$x_libraries = xNONE; then
4958 x_libraries=/usr/X11R6/lib
4960 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4961 for ac_hdr in X11/extensions/dpms.h
4963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4965 echo "configure:4966: checking for $ac_hdr" >&5
4966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4967 echo $ac_n "(cached) $ac_c" 1>&6
4969 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4975 { (eval echo configure:4976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4977 if test -z "$ac_err"; then
4979 eval "ac_cv_header_$ac_safe=yes"
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4985 eval "ac_cv_header_$ac_safe=no"
4989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4992 cat >> confdefs.h <<EOF
4993 #define $ac_tr_hdr 1
4996 cat > conftest.$ac_ext <<EOF
4997 #line 4998 "configure"
4998 #include "confdefs.h"
4999 #include <X11/extensions/dpms.h>
5001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5002 egrep "DPMSInfo" >/dev/null 2>&1; then
5005 cat >> confdefs.h <<\EOF
5006 #define DPMSINFO_IN_DPMS_H 1
5015 echo "$ac_t""no" 1>&6
5019 CPPFLAGS="$save_CPPFLAGS"
5022 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5023 echo "configure:5024: checking for ntohl in sys/param.h" >&5
5024 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6
5027 CFLAGS="${save_CFLAGS} -Wall -Werror"
5028 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5031 #include <sys/param.h>
5033 void foo() { int meuh; ntohl(meuh); }
5036 if { (eval echo configure:5037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5038 ac_cv_c_ntohl_sys_param_h=yes
5040 echo "configure: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5043 ac_cv_c_ntohl_sys_param_h=no
5048 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5049 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5050 cat >> confdefs.h <<\EOF
5051 #define NTOHL_IN_SYS_PARAM_H 1
5056 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5057 echo "configure:5058: checking if \$CC accepts -finline-limit" >&5
5058 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5070 if { (eval echo configure:5071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5072 ac_cv_c_inline_limit=yes
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5077 ac_cv_c_inline_limit=no
5082 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5083 if test x"$ac_cv_c_inline_limit" != x"no"; then
5084 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5087 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5088 echo "configure:5089: checking if \$CC accepts -Wall -Winline" >&5
5089 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5093 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5101 if { (eval echo configure:5102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5103 ac_cv_c_Wall_Winline=yes
5105 echo "configure: failed program was:" >&5
5106 cat conftest.$ac_ext >&5
5108 ac_cv_c_Wall_Winline=no
5113 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5114 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5115 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"
5117 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5118 echo "configure:5119: checking if \$CC accepts -wall -winline" >&5
5119 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5122 CFLAGS="-wall -winline ${save_CFLAGS}"
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5131 if { (eval echo configure:5132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5133 ac_cv_c_wall_winline=yes
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5138 ac_cv_c_wall_winline=no
5143 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5144 if test x"$ac_cv_c_wall_winline" != x"no"; then
5145 save_CFLAGS="-wall -winline ${save_CFLAGS}"
5149 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5150 echo "configure:5151: checking if \$CC accepts -pipe" >&5
5151 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5154 CFLAGS="${save_CFLAGS} -pipe"
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5163 if { (eval echo configure:5164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5167 echo "configure: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5175 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5176 if test x"$ac_cv_c_pipe" != x"no"; then
5177 save_CFLAGS="${save_CFLAGS} -pipe"
5180 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5181 echo "configure:5182: checking if \$CC accepts -O3" >&5
5182 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5185 CFLAGS="${save_CFLAGS} -O3"
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure"
5188 #include "confdefs.h"
5194 if { (eval echo configure:5195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5198 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5206 echo "$ac_t""$ac_cv_c_o3" 1>&6
5207 if test x"$ac_cv_c_o3" != x"no"; then
5208 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5210 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5211 echo "configure:5212: checking if \$CC accepts -O2" >&5
5212 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5215 CFLAGS="${save_CFLAGS} -O2"
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5224 if { (eval echo configure:5225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5228 echo "configure: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5236 echo "$ac_t""$ac_cv_c_o2" 1>&6
5237 if test x"$ac_cv_c_o2" != x"no"; then
5238 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5240 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5241 echo "configure:5242: checking if \$CC accepts -O" >&5
5242 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 CFLAGS="${save_CFLAGS} -O"
5246 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5254 if { (eval echo configure:5255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5266 echo "$ac_t""$ac_cv_c_o" 1>&6
5267 if test x"$ac_cv_c_o" != x"no"; then
5268 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5273 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5274 echo "configure:5275: checking if \$CC accepts -ffast-math" >&5
5275 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 CFLAGS="${save_CFLAGS} -ffast-math"
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5287 if { (eval echo configure:5288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5289 ac_cv_c_fast_math=yes
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 ac_cv_c_fast_math=no
5299 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5300 if test x"$ac_cv_c_fast_math" != x"no"; then
5301 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5304 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5305 echo "configure:5306: checking if \$CC accepts -funroll-loops" >&5
5306 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5309 CFLAGS="${save_CFLAGS} -funroll-loops"
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5318 if { (eval echo configure:5319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5320 ac_cv_c_unroll_loops=yes
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5325 ac_cv_c_unroll_loops=no
5330 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5331 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5332 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5335 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5336 echo "configure:5337: checking if \$CC accepts -fomit-frame-pointer" >&5
5337 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5341 cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5349 if { (eval echo configure:5350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5351 ac_cv_c_omit_frame_pointer=yes
5353 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5356 ac_cv_c_omit_frame_pointer=no
5361 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5362 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5363 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5364 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5365 chroma_i420_yuy2_mmx_CFLAGS="${chroma_i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5368 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5369 echo "configure:5370: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5370 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5374 cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5382 if { (eval echo configure:5383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5394 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5395 if test x"$ac_cv_ld_darwin" != x"no"; then
5396 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5399 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5400 echo "configure:5401: checking if \$CC accepts -shared" >&5
5401 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 CFLAGS="${save_CFLAGS} -shared"
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5413 if { (eval echo configure:5414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5415 ac_cv_ld_plugins=yes
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5425 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5426 if test x"$ac_cv_ld_plugins" != x"no"; then
5427 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5430 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5431 echo "configure:5432: checking for variadic cpp macros" >&5
5432 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 CFLAGS="${save_CFLAGS}"
5436 cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5440 #define a(b,c...) printf(b,##c)
5442 a("foo");a("%s","bar");a("%s%s","baz","quux");
5445 if { (eval echo configure:5446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5447 ac_cv_cpp_variadic_macros=yes
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 ac_cv_cpp_variadic_macros=no
5457 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5458 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5459 cat >> confdefs.h <<\EOF
5460 #define HAVE_VARIADIC_MACROS 1
5465 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5466 echo "configure:5467: checking __attribute__ ((aligned ())) support" >&5
5467 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5470 ac_cv_c_attribute_aligned=0
5471 CFLAGS="${save_CFLAGS} -Werror"
5472 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5478 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5481 if { (eval echo configure:5482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5483 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5492 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5493 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5494 cat >> confdefs.h <<EOF
5495 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5500 case x"${target_cpu}" in
5505 ARCH="${target_cpu}"
5509 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
5510 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"
5512 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5513 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5514 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5515 SSE_MODULES="imdctsse downmixsse"
5516 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5518 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5519 echo "configure:5520: checking if \$CC groks MMX inline assembly" >&5
5520 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5523 CFLAGS="${save_CFLAGS}"
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5529 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5532 if { (eval echo configure:5533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5534 ac_cv_mmx_inline=yes
5536 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5544 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5545 if test x"$ac_cv_mmx_inline" != x"no"; then
5546 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5549 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5550 echo "configure:5551: checking if \$CC groks MMX EXT inline assembly" >&5
5551 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 CFLAGS="${save_CFLAGS}"
5555 cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5560 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5563 if { (eval echo configure:5564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5565 ac_cv_mmxext_inline=yes
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5570 ac_cv_mmxext_inline=no
5575 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5576 if test x"$ac_cv_mmxext_inline" != x"no"; then
5577 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5580 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5581 echo "configure:5582: checking if \$CC groks 3D Now! inline assembly" >&5
5582 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5583 echo $ac_n "(cached) $ac_c" 1>&6
5585 CFLAGS="${save_CFLAGS}"
5586 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5591 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5594 if { (eval echo configure:5595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5596 ac_cv_3dnow_inline=yes
5598 echo "configure: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5601 ac_cv_3dnow_inline=no
5606 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5607 if test x"$ac_cv_3dnow_inline" != x"no"; then
5608 cat >> confdefs.h <<\EOF
5609 #define CAN_COMPILE_3DNOW 1
5612 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5615 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5616 echo "configure:5617: checking if \$CC groks SSE inline assembly" >&5
5617 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5618 echo $ac_n "(cached) $ac_c" 1>&6
5620 CFLAGS="${save_CFLAGS}"
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5626 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5629 if { (eval echo configure:5630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5631 ac_cv_sse_inline=yes
5633 echo "configure: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5641 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5642 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5643 cat >> confdefs.h <<\EOF
5644 #define CAN_COMPILE_SSE 1
5647 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5650 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5651 # we should be able to remove this test with future versions of mingw32
5652 if test x$SYS != xmingw32; then
5653 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5654 echo "configure:5655: checking if \$CC groks AltiVec inline assembly" >&5
5655 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5658 CFLAGS="${save_CFLAGS}"
5659 cat > conftest.$ac_ext <<EOF
5660 #line 5661 "configure"
5661 #include "confdefs.h"
5664 asm volatile("vperm 0,1,2,3");
5667 if { (eval echo configure:5668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5669 ac_cv_altivec_inline=yes
5671 echo "configure: failed program was:" >&5
5672 cat conftest.$ac_ext >&5
5674 CFLAGS="$save_CFLAGS -Wa,-m7400"
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5680 asm volatile("vperm 0,1,2,3");
5683 if { (eval echo configure:5684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5685 ac_cv_altivec_inline="-Wa,-m7400"
5687 echo "configure: failed program was:" >&5
5688 cat conftest.$ac_ext >&5
5690 ac_cv_altivec_inline=no
5698 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5699 if test x"$ac_cv_altivec_inline" != x"no"; then
5700 cat >> confdefs.h <<\EOF
5701 #define CAN_COMPILE_ALTIVEC 1
5704 if test x"$ac_cv_altivec_inline" != x"yes"; then
5705 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5706 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5707 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5708 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5710 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5713 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5714 echo "configure:5715: checking if \$CC groks AltiVec C extensions" >&5
5715 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 CFLAGS="$save_CFLAGS -faltivec"
5720 cat > conftest.$ac_ext <<EOF
5721 #line 5722 "configure"
5722 #include "confdefs.h"
5725 vec_mtvscr((vector unsigned int)(0));
5728 if { (eval echo configure:5729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5730 ac_cv_c_altivec=-faltivec
5732 echo "configure: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5737 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5738 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5743 vec_mtvscr((vector unsigned int)(0));
5746 if { (eval echo configure:5747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5748 ac_cv_c_altivec="-fvec"
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5762 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5763 if test x"$ac_cv_c_altivec" != x"no"; then
5764 cat >> confdefs.h <<\EOF
5765 #define CAN_COMPILE_C_ALTIVEC 1
5768 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5769 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5770 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5771 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5772 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5775 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5776 echo "configure:5777: checking if linker needs -framework vecLib" >&5
5777 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 LDFLAGS="$vlc_LDFLAGS -framework vecLib"
5781 cat > conftest.$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5791 ac_cv_ld_altivec=yes
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5802 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5803 if test x"$ac_cv_ld_altivec" != x"no"; then
5804 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5805 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5806 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5807 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5812 # Check whether --with- or --without- was given.
5813 if test "${with_+set}" = set; then
5818 # Check whether --with- or --without- was given.
5819 if test "${with_+set}" = set; then
5825 # Check whether --with-tuning or --without-tuning was given.
5826 if test "${with_tuning+set}" = set; then
5827 withval="$with_tuning"
5831 if test "x$with_tuning" != "x"; then
5832 TUNING="$with_tuning"
5834 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5836 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5840 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5843 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5846 # Check whether --enable-optimizations or --disable-optimizations was given.
5847 if test "${enable_optimizations+set}" = set; then
5848 enableval="$enable_optimizations"
5849 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5855 # Check whether --enable-altivec or --disable-altivec was given.
5856 if test "${enable_altivec+set}" = set; then
5857 enableval="$enable_altivec"
5858 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5859 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5861 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5862 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5867 # Check whether --enable-debug or --disable-debug was given.
5868 if test "${enable_debug+set}" = set; then
5869 enableval="$enable_debug"
5870 if test x$enable_debug = xyes; then DEBUG=1; fi
5875 # Check whether --enable-release or --disable-release was given.
5876 if test "${enable_release+set}" = set; then
5877 enableval="$enable_release"
5878 if test x$enable_release = xyes; then RELEASE=1; fi
5880 VERSION="${VERSION}_`date +%Y-%m-%d`"
5885 # Check whether --with- or --without- was given.
5886 if test "${with_+set}" = set; then
5892 # Check whether --enable-dvd or --disable-dvd was given.
5893 if test "${enable_dvd+set}" = set; then
5894 enableval="$enable_dvd"
5898 if test "x$enable_dvd" != "xno"
5900 # Check whether --with-dvdcss or --without-dvdcss was given.
5901 if test "${with_dvdcss+set}" = set; then
5902 withval="$with_dvdcss"
5906 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5907 if test "${with_dvdcss_tree+set}" = set; then
5908 withval="$with_dvdcss_tree"
5912 case "x$with_dvdcss" in
5914 if test "x$with_dvdcss_tree" = x
5916 for ac_hdr in dvdcss/dvdcss.h
5918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5920 echo "configure:5921: checking for $ac_hdr" >&5
5921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5922 echo $ac_n "(cached) $ac_c" 1>&6
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5930 { (eval echo configure:5931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5932 if test -z "$ac_err"; then
5934 eval "ac_cv_header_$ac_safe=yes"
5937 echo "configure: failed program was:" >&5
5938 cat conftest.$ac_ext >&5
5940 eval "ac_cv_header_$ac_safe=no"
5944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5945 echo "$ac_t""yes" 1>&6
5946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5947 cat >> confdefs.h <<EOF
5948 #define $ac_tr_hdr 1
5950 PLUGINS="${PLUGINS} dvd"
5951 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5953 echo "$ac_t""no" 1>&6
5954 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
5955 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5960 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5961 echo "configure:5962: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5962 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5963 if test "x$real_dvdcss_tree" = x
5965 echo "$ac_t""no" 1>&6
5966 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5968 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5970 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5971 BUILTINS="${BUILTINS} dvd"
5972 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5973 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5975 echo "$ac_t""no" 1>&6
5976 { 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; }
5981 PLUGINS="${PLUGINS} dvd"
5982 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5983 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5986 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5987 echo "configure:5988: checking for dvdcss headers in ${with_dvdcss}" >&5
5988 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5990 echo "$ac_t""yes" 1>&6
5991 PLUGINS="${PLUGINS} dvd"
5992 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5993 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5995 echo "$ac_t""no" 1>&6
5996 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6002 # Check whether --enable-dvdread or --disable-dvdread was given.
6003 if test "${enable_dvdread+set}" = set; then
6004 enableval="$enable_dvdread"
6008 if test "x$enable_dvdread" != "xno"
6010 # Check whether --with-dvdread or --without-dvdread was given.
6011 if test "${with_dvdread+set}" = set; then
6012 withval="$with_dvdread"
6016 if test "x$with_dvdread" = x
6021 test_LDFLAGS="-L${with_dvdread}/lib"
6022 test_CFLAGS="-I${with_dvdread}/include"
6024 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6025 for ac_hdr in dvdread/dvd_reader.h
6027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6029 echo "configure:6030: checking for $ac_hdr" >&5
6030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6039 { (eval echo configure:6040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6041 if test -z "$ac_err"; then
6043 eval "ac_cv_header_$ac_safe=yes"
6046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6049 eval "ac_cv_header_$ac_safe=no"
6053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6054 echo "$ac_t""yes" 1>&6
6055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6056 cat >> confdefs.h <<EOF
6057 #define $ac_tr_hdr 1
6060 CFLAGS="${save_CFLAGS}"
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6064 #include <dvdread/dvd_reader.h>
6066 void foo() { int i=DVD_VIDEO_LB_LEN; }
6069 if { (eval echo configure:6070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6072 PLUGINS="${PLUGINS} dvdread"
6073 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6074 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6077 echo "configure: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6081 if test "x$enable_dvdread" != x
6083 { 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; }
6090 echo "$ac_t""no" 1>&6
6091 if test "x$enable_dvdread" != x
6093 if test "x$with_dvdread" != x
6095 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6097 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6104 CPPFLAGS="$save_CPPFLAGS"
6107 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6108 if test "${enable_dvbpsi+set}" = set; then
6109 enableval="$enable_dvbpsi"
6113 if test "x$enable_dvbpsi" != "xno"
6115 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6116 if test "${with_dvbpsi+set}" = set; then
6117 withval="$with_dvbpsi"
6121 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6122 if test "${with_dvbpsi+set}" = set; then
6123 withval="$with_dvbpsi"
6127 case "x$with_dvbpsi" in
6129 if test "x$with_dvbpsi_tree" = x
6131 for ac_hdr in dvbpsi/dr.h
6133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6135 echo "configure:6136: checking for $ac_hdr" >&5
6136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6145 { (eval echo configure:6146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6147 if test -z "$ac_err"; then
6149 eval "ac_cv_header_$ac_safe=yes"
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6155 eval "ac_cv_header_$ac_safe=no"
6159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6162 cat >> confdefs.h <<EOF
6163 #define $ac_tr_hdr 1
6165 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6166 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6168 echo "$ac_t""no" 1>&6
6173 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6174 echo "configure:6175: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6175 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6176 if test "x$real_dvbpsi_tree" = x
6178 echo "$ac_t""no" 1>&6
6179 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6181 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6183 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6184 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6185 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6186 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6188 echo "$ac_t""no" 1>&6
6189 { 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; }
6196 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6197 echo "configure:6198: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6198 if test "x$with_dvbpsi" = x
6203 test_LDFLAGS="-L${with_dvbpsi}/lib"
6204 test_CFLAGS="-I${with_dvbpsi}/include"
6206 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6207 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6208 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6209 echo "configure:6210: checking for dvbpsi/dr.h" >&5
6210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6211 echo $ac_n "(cached) $ac_c" 1>&6
6213 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 #include <dvbpsi/dr.h>
6218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6219 { (eval echo configure:6220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6221 if test -z "$ac_err"; then
6223 eval "ac_cv_header_$ac_safe=yes"
6226 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6229 eval "ac_cv_header_$ac_safe=no"
6233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6234 echo "$ac_t""yes" 1>&6
6236 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6237 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6238 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6241 echo "$ac_t""no" 1>&6
6243 if test "x$enable_dvbpsi" != x
6245 { 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; }
6250 CPPFLAGS="$save_CPPFLAGS"
6255 # Check whether --enable-vcd or --disable-vcd was given.
6256 if test "${enable_vcd+set}" = set; then
6257 enableval="$enable_vcd"
6262 if test x$enable_vcd != xno
6264 cat > conftest.$ac_ext <<EOF
6265 #line 6266 "configure"
6266 #include "confdefs.h"
6267 #include <linux/cdrom.h>
6269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6270 egrep "cdrom_msf0" >/dev/null 2>&1; then
6273 PLUGINS="${PLUGINS} vcd"
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 #include <sys/cdio.h>
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 egrep "ioc_toc_header " >/dev/null 2>&1; then
6288 PLUGINS="${PLUGINS} vcd"
6289 cat >> confdefs.h <<\EOF
6290 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6298 if test "x${SYS}" = "xbsdi"
6300 PLUGINS="${PLUGINS} vcd"
6303 if test "x${SYS}" = "xdarwin"
6305 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6306 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6310 # Check whether --enable-satellite or --disable-satellite was given.
6311 if test "${enable_satellite+set}" = set; then
6312 enableval="$enable_satellite"
6313 if test x$enable_satellite = xyes
6315 PLUGINS="${PLUGINS} satellite"
6320 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6322 CFLAGS="$save_CFLAGS"
6323 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6324 echo "configure:6325: checking for inet_pton" >&5
6325 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char inet_pton(); below. */
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6352 if { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6354 eval "ac_cv_func_inet_pton=yes"
6356 echo "configure: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6359 eval "ac_cv_func_inet_pton=no"
6364 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6365 echo "$ac_t""yes" 1>&6
6366 PLUGINS="${PLUGINS} ipv6"
6368 echo "$ac_t""no" 1>&6
6372 if test "x$SYS" = "xmingw32"
6374 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6375 echo "configure:6376: checking for getaddrinfo in ws2tcpip.h" >&5
6376 cat > conftest.$ac_ext <<EOF
6377 #line 6378 "configure"
6378 #include "confdefs.h"
6379 #include <ws2tcpip.h>
6381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6382 egrep "addrinfo" >/dev/null 2>&1; then
6384 echo "$ac_t""yes" 1>&6
6385 PLUGINS="${PLUGINS} ipv6"
6388 echo "$ac_t""no" 1>&6
6394 # Check whether --enable-avi or --disable-avi was given.
6395 if test "${enable_avi+set}" = set; then
6396 enableval="$enable_avi"
6400 if test x$enable_avi != xno
6402 PLUGINS="${PLUGINS} avi"
6406 # Check whether --with- or --without- was given.
6407 if test "${with_+set}" = set; then
6413 # Check whether --enable-mad or --disable-mad was given.
6414 if test "${enable_mad+set}" = set; then
6415 enableval="$enable_mad"
6419 if test x$enable_mad = xyes
6421 # Check whether --with-mad or --without-mad was given.
6422 if test "${with_mad+set}" = set; then
6427 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6429 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6430 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6433 # Check whether --with-mad-tree or --without-mad-tree was given.
6434 if test "${with_mad_tree+set}" = set; then
6435 withval="$with_mad_tree"
6439 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6441 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6442 if test "x$real_mad_tree" = x
6444 echo "$ac_t""no" 1>&6
6445 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6447 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6448 echo "configure:6449: checking for mad.h in ${real_mad_tree}/libmad" >&5
6449 if test -f ${real_mad_tree}/libmad/mad.h
6451 echo "$ac_t""yes" 1>&6
6452 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6453 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6454 save_LDFLAGS=$LDFLAGS
6455 LDFLAGS=$mad_LDFLAGS
6456 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6457 echo "configure:6458: checking for mad_bit_init in -lmad" >&5
6458 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6460 echo $ac_n "(cached) $ac_c" 1>&6
6462 ac_save_LIBS="$LIBS"
6464 cat > conftest.$ac_ext <<EOF
6465 #line 6466 "configure"
6466 #include "confdefs.h"
6467 /* Override any gcc2 internal prototype to avoid an error. */
6468 /* We use char because int might match the return type of a gcc2
6469 builtin and then its argument prototype would still apply. */
6470 char mad_bit_init();
6476 if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6478 eval "ac_cv_lib_$ac_lib_var=yes"
6480 echo "configure: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6483 eval "ac_cv_lib_$ac_lib_var=no"
6486 LIBS="$ac_save_LIBS"
6489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6490 echo "$ac_t""yes" 1>&6
6492 BUILTINS="${BUILTINS} mad"
6493 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6496 echo "$ac_t""no" 1>&6
6497 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6501 LDFLAGS=$save_LDFLAGS
6503 echo "$ac_t""no" 1>&6
6504 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6507 CFLAGS="$vlc_CFLAGS $mad_CFLAGS"
6508 LDFLAGS="$vlc_LDFLAGS $mad_LDFLAGS"
6511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6513 echo "configure:6514: checking for $ac_hdr" >&5
6514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6515 echo $ac_n "(cached) $ac_c" 1>&6
6517 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure"
6519 #include "confdefs.h"
6522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6523 { (eval echo configure:6524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6525 if test -z "$ac_err"; then
6527 eval "ac_cv_header_$ac_safe=yes"
6530 echo "configure: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6533 eval "ac_cv_header_$ac_safe=no"
6537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6538 echo "$ac_t""yes" 1>&6
6539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6540 cat >> confdefs.h <<EOF
6541 #define $ac_tr_hdr 1
6545 echo "$ac_t""no" 1>&6
6546 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6550 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6551 echo "configure:6552: checking for mad_bit_init in -lmad" >&5
6552 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6556 ac_save_LIBS="$LIBS"
6558 cat > conftest.$ac_ext <<EOF
6559 #line 6560 "configure"
6560 #include "confdefs.h"
6561 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6564 char mad_bit_init();
6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6572 eval "ac_cv_lib_$ac_lib_var=yes"
6574 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 eval "ac_cv_lib_$ac_lib_var=no"
6580 LIBS="$ac_save_LIBS"
6583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6584 echo "$ac_t""yes" 1>&6
6586 PLUGINS="${PLUGINS} mad"
6587 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6589 echo "$ac_t""no" 1>&6
6590 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6596 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6597 if test "${enable_ffmpeg+set}" = set; then
6598 enableval="$enable_ffmpeg"
6602 if test "x$enable_ffmpeg" = "xyes"
6604 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6605 if test "${with_ffmpeg+set}" = set; then
6606 withval="$with_ffmpeg"
6610 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6612 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6613 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6616 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6617 if test "${with_ffmpeg_tree+set}" = set; then
6618 withval="$with_ffmpeg_tree"
6622 if test "x$with_ffmpeg_tree" != "x"
6624 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6625 echo "configure:6626: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6626 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6627 if test "x$real_ffmpeg_tree" = x
6629 echo "$ac_t""no" 1>&6
6630 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6632 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6634 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6635 BUILTINS="${BUILTINS} ffmpeg"
6636 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6637 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6639 echo "$ac_t""no" 1>&6
6640 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6644 save_LDFLAGS=$LDFLAGS
6645 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6646 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6647 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6648 echo "configure:6649: checking for avcodec_init in -lavcodec" >&5
6649 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6653 ac_save_LIBS="$LIBS"
6654 LIBS="-lavcodec $LIBS"
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6661 char avcodec_init();
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6669 eval "ac_cv_lib_$ac_lib_var=yes"
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 eval "ac_cv_lib_$ac_lib_var=no"
6677 LIBS="$ac_save_LIBS"
6680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6683 BUILTINS="${BUILTINS} ffmpeg"
6684 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6686 echo "$ac_t""no" 1>&6
6687 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6691 LDFLAGS=$save_LDFLAGS
6696 if test x$SYS = xbeos
6698 PLUGINS="${PLUGINS} beos"
6701 # Check whether --enable-a52 or --disable-a52 was given.
6702 if test "${enable_a52+set}" = set; then
6703 enableval="$enable_a52"
6707 if test "x$enable_a52" != "xno"
6709 # Check whether --with-a52-tree or --without-a52-tree was given.
6710 if test "${with_a52_tree+set}" = set; then
6711 withval="$with_a52_tree"
6715 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6717 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6718 if test "x$real_a52_tree" = x
6720 echo "$ac_t""no" 1>&6
6721 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6723 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6724 echo "configure:6725: checking for a52.h in ${real_a52_tree}/include" >&5
6725 if test -f ${real_a52_tree}/include/a52.h
6727 echo "$ac_t""yes" 1>&6
6728 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6729 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6730 save_LDFLAGS=$LDFLAGS
6731 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6732 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6733 echo "configure:6734: checking for a52_free in -la52" >&5
6734 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6736 echo $ac_n "(cached) $ac_c" 1>&6
6738 ac_save_LIBS="$LIBS"
6739 LIBS="-la52 -lm $LIBS"
6740 cat > conftest.$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6743 /* Override any gcc2 internal prototype to avoid an error. */
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6752 if { (eval echo configure:6753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6754 eval "ac_cv_lib_$ac_lib_var=yes"
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6759 eval "ac_cv_lib_$ac_lib_var=no"
6762 LIBS="$ac_save_LIBS"
6765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6766 echo "$ac_t""yes" 1>&6
6768 BUILTINS="${BUILTINS} a52"
6769 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6770 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6773 echo "$ac_t""no" 1>&6
6775 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6777 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6779 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6784 LDFLAGS=$save_LDFLAGS
6786 echo "$ac_t""no" 1>&6
6787 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6789 else for ac_hdr in a52dec/a52.h
6791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6793 echo "configure:6794: checking for $ac_hdr" >&5
6794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6
6797 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6803 { (eval echo configure:6804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6805 if test -z "$ac_err"; then
6807 eval "ac_cv_header_$ac_safe=yes"
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 eval "ac_cv_header_$ac_safe=no"
6817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6818 echo "$ac_t""yes" 1>&6
6819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6820 cat >> confdefs.h <<EOF
6821 #define $ac_tr_hdr 1
6824 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6825 echo "configure:6826: checking for a52_free in -la52" >&5
6826 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6830 ac_save_LIBS="$LIBS"
6831 LIBS="-la52 -lm $LIBS"
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6846 eval "ac_cv_lib_$ac_lib_var=yes"
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6851 eval "ac_cv_lib_$ac_lib_var=no"
6854 LIBS="$ac_save_LIBS"
6857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6858 echo "$ac_t""yes" 1>&6
6860 BUILTINS="${BUILTINS} a52"
6861 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6862 a52_CFLAGS="${a52_CFLAGS}"
6865 echo "$ac_t""no" 1>&6
6870 echo "$ac_t""no" 1>&6
6877 # Check whether --enable-vorbis or --disable-vorbis was given.
6878 if test "${enable_vorbis+set}" = set; then
6879 enableval="$enable_vorbis"
6883 if test "x$enable_vorbis" != "xno"
6885 for ac_hdr in ogg/ogg.h
6887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6889 echo "configure:6890: checking for $ac_hdr" >&5
6890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6893 cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6899 { (eval echo configure:6900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6901 if test -z "$ac_err"; then
6903 eval "ac_cv_header_$ac_safe=yes"
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6909 eval "ac_cv_header_$ac_safe=no"
6913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6914 echo "$ac_t""yes" 1>&6
6915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6916 cat >> confdefs.h <<EOF
6917 #define $ac_tr_hdr 1
6920 #PLUGINS="${PLUGINS} vorbis"
6921 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6924 echo "$ac_t""no" 1>&6
6931 # Check whether --with- or --without- was given.
6932 if test "${with_+set}" = set; then
6938 # Check whether --enable-x11 or --disable-x11 was given.
6939 if test "${enable_x11+set}" = set; then
6940 enableval="$enable_x11"
6944 if test x$enable_x11 != xno &&
6945 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6946 if test x$x_includes = xNONE; then
6947 x_includes=/usr/X11R6/include
6949 if test x$x_libraries = xNONE; then
6950 x_libraries=/usr/X11R6/lib
6952 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6953 for ac_hdr in X11/Xlib.h
6955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6957 echo "configure:6958: checking for $ac_hdr" >&5
6958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6959 echo $ac_n "(cached) $ac_c" 1>&6
6961 cat > conftest.$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6967 { (eval echo configure:6968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6969 if test -z "$ac_err"; then
6971 eval "ac_cv_header_$ac_safe=yes"
6974 echo "configure: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6977 eval "ac_cv_header_$ac_safe=no"
6981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6982 echo "$ac_t""yes" 1>&6
6983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6984 cat >> confdefs.h <<EOF
6985 #define $ac_tr_hdr 1
6988 PLUGINS="${PLUGINS} x11"
6989 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6990 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6993 echo "$ac_t""no" 1>&6
6997 CPPFLAGS="$save_CPPFLAGS"
7000 # Check whether --enable-xvideo or --disable-xvideo was given.
7001 if test "${enable_xvideo+set}" = set; then
7002 enableval="$enable_xvideo"
7006 if test x$enable_xvideo != xno &&
7007 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
7008 if test x$x_includes = xNONE; then
7009 x_includes=/usr/X11R6/include
7011 if test x$x_libraries = xNONE; then
7012 x_libraries=/usr/X11R6/lib
7014 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
7015 for ac_hdr in X11/extensions/Xv.h
7017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7019 echo "configure:7020: checking for $ac_hdr" >&5
7020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7021 echo $ac_n "(cached) $ac_c" 1>&6
7023 cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure"
7025 #include "confdefs.h"
7028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7029 { (eval echo configure:7030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7031 if test -z "$ac_err"; then
7033 eval "ac_cv_header_$ac_safe=yes"
7036 echo "configure: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7039 eval "ac_cv_header_$ac_safe=no"
7043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7044 echo "$ac_t""yes" 1>&6
7045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7046 cat >> confdefs.h <<EOF
7047 #define $ac_tr_hdr 1
7050 CFLAGS="$save_CFLAGS -L$x_libraries -lX11 -lXext"
7051 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7052 echo "configure:7053: checking for XvSetPortAttribute in -lXv_pic" >&5
7053 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7055 echo $ac_n "(cached) $ac_c" 1>&6
7057 ac_save_LIBS="$LIBS"
7058 LIBS="-lXv_pic $LIBS"
7059 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7062 /* Override any gcc2 internal prototype to avoid an error. */
7063 /* We use char because int might match the return type of a gcc2
7064 builtin and then its argument prototype would still apply. */
7065 char XvSetPortAttribute();
7068 XvSetPortAttribute()
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7073 eval "ac_cv_lib_$ac_lib_var=yes"
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 eval "ac_cv_lib_$ac_lib_var=no"
7081 LIBS="$ac_save_LIBS"
7084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7085 echo "$ac_t""yes" 1>&6
7086 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7087 PLUGINS="${PLUGINS} xvideo"
7088 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
7089 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7091 echo "$ac_t""no" 1>&6
7092 # We don't have Xv_pic, let's make xvideo.a as builtin
7093 BUILTINS="${BUILTINS} xvideo"
7094 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
7095 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7099 CPPFLAGS="$save_CPPFLAGS"
7101 echo "$ac_t""no" 1>&6
7107 # Check whether --enable-sdl or --disable-sdl was given.
7108 if test "${enable_sdl+set}" = set; then
7109 enableval="$enable_sdl"
7113 if test "x$enable_sdl" != "xno"
7116 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7117 if test "${with_sdl_config_path+set}" = set; then
7118 withval="$with_sdl_config_path"
7119 if test "x$with_sdl_config_path" != "xno"
7121 SDL_PATH="$with_sdl_config_path:$PATH"
7125 # Extract the first word of "sdl12-config", so it can be a program name with args.
7126 set dummy sdl12-config; ac_word=$2
7127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7128 echo "configure:7129: checking for $ac_word" >&5
7129 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7132 case "$SDL12_CONFIG" in
7134 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7137 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7141 ac_dummy="$SDL_PATH"
7142 for ac_dir in $ac_dummy; do
7143 test -z "$ac_dir" && ac_dir=.
7144 if test -f $ac_dir/$ac_word; then
7145 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7150 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7154 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7155 if test -n "$SDL12_CONFIG"; then
7156 echo "$ac_t""$SDL12_CONFIG" 1>&6
7158 echo "$ac_t""no" 1>&6
7161 SDL_CONFIG=${SDL12_CONFIG}
7162 SDL_HEADER="SDL12/SDL.h"
7163 if test x${SDL_CONFIG} = xno
7165 # Extract the first word of "sdl11-config", so it can be a program name with args.
7166 set dummy sdl11-config; ac_word=$2
7167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7168 echo "configure:7169: checking for $ac_word" >&5
7169 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7172 case "$SDL11_CONFIG" in
7174 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7177 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7181 ac_dummy="$SDL_PATH"
7182 for ac_dir in $ac_dummy; do
7183 test -z "$ac_dir" && ac_dir=.
7184 if test -f $ac_dir/$ac_word; then
7185 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7190 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7194 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7195 if test -n "$SDL11_CONFIG"; then
7196 echo "$ac_t""$SDL11_CONFIG" 1>&6
7198 echo "$ac_t""no" 1>&6
7201 SDL_CONFIG=${SDL11_CONFIG}
7202 SDL_HEADER="SDL11/SDL.h"
7204 if test x${SDL_CONFIG} = xno
7206 # Extract the first word of "sdl-config", so it can be a program name with args.
7207 set dummy sdl-config; ac_word=$2
7208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7209 echo "configure:7210: checking for $ac_word" >&5
7210 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7211 echo $ac_n "(cached) $ac_c" 1>&6
7213 case "$SDL_CONFIG" in
7215 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7218 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7222 ac_dummy="$SDL_PATH"
7223 for ac_dir in $ac_dummy; do
7224 test -z "$ac_dir" && ac_dir=.
7225 if test -f $ac_dir/$ac_word; then
7226 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7231 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7235 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7236 if test -n "$SDL_CONFIG"; then
7237 echo "$ac_t""$SDL_CONFIG" 1>&6
7239 echo "$ac_t""no" 1>&6
7242 SDL_HEADER="SDL/SDL.h"
7244 if test x${SDL_CONFIG} != xno
7246 PLUGINS="${PLUGINS} sdl"
7247 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7248 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7249 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7250 for ac_hdr in ${SDL_HEADER}
7252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7254 echo "configure:7255: checking for $ac_hdr" >&5
7255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7258 cat > conftest.$ac_ext <<EOF
7259 #line 7260 "configure"
7260 #include "confdefs.h"
7263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7264 { (eval echo configure:7265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7266 if test -z "$ac_err"; then
7268 eval "ac_cv_header_$ac_safe=yes"
7271 echo "configure: failed program was:" >&5
7272 cat conftest.$ac_ext >&5
7274 eval "ac_cv_header_$ac_safe=no"
7278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7279 echo "$ac_t""yes" 1>&6
7280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7281 cat >> confdefs.h <<EOF
7282 #define $ac_tr_hdr 1
7284 cat >> confdefs.h <<EOF
7285 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7289 echo "$ac_t""no" 1>&6
7290 { echo "configure: error: The development package for SDL is not installed.
7291 Please install it and try again. Alternatively you can also configure with
7292 --disable-sdl." 1>&2; exit 1; }
7297 CPPFLAGS="$save_CPPFLAGS"
7298 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7300 { echo "configure: error: The development package for SDL is not installed.
7301 Please install it and try again. Alternatively you can also configure with
7302 --disable-sdl." 1>&2; exit 1; }
7304 elif test "x$enable_sdl" = "xyes"
7306 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7307 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7312 # Check whether --enable-directx or --disable-directx was given.
7313 if test "${enable_directx+set}" = set; then
7314 enableval="$enable_directx"
7318 if test "x$enable_directx" != "xno"
7320 if test x$SYS = xmingw32
7322 # Check whether --with-directx or --without-directx was given.
7323 if test "${with_directx+set}" = set; then
7324 withval="$with_directx"
7328 if test "x$with_directx" = "x"
7330 for ac_hdr in ddraw.h
7332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7334 echo "configure:7335: checking for $ac_hdr" >&5
7335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7344 { (eval echo configure:7345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7346 if test -z "$ac_err"; then
7348 eval "ac_cv_header_$ac_safe=yes"
7351 echo "configure: failed program was:" >&5
7352 cat conftest.$ac_ext >&5
7354 eval "ac_cv_header_$ac_safe=no"
7358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7359 echo "$ac_t""yes" 1>&6
7360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7361 cat >> confdefs.h <<EOF
7362 #define $ac_tr_hdr 1
7364 PLUGINS="${PLUGINS} directx"
7365 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7367 echo "$ac_t""no" 1>&6
7372 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7373 echo "configure:7374: checking for directX headers in ${with_directx}" >&5
7374 if test -f ${with_directx}/ddraw.h
7376 PLUGINS="${PLUGINS} directx"
7377 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7378 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7379 echo "$ac_t""yes" 1>&6
7381 echo "$ac_t""no" 1>&6
7382 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7388 # Check whether --enable-fb or --disable-fb was given.
7389 if test "${enable_fb+set}" = set; then
7390 enableval="$enable_fb"
7394 if test x$enable_fb != xno
7396 for ac_hdr in linux/fb.h
7398 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7400 echo "configure:7401: checking for $ac_hdr" >&5
7401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7404 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7410 { (eval echo configure:7411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7412 if test -z "$ac_err"; then
7414 eval "ac_cv_header_$ac_safe=yes"
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7420 eval "ac_cv_header_$ac_safe=no"
7424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7425 echo "$ac_t""yes" 1>&6
7426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7427 cat >> confdefs.h <<EOF
7428 #define $ac_tr_hdr 1
7431 PLUGINS="${PLUGINS} fb"
7434 echo "$ac_t""no" 1>&6
7440 # Check whether --enable-mga or --disable-mga was given.
7441 if test "${enable_mga+set}" = set; then
7442 enableval="$enable_mga"
7443 if test x$enable_mga = xyes
7445 PLUGINS="${PLUGINS} mga xmga"
7450 # Check whether --enable-ggi or --disable-ggi was given.
7451 if test "${enable_ggi+set}" = set; then
7452 enableval="$enable_ggi"
7456 if test x$enable_ggi = xyes
7458 PLUGINS="${PLUGINS} ggi"
7459 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7460 # Check whether --with-ggi or --without-ggi was given.
7461 if test "${with_ggi+set}" = set; then
7463 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7465 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7466 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7472 # Check whether --enable-glide or --disable-glide was given.
7473 if test "${enable_glide+set}" = set; then
7474 enableval="$enable_glide"
7478 if test x$enable_glide = xyes
7480 PLUGINS="${PLUGINS} glide"
7481 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7482 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7483 # Check whether --with-glide or --without-glide was given.
7484 if test "${with_glide+set}" = set; then
7485 withval="$with_glide"
7486 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7488 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7489 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7495 # Check whether --enable-aa or --disable-aa was given.
7496 if test "${enable_aa+set}" = set; then
7497 enableval="$enable_aa"
7501 if test x$enable_aa = xyes
7503 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7504 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7505 echo "configure:7506: checking for aalib.h" >&5
7506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7507 echo $ac_n "(cached) $ac_c" 1>&6
7509 cat > conftest.$ac_ext <<EOF
7510 #line 7511 "configure"
7511 #include "confdefs.h"
7514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7515 { (eval echo configure:7516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7517 if test -z "$ac_err"; then
7519 eval "ac_cv_header_$ac_safe=yes"
7522 echo "configure: failed program was:" >&5
7523 cat conftest.$ac_ext >&5
7525 eval "ac_cv_header_$ac_safe=no"
7529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7530 echo "$ac_t""yes" 1>&6
7533 echo "$ac_t""no" 1>&6
7537 if test x$have_aa = xtrue
7539 PLUGINS="${PLUGINS} aa"
7540 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7545 # Check whether --with- or --without- was given.
7546 if test "${with_+set}" = set; then
7552 # Check whether --enable-dsp or --disable-dsp was given.
7553 if test "${enable_dsp+set}" = set; then
7554 enableval="$enable_dsp"
7559 if test x$enable_dsp != xno &&
7560 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7562 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7566 echo "configure:7567: checking for $ac_hdr" >&5
7567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7570 cat > conftest.$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7576 { (eval echo configure:7577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7578 if test -z "$ac_err"; then
7580 eval "ac_cv_header_$ac_safe=yes"
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7586 eval "ac_cv_header_$ac_safe=no"
7590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7591 echo "$ac_t""yes" 1>&6
7592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7593 cat >> confdefs.h <<EOF
7594 #define $ac_tr_hdr 1
7597 PLUGINS="${PLUGINS} dsp"
7598 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7599 echo "configure:7600: checking for main in -lossaudio" >&5
7600 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7604 ac_save_LIBS="$LIBS"
7605 LIBS="-lossaudio $LIBS"
7606 cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7614 if { (eval echo configure:7615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7616 eval "ac_cv_lib_$ac_lib_var=yes"
7618 echo "configure: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7621 eval "ac_cv_lib_$ac_lib_var=no"
7624 LIBS="$ac_save_LIBS"
7627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7628 echo "$ac_t""yes" 1>&6
7629 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7631 echo "$ac_t""no" 1>&6
7636 echo "$ac_t""no" 1>&6
7642 # Check whether --enable-esd or --disable-esd was given.
7643 if test "${enable_esd+set}" = set; then
7644 enableval="$enable_esd"
7645 if test x$enable_esd = xyes
7647 # Extract the first word of "esd-config", so it can be a program name with args.
7648 set dummy esd-config; ac_word=$2
7649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7650 echo "configure:7651: checking for $ac_word" >&5
7651 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7652 echo $ac_n "(cached) $ac_c" 1>&6
7654 case "$ESD_CONFIG" in
7656 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7659 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7664 for ac_dir in $ac_dummy; do
7665 test -z "$ac_dir" && ac_dir=.
7666 if test -f $ac_dir/$ac_word; then
7667 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7672 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7676 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7677 if test -n "$ESD_CONFIG"; then
7678 echo "$ac_t""$ESD_CONFIG" 1>&6
7680 echo "$ac_t""no" 1>&6
7683 if test x${ESD_CONFIG} != xno
7685 PLUGINS="${PLUGINS} esd"
7686 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7687 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7693 # Check whether --enable-arts or --disable-arts was given.
7694 if test "${enable_arts+set}" = set; then
7695 enableval="$enable_arts"
7696 if test x$enable_arts = xyes
7698 # Extract the first word of "artsc-config", so it can be a program name with args.
7699 set dummy artsc-config; ac_word=$2
7700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7701 echo "configure:7702: checking for $ac_word" >&5
7702 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7703 echo $ac_n "(cached) $ac_c" 1>&6
7705 case "$ARTS_CONFIG" in
7707 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7710 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7715 for ac_dir in $ac_dummy; do
7716 test -z "$ac_dir" && ac_dir=.
7717 if test -f $ac_dir/$ac_word; then
7718 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7723 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7727 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7728 if test -n "$ARTS_CONFIG"; then
7729 echo "$ac_t""$ARTS_CONFIG" 1>&6
7731 echo "$ac_t""no" 1>&6
7734 if test x${ARTS_CONFIG} != xno
7736 PLUGINS="${PLUGINS} arts"
7737 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7738 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7744 # Check whether --enable-alsa or --disable-alsa was given.
7745 if test "${enable_alsa+set}" = set; then
7746 enableval="$enable_alsa"
7747 if test x$enable_alsa = xyes
7749 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7750 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7751 echo "configure:7752: checking for alsa/asoundlib.h" >&5
7752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7753 echo $ac_n "(cached) $ac_c" 1>&6
7755 cat > conftest.$ac_ext <<EOF
7756 #line 7757 "configure"
7757 #include "confdefs.h"
7758 #include <alsa/asoundlib.h>
7760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7761 { (eval echo configure:7762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7763 if test -z "$ac_err"; then
7765 eval "ac_cv_header_$ac_safe=yes"
7768 echo "configure: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7771 eval "ac_cv_header_$ac_safe=no"
7775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7776 echo "$ac_t""yes" 1>&6
7777 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7778 echo "configure:7779: checking for main in -lasound" >&5
7779 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7781 echo $ac_n "(cached) $ac_c" 1>&6
7783 ac_save_LIBS="$LIBS"
7784 LIBS="-lasound $LIBS"
7785 cat > conftest.$ac_ext <<EOF
7786 #line 7787 "configure"
7787 #include "confdefs.h"
7793 if { (eval echo configure:7794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7795 eval "ac_cv_lib_$ac_lib_var=yes"
7797 echo "configure: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7800 eval "ac_cv_lib_$ac_lib_var=no"
7803 LIBS="$ac_save_LIBS"
7806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7807 echo "$ac_t""yes" 1>&6
7810 echo "$ac_t""no" 1>&6
7815 echo "$ac_t""no" 1>&6
7819 if test x$have_alsa = xtrue
7821 PLUGINS="${PLUGINS} alsa"
7822 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7828 # Check whether --enable-waveout or --disable-waveout was given.
7829 if test "${enable_waveout+set}" = set; then
7830 enableval="$enable_waveout"
7834 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7836 PLUGINS="${PLUGINS} waveout"
7837 waveout_LDFLAGS="-lwinmm"
7841 # Check whether --with- or --without- was given.
7842 if test "${with_+set}" = set; then
7848 # Check whether --enable-gtk or --disable-gtk was given.
7849 if test "${enable_gtk+set}" = set; then
7850 enableval="$enable_gtk"
7854 if test x$enable_gtk != xno
7857 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7858 if test "${with_gtk_config_path+set}" = set; then
7859 withval="$with_gtk_config_path"
7860 if test "x$with_gtk_config_path" != "xno"
7862 GTK_PATH="$with_gtk_config_path:$PATH"
7866 # look for gtk-config
7867 # Extract the first word of "gtk12-config", so it can be a program name with args.
7868 set dummy gtk12-config; ac_word=$2
7869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7870 echo "configure:7871: checking for $ac_word" >&5
7871 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7874 case "$GTK12_CONFIG" in
7876 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7879 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7883 ac_dummy="$GTK_PATH"
7884 for ac_dir in $ac_dummy; do
7885 test -z "$ac_dir" && ac_dir=.
7886 if test -f $ac_dir/$ac_word; then
7887 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7892 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7896 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7897 if test -n "$GTK12_CONFIG"; then
7898 echo "$ac_t""$GTK12_CONFIG" 1>&6
7900 echo "$ac_t""no" 1>&6
7903 GTK_CONFIG=${GTK12_CONFIG}
7904 if test x${GTK_CONFIG} = xno
7906 # Extract the first word of "gtk-config", so it can be a program name with args.
7907 set dummy gtk-config; ac_word=$2
7908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7909 echo "configure:7910: checking for $ac_word" >&5
7910 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7911 echo $ac_n "(cached) $ac_c" 1>&6
7913 case "$GTK_CONFIG" in
7915 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7918 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7922 ac_dummy="$GTK_PATH"
7923 for ac_dir in $ac_dummy; do
7924 test -z "$ac_dir" && ac_dir=.
7925 if test -f $ac_dir/$ac_word; then
7926 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7931 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7935 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7936 if test -n "$GTK_CONFIG"; then
7937 echo "$ac_t""$GTK_CONFIG" 1>&6
7939 echo "$ac_t""no" 1>&6
7943 if test x${GTK_CONFIG} != xno
7945 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7947 { 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; }
7949 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7950 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7951 # now look for the gtk.h header
7952 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7953 ac_cv_gtk_headers=yes
7954 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7958 echo "configure:7959: checking for $ac_hdr" >&5
7959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7960 echo $ac_n "(cached) $ac_c" 1>&6
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7968 { (eval echo configure:7969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7970 if test -z "$ac_err"; then
7972 eval "ac_cv_header_$ac_safe=yes"
7975 echo "configure: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7978 eval "ac_cv_header_$ac_safe=no"
7982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7983 echo "$ac_t""yes" 1>&6
7984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7985 cat >> confdefs.h <<EOF
7986 #define $ac_tr_hdr 1
7990 echo "$ac_t""no" 1>&6
7991 ac_cv_gtk_headers=no
7992 echo "Cannot find gtk development headers."
7997 if test "x$ac_cv_gtk_headers" = xyes
7999 PLUGINS="${PLUGINS} gtk"
8000 ALIASES="${ALIASES} gvlc"
8002 CPPFLAGS="$save_CPPFLAGS"
8006 # Check whether --enable-gnome or --disable-gnome was given.
8007 if test "${enable_gnome+set}" = set; then
8008 enableval="$enable_gnome"
8009 if test x$enable_gnome = xyes; then
8010 # look for gnome-config
8011 # Extract the first word of "gnome-config", so it can be a program name with args.
8012 set dummy gnome-config; ac_word=$2
8013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8014 echo "configure:8015: checking for $ac_word" >&5
8015 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8018 case "$GNOME_CONFIG" in
8020 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8023 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8028 for ac_dir in $ac_dummy; do
8029 test -z "$ac_dir" && ac_dir=.
8030 if test -f $ac_dir/$ac_word; then
8031 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8036 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8040 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8041 if test -n "$GNOME_CONFIG"; then
8042 echo "$ac_t""$GNOME_CONFIG" 1>&6
8044 echo "$ac_t""no" 1>&6
8047 if test -x ${GNOME_CONFIG}
8049 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8050 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8052 # now look for the gnome.h header
8053 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
8054 for ac_hdr in gnome.h
8056 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8057 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8058 echo "configure:8059: checking for $ac_hdr" >&5
8059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8060 echo $ac_n "(cached) $ac_c" 1>&6
8062 cat > conftest.$ac_ext <<EOF
8063 #line 8064 "configure"
8064 #include "confdefs.h"
8067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8068 { (eval echo configure:8069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8070 if test -z "$ac_err"; then
8072 eval "ac_cv_header_$ac_safe=yes"
8075 echo "configure: failed program was:" >&5
8076 cat conftest.$ac_ext >&5
8078 eval "ac_cv_header_$ac_safe=no"
8082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8083 echo "$ac_t""yes" 1>&6
8084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8085 cat >> confdefs.h <<EOF
8086 #define $ac_tr_hdr 1
8089 PLUGINS="${PLUGINS} gnome"
8090 ALIASES="${ALIASES} gnome-vlc"
8093 echo "$ac_t""no" 1>&6
8094 { echo "configure: error: Can't find gnome headers. Please install the gnome
8095 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8100 CPPFLAGS="$save_CPPFLAGS"
8105 # Check whether --enable-qt or --disable-qt was given.
8106 if test "${enable_qt+set}" = set; then
8107 enableval="$enable_qt"
8108 if test x$enable_qt = xyes; then
8109 PLUGINS="${PLUGINS} qt"
8110 ALIASES="${ALIASES} qvlc"
8111 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8112 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8113 if test -x ${QTDIR}/bin/moc
8115 MOC=${QTDIR}/bin/moc
8123 # Check whether --enable-kde or --disable-kde was given.
8124 if test "${enable_kde+set}" = set; then
8125 enableval="$enable_kde"
8126 if test x$enable_kde = xyes; then
8127 PLUGINS="${PLUGINS} kde"
8128 ALIASES="${ALIASES} kvlc"
8129 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8130 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8131 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8132 if test -x ${QTDIR}/bin/moc
8134 MOC=${QTDIR}/bin/moc
8142 # Check whether --enable-macosx or --disable-macosx was given.
8143 if test "${enable_macosx+set}" = set; then
8144 enableval="$enable_macosx"
8145 if test x$enable_macosx = xyes
8147 BUILTINS="${BUILTINS} macosx"
8148 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8151 for ac_hdr in Cocoa/Cocoa.h
8153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8155 echo "configure:8156: checking for $ac_hdr" >&5
8156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8159 cat > conftest.$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8165 { (eval echo configure:8166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8167 if test -z "$ac_err"; then
8169 eval "ac_cv_header_$ac_safe=yes"
8172 echo "configure: failed program was:" >&5
8173 cat conftest.$ac_ext >&5
8175 eval "ac_cv_header_$ac_safe=no"
8179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8180 echo "$ac_t""yes" 1>&6
8181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8182 cat >> confdefs.h <<EOF
8183 #define $ac_tr_hdr 1
8185 BUILTINS="${BUILTINS} macosx"
8186 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8189 echo "$ac_t""no" 1>&6
8196 # Check whether --enable-qnx or --disable-qnx was given.
8197 if test "${enable_qnx+set}" = set; then
8198 enableval="$enable_qnx"
8202 if test x$enable_qnx != xno
8206 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8208 echo "configure:8209: checking for $ac_hdr" >&5
8209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8212 cat > conftest.$ac_ext <<EOF
8213 #line 8214 "configure"
8214 #include "confdefs.h"
8217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8218 { (eval echo configure:8219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8220 if test -z "$ac_err"; then
8222 eval "ac_cv_header_$ac_safe=yes"
8225 echo "configure: failed program was:" >&5
8226 cat conftest.$ac_ext >&5
8228 eval "ac_cv_header_$ac_safe=no"
8232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8233 echo "$ac_t""yes" 1>&6
8234 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8235 cat >> confdefs.h <<EOF
8236 #define $ac_tr_hdr 1
8239 PLUGINS="${PLUGINS} qnx"
8240 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8243 echo "$ac_t""no" 1>&6
8249 # Check whether --enable-intfwin or --disable-intfwin was given.
8250 if test "${enable_intfwin+set}" = set; then
8251 enableval="$enable_intfwin"
8252 if test "x$enable_intfwin" != "xno"
8254 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8255 if test "${with_bcbuilder+set}" = set; then
8256 withval="$with_bcbuilder"
8260 if test "x$with_bcbuilder" != "x"
8262 BCBUILDER="$with_bcbuilder"
8264 PLUGINS="${PLUGINS} intfwin"
8269 # Check whether --enable-ncurses or --disable-ncurses was given.
8270 if test "${enable_ncurses+set}" = set; then
8271 enableval="$enable_ncurses"
8272 if test x$enable_ncurses = xyes; then
8273 PLUGINS="${PLUGINS} ncurses"
8274 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8279 # Check whether --enable-xosd or --disable-xosd was given.
8280 if test "${enable_xosd+set}" = set; then
8281 enableval="$enable_xosd"
8282 echo $ac_n "checking for xosd_init in -lxosd""... $ac_c" 1>&6
8283 echo "configure:8284: checking for xosd_init in -lxosd" >&5
8284 ac_lib_var=`echo xosd'_'xosd_init | sed 'y%./+-%__p_%'`
8285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8288 ac_save_LIBS="$LIBS"
8290 cat > conftest.$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8293 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8302 if { (eval echo configure:8303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8304 eval "ac_cv_lib_$ac_lib_var=yes"
8306 echo "configure: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8309 eval "ac_cv_lib_$ac_lib_var=no"
8312 LIBS="$ac_save_LIBS"
8315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8319 echo "$ac_t""no" 1>&6
8323 if test x$have_xosd = xyes
8325 PLUGINS="${PLUGINS} xosd"
8326 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8331 --enable-lirc lirc support (default disabled)"
8332 # Check whether --enable-lirc or --disable-lirc was given.
8333 if test "${enable_lirc+set}" = set; then
8334 enableval="$enable_lirc"
8338 if test x$enable_lirc = xyes
8340 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8341 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8342 echo "configure:8343: checking for lirc/lirc_client.h" >&5
8343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8344 echo $ac_n "(cached) $ac_c" 1>&6
8346 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8349 #include <lirc/lirc_client.h>
8351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8352 { (eval echo configure:8353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8354 if test -z "$ac_err"; then
8356 eval "ac_cv_header_$ac_safe=yes"
8359 echo "configure: failed program was:" >&5
8360 cat conftest.$ac_ext >&5
8362 eval "ac_cv_header_$ac_safe=no"
8366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8367 echo "$ac_t""yes" 1>&6
8368 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8369 echo "configure:8370: checking for lirc_init in -llirc_client" >&5
8370 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8374 ac_save_LIBS="$LIBS"
8375 LIBS="-llirc_client $LIBS"
8376 cat > conftest.$ac_ext <<EOF
8377 #line 8378 "configure"
8378 #include "confdefs.h"
8379 /* Override any gcc2 internal prototype to avoid an error. */
8380 /* We use char because int might match the return type of a gcc2
8381 builtin and then its argument prototype would still apply. */
8388 if { (eval echo configure:8389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8390 eval "ac_cv_lib_$ac_lib_var=yes"
8392 echo "configure: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8395 eval "ac_cv_lib_$ac_lib_var=no"
8398 LIBS="$ac_save_LIBS"
8401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8402 echo "$ac_t""yes" 1>&6
8405 echo "$ac_t""no" 1>&6
8410 echo "$ac_t""no" 1>&6
8414 if test x$have_lirc = xtrue
8416 PLUGINS="${PLUGINS} lirc"
8417 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8423 # Check whether --with- or --without- was given.
8424 if test "${with_+set}" = set; then
8431 --with-words=endianness set endianness (big or little)"
8432 # Check whether --with-words or --without-words was given.
8433 if test "${with_words+set}" = set; then
8434 withval="$with_words"
8438 case "x$with_words" in
8442 ac_cv_c_bigendian=yes
8445 ac_cv_c_bigendian=no
8448 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8449 echo "configure:8450: checking whether the byte order is big-endian" >&5
8450 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8451 echo $ac_n "(cached) $ac_c" 1>&6
8453 ac_cv_c_bigendian=unknown
8454 cat >conftest.c <<EOF
8455 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8456 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8457 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8458 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8459 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8460 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8461 int main(void) { _a(); _e(); return 0; }
8464 if test -f conftest.c
8466 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8467 && test -f conftest.o
8469 if test "`strings conftest.o | grep BIGenDianSyS`"
8471 ac_cv_c_bigendian=yes
8473 if test "`strings conftest.o | grep LiTTleEnDian`"
8475 ac_cv_c_bigendian=no
8482 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8483 if test x$ac_cv_c_bigendian = xunknown
8485 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8489 if test $ac_cv_c_bigendian = yes
8491 cat >> confdefs.h <<\EOF
8492 #define WORDS_BIGENDIAN 1
8500 # Check whether --enable-gprof or --disable-gprof was given.
8501 if test "${enable_gprof+set}" = set; then
8502 enableval="$enable_gprof"
8503 if test "x$enable_gprof" = "xyes"
8513 # Check whether --enable-cprof or --disable-cprof was given.
8514 if test "${enable_cprof+set}" = set; then
8515 enableval="$enable_cprof"
8516 if test "x$enable_cprof" = "xyes"
8518 LDFLAGS="${LDFLAGS} -lcprof"
8526 # Check whether --enable-pth or --disable-pth was given.
8527 if test "${enable_pth+set}" = set; then
8528 enableval="$enable_pth"
8529 if test "x$enable_pth" = "xyes"; then
8530 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8531 echo "configure:8532: checking for pth_init in -lpth" >&5
8532 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8534 echo $ac_n "(cached) $ac_c" 1>&6
8536 ac_save_LIBS="$LIBS"
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 /* Override any gcc2 internal prototype to avoid an error. */
8542 /* We use char because int might match the return type of a gcc2
8543 builtin and then its argument prototype would still apply. */
8550 if { (eval echo configure:8551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8552 eval "ac_cv_lib_$ac_lib_var=yes"
8554 echo "configure: failed program was:" >&5
8555 cat conftest.$ac_ext >&5
8557 eval "ac_cv_lib_$ac_lib_var=no"
8560 LIBS="$ac_save_LIBS"
8563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8564 echo "$ac_t""yes" 1>&6
8565 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8567 cat >> confdefs.h <<EOF
8568 #define $ac_tr_lib 1
8574 echo "$ac_t""no" 1>&6
8577 cat > conftest.$ac_ext <<EOF
8578 #line 8579 "configure"
8579 #include "confdefs.h"
8582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8583 egrep "pth_init" >/dev/null 2>&1; then
8586 cat >> confdefs.h <<\EOF
8587 #define PTH_INIT_IN_PTH_H 1
8599 # Check whether --enable-st or --disable-st was given.
8600 if test "${enable_st+set}" = set; then
8601 enableval="$enable_st"
8602 if test "x$enable_st" = "xyes"; then
8603 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8604 echo "configure:8605: checking for st_init in -lst" >&5
8605 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8607 echo $ac_n "(cached) $ac_c" 1>&6
8609 ac_save_LIBS="$LIBS"
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 /* Override any gcc2 internal prototype to avoid an error. */
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8623 if { (eval echo configure:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8625 eval "ac_cv_lib_$ac_lib_var=yes"
8627 echo "configure: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8630 eval "ac_cv_lib_$ac_lib_var=no"
8633 LIBS="$ac_save_LIBS"
8636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8637 echo "$ac_t""yes" 1>&6
8638 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8639 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8640 cat >> confdefs.h <<EOF
8641 #define $ac_tr_lib 1
8647 echo "$ac_t""no" 1>&6
8650 cat > conftest.$ac_ext <<EOF
8651 #line 8652 "configure"
8652 #include "confdefs.h"
8655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8656 egrep "st_init" >/dev/null 2>&1; then
8659 cat >> confdefs.h <<\EOF
8660 #define ST_INIT_IN_ST_H 1
8672 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8673 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8675 # Check whether --enable-plugins or --disable-plugins was given.
8676 if test "${enable_plugins+set}" = set; then
8677 enableval="$enable_plugins"
8678 if test x$enable_plugins = xno
8680 BUILTINS="${BUILTINS} ${PLUGINS}"
8686 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8688 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8690 BUILTINS="${BUILTINS} ${PLUGINS}"
8694 cat >> confdefs.h <<EOF
8695 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8698 cat >> confdefs.h <<EOF
8699 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8702 cat >> confdefs.h <<EOF
8703 #define CONFIGURE_LINE "$CONFIGURE_LINE"
8707 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8708 cat >> confdefs.h <<EOF
8709 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8712 cat >> confdefs.h <<EOF
8713 #define MODULE_SYMBOL $VLC_SYMBOL
8717 DATA_PATH="${ac_tool_prefix}/share/videolan"
8719 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8722 CPPFLAGS="${save_CPPFLAGS}"
8723 CFLAGS="${save_CFLAGS}"
8724 LDFLAGS="${save_LDFLAGS}"
8824 cat > confcache <<\EOF
8825 # This file is a shell script that caches the results of configure
8826 # tests run on this system so they can be shared between configure
8827 # scripts and configure runs. It is not useful on other systems.
8828 # If it contains results you don't want to keep, you may remove or edit it.
8830 # By default, configure uses ./config.cache as the cache file,
8831 # creating it if it does not exist already. You can give configure
8832 # the --cache-file=FILE option to use a different cache file; that is
8833 # what configure does when it calls configure scripts in
8834 # subdirectories, so they share the cache.
8835 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8836 # config.status only pays attention to the cache file if you give it the
8837 # --recheck option to rerun configure.
8840 # The following way of writing the cache mishandles newlines in values,
8841 # but we know of no workaround that is simple, portable, and efficient.
8842 # So, don't put newlines in cache variables' values.
8843 # Ultrix sh set writes to stderr and can't be redirected directly,
8844 # and sets the high bit in the cache file unless we assign to the vars.
8846 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8848 # `set' does not quote correctly, so add quotes (double-quote substitution
8849 # turns \\\\ into \\, and sed turns \\ into \).
8851 -e "s/'/'\\\\''/g" \
8852 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8855 # `set' quotes correctly as required by POSIX, so do not add quotes.
8856 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8859 if cmp -s $cache_file confcache; then
8862 if test -w $cache_file; then
8863 echo "updating cache $cache_file"
8864 cat confcache > $cache_file
8866 echo "not updating unwritable cache $cache_file"
8871 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8874 # Let make expand exec_prefix.
8875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8877 # Any assignment to VPATH causes Sun make to only execute
8878 # the first set of double-colon rules, so remove it if not needed.
8879 # If there is a colon in the path, we need to keep it.
8880 if test "x$srcdir" = x.; then
8881 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8884 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8886 DEFS=-DHAVE_CONFIG_H
8888 # Without the "./", some shells look in PATH for config.status.
8889 : ${CONFIG_STATUS=./config.status}
8891 echo creating $CONFIG_STATUS
8892 rm -f $CONFIG_STATUS
8893 cat > $CONFIG_STATUS <<EOF
8895 # Generated automatically by configure.
8896 # Run this file to recreate the current configuration.
8897 # This directory was configured as follows,
8898 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8900 # $0 $ac_configure_args
8902 # Compiler output produced by configure, useful for debugging
8903 # configure, is in ./config.log if it exists.
8905 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8908 case "\$ac_option" in
8909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8910 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8911 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8912 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8913 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8915 -help | --help | --hel | --he | --h)
8916 echo "\$ac_cs_usage"; exit 0 ;;
8917 *) echo "\$ac_cs_usage"; exit 1 ;;
8921 ac_given_srcdir=$srcdir
8922 ac_given_INSTALL="$INSTALL"
8924 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8926 cat >> $CONFIG_STATUS <<EOF
8928 # Protect against being on the right side of a sed subst in config.status.
8929 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8930 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8934 s%@CFLAGS@%$CFLAGS%g
8935 s%@CPPFLAGS@%$CPPFLAGS%g
8936 s%@CXXFLAGS@%$CXXFLAGS%g
8937 s%@FFLAGS@%$FFLAGS%g
8939 s%@LDFLAGS@%$LDFLAGS%g
8941 s%@exec_prefix@%$exec_prefix%g
8942 s%@prefix@%$prefix%g
8943 s%@program_transform_name@%$program_transform_name%g
8944 s%@bindir@%$bindir%g
8945 s%@sbindir@%$sbindir%g
8946 s%@libexecdir@%$libexecdir%g
8947 s%@datadir@%$datadir%g
8948 s%@sysconfdir@%$sysconfdir%g
8949 s%@sharedstatedir@%$sharedstatedir%g
8950 s%@localstatedir@%$localstatedir%g
8951 s%@libdir@%$libdir%g
8952 s%@includedir@%$includedir%g
8953 s%@oldincludedir@%$oldincludedir%g
8954 s%@infodir@%$infodir%g
8955 s%@mandir@%$mandir%g
8957 s%@host_alias@%$host_alias%g
8958 s%@host_cpu@%$host_cpu%g
8959 s%@host_vendor@%$host_vendor%g
8960 s%@host_os@%$host_os%g
8961 s%@target@%$target%g
8962 s%@target_alias@%$target_alias%g
8963 s%@target_cpu@%$target_cpu%g
8964 s%@target_vendor@%$target_vendor%g
8965 s%@target_os@%$target_os%g
8967 s%@build_alias@%$build_alias%g
8968 s%@build_cpu@%$build_cpu%g
8969 s%@build_vendor@%$build_vendor%g
8970 s%@build_os@%$build_os%g
8971 s%@SET_MAKE@%$SET_MAKE%g
8974 s%@RANLIB@%$RANLIB%g
8977 s%@ALLOCA@%$ALLOCA%g
8978 s%@GLIBC21@%$GLIBC21%g
8979 s%@LIBICONV@%$LIBICONV%g
8980 s%@USE_NLS@%$USE_NLS%g
8981 s%@MSGFMT@%$MSGFMT%g
8982 s%@GMSGFMT@%$GMSGFMT%g
8983 s%@XGETTEXT@%$XGETTEXT%g
8984 s%@INTLBISON@%$INTLBISON%g
8985 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8986 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8987 s%@CATALOGS@%$CATALOGS%g
8988 s%@CATOBJEXT@%$CATOBJEXT%g
8989 s%@GMOFILES@%$GMOFILES%g
8990 s%@INTLLIBS@%$INTLLIBS%g
8991 s%@INTLOBJS@%$INTLOBJS%g
8992 s%@POFILES@%$POFILES%g
8994 s%@DATADIRNAME@%$DATADIRNAME%g
8995 s%@INSTOBJEXT@%$INSTOBJEXT%g
8996 s%@GENCAT@%$GENCAT%g
8997 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8998 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8999 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9000 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9001 s%@INSTALL_DATA@%$INSTALL_DATA%g
9002 s%@WINDRES@%$WINDRES%g
9003 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9004 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9005 s%@SDL_CONFIG@%$SDL_CONFIG%g
9006 s%@ESD_CONFIG@%$ESD_CONFIG%g
9007 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9008 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9009 s%@GTK_CONFIG@%$GTK_CONFIG%g
9010 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9011 s%@DATA_PATH@%$DATA_PATH%g
9012 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9015 s%@PLUGINS@%$PLUGINS%g
9016 s%@BUILTINS@%$BUILTINS%g
9017 s%@ALIASES@%$ALIASES%g
9022 s%@OPTIMS@%$OPTIMS%g
9023 s%@TUNING@%$TUNING%g
9024 s%@RELEASE@%$RELEASE%g
9026 s%@BCBUILDER@%$BCBUILDER%g
9027 s%@PACKAGE@%$PACKAGE%g
9028 s%@VERSION@%$VERSION%g
9029 s%@NEED_GETOPT@%$NEED_GETOPT%g
9030 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9031 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9032 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9033 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9034 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9035 s%@a52_CFLAGS@%$a52_CFLAGS%g
9036 s%@arts_CFLAGS@%$arts_CFLAGS%g
9037 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
9038 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9039 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9040 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9041 s%@directx_CFLAGS@%$directx_CFLAGS%g
9042 s%@esd_CFLAGS@%$esd_CFLAGS%g
9043 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9044 s%@glide_CFLAGS@%$glide_CFLAGS%g
9045 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9046 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9047 s%@kde_CFLAGS@%$kde_CFLAGS%g
9048 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9049 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9050 s%@mad_CFLAGS@%$mad_CFLAGS%g
9051 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9052 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9053 s%@qt_CFLAGS@%$qt_CFLAGS%g
9054 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9055 s%@x11_CFLAGS@%$x11_CFLAGS%g
9056 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9057 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9058 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9059 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9060 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9061 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9062 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9063 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9064 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9065 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9066 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9067 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9068 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9069 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9070 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9071 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9072 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9073 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9074 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9075 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9076 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9077 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9078 s%@http_LDFLAGS@%$http_LDFLAGS%g
9079 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9080 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9081 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9082 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9083 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9084 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9085 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9086 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9087 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9088 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9089 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9090 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9091 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9092 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9093 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9094 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9095 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9096 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9097 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9098 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9099 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9100 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9101 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9106 cat >> $CONFIG_STATUS <<\EOF
9108 # Split the substitutions into bite-sized pieces for seds with
9109 # small command number limits, like on Digital OSF/1 and HP-UX.
9110 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9111 ac_file=1 # Number of current file.
9112 ac_beg=1 # First line for current file.
9113 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9116 while $ac_more_lines; do
9117 if test $ac_beg -gt 1; then
9118 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9120 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9122 if test ! -s conftest.s$ac_file; then
9124 rm -f conftest.s$ac_file
9126 if test -z "$ac_sed_cmds"; then
9127 ac_sed_cmds="sed -f conftest.s$ac_file"
9129 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9131 ac_file=`expr $ac_file + 1`
9133 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9136 if test -z "$ac_sed_cmds"; then
9141 cat >> $CONFIG_STATUS <<EOF
9143 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9145 cat >> $CONFIG_STATUS <<\EOF
9146 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9147 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9149 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9150 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9151 *) ac_file_in="${ac_file}.in" ;;
9154 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9156 # Remove last slash and all that follows it. Not all systems have dirname.
9157 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9158 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9159 # The file is in a subdirectory.
9160 test ! -d "$ac_dir" && mkdir "$ac_dir"
9161 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9162 # A "../" for each directory in $ac_dir_suffix.
9163 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9165 ac_dir_suffix= ac_dots=
9168 case "$ac_given_srcdir" in
9170 if test -z "$ac_dots"; then top_srcdir=.
9171 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9172 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9174 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9175 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9178 case "$ac_given_INSTALL" in
9179 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9180 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9183 echo creating "$ac_file"
9185 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9187 *Makefile*) ac_comsub="1i\\
9188 # $configure_input" ;;
9192 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9194 s%@configure_input@%$configure_input%g
9195 s%@srcdir@%$srcdir%g
9196 s%@top_srcdir@%$top_srcdir%g
9197 s%@INSTALL@%$INSTALL%g
9198 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9202 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9203 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9205 # ac_d sets the value in "#define NAME VALUE" lines.
9206 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9207 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9210 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9211 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9212 ac_uB='\([ ]\)%\1#\2define\3'
9215 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9216 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9217 ac_eB='$%\1#\2define\3'
9221 if test "${CONFIG_HEADERS+set}" != set; then
9223 cat >> $CONFIG_STATUS <<EOF
9224 CONFIG_HEADERS="include/defs.h"
9226 cat >> $CONFIG_STATUS <<\EOF
9228 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9229 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9231 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9232 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9233 *) ac_file_in="${ac_file}.in" ;;
9236 echo creating $ac_file
9238 rm -f conftest.frag conftest.in conftest.out
9239 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9240 cat $ac_file_inputs > conftest.in
9244 # Transform confdefs.h into a sed script conftest.vals that substitutes
9245 # the proper values into config.h.in to produce config.h. And first:
9246 # Protect against being on the right side of a sed subst in config.status.
9247 # Protect against being in an unquoted here document in config.status.
9249 cat > conftest.hdr <<\EOF
9252 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9256 sed -n -f conftest.hdr confdefs.h > conftest.vals
9259 # This sed command replaces #undef with comments. This is necessary, for
9260 # example, in the case of _POSIX_SOURCE, which is predefined and required
9261 # on some systems where configure will not decide to define it.
9262 cat >> conftest.vals <<\EOF
9263 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9266 # Break up conftest.vals because some shells have a limit on
9267 # the size of here documents, and old seds have small limits too.
9272 ac_lines=`grep -c . conftest.vals`
9273 # grep -c gives empty output for an empty file on some AIX systems.
9274 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9275 # Write a limited-size here document to conftest.frag.
9276 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9277 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9279 sed -f conftest.frag conftest.in > conftest.out
9281 mv conftest.out conftest.in
9283 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9285 mv conftest.tail conftest.vals
9289 cat >> $CONFIG_STATUS <<\EOF
9290 rm -f conftest.frag conftest.h
9291 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9292 cat conftest.in >> conftest.h
9294 if cmp -s $ac_file conftest.h 2>/dev/null; then
9295 echo "$ac_file is unchanged"
9298 # Remove last slash and all that follows it. Not all systems have dirname.
9299 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9300 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9301 # The file is in a subdirectory.
9302 test ! -d "$ac_dir" && mkdir "$ac_dir"
9305 mv conftest.h $ac_file
9310 cat >> $CONFIG_STATUS <<EOF
9314 cat >> $CONFIG_STATUS <<\EOF
9315 for ac_file in $CONFIG_FILES; do
9316 # Support "outfile[:infile[:infile...]]"
9318 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9320 # PO directories have a Makefile.in generated from Makefile.in.in.
9321 case "$ac_file" in */Makefile.in)
9322 # Adjust a relative srcdir.
9323 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9324 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9325 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9326 # In autoconf-2.13 it is called $ac_given_srcdir.
9327 # In autoconf-2.50 it is called $srcdir.
9328 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9329 case "$ac_given_srcdir" in
9330 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9331 /*) top_srcdir="$ac_given_srcdir" ;;
9332 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9334 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9335 rm -f "$ac_dir/POTFILES"
9336 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9337 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9338 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9339 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9347 chmod +x $CONFIG_STATUS
9348 rm -fr confdefs* $ac_clean_files
9349 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9354 --------------------
9355 vlc version : ${VERSION}
9357 architecture : ${ARCH}
9358 optimizations : ${OPTIMS}
9360 debug mode : ${DEBUG}
9361 release : ${RELEASE}
9362 profiling : ${PROFILING}
9363 need builtin getopt : ${NEED_GETOPT}
9364 built-in modules :${BUILTINS}
9365 plug-in modules :${PLUGINS}
9366 vlc aliases :${ALIASES}
9368 You may now tune Makefile.opts at your convenience, for instance to choose
9369 which modules get compiled as plugins.
9371 To build vlc and its plugins, type \`$VLC_MAKE'.