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 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
54 --enable-satellite satellite card support (default disabled)"
56 --enable-avi AVI demux module (default enabled)"
60 --enable-mad libmad module (default disabled)"
62 --with-mad=PATH path to libmad"
64 --with-mad-tree=PATH mad tree for static linking"
66 --enable-ffmpeg ffmpeg codec (default disabled)"
68 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
70 --enable-a52 AC3 support with liba52 (default enabled)"
72 --with-a52-tree=PATH a52dec tree for static linking "
74 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
78 --enable-x11 X11 support (default enabled)"
80 --enable-xvideo XVideo support (default enabled)"
82 --enable-sdl SDL support (default enabled)"
84 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
86 --enable-directx Win32 DirectX support (default enabled on Win32)"
88 --with-directx=PATH Win32 DirectX headers and libraries"
90 --enable-fb Linux framebuffer support (default enabled on Linux)"
92 --enable-mga Linux kernel Matrox support (default disabled)"
94 --enable-ggi GGI support (default disabled)"
96 --with-ggi=PATH path to libggi"
98 --enable-glide Glide (3dfx) support (default disabled)"
100 --with-glide=PATH path to libglide"
102 --enable-aa aalib output (default disabled)"
106 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
108 --enable-esd Esound library support (default disabled)"
110 --enable-arts aRts sound server (default disabled)"
112 --enable-alsa ALSA sound support for Linux (default disabled)"
114 --enable-waveout Win32 waveOut module (default enabled on Win32)"
118 --enable-gtk Gtk+ support (default enabled)"
120 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
122 --enable-gnome Gnome interface support (default disabled)"
124 --enable-qt Qt interface support (default disabled)"
126 --enable-kde KDE interface support (default disabled)"
128 --enable-macosx MacOS X support (default enabled on MacOS X)"
130 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
132 --enable-intfwin Win32 interface support (default disabled)"
134 --with-bcbuilder=PATH Borland C++ Builder installation path"
136 --enable-ncurses ncurses interface support (default disabled)"
138 --enable-lirc lirc support (default disabled)"
142 --with-words=endianness set endianness (big or little)"
144 --enable-gprof gprof profiling (default disabled)"
146 --enable-cprof cprof profiling (default disabled)"
148 --enable-pth GNU Pth support (default disabled)"
150 --enable-st State Threads (default disabled)"
152 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
154 # Initialize some variables set by options.
155 # The variables have the same names as the options, with
156 # dashes changed to underlines.
158 cache_file=./config.cache
167 program_transform_name=s,x,x,
175 bindir='${exec_prefix}/bin'
176 sbindir='${exec_prefix}/sbin'
177 libexecdir='${exec_prefix}/libexec'
178 datadir='${prefix}/share'
179 sysconfdir='${prefix}/etc'
180 sharedstatedir='${prefix}/com'
181 localstatedir='${prefix}/var'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${prefix}/info'
186 mandir='${prefix}/man'
188 # Initialize some other variables.
191 SHELL=${CONFIG_SHELL-/bin/sh}
192 # Maximum number of lines to put in a shell here document.
199 # If the previous option needs an argument, assign it.
200 if test -n "$ac_prev"; then
201 eval "$ac_prev=\$ac_option"
207 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
211 # Accept the important Cygnus configure options, so we can diagnose typos.
215 -bindir | --bindir | --bindi | --bind | --bin | --bi)
217 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
218 bindir="$ac_optarg" ;;
220 -build | --build | --buil | --bui | --bu)
222 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
223 build="$ac_optarg" ;;
225 -cache-file | --cache-file | --cache-fil | --cache-fi \
226 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
227 ac_prev=cache_file ;;
228 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
229 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
230 cache_file="$ac_optarg" ;;
232 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
234 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
236 datadir="$ac_optarg" ;;
238 -disable-* | --disable-*)
239 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
240 # Reject names that are not valid shell variable names.
241 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
242 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
244 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
245 eval "enable_${ac_feature}=no" ;;
247 -enable-* | --enable-*)
248 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
249 # Reject names that are not valid shell variable names.
250 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
251 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
253 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
258 eval "enable_${ac_feature}='$ac_optarg'" ;;
260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
262 | --exec | --exe | --ex)
263 ac_prev=exec_prefix ;;
264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
266 | --exec=* | --exe=* | --ex=*)
267 exec_prefix="$ac_optarg" ;;
269 -gas | --gas | --ga | --g)
270 # Obsolete; use --with-gas.
273 -help | --help | --hel | --he)
274 # Omit some internal or obsolete options to make the list less imposing.
275 # This message is too long to be a string in the A/UX 3.1 sh.
277 Usage: configure [options] [host]
278 Options: [defaults in brackets after descriptions]
280 --cache-file=FILE cache test results in FILE
281 --help print this message
282 --no-create do not create output files
283 --quiet, --silent do not print \`checking...' messages
284 --version print the version of autoconf that created configure
285 Directory and file names:
286 --prefix=PREFIX install architecture-independent files in PREFIX
288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
290 --bindir=DIR user executables in DIR [EPREFIX/bin]
291 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
292 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
293 --datadir=DIR read-only architecture-independent data in DIR
295 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
296 --sharedstatedir=DIR modifiable architecture-independent data in DIR
298 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
299 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
300 --includedir=DIR C header files in DIR [PREFIX/include]
301 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
302 --infodir=DIR info documentation in DIR [PREFIX/info]
303 --mandir=DIR man documentation in DIR [PREFIX/man]
304 --srcdir=DIR find the sources in DIR [configure dir or ..]
305 --program-prefix=PREFIX prepend PREFIX to installed program names
306 --program-suffix=SUFFIX append SUFFIX to installed program names
307 --program-transform-name=PROGRAM
308 run sed PROGRAM on installed program names
312 --build=BUILD configure for building on BUILD [BUILD=HOST]
313 --host=HOST configure for HOST [guessed]
314 --target=TARGET configure for TARGET [TARGET=HOST]
315 Features and packages:
316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
320 --x-includes=DIR X include files are in DIR
321 --x-libraries=DIR X library files are in DIR
323 if test -n "$ac_help"; then
324 echo "--enable and --with options recognized:$ac_help"
328 -host | --host | --hos | --ho)
330 -host=* | --host=* | --hos=* | --ho=*)
333 -includedir | --includedir | --includedi | --included | --include \
334 | --includ | --inclu | --incl | --inc)
335 ac_prev=includedir ;;
336 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
337 | --includ=* | --inclu=* | --incl=* | --inc=*)
338 includedir="$ac_optarg" ;;
340 -infodir | --infodir | --infodi | --infod | --info | --inf)
342 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
343 infodir="$ac_optarg" ;;
345 -libdir | --libdir | --libdi | --libd)
347 -libdir=* | --libdir=* | --libdi=* | --libd=*)
348 libdir="$ac_optarg" ;;
350 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
351 | --libexe | --libex | --libe)
352 ac_prev=libexecdir ;;
353 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
354 | --libexe=* | --libex=* | --libe=*)
355 libexecdir="$ac_optarg" ;;
357 -localstatedir | --localstatedir | --localstatedi | --localstated \
358 | --localstate | --localstat | --localsta | --localst \
359 | --locals | --local | --loca | --loc | --lo)
360 ac_prev=localstatedir ;;
361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
362 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
363 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
364 localstatedir="$ac_optarg" ;;
366 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
368 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
369 mandir="$ac_optarg" ;;
372 # Obsolete; use --without-fp.
375 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
379 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
380 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
383 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
384 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
385 | --oldin | --oldi | --old | --ol | --o)
386 ac_prev=oldincludedir ;;
387 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
388 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
389 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
390 oldincludedir="$ac_optarg" ;;
392 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
394 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
395 prefix="$ac_optarg" ;;
397 -program-prefix | --program-prefix | --program-prefi | --program-pref \
398 | --program-pre | --program-pr | --program-p)
399 ac_prev=program_prefix ;;
400 -program-prefix=* | --program-prefix=* | --program-prefi=* \
401 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
402 program_prefix="$ac_optarg" ;;
404 -program-suffix | --program-suffix | --program-suffi | --program-suff \
405 | --program-suf | --program-su | --program-s)
406 ac_prev=program_suffix ;;
407 -program-suffix=* | --program-suffix=* | --program-suffi=* \
408 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
409 program_suffix="$ac_optarg" ;;
411 -program-transform-name | --program-transform-name \
412 | --program-transform-nam | --program-transform-na \
413 | --program-transform-n | --program-transform- \
414 | --program-transform | --program-transfor \
415 | --program-transfo | --program-transf \
416 | --program-trans | --program-tran \
417 | --progr-tra | --program-tr | --program-t)
418 ac_prev=program_transform_name ;;
419 -program-transform-name=* | --program-transform-name=* \
420 | --program-transform-nam=* | --program-transform-na=* \
421 | --program-transform-n=* | --program-transform-=* \
422 | --program-transform=* | --program-transfor=* \
423 | --program-transfo=* | --program-transf=* \
424 | --program-trans=* | --program-tran=* \
425 | --progr-tra=* | --program-tr=* | --program-t=*)
426 program_transform_name="$ac_optarg" ;;
428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
429 | -silent | --silent | --silen | --sile | --sil)
432 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
434 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
436 sbindir="$ac_optarg" ;;
438 -sharedstatedir | --sharedstatedir | --sharedstatedi \
439 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
440 | --sharedst | --shareds | --shared | --share | --shar \
442 ac_prev=sharedstatedir ;;
443 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
444 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
445 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
447 sharedstatedir="$ac_optarg" ;;
449 -site | --site | --sit)
451 -site=* | --site=* | --sit=*)
454 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
456 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
457 srcdir="$ac_optarg" ;;
459 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
460 | --syscon | --sysco | --sysc | --sys | --sy)
461 ac_prev=sysconfdir ;;
462 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
463 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
464 sysconfdir="$ac_optarg" ;;
466 -target | --target | --targe | --targ | --tar | --ta | --t)
468 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
469 target="$ac_optarg" ;;
471 -v | -verbose | --verbose | --verbos | --verbo | --verb)
474 -version | --version | --versio | --versi | --vers)
475 echo "configure generated by autoconf version 2.13"
479 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
480 # Reject names that are not valid shell variable names.
481 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
482 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
484 ac_package=`echo $ac_package| sed 's/-/_/g'`
489 eval "with_${ac_package}='$ac_optarg'" ;;
491 -without-* | --without-*)
492 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
493 # Reject names that are not valid shell variable names.
494 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
495 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
497 ac_package=`echo $ac_package| sed 's/-/_/g'`
498 eval "with_${ac_package}=no" ;;
501 # Obsolete; use --with-x.
504 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
505 | --x-incl | --x-inc | --x-in | --x-i)
506 ac_prev=x_includes ;;
507 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
508 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
509 x_includes="$ac_optarg" ;;
511 -x-libraries | --x-libraries | --x-librarie | --x-librari \
512 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
513 ac_prev=x_libraries ;;
514 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
515 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
516 x_libraries="$ac_optarg" ;;
518 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
522 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
523 echo "configure: warning: $ac_option: invalid host type" 1>&2
525 if test "x$nonopt" != xNONE; then
526 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
534 if test -n "$ac_prev"; then
535 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
538 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
540 # File descriptor usage:
543 # 2 errors and warnings
544 # 3 some systems may open it to /dev/tty
545 # 4 used on the Kubota Titan
546 # 6 checking for... messages and results
547 # 5 compiler messages saved in config.log
548 if test "$silent" = yes; then
556 This file contains any messages produced by compilers while
557 running configure, to aid debugging if configure makes a mistake.
560 # Strip out --no-create and --no-recursion so they do not pile up.
561 # Also quote any args containing shell metacharacters.
566 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
567 | --no-cr | --no-c) ;;
568 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
569 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
570 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
571 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
572 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
577 # Only set these to C if already set. These must not be set unconditionally
578 # because not all systems understand e.g. LANG=C (notably SCO).
579 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
580 # Non-C LC_CTYPE values break the ctype check.
581 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
582 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
583 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
584 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
586 # confdefs.h avoids OS command line length limits that DEFS can exceed.
587 rm -rf conftest* confdefs.h
588 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
591 # A filename unique to this package, relative to the directory that
592 # configure is in, which we can look for to find out if srcdir is correct.
593 ac_unique_file=include/main.h
595 # Find the source files, if location was not specified.
596 if test -z "$srcdir"; then
597 ac_srcdir_defaulted=yes
598 # Try the directory containing this script, then its parent.
600 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
601 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
603 if test ! -r $srcdir/$ac_unique_file; then
607 ac_srcdir_defaulted=no
609 if test ! -r $srcdir/$ac_unique_file; then
610 if test "$ac_srcdir_defaulted" = yes; then
611 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
613 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
616 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
618 # Prefer explicitly selected file to automatically selected ones.
619 if test -z "$CONFIG_SITE"; then
620 if test "x$prefix" != xNONE; then
621 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
623 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
626 for ac_site_file in $CONFIG_SITE; do
627 if test -r "$ac_site_file"; then
628 echo "loading site script $ac_site_file"
633 if test -r "$cache_file"; then
634 echo "loading cache $cache_file"
637 echo "creating cache $cache_file"
642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
643 ac_cpp='$CPP $CPPFLAGS'
644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
645 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
646 cross_compiling=$ac_cv_prog_cc_cross
650 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
651 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
652 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
659 ac_n= ac_c='\c' ac_t=
665 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
666 if test -f $ac_dir/install-sh; then
668 ac_install_sh="$ac_aux_dir/install-sh -c"
670 elif test -f $ac_dir/install.sh; then
672 ac_install_sh="$ac_aux_dir/install.sh -c"
676 if test -z "$ac_aux_dir"; then
677 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
679 ac_config_guess=$ac_aux_dir/config.guess
680 ac_config_sub=$ac_aux_dir/config.sub
681 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
684 # Do some error checking and defaulting for the host and target type.
686 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
689 # 1. You are not allowed to specify --host, --target, and nonopt at the
691 # 2. Host defaults to nonopt.
692 # 3. If nonopt is not specified, then host defaults to the current host,
693 # as determined by config.guess.
694 # 4. Target and build default to nonopt.
695 # 5. If nonopt is not specified, then target and build default to host.
697 # The aliases save the names the user supplied, while $host etc.
698 # will get canonicalized.
699 case $host---$target---$nonopt in
700 NONE---*---* | *---NONE---* | *---*---NONE) ;;
701 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
705 # Make sure we can run config.sub.
706 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
707 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
710 echo $ac_n "checking host system type""... $ac_c" 1>&6
711 echo "configure:712: checking host system type" >&5
714 case "$host_alias" in
718 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
719 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
721 *) host_alias=$nonopt ;;
725 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
726 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$host" 1>&6
731 echo $ac_n "checking target system type""... $ac_c" 1>&6
732 echo "configure:733: checking target system type" >&5
735 case "$target_alias" in
738 NONE) target_alias=$host_alias ;;
739 *) target_alias=$nonopt ;;
743 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
744 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
745 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
746 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
747 echo "$ac_t""$target" 1>&6
749 echo $ac_n "checking build system type""... $ac_c" 1>&6
750 echo "configure:751: checking build system type" >&5
753 case "$build_alias" in
756 NONE) build_alias=$host_alias ;;
757 *) build_alias=$nonopt ;;
761 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
762 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
763 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
764 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo "$ac_t""$build" 1>&6
767 test "$host_alias" != "$target_alias" &&
768 test "$program_prefix$program_suffix$program_transform_name" = \
770 program_prefix=${target_alias}-
777 save_CFLAGS="${CFLAGS}"
778 save_CPPFLAGS="${CPPFLAGS}"
779 save_LDFLAGS="${LDFLAGS}"
781 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
782 echo "configure:783: checking whether ${MAKE-make} sets \${MAKE}" >&5
783 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
784 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 cat > conftestmake <<\EOF
789 @echo 'ac_maketemp="${MAKE}"'
791 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
792 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
793 if test -n "$ac_maketemp"; then
794 eval ac_cv_prog_make_${ac_make}_set=yes
796 eval ac_cv_prog_make_${ac_make}_set=no
800 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
801 echo "$ac_t""yes" 1>&6
804 echo "$ac_t""no" 1>&6
805 SET_MAKE="MAKE=${MAKE-make}"
808 # Extract the first word of "gcc", so it can be a program name with args.
809 set dummy gcc; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC="$CC" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 for ac_dir in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir=.
822 if test -f $ac_dir/$ac_word; then
831 if test -n "$CC"; then
832 echo "$ac_t""$CC" 1>&6
834 echo "$ac_t""no" 1>&6
837 if test -z "$CC"; then
838 # Extract the first word of "cc", so it can be a program name with args.
839 set dummy cc; ac_word=$2
840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841 echo "configure:842: checking for $ac_word" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 if test -n "$CC"; then
846 ac_cv_prog_CC="$CC" # Let the user override the test.
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
851 for ac_dir in $ac_dummy; do
852 test -z "$ac_dir" && ac_dir=.
853 if test -f $ac_dir/$ac_word; then
854 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
863 if test $ac_prog_rejected = yes; then
864 # We found a bogon in the path, so make sure we never use it.
865 set dummy $ac_cv_prog_CC
867 if test $# -gt 0; then
868 # We chose a different compiler from the bogus one.
869 # However, it has the same basename, so the bogon will be chosen
870 # first if we set CC to just the basename; use the full file name.
872 set dummy "$ac_dir/$ac_word" "$@"
880 if test -n "$CC"; then
881 echo "$ac_t""$CC" 1>&6
883 echo "$ac_t""no" 1>&6
886 if test -z "$CC"; then
889 # Extract the first word of "cl", so it can be a program name with args.
890 set dummy cl; ac_word=$2
891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892 echo "configure:893: checking for $ac_word" >&5
893 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 if test -n "$CC"; then
897 ac_cv_prog_CC="$CC" # Let the user override the test.
899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
901 for ac_dir in $ac_dummy; do
902 test -z "$ac_dir" && ac_dir=.
903 if test -f $ac_dir/$ac_word; then
912 if test -n "$CC"; then
913 echo "$ac_t""$CC" 1>&6
915 echo "$ac_t""no" 1>&6
920 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
923 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
924 echo "configure:925: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
933 cat > conftest.$ac_ext << EOF
935 #line 936 "configure"
936 #include "confdefs.h"
940 if { (eval echo configure:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
941 ac_cv_prog_cc_works=yes
942 # If we can't run a trivial program, we are probably using a cross compiler.
943 if (./conftest; exit) 2>/dev/null; then
944 ac_cv_prog_cc_cross=no
946 ac_cv_prog_cc_cross=yes
949 echo "configure: failed program was:" >&5
950 cat conftest.$ac_ext >&5
951 ac_cv_prog_cc_works=no
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling=$ac_cv_prog_cc_cross
961 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
962 if test $ac_cv_prog_cc_works = no; then
963 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
965 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
966 echo "configure:967: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
967 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
968 cross_compiling=$ac_cv_prog_cc_cross
970 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
971 echo "configure:972: checking whether we are using GNU C" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 cat > conftest.c <<EOF
980 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
987 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
989 if test $ac_cv_prog_gcc = yes; then
995 ac_test_CFLAGS="${CFLAGS+set}"
996 ac_save_CFLAGS="$CFLAGS"
998 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
999 echo "configure:1000: checking whether ${CC-cc} accepts -g" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 echo 'void f(){}' > conftest.c
1004 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1013 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1014 if test "$ac_test_CFLAGS" = set; then
1015 CFLAGS="$ac_save_CFLAGS"
1016 elif test $ac_cv_prog_cc_g = yes; then
1017 if test "$GCC" = yes; then
1023 if test "$GCC" = yes; then
1030 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1031 echo "configure:1032: checking how to run the C preprocessor" >&5
1032 # On Suns, sometimes $CPP names a directory.
1033 if test -n "$CPP" && test -d "$CPP"; then
1036 if test -z "$CPP"; then
1037 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 # This must be in double quotes, not single quotes, because CPP may get
1041 # substituted into the Makefile and "${CC-cc}" will confuse make.
1043 # On the NeXT, cc -E runs the code through the compiler's parser,
1044 # not just through cpp.
1045 cat > conftest.$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1052 { (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1054 if test -z "$ac_err"; then
1058 echo "configure: failed program was:" >&5
1059 cat conftest.$ac_ext >&5
1061 CPP="${CC-cc} -E -traditional-cpp"
1062 cat > conftest.$ac_ext <<EOF
1063 #line 1064 "configure"
1064 #include "confdefs.h"
1068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1069 { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1071 if test -z "$ac_err"; then
1075 echo "configure: failed program was:" >&5
1076 cat conftest.$ac_ext >&5
1078 CPP="${CC-cc} -nologo -E"
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1086 { (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1088 if test -z "$ac_err"; then
1092 echo "configure: failed program was:" >&5
1093 cat conftest.$ac_ext >&5
1102 ac_cv_prog_CPP="$CPP"
1104 CPP="$ac_cv_prog_CPP"
1106 ac_cv_prog_CPP="$CPP"
1108 echo "$ac_t""$CPP" 1>&6
1111 if test $host != $build; then
1112 ac_tool_prefix=${host_alias}-
1117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 if test -n "$RANLIB"; then
1125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1129 for ac_dir in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1139 RANLIB="$ac_cv_prog_RANLIB"
1140 if test -n "$RANLIB"; then
1141 echo "$ac_t""$RANLIB" 1>&6
1143 echo "$ac_t""no" 1>&6
1147 if test -z "$ac_cv_prog_RANLIB"; then
1148 if test -n "$ac_tool_prefix"; then
1149 # Extract the first word of "ranlib", so it can be a program name with args.
1150 set dummy ranlib; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$RANLIB"; then
1157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1161 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_RANLIB="ranlib"
1169 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1172 RANLIB="$ac_cv_prog_RANLIB"
1173 if test -n "$RANLIB"; then
1174 echo "$ac_t""$RANLIB" 1>&6
1176 echo "$ac_t""no" 1>&6
1184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1185 set dummy ${ac_tool_prefix}strip; ac_word=$2
1186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1187 echo "configure:1188: checking for $ac_word" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 if test -n "$STRIP"; then
1192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1196 for ac_dir in $ac_dummy; do
1197 test -z "$ac_dir" && ac_dir=.
1198 if test -f $ac_dir/$ac_word; then
1199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1206 STRIP="$ac_cv_prog_STRIP"
1207 if test -n "$STRIP"; then
1208 echo "$ac_t""$STRIP" 1>&6
1210 echo "$ac_t""no" 1>&6
1214 if test -z "$ac_cv_prog_STRIP"; then
1215 if test -n "$ac_tool_prefix"; then
1216 # Extract the first word of "strip", so it can be a program name with args.
1217 set dummy strip; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$STRIP"; then
1224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1228 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/$ac_word; then
1231 ac_cv_prog_STRIP="strip"
1236 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1239 STRIP="$ac_cv_prog_STRIP"
1240 if test -n "$STRIP"; then
1241 echo "$ac_t""$STRIP" 1>&6
1243 echo "$ac_t""no" 1>&6
1252 # Extract the first word of "gmake", so it can be a program name with args.
1253 set dummy gmake; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1261 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1264 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1269 for ac_dir in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1277 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1281 GMAKE="$ac_cv_path_GMAKE"
1282 if test -n "$GMAKE"; then
1283 echo "$ac_t""$GMAKE" 1>&6
1285 echo "$ac_t""no" 1>&6
1288 if test "x$GMAKE" = "xno"; then
1289 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1290 echo "configure:1291: checking whether GNU make is installed" >&5
1291 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 if make --version | grep -q -i gnu; then
1297 echo "This software needs you to install GNU make to compile properly."
1298 echo "You can get it from http://www.gnu.org/."
1303 echo "$ac_t""$ac_cv_gmake" 1>&6
1309 ALL_LINGUAS="de en_GB fr ja no ru nl"
1311 cat >> confdefs.h <<EOF
1312 #define VLC_PACKAGE "$PACKAGE"
1315 cat >> confdefs.h <<EOF
1316 #define VLC_VERSION "$VERSION"
1319 # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 if test -n "$RANLIB"; then
1327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_RANLIB="ranlib"
1339 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344 echo "$ac_t""$RANLIB" 1>&6
1346 echo "$ac_t""no" 1>&6
1350 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1351 echo "configure:1352: checking for strerror in -lcposix" >&5
1352 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 ac_save_LIBS="$LIBS"
1357 LIBS="-lcposix $LIBS"
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1370 if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1372 eval "ac_cv_lib_$ac_lib_var=yes"
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1377 eval "ac_cv_lib_$ac_lib_var=no"
1380 LIBS="$ac_save_LIBS"
1383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1385 LIBS="$LIBS -lcposix"
1387 echo "$ac_t""no" 1>&6
1392 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1393 echo "configure:1394: checking for ANSI C header files" >&5
1394 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1406 { (eval echo configure:1407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1408 if test -z "$ac_err"; then
1410 ac_cv_header_stdc=yes
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1416 ac_cv_header_stdc=no
1420 if test $ac_cv_header_stdc = yes; then
1421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1428 egrep "memchr" >/dev/null 2>&1; then
1432 ac_cv_header_stdc=no
1438 if test $ac_cv_header_stdc = yes; then
1439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1446 egrep "free" >/dev/null 2>&1; then
1450 ac_cv_header_stdc=no
1456 if test $ac_cv_header_stdc = yes; then
1457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1458 if test "$cross_compiling" = yes; then
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1465 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1466 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1468 int main () { int i; for (i = 0; i < 256; i++)
1469 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1473 if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1480 ac_cv_header_stdc=no
1488 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1489 if test $ac_cv_header_stdc = yes; then
1490 cat >> confdefs.h <<\EOF
1491 #define STDC_HEADERS 1
1496 echo $ac_n "checking for working const""... $ac_c" 1>&6
1497 echo "configure:1498: checking for working const" >&5
1498 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1507 /* Ultrix mips cc rejects this. */
1508 typedef int charset[2]; const charset x;
1509 /* SunOS 4.1.1 cc rejects this. */
1510 char const *const *ccp;
1512 /* NEC SVR4.0.2 mips cc rejects this. */
1513 struct point {int x, y;};
1514 static struct point const zero = {0,0};
1515 /* AIX XL C 1.02.0.0 rejects this.
1516 It does not let you subtract one const X* pointer from another in an arm
1517 of an if-expression whose if-part is not a constant expression */
1518 const char *g = "string";
1519 ccp = &g + (g ? g-g : 0);
1520 /* HPUX 7.0 cc rejects these. */
1523 ccp = (char const *const *) p;
1524 { /* SCO 3.2v4 cc rejects this. */
1526 char const *s = 0 ? (char *) 0 : (char const *) 0;
1530 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1532 const int *foo = &x[0];
1535 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1536 typedef const int *iptr;
1540 { /* AIX XL C 1.02.0.0 rejects this saying
1541 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1542 struct s { int j; const int *ap[3]; };
1543 struct s *b; b->j = 5;
1545 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1551 if { (eval echo configure:1552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1563 echo "$ac_t""$ac_cv_c_const" 1>&6
1564 if test $ac_cv_c_const = no; then
1565 cat >> confdefs.h <<\EOF
1571 echo $ac_n "checking for inline""... $ac_c" 1>&6
1572 echo "configure:1573: checking for inline" >&5
1573 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1577 for ac_kw in inline __inline__ __inline; do
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1586 if { (eval echo configure:1587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1588 ac_cv_c_inline=$ac_kw; break
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1598 echo "$ac_t""$ac_cv_c_inline" 1>&6
1599 case "$ac_cv_c_inline" in
1601 no) cat >> confdefs.h <<\EOF
1605 *) cat >> confdefs.h <<EOF
1606 #define inline $ac_cv_c_inline
1611 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1612 echo "configure:1613: checking for off_t" >&5
1613 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 cat > conftest.$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1619 #include <sys/types.h>
1625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1626 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1628 ac_cv_type_off_t=yes
1636 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1637 if test $ac_cv_type_off_t = no; then
1638 cat >> confdefs.h <<\EOF
1644 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1645 echo "configure:1646: checking for size_t" >&5
1646 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 cat > conftest.$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1652 #include <sys/types.h>
1658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1659 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1661 ac_cv_type_size_t=yes
1664 ac_cv_type_size_t=no
1669 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1670 if test $ac_cv_type_size_t = no; then
1671 cat >> confdefs.h <<\EOF
1672 #define size_t unsigned
1677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1678 # for constant arguments. Useless!
1679 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1680 echo "configure:1681: checking for working alloca.h" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1689 char *p = alloca(2 * sizeof(int));
1692 if { (eval echo configure:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1694 ac_cv_header_alloca_h=yes
1696 echo "configure: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1699 ac_cv_header_alloca_h=no
1704 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1705 if test $ac_cv_header_alloca_h = yes; then
1706 cat >> confdefs.h <<\EOF
1707 #define HAVE_ALLOCA_H 1
1712 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1713 echo "configure:1714: checking for alloca" >&5
1714 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 cat > conftest.$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1722 # define alloca __builtin_alloca
1725 # include <malloc.h>
1726 # define alloca _alloca
1729 # include <alloca.h>
1734 # ifndef alloca /* predefined by HP cc +Olibcalls */
1743 char *p = (char *) alloca(1);
1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 ac_cv_func_alloca_works=yes
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1753 ac_cv_func_alloca_works=no
1758 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1759 if test $ac_cv_func_alloca_works = yes; then
1760 cat >> confdefs.h <<\EOF
1761 #define HAVE_ALLOCA 1
1766 if test $ac_cv_func_alloca_works = no; then
1767 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1768 # that cause trouble. Some versions do not even contain alloca or
1769 # contain a buggy version. If you still want to use their alloca,
1770 # use ar to extract alloca.o from them instead of compiling alloca.c.
1771 ALLOCA=alloca.${ac_objext}
1772 cat >> confdefs.h <<\EOF
1777 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1778 echo "configure:1779: checking whether alloca needs Cray hooks" >&5
1779 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 cat > conftest.$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1785 #if defined(CRAY) && ! defined(CRAY2)
1792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1793 egrep "webecray" >/dev/null 2>&1; then
1804 echo "$ac_t""$ac_cv_os_cray" 1>&6
1805 if test $ac_cv_os_cray = yes; then
1806 for ac_func in _getb67 GETB67 getb67; do
1807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1808 echo "configure:1809: checking for $ac_func" >&5
1809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $ac_func(); below. */
1818 /* Override any gcc2 internal prototype to avoid an error. */
1819 /* We use char because int might match the return type of a gcc2
1820 builtin and then its argument prototype would still apply. */
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1838 eval "ac_cv_func_$ac_func=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 eval "ac_cv_func_$ac_func=no"
1848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1849 echo "$ac_t""yes" 1>&6
1850 cat >> confdefs.h <<EOF
1851 #define CRAY_STACKSEG_END $ac_func
1856 echo "$ac_t""no" 1>&6
1862 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1863 echo "configure:1864: checking stack direction for C alloca" >&5
1864 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 if test "$cross_compiling" = yes; then
1868 ac_cv_c_stack_direction=0
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 find_stack_direction ()
1875 static char *addr = 0;
1880 return find_stack_direction ();
1883 return (&dummy > addr) ? 1 : -1;
1887 exit (find_stack_direction() < 0);
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1892 ac_cv_c_stack_direction=1
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1897 ac_cv_c_stack_direction=-1
1904 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1905 cat >> confdefs.h <<EOF
1906 #define STACK_DIRECTION $ac_cv_c_stack_direction
1911 for ac_hdr in unistd.h
1913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_hdr" >&5
1916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1925 { (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1927 if test -z "$ac_err"; then
1929 eval "ac_cv_header_$ac_safe=yes"
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 eval "ac_cv_header_$ac_safe=no"
1939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1940 echo "$ac_t""yes" 1>&6
1941 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1942 cat >> confdefs.h <<EOF
1943 #define $ac_tr_hdr 1
1947 echo "$ac_t""no" 1>&6
1951 for ac_func in getpagesize
1953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1954 echo "configure:1955: checking for $ac_func" >&5
1955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1961 /* System header to define __stub macros and hopefully few prototypes,
1962 which can conflict with char $ac_func(); below. */
1964 /* Override any gcc2 internal prototype to avoid an error. */
1965 /* We use char because int might match the return type of a gcc2
1966 builtin and then its argument prototype would still apply. */
1971 /* The GNU C library defines this for functions which it implements
1972 to always fail with ENOSYS. Some functions are actually named
1973 something starting with __ and the normal name is an alias. */
1974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1982 if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1984 eval "ac_cv_func_$ac_func=yes"
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1989 eval "ac_cv_func_$ac_func=no"
1994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1995 echo "$ac_t""yes" 1>&6
1996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1997 cat >> confdefs.h <<EOF
1998 #define $ac_tr_func 1
2002 echo "$ac_t""no" 1>&6
2006 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2007 echo "configure:2008: checking for working mmap" >&5
2008 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 if test "$cross_compiling" = yes; then
2012 ac_cv_func_mmap_fixed_mapped=no
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2018 /* Thanks to Mike Haertel and Jim Avera for this test.
2019 Here is a matrix of mmap possibilities:
2020 mmap private not fixed
2021 mmap private fixed at somewhere currently unmapped
2022 mmap private fixed at somewhere already mapped
2023 mmap shared not fixed
2024 mmap shared fixed at somewhere currently unmapped
2025 mmap shared fixed at somewhere already mapped
2026 For private mappings, we should verify that changes cannot be read()
2027 back from the file, nor mmap's back from the file at a different
2028 address. (There have been systems where private was not correctly
2029 implemented like the infamous i386 svr4.0, and systems where the
2030 VM page cache was not coherent with the filesystem buffer cache
2031 like early versions of FreeBSD and possibly contemporary NetBSD.)
2032 For shared mappings, we should conversely verify that changes get
2033 propogated back to all the places they're supposed to be.
2035 Grep wants private fixed already mapped.
2036 The main things grep needs to know about mmap are:
2037 * does it exist and is it safe to write into the mmap'd area
2038 * how to use it (BSD variants) */
2039 #include <sys/types.h>
2041 #include <sys/mman.h>
2043 /* This mess was copied from the GNU getpagesize.h. */
2044 #ifndef HAVE_GETPAGESIZE
2045 # ifdef HAVE_UNISTD_H
2046 # include <unistd.h>
2049 /* Assume that all systems that can run configure have sys/param.h. */
2050 # ifndef HAVE_SYS_PARAM_H
2051 # define HAVE_SYS_PARAM_H 1
2054 # ifdef _SC_PAGESIZE
2055 # define getpagesize() sysconf(_SC_PAGESIZE)
2056 # else /* no _SC_PAGESIZE */
2057 # ifdef HAVE_SYS_PARAM_H
2058 # include <sys/param.h>
2059 # ifdef EXEC_PAGESIZE
2060 # define getpagesize() EXEC_PAGESIZE
2061 # else /* no EXEC_PAGESIZE */
2063 # define getpagesize() NBPG * CLSIZE
2066 # endif /* no CLSIZE */
2067 # else /* no NBPG */
2069 # define getpagesize() NBPC
2070 # else /* no NBPC */
2072 # define getpagesize() PAGESIZE
2073 # endif /* PAGESIZE */
2074 # endif /* no NBPC */
2075 # endif /* no NBPG */
2076 # endif /* no EXEC_PAGESIZE */
2077 # else /* no HAVE_SYS_PARAM_H */
2078 # define getpagesize() 8192 /* punt totally */
2079 # endif /* no HAVE_SYS_PARAM_H */
2080 # endif /* no _SC_PAGESIZE */
2082 #endif /* no HAVE_GETPAGESIZE */
2085 extern "C" { void *malloc(unsigned); }
2093 char *data, *data2, *data3;
2097 pagesize = getpagesize();
2100 * First, make a file with some known garbage in it.
2102 data = malloc(pagesize);
2105 for (i = 0; i < pagesize; ++i)
2106 *(data + i) = rand();
2108 fd = creat("conftestmmap", 0600);
2111 if (write(fd, data, pagesize) != pagesize)
2116 * Next, try to mmap the file at a fixed address which
2117 * already has something else allocated at it. If we can,
2118 * also make sure that we see the same garbage.
2120 fd = open("conftestmmap", O_RDWR);
2123 data2 = malloc(2 * pagesize);
2126 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2127 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2128 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2130 for (i = 0; i < pagesize; ++i)
2131 if (*(data + i) != *(data2 + i))
2135 * Finally, make sure that changes to the mapped area
2136 * do not percolate back to the file as seen by read().
2137 * (This is a bug on some variants of i386 svr4.0.)
2139 for (i = 0; i < pagesize; ++i)
2140 *(data2 + i) = *(data2 + i) + 1;
2141 data3 = malloc(pagesize);
2144 if (read(fd, data3, pagesize) != pagesize)
2146 for (i = 0; i < pagesize; ++i)
2147 if (*(data + i) != *(data3 + i))
2150 unlink("conftestmmap");
2155 if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2157 ac_cv_func_mmap_fixed_mapped=yes
2159 echo "configure: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2162 ac_cv_func_mmap_fixed_mapped=no
2169 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2170 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2171 cat >> confdefs.h <<\EOF
2178 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2179 echo "configure:2180: checking whether we are using the GNU C Library 2.1 or newer" >&5
2180 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2187 #include <features.h>
2188 #ifdef __GNU_LIBRARY__
2189 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2196 egrep "Lucky GNU user" >/dev/null 2>&1; then
2198 ac_cv_gnu_library_2_1=yes
2201 ac_cv_gnu_library_2_1=no
2209 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2211 GLIBC21="$ac_cv_gnu_library_2_1"
2215 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2216 stdlib.h string.h unistd.h sys/param.h
2218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2220 echo "configure:2221: checking for $ac_hdr" >&5
2221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2230 { (eval echo configure:2231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2232 if test -z "$ac_err"; then
2234 eval "ac_cv_header_$ac_safe=yes"
2237 echo "configure: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2240 eval "ac_cv_header_$ac_safe=no"
2244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2245 echo "$ac_t""yes" 1>&6
2246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2247 cat >> confdefs.h <<EOF
2248 #define $ac_tr_hdr 1
2252 echo "$ac_t""no" 1>&6
2256 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2257 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2258 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2261 echo "configure:2262: checking for $ac_func" >&5
2262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 /* System header to define __stub macros and hopefully few prototypes,
2269 which can conflict with char $ac_func(); below. */
2271 /* Override any gcc2 internal prototype to avoid an error. */
2272 /* We use char because int might match the return type of a gcc2
2273 builtin and then its argument prototype would still apply. */
2278 /* The GNU C library defines this for functions which it implements
2279 to always fail with ENOSYS. Some functions are actually named
2280 something starting with __ and the normal name is an alias. */
2281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2289 if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2291 eval "ac_cv_func_$ac_func=yes"
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 eval "ac_cv_func_$ac_func=no"
2301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2302 echo "$ac_t""yes" 1>&6
2303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2304 cat >> confdefs.h <<EOF
2305 #define $ac_tr_func 1
2309 echo "$ac_t""no" 1>&6
2316 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2317 if test "${with_libiconv_prefix+set}" = set; then
2318 withval="$with_libiconv_prefix"
2320 for dir in `echo "$withval" | tr : ' '`; do
2321 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2322 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2328 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2329 echo "configure:2330: checking for iconv" >&5
2330 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2334 am_cv_func_iconv="no, consider installing GNU libiconv"
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2342 iconv_t cd = iconv_open("","");
2343 iconv(cd,NULL,NULL,NULL,NULL);
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2349 am_cv_func_iconv=yes
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2355 if test "$am_cv_func_iconv" != yes; then
2356 am_save_LIBS="$LIBS"
2357 LIBS="$LIBS -liconv"
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2364 iconv_t cd = iconv_open("","");
2365 iconv(cd,NULL,NULL,NULL,NULL);
2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372 am_cv_func_iconv=yes
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2378 LIBS="$am_save_LIBS"
2383 echo "$ac_t""$am_cv_func_iconv" 1>&6
2384 if test "$am_cv_func_iconv" = yes; then
2385 cat >> confdefs.h <<\EOF
2386 #define HAVE_ICONV 1
2389 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2390 echo "configure:2391: checking for iconv declaration" >&5
2391 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2405 #if defined(__STDC__) || defined(__cplusplus)
2406 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2415 if { (eval echo configure:2416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417 am_cv_proto_iconv_arg1=""
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2422 am_cv_proto_iconv_arg1="const"
2425 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);"
2428 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2429 echo "$ac_t""${ac_t:-
2430 }$am_cv_proto_iconv" 1>&6
2431 cat >> confdefs.h <<EOF
2432 #define ICONV_CONST $am_cv_proto_iconv_arg1
2437 if test "$am_cv_lib_iconv" = yes; then
2443 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2444 echo "configure:2445: checking for nl_langinfo and CODESET" >&5
2445 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2451 #include <langinfo.h>
2453 char* cs = nl_langinfo(CODESET);
2456 if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2458 am_cv_langinfo_codeset=yes
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 am_cv_langinfo_codeset=no
2469 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2470 if test $am_cv_langinfo_codeset = yes; then
2471 cat >> confdefs.h <<\EOF
2472 #define HAVE_LANGINFO_CODESET 1
2477 if test $ac_cv_header_locale_h = yes; then
2478 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2479 echo "configure:2480: checking for LC_MESSAGES" >&5
2480 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2493 am_cv_val_LC_MESSAGES=yes
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 am_cv_val_LC_MESSAGES=no
2503 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2504 if test $am_cv_val_LC_MESSAGES = yes; then
2505 cat >> confdefs.h <<\EOF
2506 #define HAVE_LC_MESSAGES 1
2511 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2512 echo "configure:2513: checking whether NLS is requested" >&5
2513 # Check whether --enable-nls or --disable-nls was given.
2514 if test "${enable_nls+set}" = set; then
2515 enableval="$enable_nls"
2521 echo "$ac_t""$USE_NLS" 1>&6
2524 BUILD_INCLUDED_LIBINTL=no
2525 USE_INCLUDED_LIBINTL=no
2528 if test "$USE_NLS" = "yes"; then
2529 cat >> confdefs.h <<\EOF
2530 #define ENABLE_NLS 1
2533 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2534 echo "configure:2535: checking whether included gettext is requested" >&5
2535 # Check whether --with-included-gettext or --without-included-gettext was given.
2536 if test "${with_included_gettext+set}" = set; then
2537 withval="$with_included_gettext"
2538 nls_cv_force_use_gnu_gettext=$withval
2540 nls_cv_force_use_gnu_gettext=no
2543 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2545 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2546 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2552 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2553 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2554 echo "configure:2555: checking for libintl.h" >&5
2555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 #include <libintl.h>
2563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2564 { (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2566 if test -z "$ac_err"; then
2568 eval "ac_cv_header_$ac_safe=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 eval "ac_cv_header_$ac_safe=no"
2578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2579 echo "$ac_t""yes" 1>&6
2580 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2581 echo "configure:2582: checking for GNU gettext in libc" >&5
2582 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #include <libintl.h>
2589 extern int _nl_msg_cat_cntr;
2591 bindtextdomain ("", "");
2592 return (int) gettext ("") + _nl_msg_cat_cntr
2595 if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2597 gt_cv_func_gnugettext1_libc=yes
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 gt_cv_func_gnugettext1_libc=no
2607 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2609 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2610 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2611 echo "configure:2612: checking for GNU gettext in libintl" >&5
2612 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 gt_save_LIBS="$LIBS"
2616 LIBS="$LIBS -lintl $LIBICONV"
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 #include <libintl.h>
2621 extern int _nl_msg_cat_cntr;
2623 bindtextdomain ("", "");
2624 return (int) gettext ("") + _nl_msg_cat_cntr
2627 if { (eval echo configure:2628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2629 gt_cv_func_gnugettext1_libintl=yes
2631 echo "configure: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2634 gt_cv_func_gnugettext1_libintl=no
2637 LIBS="$gt_save_LIBS"
2640 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2643 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2644 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2645 && test "$PACKAGE" != gettext; }; then
2646 cat >> confdefs.h <<\EOF
2647 #define HAVE_GETTEXT 1
2651 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2652 INTLLIBS="-lintl $LIBICONV"
2655 gt_save_LIBS="$LIBS"
2656 LIBS="$LIBS $INTLLIBS"
2657 for ac_func in dcgettext
2659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2660 echo "configure:2661: checking for $ac_func" >&5
2661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2667 /* System header to define __stub macros and hopefully few prototypes,
2668 which can conflict with char $ac_func(); below. */
2670 /* Override any gcc2 internal prototype to avoid an error. */
2671 /* We use char because int might match the return type of a gcc2
2672 builtin and then its argument prototype would still apply. */
2677 /* The GNU C library defines this for functions which it implements
2678 to always fail with ENOSYS. Some functions are actually named
2679 something starting with __ and the normal name is an alias. */
2680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2688 if { (eval echo configure:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2690 eval "ac_cv_func_$ac_func=yes"
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2695 eval "ac_cv_func_$ac_func=no"
2700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2703 cat >> confdefs.h <<EOF
2704 #define $ac_tr_func 1
2708 echo "$ac_t""no" 1>&6
2712 LIBS="$gt_save_LIBS"
2714 # Extract the first word of "msgfmt", so it can be a program name with args.
2715 set dummy msgfmt; ac_word=$2
2716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2717 echo "configure:2718: checking for $ac_word" >&5
2718 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2723 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2727 for ac_dir in $PATH; do
2728 test -z "$ac_dir" && ac_dir=.
2729 if test -f $ac_dir/$ac_word; then
2730 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2731 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2741 MSGFMT="$ac_cv_path_MSGFMT"
2742 if test "$MSGFMT" != ":"; then
2743 echo "$ac_t""$MSGFMT" 1>&6
2745 echo "$ac_t""no" 1>&6
2748 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2749 set dummy gmsgfmt; ac_word=$2
2750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_word" >&5
2752 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2757 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2760 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2765 for ac_dir in $ac_dummy; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2773 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2777 GMSGFMT="$ac_cv_path_GMSGFMT"
2778 if test -n "$GMSGFMT"; then
2779 echo "$ac_t""$GMSGFMT" 1>&6
2781 echo "$ac_t""no" 1>&6
2785 # Extract the first word of "xgettext", so it can be a program name with args.
2786 set dummy xgettext; 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_XGETTEXT'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2794 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2798 for ac_dir in $PATH; do
2799 test -z "$ac_dir" && ac_dir=.
2800 if test -f $ac_dir/$ac_word; then
2801 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2802 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2808 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2812 XGETTEXT="$ac_cv_path_XGETTEXT"
2813 if test "$XGETTEXT" != ":"; then
2814 echo "$ac_t""$XGETTEXT" 1>&6
2816 echo "$ac_t""no" 1>&6
2824 echo "$ac_t""no" 1>&6
2828 if test "$CATOBJEXT" = "NONE"; then
2829 nls_cv_use_gnu_gettext=yes
2833 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2834 INTLOBJS="\$(GETTOBJS)"
2835 # Extract the first word of "msgfmt", so it can be a program name with args.
2836 set dummy msgfmt; ac_word=$2
2837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2838 echo "configure:2839: checking for $ac_word" >&5
2839 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2844 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2848 for ac_dir in $PATH; do
2849 test -z "$ac_dir" && ac_dir=.
2850 if test -f $ac_dir/$ac_word; then
2851 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2852 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2858 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2862 MSGFMT="$ac_cv_path_MSGFMT"
2863 if test "$MSGFMT" != ":"; then
2864 echo "$ac_t""$MSGFMT" 1>&6
2866 echo "$ac_t""no" 1>&6
2869 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2870 set dummy gmsgfmt; ac_word=$2
2871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2872 echo "configure:2873: checking for $ac_word" >&5
2873 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2878 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2881 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2886 for ac_dir in $ac_dummy; do
2887 test -z "$ac_dir" && ac_dir=.
2888 if test -f $ac_dir/$ac_word; then
2889 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2894 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2898 GMSGFMT="$ac_cv_path_GMSGFMT"
2899 if test -n "$GMSGFMT"; then
2900 echo "$ac_t""$GMSGFMT" 1>&6
2902 echo "$ac_t""no" 1>&6
2905 # Extract the first word of "xgettext", so it can be a program name with args.
2906 set dummy xgettext; ac_word=$2
2907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2908 echo "configure:2909: checking for $ac_word" >&5
2909 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2914 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2918 for ac_dir in $PATH; do
2919 test -z "$ac_dir" && ac_dir=.
2920 if test -f $ac_dir/$ac_word; then
2921 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2922 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2928 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2932 XGETTEXT="$ac_cv_path_XGETTEXT"
2933 if test "$XGETTEXT" != ":"; then
2934 echo "$ac_t""$XGETTEXT" 1>&6
2936 echo "$ac_t""no" 1>&6
2940 BUILD_INCLUDED_LIBINTL=yes
2941 USE_INCLUDED_LIBINTL=yes
2943 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2944 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2947 if test "$GMSGFMT" != ":"; then
2948 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2951 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2956 if test "$XGETTEXT" != ":"; then
2957 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2960 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2970 if test "$PACKAGE" = gettext; then
2971 BUILD_INCLUDED_LIBINTL=yes
2974 for ac_prog in bison
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_word" >&5
2980 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 if test -n "$INTLBISON"; then
2984 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2988 for ac_dir in $ac_dummy; do
2989 test -z "$ac_dir" && ac_dir=.
2990 if test -f $ac_dir/$ac_word; then
2991 ac_cv_prog_INTLBISON="$ac_prog"
2998 INTLBISON="$ac_cv_prog_INTLBISON"
2999 if test -n "$INTLBISON"; then
3000 echo "$ac_t""$INTLBISON" 1>&6
3002 echo "$ac_t""no" 1>&6
3005 test -n "$INTLBISON" && break
3008 if test -z "$INTLBISON"; then
3011 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3012 echo "configure:3013: checking version of bison" >&5
3013 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3014 case $ac_prog_version in
3015 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3016 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3017 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3018 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3020 echo "$ac_t""$ac_prog_version" 1>&6
3022 if test $ac_verc_fail = yes; then
3026 for lang in $ALL_LINGUAS; do
3027 GMOFILES="$GMOFILES $lang.gmo"
3028 POFILES="$POFILES $lang.po"
3042 nls_cv_header_libgt=
3054 if test "x$CATOBJEXT" != "x"; then
3055 if test "x$ALL_LINGUAS" = "x"; then
3058 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3059 echo "configure:3060: checking for catalogs to be installed" >&5
3061 for presentlang in $ALL_LINGUAS; do
3063 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3064 # Use the presentlang catalog if desiredlang is
3065 # a. equal to presentlang, or
3066 # b. a variant of presentlang (because in this case,
3067 # presentlang can be used as a fallback for messages
3068 # which are not translated in the desiredlang catalog).
3069 case "$desiredlang" in
3070 "$presentlang"*) useit=yes;;
3073 if test $useit = yes; then
3074 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3077 LINGUAS=$NEW_LINGUAS
3078 echo "$ac_t""$LINGUAS" 1>&6
3081 if test -n "$LINGUAS"; then
3082 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3087 if test -n "$ac_aux_dir"; then
3088 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3090 if test -z "$MKINSTALLDIRS"; then
3091 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3095 INTL_LIBTOOL_SUFFIX_PREFIX=
3099 # Find a good install program. We prefer a C program (faster),
3100 # so one script is as good as another. But avoid the broken or
3101 # incompatible versions:
3102 # SysV /etc/install, /usr/sbin/install
3103 # SunOS /usr/etc/install
3104 # IRIX /sbin/install
3106 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3107 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3108 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3109 # ./install, which can be erroneously created by make from ./install.sh.
3110 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3111 echo "configure:3112: checking for a BSD compatible install" >&5
3112 if test -z "$INSTALL"; then
3113 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3117 for ac_dir in $PATH; do
3118 # Account for people who put trailing slashes in PATH elements.
3120 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3122 # OSF1 and SCO ODT 3.0 have their own names for install.
3123 # Don't use installbsd from OSF since it installs stuff as root
3125 for ac_prog in ginstall scoinst install; do
3126 if test -f $ac_dir/$ac_prog; then
3127 if test $ac_prog = install &&
3128 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3129 # AIX install. It has an incompatible calling convention.
3132 ac_cv_path_install="$ac_dir/$ac_prog -c"
3143 if test "${ac_cv_path_install+set}" = set; then
3144 INSTALL="$ac_cv_path_install"
3146 # As a last resort, use the slow shell script. We don't cache a
3147 # path for INSTALL within a source directory, because that will
3148 # break other packages using the cache if that directory is
3149 # removed, or if the path is relative.
3150 INSTALL="$ac_install_sh"
3153 echo "$ac_t""$INSTALL" 1>&6
3155 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3156 # It thinks the first close brace ends the variable substitution.
3157 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3159 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3164 case x"${target_os}" in
3173 save_CFLAGS="${save_CFLAGS} -pthread"
3174 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3175 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3179 save_CFLAGS="${save_CFLAGS} -pthread"
3183 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3187 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}windres; ac_word=$2
3189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3190 echo "configure:3191: checking for $ac_word" >&5
3191 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 if test -n "$WINDRES"; then
3195 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3199 for ac_dir in $ac_dummy; do
3200 test -z "$ac_dir" && ac_dir=.
3201 if test -f $ac_dir/$ac_word; then
3202 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3209 WINDRES="$ac_cv_prog_WINDRES"
3210 if test -n "$WINDRES"; then
3211 echo "$ac_t""$WINDRES" 1>&6
3213 echo "$ac_t""no" 1>&6
3217 if test -z "$ac_cv_prog_WINDRES"; then
3218 if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "windres", so it can be a program name with args.
3220 set dummy windres; ac_word=$2
3221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_word" >&5
3223 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 if test -n "$WINDRES"; then
3227 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3231 for ac_dir in $ac_dummy; do
3232 test -z "$ac_dir" && ac_dir=.
3233 if test -f $ac_dir/$ac_word; then
3234 ac_cv_prog_WINDRES="windres"
3239 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3242 WINDRES="$ac_cv_prog_WINDRES"
3243 if test -n "$WINDRES"; then
3244 echo "$ac_t""$WINDRES" 1>&6
3246 echo "$ac_t""no" 1>&6
3254 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3255 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3256 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3257 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3258 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3262 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3263 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3267 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3268 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3269 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3270 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3271 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3278 if test x"${SYS}" = xmingw32
3280 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3282 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3285 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3287 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_func" >&5
3291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 /* System header to define __stub macros and hopefully few prototypes,
3298 which can conflict with char $ac_func(); below. */
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3307 /* The GNU C library defines this for functions which it implements
3308 to always fail with ENOSYS. Some functions are actually named
3309 something starting with __ and the normal name is an alias. */
3310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3318 if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3320 eval "ac_cv_func_$ac_func=yes"
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3325 eval "ac_cv_func_$ac_func=no"
3330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3333 cat >> confdefs.h <<EOF
3334 #define $ac_tr_func 1
3338 echo "$ac_t""no" 1>&6
3343 echo $ac_n "checking for connect""... $ac_c" 1>&6
3344 echo "configure:3345: checking for connect" >&5
3345 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 /* System header to define __stub macros and hopefully few prototypes,
3352 which can conflict with char connect(); below. */
3354 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3361 /* The GNU C library defines this for functions which it implements
3362 to always fail with ENOSYS. Some functions are actually named
3363 something starting with __ and the normal name is an alias. */
3364 #if defined (__stub_connect) || defined (__stub___connect)
3372 if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3374 eval "ac_cv_func_connect=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 eval "ac_cv_func_connect=no"
3384 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3388 echo "$ac_t""no" 1>&6
3390 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3391 echo "configure:3392: checking for connect in -lsocket" >&5
3392 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 ac_save_LIBS="$LIBS"
3397 LIBS="-lsocket $LIBS"
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3410 if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412 eval "ac_cv_lib_$ac_lib_var=yes"
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3417 eval "ac_cv_lib_$ac_lib_var=no"
3420 LIBS="$ac_save_LIBS"
3423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3424 echo "$ac_t""yes" 1>&6
3425 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3426 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3429 echo "$ac_t""no" 1>&6
3434 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3435 echo "configure:3436: checking for gethostbyname" >&5
3436 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 /* System header to define __stub macros and hopefully few prototypes,
3443 which can conflict with char gethostbyname(); below. */
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3448 char gethostbyname();
3452 /* The GNU C library defines this for functions which it implements
3453 to always fail with ENOSYS. Some functions are actually named
3454 something starting with __ and the normal name is an alias. */
3455 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3465 eval "ac_cv_func_gethostbyname=yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3470 eval "ac_cv_func_gethostbyname=no"
3475 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3479 echo "$ac_t""no" 1>&6
3481 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3482 echo "configure:3483: checking for gethostbyname in -lnsl" >&5
3483 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 ac_save_LIBS="$LIBS"
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 /* Override any gcc2 internal prototype to avoid an error. */
3493 /* We use char because int might match the return type of a gcc2
3494 builtin and then its argument prototype would still apply. */
3495 char gethostbyname();
3501 if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3503 eval "ac_cv_lib_$ac_lib_var=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 eval "ac_cv_lib_$ac_lib_var=no"
3511 LIBS="$ac_save_LIBS"
3514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3515 echo "$ac_t""yes" 1>&6
3516 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3518 echo "$ac_t""no" 1>&6
3524 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3525 echo "configure:3526: checking for gethostbyname" >&5
3526 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 /* System header to define __stub macros and hopefully few prototypes,
3533 which can conflict with char gethostbyname(); below. */
3535 /* Override any gcc2 internal prototype to avoid an error. */
3536 /* We use char because int might match the return type of a gcc2
3537 builtin and then its argument prototype would still apply. */
3538 char gethostbyname();
3542 /* The GNU C library defines this for functions which it implements
3543 to always fail with ENOSYS. Some functions are actually named
3544 something starting with __ and the normal name is an alias. */
3545 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3553 if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3555 eval "ac_cv_func_gethostbyname=yes"
3557 echo "configure: failed program was:" >&5
3558 cat conftest.$ac_ext >&5
3560 eval "ac_cv_func_gethostbyname=no"
3565 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3569 echo "$ac_t""no" 1>&6
3571 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3572 echo "configure:3573: checking for gethostbyname in -lbind" >&5
3573 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3577 ac_save_LIBS="$LIBS"
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 /* Override any gcc2 internal prototype to avoid an error. */
3583 /* We use char because int might match the return type of a gcc2
3584 builtin and then its argument prototype would still apply. */
3585 char gethostbyname();
3591 if { (eval echo configure:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3593 eval "ac_cv_lib_$ac_lib_var=yes"
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3598 eval "ac_cv_lib_$ac_lib_var=no"
3601 LIBS="$ac_save_LIBS"
3604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3605 echo "$ac_t""yes" 1>&6
3606 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3608 echo "$ac_t""no" 1>&6
3614 for ac_func in nanosleep
3616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3617 echo "configure:3618: checking for $ac_func" >&5
3618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 /* System header to define __stub macros and hopefully few prototypes,
3625 which can conflict with char $ac_func(); below. */
3627 /* Override any gcc2 internal prototype to avoid an error. */
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3634 /* The GNU C library defines this for functions which it implements
3635 to always fail with ENOSYS. Some functions are actually named
3636 something starting with __ and the normal name is an alias. */
3637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3647 eval "ac_cv_func_$ac_func=yes"
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 eval "ac_cv_func_$ac_func=no"
3657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3660 cat >> confdefs.h <<EOF
3661 #define $ac_tr_func 1
3665 echo "$ac_t""no" 1>&6
3666 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3667 echo "configure:3668: checking for nanosleep in -lrt" >&5
3668 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 ac_save_LIBS="$LIBS"
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 /* We use char because int might match the return type of a gcc2
3679 builtin and then its argument prototype would still apply. */
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3688 eval "ac_cv_lib_$ac_lib_var=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3693 eval "ac_cv_lib_$ac_lib_var=no"
3696 LIBS="$ac_save_LIBS"
3699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3701 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3703 echo "$ac_t""no" 1>&6
3704 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3705 echo "configure:3706: checking for nanosleep in -lposix4" >&5
3706 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3710 ac_save_LIBS="$LIBS"
3711 LIBS="-lposix4 $LIBS"
3712 cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3715 /* Override any gcc2 internal prototype to avoid an error. */
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3724 if { (eval echo configure:3725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3726 eval "ac_cv_lib_$ac_lib_var=yes"
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3731 eval "ac_cv_lib_$ac_lib_var=no"
3734 LIBS="$ac_save_LIBS"
3737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3738 echo "$ac_t""yes" 1>&6
3739 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3741 echo "$ac_t""no" 1>&6
3751 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3752 echo "configure:3753: checking for inet_aton" >&5
3753 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3759 /* System header to define __stub macros and hopefully few prototypes,
3760 which can conflict with char inet_aton(); below. */
3762 /* Override any gcc2 internal prototype to avoid an error. */
3763 /* We use char because int might match the return type of a gcc2
3764 builtin and then its argument prototype would still apply. */
3769 /* The GNU C library defines this for functions which it implements
3770 to always fail with ENOSYS. Some functions are actually named
3771 something starting with __ and the normal name is an alias. */
3772 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3780 if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3782 eval "ac_cv_func_inet_aton=yes"
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3787 eval "ac_cv_func_inet_aton=no"
3792 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3796 echo "$ac_t""no" 1>&6
3798 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3799 echo "configure:3800: checking for inet_aton in -lresolv" >&5
3800 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 ac_save_LIBS="$LIBS"
3805 LIBS="-lresolv $LIBS"
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3818 if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3820 eval "ac_cv_lib_$ac_lib_var=yes"
3822 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3825 eval "ac_cv_lib_$ac_lib_var=no"
3828 LIBS="$ac_save_LIBS"
3831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3832 echo "$ac_t""yes" 1>&6
3833 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3835 echo "$ac_t""no" 1>&6
3841 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3842 echo "configure:3843: checking for textdomain" >&5
3843 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3846 cat > conftest.$ac_ext <<EOF
3847 #line 3848 "configure"
3848 #include "confdefs.h"
3849 /* System header to define __stub macros and hopefully few prototypes,
3850 which can conflict with char textdomain(); below. */
3852 /* Override any gcc2 internal prototype to avoid an error. */
3853 /* We use char because int might match the return type of a gcc2
3854 builtin and then its argument prototype would still apply. */
3859 /* The GNU C library defines this for functions which it implements
3860 to always fail with ENOSYS. Some functions are actually named
3861 something starting with __ and the normal name is an alias. */
3862 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3870 if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3872 eval "ac_cv_func_textdomain=yes"
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3877 eval "ac_cv_func_textdomain=no"
3882 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3886 echo "$ac_t""no" 1>&6
3888 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3889 echo "configure:3890: checking for textdomain in -lintl" >&5
3890 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3894 ac_save_LIBS="$LIBS"
3896 cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3899 /* Override any gcc2 internal prototype to avoid an error. */
3900 /* We use char because int might match the return type of a gcc2
3901 builtin and then its argument prototype would still apply. */
3908 if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3910 eval "ac_cv_lib_$ac_lib_var=yes"
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3915 eval "ac_cv_lib_$ac_lib_var=no"
3918 LIBS="$ac_save_LIBS"
3921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3923 save_LDFLAGS="${save_LDFLAGS} -lintl"
3925 echo "$ac_t""no" 1>&6
3933 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3934 echo "configure:3935: checking for getopt_long" >&5
3935 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 /* System header to define __stub macros and hopefully few prototypes,
3942 which can conflict with char getopt_long(); below. */
3944 /* Override any gcc2 internal prototype to avoid an error. */
3945 /* We use char because int might match the return type of a gcc2
3946 builtin and then its argument prototype would still apply. */
3951 /* The GNU C library defines this for functions which it implements
3952 to always fail with ENOSYS. Some functions are actually named
3953 something starting with __ and the normal name is an alias. */
3954 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3962 if { (eval echo configure:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3964 eval "ac_cv_func_getopt_long=yes"
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3969 eval "ac_cv_func_getopt_long=no"
3974 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3975 echo "$ac_t""yes" 1>&6
3976 cat >> confdefs.h <<\EOF
3977 #define HAVE_GETOPT_LONG 1
3981 echo "$ac_t""no" 1>&6
3982 # FreeBSD has a gnugetopt library for this:
3983 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3984 echo "configure:3985: checking for getopt_long in -lgnugetopt" >&5
3985 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3987 echo $ac_n "(cached) $ac_c" 1>&6
3989 ac_save_LIBS="$LIBS"
3990 LIBS="-lgnugetopt $LIBS"
3991 cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3994 /* Override any gcc2 internal prototype to avoid an error. */
3995 /* We use char because int might match the return type of a gcc2
3996 builtin and then its argument prototype would still apply. */
4003 if { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4005 eval "ac_cv_lib_$ac_lib_var=yes"
4007 echo "configure: failed program was:" >&5
4008 cat conftest.$ac_ext >&5
4010 eval "ac_cv_lib_$ac_lib_var=no"
4013 LIBS="$ac_save_LIBS"
4016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4017 echo "$ac_t""yes" 1>&6
4018 cat >> confdefs.h <<\EOF
4019 #define HAVE_GETOPT_LONG 1
4021 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4023 echo "$ac_t""no" 1>&6
4030 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4031 echo "configure:4032: checking return type of signal handlers" >&5
4032 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4038 #include <sys/types.h>
4044 extern "C" void (*signal (int, void (*)(int)))(int);
4046 void (*signal ()) ();
4053 if { (eval echo configure:4054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4055 ac_cv_type_signal=void
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4060 ac_cv_type_signal=int
4065 echo "$ac_t""$ac_cv_type_signal" 1>&6
4066 cat >> confdefs.h <<EOF
4067 #define RETSIGTYPE $ac_cv_type_signal
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4072 echo "configure:4073: checking for dlopen in -ldl" >&5
4073 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 ac_save_LIBS="$LIBS"
4079 cat > conftest.$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 eval "ac_cv_lib_$ac_lib_var=yes"
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_lib_$ac_lib_var=no"
4101 LIBS="$ac_save_LIBS"
4104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4108 echo "$ac_t""no" 1>&6
4111 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4112 echo "configure:4113: checking for cos in -lm" >&5
4113 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 ac_save_LIBS="$LIBS"
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4122 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4131 if { (eval echo configure:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4133 eval "ac_cv_lib_$ac_lib_var=yes"
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4138 eval "ac_cv_lib_$ac_lib_var=no"
4141 LIBS="$ac_save_LIBS"
4144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4145 echo "$ac_t""yes" 1>&6
4146 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4147 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4149 echo "$ac_t""no" 1>&6
4152 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4153 echo "configure:4154: checking for pow in -lm" >&5
4154 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 ac_save_LIBS="$LIBS"
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4163 /* Override any gcc2 internal prototype to avoid an error. */
4164 /* We use char because int might match the return type of a gcc2
4165 builtin and then its argument prototype would still apply. */
4172 if { (eval echo configure:4173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4174 eval "ac_cv_lib_$ac_lib_var=yes"
4176 echo "configure: failed program was:" >&5
4177 cat conftest.$ac_ext >&5
4179 eval "ac_cv_lib_$ac_lib_var=no"
4182 LIBS="$ac_save_LIBS"
4185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4186 echo "$ac_t""yes" 1>&6
4187 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4188 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4189 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4190 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4193 echo "$ac_t""no" 1>&6
4198 if test "x${THREAD_LIB}" = xerror; then
4199 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4200 echo "configure:4201: checking for pthread_attr_init in -lpthread" >&5
4201 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 ac_save_LIBS="$LIBS"
4206 LIBS="-lpthread $LIBS"
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4210 /* Override any gcc2 internal prototype to avoid an error. */
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4213 char pthread_attr_init();
4219 if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4221 eval "ac_cv_lib_$ac_lib_var=yes"
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 eval "ac_cv_lib_$ac_lib_var=no"
4229 LIBS="$ac_save_LIBS"
4232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4233 echo "$ac_t""yes" 1>&6
4234 THREAD_LIB="-lpthread"
4236 echo "$ac_t""no" 1>&6
4240 if test "x${THREAD_LIB}" = xerror; then
4241 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4242 echo "configure:4243: checking for pthread_attr_init in -lpthreads" >&5
4243 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4247 ac_save_LIBS="$LIBS"
4248 LIBS="-lpthreads $LIBS"
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 /* Override any gcc2 internal prototype to avoid an error. */
4253 /* We use char because int might match the return type of a gcc2
4254 builtin and then its argument prototype would still apply. */
4255 char pthread_attr_init();
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4263 eval "ac_cv_lib_$ac_lib_var=yes"
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 eval "ac_cv_lib_$ac_lib_var=no"
4271 LIBS="$ac_save_LIBS"
4274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 THREAD_LIB="-lpthreads"
4278 echo "$ac_t""no" 1>&6
4282 if test "x${THREAD_LIB}" = xerror; then
4283 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4284 echo "configure:4285: checking for pthread_attr_init in -lc_r" >&5
4285 ac_lib_var=`echo c_r'_'pthread_attr_init | 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. */
4297 char pthread_attr_init();
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
4320 echo "$ac_t""no" 1>&6
4324 if test "x${THREAD_LIB}" = xerror; then
4325 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4326 echo "configure:4327: checking for pthread_attr_init" >&5
4327 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 cat > conftest.$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4333 /* System header to define __stub macros and hopefully few prototypes,
4334 which can conflict with char pthread_attr_init(); below. */
4336 /* Override any gcc2 internal prototype to avoid an error. */
4337 /* We use char because int might match the return type of a gcc2
4338 builtin and then its argument prototype would still apply. */
4339 char pthread_attr_init();
4343 /* The GNU C library defines this for functions which it implements
4344 to always fail with ENOSYS. Some functions are actually named
4345 something starting with __ and the normal name is an alias. */
4346 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4349 pthread_attr_init();
4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4356 eval "ac_cv_func_pthread_attr_init=yes"
4358 echo "configure: failed program was:" >&5
4359 cat conftest.$ac_ext >&5
4361 eval "ac_cv_func_pthread_attr_init=no"
4366 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4367 echo "$ac_t""yes" 1>&6
4370 echo "$ac_t""no" 1>&6
4376 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4377 echo "configure:4378: checking for cthread_fork in -lthreads" >&5
4378 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4382 ac_save_LIBS="$LIBS"
4383 LIBS="-lthreads $LIBS"
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 /* Override any gcc2 internal prototype to avoid an error. */
4388 /* We use char because int might match the return type of a gcc2
4389 builtin and then its argument prototype would still apply. */
4390 char cthread_fork();
4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4398 eval "ac_cv_lib_$ac_lib_var=yes"
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4403 eval "ac_cv_lib_$ac_lib_var=no"
4406 LIBS="$ac_save_LIBS"
4409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 THREAD_LIB="-lthreads"
4413 echo "$ac_t""no" 1>&6
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420 #include <pthread.h>
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 egrep "pthread_cond_t" >/dev/null 2>&1; then
4426 cat >> confdefs.h <<\EOF
4427 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 #include <strings.h>
4438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439 egrep "strncasecmp" >/dev/null 2>&1; then
4442 cat >> confdefs.h <<\EOF
4443 #define STRNCASECMP_IN_STRINGS_H 1
4450 for ac_hdr in getopt.h strings.h
4452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_hdr" >&5
4455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4464 { (eval echo configure:4465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4466 if test -z "$ac_err"; then
4468 eval "ac_cv_header_$ac_safe=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4474 eval "ac_cv_header_$ac_safe=no"
4478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4481 cat >> confdefs.h <<EOF
4482 #define $ac_tr_hdr 1
4486 echo "$ac_t""no" 1>&6
4490 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4494 echo "configure:4495: checking for $ac_hdr" >&5
4495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4504 { (eval echo configure:4505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4506 if test -z "$ac_err"; then
4508 eval "ac_cv_header_$ac_safe=yes"
4511 echo "configure: failed program was:" >&5
4512 cat conftest.$ac_ext >&5
4514 eval "ac_cv_header_$ac_safe=no"
4518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4519 echo "$ac_t""yes" 1>&6
4520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4521 cat >> confdefs.h <<EOF
4522 #define $ac_tr_hdr 1
4526 echo "$ac_t""no" 1>&6
4530 for ac_hdr in dlfcn.h image.h
4532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4534 echo "configure:4535: checking for $ac_hdr" >&5
4535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4544 { (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4546 if test -z "$ac_err"; then
4548 eval "ac_cv_header_$ac_safe=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_header_$ac_safe=no"
4558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4561 cat >> confdefs.h <<EOF
4562 #define $ac_tr_hdr 1
4566 echo "$ac_t""no" 1>&6
4570 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4574 echo "configure:4575: checking for $ac_hdr" >&5
4575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4584 { (eval echo configure:4585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4586 if test -z "$ac_err"; then
4588 eval "ac_cv_header_$ac_safe=yes"
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4594 eval "ac_cv_header_$ac_safe=no"
4598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4601 cat >> confdefs.h <<EOF
4602 #define $ac_tr_hdr 1
4606 echo "$ac_t""no" 1>&6
4610 for ac_hdr in machine/param.h sys/shm.h
4612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_hdr" >&5
4615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624 { (eval echo configure:4625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4626 if test -z "$ac_err"; then
4628 eval "ac_cv_header_$ac_safe=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4634 eval "ac_cv_header_$ac_safe=no"
4638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4641 cat >> confdefs.h <<EOF
4642 #define $ac_tr_hdr 1
4646 echo "$ac_t""no" 1>&6
4650 for ac_hdr in linux/version.h
4652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4654 echo "configure:4655: checking for $ac_hdr" >&5
4655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4664 { (eval echo configure:4665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4666 if test -z "$ac_err"; then
4668 eval "ac_cv_header_$ac_safe=yes"
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4674 eval "ac_cv_header_$ac_safe=no"
4678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4679 echo "$ac_t""yes" 1>&6
4680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4681 cat >> confdefs.h <<EOF
4682 #define $ac_tr_hdr 1
4686 echo "$ac_t""no" 1>&6
4691 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4692 echo "configure:4693: checking whether time.h and sys/time.h may both be included" >&5
4693 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 #include <sys/types.h>
4700 #include <sys/time.h>
4706 if { (eval echo configure:4707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4708 ac_cv_header_time=yes
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 ac_cv_header_time=no
4718 echo "$ac_t""$ac_cv_header_time" 1>&6
4719 if test $ac_cv_header_time = yes; then
4720 cat >> confdefs.h <<\EOF
4721 #define TIME_WITH_SYS_TIME 1
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733 egrep "nanosleep" >/dev/null 2>&1; then
4736 cat >> confdefs.h <<\EOF
4737 #define HAVE_DECL_NANOSLEEP 1
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4748 #include <sys/time.h>
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751 egrep "timespec" >/dev/null 2>&1; then
4754 cat >> confdefs.h <<\EOF
4755 #define HAVE_STRUCT_TIMESPEC 1
4763 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4767 echo "configure:4768: checking for $ac_hdr" >&5
4768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4777 { (eval echo configure:4778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4779 if test -z "$ac_err"; then
4781 eval "ac_cv_header_$ac_safe=yes"
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 eval "ac_cv_header_$ac_safe=no"
4791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4794 cat >> confdefs.h <<EOF
4795 #define $ac_tr_hdr 1
4799 echo "$ac_t""no" 1>&6
4804 if test x$SYS != xmingw32
4806 if test x$x_includes = xNONE; then
4807 x_includes=/usr/X11R6/include
4809 if test x$x_libraries = xNONE; then
4810 x_libraries=/usr/X11R6/lib
4812 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4813 for ac_hdr in X11/extensions/dpms.h
4815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4817 echo "configure:4818: checking for $ac_hdr" >&5
4818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4821 cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4827 { (eval echo configure:4828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4829 if test -z "$ac_err"; then
4831 eval "ac_cv_header_$ac_safe=yes"
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4837 eval "ac_cv_header_$ac_safe=no"
4841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4842 echo "$ac_t""yes" 1>&6
4843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4844 cat >> confdefs.h <<EOF
4845 #define $ac_tr_hdr 1
4848 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4851 #include <X11/extensions/dpms.h>
4853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4854 egrep "DPMSInfo" >/dev/null 2>&1; then
4857 cat >> confdefs.h <<\EOF
4858 #define DPMSINFO_IN_DPMS_H 1
4867 echo "$ac_t""no" 1>&6
4871 CPPFLAGS="$save_CPPFLAGS"
4874 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4875 echo "configure:4876: checking for ntohl in sys/param.h" >&5
4876 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 CFLAGS="${save_CFLAGS} -Wall -Werror"
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 #include <sys/param.h>
4885 void foo() { int meuh; ntohl(meuh); }
4888 if { (eval echo configure:4889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4890 ac_cv_c_ntohl_sys_param_h=yes
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 ac_cv_c_ntohl_sys_param_h=no
4900 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4901 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4902 cat >> confdefs.h <<\EOF
4903 #define NTOHL_IN_SYS_PARAM_H 1
4908 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4909 echo "configure:4910: checking if \$CC accepts -finline-limit" >&5
4910 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4914 cat > conftest.$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4922 if { (eval echo configure:4923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4924 ac_cv_c_inline_limit=yes
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 ac_cv_c_inline_limit=no
4934 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4935 if test x"$ac_cv_c_inline_limit" != x"no"; then
4936 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4939 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4940 echo "configure:4941: checking if \$CC accepts -Wall -Winline" >&5
4941 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4944 CFLAGS="${save_CFLAGS} -Wall -Winline"
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4953 if { (eval echo configure:4954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4955 ac_cv_c_Wall_Winline=yes
4957 echo "configure: failed program was:" >&5
4958 cat conftest.$ac_ext >&5
4960 ac_cv_c_Wall_Winline=no
4965 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4966 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4967 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4969 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4970 echo "configure:4971: checking if \$CC accepts -wall -winline" >&5
4971 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4974 CFLAGS="${save_CFLAGS} -wall -winline"
4975 cat > conftest.$ac_ext <<EOF
4976 #line 4977 "configure"
4977 #include "confdefs.h"
4983 if { (eval echo configure:4984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4985 ac_cv_c_wall_winline=yes
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 ac_cv_c_wall_winline=no
4995 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4996 if test x"$ac_cv_c_wall_winline" != x"no"; then
4997 save_CFLAGS="${save_CFLAGS} -wall -winline"
5001 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5002 echo "configure:5003: checking if \$CC accepts -pipe" >&5
5003 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 CFLAGS="${save_CFLAGS} -pipe"
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5015 if { (eval echo configure:5016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5019 echo "configure: failed program was:" >&5
5020 cat conftest.$ac_ext >&5
5027 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5028 if test x"$ac_cv_c_pipe" != x"no"; then
5029 save_CFLAGS="${save_CFLAGS} -pipe"
5032 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5033 echo "configure:5034: checking if \$CC accepts -O3" >&5
5034 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 CFLAGS="${save_CFLAGS} -O3"
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5046 if { (eval echo configure:5047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5058 echo "$ac_t""$ac_cv_c_o3" 1>&6
5059 if test x"$ac_cv_c_o3" != x"no"; then
5060 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5062 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5063 echo "configure:5064: checking if \$CC accepts -O2" >&5
5064 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 CFLAGS="${save_CFLAGS} -O2"
5068 cat > conftest.$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5076 if { (eval echo configure:5077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5088 echo "$ac_t""$ac_cv_c_o2" 1>&6
5089 if test x"$ac_cv_c_o2" != x"no"; then
5090 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5092 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5093 echo "configure:5094: checking if \$CC accepts -O" >&5
5094 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 CFLAGS="${save_CFLAGS} -O"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5106 if { (eval echo configure:5107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5118 echo "$ac_t""$ac_cv_c_o" 1>&6
5119 if test x"$ac_cv_c_o" != x"no"; then
5120 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5125 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5126 echo "configure:5127: checking if \$CC accepts -ffast-math" >&5
5127 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5128 echo $ac_n "(cached) $ac_c" 1>&6
5130 CFLAGS="${save_CFLAGS} -ffast-math"
5131 cat > conftest.$ac_ext <<EOF
5132 #line 5133 "configure"
5133 #include "confdefs.h"
5139 if { (eval echo configure:5140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5141 ac_cv_c_fast_math=yes
5143 echo "configure: failed program was:" >&5
5144 cat conftest.$ac_ext >&5
5146 ac_cv_c_fast_math=no
5151 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5152 if test x"$ac_cv_c_fast_math" != x"no"; then
5153 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5156 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5157 echo "configure:5158: checking if \$CC accepts -funroll-loops" >&5
5158 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5161 CFLAGS="${save_CFLAGS} -funroll-loops"
5162 cat > conftest.$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5170 if { (eval echo configure:5171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5172 ac_cv_c_unroll_loops=yes
5174 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5177 ac_cv_c_unroll_loops=no
5182 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5183 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5184 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5187 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5188 echo "configure:5189: checking if \$CC accepts -fomit-frame-pointer" >&5
5189 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5192 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5201 if { (eval echo configure:5202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5203 ac_cv_c_omit_frame_pointer=yes
5205 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5208 ac_cv_c_omit_frame_pointer=no
5213 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5214 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5215 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5218 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5219 echo "configure:5220: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5220 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5223 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5224 cat > conftest.$ac_ext <<EOF
5225 #line 5226 "configure"
5226 #include "confdefs.h"
5232 if { (eval echo configure:5233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5236 echo "configure: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5244 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5245 if test x"$ac_cv_ld_darwin" != x"no"; then
5246 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5249 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5250 echo "configure:5251: checking if \$CC accepts -shared" >&5
5251 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5254 CFLAGS="${save_CFLAGS} -shared"
5255 cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5263 if { (eval echo configure:5264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5265 ac_cv_ld_plugins=yes
5267 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5275 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5276 if test x"$ac_cv_ld_plugins" != x"no"; then
5277 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5280 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5281 echo "configure:5282: checking for variadic cpp macros" >&5
5282 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5285 CFLAGS="${save_CFLAGS}"
5286 cat > conftest.$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5290 #define a(b,c...) printf(b,##c)
5292 a("foo");a("%s","bar");a("%s%s","baz","quux");
5295 if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5297 ac_cv_cpp_variadic_macros=yes
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5302 ac_cv_cpp_variadic_macros=no
5307 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5308 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5309 cat >> confdefs.h <<\EOF
5310 #define HAVE_VARIADIC_MACROS 1
5315 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5316 echo "configure:5317: checking __attribute__ ((aligned ())) support" >&5
5317 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5320 ac_cv_c_attribute_aligned=0
5321 CFLAGS="${save_CFLAGS} -Werror"
5322 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5328 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5331 if { (eval echo configure:5332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5333 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5342 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5343 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5344 cat >> confdefs.h <<EOF
5345 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5350 CFLAGS="${save_CFLAGS}"
5351 CPPFLAGS="${save_CPPFLAGS}"
5352 LDFLAGS="${save_LDFLAGS}"
5354 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5355 echo "configure:5356: checking for boolean_t in sys/types.h" >&5
5356 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 cat > conftest.$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5362 #include <sys/types.h>
5367 if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5369 ac_cv_c_boolean_t_sys_types_h=yes
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5374 ac_cv_c_boolean_t_sys_types_h=no
5379 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5380 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5381 cat >> confdefs.h <<\EOF
5382 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5387 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5388 echo "configure:5389: checking for boolean_t in pthread.h" >&5
5389 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 #include <pthread.h>
5400 if { (eval echo configure:5401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5402 ac_cv_c_boolean_t_pthread_h=yes
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5407 ac_cv_c_boolean_t_pthread_h=no
5412 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5413 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5414 cat >> confdefs.h <<\EOF
5415 #define BOOLEAN_T_IN_PTHREAD_H 1
5420 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5421 echo "configure:5422: checking for boolean_t in cthreads.h" >&5
5422 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 #include <cthreads.h>
5433 if { (eval echo configure:5434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5435 ac_cv_c_boolean_t_cthreads_h=yes
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 ac_cv_c_boolean_t_cthreads_h=no
5445 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5446 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5447 cat >> confdefs.h <<\EOF
5448 #define BOOLEAN_T_IN_CTHREADS_H 1
5453 case x"${target_cpu}" in
5458 ARCH="${target_cpu}"
5462 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5463 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone fx_scope"
5465 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5466 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5467 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5468 SSE_MODULES="imdctsse downmixsse"
5469 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5471 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5472 echo "configure:5473: checking if \$CC groks MMX inline assembly" >&5
5473 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5476 cat > conftest.$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5481 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5484 if { (eval echo configure:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5486 ac_cv_mmx_inline=yes
5488 echo "configure: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5496 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5497 if test x"$ac_cv_mmx_inline" != x"no"; then
5498 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5501 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5502 echo "configure:5503: checking if \$CC groks MMX EXT inline assembly" >&5
5503 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5504 echo $ac_n "(cached) $ac_c" 1>&6
5506 cat > conftest.$ac_ext <<EOF
5507 #line 5508 "configure"
5508 #include "confdefs.h"
5511 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5514 if { (eval echo configure:5515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5516 ac_cv_mmxext_inline=yes
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5521 ac_cv_mmxext_inline=no
5526 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5527 if test x"$ac_cv_mmxext_inline" != x"no"; then
5528 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5531 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5532 echo "configure:5533: checking if \$CC groks 3D Now! inline assembly" >&5
5533 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5541 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5544 if { (eval echo configure:5545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5546 ac_cv_3dnow_inline=yes
5548 echo "configure: failed program was:" >&5
5549 cat conftest.$ac_ext >&5
5551 ac_cv_3dnow_inline=no
5556 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5557 if test x"$ac_cv_3dnow_inline" != x"no"; then
5558 cat >> confdefs.h <<\EOF
5559 #define CAN_COMPILE_3DNOW 1
5562 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5565 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5566 echo "configure:5567: checking if \$CC groks SSE inline assembly" >&5
5567 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5570 cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5575 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5578 if { (eval echo configure:5579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5580 ac_cv_sse_inline=yes
5582 echo "configure: failed program was:" >&5
5583 cat conftest.$ac_ext >&5
5590 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5591 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5592 cat >> confdefs.h <<\EOF
5593 #define CAN_COMPILE_SSE 1
5596 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5599 # don't try to grok altivec with native mingw32 it doesn't work right now
5600 # we should be able to remove this test with future versions of mingw32
5601 if test x$SYS != xmingw32; then
5602 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5603 echo "configure:5604: checking if \$CC groks Altivec inline assembly" >&5
5604 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5605 echo $ac_n "(cached) $ac_c" 1>&6
5607 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5612 asm volatile("vperm 0,1,2,3");
5615 if { (eval echo configure:5616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5617 ac_cv_altivec_inline=yes
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5623 CFLAGS="$CFLAGS -Wa,-m7400"
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5629 asm volatile("vperm 0,1,2,3");
5632 if { (eval echo configure:5633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5634 ac_cv_altivec_inline="-Wa,-m7400"
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5639 ac_cv_altivec_inline=no
5648 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5649 if test x"$ac_cv_altivec_inline" != x"no"; then
5650 cat >> confdefs.h <<\EOF
5651 #define CAN_COMPILE_ALTIVEC 1
5654 if test x"$ac_cv_altivec_inline" != x"yes"; then
5655 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5656 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5657 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5658 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5660 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5663 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5664 echo "configure:5665: checking if \$CC groks Altivec C extensions" >&5
5665 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5666 echo $ac_n "(cached) $ac_c" 1>&6
5669 CFLAGS="$CFLAGS -faltivec"
5671 cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5676 vec_mtvscr((vector unsigned int)(0));
5679 if { (eval echo configure:5680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5681 ac_cv_c_altivec=-faltivec
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5688 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5689 cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5694 vec_mtvscr((vector unsigned int)(0));
5697 if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5699 ac_cv_c_altivec="-fvec"
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5714 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5715 if test x"$ac_cv_c_altivec" != x"no"; then
5716 cat >> confdefs.h <<\EOF
5717 #define CAN_COMPILE_C_ALTIVEC 1
5720 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5721 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5722 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5723 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5724 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5727 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5728 echo "configure:5729: checking if linker needs -framework vecLib" >&5
5729 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5730 echo $ac_n "(cached) $ac_c" 1>&6
5732 save_LDFLAGS=$LDFLAGS
5733 LDFLAGS="$LDFLAGS -framework vecLib"
5734 cat > conftest.$ac_ext <<EOF
5735 #line 5736 "configure"
5736 #include "confdefs.h"
5742 if { (eval echo configure:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5744 ac_cv_ld_altivec=yes
5746 echo "configure: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5752 LDFLAGS=$save_LDFLAGS
5756 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5757 if test x"$ac_cv_ld_altivec" != x"no"; then
5758 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5759 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5760 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5761 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5766 # Check whether --with- or --without- was given.
5767 if test "${with_+set}" = set; then
5772 # Check whether --with- or --without- was given.
5773 if test "${with_+set}" = set; then
5779 # Check whether --with-tuning or --without-tuning was given.
5780 if test "${with_tuning+set}" = set; then
5781 withval="$with_tuning"
5785 if test "x$with_tuning" != "x"; then
5786 TUNING="$with_tuning"
5788 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5790 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5794 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5797 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5800 # Check whether --enable-optimizations or --disable-optimizations was given.
5801 if test "${enable_optimizations+set}" = set; then
5802 enableval="$enable_optimizations"
5803 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5809 # Check whether --enable-altivec or --disable-altivec was given.
5810 if test "${enable_altivec+set}" = set; then
5811 enableval="$enable_altivec"
5812 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5813 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5815 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5816 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5821 # Check whether --enable-debug or --disable-debug was given.
5822 if test "${enable_debug+set}" = set; then
5823 enableval="$enable_debug"
5824 if test x$enable_debug = xyes; then DEBUG=1; fi
5829 # Check whether --enable-release or --disable-release was given.
5830 if test "${enable_release+set}" = set; then
5831 enableval="$enable_release"
5832 if test x$enable_release = xyes; then RELEASE=1; fi
5834 VERSION="${VERSION}_`date +%Y-%m-%d`"
5839 # Check whether --with- or --without- was given.
5840 if test "${with_+set}" = set; then
5846 # Check whether --enable-dvd or --disable-dvd was given.
5847 if test "${enable_dvd+set}" = set; then
5848 enableval="$enable_dvd"
5852 if test "x$enable_dvd" != "xno"
5854 # Check whether --with-dvdcss or --without-dvdcss was given.
5855 if test "${with_dvdcss+set}" = set; then
5856 withval="$with_dvdcss"
5860 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5861 if test "${with_dvdcss_tree+set}" = set; then
5862 withval="$with_dvdcss_tree"
5866 case "x$with_dvdcss" in
5868 if test "x$with_dvdcss_tree" = x
5870 for ac_hdr in dvdcss/dvdcss.h
5872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_hdr" >&5
5875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5884 { (eval echo configure:5885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5886 if test -z "$ac_err"; then
5888 eval "ac_cv_header_$ac_safe=yes"
5891 echo "configure: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5894 eval "ac_cv_header_$ac_safe=no"
5898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5901 cat >> confdefs.h <<EOF
5902 #define $ac_tr_hdr 1
5904 PLUGINS="${PLUGINS} dvd"
5905 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5907 echo "$ac_t""no" 1>&6
5908 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
5909 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5914 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5915 echo "configure:5916: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5916 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5917 if test "x$real_dvdcss_tree" = x
5919 echo "$ac_t""no" 1>&6
5920 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5922 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5924 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5925 BUILTINS="${BUILTINS} dvd"
5926 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5927 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5929 echo "$ac_t""no" 1>&6
5930 { 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; }
5935 PLUGINS="${PLUGINS} dvd"
5936 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5937 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5940 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5941 echo "configure:5942: checking for dvdcss headers in ${with_dvdcss}" >&5
5942 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5944 echo "$ac_t""yes" 1>&6
5945 PLUGINS="${PLUGINS} dvd"
5946 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5947 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5949 echo "$ac_t""no" 1>&6
5950 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5956 # Check whether --enable-dvdread or --disable-dvdread was given.
5957 if test "${enable_dvdread+set}" = set; then
5958 enableval="$enable_dvdread"
5962 if test "x$enable_dvdread" != "xno"
5964 # Check whether --with-dvdread or --without-dvdread was given.
5965 if test "${with_dvdread+set}" = set; then
5966 withval="$with_dvdread"
5970 if test "x$with_dvdread" = x
5975 test_LDFLAGS="-L${with_dvdread}/lib"
5976 test_CFLAGS="-I${with_dvdread}/include"
5978 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5979 for ac_hdr in dvdread/dvd_reader.h
5981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5983 echo "configure:5984: checking for $ac_hdr" >&5
5984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5987 cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5993 { (eval echo configure:5994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5995 if test -z "$ac_err"; then
5997 eval "ac_cv_header_$ac_safe=yes"
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6003 eval "ac_cv_header_$ac_safe=no"
6007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6008 echo "$ac_t""yes" 1>&6
6009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6010 cat >> confdefs.h <<EOF
6011 #define $ac_tr_hdr 1
6014 cat > conftest.$ac_ext <<EOF
6015 #line 6016 "configure"
6016 #include "confdefs.h"
6017 #include <dvdread/dvd_reader.h>
6019 void foo() { int i=DVD_VIDEO_LB_LEN; }
6022 if { (eval echo configure:6023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6025 PLUGINS="${PLUGINS} dvdread"
6026 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6027 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6034 if test "x$enable_dvdread" != x
6036 { 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; }
6043 echo "$ac_t""no" 1>&6
6044 if test "x$enable_dvdread" != x
6046 if test "x$with_dvdread" != x
6048 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6050 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6057 CPPFLAGS="$save_CPPFLAGS"
6060 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6061 if test "${enable_dvbpsi+set}" = set; then
6062 enableval="$enable_dvbpsi"
6066 if test "x$enable_dvbpsi" != "xno"
6068 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6069 if test "${with_dvbpsi+set}" = set; then
6070 withval="$with_dvbpsi"
6074 if test "x$with_dvbpsi" = x
6079 test_LDFLAGS="-L${with_dvbpsi}/lib"
6080 test_CFLAGS="-I${with_dvbpsi}/include"
6082 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6083 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6084 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6085 echo "configure:6086: checking for dvbpsi/dr.h" >&5
6086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6089 cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6092 #include <dvbpsi/dr.h>
6094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6095 { (eval echo configure:6096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6097 if test -z "$ac_err"; then
6099 eval "ac_cv_header_$ac_safe=yes"
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6105 eval "ac_cv_header_$ac_safe=no"
6109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6110 echo "$ac_t""yes" 1>&6
6112 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6113 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6114 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6117 echo "$ac_t""no" 1>&6
6119 if test "x$enable_dvbpsi" != x
6121 { 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; }
6126 CPPFLAGS="$save_CPPFLAGS"
6129 # Check whether --enable-vcd or --disable-vcd was given.
6130 if test "${enable_vcd+set}" = set; then
6131 enableval="$enable_vcd"
6136 if test x$enable_vcd != xno
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6141 #include <linux/cdrom.h>
6143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6144 egrep "cdrom_msf0" >/dev/null 2>&1; then
6147 PLUGINS="${PLUGINS} vcd"
6153 cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6156 #include <sys/cdio.h>
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159 egrep "ioc_toc_header " >/dev/null 2>&1; then
6162 PLUGINS="${PLUGINS} vcd"
6163 cat >> confdefs.h <<\EOF
6164 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6172 if test "x${SYS}" = "xbsdi"
6174 PLUGINS="${PLUGINS} vcd"
6177 if test "x${SYS}" = "xdarwin"
6179 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6180 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6184 # Check whether --enable-satellite or --disable-satellite was given.
6185 if test "${enable_satellite+set}" = set; then
6186 enableval="$enable_satellite"
6187 if test x$enable_satellite = xyes
6189 PLUGINS="${PLUGINS} satellite"
6194 if test x$SYS != xnto
6196 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6197 echo "configure:6198: checking for inet_pton" >&5
6198 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 /* System header to define __stub macros and hopefully few prototypes,
6205 which can conflict with char inet_pton(); below. */
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6214 /* The GNU C library defines this for functions which it implements
6215 to always fail with ENOSYS. Some functions are actually named
6216 something starting with __ and the normal name is an alias. */
6217 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6227 eval "ac_cv_func_inet_pton=yes"
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6232 eval "ac_cv_func_inet_pton=no"
6237 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 PLUGINS="${PLUGINS} ipv6"
6241 echo "$ac_t""no" 1>&6
6246 # Check whether --enable-avi or --disable-avi was given.
6247 if test "${enable_avi+set}" = set; then
6248 enableval="$enable_avi"
6252 if test x$enable_avi != xno
6254 PLUGINS="${PLUGINS} avi"
6258 # Check whether --with- or --without- was given.
6259 if test "${with_+set}" = set; then
6265 # Check whether --enable-mad or --disable-mad was given.
6266 if test "${enable_mad+set}" = set; then
6267 enableval="$enable_mad"
6271 if test x$enable_mad = xyes
6273 # Check whether --with-mad or --without-mad was given.
6274 if test "${with_mad+set}" = set; then
6279 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6281 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6282 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6285 # Check whether --with-mad-tree or --without-mad-tree was given.
6286 if test "${with_mad_tree+set}" = set; then
6287 withval="$with_mad_tree"
6291 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6293 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6294 if test "x$real_mad_tree" = x
6296 echo "$ac_t""no" 1>&6
6297 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6299 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6300 echo "configure:6301: checking for mad.h in ${real_mad_tree}/libmad" >&5
6301 if test -f ${real_mad_tree}/libmad/mad.h
6303 echo "$ac_t""yes" 1>&6
6304 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6305 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6306 save_LDFLAGS=$LDFLAGS
6307 LDFLAGS=$mad_LDFLAGS
6308 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6309 echo "configure:6310: checking for mad_bit_init in -lmad" >&5
6310 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6314 ac_save_LIBS="$LIBS"
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6322 char mad_bit_init();
6328 if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330 eval "ac_cv_lib_$ac_lib_var=yes"
6332 echo "configure: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 eval "ac_cv_lib_$ac_lib_var=no"
6338 LIBS="$ac_save_LIBS"
6341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6
6344 BUILTINS="${BUILTINS} mad"
6345 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6348 echo "$ac_t""no" 1>&6
6349 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6353 LDFLAGS=$save_LDFLAGS
6355 echo "$ac_t""no" 1>&6
6356 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6360 save_LDFLAGS=$LDFLAGS
6361 CFLAGS="$CFLAGS $mad_CFLAGS"
6362 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6367 echo "configure:6368: checking for $ac_hdr" >&5
6368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6369 echo $ac_n "(cached) $ac_c" 1>&6
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6377 { (eval echo configure:6378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6379 if test -z "$ac_err"; then
6381 eval "ac_cv_header_$ac_safe=yes"
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 eval "ac_cv_header_$ac_safe=no"
6391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6392 echo "$ac_t""yes" 1>&6
6393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6394 cat >> confdefs.h <<EOF
6395 #define $ac_tr_hdr 1
6399 echo "$ac_t""no" 1>&6
6400 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6404 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6405 echo "configure:6406: checking for mad_bit_init in -lmad" >&5
6406 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6410 ac_save_LIBS="$LIBS"
6412 cat > conftest.$ac_ext <<EOF
6413 #line 6414 "configure"
6414 #include "confdefs.h"
6415 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6418 char mad_bit_init();
6424 if { (eval echo configure:6425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6426 eval "ac_cv_lib_$ac_lib_var=yes"
6428 echo "configure: failed program was:" >&5
6429 cat conftest.$ac_ext >&5
6431 eval "ac_cv_lib_$ac_lib_var=no"
6434 LIBS="$ac_save_LIBS"
6437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6438 echo "$ac_t""yes" 1>&6
6439 PLUGINS="${PLUGINS} mad"
6440 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6442 echo "$ac_t""no" 1>&6
6443 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6447 LDFLAGS=$save_LDFLAGS
6451 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6452 if test "${enable_ffmpeg+set}" = set; then
6453 enableval="$enable_ffmpeg"
6457 if test "x$enable_ffmpeg" = "xyes"
6459 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6460 if test "${with_ffmpeg_tree+set}" = set; then
6461 withval="$with_ffmpeg_tree"
6465 if test "x$with_ffmpeg_tree" = x
6467 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&2; exit 1; }
6469 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6470 echo "configure:6471: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6471 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6472 if test "x$real_ffmpeg_tree" = x
6474 echo "$ac_t""no" 1>&6
6475 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6477 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6479 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6480 BUILTINS="${BUILTINS} ffmpeg"
6481 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6482 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6484 echo "$ac_t""no" 1>&6
6485 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6491 if test x$SYS = xbeos
6493 PLUGINS="${PLUGINS} beos"
6496 # Check whether --enable-a52 or --disable-a52 was given.
6497 if test "${enable_a52+set}" = set; then
6498 enableval="$enable_a52"
6502 if test "x$enable_a52" != "xno"
6504 # Check whether --with-a52-tree or --without-a52-tree was given.
6505 if test "${with_a52_tree+set}" = set; then
6506 withval="$with_a52_tree"
6510 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6512 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6513 if test "x$real_a52_tree" = x
6515 echo "$ac_t""no" 1>&6
6516 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6518 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6519 echo "configure:6520: checking for a52.h in ${real_a52_tree}/include" >&5
6520 if test -f ${real_a52_tree}/include/a52.h
6522 echo "$ac_t""yes" 1>&6
6523 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6524 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6525 save_LDFLAGS=$LDFLAGS
6526 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6527 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6528 echo "configure:6529: checking for a52_free in -la52" >&5
6529 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6533 ac_save_LIBS="$LIBS"
6534 LIBS="-la52 -lm $LIBS"
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 /* Override any gcc2 internal prototype to avoid an error. */
6539 /* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6547 if { (eval echo configure:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6549 eval "ac_cv_lib_$ac_lib_var=yes"
6551 echo "configure: failed program was:" >&5
6552 cat conftest.$ac_ext >&5
6554 eval "ac_cv_lib_$ac_lib_var=no"
6557 LIBS="$ac_save_LIBS"
6560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6561 echo "$ac_t""yes" 1>&6
6563 BUILTINS="${BUILTINS} a52"
6564 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6565 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6568 echo "$ac_t""no" 1>&6
6570 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6572 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6574 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6579 LDFLAGS=$save_LDFLAGS
6581 echo "$ac_t""no" 1>&6
6582 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6584 else for ac_hdr in a52dec/a52.h
6586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6588 echo "configure:6589: checking for $ac_hdr" >&5
6589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6598 { (eval echo configure:6599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6600 if test -z "$ac_err"; then
6602 eval "ac_cv_header_$ac_safe=yes"
6605 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6608 eval "ac_cv_header_$ac_safe=no"
6612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6613 echo "$ac_t""yes" 1>&6
6614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6615 cat >> confdefs.h <<EOF
6616 #define $ac_tr_hdr 1
6619 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6620 echo "configure:6621: checking for a52_free in -la52" >&5
6621 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6625 ac_save_LIBS="$LIBS"
6626 LIBS="-la52 -lm $LIBS"
6627 cat > conftest.$ac_ext <<EOF
6628 #line 6629 "configure"
6629 #include "confdefs.h"
6630 /* Override any gcc2 internal prototype to avoid an error. */
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6639 if { (eval echo configure:6640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6641 eval "ac_cv_lib_$ac_lib_var=yes"
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6646 eval "ac_cv_lib_$ac_lib_var=no"
6649 LIBS="$ac_save_LIBS"
6652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6653 echo "$ac_t""yes" 1>&6
6655 BUILTINS="${BUILTINS} a52"
6656 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6657 a52_CFLAGS="${a52_CFLAGS}"
6660 echo "$ac_t""no" 1>&6
6665 echo "$ac_t""no" 1>&6
6672 # Check whether --enable-vorbis or --disable-vorbis was given.
6673 if test "${enable_vorbis+set}" = set; then
6674 enableval="$enable_vorbis"
6678 if test "x$enable_vorbis" != "xno"
6680 for ac_hdr in ogg/ogg.h
6682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6684 echo "configure:6685: checking for $ac_hdr" >&5
6685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6688 cat > conftest.$ac_ext <<EOF
6689 #line 6690 "configure"
6690 #include "confdefs.h"
6693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6694 { (eval echo configure:6695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6696 if test -z "$ac_err"; then
6698 eval "ac_cv_header_$ac_safe=yes"
6701 echo "configure: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6704 eval "ac_cv_header_$ac_safe=no"
6708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6709 echo "$ac_t""yes" 1>&6
6710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6711 cat >> confdefs.h <<EOF
6712 #define $ac_tr_hdr 1
6715 #PLUGINS="${PLUGINS} vorbis"
6716 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6719 echo "$ac_t""no" 1>&6
6726 # Check whether --with- or --without- was given.
6727 if test "${with_+set}" = set; then
6733 # Check whether --enable-x11 or --disable-x11 was given.
6734 if test "${enable_x11+set}" = set; then
6735 enableval="$enable_x11"
6739 if test x$enable_x11 != xno &&
6740 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6741 if test x$x_includes = xNONE; then
6742 x_includes=/usr/X11R6/include
6744 if test x$x_libraries = xNONE; then
6745 x_libraries=/usr/X11R6/lib
6747 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6748 for ac_hdr in X11/Xlib.h
6750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6752 echo "configure:6753: checking for $ac_hdr" >&5
6753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6756 cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6762 { (eval echo configure:6763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6764 if test -z "$ac_err"; then
6766 eval "ac_cv_header_$ac_safe=yes"
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 eval "ac_cv_header_$ac_safe=no"
6776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6777 echo "$ac_t""yes" 1>&6
6778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6779 cat >> confdefs.h <<EOF
6780 #define $ac_tr_hdr 1
6783 PLUGINS="${PLUGINS} x11"
6784 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6785 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6788 echo "$ac_t""no" 1>&6
6792 CPPFLAGS="$save_CPPFLAGS"
6795 # Check whether --enable-xvideo or --disable-xvideo was given.
6796 if test "${enable_xvideo+set}" = set; then
6797 enableval="$enable_xvideo"
6801 if test x$enable_xvideo != xno &&
6802 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6803 if test x$x_includes = xNONE; then
6804 x_includes=/usr/X11R6/include
6806 if test x$x_libraries = xNONE; then
6807 x_libraries=/usr/X11R6/lib
6809 save_CPPFLAGS=$CPPFLAGS
6810 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6811 for ac_hdr in X11/extensions/Xv.h
6813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6815 echo "configure:6816: checking for $ac_hdr" >&5
6816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6825 { (eval echo configure:6826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6827 if test -z "$ac_err"; then
6829 eval "ac_cv_header_$ac_safe=yes"
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6835 eval "ac_cv_header_$ac_safe=no"
6839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6840 echo "$ac_t""yes" 1>&6
6841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6842 cat >> confdefs.h <<EOF
6843 #define $ac_tr_hdr 1
6847 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6848 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6849 echo "configure:6850: checking for XvSetPortAttribute in -lXv_pic" >&5
6850 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6852 echo $ac_n "(cached) $ac_c" 1>&6
6854 ac_save_LIBS="$LIBS"
6855 LIBS="-lXv_pic $LIBS"
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 /* Override any gcc2 internal prototype to avoid an error. */
6860 /* We use char because int might match the return type of a gcc2
6861 builtin and then its argument prototype would still apply. */
6862 char XvSetPortAttribute();
6865 XvSetPortAttribute()
6868 if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6870 eval "ac_cv_lib_$ac_lib_var=yes"
6872 echo "configure: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6875 eval "ac_cv_lib_$ac_lib_var=no"
6878 LIBS="$ac_save_LIBS"
6881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6884 PLUGINS="${PLUGINS} xvideo"
6885 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6886 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6888 echo "$ac_t""no" 1>&6
6889 # We don't have Xv_pic, let's make xvideo.a as builtin
6890 BUILTINS="${BUILTINS} xvideo"
6891 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6892 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6895 CFLAGS="$save_CFLAGS"
6897 CPPFLAGS="$save_CPPFLAGS"
6899 echo "$ac_t""no" 1>&6
6905 # Check whether --enable-sdl or --disable-sdl was given.
6906 if test "${enable_sdl+set}" = set; then
6907 enableval="$enable_sdl"
6911 if test "x$enable_sdl" != "xno"
6914 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6915 if test "${with_sdl_config_path+set}" = set; then
6916 withval="$with_sdl_config_path"
6917 if test "x$with_sdl_config_path" != "xno"
6919 SDL_PATH="$with_sdl_config_path:$PATH"
6923 # Extract the first word of "sdl12-config", so it can be a program name with args.
6924 set dummy sdl12-config; ac_word=$2
6925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6926 echo "configure:6927: checking for $ac_word" >&5
6927 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6930 case "$SDL12_CONFIG" in
6932 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6935 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6939 ac_dummy="$SDL_PATH"
6940 for ac_dir in $ac_dummy; do
6941 test -z "$ac_dir" && ac_dir=.
6942 if test -f $ac_dir/$ac_word; then
6943 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6948 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6952 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6953 if test -n "$SDL12_CONFIG"; then
6954 echo "$ac_t""$SDL12_CONFIG" 1>&6
6956 echo "$ac_t""no" 1>&6
6959 SDL_CONFIG=${SDL12_CONFIG}
6960 SDL_HEADER="SDL12/SDL.h"
6961 if test x${SDL_CONFIG} = xno
6963 # Extract the first word of "sdl11-config", so it can be a program name with args.
6964 set dummy sdl11-config; ac_word=$2
6965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6966 echo "configure:6967: checking for $ac_word" >&5
6967 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6968 echo $ac_n "(cached) $ac_c" 1>&6
6970 case "$SDL11_CONFIG" in
6972 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6975 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6979 ac_dummy="$SDL_PATH"
6980 for ac_dir in $ac_dummy; do
6981 test -z "$ac_dir" && ac_dir=.
6982 if test -f $ac_dir/$ac_word; then
6983 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6988 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6992 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6993 if test -n "$SDL11_CONFIG"; then
6994 echo "$ac_t""$SDL11_CONFIG" 1>&6
6996 echo "$ac_t""no" 1>&6
6999 SDL_CONFIG=${SDL11_CONFIG}
7000 SDL_HEADER="SDL11/SDL.h"
7002 if test x${SDL_CONFIG} = xno
7004 # Extract the first word of "sdl-config", so it can be a program name with args.
7005 set dummy sdl-config; ac_word=$2
7006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7007 echo "configure:7008: checking for $ac_word" >&5
7008 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7011 case "$SDL_CONFIG" in
7013 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7016 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7020 ac_dummy="$SDL_PATH"
7021 for ac_dir in $ac_dummy; do
7022 test -z "$ac_dir" && ac_dir=.
7023 if test -f $ac_dir/$ac_word; then
7024 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7029 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7033 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7034 if test -n "$SDL_CONFIG"; then
7035 echo "$ac_t""$SDL_CONFIG" 1>&6
7037 echo "$ac_t""no" 1>&6
7040 SDL_HEADER="SDL/SDL.h"
7042 if test x${SDL_CONFIG} != xno
7044 PLUGINS="${PLUGINS} sdl"
7045 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7046 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7047 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7048 for ac_hdr in ${SDL_HEADER}
7050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7052 echo "configure:7053: checking for $ac_hdr" >&5
7053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7054 echo $ac_n "(cached) $ac_c" 1>&6
7056 cat > conftest.$ac_ext <<EOF
7057 #line 7058 "configure"
7058 #include "confdefs.h"
7061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7062 { (eval echo configure:7063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7064 if test -z "$ac_err"; then
7066 eval "ac_cv_header_$ac_safe=yes"
7069 echo "configure: failed program was:" >&5
7070 cat conftest.$ac_ext >&5
7072 eval "ac_cv_header_$ac_safe=no"
7076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7077 echo "$ac_t""yes" 1>&6
7078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7079 cat >> confdefs.h <<EOF
7080 #define $ac_tr_hdr 1
7082 cat >> confdefs.h <<EOF
7083 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7087 echo "$ac_t""no" 1>&6
7088 { echo "configure: error: The development package for SDL is not installed.
7089 Please install it and try again. Alternatively you can also configure with
7090 --disable-sdl." 1>&2; exit 1; }
7095 CPPFLAGS="$save_CPPFLAGS"
7096 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7098 { echo "configure: error: The development package for SDL is not installed.
7099 Please install it and try again. Alternatively you can also configure with
7100 --disable-sdl." 1>&2; exit 1; }
7102 elif test "x$enable_sdl" = "xyes"
7104 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7105 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7110 # Check whether --enable-directx or --disable-directx was given.
7111 if test "${enable_directx+set}" = set; then
7112 enableval="$enable_directx"
7116 if test "x$enable_directx" != "xno"
7118 if test x$SYS = xmingw32
7120 # Check whether --with-directx or --without-directx was given.
7121 if test "${with_directx+set}" = set; then
7122 withval="$with_directx"
7126 if test "x$with_directx" = "x"
7128 for ac_hdr in ddraw.h
7130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7132 echo "configure:7133: checking for $ac_hdr" >&5
7133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7134 echo $ac_n "(cached) $ac_c" 1>&6
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7142 { (eval echo configure:7143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7144 if test -z "$ac_err"; then
7146 eval "ac_cv_header_$ac_safe=yes"
7149 echo "configure: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7152 eval "ac_cv_header_$ac_safe=no"
7156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7157 echo "$ac_t""yes" 1>&6
7158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7159 cat >> confdefs.h <<EOF
7160 #define $ac_tr_hdr 1
7162 PLUGINS="${PLUGINS} directx"
7163 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7165 echo "$ac_t""no" 1>&6
7170 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7171 echo "configure:7172: checking for directX headers in ${with_directx}" >&5
7172 if test -f ${with_directx}/ddraw.h
7174 PLUGINS="${PLUGINS} directx"
7175 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7176 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7177 echo "$ac_t""yes" 1>&6
7179 echo "$ac_t""no" 1>&6
7180 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7186 # Check whether --enable-fb or --disable-fb was given.
7187 if test "${enable_fb+set}" = set; then
7188 enableval="$enable_fb"
7192 if test x$enable_fb != xno
7194 for ac_hdr in linux/fb.h
7196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7198 echo "configure:7199: checking for $ac_hdr" >&5
7199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7200 echo $ac_n "(cached) $ac_c" 1>&6
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7208 { (eval echo configure:7209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7210 if test -z "$ac_err"; then
7212 eval "ac_cv_header_$ac_safe=yes"
7215 echo "configure: failed program was:" >&5
7216 cat conftest.$ac_ext >&5
7218 eval "ac_cv_header_$ac_safe=no"
7222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7223 echo "$ac_t""yes" 1>&6
7224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7225 cat >> confdefs.h <<EOF
7226 #define $ac_tr_hdr 1
7229 PLUGINS="${PLUGINS} fb"
7232 echo "$ac_t""no" 1>&6
7238 # Check whether --enable-mga or --disable-mga was given.
7239 if test "${enable_mga+set}" = set; then
7240 enableval="$enable_mga"
7241 if test x$enable_mga = xyes
7243 PLUGINS="${PLUGINS} mga xmga"
7248 # Check whether --enable-ggi or --disable-ggi was given.
7249 if test "${enable_ggi+set}" = set; then
7250 enableval="$enable_ggi"
7254 if test x$enable_ggi = xyes
7256 PLUGINS="${PLUGINS} ggi"
7257 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7258 # Check whether --with-ggi or --without-ggi was given.
7259 if test "${with_ggi+set}" = set; then
7261 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7263 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7264 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7270 # Check whether --enable-glide or --disable-glide was given.
7271 if test "${enable_glide+set}" = set; then
7272 enableval="$enable_glide"
7276 if test x$enable_glide = xyes
7278 PLUGINS="${PLUGINS} glide"
7279 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7280 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7281 # Check whether --with-glide or --without-glide was given.
7282 if test "${with_glide+set}" = set; then
7283 withval="$with_glide"
7284 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7286 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7287 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7293 # Check whether --enable-aa or --disable-aa was given.
7294 if test "${enable_aa+set}" = set; then
7295 enableval="$enable_aa"
7299 if test x$enable_aa = xyes
7301 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7302 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7303 echo "configure:7304: checking for aalib.h" >&5
7304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7307 cat > conftest.$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7313 { (eval echo configure:7314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7315 if test -z "$ac_err"; then
7317 eval "ac_cv_header_$ac_safe=yes"
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7323 eval "ac_cv_header_$ac_safe=no"
7327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7328 echo "$ac_t""yes" 1>&6
7331 echo "$ac_t""no" 1>&6
7335 if test x$have_aa = xtrue
7337 PLUGINS="${PLUGINS} aa"
7338 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7343 # Check whether --with- or --without- was given.
7344 if test "${with_+set}" = set; then
7350 # Check whether --enable-dsp or --disable-dsp was given.
7351 if test "${enable_dsp+set}" = set; then
7352 enableval="$enable_dsp"
7357 if test x$enable_dsp != xno &&
7358 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7360 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7364 echo "configure:7365: checking for $ac_hdr" >&5
7365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7368 cat > conftest.$ac_ext <<EOF
7369 #line 7370 "configure"
7370 #include "confdefs.h"
7373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7374 { (eval echo configure:7375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7376 if test -z "$ac_err"; then
7378 eval "ac_cv_header_$ac_safe=yes"
7381 echo "configure: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7384 eval "ac_cv_header_$ac_safe=no"
7388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7389 echo "$ac_t""yes" 1>&6
7390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7391 cat >> confdefs.h <<EOF
7392 #define $ac_tr_hdr 1
7395 PLUGINS="${PLUGINS} dsp"
7396 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7397 echo "configure:7398: checking for main in -lossaudio" >&5
7398 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7402 ac_save_LIBS="$LIBS"
7403 LIBS="-lossaudio $LIBS"
7404 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7412 if { (eval echo configure:7413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7414 eval "ac_cv_lib_$ac_lib_var=yes"
7416 echo "configure: failed program was:" >&5
7417 cat conftest.$ac_ext >&5
7419 eval "ac_cv_lib_$ac_lib_var=no"
7422 LIBS="$ac_save_LIBS"
7425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7426 echo "$ac_t""yes" 1>&6
7427 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7429 echo "$ac_t""no" 1>&6
7434 echo "$ac_t""no" 1>&6
7440 # Check whether --enable-esd or --disable-esd was given.
7441 if test "${enable_esd+set}" = set; then
7442 enableval="$enable_esd"
7443 if test x$enable_esd = xyes
7445 # Extract the first word of "esd-config", so it can be a program name with args.
7446 set dummy esd-config; ac_word=$2
7447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7448 echo "configure:7449: checking for $ac_word" >&5
7449 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 case "$ESD_CONFIG" in
7454 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7457 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7462 for ac_dir in $ac_dummy; do
7463 test -z "$ac_dir" && ac_dir=.
7464 if test -f $ac_dir/$ac_word; then
7465 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7470 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7474 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7475 if test -n "$ESD_CONFIG"; then
7476 echo "$ac_t""$ESD_CONFIG" 1>&6
7478 echo "$ac_t""no" 1>&6
7481 if test x${ESD_CONFIG} != xno
7483 PLUGINS="${PLUGINS} esd"
7484 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7485 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7491 # Check whether --enable-arts or --disable-arts was given.
7492 if test "${enable_arts+set}" = set; then
7493 enableval="$enable_arts"
7494 if test x$enable_arts = xyes
7496 # Extract the first word of "artsc-config", so it can be a program name with args.
7497 set dummy artsc-config; ac_word=$2
7498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7499 echo "configure:7500: checking for $ac_word" >&5
7500 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7503 case "$ARTS_CONFIG" in
7505 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7508 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7513 for ac_dir in $ac_dummy; do
7514 test -z "$ac_dir" && ac_dir=.
7515 if test -f $ac_dir/$ac_word; then
7516 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7521 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7525 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7526 if test -n "$ARTS_CONFIG"; then
7527 echo "$ac_t""$ARTS_CONFIG" 1>&6
7529 echo "$ac_t""no" 1>&6
7532 if test x${ARTS_CONFIG} != xno
7534 PLUGINS="${PLUGINS} arts"
7535 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7536 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7542 # Check whether --enable-alsa or --disable-alsa was given.
7543 if test "${enable_alsa+set}" = set; then
7544 enableval="$enable_alsa"
7545 if test x$enable_alsa = xyes
7547 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7548 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7549 echo "configure:7550: checking for alsa/asoundlib.h" >&5
7550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 #include <alsa/asoundlib.h>
7558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7559 { (eval echo configure:7560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7561 if test -z "$ac_err"; then
7563 eval "ac_cv_header_$ac_safe=yes"
7566 echo "configure: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7569 eval "ac_cv_header_$ac_safe=no"
7573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7574 echo "$ac_t""yes" 1>&6
7575 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7576 echo "configure:7577: checking for main in -lasound" >&5
7577 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7579 echo $ac_n "(cached) $ac_c" 1>&6
7581 ac_save_LIBS="$LIBS"
7582 LIBS="-lasound $LIBS"
7583 cat > conftest.$ac_ext <<EOF
7584 #line 7585 "configure"
7585 #include "confdefs.h"
7591 if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7593 eval "ac_cv_lib_$ac_lib_var=yes"
7595 echo "configure: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7598 eval "ac_cv_lib_$ac_lib_var=no"
7601 LIBS="$ac_save_LIBS"
7604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7605 echo "$ac_t""yes" 1>&6
7608 echo "$ac_t""no" 1>&6
7613 echo "$ac_t""no" 1>&6
7617 if test x$have_alsa = xtrue
7619 PLUGINS="${PLUGINS} alsa"
7620 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7626 # Check whether --enable-waveout or --disable-waveout was given.
7627 if test "${enable_waveout+set}" = set; then
7628 enableval="$enable_waveout"
7632 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7634 PLUGINS="${PLUGINS} waveout"
7635 waveout_LDFLAGS="-lwinmm"
7639 # Check whether --with- or --without- was given.
7640 if test "${with_+set}" = set; then
7646 # Check whether --enable-gtk or --disable-gtk was given.
7647 if test "${enable_gtk+set}" = set; then
7648 enableval="$enable_gtk"
7652 if test x$enable_gtk != xno
7655 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7656 if test "${with_gtk_config_path+set}" = set; then
7657 withval="$with_gtk_config_path"
7658 if test "x$with_gtk_config_path" != "xno"
7660 GTK_PATH="$with_gtk_config_path:$PATH"
7664 # look for gtk-config
7665 # Extract the first word of "gtk12-config", so it can be a program name with args.
7666 set dummy gtk12-config; ac_word=$2
7667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7668 echo "configure:7669: checking for $ac_word" >&5
7669 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7672 case "$GTK12_CONFIG" in
7674 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7677 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7681 ac_dummy="$GTK_PATH"
7682 for ac_dir in $ac_dummy; do
7683 test -z "$ac_dir" && ac_dir=.
7684 if test -f $ac_dir/$ac_word; then
7685 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7690 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7694 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7695 if test -n "$GTK12_CONFIG"; then
7696 echo "$ac_t""$GTK12_CONFIG" 1>&6
7698 echo "$ac_t""no" 1>&6
7701 GTK_CONFIG=${GTK12_CONFIG}
7702 if test x${GTK_CONFIG} = xno
7704 # Extract the first word of "gtk-config", so it can be a program name with args.
7705 set dummy gtk-config; ac_word=$2
7706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7707 echo "configure:7708: checking for $ac_word" >&5
7708 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7709 echo $ac_n "(cached) $ac_c" 1>&6
7711 case "$GTK_CONFIG" in
7713 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7716 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7720 ac_dummy="$GTK_PATH"
7721 for ac_dir in $ac_dummy; do
7722 test -z "$ac_dir" && ac_dir=.
7723 if test -f $ac_dir/$ac_word; then
7724 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7729 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7733 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7734 if test -n "$GTK_CONFIG"; then
7735 echo "$ac_t""$GTK_CONFIG" 1>&6
7737 echo "$ac_t""no" 1>&6
7741 if test x${GTK_CONFIG} != xno
7743 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7745 { 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; }
7747 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7748 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7749 # now look for the gtk.h header
7750 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7751 ac_cv_gtk_headers=yes
7752 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7756 echo "configure:7757: checking for $ac_hdr" >&5
7757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7760 cat > conftest.$ac_ext <<EOF
7761 #line 7762 "configure"
7762 #include "confdefs.h"
7765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7766 { (eval echo configure:7767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7768 if test -z "$ac_err"; then
7770 eval "ac_cv_header_$ac_safe=yes"
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7776 eval "ac_cv_header_$ac_safe=no"
7780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7781 echo "$ac_t""yes" 1>&6
7782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7783 cat >> confdefs.h <<EOF
7784 #define $ac_tr_hdr 1
7788 echo "$ac_t""no" 1>&6
7789 ac_cv_gtk_headers=no
7790 echo "Cannot find gtk development headers."
7795 if test "x$ac_cv_gtk_headers" = xyes
7797 PLUGINS="${PLUGINS} gtk"
7798 ALIASES="${ALIASES} gvlc"
7800 CPPFLAGS="$save_CPPFLAGS"
7804 # Check whether --enable-gnome or --disable-gnome was given.
7805 if test "${enable_gnome+set}" = set; then
7806 enableval="$enable_gnome"
7807 if test x$enable_gnome = xyes; then
7808 # look for gnome-config
7809 # Extract the first word of "gnome-config", so it can be a program name with args.
7810 set dummy gnome-config; ac_word=$2
7811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7812 echo "configure:7813: checking for $ac_word" >&5
7813 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7814 echo $ac_n "(cached) $ac_c" 1>&6
7816 case "$GNOME_CONFIG" in
7818 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7821 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7826 for ac_dir in $ac_dummy; do
7827 test -z "$ac_dir" && ac_dir=.
7828 if test -f $ac_dir/$ac_word; then
7829 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7834 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7838 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7839 if test -n "$GNOME_CONFIG"; then
7840 echo "$ac_t""$GNOME_CONFIG" 1>&6
7842 echo "$ac_t""no" 1>&6
7845 if test -x ${GNOME_CONFIG}
7847 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7848 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7850 # now look for the gnome.h header
7851 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
7852 for ac_hdr in gnome.h
7854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7856 echo "configure:7857: checking for $ac_hdr" >&5
7857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7860 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure"
7862 #include "confdefs.h"
7865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7866 { (eval echo configure:7867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7868 if test -z "$ac_err"; then
7870 eval "ac_cv_header_$ac_safe=yes"
7873 echo "configure: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7876 eval "ac_cv_header_$ac_safe=no"
7880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7881 echo "$ac_t""yes" 1>&6
7882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7883 cat >> confdefs.h <<EOF
7884 #define $ac_tr_hdr 1
7887 PLUGINS="${PLUGINS} gnome"
7888 ALIASES="${ALIASES} gnome-vlc"
7891 echo "$ac_t""no" 1>&6
7892 { echo "configure: error: Can't find gnome headers. Please install the gnome
7893 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7898 CPPFLAGS="$save_CPPFLAGS"
7903 # Check whether --enable-qt or --disable-qt was given.
7904 if test "${enable_qt+set}" = set; then
7905 enableval="$enable_qt"
7906 if test x$enable_qt = xyes; then
7907 PLUGINS="${PLUGINS} qt"
7908 ALIASES="${ALIASES} qvlc"
7909 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7910 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7911 if test -x ${QTDIR}/bin/moc
7913 MOC=${QTDIR}/bin/moc
7921 # Check whether --enable-kde or --disable-kde was given.
7922 if test "${enable_kde+set}" = set; then
7923 enableval="$enable_kde"
7924 if test x$enable_kde = xyes; then
7925 PLUGINS="${PLUGINS} kde"
7926 ALIASES="${ALIASES} kvlc"
7927 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
7928 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
7929 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
7930 if test -x ${QTDIR}/bin/moc
7932 MOC=${QTDIR}/bin/moc
7940 # Check whether --enable-macosx or --disable-macosx was given.
7941 if test "${enable_macosx+set}" = set; then
7942 enableval="$enable_macosx"
7943 if test x$enable_macosx = xyes
7945 BUILTINS="${BUILTINS} macosx"
7946 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
7949 for ac_hdr in Cocoa/Cocoa.h
7951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7953 echo "configure:7954: checking for $ac_hdr" >&5
7954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7957 cat > conftest.$ac_ext <<EOF
7958 #line 7959 "configure"
7959 #include "confdefs.h"
7962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7963 { (eval echo configure:7964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7965 if test -z "$ac_err"; then
7967 eval "ac_cv_header_$ac_safe=yes"
7970 echo "configure: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7973 eval "ac_cv_header_$ac_safe=no"
7977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7978 echo "$ac_t""yes" 1>&6
7979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7980 cat >> confdefs.h <<EOF
7981 #define $ac_tr_hdr 1
7983 BUILTINS="${BUILTINS} macosx"
7984 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
7987 echo "$ac_t""no" 1>&6
7994 # Check whether --enable-qnx or --disable-qnx was given.
7995 if test "${enable_qnx+set}" = set; then
7996 enableval="$enable_qnx"
8000 if test x$enable_qnx != xno
8004 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8005 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8006 echo "configure:8007: checking for $ac_hdr" >&5
8007 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8008 echo $ac_n "(cached) $ac_c" 1>&6
8010 cat > conftest.$ac_ext <<EOF
8011 #line 8012 "configure"
8012 #include "confdefs.h"
8015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8016 { (eval echo configure:8017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8018 if test -z "$ac_err"; then
8020 eval "ac_cv_header_$ac_safe=yes"
8023 echo "configure: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8026 eval "ac_cv_header_$ac_safe=no"
8030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8031 echo "$ac_t""yes" 1>&6
8032 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8033 cat >> confdefs.h <<EOF
8034 #define $ac_tr_hdr 1
8037 PLUGINS="${PLUGINS} qnx"
8038 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8041 echo "$ac_t""no" 1>&6
8047 # Check whether --enable-intfwin or --disable-intfwin was given.
8048 if test "${enable_intfwin+set}" = set; then
8049 enableval="$enable_intfwin"
8050 if test "x$enable_intfwin" != "xno"
8052 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8053 if test "${with_bcbuilder+set}" = set; then
8054 withval="$with_bcbuilder"
8058 if test "x$with_bcbuilder" != "x"
8060 BCBUILDER="$with_bcbuilder"
8062 PLUGINS="${PLUGINS} intfwin"
8067 # Check whether --enable-ncurses or --disable-ncurses was given.
8068 if test "${enable_ncurses+set}" = set; then
8069 enableval="$enable_ncurses"
8070 if test x$enable_ncurses = xyes; then
8071 PLUGINS="${PLUGINS} ncurses"
8072 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8077 # Check whether --enable-lirc or --disable-lirc was given.
8078 if test "${enable_lirc+set}" = set; then
8079 enableval="$enable_lirc"
8083 if test x$enable_lirc = xyes
8085 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8086 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8087 echo "configure:8088: checking for lirc/lirc_client.h" >&5
8088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 #include <lirc/lirc_client.h>
8096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8097 { (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8099 if test -z "$ac_err"; then
8101 eval "ac_cv_header_$ac_safe=yes"
8104 echo "configure: failed program was:" >&5
8105 cat conftest.$ac_ext >&5
8107 eval "ac_cv_header_$ac_safe=no"
8111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8112 echo "$ac_t""yes" 1>&6
8113 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8114 echo "configure:8115: checking for lirc_init in -llirc_client" >&5
8115 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8117 echo $ac_n "(cached) $ac_c" 1>&6
8119 ac_save_LIBS="$LIBS"
8120 LIBS="-llirc_client $LIBS"
8121 cat > conftest.$ac_ext <<EOF
8122 #line 8123 "configure"
8123 #include "confdefs.h"
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8133 if { (eval echo configure:8134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8135 eval "ac_cv_lib_$ac_lib_var=yes"
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8140 eval "ac_cv_lib_$ac_lib_var=no"
8143 LIBS="$ac_save_LIBS"
8146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8147 echo "$ac_t""yes" 1>&6
8150 echo "$ac_t""no" 1>&6
8155 echo "$ac_t""no" 1>&6
8159 if test x$have_lirc = xtrue
8161 PLUGINS="${PLUGINS} lirc"
8162 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8166 # Check whether --with- or --without- was given.
8167 if test "${with_+set}" = set; then
8173 # Check whether --with-words or --without-words was given.
8174 if test "${with_words+set}" = set; then
8175 withval="$with_words"
8179 case "x$with_words" in
8181 ac_cv_c_bigendian=yes
8184 ac_cv_c_bigendian=no
8187 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8188 echo "configure:8189: checking whether the byte order is big-endian" >&5
8189 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8190 echo $ac_n "(cached) $ac_c" 1>&6
8192 ac_cv_c_bigendian=unknown
8193 cat >conftest.c <<EOF
8194 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8195 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8196 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8197 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8198 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8199 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8200 int main(void) { _a(); _e(); return 0; }
8203 if test -f conftest.c
8205 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8206 && test -f conftest.o
8208 if test "`strings conftest.o | grep BIGenDianSyS`"
8210 ac_cv_c_bigendian=yes
8212 if test "`strings conftest.o | grep LiTTleEnDian`"
8214 ac_cv_c_bigendian=no
8221 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8222 if test x$ac_cv_c_bigendian = xunknown
8224 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8228 if test $ac_cv_c_bigendian = yes
8230 cat >> confdefs.h <<\EOF
8231 #define WORDS_BIGENDIAN 1
8237 # Check whether --enable-gprof or --disable-gprof was given.
8238 if test "${enable_gprof+set}" = set; then
8239 enableval="$enable_gprof"
8240 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
8245 # Check whether --enable-cprof or --disable-cprof was given.
8246 if test "${enable_cprof+set}" = set; then
8247 enableval="$enable_cprof"
8248 if test "x$enable_cprof" = "xyes";
8250 LDFLAGS="${LDFLAGS} -lcprof"
8257 # Check whether --enable-pth or --disable-pth was given.
8258 if test "${enable_pth+set}" = set; then
8259 enableval="$enable_pth"
8260 if test "x$enable_pth" = "xyes"; then
8261 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8262 echo "configure:8263: checking for pth_init in -lpth" >&5
8263 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8267 ac_save_LIBS="$LIBS"
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272 /* Override any gcc2 internal prototype to avoid an error. */
8273 /* We use char because int might match the return type of a gcc2
8274 builtin and then its argument prototype would still apply. */
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8283 eval "ac_cv_lib_$ac_lib_var=yes"
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8288 eval "ac_cv_lib_$ac_lib_var=no"
8291 LIBS="$ac_save_LIBS"
8294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8295 echo "$ac_t""yes" 1>&6
8296 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8297 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8298 cat >> confdefs.h <<EOF
8299 #define $ac_tr_lib 1
8305 echo "$ac_t""no" 1>&6
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8314 egrep "pth_init" >/dev/null 2>&1; then
8317 cat >> confdefs.h <<\EOF
8318 #define PTH_INIT_IN_PTH_H 1
8330 # Check whether --enable-st or --disable-st was given.
8331 if test "${enable_st+set}" = set; then
8332 enableval="$enable_st"
8333 if test "x$enable_st" = "xyes"; then
8334 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8335 echo "configure:8336: checking for st_init in -lst" >&5
8336 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6
8340 ac_save_LIBS="$LIBS"
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8345 /* Override any gcc2 internal prototype to avoid an error. */
8346 /* We use char because int might match the return type of a gcc2
8347 builtin and then its argument prototype would still apply. */
8354 if { (eval echo configure:8355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8356 eval "ac_cv_lib_$ac_lib_var=yes"
8358 echo "configure: failed program was:" >&5
8359 cat conftest.$ac_ext >&5
8361 eval "ac_cv_lib_$ac_lib_var=no"
8364 LIBS="$ac_save_LIBS"
8367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8368 echo "$ac_t""yes" 1>&6
8369 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8370 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8371 cat >> confdefs.h <<EOF
8372 #define $ac_tr_lib 1
8378 echo "$ac_t""no" 1>&6
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8387 egrep "st_init" >/dev/null 2>&1; then
8390 cat >> confdefs.h <<\EOF
8391 #define ST_INIT_IN_ST_H 1
8403 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
8405 # Check whether --enable-plugins or --disable-plugins was given.
8406 if test "${enable_plugins+set}" = set; then
8407 enableval="$enable_plugins"
8408 if test x$enable_plugins = xno
8410 BUILTINS="${BUILTINS} ${PLUGINS}"
8416 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8418 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8420 BUILTINS="${BUILTINS} ${PLUGINS}"
8424 cat >> confdefs.h <<EOF
8425 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8428 cat >> confdefs.h <<EOF
8429 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8433 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8434 cat >> confdefs.h <<EOF
8435 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8438 cat >> confdefs.h <<EOF
8439 #define MODULE_SYMBOL $VLC_SYMBOL
8443 DATA_PATH="${ac_tool_prefix}/share/videolan"
8445 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8542 cat > confcache <<\EOF
8543 # This file is a shell script that caches the results of configure
8544 # tests run on this system so they can be shared between configure
8545 # scripts and configure runs. It is not useful on other systems.
8546 # If it contains results you don't want to keep, you may remove or edit it.
8548 # By default, configure uses ./config.cache as the cache file,
8549 # creating it if it does not exist already. You can give configure
8550 # the --cache-file=FILE option to use a different cache file; that is
8551 # what configure does when it calls configure scripts in
8552 # subdirectories, so they share the cache.
8553 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8554 # config.status only pays attention to the cache file if you give it the
8555 # --recheck option to rerun configure.
8558 # The following way of writing the cache mishandles newlines in values,
8559 # but we know of no workaround that is simple, portable, and efficient.
8560 # So, don't put newlines in cache variables' values.
8561 # Ultrix sh set writes to stderr and can't be redirected directly,
8562 # and sets the high bit in the cache file unless we assign to the vars.
8564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8566 # `set' does not quote correctly, so add quotes (double-quote substitution
8567 # turns \\\\ into \\, and sed turns \\ into \).
8569 -e "s/'/'\\\\''/g" \
8570 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8573 # `set' quotes correctly as required by POSIX, so do not add quotes.
8574 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8577 if cmp -s $cache_file confcache; then
8580 if test -w $cache_file; then
8581 echo "updating cache $cache_file"
8582 cat confcache > $cache_file
8584 echo "not updating unwritable cache $cache_file"
8589 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8591 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8592 # Let make expand exec_prefix.
8593 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8595 # Any assignment to VPATH causes Sun make to only execute
8596 # the first set of double-colon rules, so remove it if not needed.
8597 # If there is a colon in the path, we need to keep it.
8598 if test "x$srcdir" = x.; then
8599 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8602 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8604 DEFS=-DHAVE_CONFIG_H
8606 # Without the "./", some shells look in PATH for config.status.
8607 : ${CONFIG_STATUS=./config.status}
8609 echo creating $CONFIG_STATUS
8610 rm -f $CONFIG_STATUS
8611 cat > $CONFIG_STATUS <<EOF
8613 # Generated automatically by configure.
8614 # Run this file to recreate the current configuration.
8615 # This directory was configured as follows,
8616 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8618 # $0 $ac_configure_args
8620 # Compiler output produced by configure, useful for debugging
8621 # configure, is in ./config.log if it exists.
8623 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8626 case "\$ac_option" in
8627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8628 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8629 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8630 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8631 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8633 -help | --help | --hel | --he | --h)
8634 echo "\$ac_cs_usage"; exit 0 ;;
8635 *) echo "\$ac_cs_usage"; exit 1 ;;
8639 ac_given_srcdir=$srcdir
8640 ac_given_INSTALL="$INSTALL"
8642 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8644 cat >> $CONFIG_STATUS <<EOF
8646 # Protect against being on the right side of a sed subst in config.status.
8647 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8648 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8652 s%@CFLAGS@%$CFLAGS%g
8653 s%@CPPFLAGS@%$CPPFLAGS%g
8654 s%@CXXFLAGS@%$CXXFLAGS%g
8655 s%@FFLAGS@%$FFLAGS%g
8657 s%@LDFLAGS@%$LDFLAGS%g
8659 s%@exec_prefix@%$exec_prefix%g
8660 s%@prefix@%$prefix%g
8661 s%@program_transform_name@%$program_transform_name%g
8662 s%@bindir@%$bindir%g
8663 s%@sbindir@%$sbindir%g
8664 s%@libexecdir@%$libexecdir%g
8665 s%@datadir@%$datadir%g
8666 s%@sysconfdir@%$sysconfdir%g
8667 s%@sharedstatedir@%$sharedstatedir%g
8668 s%@localstatedir@%$localstatedir%g
8669 s%@libdir@%$libdir%g
8670 s%@includedir@%$includedir%g
8671 s%@oldincludedir@%$oldincludedir%g
8672 s%@infodir@%$infodir%g
8673 s%@mandir@%$mandir%g
8675 s%@host_alias@%$host_alias%g
8676 s%@host_cpu@%$host_cpu%g
8677 s%@host_vendor@%$host_vendor%g
8678 s%@host_os@%$host_os%g
8679 s%@target@%$target%g
8680 s%@target_alias@%$target_alias%g
8681 s%@target_cpu@%$target_cpu%g
8682 s%@target_vendor@%$target_vendor%g
8683 s%@target_os@%$target_os%g
8685 s%@build_alias@%$build_alias%g
8686 s%@build_cpu@%$build_cpu%g
8687 s%@build_vendor@%$build_vendor%g
8688 s%@build_os@%$build_os%g
8689 s%@SET_MAKE@%$SET_MAKE%g
8692 s%@RANLIB@%$RANLIB%g
8695 s%@ALLOCA@%$ALLOCA%g
8696 s%@GLIBC21@%$GLIBC21%g
8697 s%@LIBICONV@%$LIBICONV%g
8698 s%@USE_NLS@%$USE_NLS%g
8699 s%@MSGFMT@%$MSGFMT%g
8700 s%@GMSGFMT@%$GMSGFMT%g
8701 s%@XGETTEXT@%$XGETTEXT%g
8702 s%@INTLBISON@%$INTLBISON%g
8703 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8704 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8705 s%@CATALOGS@%$CATALOGS%g
8706 s%@CATOBJEXT@%$CATOBJEXT%g
8707 s%@GMOFILES@%$GMOFILES%g
8708 s%@INTLLIBS@%$INTLLIBS%g
8709 s%@INTLOBJS@%$INTLOBJS%g
8710 s%@POFILES@%$POFILES%g
8712 s%@DATADIRNAME@%$DATADIRNAME%g
8713 s%@INSTOBJEXT@%$INSTOBJEXT%g
8714 s%@GENCAT@%$GENCAT%g
8715 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8716 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8717 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8718 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8719 s%@INSTALL_DATA@%$INSTALL_DATA%g
8720 s%@WINDRES@%$WINDRES%g
8721 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8722 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8723 s%@SDL_CONFIG@%$SDL_CONFIG%g
8724 s%@ESD_CONFIG@%$ESD_CONFIG%g
8725 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8726 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8727 s%@GTK_CONFIG@%$GTK_CONFIG%g
8728 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8729 s%@DATA_PATH@%$DATA_PATH%g
8730 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8733 s%@PLUGINS@%$PLUGINS%g
8734 s%@BUILTINS@%$BUILTINS%g
8735 s%@ALIASES@%$ALIASES%g
8740 s%@OPTIMS@%$OPTIMS%g
8741 s%@TUNING@%$TUNING%g
8742 s%@RELEASE@%$RELEASE%g
8744 s%@BCBUILDER@%$BCBUILDER%g
8745 s%@PACKAGE@%$PACKAGE%g
8746 s%@VERSION@%$VERSION%g
8747 s%@NEED_GETOPT@%$NEED_GETOPT%g
8748 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8749 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8750 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8751 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8752 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8753 s%@a52_CFLAGS@%$a52_CFLAGS%g
8754 s%@arts_CFLAGS@%$arts_CFLAGS%g
8755 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8756 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8757 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8758 s%@directx_CFLAGS@%$directx_CFLAGS%g
8759 s%@esd_CFLAGS@%$esd_CFLAGS%g
8760 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8761 s%@glide_CFLAGS@%$glide_CFLAGS%g
8762 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8763 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8764 s%@kde_CFLAGS@%$kde_CFLAGS%g
8765 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8766 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8767 s%@mad_CFLAGS@%$mad_CFLAGS%g
8768 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8769 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8770 s%@qt_CFLAGS@%$qt_CFLAGS%g
8771 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8772 s%@x11_CFLAGS@%$x11_CFLAGS%g
8773 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8774 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8775 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8776 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8777 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8778 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8779 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8780 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8781 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8782 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8783 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8784 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8785 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8786 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8787 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8788 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8789 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8790 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8791 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8792 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8793 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8794 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8795 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8796 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8797 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8798 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8799 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8800 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8801 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8802 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8803 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8804 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8805 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8806 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8807 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8808 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8809 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8810 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8811 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8812 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8813 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8814 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8815 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8820 cat >> $CONFIG_STATUS <<\EOF
8822 # Split the substitutions into bite-sized pieces for seds with
8823 # small command number limits, like on Digital OSF/1 and HP-UX.
8824 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8825 ac_file=1 # Number of current file.
8826 ac_beg=1 # First line for current file.
8827 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8830 while $ac_more_lines; do
8831 if test $ac_beg -gt 1; then
8832 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8834 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8836 if test ! -s conftest.s$ac_file; then
8838 rm -f conftest.s$ac_file
8840 if test -z "$ac_sed_cmds"; then
8841 ac_sed_cmds="sed -f conftest.s$ac_file"
8843 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8845 ac_file=`expr $ac_file + 1`
8847 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8850 if test -z "$ac_sed_cmds"; then
8855 cat >> $CONFIG_STATUS <<EOF
8857 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8859 cat >> $CONFIG_STATUS <<\EOF
8860 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8861 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8863 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8864 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8865 *) ac_file_in="${ac_file}.in" ;;
8868 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8870 # Remove last slash and all that follows it. Not all systems have dirname.
8871 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8872 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8873 # The file is in a subdirectory.
8874 test ! -d "$ac_dir" && mkdir "$ac_dir"
8875 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8876 # A "../" for each directory in $ac_dir_suffix.
8877 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8879 ac_dir_suffix= ac_dots=
8882 case "$ac_given_srcdir" in
8884 if test -z "$ac_dots"; then top_srcdir=.
8885 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8886 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8888 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8889 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8892 case "$ac_given_INSTALL" in
8893 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8894 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8897 echo creating "$ac_file"
8899 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8901 *Makefile*) ac_comsub="1i\\
8902 # $configure_input" ;;
8906 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8908 s%@configure_input@%$configure_input%g
8909 s%@srcdir@%$srcdir%g
8910 s%@top_srcdir@%$top_srcdir%g
8911 s%@INSTALL@%$INSTALL%g
8912 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8916 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8917 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8919 # ac_d sets the value in "#define NAME VALUE" lines.
8920 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8921 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8924 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8925 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8926 ac_uB='\([ ]\)%\1#\2define\3'
8929 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8930 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8931 ac_eB='$%\1#\2define\3'
8935 if test "${CONFIG_HEADERS+set}" != set; then
8937 cat >> $CONFIG_STATUS <<EOF
8938 CONFIG_HEADERS="include/defs.h"
8940 cat >> $CONFIG_STATUS <<\EOF
8942 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8945 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8946 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8947 *) ac_file_in="${ac_file}.in" ;;
8950 echo creating $ac_file
8952 rm -f conftest.frag conftest.in conftest.out
8953 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8954 cat $ac_file_inputs > conftest.in
8958 # Transform confdefs.h into a sed script conftest.vals that substitutes
8959 # the proper values into config.h.in to produce config.h. And first:
8960 # Protect against being on the right side of a sed subst in config.status.
8961 # Protect against being in an unquoted here document in config.status.
8963 cat > conftest.hdr <<\EOF
8966 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8970 sed -n -f conftest.hdr confdefs.h > conftest.vals
8973 # This sed command replaces #undef with comments. This is necessary, for
8974 # example, in the case of _POSIX_SOURCE, which is predefined and required
8975 # on some systems where configure will not decide to define it.
8976 cat >> conftest.vals <<\EOF
8977 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8980 # Break up conftest.vals because some shells have a limit on
8981 # the size of here documents, and old seds have small limits too.
8986 ac_lines=`grep -c . conftest.vals`
8987 # grep -c gives empty output for an empty file on some AIX systems.
8988 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8989 # Write a limited-size here document to conftest.frag.
8990 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8991 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8993 sed -f conftest.frag conftest.in > conftest.out
8995 mv conftest.out conftest.in
8997 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8999 mv conftest.tail conftest.vals
9003 cat >> $CONFIG_STATUS <<\EOF
9004 rm -f conftest.frag conftest.h
9005 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9006 cat conftest.in >> conftest.h
9008 if cmp -s $ac_file conftest.h 2>/dev/null; then
9009 echo "$ac_file is unchanged"
9012 # Remove last slash and all that follows it. Not all systems have dirname.
9013 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9014 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9015 # The file is in a subdirectory.
9016 test ! -d "$ac_dir" && mkdir "$ac_dir"
9019 mv conftest.h $ac_file
9024 cat >> $CONFIG_STATUS <<EOF
9028 cat >> $CONFIG_STATUS <<\EOF
9029 for ac_file in $CONFIG_FILES; do
9030 # Support "outfile[:infile[:infile...]]"
9032 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9034 # PO directories have a Makefile.in generated from Makefile.in.in.
9035 case "$ac_file" in */Makefile.in)
9036 # Adjust a relative srcdir.
9037 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9038 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9039 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9040 # In autoconf-2.13 it is called $ac_given_srcdir.
9041 # In autoconf-2.50 it is called $srcdir.
9042 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9043 case "$ac_given_srcdir" in
9044 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9045 /*) top_srcdir="$ac_given_srcdir" ;;
9046 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9048 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9049 rm -f "$ac_dir/POTFILES"
9050 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9051 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9052 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9053 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9061 chmod +x $CONFIG_STATUS
9062 rm -fr confdefs* $ac_clean_files
9063 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9068 --------------------
9069 vlc version : ${VERSION}
9071 architecture : ${ARCH}
9072 optimizations : ${OPTIMS}
9074 debug mode : ${DEBUG}
9075 release : ${RELEASE}
9076 cprof/gprof support : ${CPROF}/${GPROF}
9077 need builtin getopt : ${NEED_GETOPT}
9078 built-in modules :${BUILTINS}
9079 plug-in modules :${PLUGINS}
9080 vlc aliases :${ALIASES}
9082 You may now tune Makefile.opts at your convenience, for instance to choose
9083 which modules get compiled as plugins.
9085 To build vlc and its plugins, type \`$VLC_MAKE'.