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 --with-dvdcss[=name] use libdvdcss, either 'yes', 'no', 'local-static',
39 'local-shared', or a path to another libdvdcss such
40 as '/usr/local' (default 'local-static')"
42 --with-dvdread[=name] use libdvdread, same options as dvdcss (default 'no')"
44 --enable-vcd VCD support for Linux (default enabled)"
46 --enable-satellite Satellite card support (default disabled)"
50 --enable-mad libmad module (default disabled)"
52 --with-mad=PATH path to libmad"
54 --disable-a52 AC3 support with liba52 (default enabled)"
58 --disable-x11 X11 support (default enabled)"
60 --disable-xvideo XVideo support (default enabled)"
62 --disable-sdl SDL support (default enabled)"
64 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
66 --enable-directx Win32 DirectX support (default enabled on Win32)"
68 --with-directx=PATH Win32 DirectX headers and libraries"
70 --enable-fb Linux framebuffer support (default enabled on Linux)"
72 --enable-mga Linux kernel Matrox support (default disabled)"
74 --enable-ggi GGI support (default disabled)"
76 --with-ggi=PATH path to libggi"
78 --enable-glide Glide (3dfx) support (default disabled)"
80 --with-glide=PATH path to libglide"
82 --enable-aa aalib output (default disabled)"
86 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
88 --enable-esd Esound library support (default disabled)"
90 --enable-arts aRts sound server (default disabled)"
92 --enable-alsa ALSA sound support for Linux (default disabled)"
94 --enable-waveout Win32 waveOut module (default enabled on Win32)"
98 --disable-gtk Gtk+ support (default enabled)"
100 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
102 --enable-gnome Gnome interface support (default disabled)"
104 --enable-qt Qt interface support (default disabled)"
106 --enable-kde KDE interface support (default disabled)"
108 --enable-macosx MacOS X support (default enabled on MacOS X)"
110 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
112 --enable-win32 Win32 interface support (default disabled)"
114 --enable-ncurses ncurses interface support (default disabled)"
116 --enable-lirc lirc support (default disabled)"
120 --with-words=endianness set endianness (big or little)"
122 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
124 --enable-gprof gprof profiling (default disabled)"
126 --enable-cprof cprof profiling (default disabled)"
128 --enable-pth GNU Pth support (default disabled)"
130 --enable-st State Threads (default disabled)"
132 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
134 # Initialize some variables set by options.
135 # The variables have the same names as the options, with
136 # dashes changed to underlines.
138 cache_file=./config.cache
147 program_transform_name=s,x,x,
155 bindir='${exec_prefix}/bin'
156 sbindir='${exec_prefix}/sbin'
157 libexecdir='${exec_prefix}/libexec'
158 datadir='${prefix}/share'
159 sysconfdir='${prefix}/etc'
160 sharedstatedir='${prefix}/com'
161 localstatedir='${prefix}/var'
162 libdir='${exec_prefix}/lib'
163 includedir='${prefix}/include'
164 oldincludedir='/usr/include'
165 infodir='${prefix}/info'
166 mandir='${prefix}/man'
168 # Initialize some other variables.
171 SHELL=${CONFIG_SHELL-/bin/sh}
172 # Maximum number of lines to put in a shell here document.
179 # If the previous option needs an argument, assign it.
180 if test -n "$ac_prev"; then
181 eval "$ac_prev=\$ac_option"
187 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
191 # Accept the important Cygnus configure options, so we can diagnose typos.
195 -bindir | --bindir | --bindi | --bind | --bin | --bi)
197 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
198 bindir="$ac_optarg" ;;
200 -build | --build | --buil | --bui | --bu)
202 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
203 build="$ac_optarg" ;;
205 -cache-file | --cache-file | --cache-fil | --cache-fi \
206 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
207 ac_prev=cache_file ;;
208 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
209 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
210 cache_file="$ac_optarg" ;;
212 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
214 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
216 datadir="$ac_optarg" ;;
218 -disable-* | --disable-*)
219 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
220 # Reject names that are not valid shell variable names.
221 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
222 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
224 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
225 eval "enable_${ac_feature}=no" ;;
227 -enable-* | --enable-*)
228 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
229 # Reject names that are not valid shell variable names.
230 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
231 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
233 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
238 eval "enable_${ac_feature}='$ac_optarg'" ;;
240 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
241 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
242 | --exec | --exe | --ex)
243 ac_prev=exec_prefix ;;
244 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
245 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
246 | --exec=* | --exe=* | --ex=*)
247 exec_prefix="$ac_optarg" ;;
249 -gas | --gas | --ga | --g)
250 # Obsolete; use --with-gas.
253 -help | --help | --hel | --he)
254 # Omit some internal or obsolete options to make the list less imposing.
255 # This message is too long to be a string in the A/UX 3.1 sh.
257 Usage: configure [options] [host]
258 Options: [defaults in brackets after descriptions]
260 --cache-file=FILE cache test results in FILE
261 --help print this message
262 --no-create do not create output files
263 --quiet, --silent do not print \`checking...' messages
264 --version print the version of autoconf that created configure
265 Directory and file names:
266 --prefix=PREFIX install architecture-independent files in PREFIX
268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
270 --bindir=DIR user executables in DIR [EPREFIX/bin]
271 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
272 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
273 --datadir=DIR read-only architecture-independent data in DIR
275 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
276 --sharedstatedir=DIR modifiable architecture-independent data in DIR
278 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
279 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
280 --includedir=DIR C header files in DIR [PREFIX/include]
281 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
282 --infodir=DIR info documentation in DIR [PREFIX/info]
283 --mandir=DIR man documentation in DIR [PREFIX/man]
284 --srcdir=DIR find the sources in DIR [configure dir or ..]
285 --program-prefix=PREFIX prepend PREFIX to installed program names
286 --program-suffix=SUFFIX append SUFFIX to installed program names
287 --program-transform-name=PROGRAM
288 run sed PROGRAM on installed program names
292 --build=BUILD configure for building on BUILD [BUILD=HOST]
293 --host=HOST configure for HOST [guessed]
294 --target=TARGET configure for TARGET [TARGET=HOST]
295 Features and packages:
296 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
297 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
300 --x-includes=DIR X include files are in DIR
301 --x-libraries=DIR X library files are in DIR
303 if test -n "$ac_help"; then
304 echo "--enable and --with options recognized:$ac_help"
308 -host | --host | --hos | --ho)
310 -host=* | --host=* | --hos=* | --ho=*)
313 -includedir | --includedir | --includedi | --included | --include \
314 | --includ | --inclu | --incl | --inc)
315 ac_prev=includedir ;;
316 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
317 | --includ=* | --inclu=* | --incl=* | --inc=*)
318 includedir="$ac_optarg" ;;
320 -infodir | --infodir | --infodi | --infod | --info | --inf)
322 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
323 infodir="$ac_optarg" ;;
325 -libdir | --libdir | --libdi | --libd)
327 -libdir=* | --libdir=* | --libdi=* | --libd=*)
328 libdir="$ac_optarg" ;;
330 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
331 | --libexe | --libex | --libe)
332 ac_prev=libexecdir ;;
333 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
334 | --libexe=* | --libex=* | --libe=*)
335 libexecdir="$ac_optarg" ;;
337 -localstatedir | --localstatedir | --localstatedi | --localstated \
338 | --localstate | --localstat | --localsta | --localst \
339 | --locals | --local | --loca | --loc | --lo)
340 ac_prev=localstatedir ;;
341 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
342 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
343 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
344 localstatedir="$ac_optarg" ;;
346 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
348 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
349 mandir="$ac_optarg" ;;
352 # Obsolete; use --without-fp.
355 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
359 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
360 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
363 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
364 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
365 | --oldin | --oldi | --old | --ol | --o)
366 ac_prev=oldincludedir ;;
367 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
368 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
369 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
370 oldincludedir="$ac_optarg" ;;
372 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
374 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
375 prefix="$ac_optarg" ;;
377 -program-prefix | --program-prefix | --program-prefi | --program-pref \
378 | --program-pre | --program-pr | --program-p)
379 ac_prev=program_prefix ;;
380 -program-prefix=* | --program-prefix=* | --program-prefi=* \
381 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
382 program_prefix="$ac_optarg" ;;
384 -program-suffix | --program-suffix | --program-suffi | --program-suff \
385 | --program-suf | --program-su | --program-s)
386 ac_prev=program_suffix ;;
387 -program-suffix=* | --program-suffix=* | --program-suffi=* \
388 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
389 program_suffix="$ac_optarg" ;;
391 -program-transform-name | --program-transform-name \
392 | --program-transform-nam | --program-transform-na \
393 | --program-transform-n | --program-transform- \
394 | --program-transform | --program-transfor \
395 | --program-transfo | --program-transf \
396 | --program-trans | --program-tran \
397 | --progr-tra | --program-tr | --program-t)
398 ac_prev=program_transform_name ;;
399 -program-transform-name=* | --program-transform-name=* \
400 | --program-transform-nam=* | --program-transform-na=* \
401 | --program-transform-n=* | --program-transform-=* \
402 | --program-transform=* | --program-transfor=* \
403 | --program-transfo=* | --program-transf=* \
404 | --program-trans=* | --program-tran=* \
405 | --progr-tra=* | --program-tr=* | --program-t=*)
406 program_transform_name="$ac_optarg" ;;
408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
409 | -silent | --silent | --silen | --sile | --sil)
412 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
414 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
416 sbindir="$ac_optarg" ;;
418 -sharedstatedir | --sharedstatedir | --sharedstatedi \
419 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
420 | --sharedst | --shareds | --shared | --share | --shar \
422 ac_prev=sharedstatedir ;;
423 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
424 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
425 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
427 sharedstatedir="$ac_optarg" ;;
429 -site | --site | --sit)
431 -site=* | --site=* | --sit=*)
434 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
436 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
437 srcdir="$ac_optarg" ;;
439 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
440 | --syscon | --sysco | --sysc | --sys | --sy)
441 ac_prev=sysconfdir ;;
442 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
443 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
444 sysconfdir="$ac_optarg" ;;
446 -target | --target | --targe | --targ | --tar | --ta | --t)
448 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
449 target="$ac_optarg" ;;
451 -v | -verbose | --verbose | --verbos | --verbo | --verb)
454 -version | --version | --versio | --versi | --vers)
455 echo "configure generated by autoconf version 2.13"
459 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
460 # Reject names that are not valid shell variable names.
461 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
462 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
464 ac_package=`echo $ac_package| sed 's/-/_/g'`
469 eval "with_${ac_package}='$ac_optarg'" ;;
471 -without-* | --without-*)
472 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
473 # Reject names that are not valid shell variable names.
474 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
475 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
477 ac_package=`echo $ac_package| sed 's/-/_/g'`
478 eval "with_${ac_package}=no" ;;
481 # Obsolete; use --with-x.
484 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
485 | --x-incl | --x-inc | --x-in | --x-i)
486 ac_prev=x_includes ;;
487 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
488 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
489 x_includes="$ac_optarg" ;;
491 -x-libraries | --x-libraries | --x-librarie | --x-librari \
492 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
493 ac_prev=x_libraries ;;
494 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
495 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
496 x_libraries="$ac_optarg" ;;
498 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
502 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
503 echo "configure: warning: $ac_option: invalid host type" 1>&2
505 if test "x$nonopt" != xNONE; then
506 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
514 if test -n "$ac_prev"; then
515 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
518 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
520 # File descriptor usage:
523 # 2 errors and warnings
524 # 3 some systems may open it to /dev/tty
525 # 4 used on the Kubota Titan
526 # 6 checking for... messages and results
527 # 5 compiler messages saved in config.log
528 if test "$silent" = yes; then
536 This file contains any messages produced by compilers while
537 running configure, to aid debugging if configure makes a mistake.
540 # Strip out --no-create and --no-recursion so they do not pile up.
541 # Also quote any args containing shell metacharacters.
546 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
547 | --no-cr | --no-c) ;;
548 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
549 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
550 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
551 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
552 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
557 # Only set these to C if already set. These must not be set unconditionally
558 # because not all systems understand e.g. LANG=C (notably SCO).
559 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
560 # Non-C LC_CTYPE values break the ctype check.
561 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
562 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
563 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
564 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
566 # confdefs.h avoids OS command line length limits that DEFS can exceed.
567 rm -rf conftest* confdefs.h
568 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
571 # A filename unique to this package, relative to the directory that
572 # configure is in, which we can look for to find out if srcdir is correct.
573 ac_unique_file=include/main.h
575 # Find the source files, if location was not specified.
576 if test -z "$srcdir"; then
577 ac_srcdir_defaulted=yes
578 # Try the directory containing this script, then its parent.
580 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
581 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
583 if test ! -r $srcdir/$ac_unique_file; then
587 ac_srcdir_defaulted=no
589 if test ! -r $srcdir/$ac_unique_file; then
590 if test "$ac_srcdir_defaulted" = yes; then
591 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
593 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
596 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
598 # Prefer explicitly selected file to automatically selected ones.
599 if test -z "$CONFIG_SITE"; then
600 if test "x$prefix" != xNONE; then
601 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
603 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
606 for ac_site_file in $CONFIG_SITE; do
607 if test -r "$ac_site_file"; then
608 echo "loading site script $ac_site_file"
613 if test -r "$cache_file"; then
614 echo "loading cache $cache_file"
617 echo "creating cache $cache_file"
622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
623 ac_cpp='$CPP $CPPFLAGS'
624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
626 cross_compiling=$ac_cv_prog_cc_cross
630 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
631 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
632 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
639 ac_n= ac_c='\c' ac_t=
646 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
647 if test -f $ac_dir/install-sh; then
649 ac_install_sh="$ac_aux_dir/install-sh -c"
651 elif test -f $ac_dir/install.sh; then
653 ac_install_sh="$ac_aux_dir/install.sh -c"
657 if test -z "$ac_aux_dir"; then
658 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
660 ac_config_guess=$ac_aux_dir/config.guess
661 ac_config_sub=$ac_aux_dir/config.sub
662 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
665 # Do some error checking and defaulting for the host and target type.
667 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 # 1. You are not allowed to specify --host, --target, and nonopt at the
672 # 2. Host defaults to nonopt.
673 # 3. If nonopt is not specified, then host defaults to the current host,
674 # as determined by config.guess.
675 # 4. Target and build default to nonopt.
676 # 5. If nonopt is not specified, then target and build default to host.
678 # The aliases save the names the user supplied, while $host etc.
679 # will get canonicalized.
680 case $host---$target---$nonopt in
681 NONE---*---* | *---NONE---* | *---*---NONE) ;;
682 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
686 # Make sure we can run config.sub.
687 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
688 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 echo $ac_n "checking host system type""... $ac_c" 1>&6
692 echo "configure:693: checking host system type" >&5
695 case "$host_alias" in
699 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
700 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
702 *) host_alias=$nonopt ;;
706 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
707 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$host" 1>&6
712 echo $ac_n "checking target system type""... $ac_c" 1>&6
713 echo "configure:714: checking target system type" >&5
716 case "$target_alias" in
719 NONE) target_alias=$host_alias ;;
720 *) target_alias=$nonopt ;;
724 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
725 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$target" 1>&6
730 echo $ac_n "checking build system type""... $ac_c" 1>&6
731 echo "configure:732: checking build system type" >&5
734 case "$build_alias" in
737 NONE) build_alias=$host_alias ;;
738 *) build_alias=$nonopt ;;
742 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
743 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
744 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
745 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo "$ac_t""$build" 1>&6
748 test "$host_alias" != "$target_alias" &&
749 test "$program_prefix$program_suffix$program_transform_name" = \
751 program_prefix=${target_alias}-
755 if test -r src/interface/main.c; then
757 VLC_VERSION="0.2.92-dev"
762 if test -r extras/libdvdcss/libdvdcss.c; then
764 LIBDVDCSS_VERSION="1.0.1-dev"
766 if test -r extras/libdvdcss/csskeys.h; then
767 cat >> confdefs.h <<\EOF
768 #define HAVE_CSSKEYS 1
774 save_CFLAGS="${CFLAGS}"
775 save_LDFLAGS="${LDFLAGS}"
777 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${MAKE-make} sets \${MAKE}" >&5
779 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
780 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 cat > conftestmake <<\EOF
785 @echo 'ac_maketemp="${MAKE}"'
787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
788 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
789 if test -n "$ac_maketemp"; then
790 eval ac_cv_prog_make_${ac_make}_set=yes
792 eval ac_cv_prog_make_${ac_make}_set=no
796 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
797 echo "$ac_t""yes" 1>&6
800 echo "$ac_t""no" 1>&6
801 SET_MAKE="MAKE=${MAKE-make}"
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$CC"; then
812 ac_cv_prog_CC="$CC" # Let the user override the test.
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
827 if test -n "$CC"; then
828 echo "$ac_t""$CC" 1>&6
830 echo "$ac_t""no" 1>&6
833 if test -z "$CC"; then
834 # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 if test -n "$CC"; then
842 ac_cv_prog_CC="$CC" # Let the user override the test.
844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy $ac_cv_prog_CC
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
868 set dummy "$ac_dir/$ac_word" "$@"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
879 echo "$ac_t""no" 1>&6
882 if test -z "$CC"; then
885 # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$CC"; then
893 ac_cv_prog_CC="$CC" # Let the user override the test.
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
897 for ac_dir in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp='$CPP $CPPFLAGS'
925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling=$ac_cv_prog_cc_cross
929 cat > conftest.$ac_ext << EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 if { (eval echo configure:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
937 ac_cv_prog_cc_works=yes
938 # If we can't run a trivial program, we are probably using a cross compiler.
939 if (./conftest; exit) 2>/dev/null; then
940 ac_cv_prog_cc_cross=no
942 ac_cv_prog_cc_cross=yes
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 ac_cv_prog_cc_works=no
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no; then
959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling=$ac_cv_prog_cc_cross
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 cat > conftest.c <<EOF
976 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985 if test $ac_cv_prog_gcc = yes; then
991 ac_test_CFLAGS="${CFLAGS+set}"
992 ac_save_CFLAGS="$CFLAGS"
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011 CFLAGS="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013 if test "$GCC" = yes; then
1019 if test "$GCC" = yes; then
1026 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1027 echo "configure:1028: checking how to run the C preprocessor" >&5
1028 # On Suns, sometimes $CPP names a directory.
1029 if test -n "$CPP" && test -d "$CPP"; then
1032 if test -z "$CPP"; then
1033 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 # This must be in double quotes, not single quotes, because CPP may get
1037 # substituted into the Makefile and "${CC-cc}" will confuse make.
1039 # On the NeXT, cc -E runs the code through the compiler's parser,
1040 # not just through cpp.
1041 cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1054 echo "configure: failed program was:" >&5
1055 cat conftest.$ac_ext >&5
1057 CPP="${CC-cc} -E -traditional-cpp"
1058 cat > conftest.$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065 { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1067 if test -z "$ac_err"; then
1071 echo "configure: failed program was:" >&5
1072 cat conftest.$ac_ext >&5
1074 CPP="${CC-cc} -nologo -E"
1075 cat > conftest.$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1082 { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1084 if test -z "$ac_err"; then
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1098 ac_cv_prog_CPP="$CPP"
1100 CPP="$ac_cv_prog_CPP"
1102 ac_cv_prog_CPP="$CPP"
1104 echo "$ac_t""$CPP" 1>&6
1107 if test $host != $build; then
1108 ac_tool_prefix=${host_alias}-
1113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$RANLIB"; then
1121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1125 for ac_dir in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1135 RANLIB="$ac_cv_prog_RANLIB"
1136 if test -n "$RANLIB"; then
1137 echo "$ac_t""$RANLIB" 1>&6
1139 echo "$ac_t""no" 1>&6
1143 if test -z "$ac_cv_prog_RANLIB"; then
1144 if test -n "$ac_tool_prefix"; then
1145 # Extract the first word of "ranlib", so it can be a program name with args.
1146 set dummy ranlib; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$RANLIB"; then
1153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_RANLIB="ranlib"
1165 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1168 RANLIB="$ac_cv_prog_RANLIB"
1169 if test -n "$RANLIB"; then
1170 echo "$ac_t""$RANLIB" 1>&6
1172 echo "$ac_t""no" 1>&6
1181 # Extract the first word of "gmake", so it can be a program name with args.
1182 set dummy gmake; ac_word=$2
1183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_word" >&5
1185 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1190 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1193 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1198 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1206 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1210 GMAKE="$ac_cv_path_GMAKE"
1211 if test -n "$GMAKE"; then
1212 echo "$ac_t""$GMAKE" 1>&6
1214 echo "$ac_t""no" 1>&6
1217 if test "x$GMAKE" = "xno"; then
1218 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1219 echo "configure:1220: checking whether GNU make is installed" >&5
1220 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if make --version | grep -q -i gnu; then
1226 echo "This software needs you to install GNU make to compile properly."
1227 echo "You can get it from http://www.gnu.org/."
1232 echo "$ac_t""$ac_cv_gmake" 1>&6
1238 ALL_LINGUAS="de fr no ru nl"
1240 cat >> confdefs.h <<EOF
1241 #define PACKAGE "vlc"
1244 cat >> confdefs.h <<EOF
1245 #define VERSION "$VLC_VERSION"
1248 # Extract the first word of "ranlib", so it can be a program name with args.
1249 set dummy ranlib; ac_word=$2
1250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1251 echo "configure:1252: checking for $ac_word" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 if test -n "$RANLIB"; then
1256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1260 for ac_dir in $ac_dummy; do
1261 test -z "$ac_dir" && ac_dir=.
1262 if test -f $ac_dir/$ac_word; then
1263 ac_cv_prog_RANLIB="ranlib"
1268 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1271 RANLIB="$ac_cv_prog_RANLIB"
1272 if test -n "$RANLIB"; then
1273 echo "$ac_t""$RANLIB" 1>&6
1275 echo "$ac_t""no" 1>&6
1279 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1280 echo "configure:1281: checking for strerror in -lcposix" >&5
1281 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 ac_save_LIBS="$LIBS"
1286 LIBS="-lcposix $LIBS"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1301 eval "ac_cv_lib_$ac_lib_var=yes"
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1306 eval "ac_cv_lib_$ac_lib_var=no"
1309 LIBS="$ac_save_LIBS"
1312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1314 LIBS="$LIBS -lcposix"
1316 echo "$ac_t""no" 1>&6
1321 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1322 echo "configure:1323: checking for ANSI C header files" >&5
1323 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1335 { (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1337 if test -z "$ac_err"; then
1339 ac_cv_header_stdc=yes
1342 echo "configure: failed program was:" >&5
1343 cat conftest.$ac_ext >&5
1345 ac_cv_header_stdc=no
1349 if test $ac_cv_header_stdc = yes; then
1350 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1357 egrep "memchr" >/dev/null 2>&1; then
1361 ac_cv_header_stdc=no
1367 if test $ac_cv_header_stdc = yes; then
1368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1375 egrep "free" >/dev/null 2>&1; then
1379 ac_cv_header_stdc=no
1385 if test $ac_cv_header_stdc = yes; then
1386 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1387 if test "$cross_compiling" = yes; then
1390 cat > conftest.$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1394 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1395 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1397 int main () { int i; for (i = 0; i < 256; i++)
1398 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1409 ac_cv_header_stdc=no
1417 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1418 if test $ac_cv_header_stdc = yes; then
1419 cat >> confdefs.h <<\EOF
1420 #define STDC_HEADERS 1
1425 echo $ac_n "checking for working const""... $ac_c" 1>&6
1426 echo "configure:1427: checking for working const" >&5
1427 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1436 /* Ultrix mips cc rejects this. */
1437 typedef int charset[2]; const charset x;
1438 /* SunOS 4.1.1 cc rejects this. */
1439 char const *const *ccp;
1441 /* NEC SVR4.0.2 mips cc rejects this. */
1442 struct point {int x, y;};
1443 static struct point const zero = {0,0};
1444 /* AIX XL C 1.02.0.0 rejects this.
1445 It does not let you subtract one const X* pointer from another in an arm
1446 of an if-expression whose if-part is not a constant expression */
1447 const char *g = "string";
1448 ccp = &g + (g ? g-g : 0);
1449 /* HPUX 7.0 cc rejects these. */
1452 ccp = (char const *const *) p;
1453 { /* SCO 3.2v4 cc rejects this. */
1455 char const *s = 0 ? (char *) 0 : (char const *) 0;
1459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1461 const int *foo = &x[0];
1464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1465 typedef const int *iptr;
1469 { /* AIX XL C 1.02.0.0 rejects this saying
1470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1471 struct s { int j; const int *ap[3]; };
1472 struct s *b; b->j = 5;
1474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1480 if { (eval echo configure:1481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 echo "configure: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1492 echo "$ac_t""$ac_cv_c_const" 1>&6
1493 if test $ac_cv_c_const = no; then
1494 cat >> confdefs.h <<\EOF
1500 echo $ac_n "checking for inline""... $ac_c" 1>&6
1501 echo "configure:1502: checking for inline" >&5
1502 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1506 for ac_kw in inline __inline__ __inline; do
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1515 if { (eval echo configure:1516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1517 ac_cv_c_inline=$ac_kw; break
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1527 echo "$ac_t""$ac_cv_c_inline" 1>&6
1528 case "$ac_cv_c_inline" in
1530 no) cat >> confdefs.h <<\EOF
1534 *) cat >> confdefs.h <<EOF
1535 #define inline $ac_cv_c_inline
1540 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1541 echo "configure:1542: checking for off_t" >&5
1542 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 cat > conftest.$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1548 #include <sys/types.h>
1554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1555 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1557 ac_cv_type_off_t=yes
1565 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1566 if test $ac_cv_type_off_t = no; then
1567 cat >> confdefs.h <<\EOF
1573 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1574 echo "configure:1575: checking for size_t" >&5
1575 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 #include <sys/types.h>
1587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1588 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1590 ac_cv_type_size_t=yes
1593 ac_cv_type_size_t=no
1598 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1599 if test $ac_cv_type_size_t = no; then
1600 cat >> confdefs.h <<\EOF
1601 #define size_t unsigned
1606 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1607 # for constant arguments. Useless!
1608 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1609 echo "configure:1610: checking for working alloca.h" >&5
1610 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 cat > conftest.$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1618 char *p = alloca(2 * sizeof(int));
1621 if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1623 ac_cv_header_alloca_h=yes
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1628 ac_cv_header_alloca_h=no
1633 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1634 if test $ac_cv_header_alloca_h = yes; then
1635 cat >> confdefs.h <<\EOF
1636 #define HAVE_ALLOCA_H 1
1641 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1642 echo "configure:1643: checking for alloca" >&5
1643 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1651 # define alloca __builtin_alloca
1654 # include <malloc.h>
1655 # define alloca _alloca
1658 # include <alloca.h>
1663 # ifndef alloca /* predefined by HP cc +Olibcalls */
1672 char *p = (char *) alloca(1);
1675 if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1677 ac_cv_func_alloca_works=yes
1679 echo "configure: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
1682 ac_cv_func_alloca_works=no
1687 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1688 if test $ac_cv_func_alloca_works = yes; then
1689 cat >> confdefs.h <<\EOF
1690 #define HAVE_ALLOCA 1
1695 if test $ac_cv_func_alloca_works = no; then
1696 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1697 # that cause trouble. Some versions do not even contain alloca or
1698 # contain a buggy version. If you still want to use their alloca,
1699 # use ar to extract alloca.o from them instead of compiling alloca.c.
1700 ALLOCA=alloca.${ac_objext}
1701 cat >> confdefs.h <<\EOF
1706 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1707 echo "configure:1708: checking whether alloca needs Cray hooks" >&5
1708 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #if defined(CRAY) && ! defined(CRAY2)
1721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1722 egrep "webecray" >/dev/null 2>&1; then
1733 echo "$ac_t""$ac_cv_os_cray" 1>&6
1734 if test $ac_cv_os_cray = yes; then
1735 for ac_func in _getb67 GETB67 getb67; do
1736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_func" >&5
1738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $ac_func(); below. */
1747 /* Override any gcc2 internal prototype to avoid an error. */
1748 /* We use char because int might match the return type of a gcc2
1749 builtin and then its argument prototype would still apply. */
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1765 if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1767 eval "ac_cv_func_$ac_func=yes"
1769 echo "configure: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1772 eval "ac_cv_func_$ac_func=no"
1777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1778 echo "$ac_t""yes" 1>&6
1779 cat >> confdefs.h <<EOF
1780 #define CRAY_STACKSEG_END $ac_func
1785 echo "$ac_t""no" 1>&6
1791 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1792 echo "configure:1793: checking stack direction for C alloca" >&5
1793 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 if test "$cross_compiling" = yes; then
1797 ac_cv_c_stack_direction=0
1799 cat > conftest.$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1802 find_stack_direction ()
1804 static char *addr = 0;
1809 return find_stack_direction ();
1812 return (&dummy > addr) ? 1 : -1;
1816 exit (find_stack_direction() < 0);
1819 if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1821 ac_cv_c_stack_direction=1
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 ac_cv_c_stack_direction=-1
1833 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1834 cat >> confdefs.h <<EOF
1835 #define STACK_DIRECTION $ac_cv_c_stack_direction
1840 for ac_hdr in unistd.h
1842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_hdr" >&5
1845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1854 { (eval echo configure:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1856 if test -z "$ac_err"; then
1858 eval "ac_cv_header_$ac_safe=yes"
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1864 eval "ac_cv_header_$ac_safe=no"
1868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1869 echo "$ac_t""yes" 1>&6
1870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1871 cat >> confdefs.h <<EOF
1872 #define $ac_tr_hdr 1
1876 echo "$ac_t""no" 1>&6
1880 for ac_func in getpagesize
1882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_func" >&5
1884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $ac_func(); below. */
1893 /* Override any gcc2 internal prototype to avoid an error. */
1894 /* We use char because int might match the return type of a gcc2
1895 builtin and then its argument prototype would still apply. */
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1913 eval "ac_cv_func_$ac_func=yes"
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1918 eval "ac_cv_func_$ac_func=no"
1923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1924 echo "$ac_t""yes" 1>&6
1925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1926 cat >> confdefs.h <<EOF
1927 #define $ac_tr_func 1
1931 echo "$ac_t""no" 1>&6
1935 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1936 echo "configure:1937: checking for working mmap" >&5
1937 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 if test "$cross_compiling" = yes; then
1941 ac_cv_func_mmap_fixed_mapped=no
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1947 /* Thanks to Mike Haertel and Jim Avera for this test.
1948 Here is a matrix of mmap possibilities:
1949 mmap private not fixed
1950 mmap private fixed at somewhere currently unmapped
1951 mmap private fixed at somewhere already mapped
1952 mmap shared not fixed
1953 mmap shared fixed at somewhere currently unmapped
1954 mmap shared fixed at somewhere already mapped
1955 For private mappings, we should verify that changes cannot be read()
1956 back from the file, nor mmap's back from the file at a different
1957 address. (There have been systems where private was not correctly
1958 implemented like the infamous i386 svr4.0, and systems where the
1959 VM page cache was not coherent with the filesystem buffer cache
1960 like early versions of FreeBSD and possibly contemporary NetBSD.)
1961 For shared mappings, we should conversely verify that changes get
1962 propogated back to all the places they're supposed to be.
1964 Grep wants private fixed already mapped.
1965 The main things grep needs to know about mmap are:
1966 * does it exist and is it safe to write into the mmap'd area
1967 * how to use it (BSD variants) */
1968 #include <sys/types.h>
1970 #include <sys/mman.h>
1972 /* This mess was copied from the GNU getpagesize.h. */
1973 #ifndef HAVE_GETPAGESIZE
1974 # ifdef HAVE_UNISTD_H
1975 # include <unistd.h>
1978 /* Assume that all systems that can run configure have sys/param.h. */
1979 # ifndef HAVE_SYS_PARAM_H
1980 # define HAVE_SYS_PARAM_H 1
1983 # ifdef _SC_PAGESIZE
1984 # define getpagesize() sysconf(_SC_PAGESIZE)
1985 # else /* no _SC_PAGESIZE */
1986 # ifdef HAVE_SYS_PARAM_H
1987 # include <sys/param.h>
1988 # ifdef EXEC_PAGESIZE
1989 # define getpagesize() EXEC_PAGESIZE
1990 # else /* no EXEC_PAGESIZE */
1992 # define getpagesize() NBPG * CLSIZE
1995 # endif /* no CLSIZE */
1996 # else /* no NBPG */
1998 # define getpagesize() NBPC
1999 # else /* no NBPC */
2001 # define getpagesize() PAGESIZE
2002 # endif /* PAGESIZE */
2003 # endif /* no NBPC */
2004 # endif /* no NBPG */
2005 # endif /* no EXEC_PAGESIZE */
2006 # else /* no HAVE_SYS_PARAM_H */
2007 # define getpagesize() 8192 /* punt totally */
2008 # endif /* no HAVE_SYS_PARAM_H */
2009 # endif /* no _SC_PAGESIZE */
2011 #endif /* no HAVE_GETPAGESIZE */
2014 extern "C" { void *malloc(unsigned); }
2022 char *data, *data2, *data3;
2026 pagesize = getpagesize();
2029 * First, make a file with some known garbage in it.
2031 data = malloc(pagesize);
2034 for (i = 0; i < pagesize; ++i)
2035 *(data + i) = rand();
2037 fd = creat("conftestmmap", 0600);
2040 if (write(fd, data, pagesize) != pagesize)
2045 * Next, try to mmap the file at a fixed address which
2046 * already has something else allocated at it. If we can,
2047 * also make sure that we see the same garbage.
2049 fd = open("conftestmmap", O_RDWR);
2052 data2 = malloc(2 * pagesize);
2055 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2056 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2057 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2059 for (i = 0; i < pagesize; ++i)
2060 if (*(data + i) != *(data2 + i))
2064 * Finally, make sure that changes to the mapped area
2065 * do not percolate back to the file as seen by read().
2066 * (This is a bug on some variants of i386 svr4.0.)
2068 for (i = 0; i < pagesize; ++i)
2069 *(data2 + i) = *(data2 + i) + 1;
2070 data3 = malloc(pagesize);
2073 if (read(fd, data3, pagesize) != pagesize)
2075 for (i = 0; i < pagesize; ++i)
2076 if (*(data + i) != *(data3 + i))
2079 unlink("conftestmmap");
2084 if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2086 ac_cv_func_mmap_fixed_mapped=yes
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2091 ac_cv_func_mmap_fixed_mapped=no
2098 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2099 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2100 cat >> confdefs.h <<\EOF
2107 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2108 echo "configure:2109: checking whether we are using the GNU C Library 2.1 or newer" >&5
2109 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2116 #include <features.h>
2117 #ifdef __GNU_LIBRARY__
2118 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2125 egrep "Lucky GNU user" >/dev/null 2>&1; then
2127 ac_cv_gnu_library_2_1=yes
2130 ac_cv_gnu_library_2_1=no
2138 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2140 GLIBC21="$ac_cv_gnu_library_2_1"
2144 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2145 stdlib.h string.h unistd.h sys/param.h
2147 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_hdr" >&5
2150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 cat > conftest.$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2159 { (eval echo configure:2160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2161 if test -z "$ac_err"; then
2163 eval "ac_cv_header_$ac_safe=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 eval "ac_cv_header_$ac_safe=no"
2173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2176 cat >> confdefs.h <<EOF
2177 #define $ac_tr_hdr 1
2181 echo "$ac_t""no" 1>&6
2185 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2186 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2187 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2190 echo "configure:2191: checking for $ac_func" >&5
2191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 /* System header to define __stub macros and hopefully few prototypes,
2198 which can conflict with char $ac_func(); below. */
2200 /* Override any gcc2 internal prototype to avoid an error. */
2201 /* We use char because int might match the return type of a gcc2
2202 builtin and then its argument prototype would still apply. */
2207 /* The GNU C library defines this for functions which it implements
2208 to always fail with ENOSYS. Some functions are actually named
2209 something starting with __ and the normal name is an alias. */
2210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2218 if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2220 eval "ac_cv_func_$ac_func=yes"
2222 echo "configure: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2225 eval "ac_cv_func_$ac_func=no"
2230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2233 cat >> confdefs.h <<EOF
2234 #define $ac_tr_func 1
2238 echo "$ac_t""no" 1>&6
2245 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2246 if test "${with_libiconv_prefix+set}" = set; then
2247 withval="$with_libiconv_prefix"
2249 for dir in `echo "$withval" | tr : ' '`; do
2250 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2251 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2257 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2258 echo "configure:2259: checking for iconv" >&5
2259 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2263 am_cv_func_iconv="no, consider installing GNU libiconv"
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2271 iconv_t cd = iconv_open("","");
2272 iconv(cd,NULL,NULL,NULL,NULL);
2276 if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2278 am_cv_func_iconv=yes
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2284 if test "$am_cv_func_iconv" != yes; then
2285 am_save_LIBS="$LIBS"
2286 LIBS="$LIBS -liconv"
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2293 iconv_t cd = iconv_open("","");
2294 iconv(cd,NULL,NULL,NULL,NULL);
2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301 am_cv_func_iconv=yes
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2307 LIBS="$am_save_LIBS"
2312 echo "$ac_t""$am_cv_func_iconv" 1>&6
2313 if test "$am_cv_func_iconv" = yes; then
2314 cat >> confdefs.h <<\EOF
2315 #define HAVE_ICONV 1
2318 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2319 echo "configure:2320: checking for iconv declaration" >&5
2320 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2334 #if defined(__STDC__) || defined(__cplusplus)
2335 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2344 if { (eval echo configure:2345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2346 am_cv_proto_iconv_arg1=""
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2351 am_cv_proto_iconv_arg1="const"
2354 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);"
2357 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2358 echo "$ac_t""${ac_t:-
2359 }$am_cv_proto_iconv" 1>&6
2360 cat >> confdefs.h <<EOF
2361 #define ICONV_CONST $am_cv_proto_iconv_arg1
2366 if test "$am_cv_lib_iconv" = yes; then
2372 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2373 echo "configure:2374: checking for nl_langinfo and CODESET" >&5
2374 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 #include <langinfo.h>
2382 char* cs = nl_langinfo(CODESET);
2385 if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2387 am_cv_langinfo_codeset=yes
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2392 am_cv_langinfo_codeset=no
2398 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2399 if test $am_cv_langinfo_codeset = yes; then
2400 cat >> confdefs.h <<\EOF
2401 #define HAVE_LANGINFO_CODESET 1
2406 if test $ac_cv_header_locale_h = yes; then
2407 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2408 echo "configure:2409: checking for LC_MESSAGES" >&5
2409 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2422 am_cv_val_LC_MESSAGES=yes
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2427 am_cv_val_LC_MESSAGES=no
2432 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2433 if test $am_cv_val_LC_MESSAGES = yes; then
2434 cat >> confdefs.h <<\EOF
2435 #define HAVE_LC_MESSAGES 1
2440 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2441 echo "configure:2442: checking whether NLS is requested" >&5
2442 # Check whether --enable-nls or --disable-nls was given.
2443 if test "${enable_nls+set}" = set; then
2444 enableval="$enable_nls"
2450 echo "$ac_t""$USE_NLS" 1>&6
2453 BUILD_INCLUDED_LIBINTL=no
2454 USE_INCLUDED_LIBINTL=no
2457 if test "$USE_NLS" = "yes"; then
2458 cat >> confdefs.h <<\EOF
2459 #define ENABLE_NLS 1
2462 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2463 echo "configure:2464: checking whether included gettext is requested" >&5
2464 # Check whether --with-included-gettext or --without-included-gettext was given.
2465 if test "${with_included_gettext+set}" = set; then
2466 withval="$with_included_gettext"
2467 nls_cv_force_use_gnu_gettext=$withval
2469 nls_cv_force_use_gnu_gettext=no
2472 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2474 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2475 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2481 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2482 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2483 echo "configure:2484: checking for libintl.h" >&5
2484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 #include <libintl.h>
2492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2493 { (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2495 if test -z "$ac_err"; then
2497 eval "ac_cv_header_$ac_safe=yes"
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 eval "ac_cv_header_$ac_safe=no"
2507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2508 echo "$ac_t""yes" 1>&6
2509 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2510 echo "configure:2511: checking for GNU gettext in libc" >&5
2511 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2517 #include <libintl.h>
2518 extern int _nl_msg_cat_cntr;
2520 bindtextdomain ("", "");
2521 return (int) gettext ("") + _nl_msg_cat_cntr
2524 if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2526 gt_cv_func_gnugettext1_libc=yes
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 gt_cv_func_gnugettext1_libc=no
2536 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2538 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2539 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2540 echo "configure:2541: checking for GNU gettext in libintl" >&5
2541 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 gt_save_LIBS="$LIBS"
2545 LIBS="$LIBS -lintl $LIBICONV"
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2549 #include <libintl.h>
2550 extern int _nl_msg_cat_cntr;
2552 bindtextdomain ("", "");
2553 return (int) gettext ("") + _nl_msg_cat_cntr
2556 if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2558 gt_cv_func_gnugettext1_libintl=yes
2560 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2563 gt_cv_func_gnugettext1_libintl=no
2566 LIBS="$gt_save_LIBS"
2569 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2572 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2573 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2574 && test "$PACKAGE" != gettext; }; then
2575 cat >> confdefs.h <<\EOF
2576 #define HAVE_GETTEXT 1
2580 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2581 INTLLIBS="-lintl $LIBICONV"
2584 gt_save_LIBS="$LIBS"
2585 LIBS="$LIBS $INTLLIBS"
2586 for ac_func in dcgettext
2588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2589 echo "configure:2590: checking for $ac_func" >&5
2590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 /* System header to define __stub macros and hopefully few prototypes,
2597 which can conflict with char $ac_func(); below. */
2599 /* Override any gcc2 internal prototype to avoid an error. */
2600 /* We use char because int might match the return type of a gcc2
2601 builtin and then its argument prototype would still apply. */
2606 /* The GNU C library defines this for functions which it implements
2607 to always fail with ENOSYS. Some functions are actually named
2608 something starting with __ and the normal name is an alias. */
2609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2617 if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2619 eval "ac_cv_func_$ac_func=yes"
2621 echo "configure: failed program was:" >&5
2622 cat conftest.$ac_ext >&5
2624 eval "ac_cv_func_$ac_func=no"
2629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2630 echo "$ac_t""yes" 1>&6
2631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2632 cat >> confdefs.h <<EOF
2633 #define $ac_tr_func 1
2637 echo "$ac_t""no" 1>&6
2641 LIBS="$gt_save_LIBS"
2643 # Extract the first word of "msgfmt", so it can be a program name with args.
2644 set dummy msgfmt; ac_word=$2
2645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2646 echo "configure:2647: checking for $ac_word" >&5
2647 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2652 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2656 for ac_dir in $PATH; do
2657 test -z "$ac_dir" && ac_dir=.
2658 if test -f $ac_dir/$ac_word; then
2659 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2660 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2666 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2670 MSGFMT="$ac_cv_path_MSGFMT"
2671 if test "$MSGFMT" != ":"; then
2672 echo "$ac_t""$MSGFMT" 1>&6
2674 echo "$ac_t""no" 1>&6
2677 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2678 set dummy gmsgfmt; ac_word=$2
2679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_word" >&5
2681 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2686 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2689 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2694 for ac_dir in $ac_dummy; do
2695 test -z "$ac_dir" && ac_dir=.
2696 if test -f $ac_dir/$ac_word; then
2697 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2702 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2706 GMSGFMT="$ac_cv_path_GMSGFMT"
2707 if test -n "$GMSGFMT"; then
2708 echo "$ac_t""$GMSGFMT" 1>&6
2710 echo "$ac_t""no" 1>&6
2714 # Extract the first word of "xgettext", so it can be a program name with args.
2715 set dummy xgettext; 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_XGETTEXT'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2723 ac_cv_path_XGETTEXT="$XGETTEXT" # 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 --omit-header /dev/null >/dev/null 2>&1; then
2731 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2737 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2741 XGETTEXT="$ac_cv_path_XGETTEXT"
2742 if test "$XGETTEXT" != ":"; then
2743 echo "$ac_t""$XGETTEXT" 1>&6
2745 echo "$ac_t""no" 1>&6
2753 echo "$ac_t""no" 1>&6
2757 if test "$CATOBJEXT" = "NONE"; then
2758 nls_cv_use_gnu_gettext=yes
2762 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2763 INTLOBJS="\$(GETTOBJS)"
2764 # Extract the first word of "msgfmt", so it can be a program name with args.
2765 set dummy msgfmt; ac_word=$2
2766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_word" >&5
2768 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2773 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2777 for ac_dir in $PATH; do
2778 test -z "$ac_dir" && ac_dir=.
2779 if test -f $ac_dir/$ac_word; then
2780 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2781 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2787 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2791 MSGFMT="$ac_cv_path_MSGFMT"
2792 if test "$MSGFMT" != ":"; then
2793 echo "$ac_t""$MSGFMT" 1>&6
2795 echo "$ac_t""no" 1>&6
2798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2799 set dummy gmsgfmt; ac_word=$2
2800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2801 echo "configure:2802: checking for $ac_word" >&5
2802 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2810 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2815 for ac_dir in $ac_dummy; do
2816 test -z "$ac_dir" && ac_dir=.
2817 if test -f $ac_dir/$ac_word; then
2818 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2823 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2827 GMSGFMT="$ac_cv_path_GMSGFMT"
2828 if test -n "$GMSGFMT"; then
2829 echo "$ac_t""$GMSGFMT" 1>&6
2831 echo "$ac_t""no" 1>&6
2834 # Extract the first word of "xgettext", so it can be a program name with args.
2835 set dummy xgettext; ac_word=$2
2836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2837 echo "configure:2838: checking for $ac_word" >&5
2838 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2843 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2847 for ac_dir in $PATH; do
2848 test -z "$ac_dir" && ac_dir=.
2849 if test -f $ac_dir/$ac_word; then
2850 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2851 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2857 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2861 XGETTEXT="$ac_cv_path_XGETTEXT"
2862 if test "$XGETTEXT" != ":"; then
2863 echo "$ac_t""$XGETTEXT" 1>&6
2865 echo "$ac_t""no" 1>&6
2869 BUILD_INCLUDED_LIBINTL=yes
2870 USE_INCLUDED_LIBINTL=yes
2872 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2873 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2876 if test "$GMSGFMT" != ":"; then
2877 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2880 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2885 if test "$XGETTEXT" != ":"; then
2886 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2889 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2899 if test "$PACKAGE" = gettext; then
2900 BUILD_INCLUDED_LIBINTL=yes
2903 for ac_prog in bison
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; 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_prog_INTLBISON'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 if test -n "$INTLBISON"; then
2913 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2917 for ac_dir in $ac_dummy; do
2918 test -z "$ac_dir" && ac_dir=.
2919 if test -f $ac_dir/$ac_word; then
2920 ac_cv_prog_INTLBISON="$ac_prog"
2927 INTLBISON="$ac_cv_prog_INTLBISON"
2928 if test -n "$INTLBISON"; then
2929 echo "$ac_t""$INTLBISON" 1>&6
2931 echo "$ac_t""no" 1>&6
2934 test -n "$INTLBISON" && break
2937 if test -z "$INTLBISON"; then
2940 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2941 echo "configure:2942: checking version of bison" >&5
2942 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2943 case $ac_prog_version in
2944 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2945 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2946 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2947 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2949 echo "$ac_t""$ac_prog_version" 1>&6
2951 if test $ac_verc_fail = yes; then
2955 for lang in $ALL_LINGUAS; do
2956 GMOFILES="$GMOFILES $lang.gmo"
2957 POFILES="$POFILES $lang.po"
2971 nls_cv_header_libgt=
2983 if test "x$CATOBJEXT" != "x"; then
2984 if test "x$ALL_LINGUAS" = "x"; then
2987 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2988 echo "configure:2989: checking for catalogs to be installed" >&5
2990 for presentlang in $ALL_LINGUAS; do
2992 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2993 # Use the presentlang catalog if desiredlang is
2994 # a. equal to presentlang, or
2995 # b. a variant of presentlang (because in this case,
2996 # presentlang can be used as a fallback for messages
2997 # which are not translated in the desiredlang catalog).
2998 case "$desiredlang" in
2999 "$presentlang"*) useit=yes;;
3002 if test $useit = yes; then
3003 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3006 LINGUAS=$NEW_LINGUAS
3007 echo "$ac_t""$LINGUAS" 1>&6
3010 if test -n "$LINGUAS"; then
3011 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3016 if test -n "$ac_aux_dir"; then
3017 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3019 if test -z "$MKINSTALLDIRS"; then
3020 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3024 INTL_LIBTOOL_SUFFIX_PREFIX=
3028 # Find a good install program. We prefer a C program (faster),
3029 # so one script is as good as another. But avoid the broken or
3030 # incompatible versions:
3031 # SysV /etc/install, /usr/sbin/install
3032 # SunOS /usr/etc/install
3033 # IRIX /sbin/install
3035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3038 # ./install, which can be erroneously created by make from ./install.sh.
3039 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3040 echo "configure:3041: checking for a BSD compatible install" >&5
3041 if test -z "$INSTALL"; then
3042 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3046 for ac_dir in $PATH; do
3047 # Account for people who put trailing slashes in PATH elements.
3049 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3051 # OSF1 and SCO ODT 3.0 have their own names for install.
3052 # Don't use installbsd from OSF since it installs stuff as root
3054 for ac_prog in ginstall scoinst install; do
3055 if test -f $ac_dir/$ac_prog; then
3056 if test $ac_prog = install &&
3057 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3058 # AIX install. It has an incompatible calling convention.
3061 ac_cv_path_install="$ac_dir/$ac_prog -c"
3072 if test "${ac_cv_path_install+set}" = set; then
3073 INSTALL="$ac_cv_path_install"
3075 # As a last resort, use the slow shell script. We don't cache a
3076 # path for INSTALL within a source directory, because that will
3077 # break other packages using the cache if that directory is
3078 # removed, or if the path is relative.
3079 INSTALL="$ac_install_sh"
3082 echo "$ac_t""$INSTALL" 1>&6
3084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3085 # It thinks the first close brace ends the variable substitution.
3086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3093 case x"${target_os}" in
3108 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3109 set dummy ${ac_tool_prefix}windres; ac_word=$2
3110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3111 echo "configure:3112: checking for $ac_word" >&5
3112 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 if test -n "$WINDRES"; then
3116 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3120 for ac_dir in $ac_dummy; do
3121 test -z "$ac_dir" && ac_dir=.
3122 if test -f $ac_dir/$ac_word; then
3123 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3130 WINDRES="$ac_cv_prog_WINDRES"
3131 if test -n "$WINDRES"; then
3132 echo "$ac_t""$WINDRES" 1>&6
3134 echo "$ac_t""no" 1>&6
3138 if test -z "$ac_cv_prog_WINDRES"; then
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "windres", so it can be a program name with args.
3141 set dummy windres; ac_word=$2
3142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3143 echo "configure:3144: checking for $ac_word" >&5
3144 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 if test -n "$WINDRES"; then
3148 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3152 for ac_dir in $ac_dummy; do
3153 test -z "$ac_dir" && ac_dir=.
3154 if test -f $ac_dir/$ac_word; then
3155 ac_cv_prog_WINDRES="windres"
3160 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3163 WINDRES="$ac_cv_prog_WINDRES"
3164 if test -n "$WINDRES"; then
3165 echo "$ac_t""$WINDRES" 1>&6
3167 echo "$ac_t""no" 1>&6
3175 LIB_IPV4="${LIB_IPV4} -lws2_32"
3176 LIB_RC="${LIB_RC} -lws2_32"
3180 LIB_X11="${LIB_X11} -lsocket"
3181 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3185 LIB_IPV4="${LIB_IPV4} -lbind"
3186 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3187 PLDFLAGS="${PLDFLAGS} -nostart"
3194 for ac_func in gettimeofday select strerror strtod strtol isatty
3196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3197 echo "configure:3198: checking for $ac_func" >&5
3198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 cat > conftest.$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 /* System header to define __stub macros and hopefully few prototypes,
3205 which can conflict with char $ac_func(); below. */
3207 /* Override any gcc2 internal prototype to avoid an error. */
3208 /* We use char because int might match the return type of a gcc2
3209 builtin and then its argument prototype would still apply. */
3214 /* The GNU C library defines this for functions which it implements
3215 to always fail with ENOSYS. Some functions are actually named
3216 something starting with __ and the normal name is an alias. */
3217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 eval "ac_cv_func_$ac_func=yes"
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 eval "ac_cv_func_$ac_func=no"
3237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3238 echo "$ac_t""yes" 1>&6
3239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3240 cat >> confdefs.h <<EOF
3241 #define $ac_tr_func 1
3245 echo "$ac_t""no" 1>&6
3249 echo $ac_n "checking for connect""... $ac_c" 1>&6
3250 echo "configure:3251: checking for connect" >&5
3251 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 cat > conftest.$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 /* System header to define __stub macros and hopefully few prototypes,
3258 which can conflict with char connect(); below. */
3260 /* Override any gcc2 internal prototype to avoid an error. */
3261 /* We use char because int might match the return type of a gcc2
3262 builtin and then its argument prototype would still apply. */
3267 /* The GNU C library defines this for functions which it implements
3268 to always fail with ENOSYS. Some functions are actually named
3269 something starting with __ and the normal name is an alias. */
3270 #if defined (__stub_connect) || defined (__stub___connect)
3278 if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3280 eval "ac_cv_func_connect=yes"
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3285 eval "ac_cv_func_connect=no"
3290 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3294 echo "$ac_t""no" 1>&6
3296 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3297 echo "configure:3298: checking for connect in -lsocket" >&5
3298 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 ac_save_LIBS="$LIBS"
3303 LIBS="-lsocket $LIBS"
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 /* Override any gcc2 internal prototype to avoid an error. */
3308 /* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 eval "ac_cv_lib_$ac_lib_var=yes"
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 eval "ac_cv_lib_$ac_lib_var=no"
3326 LIBS="$ac_save_LIBS"
3329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3331 LIB_IPV4="${LIB_IPV4} -lsocket"
3332 LIB_VLC="${LIB_VLC} -lsocket"
3335 echo "$ac_t""no" 1>&6
3340 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3341 echo "configure:3342: checking for gethostbyname" >&5
3342 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 /* System header to define __stub macros and hopefully few prototypes,
3349 which can conflict with char gethostbyname(); below. */
3351 /* Override any gcc2 internal prototype to avoid an error. */
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3354 char gethostbyname();
3358 /* The GNU C library defines this for functions which it implements
3359 to always fail with ENOSYS. Some functions are actually named
3360 something starting with __ and the normal name is an alias. */
3361 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3369 if { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3371 eval "ac_cv_func_gethostbyname=yes"
3373 echo "configure: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3376 eval "ac_cv_func_gethostbyname=no"
3381 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3385 echo "$ac_t""no" 1>&6
3387 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3388 echo "configure:3389: checking for gethostbyname in -lnsl" >&5
3389 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 ac_save_LIBS="$LIBS"
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 /* Override any gcc2 internal prototype to avoid an error. */
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3401 char gethostbyname();
3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 eval "ac_cv_lib_$ac_lib_var=yes"
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3414 eval "ac_cv_lib_$ac_lib_var=no"
3417 LIBS="$ac_save_LIBS"
3420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3421 echo "$ac_t""yes" 1>&6
3422 LIB_IPV4="${LIB_IPV4} -lnsl"
3424 echo "$ac_t""no" 1>&6
3430 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3431 echo "configure:3432: checking for gethostbyname" >&5
3432 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 /* System header to define __stub macros and hopefully few prototypes,
3439 which can conflict with char gethostbyname(); below. */
3441 /* Override any gcc2 internal prototype to avoid an error. */
3442 /* We use char because int might match the return type of a gcc2
3443 builtin and then its argument prototype would still apply. */
3444 char gethostbyname();
3448 /* The GNU C library defines this for functions which it implements
3449 to always fail with ENOSYS. Some functions are actually named
3450 something starting with __ and the normal name is an alias. */
3451 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3459 if { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3461 eval "ac_cv_func_gethostbyname=yes"
3463 echo "configure: failed program was:" >&5
3464 cat conftest.$ac_ext >&5
3466 eval "ac_cv_func_gethostbyname=no"
3471 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3472 echo "$ac_t""yes" 1>&6
3475 echo "$ac_t""no" 1>&6
3477 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3478 echo "configure:3479: checking for gethostbyname in -lbind" >&5
3479 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 ac_save_LIBS="$LIBS"
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 /* Override any gcc2 internal prototype to avoid an error. */
3489 /* We use char because int might match the return type of a gcc2
3490 builtin and then its argument prototype would still apply. */
3491 char gethostbyname();
3497 if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3499 eval "ac_cv_lib_$ac_lib_var=yes"
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3504 eval "ac_cv_lib_$ac_lib_var=no"
3507 LIBS="$ac_save_LIBS"
3510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3512 LIB_IPV4="${LIB_IPV4} -lbind"
3514 echo "$ac_t""no" 1>&6
3520 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3521 echo "configure:3522: checking for nanosleep" >&5
3522 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 /* System header to define __stub macros and hopefully few prototypes,
3529 which can conflict with char nanosleep(); below. */
3531 /* Override any gcc2 internal prototype to avoid an error. */
3532 /* We use char because int might match the return type of a gcc2
3533 builtin and then its argument prototype would still apply. */
3538 /* The GNU C library defines this for functions which it implements
3539 to always fail with ENOSYS. Some functions are actually named
3540 something starting with __ and the normal name is an alias. */
3541 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3549 if { (eval echo configure:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3551 eval "ac_cv_func_nanosleep=yes"
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3556 eval "ac_cv_func_nanosleep=no"
3561 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3565 echo "$ac_t""no" 1>&6
3567 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3568 echo "configure:3569: checking for nanosleep in -lrt" >&5
3569 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 ac_save_LIBS="$LIBS"
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* Override any gcc2 internal prototype to avoid an error. */
3579 /* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3587 if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3589 eval "ac_cv_lib_$ac_lib_var=yes"
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3594 eval "ac_cv_lib_$ac_lib_var=no"
3597 LIBS="$ac_save_LIBS"
3600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 LIB_VLC="${LIB_VLC} -lrt"
3604 echo "$ac_t""no" 1>&6
3606 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3607 echo "configure:3608: checking for nanosleep in -lposix4" >&5
3608 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 ac_save_LIBS="$LIBS"
3613 LIBS="-lposix4 $LIBS"
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 /* Override any gcc2 internal prototype to avoid an error. */
3618 /* We use char because int might match the return type of a gcc2
3619 builtin and then its argument prototype would still apply. */
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 eval "ac_cv_lib_$ac_lib_var=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 eval "ac_cv_lib_$ac_lib_var=no"
3636 LIBS="$ac_save_LIBS"
3639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3640 echo "$ac_t""yes" 1>&6
3641 LIB_VLC="${LIB_VLC} -lposix4"
3643 echo "$ac_t""no" 1>&6
3652 for ac_func in usleep
3654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3655 echo "configure:3656: checking for $ac_func" >&5
3656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 /* System header to define __stub macros and hopefully few prototypes,
3663 which can conflict with char $ac_func(); below. */
3665 /* Override any gcc2 internal prototype to avoid an error. */
3666 /* We use char because int might match the return type of a gcc2
3667 builtin and then its argument prototype would still apply. */
3672 /* The GNU C library defines this for functions which it implements
3673 to always fail with ENOSYS. Some functions are actually named
3674 something starting with __ and the normal name is an alias. */
3675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3683 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3685 eval "ac_cv_func_$ac_func=yes"
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3690 eval "ac_cv_func_$ac_func=no"
3695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3696 echo "$ac_t""yes" 1>&6
3697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3698 cat >> confdefs.h <<EOF
3699 #define $ac_tr_func 1
3703 echo "$ac_t""no" 1>&6
3707 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3708 echo "configure:3709: checking for inet_aton" >&5
3709 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3712 cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3715 /* System header to define __stub macros and hopefully few prototypes,
3716 which can conflict with char inet_aton(); below. */
3718 /* Override any gcc2 internal prototype to avoid an error. */
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3725 /* The GNU C library defines this for functions which it implements
3726 to always fail with ENOSYS. Some functions are actually named
3727 something starting with __ and the normal name is an alias. */
3728 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3736 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3738 eval "ac_cv_func_inet_aton=yes"
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3743 eval "ac_cv_func_inet_aton=no"
3748 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3749 echo "$ac_t""yes" 1>&6
3752 echo "$ac_t""no" 1>&6
3754 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3755 echo "configure:3756: checking for inet_aton in -lresolv" >&5
3756 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 ac_save_LIBS="$LIBS"
3761 LIBS="-lresolv $LIBS"
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 /* Override any gcc2 internal prototype to avoid an error. */
3766 /* We use char because int might match the return type of a gcc2
3767 builtin and then its argument prototype would still apply. */
3774 if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3776 eval "ac_cv_lib_$ac_lib_var=yes"
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3781 eval "ac_cv_lib_$ac_lib_var=no"
3784 LIBS="$ac_save_LIBS"
3787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3788 echo "$ac_t""yes" 1>&6
3789 LIB_VLC="${LIB_IPV4} -lresolv"
3791 echo "$ac_t""no" 1>&6
3797 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3798 echo "configure:3799: checking for textdomain" >&5
3799 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 /* System header to define __stub macros and hopefully few prototypes,
3806 which can conflict with char textdomain(); below. */
3808 /* Override any gcc2 internal prototype to avoid an error. */
3809 /* We use char because int might match the return type of a gcc2
3810 builtin and then its argument prototype would still apply. */
3815 /* The GNU C library defines this for functions which it implements
3816 to always fail with ENOSYS. Some functions are actually named
3817 something starting with __ and the normal name is an alias. */
3818 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 eval "ac_cv_func_textdomain=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 eval "ac_cv_func_textdomain=no"
3838 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3842 echo "$ac_t""no" 1>&6
3844 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3845 echo "configure:3846: checking for textdomain in -lintl" >&5
3846 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3850 ac_save_LIBS="$LIBS"
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3855 /* Override any gcc2 internal prototype to avoid an error. */
3856 /* We use char because int might match the return type of a gcc2
3857 builtin and then its argument prototype would still apply. */
3864 if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3866 eval "ac_cv_lib_$ac_lib_var=yes"
3868 echo "configure: failed program was:" >&5
3869 cat conftest.$ac_ext >&5
3871 eval "ac_cv_lib_$ac_lib_var=no"
3874 LIBS="$ac_save_LIBS"
3877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3878 echo "$ac_t""yes" 1>&6
3879 LIB_VLC="${LIB_VLC} -lintl"
3881 echo "$ac_t""no" 1>&6
3887 for ac_func in vasprintf
3889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3890 echo "configure:3891: checking for $ac_func" >&5
3891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 /* System header to define __stub macros and hopefully few prototypes,
3898 which can conflict with char $ac_func(); below. */
3900 /* Override any gcc2 internal prototype to avoid an error. */
3901 /* We use char because int might match the return type of a gcc2
3902 builtin and then its argument prototype would still apply. */
3907 /* The GNU C library defines this for functions which it implements
3908 to always fail with ENOSYS. Some functions are actually named
3909 something starting with __ and the normal name is an alias. */
3910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3920 eval "ac_cv_func_$ac_func=yes"
3922 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3925 eval "ac_cv_func_$ac_func=no"
3930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3931 echo "$ac_t""yes" 1>&6
3932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3933 cat >> confdefs.h <<EOF
3934 #define $ac_tr_func 1
3938 echo "$ac_t""no" 1>&6
3944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3945 echo "configure:3946: checking for $ac_func" >&5
3946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3949 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 /* System header to define __stub macros and hopefully few prototypes,
3953 which can conflict with char $ac_func(); below. */
3955 /* Override any gcc2 internal prototype to avoid an error. */
3956 /* We use char because int might match the return type of a gcc2
3957 builtin and then its argument prototype would still apply. */
3962 /* The GNU C library defines this for functions which it implements
3963 to always fail with ENOSYS. Some functions are actually named
3964 something starting with __ and the normal name is an alias. */
3965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3973 if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3975 eval "ac_cv_func_$ac_func=yes"
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3980 eval "ac_cv_func_$ac_func=no"
3985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3986 echo "$ac_t""yes" 1>&6
3987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3988 cat >> confdefs.h <<EOF
3989 #define $ac_tr_func 1
3993 echo "$ac_t""no" 1>&6
3997 for ac_func in memalign valloc
3999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4000 echo "configure:4001: checking for $ac_func" >&5
4001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4007 /* System header to define __stub macros and hopefully few prototypes,
4008 which can conflict with char $ac_func(); below. */
4010 /* Override any gcc2 internal prototype to avoid an error. */
4011 /* We use char because int might match the return type of a gcc2
4012 builtin and then its argument prototype would still apply. */
4017 /* The GNU C library defines this for functions which it implements
4018 to always fail with ENOSYS. Some functions are actually named
4019 something starting with __ and the normal name is an alias. */
4020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4028 if { (eval echo configure:4029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4030 eval "ac_cv_func_$ac_func=yes"
4032 echo "configure: failed program was:" >&5
4033 cat conftest.$ac_ext >&5
4035 eval "ac_cv_func_$ac_func=no"
4040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4041 echo "$ac_t""yes" 1>&6
4042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4043 cat >> confdefs.h <<EOF
4044 #define $ac_tr_func 1
4048 echo "$ac_t""no" 1>&6
4053 for ac_func in sigrelse
4055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4056 echo "configure:4057: checking for $ac_func" >&5
4057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 /* System header to define __stub macros and hopefully few prototypes,
4064 which can conflict with char $ac_func(); below. */
4066 /* Override any gcc2 internal prototype to avoid an error. */
4067 /* We use char because int might match the return type of a gcc2
4068 builtin and then its argument prototype would still apply. */
4073 /* The GNU C library defines this for functions which it implements
4074 to always fail with ENOSYS. Some functions are actually named
4075 something starting with __ and the normal name is an alias. */
4076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4086 eval "ac_cv_func_$ac_func=yes"
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4091 eval "ac_cv_func_$ac_func=no"
4096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4097 echo "$ac_t""yes" 1>&6
4098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4099 cat >> confdefs.h <<EOF
4100 #define $ac_tr_func 1
4104 echo "$ac_t""no" 1>&6
4108 for ac_func in getpwuid
4110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4111 echo "configure:4112: checking for $ac_func" >&5
4112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 /* System header to define __stub macros and hopefully few prototypes,
4119 which can conflict with char $ac_func(); below. */
4121 /* Override any gcc2 internal prototype to avoid an error. */
4122 /* We use char because int might match the return type of a gcc2
4123 builtin and then its argument prototype would still apply. */
4128 /* The GNU C library defines this for functions which it implements
4129 to always fail with ENOSYS. Some functions are actually named
4130 something starting with __ and the normal name is an alias. */
4131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4141 eval "ac_cv_func_$ac_func=yes"
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4146 eval "ac_cv_func_$ac_func=no"
4151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4152 echo "$ac_t""yes" 1>&6
4153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4154 cat >> confdefs.h <<EOF
4155 #define $ac_tr_func 1
4159 echo "$ac_t""no" 1>&6
4165 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4166 echo "configure:4167: checking for getopt_long" >&5
4167 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4170 cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 /* System header to define __stub macros and hopefully few prototypes,
4174 which can conflict with char getopt_long(); below. */
4176 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4183 /* The GNU C library defines this for functions which it implements
4184 to always fail with ENOSYS. Some functions are actually named
4185 something starting with __ and the normal name is an alias. */
4186 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 eval "ac_cv_func_getopt_long=yes"
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 eval "ac_cv_func_getopt_long=no"
4206 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4207 echo "$ac_t""yes" 1>&6
4208 cat >> confdefs.h <<\EOF
4209 #define HAVE_GETOPT_LONG 1
4213 echo "$ac_t""no" 1>&6
4214 # FreeBSD has a gnugetopt library for this:
4215 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4216 echo "configure:4217: checking for getopt_long in -lgnugetopt" >&5
4217 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4221 ac_save_LIBS="$LIBS"
4222 LIBS="-lgnugetopt $LIBS"
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4226 /* Override any gcc2 internal prototype to avoid an error. */
4227 /* We use char because int might match the return type of a gcc2
4228 builtin and then its argument prototype would still apply. */
4235 if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4237 eval "ac_cv_lib_$ac_lib_var=yes"
4239 echo "configure: failed program was:" >&5
4240 cat conftest.$ac_ext >&5
4242 eval "ac_cv_lib_$ac_lib_var=no"
4245 LIBS="$ac_save_LIBS"
4248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4249 echo "$ac_t""yes" 1>&6
4250 cat >> confdefs.h <<\EOF
4251 #define HAVE_GETOPT_LONG 1
4253 LIB_VLC="${LIB_VLC} -lgnugetopt"
4255 echo "$ac_t""no" 1>&6
4262 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4263 echo "configure:4264: checking return type of signal handlers" >&5
4264 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4270 #include <sys/types.h>
4276 extern "C" void (*signal (int, void (*)(int)))(int);
4278 void (*signal ()) ();
4285 if { (eval echo configure:4286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4287 ac_cv_type_signal=void
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4292 ac_cv_type_signal=int
4297 echo "$ac_t""$ac_cv_type_signal" 1>&6
4298 cat >> confdefs.h <<EOF
4299 #define RETSIGTYPE $ac_cv_type_signal
4303 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4304 echo "configure:4305: checking for dlopen in -ldl" >&5
4305 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 ac_save_LIBS="$LIBS"
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4314 /* Override any gcc2 internal prototype to avoid an error. */
4315 /* We use char because int might match the return type of a gcc2
4316 builtin and then its argument prototype would still apply. */
4323 if { (eval echo configure:4324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4325 eval "ac_cv_lib_$ac_lib_var=yes"
4327 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4330 eval "ac_cv_lib_$ac_lib_var=no"
4333 LIBS="$ac_save_LIBS"
4336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4338 LIB_VLC="${LIB_VLC} -ldl"
4340 echo "$ac_t""no" 1>&6
4343 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4344 echo "configure:4345: checking for cos in -lm" >&5
4345 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 ac_save_LIBS="$LIBS"
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4354 /* Override any gcc2 internal prototype to avoid an error. */
4355 /* We use char because int might match the return type of a gcc2
4356 builtin and then its argument prototype would still apply. */
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4365 eval "ac_cv_lib_$ac_lib_var=yes"
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4370 eval "ac_cv_lib_$ac_lib_var=no"
4373 LIBS="$ac_save_LIBS"
4376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4377 echo "$ac_t""yes" 1>&6
4378 LIB_IMDCT="${LIB_IMDCT} -lm"
4379 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4381 echo "$ac_t""no" 1>&6
4384 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4385 echo "configure:4386: checking for pow in -lm" >&5
4386 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 ac_save_LIBS="$LIBS"
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4395 /* Override any gcc2 internal prototype to avoid an error. */
4396 /* We use char because int might match the return type of a gcc2
4397 builtin and then its argument prototype would still apply. */
4404 if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4406 eval "ac_cv_lib_$ac_lib_var=yes"
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4411 eval "ac_cv_lib_$ac_lib_var=no"
4414 LIBS="$ac_save_LIBS"
4417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4418 echo "$ac_t""yes" 1>&6
4419 LIB_IMDCT="${LIB_IMDCT} -lm"
4420 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4421 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4424 echo "$ac_t""no" 1>&6
4429 if test "x${THREAD_LIB}" = xerror; then
4430 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4431 echo "configure:4432: checking for pthread_attr_init in -lpthread" >&5
4432 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4436 ac_save_LIBS="$LIBS"
4437 LIBS="-lpthread $LIBS"
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 /* Override any gcc2 internal prototype to avoid an error. */
4442 /* We use char because int might match the return type of a gcc2
4443 builtin and then its argument prototype would still apply. */
4444 char pthread_attr_init();
4450 if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4452 eval "ac_cv_lib_$ac_lib_var=yes"
4454 echo "configure: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4457 eval "ac_cv_lib_$ac_lib_var=no"
4460 LIBS="$ac_save_LIBS"
4463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4464 echo "$ac_t""yes" 1>&6
4465 THREAD_LIB="-lpthread"
4467 echo "$ac_t""no" 1>&6
4471 if test "x${THREAD_LIB}" = xerror; then
4472 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4473 echo "configure:4474: checking for pthread_attr_init in -lpthreads" >&5
4474 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 ac_save_LIBS="$LIBS"
4479 LIBS="-lpthreads $LIBS"
4480 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 /* Override any gcc2 internal prototype to avoid an error. */
4484 /* We use char because int might match the return type of a gcc2
4485 builtin and then its argument prototype would still apply. */
4486 char pthread_attr_init();
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4494 eval "ac_cv_lib_$ac_lib_var=yes"
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4499 eval "ac_cv_lib_$ac_lib_var=no"
4502 LIBS="$ac_save_LIBS"
4505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 THREAD_LIB="-lpthreads"
4509 echo "$ac_t""no" 1>&6
4513 if test "x${THREAD_LIB}" = xerror; then
4514 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4515 echo "configure:4516: checking for pthread_attr_init in -lc_r" >&5
4516 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 ac_save_LIBS="$LIBS"
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 /* Override any gcc2 internal prototype to avoid an error. */
4526 /* We use char because int might match the return type of a gcc2
4527 builtin and then its argument prototype would still apply. */
4528 char pthread_attr_init();
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4536 eval "ac_cv_lib_$ac_lib_var=yes"
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4541 eval "ac_cv_lib_$ac_lib_var=no"
4544 LIBS="$ac_save_LIBS"
4547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4548 echo "$ac_t""yes" 1>&6
4551 echo "$ac_t""no" 1>&6
4555 if test "x${THREAD_LIB}" = xerror; then
4556 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4557 echo "configure:4558: checking for pthread_attr_init" >&5
4558 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 /* System header to define __stub macros and hopefully few prototypes,
4565 which can conflict with char pthread_attr_init(); below. */
4567 /* Override any gcc2 internal prototype to avoid an error. */
4568 /* We use char because int might match the return type of a gcc2
4569 builtin and then its argument prototype would still apply. */
4570 char pthread_attr_init();
4574 /* The GNU C library defines this for functions which it implements
4575 to always fail with ENOSYS. Some functions are actually named
4576 something starting with __ and the normal name is an alias. */
4577 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4580 pthread_attr_init();
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4587 eval "ac_cv_func_pthread_attr_init=yes"
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4592 eval "ac_cv_func_pthread_attr_init=no"
4597 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4601 echo "$ac_t""no" 1>&6
4607 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4608 echo "configure:4609: checking for cthread_fork in -lthreads" >&5
4609 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4613 ac_save_LIBS="$LIBS"
4614 LIBS="-lthreads $LIBS"
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 /* Override any gcc2 internal prototype to avoid an error. */
4619 /* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4621 char cthread_fork();
4627 if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4629 eval "ac_cv_lib_$ac_lib_var=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4634 eval "ac_cv_lib_$ac_lib_var=no"
4637 LIBS="$ac_save_LIBS"
4640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 THREAD_LIB="-lthreads"
4644 echo "$ac_t""no" 1>&6
4648 cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4651 #include <pthread.h>
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 egrep "pthread_cond_t" >/dev/null 2>&1; then
4657 cat >> confdefs.h <<\EOF
4658 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 #include <strings.h>
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 egrep "strncasecmp" >/dev/null 2>&1; then
4673 cat >> confdefs.h <<\EOF
4674 #define STRNCASECMP_IN_STRINGS_H 1
4681 for ac_hdr in getopt.h strings.h
4683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4685 echo "configure:4686: checking for $ac_hdr" >&5
4686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4695 { (eval echo configure:4696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4697 if test -z "$ac_err"; then
4699 eval "ac_cv_header_$ac_safe=yes"
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4705 eval "ac_cv_header_$ac_safe=no"
4709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4712 cat >> confdefs.h <<EOF
4713 #define $ac_tr_hdr 1
4717 echo "$ac_t""no" 1>&6
4721 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4725 echo "configure:4726: checking for $ac_hdr" >&5
4726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4735 { (eval echo configure:4736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4737 if test -z "$ac_err"; then
4739 eval "ac_cv_header_$ac_safe=yes"
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4745 eval "ac_cv_header_$ac_safe=no"
4749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4750 echo "$ac_t""yes" 1>&6
4751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4752 cat >> confdefs.h <<EOF
4753 #define $ac_tr_hdr 1
4757 echo "$ac_t""no" 1>&6
4761 for ac_hdr in dlfcn.h image.h
4763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4765 echo "configure:4766: checking for $ac_hdr" >&5
4766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4767 echo $ac_n "(cached) $ac_c" 1>&6
4769 cat > conftest.$ac_ext <<EOF
4770 #line 4771 "configure"
4771 #include "confdefs.h"
4774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4775 { (eval echo configure:4776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4777 if test -z "$ac_err"; then
4779 eval "ac_cv_header_$ac_safe=yes"
4782 echo "configure: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4785 eval "ac_cv_header_$ac_safe=no"
4789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4790 echo "$ac_t""yes" 1>&6
4791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4792 cat >> confdefs.h <<EOF
4793 #define $ac_tr_hdr 1
4797 echo "$ac_t""no" 1>&6
4801 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4805 echo "configure:4806: checking for $ac_hdr" >&5
4806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4809 cat > conftest.$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4815 { (eval echo configure:4816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4817 if test -z "$ac_err"; then
4819 eval "ac_cv_header_$ac_safe=yes"
4822 echo "configure: failed program was:" >&5
4823 cat conftest.$ac_ext >&5
4825 eval "ac_cv_header_$ac_safe=no"
4829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4830 echo "$ac_t""yes" 1>&6
4831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4832 cat >> confdefs.h <<EOF
4833 #define $ac_tr_hdr 1
4837 echo "$ac_t""no" 1>&6
4841 for ac_hdr in machine/param.h sys/shm.h
4843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4845 echo "configure:4846: checking for $ac_hdr" >&5
4846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4855 { (eval echo configure:4856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4857 if test -z "$ac_err"; then
4859 eval "ac_cv_header_$ac_safe=yes"
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4865 eval "ac_cv_header_$ac_safe=no"
4869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4872 cat >> confdefs.h <<EOF
4873 #define $ac_tr_hdr 1
4877 echo "$ac_t""no" 1>&6
4882 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4883 echo "configure:4884: checking whether time.h and sys/time.h may both be included" >&5
4884 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 #include <sys/types.h>
4891 #include <sys/time.h>
4897 if { (eval echo configure:4898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4899 ac_cv_header_time=yes
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4904 ac_cv_header_time=no
4909 echo "$ac_t""$ac_cv_header_time" 1>&6
4910 if test $ac_cv_header_time = yes; then
4911 cat >> confdefs.h <<\EOF
4912 #define TIME_WITH_SYS_TIME 1
4918 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4922 echo "configure:4923: checking for $ac_hdr" >&5
4923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4924 echo $ac_n "(cached) $ac_c" 1>&6
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4932 { (eval echo configure:4933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4934 if test -z "$ac_err"; then
4936 eval "ac_cv_header_$ac_safe=yes"
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4942 eval "ac_cv_header_$ac_safe=no"
4946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4947 echo "$ac_t""yes" 1>&6
4948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4949 cat >> confdefs.h <<EOF
4950 #define $ac_tr_hdr 1
4954 echo "$ac_t""no" 1>&6
4959 if test x$SYS != xmingw32
4961 if test x$x_includes = xNONE; then
4962 x_includes=/usr/X11R6/include
4964 if test x$x_libraries = xNONE; then
4965 x_libraries=/usr/X11R6/lib
4967 saved_CPPFLAGS=$CPPFLAGS
4968 CPPFLAGS="$CPPFLAGS -I$x_includes"
4969 for ac_hdr in X11/extensions/dpms.h
4971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4973 echo "configure:4974: checking for $ac_hdr" >&5
4974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4983 { (eval echo configure:4984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4985 if test -z "$ac_err"; then
4987 eval "ac_cv_header_$ac_safe=yes"
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 eval "ac_cv_header_$ac_safe=no"
4997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4998 echo "$ac_t""yes" 1>&6
4999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5000 cat >> confdefs.h <<EOF
5001 #define $ac_tr_hdr 1
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 #include <X11/extensions/dpms.h>
5009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5010 egrep "DPMSInfo" >/dev/null 2>&1; then
5013 cat >> confdefs.h <<\EOF
5014 #define DPMSINFO_IN_DPMS_H 1
5023 echo "$ac_t""no" 1>&6
5027 CPPFLAGS=$saved_CPPFLAGS
5030 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5031 echo "configure:5032: checking for ntohl in sys/param.h" >&5
5032 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5035 CFLAGS="${save_CFLAGS} -Wall -Werror"
5036 cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 #include <sys/param.h>
5041 void foo() { int meuh; ntohl(meuh); }
5044 if { (eval echo configure:5045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5046 ac_cv_c_ntohl_sys_param_h=yes
5048 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5051 ac_cv_c_ntohl_sys_param_h=no
5056 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5057 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5058 cat >> confdefs.h <<\EOF
5059 #define NTOHL_IN_SYS_PARAM_H 1
5064 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5065 echo "configure:5066: checking if \$CC accepts -finline-limit" >&5
5066 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5069 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5078 if { (eval echo configure:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5080 ac_cv_c_inline_limit=yes
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5085 ac_cv_c_inline_limit=no
5090 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5091 if test x"$ac_cv_c_inline_limit" != x"no"; then
5092 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5095 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5096 echo "configure:5097: checking if \$CC accepts -Wall -Winline" >&5
5097 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 CFLAGS="${save_CFLAGS} -Wall -Winline"
5101 cat > conftest.$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5109 if { (eval echo configure:5110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5111 ac_cv_c_Wall_Winline=yes
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5116 ac_cv_c_Wall_Winline=no
5121 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5122 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5123 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
5125 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5126 echo "configure:5127: checking if \$CC accepts -wall -winline" >&5
5127 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5128 echo $ac_n "(cached) $ac_c" 1>&6
5130 CFLAGS="${save_CFLAGS} -wall -winline"
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_wall_winline=yes
5143 echo "configure: failed program was:" >&5
5144 cat conftest.$ac_ext >&5
5146 ac_cv_c_wall_winline=no
5151 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5152 if test x"$ac_cv_c_wall_winline" != x"no"; then
5153 save_CFLAGS="${save_CFLAGS} -wall -winline"
5157 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5158 echo "configure:5159: checking if \$CC accepts -pipe" >&5
5159 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5162 CFLAGS="${save_CFLAGS} -pipe"
5163 cat > conftest.$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5171 if { (eval echo configure:5172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5175 echo "configure: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5183 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5184 if test x"$ac_cv_c_pipe" != x"no"; then
5185 save_CFLAGS="${save_CFLAGS} -pipe"
5188 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5189 echo "configure:5190: checking if \$CC accepts -O3" >&5
5190 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 CFLAGS="${save_CFLAGS} -O3"
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5202 if { (eval echo configure:5203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5214 echo "$ac_t""$ac_cv_c_o3" 1>&6
5215 if test x"$ac_cv_c_o3" != x"no"; then
5216 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5218 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5219 echo "configure:5220: checking if \$CC accepts -O2" >&5
5220 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5223 CFLAGS="${save_CFLAGS} -O2"
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_c_o2" 1>&6
5245 if test x"$ac_cv_c_o2" != x"no"; then
5246 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5248 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5249 echo "configure:5250: checking if \$CC accepts -O" >&5
5250 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5253 CFLAGS="${save_CFLAGS} -O"
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5262 if { (eval echo configure:5263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5274 echo "$ac_t""$ac_cv_c_o" 1>&6
5275 if test x"$ac_cv_c_o" != x"no"; then
5276 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5281 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5282 echo "configure:5283: checking if \$CC accepts -ffast-math" >&5
5283 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5286 CFLAGS="${save_CFLAGS} -ffast-math"
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5295 if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5297 ac_cv_c_fast_math=yes
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5302 ac_cv_c_fast_math=no
5307 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5308 if test x"$ac_cv_c_fast_math" != x"no"; then
5309 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5312 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5313 echo "configure:5314: checking if \$CC accepts -funroll-loops" >&5
5314 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 CFLAGS="${save_CFLAGS} -funroll-loops"
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5326 if { (eval echo configure:5327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5328 ac_cv_c_unroll_loops=yes
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 ac_cv_c_unroll_loops=no
5338 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5339 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5340 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5343 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5344 echo "configure:5345: checking if \$CC accepts -fomit-frame-pointer" >&5
5345 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5357 if { (eval echo configure:5358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5359 ac_cv_c_omit_frame_pointer=yes
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5364 ac_cv_c_omit_frame_pointer=no
5369 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5370 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5371 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5374 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5375 echo "configure:5376: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5376 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5380 cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5388 if { (eval echo configure:5389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5392 echo "configure: failed program was:" >&5
5393 cat conftest.$ac_ext >&5
5400 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5401 if test x"$ac_cv_ld_darwin" != x"no"; then
5402 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5405 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5406 echo "configure:5407: checking if \$CC accepts -shared" >&5
5407 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 CFLAGS="${save_CFLAGS} -shared"
5411 cat > conftest.$ac_ext <<EOF
5412 #line 5413 "configure"
5413 #include "confdefs.h"
5419 if { (eval echo configure:5420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5421 ac_cv_ld_plugins=yes
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5431 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5432 if test x"$ac_cv_ld_plugins" != x"no"; then
5433 PLDFLAGS="${PLDFLAGS} -shared"
5436 if test x"${SOFLAGS}" = x; then
5437 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5438 echo "configure:5439: checking for soname setting" >&5
5439 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5444 try_SOFLAGS="-Wl,-soname -Wl,"
5445 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5454 if { (eval echo configure:5455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5456 ac_cv_ld_soname="${try_SOFLAGS}"
5458 echo "configure: failed program was:" >&5
5459 cat conftest.$ac_ext >&5
5463 try_SOFLAGS="-Wl,-h -Wl,"
5464 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5473 if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5475 ac_cv_ld_soname="${try_SOFLAGS}"
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5480 ac_cv_ld_soname=none
5488 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5489 if test x"$ac_cv_ld_soname" != x"none"; then
5490 SOFLAGS=$ac_cv_ld_soname
5494 Your system doesn't seem to have support for dynamic linking. You may
5495 have problems using libdvdcss.
5501 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5502 echo "configure:5503: checking __attribute__ ((aligned ())) support" >&5
5503 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5504 echo $ac_n "(cached) $ac_c" 1>&6
5506 ac_cv_c_attribute_aligned=0
5507 CFLAGS="${save_CFLAGS} -Werror"
5508 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5514 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5517 if { (eval echo configure:5518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5519 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5521 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5528 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5529 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5530 cat >> confdefs.h <<EOF
5531 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5536 CFLAGS="${save_CFLAGS}"
5537 LDFLAGS="${save_LDFLAGS}"
5539 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5540 echo "configure:5541: checking for boolean_t in sys/types.h" >&5
5541 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5542 echo $ac_n "(cached) $ac_c" 1>&6
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5547 #include <sys/types.h>
5552 if { (eval echo configure:5553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5554 ac_cv_c_boolean_t_sys_types_h=yes
5556 echo "configure: failed program was:" >&5
5557 cat conftest.$ac_ext >&5
5559 ac_cv_c_boolean_t_sys_types_h=no
5564 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5565 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5566 cat >> confdefs.h <<\EOF
5567 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5572 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5573 echo "configure:5574: checking for boolean_t in pthread.h" >&5
5574 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5577 cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5580 #include <pthread.h>
5585 if { (eval echo configure:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5587 ac_cv_c_boolean_t_pthread_h=yes
5589 echo "configure: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5592 ac_cv_c_boolean_t_pthread_h=no
5597 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5598 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5599 cat >> confdefs.h <<\EOF
5600 #define BOOLEAN_T_IN_PTHREAD_H 1
5605 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5606 echo "configure:5607: checking for boolean_t in cthreads.h" >&5
5607 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5613 #include <cthreads.h>
5618 if { (eval echo configure:5619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5620 ac_cv_c_boolean_t_cthreads_h=yes
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 ac_cv_c_boolean_t_cthreads_h=no
5630 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5631 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5632 cat >> confdefs.h <<\EOF
5633 #define BOOLEAN_T_IN_CTHREADS_H 1
5638 case x"${target_cpu}" in
5647 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"
5648 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
5650 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5651 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5652 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5653 SSE_MODULES="imdctsse downmixsse"
5654 ALTIVEC_MODULES="idctaltivec motionaltivec"
5656 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5657 echo "configure:5658: checking if \$CC groks MMX inline assembly" >&5
5658 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5659 echo $ac_n "(cached) $ac_c" 1>&6
5661 cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5666 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5671 ac_cv_mmx_inline=yes
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5681 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5682 if test x"$ac_cv_mmx_inline" != x"no"; then
5683 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5686 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5687 echo "configure:5688: checking if \$CC groks MMX EXT inline assembly" >&5
5688 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5696 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5699 if { (eval echo configure:5700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5701 ac_cv_mmxext_inline=yes
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5706 ac_cv_mmxext_inline=no
5711 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5712 if test x"$ac_cv_mmxext_inline" != x"no"; then
5713 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5716 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5717 echo "configure:5718: checking if \$CC groks 3D Now! inline assembly" >&5
5718 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5719 echo $ac_n "(cached) $ac_c" 1>&6
5721 cat > conftest.$ac_ext <<EOF
5722 #line 5723 "configure"
5723 #include "confdefs.h"
5726 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5729 if { (eval echo configure:5730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5731 ac_cv_3dnow_inline=yes
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5736 ac_cv_3dnow_inline=no
5741 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5742 if test x"$ac_cv_3dnow_inline" != x"no"; then
5743 cat >> confdefs.h <<\EOF
5744 #define CAN_COMPILE_3DNOW 1
5747 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5750 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5751 echo "configure:5752: checking if \$CC groks SSE inline assembly" >&5
5752 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5760 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5763 if { (eval echo configure:5764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5765 ac_cv_sse_inline=yes
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5775 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5776 if test x"$ac_cv_sse_inline" != x"no"; then
5777 cat >> confdefs.h <<\EOF
5778 #define CAN_COMPILE_SSE 1
5781 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5784 # don't try to grok altivec with native mingw32 it doesn't work right now
5785 # we should be able to remove this test with future versions of mingw32
5786 if test x$SYS != xmingw32; then
5787 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5788 echo "configure:5789: checking if \$CC groks Altivec inline assembly" >&5
5789 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5792 cat > conftest.$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5797 asm volatile("vperm 0,1,2,3");
5800 if { (eval echo configure:5801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5802 ac_cv_altivec_inline=yes
5804 echo "configure: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5808 CFLAGS="$CFLAGS -Wa,-m7400"
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5814 asm volatile("vperm 0,1,2,3");
5817 if { (eval echo configure:5818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5819 ac_cv_altivec_inline="-Wa,-m7400"
5821 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5824 ac_cv_altivec_inline=no
5833 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5834 if test x"$ac_cv_altivec_inline" != x"no"; then
5835 cat >> confdefs.h <<\EOF
5836 #define CAN_COMPILE_ALTIVEC 1
5839 if test x"$ac_cv_altivec_inline" != x"yes"; then
5840 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5841 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5842 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5844 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5847 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5848 echo "configure:5849: checking if \$CC groks Altivec C extensions" >&5
5849 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5853 CFLAGS="$CFLAGS -faltivec"
5855 cat > conftest.$ac_ext <<EOF
5856 #line 5857 "configure"
5857 #include "confdefs.h"
5860 vec_mtvscr((vector unsigned int)(0));
5863 if { (eval echo configure:5864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5865 ac_cv_c_altivec=-faltivec
5867 echo "configure: failed program was:" >&5
5868 cat conftest.$ac_ext >&5
5872 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5873 cat > conftest.$ac_ext <<EOF
5874 #line 5875 "configure"
5875 #include "confdefs.h"
5878 vec_mtvscr((vector unsigned int)(0));
5881 if { (eval echo configure:5882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5883 ac_cv_c_altivec="-fvec"
5885 echo "configure: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5898 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5899 if test x"$ac_cv_c_altivec" != x"no"; then
5900 cat >> confdefs.h <<\EOF
5901 #define CAN_COMPILE_C_ALTIVEC 1
5904 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5905 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5906 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5907 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5910 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5911 echo "configure:5912: checking if linker needs -framework vecLib" >&5
5912 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6
5915 save_LDFLAGS=$LDFLAGS
5916 LDFLAGS="$LDFLAGS -framework vecLib"
5917 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure"
5919 #include "confdefs.h"
5925 if { (eval echo configure:5926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5927 ac_cv_ld_altivec=yes
5929 echo "configure: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5935 LDFLAGS=$save_LDFLAGS
5939 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5940 if test x"$ac_cv_ld_altivec" != x"no"; then
5941 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5942 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5943 LIB_VLC="${LIB_VLC} -framework vecLib"
5953 DVD_DEVICE="/dev/dvd"
5954 VCD_DEVICE="/dev/cdrom"
5958 cat >> confdefs.h <<EOF
5959 #define DVD_DEVICE "$DVD_DEVICE"
5962 cat >> confdefs.h <<EOF
5963 #define VCD_DEVICE "$VCD_DEVICE"
5969 CAN_BUILD_LIBDVDCSS=0
5971 for ac_hdr in winioctl.h
5973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5975 echo "configure:5976: checking for $ac_hdr" >&5
5976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5979 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5985 { (eval echo configure:5986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5987 if test -z "$ac_err"; then
5989 eval "ac_cv_header_$ac_safe=yes"
5992 echo "configure: failed program was:" >&5
5993 cat conftest.$ac_ext >&5
5995 eval "ac_cv_header_$ac_safe=no"
5999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6000 echo "$ac_t""yes" 1>&6
6001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6002 cat >> confdefs.h <<EOF
6003 #define $ac_tr_hdr 1
6006 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
6009 echo "$ac_t""no" 1>&6
6014 for ac_hdr in sys/ioctl.h
6016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6018 echo "configure:6019: checking for $ac_hdr" >&5
6019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6020 echo $ac_n "(cached) $ac_c" 1>&6
6022 cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure"
6024 #include "confdefs.h"
6027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6028 { (eval echo configure:6029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6030 if test -z "$ac_err"; then
6032 eval "ac_cv_header_$ac_safe=yes"
6035 echo "configure: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6038 eval "ac_cv_header_$ac_safe=no"
6042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6043 echo "$ac_t""yes" 1>&6
6044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6045 cat >> confdefs.h <<EOF
6046 #define $ac_tr_hdr 1
6049 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
6050 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
6052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054 echo "configure:6055: checking for $ac_hdr" >&5
6055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6064 { (eval echo configure:6065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6066 if test -z "$ac_err"; then
6068 eval "ac_cv_header_$ac_safe=yes"
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6074 eval "ac_cv_header_$ac_safe=no"
6078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6081 cat >> confdefs.h <<EOF
6082 #define $ac_tr_hdr 1
6086 echo "$ac_t""no" 1>&6
6092 OPENBSD_DVD_STRUCT=0
6093 cat > conftest.$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6096 #include <sys/cdio.h>
6098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6099 egrep "dvd_struct" >/dev/null 2>&1; then
6102 cat >> confdefs.h <<\EOF
6103 #define DVD_STRUCT_IN_SYS_CDIO_H 1
6106 cat > conftest.$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6109 #include <sys/cdio.h>
6111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6112 egrep "struct dvd_struct" >/dev/null 2>&1; then
6118 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
6126 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6129 #include <sys/dvdio.h>
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 egrep "dvd_struct" >/dev/null 2>&1; then
6135 cat >> confdefs.h <<\EOF
6136 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6142 #include <sys/dvdio.h>
6144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6145 egrep "struct dvd_struct" >/dev/null 2>&1; then
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6162 #include <linux/cdrom.h>
6164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6165 egrep "dvd_struct" >/dev/null 2>&1; then
6168 cat >> confdefs.h <<\EOF
6169 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6184 egrep "dvd_struct" >/dev/null 2>&1; then
6187 cat >> confdefs.h <<\EOF
6188 #define DVD_STRUCT_IN_DVD_H 1
6191 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6197 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6201 echo "configure:6202: checking for $ac_hdr" >&5
6202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6203 echo $ac_n "(cached) $ac_c" 1>&6
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6211 { (eval echo configure:6212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6213 if test -z "$ac_err"; then
6215 eval "ac_cv_header_$ac_safe=yes"
6218 echo "configure: failed program was:" >&5
6219 cat conftest.$ac_ext >&5
6221 eval "ac_cv_header_$ac_safe=no"
6225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6226 echo "$ac_t""yes" 1>&6
6227 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6228 cat >> confdefs.h <<EOF
6229 #define $ac_tr_hdr 1
6233 cat >> confdefs.h <<\EOF
6234 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6237 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6241 echo "$ac_t""no" 1>&6
6249 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6250 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6251 echo "configure:6252: checking for sys/scsi/scsi_types.h" >&5
6252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 #include <sys/scsi/scsi_types.h>
6260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6261 { (eval echo configure:6262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6263 if test -z "$ac_err"; then
6265 eval "ac_cv_header_$ac_safe=yes"
6268 echo "configure: failed program was:" >&5
6269 cat conftest.$ac_ext >&5
6271 eval "ac_cv_header_$ac_safe=no"
6275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6276 echo "$ac_t""yes" 1>&6
6278 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6279 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6280 echo "configure:6281: checking for sys/scsi/impl/uscsi.h" >&5
6281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6284 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6287 #include <sys/scsi/impl/uscsi.h>
6289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6290 { (eval echo configure:6291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6292 if test -z "$ac_err"; then
6294 eval "ac_cv_header_$ac_safe=yes"
6297 echo "configure: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6300 eval "ac_cv_header_$ac_safe=no"
6304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6305 echo "$ac_t""yes" 1>&6
6307 cat >> confdefs.h <<\EOF
6308 #define SOLARIS_USCSI 1
6313 echo "$ac_t""no" 1>&6
6318 echo "$ac_t""no" 1>&6
6321 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6322 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6323 echo "configure:6324: checking for sys/scsi.h" >&5
6324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6325 echo $ac_n "(cached) $ac_c" 1>&6
6327 cat > conftest.$ac_ext <<EOF
6328 #line 6329 "configure"
6329 #include "confdefs.h"
6330 #include <sys/scsi.h>
6332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6333 { (eval echo configure:6334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6335 if test -z "$ac_err"; then
6337 eval "ac_cv_header_$ac_safe=yes"
6340 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6343 eval "ac_cv_header_$ac_safe=no"
6347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6348 echo "$ac_t""yes" 1>&6
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 #include <sys/scsi.h>
6355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6356 egrep "sctl_io" >/dev/null 2>&1; then
6359 cat >> confdefs.h <<\EOF
6360 #define HPUX_SCTL_IO 1
6369 echo "$ac_t""no" 1>&6
6372 if test x$LINUX_DVD_STRUCT = x1; then
6373 cat >> confdefs.h <<\EOF
6374 #define HAVE_LINUX_DVD_STRUCT 1
6377 if test x$OPENBSD_DVD_STRUCT = x1; then
6378 cat >> confdefs.h <<\EOF
6379 #define HAVE_OPENBSD_DVD_STRUCT 1
6384 if test x$BSD_DVD_STRUCT = x1; then
6385 cat >> confdefs.h <<\EOF
6386 #define HAVE_BSD_DVD_STRUCT 1
6393 echo "$ac_t""no" 1>&6
6398 # Check whether --with- or --without- was given.
6399 if test "${with_+set}" = set; then
6404 # Check whether --with- or --without- was given.
6405 if test "${with_+set}" = set; then
6411 # Check whether --with-tuning or --without-tuning was given.
6412 if test "${with_tuning+set}" = set; then
6413 withval="$with_tuning"
6417 if test "x$withval" != "x"; then
6420 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6422 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6426 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6429 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6432 # Check whether --enable-optimizations or --disable-optimizations was given.
6433 if test "${enable_optimizations+set}" = set; then
6434 enableval="$enable_optimizations"
6435 if test x$enableval = xno; then OPTIMS=0; fi
6441 # Check whether --enable-altivec or --disable-altivec was given.
6442 if test "${enable_altivec+set}" = set; then
6443 enableval="$enable_altivec"
6444 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6445 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6447 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6448 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6453 # Check whether --enable-debug or --disable-debug was given.
6454 if test "${enable_debug+set}" = set; then
6455 enableval="$enable_debug"
6456 if test x$enableval = xyes; then DEBUG=1; fi
6460 # Check whether --enable-release or --disable-release was given.
6461 if test "${enable_release+set}" = set; then
6462 enableval="$enable_release"
6463 if test x$enableval = xyes; then RELEASE=1; fi
6465 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6466 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6471 # Check whether --with- or --without- was given.
6472 if test "${with_+set}" = set; then
6481 # Check whether --with-dvdcss or --without-dvdcss was given.
6482 if test "${with_dvdcss+set}" = set; then
6483 withval="$with_dvdcss"
6484 case "x${withval}" in
6486 # local libdvdcss, statically linked
6487 BUILTINS="${BUILTINS} dvd"
6488 if test x${CAN_BUILD_LIBDVDCSS} = x1
6492 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6493 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6497 # local libdvdcss, dynamically linked
6498 PLUGINS="${PLUGINS} dvd"
6499 if test x${CAN_BUILD_LIBDVDCSS} = x1
6502 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6503 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6507 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6508 PLUGINS="${PLUGINS} dvd"
6510 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6511 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6512 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6513 LIB_DVD="${LIB_DVD} -ldl"
6516 # existing libdvdcss
6517 PLUGINS="${PLUGINS} dvd"
6518 if test "x$withval" != "xyes"
6520 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6521 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6523 LIB_DVD="${LIB_DVD} -ldvdcss"
6526 # user didn't decide, we choose to use local libdvdcss and link statically
6527 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6528 if test x${CAN_BUILD_LIBDVDCSS} = x1
6530 BUILTINS="${BUILTINS} dvd"
6533 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6534 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6536 # XXX: no check for libdl is done, don't try this at home !
6537 PLUGINS="${PLUGINS} dvd"
6539 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6540 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6541 LIB_DVD="${LIB_DVD} -ldl"
6546 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6547 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6548 # Check whether --with-dvdread or --without-dvdread was given.
6549 if test "${with_dvdread+set}" = set; then
6550 withval="$with_dvdread"
6551 case "x${withval}" in
6553 if test x${STATIC_LIBDVDREAD} = x1
6555 BUILTINS="${BUILTINS} dvdread"
6556 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6557 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6559 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6565 if test x${STATIC_LIBDVDREAD} = x1
6567 #BUILTINS="${BUILTINS} dvdread"
6568 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6569 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6571 #PLUGINS="${PLUGINS} dvdread"
6572 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6573 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6577 if test "x$withval" != "xlocal-shared"
6579 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6580 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6582 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6583 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6585 if test x${STATIC_LIBDVDCSS} = x1
6587 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6589 #PLUGINS="${PLUGINS} dvdread"
6590 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6591 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6594 if test x${DUMMY_LIBDVDCSS} = x1
6596 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6598 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6603 # Check whether --enable-vcd or --disable-vcd was given.
6604 if test "${enable_vcd+set}" = set; then
6605 enableval="$enable_vcd"
6610 if test x$enable_vcd != xno
6612 cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 #include <linux/cdrom.h>
6617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6618 egrep "cdrom_msf0" >/dev/null 2>&1; then
6621 PLUGINS="${PLUGINS} vcd"
6627 if test "x${SYS}" = "xbsdi"
6629 PLUGINS="${PLUGINS} vcd"
6632 if test "x${SYS}" = "xdarwin"
6634 PLUGINS="${PLUGINS} vcd"
6635 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
6639 # Check whether --enable-satellite or --disable-satellite was given.
6640 if test "${enable_satellite+set}" = set; then
6641 enableval="$enable_satellite"
6642 if test x$enable_satellite = xyes
6644 BUILTINS="${BUILTINS} satellite"
6645 cat >> confdefs.h <<\EOF
6646 #define HAVE_SATELLITE 1
6653 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6654 echo "configure:6655: checking for inet_pton" >&5
6655 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 /* System header to define __stub macros and hopefully few prototypes,
6662 which can conflict with char inet_pton(); below. */
6664 /* Override any gcc2 internal prototype to avoid an error. */
6665 /* We use char because int might match the return type of a gcc2
6666 builtin and then its argument prototype would still apply. */
6671 /* The GNU C library defines this for functions which it implements
6672 to always fail with ENOSYS. Some functions are actually named
6673 something starting with __ and the normal name is an alias. */
6674 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6682 if { (eval echo configure:6683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6684 eval "ac_cv_func_inet_pton=yes"
6686 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6689 eval "ac_cv_func_inet_pton=no"
6694 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6696 PLUGINS="${PLUGINS} ipv6"
6698 echo "$ac_t""no" 1>&6
6703 # Check whether --with- or --without- was given.
6704 if test "${with_+set}" = set; then
6710 # Check whether --enable-mad or --disable-mad was given.
6711 if test "${enable_mad+set}" = set; then
6712 enableval="$enable_mad"
6716 if test x$enable_mad = xyes
6718 PLUGINS="${PLUGINS} mad"
6719 LIB_MAD="${LIB_MAD} -lmad"
6720 # Check whether --with-mad or --without-mad was given.
6721 if test "${with_mad+set}" = set; then
6723 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6725 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6726 LIB_MAD="${LIB_MAD} -L$with_val/lib"
6731 save_LDFLAGS=$LDFLAGS
6732 CFLAGS="$CFLAGS $CFLAGS_MAD"
6733 LDFLAGS="$LDFLAGS $LIB_MAD"
6736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6738 echo "configure:6739: checking for $ac_hdr" >&5
6739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6740 echo $ac_n "(cached) $ac_c" 1>&6
6742 cat > conftest.$ac_ext <<EOF
6743 #line 6744 "configure"
6744 #include "confdefs.h"
6747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6748 { (eval echo configure:6749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6750 if test -z "$ac_err"; then
6752 eval "ac_cv_header_$ac_safe=yes"
6755 echo "configure: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6758 eval "ac_cv_header_$ac_safe=no"
6762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6763 echo "$ac_t""yes" 1>&6
6764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6765 cat >> confdefs.h <<EOF
6766 #define $ac_tr_hdr 1
6770 echo "$ac_t""no" 1>&6
6771 echo "Cannot find development headers for libmad..."
6777 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6778 echo "configure:6779: checking for mad_bit_init in -lmad" >&5
6779 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6781 echo $ac_n "(cached) $ac_c" 1>&6
6783 ac_save_LIBS="$LIBS"
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 /* Override any gcc2 internal prototype to avoid an error. */
6789 /* We use char because int might match the return type of a gcc2
6790 builtin and then its argument prototype would still apply. */
6791 char mad_bit_init();
6797 if { (eval echo configure:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6799 eval "ac_cv_lib_$ac_lib_var=yes"
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6804 eval "ac_cv_lib_$ac_lib_var=no"
6807 LIBS="$ac_save_LIBS"
6810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6814 cat >> confdefs.h <<EOF
6815 #define $ac_tr_lib 1
6821 echo "$ac_t""no" 1>&6
6822 echo "Cannot find libmad library..."
6828 LDFLAGS=$save_LDFLAGS
6831 if test x$SYS = xbeos
6833 PLUGINS="${PLUGINS} beos"
6837 # Check whether --enable-a52 or --disable-a52 was given.
6838 if test "${enable_a52+set}" = set; then
6839 enableval="$enable_a52"
6843 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6845 for ac_hdr in a52dec/a52.h
6847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6849 echo "configure:6850: checking for $ac_hdr" >&5
6850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6851 echo $ac_n "(cached) $ac_c" 1>&6
6853 cat > conftest.$ac_ext <<EOF
6854 #line 6855 "configure"
6855 #include "confdefs.h"
6858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6859 { (eval echo configure:6860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6861 if test -z "$ac_err"; then
6863 eval "ac_cv_header_$ac_safe=yes"
6866 echo "configure: failed program was:" >&5
6867 cat conftest.$ac_ext >&5
6869 eval "ac_cv_header_$ac_safe=no"
6873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6874 echo "$ac_t""yes" 1>&6
6875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6876 cat >> confdefs.h <<EOF
6877 #define $ac_tr_hdr 1
6880 BUILTINS="${BUILTINS} a52"
6881 LIB_A52="${LIB_A52} -la52"
6884 echo "$ac_t""no" 1>&6
6891 # Check whether --with- or --without- was given.
6892 if test "${with_+set}" = set; then
6898 # Check whether --enable-x11 or --disable-x11 was given.
6899 if test "${enable_x11+set}" = set; then
6900 enableval="$enable_x11"
6904 if test x$enable_x11 != xno &&
6905 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6906 if test x$x_includes = xNONE; then
6907 x_includes=/usr/X11R6/include
6909 if test x$x_libraries = xNONE; then
6910 x_libraries=/usr/X11R6/lib
6912 saved_CPPFLAGS=$CPPFLAGS
6913 CPPFLAGS="$CPPFLAGS -I$x_includes"
6914 for ac_hdr in X11/Xlib.h
6916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6918 echo "configure:6919: checking for $ac_hdr" >&5
6919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6928 { (eval echo configure:6929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6930 if test -z "$ac_err"; then
6932 eval "ac_cv_header_$ac_safe=yes"
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6938 eval "ac_cv_header_$ac_safe=no"
6942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6943 echo "$ac_t""yes" 1>&6
6944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6945 cat >> confdefs.h <<EOF
6946 #define $ac_tr_hdr 1
6949 PLUGINS="${PLUGINS} x11"
6950 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6951 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6954 echo "$ac_t""no" 1>&6
6958 CPPFLAGS=$saved_CPPFLAGS
6961 # Check whether --enable-xvideo or --disable-xvideo was given.
6962 if test "${enable_xvideo+set}" = set; then
6963 enableval="$enable_xvideo"
6967 if test x$enable_xvideo != xno &&
6968 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6969 if test x$x_includes = xNONE; then
6970 x_includes=/usr/X11R6/include
6972 if test x$x_libraries = xNONE; then
6973 x_libraries=/usr/X11R6/lib
6975 saved_CPPFLAGS=$CPPFLAGS
6976 CPPFLAGS="$CPPFLAGS -I$x_includes"
6977 for ac_hdr in X11/extensions/Xv.h
6979 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6981 echo "configure:6982: checking for $ac_hdr" >&5
6982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6985 cat > conftest.$ac_ext <<EOF
6986 #line 6987 "configure"
6987 #include "confdefs.h"
6990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6991 { (eval echo configure:6992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6993 if test -z "$ac_err"; then
6995 eval "ac_cv_header_$ac_safe=yes"
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 eval "ac_cv_header_$ac_safe=no"
7005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7006 echo "$ac_t""yes" 1>&6
7007 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7008 cat >> confdefs.h <<EOF
7009 #define $ac_tr_hdr 1
7012 saved_CFLAGS=$CFLAGS
7013 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
7014 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7015 echo "configure:7016: checking for XvSetPortAttribute in -lXv_pic" >&5
7016 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7018 echo $ac_n "(cached) $ac_c" 1>&6
7020 ac_save_LIBS="$LIBS"
7021 LIBS="-lXv_pic $LIBS"
7022 cat > conftest.$ac_ext <<EOF
7023 #line 7024 "configure"
7024 #include "confdefs.h"
7025 /* Override any gcc2 internal prototype to avoid an error. */
7026 /* We use char because int might match the return type of a gcc2
7027 builtin and then its argument prototype would still apply. */
7028 char XvSetPortAttribute();
7031 XvSetPortAttribute()
7034 if { (eval echo configure:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7036 eval "ac_cv_lib_$ac_lib_var=yes"
7038 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7041 eval "ac_cv_lib_$ac_lib_var=no"
7044 LIBS="$ac_save_LIBS"
7047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7048 echo "$ac_t""yes" 1>&6
7049 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7050 PLUGINS="${PLUGINS} xvideo"
7051 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
7052 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7054 echo "$ac_t""no" 1>&6
7055 # We don't have Xv_pic, let's make xvideo.a as builtin
7056 BUILTINS="${BUILTINS} xvideo"
7057 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7058 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7061 CFLAGS=$saved_CFLAGS
7063 CPPFLAGS=$saved_CPPFLAGS
7065 echo "$ac_t""no" 1>&6
7071 # Check whether --enable-sdl or --disable-sdl was given.
7072 if test "${enable_sdl+set}" = set; then
7073 enableval="$enable_sdl"
7077 if test "x$enable_sdl" != "xno"
7080 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7081 if test "${with_sdl_config_path+set}" = set; then
7082 withval="$with_sdl_config_path"
7083 if test "x$withval" != "xno"
7085 SDL_PATH=$withval:$PATH
7089 # Extract the first word of "sdl12-config", so it can be a program name with args.
7090 set dummy sdl12-config; ac_word=$2
7091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7092 echo "configure:7093: checking for $ac_word" >&5
7093 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7096 case "$SDL12_CONFIG" in
7098 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7101 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7105 ac_dummy="$SDL_PATH"
7106 for ac_dir in $ac_dummy; do
7107 test -z "$ac_dir" && ac_dir=.
7108 if test -f $ac_dir/$ac_word; then
7109 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7114 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7118 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7119 if test -n "$SDL12_CONFIG"; then
7120 echo "$ac_t""$SDL12_CONFIG" 1>&6
7122 echo "$ac_t""no" 1>&6
7125 SDL_CONFIG=${SDL12_CONFIG}
7126 SDL_HEADER="SDL12/SDL.h"
7127 if test x${SDL_CONFIG} = xno
7129 # Extract the first word of "sdl11-config", so it can be a program name with args.
7130 set dummy sdl11-config; ac_word=$2
7131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7132 echo "configure:7133: checking for $ac_word" >&5
7133 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7134 echo $ac_n "(cached) $ac_c" 1>&6
7136 case "$SDL11_CONFIG" in
7138 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7141 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7145 ac_dummy="$SDL_PATH"
7146 for ac_dir in $ac_dummy; do
7147 test -z "$ac_dir" && ac_dir=.
7148 if test -f $ac_dir/$ac_word; then
7149 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7154 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7158 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7159 if test -n "$SDL11_CONFIG"; then
7160 echo "$ac_t""$SDL11_CONFIG" 1>&6
7162 echo "$ac_t""no" 1>&6
7165 SDL_CONFIG=${SDL11_CONFIG}
7166 SDL_HEADER="SDL11/SDL.h"
7168 if test x${SDL_CONFIG} = xno
7170 # Extract the first word of "sdl-config", so it can be a program name with args.
7171 set dummy sdl-config; ac_word=$2
7172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7173 echo "configure:7174: checking for $ac_word" >&5
7174 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7175 echo $ac_n "(cached) $ac_c" 1>&6
7177 case "$SDL_CONFIG" in
7179 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7182 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7186 ac_dummy="$SDL_PATH"
7187 for ac_dir in $ac_dummy; do
7188 test -z "$ac_dir" && ac_dir=.
7189 if test -f $ac_dir/$ac_word; then
7190 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7195 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7199 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7200 if test -n "$SDL_CONFIG"; then
7201 echo "$ac_t""$SDL_CONFIG" 1>&6
7203 echo "$ac_t""no" 1>&6
7206 SDL_HEADER="SDL/SDL.h"
7208 if test x${SDL_CONFIG} != xno
7210 PLUGINS="${PLUGINS} sdl"
7211 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7212 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7213 save_CPPFLAGS=$CPPFLAGS
7214 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7215 for ac_hdr in ${SDL_HEADER}
7217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7219 echo "configure:7220: checking for $ac_hdr" >&5
7220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7221 echo $ac_n "(cached) $ac_c" 1>&6
7223 cat > conftest.$ac_ext <<EOF
7224 #line 7225 "configure"
7225 #include "confdefs.h"
7228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7229 { (eval echo configure:7230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7231 if test -z "$ac_err"; then
7233 eval "ac_cv_header_$ac_safe=yes"
7236 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7239 eval "ac_cv_header_$ac_safe=no"
7243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7244 echo "$ac_t""yes" 1>&6
7245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7246 cat >> confdefs.h <<EOF
7247 #define $ac_tr_hdr 1
7249 cat >> confdefs.h <<EOF
7250 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7254 echo "$ac_t""no" 1>&6
7255 { echo "configure: error: The development package for SDL is not installed.
7256 Please install it and try again. Alternatively you can also configure with
7257 --disable-sdl." 1>&2; exit 1; }
7262 CPPFLAGS=$save_CPPFLAGS
7263 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7265 { echo "configure: error: The development package for SDL is not installed.
7266 Please install it and try again. Alternatively you can also configure with
7267 --disable-sdl." 1>&2; exit 1; }
7269 elif test "x$enable_sdl" = "xyes"
7271 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7272 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7277 # Check whether --enable-directx or --disable-directx was given.
7278 if test "${enable_directx+set}" = set; then
7279 enableval="$enable_directx"
7283 if test "x$enableval" != "xno"
7285 if test x$SYS = xmingw32
7287 # Check whether --with-directx or --without-directx was given.
7288 if test "${with_directx+set}" = set; then
7289 withval="$with_directx"
7293 if test "x$with_directx" = "x"
7295 for ac_hdr in ddraw.h
7297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7299 echo "configure:7300: checking for $ac_hdr" >&5
7300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7301 echo $ac_n "(cached) $ac_c" 1>&6
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7309 { (eval echo configure:7310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7311 if test -z "$ac_err"; then
7313 eval "ac_cv_header_$ac_safe=yes"
7316 echo "configure: failed program was:" >&5
7317 cat conftest.$ac_ext >&5
7319 eval "ac_cv_header_$ac_safe=no"
7323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7324 echo "$ac_t""yes" 1>&6
7325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7326 cat >> confdefs.h <<EOF
7327 #define $ac_tr_hdr 1
7329 PLUGINS="${PLUGINS} directx"
7330 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7332 echo "$ac_t""no" 1>&6
7337 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7338 echo "configure:7339: checking for directX headers in ${withval}" >&5
7339 if test -f ${withval}/ddraw.h
7341 PLUGINS="${PLUGINS} directx"
7342 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7343 INCLUDE="${INCLUDE} -I${withval}"
7344 echo "$ac_t""yes" 1>&6
7346 echo "$ac_t""no" 1>&6
7347 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7353 # Check whether --enable-fb or --disable-fb was given.
7354 if test "${enable_fb+set}" = set; then
7355 enableval="$enable_fb"
7359 if test x$enable_fb != xno
7361 for ac_hdr in linux/fb.h
7363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7365 echo "configure:7366: checking for $ac_hdr" >&5
7366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7367 echo $ac_n "(cached) $ac_c" 1>&6
7369 cat > conftest.$ac_ext <<EOF
7370 #line 7371 "configure"
7371 #include "confdefs.h"
7374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7375 { (eval echo configure:7376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7377 if test -z "$ac_err"; then
7379 eval "ac_cv_header_$ac_safe=yes"
7382 echo "configure: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7385 eval "ac_cv_header_$ac_safe=no"
7389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7390 echo "$ac_t""yes" 1>&6
7391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7392 cat >> confdefs.h <<EOF
7393 #define $ac_tr_hdr 1
7396 PLUGINS="${PLUGINS} fb"
7399 echo "$ac_t""no" 1>&6
7405 # Check whether --enable-mga or --disable-mga was given.
7406 if test "${enable_mga+set}" = set; then
7407 enableval="$enable_mga"
7408 if test x$enable_mga = xyes
7410 PLUGINS="${PLUGINS} mga xmga"
7415 # Check whether --enable-ggi or --disable-ggi was given.
7416 if test "${enable_ggi+set}" = set; then
7417 enableval="$enable_ggi"
7421 if test x$enable_ggi = xyes
7423 PLUGINS="${PLUGINS} ggi"
7424 LIB_GGI="${LIB_GGI} -lggi"
7425 # Check whether --with-ggi or --without-ggi was given.
7426 if test "${with_ggi+set}" = set; then
7428 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7430 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7431 LIB_GGI="${LIB_GGI} -L$with_val/lib"
7437 # Check whether --enable-glide or --disable-glide was given.
7438 if test "${enable_glide+set}" = set; then
7439 enableval="$enable_glide"
7443 if test x$enable_glide = xyes
7445 PLUGINS="${PLUGINS} glide"
7446 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7447 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7448 # Check whether --with-glide or --without-glide was given.
7449 if test "${with_glide+set}" = set; then
7450 withval="$with_glide"
7451 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7453 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7454 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7460 # Check whether --enable-aa or --disable-aa was given.
7461 if test "${enable_aa+set}" = set; then
7462 enableval="$enable_aa"
7466 if test x$enable_aa = xyes
7468 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7469 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7470 echo "configure:7471: checking for aalib.h" >&5
7471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7472 echo $ac_n "(cached) $ac_c" 1>&6
7474 cat > conftest.$ac_ext <<EOF
7475 #line 7476 "configure"
7476 #include "confdefs.h"
7479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7480 { (eval echo configure:7481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7482 if test -z "$ac_err"; then
7484 eval "ac_cv_header_$ac_safe=yes"
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7490 eval "ac_cv_header_$ac_safe=no"
7494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7495 echo "$ac_t""yes" 1>&6
7498 echo "$ac_t""no" 1>&6
7502 if test x$have_aa = xtrue
7504 PLUGINS="${PLUGINS} aa"
7505 LIB_AA="${LIB_AA} -laa"
7510 # Check whether --with- or --without- was given.
7511 if test "${with_+set}" = set; then
7517 # Check whether --enable-dsp or --disable-dsp was given.
7518 if test "${enable_dsp+set}" = set; then
7519 enableval="$enable_dsp"
7524 if test x$enable_dsp != xno &&
7525 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7527 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7529 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7530 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7531 echo "configure:7532: checking for $ac_hdr" >&5
7532 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7533 echo $ac_n "(cached) $ac_c" 1>&6
7535 cat > conftest.$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7541 { (eval echo configure:7542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7543 if test -z "$ac_err"; then
7545 eval "ac_cv_header_$ac_safe=yes"
7548 echo "configure: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7551 eval "ac_cv_header_$ac_safe=no"
7555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7556 echo "$ac_t""yes" 1>&6
7557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7558 cat >> confdefs.h <<EOF
7559 #define $ac_tr_hdr 1
7562 PLUGINS="${PLUGINS} dsp"
7563 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7564 echo "configure:7565: checking for main in -lossaudio" >&5
7565 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7569 ac_save_LIBS="$LIBS"
7570 LIBS="-lossaudio $LIBS"
7571 cat > conftest.$ac_ext <<EOF
7572 #line 7573 "configure"
7573 #include "confdefs.h"
7579 if { (eval echo configure:7580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7581 eval "ac_cv_lib_$ac_lib_var=yes"
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7586 eval "ac_cv_lib_$ac_lib_var=no"
7589 LIBS="$ac_save_LIBS"
7592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 LIB_DSP="${LIB_DSP} -lossaudio"
7596 echo "$ac_t""no" 1>&6
7601 echo "$ac_t""no" 1>&6
7607 # Check whether --enable-esd or --disable-esd was given.
7608 if test "${enable_esd+set}" = set; then
7609 enableval="$enable_esd"
7610 if test x$enable_esd = xyes
7612 # Extract the first word of "esd-config", so it can be a program name with args.
7613 set dummy esd-config; ac_word=$2
7614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7615 echo "configure:7616: checking for $ac_word" >&5
7616 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 case "$ESD_CONFIG" in
7621 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7624 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7629 for ac_dir in $ac_dummy; do
7630 test -z "$ac_dir" && ac_dir=.
7631 if test -f $ac_dir/$ac_word; then
7632 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7637 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7641 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7642 if test -n "$ESD_CONFIG"; then
7643 echo "$ac_t""$ESD_CONFIG" 1>&6
7645 echo "$ac_t""no" 1>&6
7648 if test x${ESD_CONFIG} != xno
7650 PLUGINS="${PLUGINS} esd"
7651 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7652 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7658 # Check whether --enable-arts or --disable-arts was given.
7659 if test "${enable_arts+set}" = set; then
7660 enableval="$enable_arts"
7661 if test x$enable_arts = xyes
7663 # Extract the first word of "artsc-config", so it can be a program name with args.
7664 set dummy artsc-config; ac_word=$2
7665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7666 echo "configure:7667: checking for $ac_word" >&5
7667 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7670 case "$ARTS_CONFIG" in
7672 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7675 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7680 for ac_dir in $ac_dummy; do
7681 test -z "$ac_dir" && ac_dir=.
7682 if test -f $ac_dir/$ac_word; then
7683 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7688 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7692 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7693 if test -n "$ARTS_CONFIG"; then
7694 echo "$ac_t""$ARTS_CONFIG" 1>&6
7696 echo "$ac_t""no" 1>&6
7699 if test x${ARTS_CONFIG} != xno
7701 PLUGINS="${PLUGINS} arts"
7702 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7703 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7709 # Check whether --enable-alsa or --disable-alsa was given.
7710 if test "${enable_alsa+set}" = set; then
7711 enableval="$enable_alsa"
7712 if test x$enable_alsa = xyes
7714 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7715 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7716 echo "configure:7717: checking for alsa/asoundlib.h" >&5
7717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7718 echo $ac_n "(cached) $ac_c" 1>&6
7720 cat > conftest.$ac_ext <<EOF
7721 #line 7722 "configure"
7722 #include "confdefs.h"
7723 #include <alsa/asoundlib.h>
7725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7726 { (eval echo configure:7727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7728 if test -z "$ac_err"; then
7730 eval "ac_cv_header_$ac_safe=yes"
7733 echo "configure: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7736 eval "ac_cv_header_$ac_safe=no"
7740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7741 echo "$ac_t""yes" 1>&6
7742 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7743 echo "configure:7744: checking for main in -lasound" >&5
7744 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7748 ac_save_LIBS="$LIBS"
7749 LIBS="-lasound $LIBS"
7750 cat > conftest.$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7758 if { (eval echo configure:7759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7760 eval "ac_cv_lib_$ac_lib_var=yes"
7762 echo "configure: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7765 eval "ac_cv_lib_$ac_lib_var=no"
7768 LIBS="$ac_save_LIBS"
7771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7775 echo "$ac_t""no" 1>&6
7780 echo "$ac_t""no" 1>&6
7784 if test x$have_alsa = xtrue
7786 PLUGINS="${PLUGINS} alsa"
7787 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7793 # Check whether --enable-waveout or --disable-waveout was given.
7794 if test "${enable_waveout+set}" = set; then
7795 enableval="$enable_waveout"
7799 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7801 PLUGINS="${PLUGINS} waveout"
7802 LIB_WAVEOUT="-lwinmm"
7806 # Check whether --with- or --without- was given.
7807 if test "${with_+set}" = set; then
7813 # Check whether --enable-gtk or --disable-gtk was given.
7814 if test "${enable_gtk+set}" = set; then
7815 enableval="$enable_gtk"
7819 if test x$enable_gtk != xno
7822 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7823 if test "${with_gtk_config_path+set}" = set; then
7824 withval="$with_gtk_config_path"
7825 if test "x$withval" != "xno"
7827 GTK_PATH=$withval:$PATH
7831 # look for gtk-config
7832 # Extract the first word of "gtk12-config", so it can be a program name with args.
7833 set dummy gtk12-config; ac_word=$2
7834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7835 echo "configure:7836: checking for $ac_word" >&5
7836 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7837 echo $ac_n "(cached) $ac_c" 1>&6
7839 case "$GTK12_CONFIG" in
7841 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7844 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7848 ac_dummy="$GTK_PATH"
7849 for ac_dir in $ac_dummy; do
7850 test -z "$ac_dir" && ac_dir=.
7851 if test -f $ac_dir/$ac_word; then
7852 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7857 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7861 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7862 if test -n "$GTK12_CONFIG"; then
7863 echo "$ac_t""$GTK12_CONFIG" 1>&6
7865 echo "$ac_t""no" 1>&6
7868 GTK_CONFIG=${GTK12_CONFIG}
7869 if test x${GTK_CONFIG} = xno
7871 # Extract the first word of "gtk-config", so it can be a program name with args.
7872 set dummy gtk-config; ac_word=$2
7873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7874 echo "configure:7875: checking for $ac_word" >&5
7875 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6
7878 case "$GTK_CONFIG" in
7880 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7883 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7887 ac_dummy="$GTK_PATH"
7888 for ac_dir in $ac_dummy; do
7889 test -z "$ac_dir" && ac_dir=.
7890 if test -f $ac_dir/$ac_word; then
7891 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7896 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7900 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7901 if test -n "$GTK_CONFIG"; then
7902 echo "$ac_t""$GTK_CONFIG" 1>&6
7904 echo "$ac_t""no" 1>&6
7908 if test x${GTK_CONFIG} != xno
7910 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7912 { 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; }
7914 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7915 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7916 # now look for the gtk.h header
7917 saved_CPPFLAGS=$CPPFLAGS
7918 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7919 ac_cv_gtk_headers=yes
7920 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7924 echo "configure:7925: checking for $ac_hdr" >&5
7925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7934 { (eval echo configure:7935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7936 if test -z "$ac_err"; then
7938 eval "ac_cv_header_$ac_safe=yes"
7941 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7944 eval "ac_cv_header_$ac_safe=no"
7948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7949 echo "$ac_t""yes" 1>&6
7950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7951 cat >> confdefs.h <<EOF
7952 #define $ac_tr_hdr 1
7956 echo "$ac_t""no" 1>&6
7957 ac_cv_gtk_headers=no
7958 echo "Cannot find gtk development headers."
7963 if test "x$ac_cv_gtk_headers" = xyes
7965 PLUGINS="${PLUGINS} gtk"
7966 ALIASES="${ALIASES} gvlc"
7968 CPPFLAGS=$saved_CPPFLAGS
7972 # Check whether --enable-gnome or --disable-gnome was given.
7973 if test "${enable_gnome+set}" = set; then
7974 enableval="$enable_gnome"
7975 if test x$enable_gnome = xyes; then
7976 # look for gnome-config
7977 # Extract the first word of "gnome-config", so it can be a program name with args.
7978 set dummy gnome-config; ac_word=$2
7979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7980 echo "configure:7981: checking for $ac_word" >&5
7981 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7984 case "$GNOME_CONFIG" in
7986 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7989 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7994 for ac_dir in $ac_dummy; do
7995 test -z "$ac_dir" && ac_dir=.
7996 if test -f $ac_dir/$ac_word; then
7997 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8002 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8006 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8007 if test -n "$GNOME_CONFIG"; then
8008 echo "$ac_t""$GNOME_CONFIG" 1>&6
8010 echo "$ac_t""no" 1>&6
8013 if test -x ${GNOME_CONFIG}
8015 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8016 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8018 # now look for the gnome.h header
8019 saved_CPPFLAGS=$CPPFLAGS
8020 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
8021 for ac_hdr in gnome.h
8023 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8025 echo "configure:8026: checking for $ac_hdr" >&5
8026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8027 echo $ac_n "(cached) $ac_c" 1>&6
8029 cat > conftest.$ac_ext <<EOF
8030 #line 8031 "configure"
8031 #include "confdefs.h"
8034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8035 { (eval echo configure:8036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8037 if test -z "$ac_err"; then
8039 eval "ac_cv_header_$ac_safe=yes"
8042 echo "configure: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8045 eval "ac_cv_header_$ac_safe=no"
8049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8050 echo "$ac_t""yes" 1>&6
8051 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8052 cat >> confdefs.h <<EOF
8053 #define $ac_tr_hdr 1
8056 PLUGINS="${PLUGINS} gnome"
8057 ALIASES="${ALIASES} gnome-vlc"
8060 echo "$ac_t""no" 1>&6
8061 { echo "configure: error: Can't find gnome headers. Please install the gnome
8062 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
8068 CPPFLAGS=$saved_CPPFLAGS
8073 # Check whether --enable-qt or --disable-qt was given.
8074 if test "${enable_qt+set}" = set; then
8075 enableval="$enable_qt"
8076 if test x$enable_qt = xyes; then
8077 PLUGINS="${PLUGINS} qt"
8078 ALIASES="${ALIASES} qvlc"
8079 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
8080 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
8081 if test -x ${QTDIR}/bin/moc
8083 MOC=${QTDIR}/bin/moc
8091 # Check whether --enable-kde or --disable-kde was given.
8092 if test "${enable_kde+set}" = set; then
8093 enableval="$enable_kde"
8094 if test x$enable_kde = xyes; then
8095 PLUGINS="${PLUGINS} kde"
8096 ALIASES="${ALIASES} kvlc"
8097 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
8098 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
8099 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
8100 if test -x ${QTDIR}/bin/moc
8102 MOC=${QTDIR}/bin/moc
8110 # Check whether --enable-macosx or --disable-macosx was given.
8111 if test "${enable_macosx+set}" = set; then
8112 enableval="$enable_macosx"
8113 if test x$enable_macosx = xyes
8115 BUILTINS="${BUILTINS} macosx"
8116 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
8117 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
8118 LIB_COMMON="${LIB_COMMON} -ObjC"
8121 for ac_hdr in Cocoa/Cocoa.h
8123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8125 echo "configure:8126: checking for $ac_hdr" >&5
8126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8127 echo $ac_n "(cached) $ac_c" 1>&6
8129 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8135 { (eval echo configure:8136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8137 if test -z "$ac_err"; then
8139 eval "ac_cv_header_$ac_safe=yes"
8142 echo "configure: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8145 eval "ac_cv_header_$ac_safe=no"
8149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8150 echo "$ac_t""yes" 1>&6
8151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8152 cat >> confdefs.h <<EOF
8153 #define $ac_tr_hdr 1
8155 BUILTINS="${BUILTINS} macosx"
8156 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
8157 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
8158 LIB_COMMON="${LIB_COMMON} -ObjC"
8161 echo "$ac_t""no" 1>&6
8168 # Check whether --enable-qnx or --disable-qnx was given.
8169 if test "${enable_qnx+set}" = set; then
8170 enableval="$enable_qnx"
8174 if test x$enable_qnx != xno
8178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8180 echo "configure:8181: checking for $ac_hdr" >&5
8181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8182 echo $ac_n "(cached) $ac_c" 1>&6
8184 cat > conftest.$ac_ext <<EOF
8185 #line 8186 "configure"
8186 #include "confdefs.h"
8189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8190 { (eval echo configure:8191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8192 if test -z "$ac_err"; then
8194 eval "ac_cv_header_$ac_safe=yes"
8197 echo "configure: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8200 eval "ac_cv_header_$ac_safe=no"
8204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8205 echo "$ac_t""yes" 1>&6
8206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8207 cat >> confdefs.h <<EOF
8208 #define $ac_tr_hdr 1
8211 PLUGINS="${PLUGINS} qnx"
8212 LIB_QNX="${LIB_QNX} -lasound -lph"
8215 echo "$ac_t""no" 1>&6
8221 # Check whether --enable-win32 or --disable-win32 was given.
8222 if test "${enable_win32+set}" = set; then
8223 enableval="$enable_win32"
8224 if test "x$enableval" != "xno"
8226 PLUGINS="${PLUGINS} win32"
8231 # Check whether --enable-ncurses or --disable-ncurses was given.
8232 if test "${enable_ncurses+set}" = set; then
8233 enableval="$enable_ncurses"
8234 if test x$enable_ncurses = xyes; then
8235 PLUGINS="${PLUGINS} ncurses"
8236 LIB_NCURSES="${LIB_NCURSES} -lncurses"
8241 # Check whether --enable-lirc or --disable-lirc was given.
8242 if test "${enable_lirc+set}" = set; then
8243 enableval="$enable_lirc"
8247 if test x$enable_lirc = xyes
8249 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8250 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8251 echo "configure:8252: checking for lirc/lirc_client.h" >&5
8252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8258 #include <lirc/lirc_client.h>
8260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8261 { (eval echo configure:8262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8263 if test -z "$ac_err"; then
8265 eval "ac_cv_header_$ac_safe=yes"
8268 echo "configure: failed program was:" >&5
8269 cat conftest.$ac_ext >&5
8271 eval "ac_cv_header_$ac_safe=no"
8275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8276 echo "$ac_t""yes" 1>&6
8277 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8278 echo "configure:8279: checking for lirc_init in -llirc_client" >&5
8279 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8281 echo $ac_n "(cached) $ac_c" 1>&6
8283 ac_save_LIBS="$LIBS"
8284 LIBS="-llirc_client $LIBS"
8285 cat > conftest.$ac_ext <<EOF
8286 #line 8287 "configure"
8287 #include "confdefs.h"
8288 /* Override any gcc2 internal prototype to avoid an error. */
8289 /* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8297 if { (eval echo configure:8298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8299 eval "ac_cv_lib_$ac_lib_var=yes"
8301 echo "configure: failed program was:" >&5
8302 cat conftest.$ac_ext >&5
8304 eval "ac_cv_lib_$ac_lib_var=no"
8307 LIBS="$ac_save_LIBS"
8310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8311 echo "$ac_t""yes" 1>&6
8314 echo "$ac_t""no" 1>&6
8319 echo "$ac_t""no" 1>&6
8323 if test x$have_lirc = xtrue
8325 PLUGINS="${PLUGINS} lirc"
8326 LIB_LIRC="${LIB_LIRC} -llirc_client"
8332 # Check whether --with- or --without- was given.
8333 if test "${with_+set}" = set; then
8339 # Check whether --with-words or --without-words was given.
8340 if test "${with_words+set}" = set; then
8341 withval="$with_words"
8347 ac_cv_c_bigendian=yes
8350 ac_cv_c_bigendian=no
8353 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8354 echo "configure:8355: checking whether the byte order is big-endian" >&5
8355 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8356 echo $ac_n "(cached) $ac_c" 1>&6
8358 ac_cv_c_bigendian=unknown
8359 cat >conftest.c <<EOF
8360 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8361 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8362 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8363 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8364 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8365 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8366 int main(void) { _a(); _e(); return 0; }
8369 if test -f conftest.c
8371 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
8372 && test -f conftest.o
8374 if test "`strings conftest.o | grep BIGenDianSyS`"
8376 ac_cv_c_bigendian=yes
8378 if test "`strings conftest.o | grep LiTTleEnDian`"
8380 ac_cv_c_bigendian=no
8387 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8388 if test x$ac_cv_c_bigendian = xunknown
8390 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8394 if test $ac_cv_c_bigendian = yes
8396 cat >> confdefs.h <<\EOF
8397 #define WORDS_BIGENDIAN 1
8403 # Check whether --with-dll-path or --without-dll-path was given.
8404 if test "${with_dll_path+set}" = set; then
8405 withval="$with_dll_path"
8406 if test "x$withval" != "xno"
8414 # Check whether --enable-gprof or --disable-gprof was given.
8415 if test "${enable_gprof+set}" = set; then
8416 enableval="$enable_gprof"
8417 if test x$enableval = xyes; then GPROF=1; fi
8422 # Check whether --enable-cprof or --disable-cprof was given.
8423 if test "${enable_cprof+set}" = set; then
8424 enableval="$enable_cprof"
8425 if test x$enableval = xyes;
8427 LIB_COMMON="${LIB_COMMON} -lcprof"
8434 # Check whether --enable-pth or --disable-pth was given.
8435 if test "${enable_pth+set}" = set; then
8436 enableval="$enable_pth"
8437 if test x$enableval = xyes; then
8438 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8439 echo "configure:8440: checking for pth_init in -lpth" >&5
8440 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8442 echo $ac_n "(cached) $ac_c" 1>&6
8444 ac_save_LIBS="$LIBS"
8446 cat > conftest.$ac_ext <<EOF
8447 #line 8448 "configure"
8448 #include "confdefs.h"
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 /* We use char because int might match the return type of a gcc2
8451 builtin and then its argument prototype would still apply. */
8458 if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8460 eval "ac_cv_lib_$ac_lib_var=yes"
8462 echo "configure: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8465 eval "ac_cv_lib_$ac_lib_var=no"
8468 LIBS="$ac_save_LIBS"
8471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8472 echo "$ac_t""yes" 1>&6
8473 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8474 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8475 cat >> confdefs.h <<EOF
8476 #define $ac_tr_lib 1
8482 echo "$ac_t""no" 1>&6
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8491 egrep "pth_init" >/dev/null 2>&1; then
8494 cat >> confdefs.h <<\EOF
8495 #define PTH_INIT_IN_PTH_H 1
8507 # Check whether --enable-st or --disable-st was given.
8508 if test "${enable_st+set}" = set; then
8509 enableval="$enable_st"
8510 if test x$enableval = xyes; then
8511 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8512 echo "configure:8513: checking for st_init in -lst" >&5
8513 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8515 echo $ac_n "(cached) $ac_c" 1>&6
8517 ac_save_LIBS="$LIBS"
8519 cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8522 /* Override any gcc2 internal prototype to avoid an error. */
8523 /* We use char because int might match the return type of a gcc2
8524 builtin and then its argument prototype would still apply. */
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8533 eval "ac_cv_lib_$ac_lib_var=yes"
8535 echo "configure: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8538 eval "ac_cv_lib_$ac_lib_var=no"
8541 LIBS="$ac_save_LIBS"
8544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8545 echo "$ac_t""yes" 1>&6
8546 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8547 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8548 cat >> confdefs.h <<EOF
8549 #define $ac_tr_lib 1
8555 echo "$ac_t""no" 1>&6
8558 cat > conftest.$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8564 egrep "st_init" >/dev/null 2>&1; then
8567 cat >> confdefs.h <<\EOF
8568 #define ST_INIT_IN_ST_H 1
8580 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
8582 # Check whether --enable-plugins or --disable-plugins was given.
8583 if test "${enable_plugins+set}" = set; then
8584 enableval="$enable_plugins"
8585 if test x$enable_plugins = xno
8587 BUILTINS="${BUILTINS} ${PLUGINS}"
8593 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8595 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8597 BUILTINS="${BUILTINS} ${PLUGINS}"
8601 cat >> confdefs.h <<EOF
8602 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8605 cat >> confdefs.h <<EOF
8606 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8610 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8611 cat >> confdefs.h <<EOF
8612 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8615 cat >> confdefs.h <<EOF
8616 #define MODULE_SYMBOL $VLC_SYMBOL
8620 DATA_PATH="${ac_tool_prefix}/share/videolan"
8622 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8725 cat > confcache <<\EOF
8726 # This file is a shell script that caches the results of configure
8727 # tests run on this system so they can be shared between configure
8728 # scripts and configure runs. It is not useful on other systems.
8729 # If it contains results you don't want to keep, you may remove or edit it.
8731 # By default, configure uses ./config.cache as the cache file,
8732 # creating it if it does not exist already. You can give configure
8733 # the --cache-file=FILE option to use a different cache file; that is
8734 # what configure does when it calls configure scripts in
8735 # subdirectories, so they share the cache.
8736 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8737 # config.status only pays attention to the cache file if you give it the
8738 # --recheck option to rerun configure.
8741 # The following way of writing the cache mishandles newlines in values,
8742 # but we know of no workaround that is simple, portable, and efficient.
8743 # So, don't put newlines in cache variables' values.
8744 # Ultrix sh set writes to stderr and can't be redirected directly,
8745 # and sets the high bit in the cache file unless we assign to the vars.
8747 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8749 # `set' does not quote correctly, so add quotes (double-quote substitution
8750 # turns \\\\ into \\, and sed turns \\ into \).
8752 -e "s/'/'\\\\''/g" \
8753 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8756 # `set' quotes correctly as required by POSIX, so do not add quotes.
8757 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8760 if cmp -s $cache_file confcache; then
8763 if test -w $cache_file; then
8764 echo "updating cache $cache_file"
8765 cat confcache > $cache_file
8767 echo "not updating unwritable cache $cache_file"
8772 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8775 # Let make expand exec_prefix.
8776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8778 # Any assignment to VPATH causes Sun make to only execute
8779 # the first set of double-colon rules, so remove it if not needed.
8780 # If there is a colon in the path, we need to keep it.
8781 if test "x$srcdir" = x.; then
8782 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8785 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8787 DEFS=-DHAVE_CONFIG_H
8789 # Without the "./", some shells look in PATH for config.status.
8790 : ${CONFIG_STATUS=./config.status}
8792 echo creating $CONFIG_STATUS
8793 rm -f $CONFIG_STATUS
8794 cat > $CONFIG_STATUS <<EOF
8796 # Generated automatically by configure.
8797 # Run this file to recreate the current configuration.
8798 # This directory was configured as follows,
8799 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8801 # $0 $ac_configure_args
8803 # Compiler output produced by configure, useful for debugging
8804 # configure, is in ./config.log if it exists.
8806 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8809 case "\$ac_option" in
8810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8811 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8812 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8813 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8814 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8816 -help | --help | --hel | --he | --h)
8817 echo "\$ac_cs_usage"; exit 0 ;;
8818 *) echo "\$ac_cs_usage"; exit 1 ;;
8822 ac_given_srcdir=$srcdir
8823 ac_given_INSTALL="$INSTALL"
8825 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8827 cat >> $CONFIG_STATUS <<EOF
8829 # Protect against being on the right side of a sed subst in config.status.
8830 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8831 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8835 s%@CFLAGS@%$CFLAGS%g
8836 s%@CPPFLAGS@%$CPPFLAGS%g
8837 s%@CXXFLAGS@%$CXXFLAGS%g
8838 s%@FFLAGS@%$FFLAGS%g
8840 s%@LDFLAGS@%$LDFLAGS%g
8842 s%@exec_prefix@%$exec_prefix%g
8843 s%@prefix@%$prefix%g
8844 s%@program_transform_name@%$program_transform_name%g
8845 s%@bindir@%$bindir%g
8846 s%@sbindir@%$sbindir%g
8847 s%@libexecdir@%$libexecdir%g
8848 s%@datadir@%$datadir%g
8849 s%@sysconfdir@%$sysconfdir%g
8850 s%@sharedstatedir@%$sharedstatedir%g
8851 s%@localstatedir@%$localstatedir%g
8852 s%@libdir@%$libdir%g
8853 s%@includedir@%$includedir%g
8854 s%@oldincludedir@%$oldincludedir%g
8855 s%@infodir@%$infodir%g
8856 s%@mandir@%$mandir%g
8858 s%@host_alias@%$host_alias%g
8859 s%@host_cpu@%$host_cpu%g
8860 s%@host_vendor@%$host_vendor%g
8861 s%@host_os@%$host_os%g
8862 s%@target@%$target%g
8863 s%@target_alias@%$target_alias%g
8864 s%@target_cpu@%$target_cpu%g
8865 s%@target_vendor@%$target_vendor%g
8866 s%@target_os@%$target_os%g
8868 s%@build_alias@%$build_alias%g
8869 s%@build_cpu@%$build_cpu%g
8870 s%@build_vendor@%$build_vendor%g
8871 s%@build_os@%$build_os%g
8872 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8873 s%@SET_MAKE@%$SET_MAKE%g
8876 s%@RANLIB@%$RANLIB%g
8878 s%@ALLOCA@%$ALLOCA%g
8879 s%@GLIBC21@%$GLIBC21%g
8880 s%@LIBICONV@%$LIBICONV%g
8881 s%@USE_NLS@%$USE_NLS%g
8882 s%@MSGFMT@%$MSGFMT%g
8883 s%@GMSGFMT@%$GMSGFMT%g
8884 s%@XGETTEXT@%$XGETTEXT%g
8885 s%@INTLBISON@%$INTLBISON%g
8886 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8887 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8888 s%@CATALOGS@%$CATALOGS%g
8889 s%@CATOBJEXT@%$CATOBJEXT%g
8890 s%@GMOFILES@%$GMOFILES%g
8891 s%@INTLLIBS@%$INTLLIBS%g
8892 s%@INTLOBJS@%$INTLOBJS%g
8893 s%@POFILES@%$POFILES%g
8895 s%@DATADIRNAME@%$DATADIRNAME%g
8896 s%@INSTOBJEXT@%$INSTOBJEXT%g
8897 s%@GENCAT@%$GENCAT%g
8898 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8899 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8900 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8901 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8902 s%@INSTALL_DATA@%$INSTALL_DATA%g
8903 s%@WINDRES@%$WINDRES%g
8904 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8905 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8906 s%@SDL_CONFIG@%$SDL_CONFIG%g
8907 s%@ESD_CONFIG@%$ESD_CONFIG%g
8908 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8909 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8910 s%@GTK_CONFIG@%$GTK_CONFIG%g
8911 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8912 s%@DATA_PATH@%$DATA_PATH%g
8913 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8916 s%@PLUGINS@%$PLUGINS%g
8917 s%@BUILTINS@%$BUILTINS%g
8918 s%@ALIASES@%$ALIASES%g
8919 s%@INCLUDE@%$INCLUDE%g
8924 s%@OPTIMS@%$OPTIMS%g
8925 s%@TUNING@%$TUNING%g
8926 s%@RELEASE@%$RELEASE%g
8928 s%@DLL_PATH@%$DLL_PATH%g
8929 s%@PACKAGE@%$PACKAGE%g
8930 s%@VERSION@%$VERSION%g
8931 s%@VCD_DEVICE@%$VCD_DEVICE%g
8932 s%@DVD_DEVICE@%$DVD_DEVICE%g
8933 s%@PLDFLAGS@%$PLDFLAGS%g
8934 s%@SOFLAGS@%$SOFLAGS%g
8935 s%@LIB_COMMON@%$LIB_COMMON%g
8936 s%@LIB_VLC@%$LIB_VLC%g
8937 s%@LIB_A52@%$LIB_A52%g
8938 s%@LIB_AA@%$LIB_AA%g
8939 s%@LIB_ALSA@%$LIB_ALSA%g
8940 s%@LIB_ARTS@%$LIB_ARTS%g
8941 s%@LIB_BEOS@%$LIB_BEOS%g
8942 s%@LIB_DARWIN@%$LIB_DARWIN%g
8943 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8944 s%@LIB_DSP@%$LIB_DSP%g
8945 s%@LIB_DVD@%$LIB_DVD%g
8946 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8947 s%@LIB_ESD@%$LIB_ESD%g
8948 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8949 s%@LIB_GGI@%$LIB_GGI%g
8950 s%@LIB_GLIDE@%$LIB_GLIDE%g
8951 s%@LIB_GNOME@%$LIB_GNOME%g
8952 s%@LIB_GTK@%$LIB_GTK%g
8953 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8954 s%@LIB_IMDCT@%$LIB_IMDCT%g
8955 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8956 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8957 s%@LIB_IPV4@%$LIB_IPV4%g
8958 s%@LIB_IPV6@%$LIB_IPV6%g
8959 s%@LIB_KDE@%$LIB_KDE%g
8960 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8961 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8962 s%@LIB_LIRC@%$LIB_LIRC%g
8963 s%@LIB_MACOSX@%$LIB_MACOSX%g
8964 s%@LIB_MAD@%$LIB_MAD%g
8965 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8966 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8967 s%@LIB_NCURSES@%$LIB_NCURSES%g
8968 s%@LIB_QNX@%$LIB_QNX%g
8969 s%@LIB_QT@%$LIB_QT%g
8970 s%@LIB_RC@%$LIB_RC%g
8971 s%@LIB_SDL@%$LIB_SDL%g
8972 s%@LIB_VCD@%$LIB_VCD%g
8973 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8974 s%@LIB_WIN32@%$LIB_WIN32%g
8975 s%@LIB_X11@%$LIB_X11%g
8976 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8977 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8978 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8979 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8980 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8981 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8982 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8983 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8984 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8985 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8986 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8987 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8988 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8989 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8990 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8991 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8992 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8993 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8994 s%@CFLAGS_QT@%$CFLAGS_QT%g
8995 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8996 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8997 s%@CFLAGS_X11@%$CFLAGS_X11%g
8998 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8999 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
9000 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
9001 s%@NEED_GETOPT@%$NEED_GETOPT%g
9002 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
9007 cat >> $CONFIG_STATUS <<\EOF
9009 # Split the substitutions into bite-sized pieces for seds with
9010 # small command number limits, like on Digital OSF/1 and HP-UX.
9011 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9012 ac_file=1 # Number of current file.
9013 ac_beg=1 # First line for current file.
9014 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9017 while $ac_more_lines; do
9018 if test $ac_beg -gt 1; then
9019 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9021 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9023 if test ! -s conftest.s$ac_file; then
9025 rm -f conftest.s$ac_file
9027 if test -z "$ac_sed_cmds"; then
9028 ac_sed_cmds="sed -f conftest.s$ac_file"
9030 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9032 ac_file=`expr $ac_file + 1`
9034 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9037 if test -z "$ac_sed_cmds"; then
9042 cat >> $CONFIG_STATUS <<EOF
9044 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
9046 cat >> $CONFIG_STATUS <<\EOF
9047 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9048 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9050 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9051 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9052 *) ac_file_in="${ac_file}.in" ;;
9055 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9057 # Remove last slash and all that follows it. Not all systems have dirname.
9058 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9059 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9060 # The file is in a subdirectory.
9061 test ! -d "$ac_dir" && mkdir "$ac_dir"
9062 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9063 # A "../" for each directory in $ac_dir_suffix.
9064 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9066 ac_dir_suffix= ac_dots=
9069 case "$ac_given_srcdir" in
9071 if test -z "$ac_dots"; then top_srcdir=.
9072 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9073 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9075 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9076 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9079 case "$ac_given_INSTALL" in
9080 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9081 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9084 echo creating "$ac_file"
9086 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9088 *Makefile*) ac_comsub="1i\\
9089 # $configure_input" ;;
9093 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9095 s%@configure_input@%$configure_input%g
9096 s%@srcdir@%$srcdir%g
9097 s%@top_srcdir@%$top_srcdir%g
9098 s%@INSTALL@%$INSTALL%g
9099 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9103 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9104 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9106 # ac_d sets the value in "#define NAME VALUE" lines.
9107 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9108 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9111 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9112 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9113 ac_uB='\([ ]\)%\1#\2define\3'
9116 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9117 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9118 ac_eB='$%\1#\2define\3'
9122 if test "${CONFIG_HEADERS+set}" != set; then
9124 cat >> $CONFIG_STATUS <<EOF
9125 CONFIG_HEADERS="include/defs.h"
9127 cat >> $CONFIG_STATUS <<\EOF
9129 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9132 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9133 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9134 *) ac_file_in="${ac_file}.in" ;;
9137 echo creating $ac_file
9139 rm -f conftest.frag conftest.in conftest.out
9140 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9141 cat $ac_file_inputs > conftest.in
9145 # Transform confdefs.h into a sed script conftest.vals that substitutes
9146 # the proper values into config.h.in to produce config.h. And first:
9147 # Protect against being on the right side of a sed subst in config.status.
9148 # Protect against being in an unquoted here document in config.status.
9150 cat > conftest.hdr <<\EOF
9153 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9157 sed -n -f conftest.hdr confdefs.h > conftest.vals
9160 # This sed command replaces #undef with comments. This is necessary, for
9161 # example, in the case of _POSIX_SOURCE, which is predefined and required
9162 # on some systems where configure will not decide to define it.
9163 cat >> conftest.vals <<\EOF
9164 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9167 # Break up conftest.vals because some shells have a limit on
9168 # the size of here documents, and old seds have small limits too.
9173 ac_lines=`grep -c . conftest.vals`
9174 # grep -c gives empty output for an empty file on some AIX systems.
9175 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9176 # Write a limited-size here document to conftest.frag.
9177 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9178 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9180 sed -f conftest.frag conftest.in > conftest.out
9182 mv conftest.out conftest.in
9184 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9186 mv conftest.tail conftest.vals
9190 cat >> $CONFIG_STATUS <<\EOF
9191 rm -f conftest.frag conftest.h
9192 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9193 cat conftest.in >> conftest.h
9195 if cmp -s $ac_file conftest.h 2>/dev/null; then
9196 echo "$ac_file is unchanged"
9199 # Remove last slash and all that follows it. Not all systems have dirname.
9200 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9201 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9202 # The file is in a subdirectory.
9203 test ! -d "$ac_dir" && mkdir "$ac_dir"
9206 mv conftest.h $ac_file
9211 cat >> $CONFIG_STATUS <<EOF
9215 cat >> $CONFIG_STATUS <<\EOF
9216 for ac_file in $CONFIG_FILES; do
9217 # Support "outfile[:infile[:infile...]]"
9219 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9221 # PO directories have a Makefile.in generated from Makefile.in.in.
9222 case "$ac_file" in */Makefile.in)
9223 # Adjust a relative srcdir.
9224 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9225 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9226 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9227 # In autoconf-2.13 it is called $ac_given_srcdir.
9228 # In autoconf-2.50 it is called $srcdir.
9229 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9230 case "$ac_given_srcdir" in
9231 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9232 /*) top_srcdir="$ac_given_srcdir" ;;
9233 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9235 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9236 rm -f "$ac_dir/POTFILES"
9237 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9238 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9239 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9240 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9248 chmod +x $CONFIG_STATUS
9249 rm -fr confdefs* $ac_clean_files
9250 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9254 global configuration
9255 --------------------
9257 architecture : ${ARCH}
9258 optimizations : ${OPTIMS}
9260 release: : ${RELEASE}"
9262 if test x${HAVE_VLC} = x1
9267 vlc version : ${VLC_VERSION}
9268 debug mode : ${DEBUG}
9269 cprof/gprof support : ${CPROF}/${GPROF}
9270 need builtin getopt : ${NEED_GETOPT}
9271 built-in modules :${BUILTINS}
9272 plug-in modules :${PLUGINS}
9273 vlc aliases :${ALIASES}"
9277 libdvdcss configuration
9278 -----------------------
9279 can be built : ${CAN_BUILD_LIBDVDCSS}
9280 will be built : ${NEED_LIBDVDCSS}"
9281 if test x${NEED_LIBDVDCSS} = x1
9283 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
9284 echo "link statically : ${STATIC_LIBDVDCSS}"
9286 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
9290 You may now tune Makefile.opts at your convenience, for instance to choose
9291 which modules get compiled as plugins.
9293 if test x${HAVE_VLC} = x1
9295 echo "To build vlc and its plugins, type \`$VLC_MAKE'."
9297 if test x${NEED_LIBDVDCSS} = x1
9299 echo "To build libdvdcss only, type \`$VLC_MAKE libdvdcss'."