3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-vcd VCD support for Linux and MacOS X (default enabled)"
50 --enable-satellite satellite card support (default disabled)"
54 --enable-mad libmad module (default disabled)"
56 --with-mad=PATH path to libmad"
58 --enable-a52 AC3 support with liba52 (default enabled)"
60 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
64 --enable-x11 X11 support (default enabled)"
66 --enable-xvideo XVideo support (default enabled)"
68 --enable-sdl SDL support (default enabled)"
70 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
72 --enable-directx Win32 DirectX support (default enabled on Win32)"
74 --with-directx=PATH Win32 DirectX headers and libraries"
76 --enable-fb Linux framebuffer support (default enabled on Linux)"
78 --enable-mga Linux kernel Matrox support (default disabled)"
80 --enable-ggi GGI support (default disabled)"
82 --with-ggi=PATH path to libggi"
84 --enable-glide Glide (3dfx) support (default disabled)"
86 --with-glide=PATH path to libglide"
88 --enable-aa aalib output (default disabled)"
92 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
94 --enable-esd Esound library support (default disabled)"
96 --enable-arts aRts sound server (default disabled)"
98 --enable-alsa ALSA sound support for Linux (default disabled)"
100 --enable-waveout Win32 waveOut module (default enabled on Win32)"
104 --enable-gtk Gtk+ support (default enabled)"
106 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
108 --enable-gnome Gnome interface support (default disabled)"
110 --enable-qt Qt interface support (default disabled)"
112 --enable-kde KDE interface support (default disabled)"
114 --enable-macosx MacOS X support (default enabled on MacOS X)"
116 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
118 --enable-win32 Win32 interface support (default disabled)"
120 --enable-ncurses ncurses interface support (default disabled)"
122 --enable-lirc lirc support (default disabled)"
126 --with-words=endianness set endianness (big or little)"
128 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
130 --enable-gprof gprof profiling (default disabled)"
132 --enable-cprof cprof profiling (default disabled)"
134 --enable-pth GNU Pth support (default disabled)"
136 --enable-st State Threads (default disabled)"
138 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
140 # Initialize some variables set by options.
141 # The variables have the same names as the options, with
142 # dashes changed to underlines.
144 cache_file=./config.cache
153 program_transform_name=s,x,x,
161 bindir='${exec_prefix}/bin'
162 sbindir='${exec_prefix}/sbin'
163 libexecdir='${exec_prefix}/libexec'
164 datadir='${prefix}/share'
165 sysconfdir='${prefix}/etc'
166 sharedstatedir='${prefix}/com'
167 localstatedir='${prefix}/var'
168 libdir='${exec_prefix}/lib'
169 includedir='${prefix}/include'
170 oldincludedir='/usr/include'
171 infodir='${prefix}/info'
172 mandir='${prefix}/man'
174 # Initialize some other variables.
177 SHELL=${CONFIG_SHELL-/bin/sh}
178 # Maximum number of lines to put in a shell here document.
185 # If the previous option needs an argument, assign it.
186 if test -n "$ac_prev"; then
187 eval "$ac_prev=\$ac_option"
193 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
197 # Accept the important Cygnus configure options, so we can diagnose typos.
201 -bindir | --bindir | --bindi | --bind | --bin | --bi)
203 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
204 bindir="$ac_optarg" ;;
206 -build | --build | --buil | --bui | --bu)
208 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
209 build="$ac_optarg" ;;
211 -cache-file | --cache-file | --cache-fil | --cache-fi \
212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
213 ac_prev=cache_file ;;
214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
216 cache_file="$ac_optarg" ;;
218 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
220 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
222 datadir="$ac_optarg" ;;
224 -disable-* | --disable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
231 eval "enable_${ac_feature}=no" ;;
233 -enable-* | --enable-*)
234 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
235 # Reject names that are not valid shell variable names.
236 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
237 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
239 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
244 eval "enable_${ac_feature}='$ac_optarg'" ;;
246 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
247 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
248 | --exec | --exe | --ex)
249 ac_prev=exec_prefix ;;
250 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
251 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
252 | --exec=* | --exe=* | --ex=*)
253 exec_prefix="$ac_optarg" ;;
255 -gas | --gas | --ga | --g)
256 # Obsolete; use --with-gas.
259 -help | --help | --hel | --he)
260 # Omit some internal or obsolete options to make the list less imposing.
261 # This message is too long to be a string in the A/UX 3.1 sh.
263 Usage: configure [options] [host]
264 Options: [defaults in brackets after descriptions]
266 --cache-file=FILE cache test results in FILE
267 --help print this message
268 --no-create do not create output files
269 --quiet, --silent do not print \`checking...' messages
270 --version print the version of autoconf that created configure
271 Directory and file names:
272 --prefix=PREFIX install architecture-independent files in PREFIX
274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
276 --bindir=DIR user executables in DIR [EPREFIX/bin]
277 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
278 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
279 --datadir=DIR read-only architecture-independent data in DIR
281 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
282 --sharedstatedir=DIR modifiable architecture-independent data in DIR
284 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
285 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
286 --includedir=DIR C header files in DIR [PREFIX/include]
287 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
288 --infodir=DIR info documentation in DIR [PREFIX/info]
289 --mandir=DIR man documentation in DIR [PREFIX/man]
290 --srcdir=DIR find the sources in DIR [configure dir or ..]
291 --program-prefix=PREFIX prepend PREFIX to installed program names
292 --program-suffix=SUFFIX append SUFFIX to installed program names
293 --program-transform-name=PROGRAM
294 run sed PROGRAM on installed program names
298 --build=BUILD configure for building on BUILD [BUILD=HOST]
299 --host=HOST configure for HOST [guessed]
300 --target=TARGET configure for TARGET [TARGET=HOST]
301 Features and packages:
302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
306 --x-includes=DIR X include files are in DIR
307 --x-libraries=DIR X library files are in DIR
309 if test -n "$ac_help"; then
310 echo "--enable and --with options recognized:$ac_help"
314 -host | --host | --hos | --ho)
316 -host=* | --host=* | --hos=* | --ho=*)
319 -includedir | --includedir | --includedi | --included | --include \
320 | --includ | --inclu | --incl | --inc)
321 ac_prev=includedir ;;
322 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
323 | --includ=* | --inclu=* | --incl=* | --inc=*)
324 includedir="$ac_optarg" ;;
326 -infodir | --infodir | --infodi | --infod | --info | --inf)
328 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
329 infodir="$ac_optarg" ;;
331 -libdir | --libdir | --libdi | --libd)
333 -libdir=* | --libdir=* | --libdi=* | --libd=*)
334 libdir="$ac_optarg" ;;
336 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
337 | --libexe | --libex | --libe)
338 ac_prev=libexecdir ;;
339 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
340 | --libexe=* | --libex=* | --libe=*)
341 libexecdir="$ac_optarg" ;;
343 -localstatedir | --localstatedir | --localstatedi | --localstated \
344 | --localstate | --localstat | --localsta | --localst \
345 | --locals | --local | --loca | --loc | --lo)
346 ac_prev=localstatedir ;;
347 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
348 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
349 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
350 localstatedir="$ac_optarg" ;;
352 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
354 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
355 mandir="$ac_optarg" ;;
358 # Obsolete; use --without-fp.
361 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
365 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
366 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
369 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
370 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
371 | --oldin | --oldi | --old | --ol | --o)
372 ac_prev=oldincludedir ;;
373 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
374 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
375 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
376 oldincludedir="$ac_optarg" ;;
378 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
380 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
381 prefix="$ac_optarg" ;;
383 -program-prefix | --program-prefix | --program-prefi | --program-pref \
384 | --program-pre | --program-pr | --program-p)
385 ac_prev=program_prefix ;;
386 -program-prefix=* | --program-prefix=* | --program-prefi=* \
387 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
388 program_prefix="$ac_optarg" ;;
390 -program-suffix | --program-suffix | --program-suffi | --program-suff \
391 | --program-suf | --program-su | --program-s)
392 ac_prev=program_suffix ;;
393 -program-suffix=* | --program-suffix=* | --program-suffi=* \
394 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
395 program_suffix="$ac_optarg" ;;
397 -program-transform-name | --program-transform-name \
398 | --program-transform-nam | --program-transform-na \
399 | --program-transform-n | --program-transform- \
400 | --program-transform | --program-transfor \
401 | --program-transfo | --program-transf \
402 | --program-trans | --program-tran \
403 | --progr-tra | --program-tr | --program-t)
404 ac_prev=program_transform_name ;;
405 -program-transform-name=* | --program-transform-name=* \
406 | --program-transform-nam=* | --program-transform-na=* \
407 | --program-transform-n=* | --program-transform-=* \
408 | --program-transform=* | --program-transfor=* \
409 | --program-transfo=* | --program-transf=* \
410 | --program-trans=* | --program-tran=* \
411 | --progr-tra=* | --program-tr=* | --program-t=*)
412 program_transform_name="$ac_optarg" ;;
414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
415 | -silent | --silent | --silen | --sile | --sil)
418 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
420 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
422 sbindir="$ac_optarg" ;;
424 -sharedstatedir | --sharedstatedir | --sharedstatedi \
425 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
426 | --sharedst | --shareds | --shared | --share | --shar \
428 ac_prev=sharedstatedir ;;
429 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
430 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
431 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
433 sharedstatedir="$ac_optarg" ;;
435 -site | --site | --sit)
437 -site=* | --site=* | --sit=*)
440 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
442 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
443 srcdir="$ac_optarg" ;;
445 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
446 | --syscon | --sysco | --sysc | --sys | --sy)
447 ac_prev=sysconfdir ;;
448 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
449 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
450 sysconfdir="$ac_optarg" ;;
452 -target | --target | --targe | --targ | --tar | --ta | --t)
454 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
455 target="$ac_optarg" ;;
457 -v | -verbose | --verbose | --verbos | --verbo | --verb)
460 -version | --version | --versio | --versi | --vers)
461 echo "configure generated by autoconf version 2.13"
465 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
466 # Reject names that are not valid shell variable names.
467 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
468 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
470 ac_package=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}='$ac_optarg'" ;;
477 -without-* | --without-*)
478 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
479 # Reject names that are not valid shell variable names.
480 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
481 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
483 ac_package=`echo $ac_package| sed 's/-/_/g'`
484 eval "with_${ac_package}=no" ;;
487 # Obsolete; use --with-x.
490 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
491 | --x-incl | --x-inc | --x-in | --x-i)
492 ac_prev=x_includes ;;
493 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
494 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
495 x_includes="$ac_optarg" ;;
497 -x-libraries | --x-libraries | --x-librarie | --x-librari \
498 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
499 ac_prev=x_libraries ;;
500 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
501 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
502 x_libraries="$ac_optarg" ;;
504 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
508 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
509 echo "configure: warning: $ac_option: invalid host type" 1>&2
511 if test "x$nonopt" != xNONE; then
512 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
520 if test -n "$ac_prev"; then
521 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
524 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
526 # File descriptor usage:
529 # 2 errors and warnings
530 # 3 some systems may open it to /dev/tty
531 # 4 used on the Kubota Titan
532 # 6 checking for... messages and results
533 # 5 compiler messages saved in config.log
534 if test "$silent" = yes; then
542 This file contains any messages produced by compilers while
543 running configure, to aid debugging if configure makes a mistake.
546 # Strip out --no-create and --no-recursion so they do not pile up.
547 # Also quote any args containing shell metacharacters.
552 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553 | --no-cr | --no-c) ;;
554 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
555 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
556 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
557 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
558 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
563 # Only set these to C if already set. These must not be set unconditionally
564 # because not all systems understand e.g. LANG=C (notably SCO).
565 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
566 # Non-C LC_CTYPE values break the ctype check.
567 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
568 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
569 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
570 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
572 # confdefs.h avoids OS command line length limits that DEFS can exceed.
573 rm -rf conftest* confdefs.h
574 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
577 # A filename unique to this package, relative to the directory that
578 # configure is in, which we can look for to find out if srcdir is correct.
579 ac_unique_file=include/main.h
581 # Find the source files, if location was not specified.
582 if test -z "$srcdir"; then
583 ac_srcdir_defaulted=yes
584 # Try the directory containing this script, then its parent.
586 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
587 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
589 if test ! -r $srcdir/$ac_unique_file; then
593 ac_srcdir_defaulted=no
595 if test ! -r $srcdir/$ac_unique_file; then
596 if test "$ac_srcdir_defaulted" = yes; then
597 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
599 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
602 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
604 # Prefer explicitly selected file to automatically selected ones.
605 if test -z "$CONFIG_SITE"; then
606 if test "x$prefix" != xNONE; then
607 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
609 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
612 for ac_site_file in $CONFIG_SITE; do
613 if test -r "$ac_site_file"; then
614 echo "loading site script $ac_site_file"
619 if test -r "$cache_file"; then
620 echo "loading cache $cache_file"
623 echo "creating cache $cache_file"
628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
629 ac_cpp='$CPP $CPPFLAGS'
630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
632 cross_compiling=$ac_cv_prog_cc_cross
636 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
637 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
638 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
645 ac_n= ac_c='\c' ac_t=
652 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
653 if test -f $ac_dir/install-sh; then
655 ac_install_sh="$ac_aux_dir/install-sh -c"
657 elif test -f $ac_dir/install.sh; then
659 ac_install_sh="$ac_aux_dir/install.sh -c"
663 if test -z "$ac_aux_dir"; then
664 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
666 ac_config_guess=$ac_aux_dir/config.guess
667 ac_config_sub=$ac_aux_dir/config.sub
668 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
671 # Do some error checking and defaulting for the host and target type.
673 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
676 # 1. You are not allowed to specify --host, --target, and nonopt at the
678 # 2. Host defaults to nonopt.
679 # 3. If nonopt is not specified, then host defaults to the current host,
680 # as determined by config.guess.
681 # 4. Target and build default to nonopt.
682 # 5. If nonopt is not specified, then target and build default to host.
684 # The aliases save the names the user supplied, while $host etc.
685 # will get canonicalized.
686 case $host---$target---$nonopt in
687 NONE---*---* | *---NONE---* | *---*---NONE) ;;
688 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
692 # Make sure we can run config.sub.
693 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
694 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
697 echo $ac_n "checking host system type""... $ac_c" 1>&6
698 echo "configure:699: checking host system type" >&5
701 case "$host_alias" in
705 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
706 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
708 *) host_alias=$nonopt ;;
712 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
713 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
714 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
715 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
716 echo "$ac_t""$host" 1>&6
718 echo $ac_n "checking target system type""... $ac_c" 1>&6
719 echo "configure:720: checking target system type" >&5
722 case "$target_alias" in
725 NONE) target_alias=$host_alias ;;
726 *) target_alias=$nonopt ;;
730 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
731 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
732 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
733 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo "$ac_t""$target" 1>&6
736 echo $ac_n "checking build system type""... $ac_c" 1>&6
737 echo "configure:738: checking build system type" >&5
740 case "$build_alias" in
743 NONE) build_alias=$host_alias ;;
744 *) build_alias=$nonopt ;;
748 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
749 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
750 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
751 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
752 echo "$ac_t""$build" 1>&6
754 test "$host_alias" != "$target_alias" &&
755 test "$program_prefix$program_suffix$program_transform_name" = \
757 program_prefix=${target_alias}-
763 save_CFLAGS="${CFLAGS}"
764 save_LDFLAGS="${LDFLAGS}"
766 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
767 echo "configure:768: checking whether ${MAKE-make} sets \${MAKE}" >&5
768 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
769 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 cat > conftestmake <<\EOF
774 @echo 'ac_maketemp="${MAKE}"'
776 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
777 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
778 if test -n "$ac_maketemp"; then
779 eval ac_cv_prog_make_${ac_make}_set=yes
781 eval ac_cv_prog_make_${ac_make}_set=no
785 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
786 echo "$ac_t""yes" 1>&6
789 echo "$ac_t""no" 1>&6
790 SET_MAKE="MAKE=${MAKE-make}"
793 # Extract the first word of "gcc", so it can be a program name with args.
794 set dummy gcc; ac_word=$2
795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
796 echo "configure:797: checking for $ac_word" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 if test -n "$CC"; then
801 ac_cv_prog_CC="$CC" # Let the user override the test.
803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
805 for ac_dir in $ac_dummy; do
806 test -z "$ac_dir" && ac_dir=.
807 if test -f $ac_dir/$ac_word; then
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
823 # Extract the first word of "cc", so it can be a program name with args.
824 set dummy cc; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$CC"; then
831 ac_cv_prog_CC="$CC" # Let the user override the test.
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
836 for ac_dir in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
839 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
848 if test $ac_prog_rejected = yes; then
849 # We found a bogon in the path, so make sure we never use it.
850 set dummy $ac_cv_prog_CC
852 if test $# -gt 0; then
853 # We chose a different compiler from the bogus one.
854 # However, it has the same basename, so the bogon will be chosen
855 # first if we set CC to just the basename; use the full file name.
857 set dummy "$ac_dir/$ac_word" "$@"
865 if test -n "$CC"; then
866 echo "$ac_t""$CC" 1>&6
868 echo "$ac_t""no" 1>&6
871 if test -z "$CC"; then
874 # Extract the first word of "cl", so it can be a program name with args.
875 set dummy cl; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 if test -n "$CC"; then
882 ac_cv_prog_CC="$CC" # Let the user override the test.
884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
886 for ac_dir in $ac_dummy; do
887 test -z "$ac_dir" && ac_dir=.
888 if test -f $ac_dir/$ac_word; then
897 if test -n "$CC"; then
898 echo "$ac_t""$CC" 1>&6
900 echo "$ac_t""no" 1>&6
905 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
909 echo "configure:910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
913 ac_cpp='$CPP $CPPFLAGS'
914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
916 cross_compiling=$ac_cv_prog_cc_cross
918 cat > conftest.$ac_ext << EOF
920 #line 921 "configure"
921 #include "confdefs.h"
925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
926 ac_cv_prog_cc_works=yes
927 # If we can't run a trivial program, we are probably using a cross compiler.
928 if (./conftest; exit) 2>/dev/null; then
929 ac_cv_prog_cc_cross=no
931 ac_cv_prog_cc_cross=yes
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
936 ac_cv_prog_cc_works=no
940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
941 ac_cpp='$CPP $CPPFLAGS'
942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
944 cross_compiling=$ac_cv_prog_cc_cross
946 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
947 if test $ac_cv_prog_cc_works = no; then
948 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
950 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
951 echo "configure:952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
952 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
953 cross_compiling=$ac_cv_prog_cc_cross
955 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
956 echo "configure:957: checking whether we are using GNU C" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 cat > conftest.c <<EOF
965 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
972 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
974 if test $ac_cv_prog_gcc = yes; then
980 ac_test_CFLAGS="${CFLAGS+set}"
981 ac_save_CFLAGS="$CFLAGS"
983 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
984 echo "configure:985: checking whether ${CC-cc} accepts -g" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 echo 'void f(){}' > conftest.c
989 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
998 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
999 if test "$ac_test_CFLAGS" = set; then
1000 CFLAGS="$ac_save_CFLAGS"
1001 elif test $ac_cv_prog_cc_g = yes; then
1002 if test "$GCC" = yes; then
1008 if test "$GCC" = yes; then
1015 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1016 echo "configure:1017: checking how to run the C preprocessor" >&5
1017 # On Suns, sometimes $CPP names a directory.
1018 if test -n "$CPP" && test -d "$CPP"; then
1021 if test -z "$CPP"; then
1022 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 # This must be in double quotes, not single quotes, because CPP may get
1026 # substituted into the Makefile and "${CC-cc}" will confuse make.
1028 # On the NeXT, cc -E runs the code through the compiler's parser,
1029 # not just through cpp.
1030 cat > conftest.$ac_ext <<EOF
1031 #line 1032 "configure"
1032 #include "confdefs.h"
1036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1037 { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1039 if test -z "$ac_err"; then
1043 echo "configure: failed program was:" >&5
1044 cat conftest.$ac_ext >&5
1046 CPP="${CC-cc} -E -traditional-cpp"
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1054 { (eval echo configure:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1056 if test -z "$ac_err"; then
1060 echo "configure: failed program was:" >&5
1061 cat conftest.$ac_ext >&5
1063 CPP="${CC-cc} -nologo -E"
1064 cat > conftest.$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1071 { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1073 if test -z "$ac_err"; then
1077 echo "configure: failed program was:" >&5
1078 cat conftest.$ac_ext >&5
1087 ac_cv_prog_CPP="$CPP"
1089 CPP="$ac_cv_prog_CPP"
1091 ac_cv_prog_CPP="$CPP"
1093 echo "$ac_t""$CPP" 1>&6
1096 if test $host != $build; then
1097 ac_tool_prefix=${host_alias}-
1102 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$RANLIB"; then
1110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1124 RANLIB="$ac_cv_prog_RANLIB"
1125 if test -n "$RANLIB"; then
1126 echo "$ac_t""$RANLIB" 1>&6
1128 echo "$ac_t""no" 1>&6
1132 if test -z "$ac_cv_prog_RANLIB"; then
1133 if test -n "$ac_tool_prefix"; then
1134 # Extract the first word of "ranlib", so it can be a program name with args.
1135 set dummy ranlib; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 if test -n "$RANLIB"; then
1142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1146 for ac_dir in $ac_dummy; do
1147 test -z "$ac_dir" && ac_dir=.
1148 if test -f $ac_dir/$ac_word; then
1149 ac_cv_prog_RANLIB="ranlib"
1154 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1157 RANLIB="$ac_cv_prog_RANLIB"
1158 if test -n "$RANLIB"; then
1159 echo "$ac_t""$RANLIB" 1>&6
1161 echo "$ac_t""no" 1>&6
1170 # Extract the first word of "gmake", so it can be a program name with args.
1171 set dummy gmake; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1179 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1182 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1187 for ac_dir in $ac_dummy; do
1188 test -z "$ac_dir" && ac_dir=.
1189 if test -f $ac_dir/$ac_word; then
1190 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1195 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1199 GMAKE="$ac_cv_path_GMAKE"
1200 if test -n "$GMAKE"; then
1201 echo "$ac_t""$GMAKE" 1>&6
1203 echo "$ac_t""no" 1>&6
1206 if test "x$GMAKE" = "xno"; then
1207 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether GNU make is installed" >&5
1209 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 if make --version | grep -q -i gnu; then
1215 echo "This software needs you to install GNU make to compile properly."
1216 echo "You can get it from http://www.gnu.org/."
1221 echo "$ac_t""$ac_cv_gmake" 1>&6
1227 ALL_LINGUAS="de fr ja no ru nl"
1229 cat >> confdefs.h <<EOF
1230 #define PACKAGE "vlc"
1233 cat >> confdefs.h <<EOF
1234 #define VERSION "$VERSION"
1237 # Extract the first word of "ranlib", so it can be a program name with args.
1238 set dummy ranlib; ac_word=$2
1239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $ac_word" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 if test -n "$RANLIB"; then
1245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1249 for ac_dir in $ac_dummy; do
1250 test -z "$ac_dir" && ac_dir=.
1251 if test -f $ac_dir/$ac_word; then
1252 ac_cv_prog_RANLIB="ranlib"
1257 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1260 RANLIB="$ac_cv_prog_RANLIB"
1261 if test -n "$RANLIB"; then
1262 echo "$ac_t""$RANLIB" 1>&6
1264 echo "$ac_t""no" 1>&6
1268 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1269 echo "configure:1270: checking for strerror in -lcposix" >&5
1270 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 ac_save_LIBS="$LIBS"
1275 LIBS="-lcposix $LIBS"
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 /* Override any gcc2 internal prototype to avoid an error. */
1280 /* We use char because int might match the return type of a gcc2
1281 builtin and then its argument prototype would still apply. */
1288 if { (eval echo configure:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1290 eval "ac_cv_lib_$ac_lib_var=yes"
1292 echo "configure: failed program was:" >&5
1293 cat conftest.$ac_ext >&5
1295 eval "ac_cv_lib_$ac_lib_var=no"
1298 LIBS="$ac_save_LIBS"
1301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1302 echo "$ac_t""yes" 1>&6
1303 LIBS="$LIBS -lcposix"
1305 echo "$ac_t""no" 1>&6
1310 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1311 echo "configure:1312: checking for ANSI C header files" >&5
1312 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1324 { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1326 if test -z "$ac_err"; then
1328 ac_cv_header_stdc=yes
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1334 ac_cv_header_stdc=no
1338 if test $ac_cv_header_stdc = yes; then
1339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346 egrep "memchr" >/dev/null 2>&1; then
1350 ac_cv_header_stdc=no
1356 if test $ac_cv_header_stdc = yes; then
1357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1364 egrep "free" >/dev/null 2>&1; then
1368 ac_cv_header_stdc=no
1374 if test $ac_cv_header_stdc = yes; then
1375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1376 if test "$cross_compiling" = yes; then
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1383 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1384 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1386 int main () { int i; for (i = 0; i < 256; i++)
1387 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1391 if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1395 echo "configure: failed program was:" >&5
1396 cat conftest.$ac_ext >&5
1398 ac_cv_header_stdc=no
1406 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1407 if test $ac_cv_header_stdc = yes; then
1408 cat >> confdefs.h <<\EOF
1409 #define STDC_HEADERS 1
1414 echo $ac_n "checking for working const""... $ac_c" 1>&6
1415 echo "configure:1416: checking for working const" >&5
1416 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1425 /* Ultrix mips cc rejects this. */
1426 typedef int charset[2]; const charset x;
1427 /* SunOS 4.1.1 cc rejects this. */
1428 char const *const *ccp;
1430 /* NEC SVR4.0.2 mips cc rejects this. */
1431 struct point {int x, y;};
1432 static struct point const zero = {0,0};
1433 /* AIX XL C 1.02.0.0 rejects this.
1434 It does not let you subtract one const X* pointer from another in an arm
1435 of an if-expression whose if-part is not a constant expression */
1436 const char *g = "string";
1437 ccp = &g + (g ? g-g : 0);
1438 /* HPUX 7.0 cc rejects these. */
1441 ccp = (char const *const *) p;
1442 { /* SCO 3.2v4 cc rejects this. */
1444 char const *s = 0 ? (char *) 0 : (char const *) 0;
1448 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1450 const int *foo = &x[0];
1453 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1454 typedef const int *iptr;
1458 { /* AIX XL C 1.02.0.0 rejects this saying
1459 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1460 struct s { int j; const int *ap[3]; };
1461 struct s *b; b->j = 5;
1463 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1469 if { (eval echo configure:1470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1481 echo "$ac_t""$ac_cv_c_const" 1>&6
1482 if test $ac_cv_c_const = no; then
1483 cat >> confdefs.h <<\EOF
1489 echo $ac_n "checking for inline""... $ac_c" 1>&6
1490 echo "configure:1491: checking for inline" >&5
1491 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1495 for ac_kw in inline __inline__ __inline; do
1496 cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1504 if { (eval echo configure:1505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1506 ac_cv_c_inline=$ac_kw; break
1508 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1516 echo "$ac_t""$ac_cv_c_inline" 1>&6
1517 case "$ac_cv_c_inline" in
1519 no) cat >> confdefs.h <<\EOF
1523 *) cat >> confdefs.h <<EOF
1524 #define inline $ac_cv_c_inline
1529 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1530 echo "configure:1531: checking for off_t" >&5
1531 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1537 #include <sys/types.h>
1543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1544 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1546 ac_cv_type_off_t=yes
1554 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1555 if test $ac_cv_type_off_t = no; then
1556 cat >> confdefs.h <<\EOF
1562 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1563 echo "configure:1564: checking for size_t" >&5
1564 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 #include <sys/types.h>
1576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1577 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1579 ac_cv_type_size_t=yes
1582 ac_cv_type_size_t=no
1587 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1588 if test $ac_cv_type_size_t = no; then
1589 cat >> confdefs.h <<\EOF
1590 #define size_t unsigned
1595 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1596 # for constant arguments. Useless!
1597 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1598 echo "configure:1599: checking for working alloca.h" >&5
1599 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1607 char *p = alloca(2 * sizeof(int));
1610 if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1612 ac_cv_header_alloca_h=yes
1614 echo "configure: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1617 ac_cv_header_alloca_h=no
1622 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1623 if test $ac_cv_header_alloca_h = yes; then
1624 cat >> confdefs.h <<\EOF
1625 #define HAVE_ALLOCA_H 1
1630 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1631 echo "configure:1632: checking for alloca" >&5
1632 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1640 # define alloca __builtin_alloca
1643 # include <malloc.h>
1644 # define alloca _alloca
1647 # include <alloca.h>
1652 # ifndef alloca /* predefined by HP cc +Olibcalls */
1661 char *p = (char *) alloca(1);
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1666 ac_cv_func_alloca_works=yes
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 ac_cv_func_alloca_works=no
1676 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1677 if test $ac_cv_func_alloca_works = yes; then
1678 cat >> confdefs.h <<\EOF
1679 #define HAVE_ALLOCA 1
1684 if test $ac_cv_func_alloca_works = no; then
1685 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1686 # that cause trouble. Some versions do not even contain alloca or
1687 # contain a buggy version. If you still want to use their alloca,
1688 # use ar to extract alloca.o from them instead of compiling alloca.c.
1689 ALLOCA=alloca.${ac_objext}
1690 cat >> confdefs.h <<\EOF
1695 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1696 echo "configure:1697: checking whether alloca needs Cray hooks" >&5
1697 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 cat > conftest.$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1703 #if defined(CRAY) && ! defined(CRAY2)
1710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1711 egrep "webecray" >/dev/null 2>&1; then
1722 echo "$ac_t""$ac_cv_os_cray" 1>&6
1723 if test $ac_cv_os_cray = yes; then
1724 for ac_func in _getb67 GETB67 getb67; do
1725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1726 echo "configure:1727: checking for $ac_func" >&5
1727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 /* System header to define __stub macros and hopefully few prototypes,
1734 which can conflict with char $ac_func(); below. */
1736 /* Override any gcc2 internal prototype to avoid an error. */
1737 /* We use char because int might match the return type of a gcc2
1738 builtin and then its argument prototype would still apply. */
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756 eval "ac_cv_func_$ac_func=yes"
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1761 eval "ac_cv_func_$ac_func=no"
1766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1767 echo "$ac_t""yes" 1>&6
1768 cat >> confdefs.h <<EOF
1769 #define CRAY_STACKSEG_END $ac_func
1774 echo "$ac_t""no" 1>&6
1780 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1781 echo "configure:1782: checking stack direction for C alloca" >&5
1782 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 if test "$cross_compiling" = yes; then
1786 ac_cv_c_stack_direction=0
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 find_stack_direction ()
1793 static char *addr = 0;
1798 return find_stack_direction ();
1801 return (&dummy > addr) ? 1 : -1;
1805 exit (find_stack_direction() < 0);
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1810 ac_cv_c_stack_direction=1
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1815 ac_cv_c_stack_direction=-1
1822 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1823 cat >> confdefs.h <<EOF
1824 #define STACK_DIRECTION $ac_cv_c_stack_direction
1829 for ac_hdr in unistd.h
1831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_hdr" >&5
1834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1845 if test -z "$ac_err"; then
1847 eval "ac_cv_header_$ac_safe=yes"
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1853 eval "ac_cv_header_$ac_safe=no"
1857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1858 echo "$ac_t""yes" 1>&6
1859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1860 cat >> confdefs.h <<EOF
1861 #define $ac_tr_hdr 1
1865 echo "$ac_t""no" 1>&6
1869 for ac_func in getpagesize
1871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $ac_func" >&5
1873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $ac_func(); below. */
1882 /* Override any gcc2 internal prototype to avoid an error. */
1883 /* We use char because int might match the return type of a gcc2
1884 builtin and then its argument prototype would still apply. */
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1900 if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1902 eval "ac_cv_func_$ac_func=yes"
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 eval "ac_cv_func_$ac_func=no"
1912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1913 echo "$ac_t""yes" 1>&6
1914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1915 cat >> confdefs.h <<EOF
1916 #define $ac_tr_func 1
1920 echo "$ac_t""no" 1>&6
1924 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1925 echo "configure:1926: checking for working mmap" >&5
1926 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 if test "$cross_compiling" = yes; then
1930 ac_cv_func_mmap_fixed_mapped=no
1932 cat > conftest.$ac_ext <<EOF
1933 #line 1934 "configure"
1934 #include "confdefs.h"
1936 /* Thanks to Mike Haertel and Jim Avera for this test.
1937 Here is a matrix of mmap possibilities:
1938 mmap private not fixed
1939 mmap private fixed at somewhere currently unmapped
1940 mmap private fixed at somewhere already mapped
1941 mmap shared not fixed
1942 mmap shared fixed at somewhere currently unmapped
1943 mmap shared fixed at somewhere already mapped
1944 For private mappings, we should verify that changes cannot be read()
1945 back from the file, nor mmap's back from the file at a different
1946 address. (There have been systems where private was not correctly
1947 implemented like the infamous i386 svr4.0, and systems where the
1948 VM page cache was not coherent with the filesystem buffer cache
1949 like early versions of FreeBSD and possibly contemporary NetBSD.)
1950 For shared mappings, we should conversely verify that changes get
1951 propogated back to all the places they're supposed to be.
1953 Grep wants private fixed already mapped.
1954 The main things grep needs to know about mmap are:
1955 * does it exist and is it safe to write into the mmap'd area
1956 * how to use it (BSD variants) */
1957 #include <sys/types.h>
1959 #include <sys/mman.h>
1961 /* This mess was copied from the GNU getpagesize.h. */
1962 #ifndef HAVE_GETPAGESIZE
1963 # ifdef HAVE_UNISTD_H
1964 # include <unistd.h>
1967 /* Assume that all systems that can run configure have sys/param.h. */
1968 # ifndef HAVE_SYS_PARAM_H
1969 # define HAVE_SYS_PARAM_H 1
1972 # ifdef _SC_PAGESIZE
1973 # define getpagesize() sysconf(_SC_PAGESIZE)
1974 # else /* no _SC_PAGESIZE */
1975 # ifdef HAVE_SYS_PARAM_H
1976 # include <sys/param.h>
1977 # ifdef EXEC_PAGESIZE
1978 # define getpagesize() EXEC_PAGESIZE
1979 # else /* no EXEC_PAGESIZE */
1981 # define getpagesize() NBPG * CLSIZE
1984 # endif /* no CLSIZE */
1985 # else /* no NBPG */
1987 # define getpagesize() NBPC
1988 # else /* no NBPC */
1990 # define getpagesize() PAGESIZE
1991 # endif /* PAGESIZE */
1992 # endif /* no NBPC */
1993 # endif /* no NBPG */
1994 # endif /* no EXEC_PAGESIZE */
1995 # else /* no HAVE_SYS_PARAM_H */
1996 # define getpagesize() 8192 /* punt totally */
1997 # endif /* no HAVE_SYS_PARAM_H */
1998 # endif /* no _SC_PAGESIZE */
2000 #endif /* no HAVE_GETPAGESIZE */
2003 extern "C" { void *malloc(unsigned); }
2011 char *data, *data2, *data3;
2015 pagesize = getpagesize();
2018 * First, make a file with some known garbage in it.
2020 data = malloc(pagesize);
2023 for (i = 0; i < pagesize; ++i)
2024 *(data + i) = rand();
2026 fd = creat("conftestmmap", 0600);
2029 if (write(fd, data, pagesize) != pagesize)
2034 * Next, try to mmap the file at a fixed address which
2035 * already has something else allocated at it. If we can,
2036 * also make sure that we see the same garbage.
2038 fd = open("conftestmmap", O_RDWR);
2041 data2 = malloc(2 * pagesize);
2044 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2045 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2046 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2048 for (i = 0; i < pagesize; ++i)
2049 if (*(data + i) != *(data2 + i))
2053 * Finally, make sure that changes to the mapped area
2054 * do not percolate back to the file as seen by read().
2055 * (This is a bug on some variants of i386 svr4.0.)
2057 for (i = 0; i < pagesize; ++i)
2058 *(data2 + i) = *(data2 + i) + 1;
2059 data3 = malloc(pagesize);
2062 if (read(fd, data3, pagesize) != pagesize)
2064 for (i = 0; i < pagesize; ++i)
2065 if (*(data + i) != *(data3 + i))
2068 unlink("conftestmmap");
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2075 ac_cv_func_mmap_fixed_mapped=yes
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 ac_cv_func_mmap_fixed_mapped=no
2087 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2088 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2089 cat >> confdefs.h <<\EOF
2096 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2097 echo "configure:2098: checking whether we are using the GNU C Library 2.1 or newer" >&5
2098 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2105 #include <features.h>
2106 #ifdef __GNU_LIBRARY__
2107 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2114 egrep "Lucky GNU user" >/dev/null 2>&1; then
2116 ac_cv_gnu_library_2_1=yes
2119 ac_cv_gnu_library_2_1=no
2127 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2129 GLIBC21="$ac_cv_gnu_library_2_1"
2133 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2134 stdlib.h string.h unistd.h sys/param.h
2136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_hdr" >&5
2139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2148 { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2150 if test -z "$ac_err"; then
2152 eval "ac_cv_header_$ac_safe=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2158 eval "ac_cv_header_$ac_safe=no"
2162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2163 echo "$ac_t""yes" 1>&6
2164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2165 cat >> confdefs.h <<EOF
2166 #define $ac_tr_hdr 1
2170 echo "$ac_t""no" 1>&6
2174 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2175 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2176 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2179 echo "configure:2180: checking for $ac_func" >&5
2180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 /* System header to define __stub macros and hopefully few prototypes,
2187 which can conflict with char $ac_func(); below. */
2189 /* Override any gcc2 internal prototype to avoid an error. */
2190 /* We use char because int might match the return type of a gcc2
2191 builtin and then its argument prototype would still apply. */
2196 /* The GNU C library defines this for functions which it implements
2197 to always fail with ENOSYS. Some functions are actually named
2198 something starting with __ and the normal name is an alias. */
2199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2207 if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2209 eval "ac_cv_func_$ac_func=yes"
2211 echo "configure: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2214 eval "ac_cv_func_$ac_func=no"
2219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2220 echo "$ac_t""yes" 1>&6
2221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2222 cat >> confdefs.h <<EOF
2223 #define $ac_tr_func 1
2227 echo "$ac_t""no" 1>&6
2234 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2235 if test "${with_libiconv_prefix+set}" = set; then
2236 withval="$with_libiconv_prefix"
2238 for dir in `echo "$withval" | tr : ' '`; do
2239 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2240 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2246 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2247 echo "configure:2248: checking for iconv" >&5
2248 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2252 am_cv_func_iconv="no, consider installing GNU libiconv"
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2260 iconv_t cd = iconv_open("","");
2261 iconv(cd,NULL,NULL,NULL,NULL);
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2267 am_cv_func_iconv=yes
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2273 if test "$am_cv_func_iconv" != yes; then
2274 am_save_LIBS="$LIBS"
2275 LIBS="$LIBS -liconv"
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2282 iconv_t cd = iconv_open("","");
2283 iconv(cd,NULL,NULL,NULL,NULL);
2287 if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2290 am_cv_func_iconv=yes
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2296 LIBS="$am_save_LIBS"
2301 echo "$ac_t""$am_cv_func_iconv" 1>&6
2302 if test "$am_cv_func_iconv" = yes; then
2303 cat >> confdefs.h <<\EOF
2304 #define HAVE_ICONV 1
2307 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2308 echo "configure:2309: checking for iconv declaration" >&5
2309 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2323 #if defined(__STDC__) || defined(__cplusplus)
2324 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2333 if { (eval echo configure:2334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2335 am_cv_proto_iconv_arg1=""
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2340 am_cv_proto_iconv_arg1="const"
2343 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);"
2346 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2347 echo "$ac_t""${ac_t:-
2348 }$am_cv_proto_iconv" 1>&6
2349 cat >> confdefs.h <<EOF
2350 #define ICONV_CONST $am_cv_proto_iconv_arg1
2355 if test "$am_cv_lib_iconv" = yes; then
2361 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2362 echo "configure:2363: checking for nl_langinfo and CODESET" >&5
2363 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 #include <langinfo.h>
2371 char* cs = nl_langinfo(CODESET);
2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2376 am_cv_langinfo_codeset=yes
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2381 am_cv_langinfo_codeset=no
2387 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2388 if test $am_cv_langinfo_codeset = yes; then
2389 cat >> confdefs.h <<\EOF
2390 #define HAVE_LANGINFO_CODESET 1
2395 if test $ac_cv_header_locale_h = yes; then
2396 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2397 echo "configure:2398: checking for LC_MESSAGES" >&5
2398 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2411 am_cv_val_LC_MESSAGES=yes
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 am_cv_val_LC_MESSAGES=no
2421 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2422 if test $am_cv_val_LC_MESSAGES = yes; then
2423 cat >> confdefs.h <<\EOF
2424 #define HAVE_LC_MESSAGES 1
2429 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2430 echo "configure:2431: checking whether NLS is requested" >&5
2431 # Check whether --enable-nls or --disable-nls was given.
2432 if test "${enable_nls+set}" = set; then
2433 enableval="$enable_nls"
2439 echo "$ac_t""$USE_NLS" 1>&6
2442 BUILD_INCLUDED_LIBINTL=no
2443 USE_INCLUDED_LIBINTL=no
2446 if test "$USE_NLS" = "yes"; then
2447 cat >> confdefs.h <<\EOF
2448 #define ENABLE_NLS 1
2451 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2452 echo "configure:2453: checking whether included gettext is requested" >&5
2453 # Check whether --with-included-gettext or --without-included-gettext was given.
2454 if test "${with_included_gettext+set}" = set; then
2455 withval="$with_included_gettext"
2456 nls_cv_force_use_gnu_gettext=$withval
2458 nls_cv_force_use_gnu_gettext=no
2461 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2463 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2464 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2470 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2471 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2472 echo "configure:2473: checking for libintl.h" >&5
2473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 #include <libintl.h>
2481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484 if test -z "$ac_err"; then
2486 eval "ac_cv_header_$ac_safe=yes"
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2492 eval "ac_cv_header_$ac_safe=no"
2496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2499 echo "configure:2500: checking for GNU gettext in libc" >&5
2500 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 #include <libintl.h>
2507 extern int _nl_msg_cat_cntr;
2509 bindtextdomain ("", "");
2510 return (int) gettext ("") + _nl_msg_cat_cntr
2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2515 gt_cv_func_gnugettext1_libc=yes
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 gt_cv_func_gnugettext1_libc=no
2525 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2527 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2528 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2529 echo "configure:2530: checking for GNU gettext in libintl" >&5
2530 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 gt_save_LIBS="$LIBS"
2534 LIBS="$LIBS -lintl $LIBICONV"
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 #include <libintl.h>
2539 extern int _nl_msg_cat_cntr;
2541 bindtextdomain ("", "");
2542 return (int) gettext ("") + _nl_msg_cat_cntr
2545 if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2547 gt_cv_func_gnugettext1_libintl=yes
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2552 gt_cv_func_gnugettext1_libintl=no
2555 LIBS="$gt_save_LIBS"
2558 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2561 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2562 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2563 && test "$PACKAGE" != gettext; }; then
2564 cat >> confdefs.h <<\EOF
2565 #define HAVE_GETTEXT 1
2569 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2570 INTLLIBS="-lintl $LIBICONV"
2573 gt_save_LIBS="$LIBS"
2574 LIBS="$LIBS $INTLLIBS"
2575 for ac_func in dcgettext
2577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_func" >&5
2579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $ac_func(); below. */
2588 /* Override any gcc2 internal prototype to avoid an error. */
2589 /* We use char because int might match the return type of a gcc2
2590 builtin and then its argument prototype would still apply. */
2595 /* The GNU C library defines this for functions which it implements
2596 to always fail with ENOSYS. Some functions are actually named
2597 something starting with __ and the normal name is an alias. */
2598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2608 eval "ac_cv_func_$ac_func=yes"
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 eval "ac_cv_func_$ac_func=no"
2618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2619 echo "$ac_t""yes" 1>&6
2620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2621 cat >> confdefs.h <<EOF
2622 #define $ac_tr_func 1
2626 echo "$ac_t""no" 1>&6
2630 LIBS="$gt_save_LIBS"
2632 # Extract the first word of "msgfmt", so it can be a program name with args.
2633 set dummy msgfmt; ac_word=$2
2634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2635 echo "configure:2636: checking for $ac_word" >&5
2636 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2641 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2645 for ac_dir in $PATH; do
2646 test -z "$ac_dir" && ac_dir=.
2647 if test -f $ac_dir/$ac_word; then
2648 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2649 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2655 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2659 MSGFMT="$ac_cv_path_MSGFMT"
2660 if test "$MSGFMT" != ":"; then
2661 echo "$ac_t""$MSGFMT" 1>&6
2663 echo "$ac_t""no" 1>&6
2666 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2667 set dummy gmsgfmt; ac_word=$2
2668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_word" >&5
2670 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2675 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2678 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2683 for ac_dir in $ac_dummy; do
2684 test -z "$ac_dir" && ac_dir=.
2685 if test -f $ac_dir/$ac_word; then
2686 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2691 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2695 GMSGFMT="$ac_cv_path_GMSGFMT"
2696 if test -n "$GMSGFMT"; then
2697 echo "$ac_t""$GMSGFMT" 1>&6
2699 echo "$ac_t""no" 1>&6
2703 # Extract the first word of "xgettext", so it can be a program name with args.
2704 set dummy xgettext; ac_word=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2712 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2716 for ac_dir in $PATH; do
2717 test -z "$ac_dir" && ac_dir=.
2718 if test -f $ac_dir/$ac_word; then
2719 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2720 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2726 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2730 XGETTEXT="$ac_cv_path_XGETTEXT"
2731 if test "$XGETTEXT" != ":"; then
2732 echo "$ac_t""$XGETTEXT" 1>&6
2734 echo "$ac_t""no" 1>&6
2742 echo "$ac_t""no" 1>&6
2746 if test "$CATOBJEXT" = "NONE"; then
2747 nls_cv_use_gnu_gettext=yes
2751 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2752 INTLOBJS="\$(GETTOBJS)"
2753 # Extract the first word of "msgfmt", so it can be a program name with args.
2754 set dummy msgfmt; ac_word=$2
2755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_word" >&5
2757 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2762 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2766 for ac_dir in $PATH; do
2767 test -z "$ac_dir" && ac_dir=.
2768 if test -f $ac_dir/$ac_word; then
2769 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2770 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2776 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2780 MSGFMT="$ac_cv_path_MSGFMT"
2781 if test "$MSGFMT" != ":"; then
2782 echo "$ac_t""$MSGFMT" 1>&6
2784 echo "$ac_t""no" 1>&6
2787 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2788 set dummy gmsgfmt; ac_word=$2
2789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_word" >&5
2791 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2796 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2799 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2804 for ac_dir in $ac_dummy; do
2805 test -z "$ac_dir" && ac_dir=.
2806 if test -f $ac_dir/$ac_word; then
2807 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2812 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2816 GMSGFMT="$ac_cv_path_GMSGFMT"
2817 if test -n "$GMSGFMT"; then
2818 echo "$ac_t""$GMSGFMT" 1>&6
2820 echo "$ac_t""no" 1>&6
2823 # Extract the first word of "xgettext", so it can be a program name with args.
2824 set dummy xgettext; ac_word=$2
2825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2826 echo "configure:2827: checking for $ac_word" >&5
2827 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2836 for ac_dir in $PATH; do
2837 test -z "$ac_dir" && ac_dir=.
2838 if test -f $ac_dir/$ac_word; then
2839 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2840 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2846 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2850 XGETTEXT="$ac_cv_path_XGETTEXT"
2851 if test "$XGETTEXT" != ":"; then
2852 echo "$ac_t""$XGETTEXT" 1>&6
2854 echo "$ac_t""no" 1>&6
2858 BUILD_INCLUDED_LIBINTL=yes
2859 USE_INCLUDED_LIBINTL=yes
2861 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2862 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2865 if test "$GMSGFMT" != ":"; then
2866 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2869 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2874 if test "$XGETTEXT" != ":"; then
2875 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2878 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2888 if test "$PACKAGE" = gettext; then
2889 BUILD_INCLUDED_LIBINTL=yes
2892 for ac_prog in bison
2894 # Extract the first word of "$ac_prog", so it can be a program name with args.
2895 set dummy $ac_prog; ac_word=$2
2896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2897 echo "configure:2898: checking for $ac_word" >&5
2898 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2901 if test -n "$INTLBISON"; then
2902 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2906 for ac_dir in $ac_dummy; do
2907 test -z "$ac_dir" && ac_dir=.
2908 if test -f $ac_dir/$ac_word; then
2909 ac_cv_prog_INTLBISON="$ac_prog"
2916 INTLBISON="$ac_cv_prog_INTLBISON"
2917 if test -n "$INTLBISON"; then
2918 echo "$ac_t""$INTLBISON" 1>&6
2920 echo "$ac_t""no" 1>&6
2923 test -n "$INTLBISON" && break
2926 if test -z "$INTLBISON"; then
2929 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2930 echo "configure:2931: checking version of bison" >&5
2931 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2932 case $ac_prog_version in
2933 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2934 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2935 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2936 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2938 echo "$ac_t""$ac_prog_version" 1>&6
2940 if test $ac_verc_fail = yes; then
2944 for lang in $ALL_LINGUAS; do
2945 GMOFILES="$GMOFILES $lang.gmo"
2946 POFILES="$POFILES $lang.po"
2960 nls_cv_header_libgt=
2972 if test "x$CATOBJEXT" != "x"; then
2973 if test "x$ALL_LINGUAS" = "x"; then
2976 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2977 echo "configure:2978: checking for catalogs to be installed" >&5
2979 for presentlang in $ALL_LINGUAS; do
2981 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2982 # Use the presentlang catalog if desiredlang is
2983 # a. equal to presentlang, or
2984 # b. a variant of presentlang (because in this case,
2985 # presentlang can be used as a fallback for messages
2986 # which are not translated in the desiredlang catalog).
2987 case "$desiredlang" in
2988 "$presentlang"*) useit=yes;;
2991 if test $useit = yes; then
2992 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2995 LINGUAS=$NEW_LINGUAS
2996 echo "$ac_t""$LINGUAS" 1>&6
2999 if test -n "$LINGUAS"; then
3000 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3005 if test -n "$ac_aux_dir"; then
3006 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3008 if test -z "$MKINSTALLDIRS"; then
3009 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3013 INTL_LIBTOOL_SUFFIX_PREFIX=
3017 # Find a good install program. We prefer a C program (faster),
3018 # so one script is as good as another. But avoid the broken or
3019 # incompatible versions:
3020 # SysV /etc/install, /usr/sbin/install
3021 # SunOS /usr/etc/install
3022 # IRIX /sbin/install
3024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3027 # ./install, which can be erroneously created by make from ./install.sh.
3028 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3029 echo "configure:3030: checking for a BSD compatible install" >&5
3030 if test -z "$INSTALL"; then
3031 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3035 for ac_dir in $PATH; do
3036 # Account for people who put trailing slashes in PATH elements.
3038 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3040 # OSF1 and SCO ODT 3.0 have their own names for install.
3041 # Don't use installbsd from OSF since it installs stuff as root
3043 for ac_prog in ginstall scoinst install; do
3044 if test -f $ac_dir/$ac_prog; then
3045 if test $ac_prog = install &&
3046 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3047 # AIX install. It has an incompatible calling convention.
3050 ac_cv_path_install="$ac_dir/$ac_prog -c"
3061 if test "${ac_cv_path_install+set}" = set; then
3062 INSTALL="$ac_cv_path_install"
3064 # As a last resort, use the slow shell script. We don't cache a
3065 # path for INSTALL within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the path is relative.
3068 INSTALL="$ac_install_sh"
3071 echo "$ac_t""$INSTALL" 1>&6
3073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3074 # It thinks the first close brace ends the variable substitution.
3075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3082 case x"${target_os}" in
3091 LIB_DVD="${LIB_DVD} -ldvd"
3092 LIB_VCD="${LIB_VCD} -ldvd"
3099 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3100 set dummy ${ac_tool_prefix}windres; ac_word=$2
3101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_word" >&5
3103 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 if test -n "$WINDRES"; then
3107 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3111 for ac_dir in $ac_dummy; do
3112 test -z "$ac_dir" && ac_dir=.
3113 if test -f $ac_dir/$ac_word; then
3114 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3121 WINDRES="$ac_cv_prog_WINDRES"
3122 if test -n "$WINDRES"; then
3123 echo "$ac_t""$WINDRES" 1>&6
3125 echo "$ac_t""no" 1>&6
3129 if test -z "$ac_cv_prog_WINDRES"; then
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "windres", so it can be a program name with args.
3132 set dummy windres; ac_word=$2
3133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3134 echo "configure:3135: checking for $ac_word" >&5
3135 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3138 if test -n "$WINDRES"; then
3139 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3143 for ac_dir in $ac_dummy; do
3144 test -z "$ac_dir" && ac_dir=.
3145 if test -f $ac_dir/$ac_word; then
3146 ac_cv_prog_WINDRES="windres"
3151 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3154 WINDRES="$ac_cv_prog_WINDRES"
3155 if test -n "$WINDRES"; then
3156 echo "$ac_t""$WINDRES" 1>&6
3158 echo "$ac_t""no" 1>&6
3166 LIB_IPV4="${LIB_IPV4} -lws2_32"
3167 LIB_RC="${LIB_RC} -lws2_32"
3171 LIB_X11="${LIB_X11} -lsocket"
3172 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3176 LIB_VLC="${LIB_VLC} -lbe"
3177 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3178 LIB_IPV4="${LIB_IPV4} -lbind"
3179 PLDFLAGS="${PLDFLAGS} -nostart"
3186 for ac_func in gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign
3188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3189 echo "configure:3190: checking for $ac_func" >&5
3190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 /* System header to define __stub macros and hopefully few prototypes,
3197 which can conflict with char $ac_func(); below. */
3199 /* Override any gcc2 internal prototype to avoid an error. */
3200 /* We use char because int might match the return type of a gcc2
3201 builtin and then its argument prototype would still apply. */
3206 /* The GNU C library defines this for functions which it implements
3207 to always fail with ENOSYS. Some functions are actually named
3208 something starting with __ and the normal name is an alias. */
3209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3217 if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3219 eval "ac_cv_func_$ac_func=yes"
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3224 eval "ac_cv_func_$ac_func=no"
3229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3232 cat >> confdefs.h <<EOF
3233 #define $ac_tr_func 1
3237 echo "$ac_t""no" 1>&6
3242 echo $ac_n "checking for connect""... $ac_c" 1>&6
3243 echo "configure:3244: checking for connect" >&5
3244 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 /* System header to define __stub macros and hopefully few prototypes,
3251 which can conflict with char connect(); below. */
3253 /* Override any gcc2 internal prototype to avoid an error. */
3254 /* We use char because int might match the return type of a gcc2
3255 builtin and then its argument prototype would still apply. */
3260 /* The GNU C library defines this for functions which it implements
3261 to always fail with ENOSYS. Some functions are actually named
3262 something starting with __ and the normal name is an alias. */
3263 #if defined (__stub_connect) || defined (__stub___connect)
3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3273 eval "ac_cv_func_connect=yes"
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3278 eval "ac_cv_func_connect=no"
3283 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3284 echo "$ac_t""yes" 1>&6
3287 echo "$ac_t""no" 1>&6
3289 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3290 echo "configure:3291: checking for connect in -lsocket" >&5
3291 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3295 ac_save_LIBS="$LIBS"
3296 LIBS="-lsocket $LIBS"
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3309 if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3311 eval "ac_cv_lib_$ac_lib_var=yes"
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 eval "ac_cv_lib_$ac_lib_var=no"
3319 LIBS="$ac_save_LIBS"
3322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3323 echo "$ac_t""yes" 1>&6
3324 LIB_IPV4="${LIB_IPV4} -lsocket"
3325 LIB_VLC="${LIB_VLC} -lsocket"
3328 echo "$ac_t""no" 1>&6
3333 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3334 echo "configure:3335: checking for gethostbyname" >&5
3335 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 /* System header to define __stub macros and hopefully few prototypes,
3342 which can conflict with char gethostbyname(); below. */
3344 /* Override any gcc2 internal prototype to avoid an error. */
3345 /* We use char because int might match the return type of a gcc2
3346 builtin and then its argument prototype would still apply. */
3347 char gethostbyname();
3351 /* The GNU C library defines this for functions which it implements
3352 to always fail with ENOSYS. Some functions are actually named
3353 something starting with __ and the normal name is an alias. */
3354 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3362 if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3364 eval "ac_cv_func_gethostbyname=yes"
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3369 eval "ac_cv_func_gethostbyname=no"
3374 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3375 echo "$ac_t""yes" 1>&6
3378 echo "$ac_t""no" 1>&6
3380 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3381 echo "configure:3382: checking for gethostbyname in -lnsl" >&5
3382 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 ac_save_LIBS="$LIBS"
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 /* Override any gcc2 internal prototype to avoid an error. */
3392 /* We use char because int might match the return type of a gcc2
3393 builtin and then its argument prototype would still apply. */
3394 char gethostbyname();
3400 if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3402 eval "ac_cv_lib_$ac_lib_var=yes"
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3407 eval "ac_cv_lib_$ac_lib_var=no"
3410 LIBS="$ac_save_LIBS"
3413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3414 echo "$ac_t""yes" 1>&6
3415 LIB_IPV4="${LIB_IPV4} -lnsl"
3417 echo "$ac_t""no" 1>&6
3423 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3424 echo "configure:3425: checking for gethostbyname" >&5
3425 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 /* System header to define __stub macros and hopefully few prototypes,
3432 which can conflict with char gethostbyname(); below. */
3434 /* Override any gcc2 internal prototype to avoid an error. */
3435 /* We use char because int might match the return type of a gcc2
3436 builtin and then its argument prototype would still apply. */
3437 char gethostbyname();
3441 /* The GNU C library defines this for functions which it implements
3442 to always fail with ENOSYS. Some functions are actually named
3443 something starting with __ and the normal name is an alias. */
3444 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3452 if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3454 eval "ac_cv_func_gethostbyname=yes"
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3459 eval "ac_cv_func_gethostbyname=no"
3464 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3468 echo "$ac_t""no" 1>&6
3470 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3471 echo "configure:3472: checking for gethostbyname in -lbind" >&5
3472 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 ac_save_LIBS="$LIBS"
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 /* Override any gcc2 internal prototype to avoid an error. */
3482 /* We use char because int might match the return type of a gcc2
3483 builtin and then its argument prototype would still apply. */
3484 char gethostbyname();
3490 if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3492 eval "ac_cv_lib_$ac_lib_var=yes"
3494 echo "configure: failed program was:" >&5
3495 cat conftest.$ac_ext >&5
3497 eval "ac_cv_lib_$ac_lib_var=no"
3500 LIBS="$ac_save_LIBS"
3503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3504 echo "$ac_t""yes" 1>&6
3505 LIB_IPV4="${LIB_IPV4} -lbind"
3507 echo "$ac_t""no" 1>&6
3513 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3514 echo "configure:3515: checking for nanosleep" >&5
3515 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* System header to define __stub macros and hopefully few prototypes,
3522 which can conflict with char nanosleep(); below. */
3524 /* Override any gcc2 internal prototype to avoid an error. */
3525 /* We use char because int might match the return type of a gcc2
3526 builtin and then its argument prototype would still apply. */
3531 /* The GNU C library defines this for functions which it implements
3532 to always fail with ENOSYS. Some functions are actually named
3533 something starting with __ and the normal name is an alias. */
3534 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3542 if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3544 eval "ac_cv_func_nanosleep=yes"
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 eval "ac_cv_func_nanosleep=no"
3554 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3555 echo "$ac_t""yes" 1>&6
3558 echo "$ac_t""no" 1>&6
3560 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3561 echo "configure:3562: checking for nanosleep in -lrt" >&5
3562 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 ac_save_LIBS="$LIBS"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3580 if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3582 eval "ac_cv_lib_$ac_lib_var=yes"
3584 echo "configure: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3587 eval "ac_cv_lib_$ac_lib_var=no"
3590 LIBS="$ac_save_LIBS"
3593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 LIB_VLC="${LIB_VLC} -lrt"
3597 echo "$ac_t""no" 1>&6
3599 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3600 echo "configure:3601: checking for nanosleep in -lposix4" >&5
3601 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 ac_save_LIBS="$LIBS"
3606 LIBS="-lposix4 $LIBS"
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3610 /* Override any gcc2 internal prototype to avoid an error. */
3611 /* We use char because int might match the return type of a gcc2
3612 builtin and then its argument prototype would still apply. */
3619 if { (eval echo configure:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3621 eval "ac_cv_lib_$ac_lib_var=yes"
3623 echo "configure: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3626 eval "ac_cv_lib_$ac_lib_var=no"
3629 LIBS="$ac_save_LIBS"
3632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3633 echo "$ac_t""yes" 1>&6
3634 LIB_VLC="${LIB_VLC} -lposix4"
3636 echo "$ac_t""no" 1>&6
3645 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3646 echo "configure:3647: checking for inet_aton" >&5
3647 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 /* System header to define __stub macros and hopefully few prototypes,
3654 which can conflict with char inet_aton(); below. */
3656 /* Override any gcc2 internal prototype to avoid an error. */
3657 /* We use char because int might match the return type of a gcc2
3658 builtin and then its argument prototype would still apply. */
3663 /* The GNU C library defines this for functions which it implements
3664 to always fail with ENOSYS. Some functions are actually named
3665 something starting with __ and the normal name is an alias. */
3666 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3674 if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3676 eval "ac_cv_func_inet_aton=yes"
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3681 eval "ac_cv_func_inet_aton=no"
3686 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3687 echo "$ac_t""yes" 1>&6
3690 echo "$ac_t""no" 1>&6
3692 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3693 echo "configure:3694: checking for inet_aton in -lresolv" >&5
3694 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_save_LIBS="$LIBS"
3699 LIBS="-lresolv $LIBS"
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 /* Override any gcc2 internal prototype to avoid an error. */
3704 /* We use char because int might match the return type of a gcc2
3705 builtin and then its argument prototype would still apply. */
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3714 eval "ac_cv_lib_$ac_lib_var=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 eval "ac_cv_lib_$ac_lib_var=no"
3722 LIBS="$ac_save_LIBS"
3725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3726 echo "$ac_t""yes" 1>&6
3727 LIB_IPV4="${LIB_IPV4} -lresolv"
3729 echo "$ac_t""no" 1>&6
3735 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3736 echo "configure:3737: checking for textdomain" >&5
3737 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 /* System header to define __stub macros and hopefully few prototypes,
3744 which can conflict with char textdomain(); below. */
3746 /* Override any gcc2 internal prototype to avoid an error. */
3747 /* We use char because int might match the return type of a gcc2
3748 builtin and then its argument prototype would still apply. */
3753 /* The GNU C library defines this for functions which it implements
3754 to always fail with ENOSYS. Some functions are actually named
3755 something starting with __ and the normal name is an alias. */
3756 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3766 eval "ac_cv_func_textdomain=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 eval "ac_cv_func_textdomain=no"
3776 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3777 echo "$ac_t""yes" 1>&6
3780 echo "$ac_t""no" 1>&6
3782 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3783 echo "configure:3784: checking for textdomain in -lintl" >&5
3784 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 ac_save_LIBS="$LIBS"
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 /* Override any gcc2 internal prototype to avoid an error. */
3794 /* We use char because int might match the return type of a gcc2
3795 builtin and then its argument prototype would still apply. */
3802 if { (eval echo configure:3803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3804 eval "ac_cv_lib_$ac_lib_var=yes"
3806 echo "configure: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3809 eval "ac_cv_lib_$ac_lib_var=no"
3812 LIBS="$ac_save_LIBS"
3815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3816 echo "$ac_t""yes" 1>&6
3817 LIB_VLC="${LIB_VLC} -lintl"
3819 echo "$ac_t""no" 1>&6
3827 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3828 echo "configure:3829: checking for getopt_long" >&5
3829 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 /* System header to define __stub macros and hopefully few prototypes,
3836 which can conflict with char getopt_long(); below. */
3838 /* Override any gcc2 internal prototype to avoid an error. */
3839 /* We use char because int might match the return type of a gcc2
3840 builtin and then its argument prototype would still apply. */
3845 /* The GNU C library defines this for functions which it implements
3846 to always fail with ENOSYS. Some functions are actually named
3847 something starting with __ and the normal name is an alias. */
3848 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3856 if { (eval echo configure:3857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3858 eval "ac_cv_func_getopt_long=yes"
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3863 eval "ac_cv_func_getopt_long=no"
3868 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3869 echo "$ac_t""yes" 1>&6
3870 cat >> confdefs.h <<\EOF
3871 #define HAVE_GETOPT_LONG 1
3875 echo "$ac_t""no" 1>&6
3876 # FreeBSD has a gnugetopt library for this:
3877 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3878 echo "configure:3879: checking for getopt_long in -lgnugetopt" >&5
3879 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3881 echo $ac_n "(cached) $ac_c" 1>&6
3883 ac_save_LIBS="$LIBS"
3884 LIBS="-lgnugetopt $LIBS"
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3888 /* Override any gcc2 internal prototype to avoid an error. */
3889 /* We use char because int might match the return type of a gcc2
3890 builtin and then its argument prototype would still apply. */
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3899 eval "ac_cv_lib_$ac_lib_var=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3904 eval "ac_cv_lib_$ac_lib_var=no"
3907 LIBS="$ac_save_LIBS"
3910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3911 echo "$ac_t""yes" 1>&6
3912 cat >> confdefs.h <<\EOF
3913 #define HAVE_GETOPT_LONG 1
3915 LIB_VLC="${LIB_VLC} -lgnugetopt"
3917 echo "$ac_t""no" 1>&6
3924 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3925 echo "configure:3926: checking return type of signal handlers" >&5
3926 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3929 cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932 #include <sys/types.h>
3938 extern "C" void (*signal (int, void (*)(int)))(int);
3940 void (*signal ()) ();
3947 if { (eval echo configure:3948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3949 ac_cv_type_signal=void
3951 echo "configure: failed program was:" >&5
3952 cat conftest.$ac_ext >&5
3954 ac_cv_type_signal=int
3959 echo "$ac_t""$ac_cv_type_signal" 1>&6
3960 cat >> confdefs.h <<EOF
3961 #define RETSIGTYPE $ac_cv_type_signal
3965 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3966 echo "configure:3967: checking for dlopen in -ldl" >&5
3967 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3971 ac_save_LIBS="$LIBS"
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3985 if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3987 eval "ac_cv_lib_$ac_lib_var=yes"
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3992 eval "ac_cv_lib_$ac_lib_var=no"
3995 LIBS="$ac_save_LIBS"
3998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3999 echo "$ac_t""yes" 1>&6
4000 LIB_VLC="${LIB_VLC} -ldl"
4002 echo "$ac_t""no" 1>&6
4005 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4006 echo "configure:4007: checking for cos in -lm" >&5
4007 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 ac_save_LIBS="$LIBS"
4013 cat > conftest.$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 /* Override any gcc2 internal prototype to avoid an error. */
4017 /* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4025 if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4027 eval "ac_cv_lib_$ac_lib_var=yes"
4029 echo "configure: failed program was:" >&5
4030 cat conftest.$ac_ext >&5
4032 eval "ac_cv_lib_$ac_lib_var=no"
4035 LIBS="$ac_save_LIBS"
4038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4039 echo "$ac_t""yes" 1>&6
4040 LIB_IMDCT="${LIB_IMDCT} -lm"
4041 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4043 echo "$ac_t""no" 1>&6
4046 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4047 echo "configure:4048: checking for pow in -lm" >&5
4048 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 ac_save_LIBS="$LIBS"
4054 cat > conftest.$ac_ext <<EOF
4055 #line 4056 "configure"
4056 #include "confdefs.h"
4057 /* Override any gcc2 internal prototype to avoid an error. */
4058 /* We use char because int might match the return type of a gcc2
4059 builtin and then its argument prototype would still apply. */
4066 if { (eval echo configure:4067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4068 eval "ac_cv_lib_$ac_lib_var=yes"
4070 echo "configure: failed program was:" >&5
4071 cat conftest.$ac_ext >&5
4073 eval "ac_cv_lib_$ac_lib_var=no"
4076 LIBS="$ac_save_LIBS"
4079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4080 echo "$ac_t""yes" 1>&6
4081 LIB_IMDCT="${LIB_IMDCT} -lm"
4082 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4083 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4084 LIB_CHROMA_I420_RGB="${LIB_CHROMA_I420_RGB} -lm"
4087 echo "$ac_t""no" 1>&6
4092 if test "x${THREAD_LIB}" = xerror; then
4093 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4094 echo "configure:4095: checking for pthread_attr_init in -lpthread" >&5
4095 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 ac_save_LIBS="$LIBS"
4100 LIBS="-lpthread $LIBS"
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 /* Override any gcc2 internal prototype to avoid an error. */
4105 /* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4107 char pthread_attr_init();
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4115 eval "ac_cv_lib_$ac_lib_var=yes"
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4120 eval "ac_cv_lib_$ac_lib_var=no"
4123 LIBS="$ac_save_LIBS"
4126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4128 THREAD_LIB="-lpthread"
4130 echo "$ac_t""no" 1>&6
4134 if test "x${THREAD_LIB}" = xerror; then
4135 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4136 echo "configure:4137: checking for pthread_attr_init in -lpthreads" >&5
4137 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4141 ac_save_LIBS="$LIBS"
4142 LIBS="-lpthreads $LIBS"
4143 cat > conftest.$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4146 /* Override any gcc2 internal prototype to avoid an error. */
4147 /* We use char because int might match the return type of a gcc2
4148 builtin and then its argument prototype would still apply. */
4149 char pthread_attr_init();
4155 if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4157 eval "ac_cv_lib_$ac_lib_var=yes"
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 eval "ac_cv_lib_$ac_lib_var=no"
4165 LIBS="$ac_save_LIBS"
4168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4170 THREAD_LIB="-lpthreads"
4172 echo "$ac_t""no" 1>&6
4176 if test "x${THREAD_LIB}" = xerror; then
4177 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4178 echo "configure:4179: checking for pthread_attr_init in -lc_r" >&5
4179 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4183 ac_save_LIBS="$LIBS"
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 /* Override any gcc2 internal prototype to avoid an error. */
4189 /* We use char because int might match the return type of a gcc2
4190 builtin and then its argument prototype would still apply. */
4191 char pthread_attr_init();
4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4199 eval "ac_cv_lib_$ac_lib_var=yes"
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4204 eval "ac_cv_lib_$ac_lib_var=no"
4207 LIBS="$ac_save_LIBS"
4210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4211 echo "$ac_t""yes" 1>&6
4214 echo "$ac_t""no" 1>&6
4218 if test "x${THREAD_LIB}" = xerror; then
4219 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4220 echo "configure:4221: checking for pthread_attr_init" >&5
4221 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* System header to define __stub macros and hopefully few prototypes,
4228 which can conflict with char pthread_attr_init(); below. */
4230 /* Override any gcc2 internal prototype to avoid an error. */
4231 /* We use char because int might match the return type of a gcc2
4232 builtin and then its argument prototype would still apply. */
4233 char pthread_attr_init();
4237 /* The GNU C library defines this for functions which it implements
4238 to always fail with ENOSYS. Some functions are actually named
4239 something starting with __ and the normal name is an alias. */
4240 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4243 pthread_attr_init();
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4250 eval "ac_cv_func_pthread_attr_init=yes"
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4255 eval "ac_cv_func_pthread_attr_init=no"
4260 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4264 echo "$ac_t""no" 1>&6
4270 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4271 echo "configure:4272: checking for cthread_fork in -lthreads" >&5
4272 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 ac_save_LIBS="$LIBS"
4277 LIBS="-lthreads $LIBS"
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 /* Override any gcc2 internal prototype to avoid an error. */
4282 /* We use char because int might match the return type of a gcc2
4283 builtin and then its argument prototype would still apply. */
4284 char cthread_fork();
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4292 eval "ac_cv_lib_$ac_lib_var=yes"
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 eval "ac_cv_lib_$ac_lib_var=no"
4300 LIBS="$ac_save_LIBS"
4303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4304 echo "$ac_t""yes" 1>&6
4305 THREAD_LIB="-lthreads"
4307 echo "$ac_t""no" 1>&6
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4314 #include <pthread.h>
4316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317 egrep "pthread_cond_t" >/dev/null 2>&1; then
4320 cat >> confdefs.h <<\EOF
4321 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 #include <strings.h>
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333 egrep "strncasecmp" >/dev/null 2>&1; then
4336 cat >> confdefs.h <<\EOF
4337 #define STRNCASECMP_IN_STRINGS_H 1
4344 for ac_hdr in getopt.h strings.h
4346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4348 echo "configure:4349: checking for $ac_hdr" >&5
4349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4358 { (eval echo configure:4359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4360 if test -z "$ac_err"; then
4362 eval "ac_cv_header_$ac_safe=yes"
4365 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4368 eval "ac_cv_header_$ac_safe=no"
4372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4375 cat >> confdefs.h <<EOF
4376 #define $ac_tr_hdr 1
4380 echo "$ac_t""no" 1>&6
4384 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4388 echo "configure:4389: checking for $ac_hdr" >&5
4389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4398 { (eval echo configure:4399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4400 if test -z "$ac_err"; then
4402 eval "ac_cv_header_$ac_safe=yes"
4405 echo "configure: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4408 eval "ac_cv_header_$ac_safe=no"
4412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4413 echo "$ac_t""yes" 1>&6
4414 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4415 cat >> confdefs.h <<EOF
4416 #define $ac_tr_hdr 1
4420 echo "$ac_t""no" 1>&6
4424 for ac_hdr in dlfcn.h image.h
4426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4428 echo "configure:4429: checking for $ac_hdr" >&5
4429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4438 { (eval echo configure:4439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4440 if test -z "$ac_err"; then
4442 eval "ac_cv_header_$ac_safe=yes"
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4448 eval "ac_cv_header_$ac_safe=no"
4452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4455 cat >> confdefs.h <<EOF
4456 #define $ac_tr_hdr 1
4460 echo "$ac_t""no" 1>&6
4464 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4468 echo "configure:4469: checking for $ac_hdr" >&5
4469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4478 { (eval echo configure:4479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4480 if test -z "$ac_err"; then
4482 eval "ac_cv_header_$ac_safe=yes"
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4488 eval "ac_cv_header_$ac_safe=no"
4492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4493 echo "$ac_t""yes" 1>&6
4494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4495 cat >> confdefs.h <<EOF
4496 #define $ac_tr_hdr 1
4500 echo "$ac_t""no" 1>&6
4504 for ac_hdr in machine/param.h sys/shm.h
4506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4508 echo "configure:4509: checking for $ac_hdr" >&5
4509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 cat > conftest.$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4518 { (eval echo configure:4519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4520 if test -z "$ac_err"; then
4522 eval "ac_cv_header_$ac_safe=yes"
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4528 eval "ac_cv_header_$ac_safe=no"
4532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4533 echo "$ac_t""yes" 1>&6
4534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4535 cat >> confdefs.h <<EOF
4536 #define $ac_tr_hdr 1
4540 echo "$ac_t""no" 1>&6
4544 for ac_hdr in linux/version.h
4546 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4548 echo "configure:4549: checking for $ac_hdr" >&5
4549 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4558 { (eval echo configure:4559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4560 if test -z "$ac_err"; then
4562 eval "ac_cv_header_$ac_safe=yes"
4565 echo "configure: failed program was:" >&5
4566 cat conftest.$ac_ext >&5
4568 eval "ac_cv_header_$ac_safe=no"
4572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4573 echo "$ac_t""yes" 1>&6
4574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4575 cat >> confdefs.h <<EOF
4576 #define $ac_tr_hdr 1
4580 echo "$ac_t""no" 1>&6
4585 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4586 echo "configure:4587: checking whether time.h and sys/time.h may both be included" >&5
4587 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <sys/types.h>
4594 #include <sys/time.h>
4600 if { (eval echo configure:4601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4602 ac_cv_header_time=yes
4604 echo "configure: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4607 ac_cv_header_time=no
4612 echo "$ac_t""$ac_cv_header_time" 1>&6
4613 if test $ac_cv_header_time = yes; then
4614 cat >> confdefs.h <<\EOF
4615 #define TIME_WITH_SYS_TIME 1
4621 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_hdr" >&5
4626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4635 { (eval echo configure:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4637 if test -z "$ac_err"; then
4639 eval "ac_cv_header_$ac_safe=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 eval "ac_cv_header_$ac_safe=no"
4649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_hdr 1
4657 echo "$ac_t""no" 1>&6
4662 if test x$SYS != xmingw32
4664 if test x$x_includes = xNONE; then
4665 x_includes=/usr/X11R6/include
4667 if test x$x_libraries = xNONE; then
4668 x_libraries=/usr/X11R6/lib
4670 saved_CPPFLAGS=$CPPFLAGS
4671 CPPFLAGS="$CPPFLAGS -I$x_includes"
4672 for ac_hdr in X11/extensions/dpms.h
4674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4676 echo "configure:4677: checking for $ac_hdr" >&5
4677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4686 { (eval echo configure:4687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4688 if test -z "$ac_err"; then
4690 eval "ac_cv_header_$ac_safe=yes"
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4696 eval "ac_cv_header_$ac_safe=no"
4700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4701 echo "$ac_t""yes" 1>&6
4702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4703 cat >> confdefs.h <<EOF
4704 #define $ac_tr_hdr 1
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 #include <X11/extensions/dpms.h>
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 egrep "DPMSInfo" >/dev/null 2>&1; then
4716 cat >> confdefs.h <<\EOF
4717 #define DPMSINFO_IN_DPMS_H 1
4726 echo "$ac_t""no" 1>&6
4730 CPPFLAGS=$saved_CPPFLAGS
4733 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4734 echo "configure:4735: checking for ntohl in sys/param.h" >&5
4735 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 CFLAGS="${save_CFLAGS} -Wall -Werror"
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 #include <sys/param.h>
4744 void foo() { int meuh; ntohl(meuh); }
4747 if { (eval echo configure:4748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4749 ac_cv_c_ntohl_sys_param_h=yes
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4754 ac_cv_c_ntohl_sys_param_h=no
4759 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4760 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4761 cat >> confdefs.h <<\EOF
4762 #define NTOHL_IN_SYS_PARAM_H 1
4767 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4768 echo "configure:4769: checking if \$CC accepts -finline-limit" >&5
4769 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4773 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4781 if { (eval echo configure:4782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4783 ac_cv_c_inline_limit=yes
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 ac_cv_c_inline_limit=no
4793 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4794 if test x"$ac_cv_c_inline_limit" != x"no"; then
4795 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4798 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4799 echo "configure:4800: checking if \$CC accepts -Wall -Winline" >&5
4800 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4801 echo $ac_n "(cached) $ac_c" 1>&6
4803 CFLAGS="${save_CFLAGS} -Wall -Winline"
4804 cat > conftest.$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4812 if { (eval echo configure:4813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4814 ac_cv_c_Wall_Winline=yes
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4819 ac_cv_c_Wall_Winline=no
4824 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4825 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4826 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4828 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4829 echo "configure:4830: checking if \$CC accepts -wall -winline" >&5
4830 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 CFLAGS="${save_CFLAGS} -wall -winline"
4834 cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4842 if { (eval echo configure:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 ac_cv_c_wall_winline=yes
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4849 ac_cv_c_wall_winline=no
4854 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4855 if test x"$ac_cv_c_wall_winline" != x"no"; then
4856 save_CFLAGS="${save_CFLAGS} -wall -winline"
4860 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4861 echo "configure:4862: checking if \$CC accepts -pipe" >&5
4862 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4865 CFLAGS="${save_CFLAGS} -pipe"
4866 cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4874 if { (eval echo configure:4875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4878 echo "configure: failed program was:" >&5
4879 cat conftest.$ac_ext >&5
4886 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4887 if test x"$ac_cv_c_pipe" != x"no"; then
4888 save_CFLAGS="${save_CFLAGS} -pipe"
4891 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4892 echo "configure:4893: checking if \$CC accepts -O3" >&5
4893 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4896 CFLAGS="${save_CFLAGS} -O3"
4897 cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4905 if { (eval echo configure:4906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4917 echo "$ac_t""$ac_cv_c_o3" 1>&6
4918 if test x"$ac_cv_c_o3" != x"no"; then
4919 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
4921 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
4922 echo "configure:4923: checking if \$CC accepts -O2" >&5
4923 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
4924 echo $ac_n "(cached) $ac_c" 1>&6
4926 CFLAGS="${save_CFLAGS} -O2"
4927 cat > conftest.$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4935 if { (eval echo configure:4936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4947 echo "$ac_t""$ac_cv_c_o2" 1>&6
4948 if test x"$ac_cv_c_o2" != x"no"; then
4949 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
4951 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
4952 echo "configure:4953: checking if \$CC accepts -O" >&5
4953 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4956 CFLAGS="${save_CFLAGS} -O"
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4965 if { (eval echo configure:4966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4969 echo "configure: failed program was:" >&5
4970 cat conftest.$ac_ext >&5
4977 echo "$ac_t""$ac_cv_c_o" 1>&6
4978 if test x"$ac_cv_c_o" != x"no"; then
4979 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
4984 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
4985 echo "configure:4986: checking if \$CC accepts -ffast-math" >&5
4986 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 CFLAGS="${save_CFLAGS} -ffast-math"
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4998 if { (eval echo configure:4999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5000 ac_cv_c_fast_math=yes
5002 echo "configure: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5005 ac_cv_c_fast_math=no
5010 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5011 if test x"$ac_cv_c_fast_math" != x"no"; then
5012 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5015 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5016 echo "configure:5017: checking if \$CC accepts -funroll-loops" >&5
5017 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6
5020 CFLAGS="${save_CFLAGS} -funroll-loops"
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5029 if { (eval echo configure:5030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5031 ac_cv_c_unroll_loops=yes
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5036 ac_cv_c_unroll_loops=no
5041 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5042 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5043 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5046 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5047 echo "configure:5048: checking if \$CC accepts -fomit-frame-pointer" >&5
5048 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5051 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5060 if { (eval echo configure:5061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5062 ac_cv_c_omit_frame_pointer=yes
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 ac_cv_c_omit_frame_pointer=no
5072 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5073 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5074 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5077 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5078 echo "configure:5079: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5079 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5082 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5083 cat > conftest.$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5091 if { (eval echo configure:5092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5095 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5103 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5104 if test x"$ac_cv_ld_darwin" != x"no"; then
5105 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5108 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5109 echo "configure:5110: checking if \$CC accepts -shared" >&5
5110 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5111 echo $ac_n "(cached) $ac_c" 1>&6
5113 CFLAGS="${save_CFLAGS} -shared"
5114 cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5122 if { (eval echo configure:5123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5124 ac_cv_ld_plugins=yes
5126 echo "configure: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5134 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5135 if test x"$ac_cv_ld_plugins" != x"no"; then
5136 PLDFLAGS="${PLDFLAGS} -shared"
5139 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5140 echo "configure:5141: checking __attribute__ ((aligned ())) support" >&5
5141 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 ac_cv_c_attribute_aligned=0
5145 CFLAGS="${save_CFLAGS} -Werror"
5146 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5152 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5155 if { (eval echo configure:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5159 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5166 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5167 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5168 cat >> confdefs.h <<EOF
5169 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5174 CFLAGS="${save_CFLAGS}"
5175 LDFLAGS="${save_LDFLAGS}"
5177 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5178 echo "configure:5179: checking for boolean_t in sys/types.h" >&5
5179 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 #include <sys/types.h>
5190 if { (eval echo configure:5191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5192 ac_cv_c_boolean_t_sys_types_h=yes
5194 echo "configure: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5197 ac_cv_c_boolean_t_sys_types_h=no
5202 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5203 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5204 cat >> confdefs.h <<\EOF
5205 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5210 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5211 echo "configure:5212: checking for boolean_t in pthread.h" >&5
5212 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 #include <pthread.h>
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5225 ac_cv_c_boolean_t_pthread_h=yes
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5230 ac_cv_c_boolean_t_pthread_h=no
5235 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5236 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5237 cat >> confdefs.h <<\EOF
5238 #define BOOLEAN_T_IN_PTHREAD_H 1
5243 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5244 echo "configure:5245: checking for boolean_t in cthreads.h" >&5
5245 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 #include <cthreads.h>
5256 if { (eval echo configure:5257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5258 ac_cv_c_boolean_t_cthreads_h=yes
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 ac_cv_c_boolean_t_cthreads_h=no
5268 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5269 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5270 cat >> confdefs.h <<\EOF
5271 #define BOOLEAN_T_IN_CTHREADS_H 1
5276 case x"${target_cpu}" in
5281 ARCH="${target_cpu}"
5285 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"
5286 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"
5288 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5289 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5290 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5291 SSE_MODULES="imdctsse downmixsse"
5292 ALTIVEC_MODULES="idctaltivec motionaltivec"
5294 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5295 echo "configure:5296: checking if \$CC groks MMX inline assembly" >&5
5296 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5304 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5307 if { (eval echo configure:5308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5309 ac_cv_mmx_inline=yes
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5319 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5320 if test x"$ac_cv_mmx_inline" != x"no"; then
5321 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5324 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5325 echo "configure:5326: checking if \$CC groks MMX EXT inline assembly" >&5
5326 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6
5329 cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5334 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5337 if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5339 ac_cv_mmxext_inline=yes
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 ac_cv_mmxext_inline=no
5349 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5350 if test x"$ac_cv_mmxext_inline" != x"no"; then
5351 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5354 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5355 echo "configure:5356: checking if \$CC groks 3D Now! inline assembly" >&5
5356 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 cat > conftest.$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5364 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5367 if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5369 ac_cv_3dnow_inline=yes
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5374 ac_cv_3dnow_inline=no
5379 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5380 if test x"$ac_cv_3dnow_inline" != x"no"; then
5381 cat >> confdefs.h <<\EOF
5382 #define CAN_COMPILE_3DNOW 1
5385 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5388 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5389 echo "configure:5390: checking if \$CC groks SSE inline assembly" >&5
5390 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 cat > conftest.$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5398 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5401 if { (eval echo configure:5402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5403 ac_cv_sse_inline=yes
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5413 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5414 if test x"$ac_cv_sse_inline" != x"no"; then
5415 cat >> confdefs.h <<\EOF
5416 #define CAN_COMPILE_SSE 1
5419 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5422 # don't try to grok altivec with native mingw32 it doesn't work right now
5423 # we should be able to remove this test with future versions of mingw32
5424 if test x$SYS != xmingw32; then
5425 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5426 echo "configure:5427: checking if \$CC groks Altivec inline assembly" >&5
5427 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5430 cat > conftest.$ac_ext <<EOF
5431 #line 5432 "configure"
5432 #include "confdefs.h"
5435 asm volatile("vperm 0,1,2,3");
5438 if { (eval echo configure:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5440 ac_cv_altivec_inline=yes
5442 echo "configure: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5446 CFLAGS="$CFLAGS -Wa,-m7400"
5447 cat > conftest.$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5452 asm volatile("vperm 0,1,2,3");
5455 if { (eval echo configure:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5457 ac_cv_altivec_inline="-Wa,-m7400"
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5462 ac_cv_altivec_inline=no
5471 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5472 if test x"$ac_cv_altivec_inline" != x"no"; then
5473 cat >> confdefs.h <<\EOF
5474 #define CAN_COMPILE_ALTIVEC 1
5477 if test x"$ac_cv_altivec_inline" != x"yes"; then
5478 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5479 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5480 CFLAGS_MEMCPYALTIVEC="$CFLAGS_MEMCPYALTIVEC $ac_cv_altivec_inline"
5481 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5483 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5486 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5487 echo "configure:5488: checking if \$CC groks Altivec C extensions" >&5
5488 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5492 CFLAGS="$CFLAGS -faltivec"
5494 cat > conftest.$ac_ext <<EOF
5495 #line 5496 "configure"
5496 #include "confdefs.h"
5499 vec_mtvscr((vector unsigned int)(0));
5502 if { (eval echo configure:5503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5504 ac_cv_c_altivec=-faltivec
5506 echo "configure: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5511 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5517 vec_mtvscr((vector unsigned int)(0));
5520 if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5522 ac_cv_c_altivec="-fvec"
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5537 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5538 if test x"$ac_cv_c_altivec" != x"no"; then
5539 cat >> confdefs.h <<\EOF
5540 #define CAN_COMPILE_C_ALTIVEC 1
5543 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5544 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5545 CFLAGS_MEMCPYALTIVEC="$CFLAGS_MEMCPYALTIVEC $ac_cv_c_altivec"
5546 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5547 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5550 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5551 echo "configure:5552: checking if linker needs -framework vecLib" >&5
5552 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5555 save_LDFLAGS=$LDFLAGS
5556 LDFLAGS="$LDFLAGS -framework vecLib"
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5565 if { (eval echo configure:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5567 ac_cv_ld_altivec=yes
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5575 LDFLAGS=$save_LDFLAGS
5579 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5580 if test x"$ac_cv_ld_altivec" != x"no"; then
5581 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5582 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5583 LIB_MEMCPYALTIVEC="${LIB_MEMCPYALTIVEC} -framework vecLib"
5584 LIB_VLC="${LIB_VLC} -framework vecLib"
5589 # Check whether --with- or --without- was given.
5590 if test "${with_+set}" = set; then
5595 # Check whether --with- or --without- was given.
5596 if test "${with_+set}" = set; then
5602 # Check whether --with-tuning or --without-tuning was given.
5603 if test "${with_tuning+set}" = set; then
5604 withval="$with_tuning"
5608 if test "x$withval" != "x"; then
5611 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5613 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5617 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5620 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5623 # Check whether --enable-optimizations or --disable-optimizations was given.
5624 if test "${enable_optimizations+set}" = set; then
5625 enableval="$enable_optimizations"
5626 if test x$enableval = xno; then OPTIMS=0; fi
5632 # Check whether --enable-altivec or --disable-altivec was given.
5633 if test "${enable_altivec+set}" = set; then
5634 enableval="$enable_altivec"
5635 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5636 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5638 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5639 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5644 # Check whether --enable-debug or --disable-debug was given.
5645 if test "${enable_debug+set}" = set; then
5646 enableval="$enable_debug"
5647 if test x$enableval = xyes; then DEBUG=1; fi
5651 # Check whether --enable-release or --disable-release was given.
5652 if test "${enable_release+set}" = set; then
5653 enableval="$enable_release"
5654 if test x$enableval = xyes; then RELEASE=1; fi
5656 VERSION="${VERSION}_`date +%Y-%m-%d`"
5661 # Check whether --with- or --without- was given.
5662 if test "${with_+set}" = set; then
5668 # Check whether --enable-dvd or --disable-dvd was given.
5669 if test "${enable_dvd+set}" = set; then
5670 enableval="$enable_dvd"
5674 if test "x$enableval" != "xno"
5676 # Check whether --with-dvdcss or --without-dvdcss was given.
5677 if test "${with_dvdcss+set}" = set; then
5678 withval="$with_dvdcss"
5682 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5683 if test "${with_dvdcss_tree+set}" = set; then
5684 withval="$with_dvdcss_tree"
5688 case "x$with_dvdcss" in
5690 if test "x$with_dvdcss_tree" = x
5692 for ac_hdr in dvdcss/dvdcss.h
5694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_hdr" >&5
5697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5706 { (eval echo configure:5707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5708 if test -z "$ac_err"; then
5710 eval "ac_cv_header_$ac_safe=yes"
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5716 eval "ac_cv_header_$ac_safe=no"
5720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5721 echo "$ac_t""yes" 1>&6
5722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5723 cat >> confdefs.h <<EOF
5724 #define $ac_tr_hdr 1
5726 PLUGINS="${PLUGINS} dvd"
5727 LIB_DVD="${LIB_DVD} -ldvdcss"
5729 echo "$ac_t""no" 1>&6
5730 echo "configure: warning: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." 1>&2
5731 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5736 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5737 echo "configure:5738: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5738 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5739 if test "x$real_dvdcss_tree" = x
5741 echo "$ac_t""no" 1>&6
5742 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5744 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5746 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5747 BUILTINS="${BUILTINS} dvd"
5748 LIB_DVD="${LIB_DVD} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5749 CFLAGS_DVD="${CFLAGS_DVD} -I${real_dvdcss_tree}/src"
5751 echo "$ac_t""no" 1>&6
5752 { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
5757 PLUGINS="${PLUGINS} dvd"
5758 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
5759 LIB_DVD="${LIB_DVD} -ldl"
5762 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5763 echo "configure:5764: checking for dvdcss headers in ${with_dvdcss}" >&5
5764 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5766 echo "$ac_t""yes" 1>&6
5767 PLUGINS="${PLUGINS} dvd"
5768 LIB_DVD="${LIB_DVD} -L${with_dvdcss}/lib -ldvdcss"
5769 CFLAGS_DVD="${CFLAGS_DVD} -I${with_dvdcss}/include"
5771 echo "$ac_t""no" 1>&6
5772 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5778 # Check whether --enable-dvdread or --disable-dvdread was given.
5779 if test "${enable_dvdread+set}" = set; then
5780 enableval="$enable_dvdread"
5784 if test "x$enableval" != "xno"
5786 # Check whether --with-dvdread or --without-dvdread was given.
5787 if test "${with_dvdread+set}" = set; then
5788 withval="$with_dvdread"
5792 case "x$with_dvdread" in
5794 for ac_hdr in dvdread/dvd_reader.h
5796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5798 echo "configure:5799: checking for $ac_hdr" >&5
5799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5800 echo $ac_n "(cached) $ac_c" 1>&6
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5808 { (eval echo configure:5809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5810 if test -z "$ac_err"; then
5812 eval "ac_cv_header_$ac_safe=yes"
5815 echo "configure: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5818 eval "ac_cv_header_$ac_safe=no"
5822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5823 echo "$ac_t""yes" 1>&6
5824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5825 cat >> confdefs.h <<EOF
5826 #define $ac_tr_hdr 1
5828 PLUGINS="${PLUGINS} dvdread"
5829 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread"
5831 echo "$ac_t""no" 1>&6
5837 echo $ac_n "checking for dvdread headers in ${withval}""... $ac_c" 1>&6
5838 echo "configure:5839: checking for dvdread headers in ${withval}" >&5
5839 if test -f ${withval}/include/dvdread/dvd_reader.h
5841 echo "$ac_t""yes" 1>&6
5842 PLUGINS="${PLUGINS} dvdread"
5843 LIB_DVDREAD="${LIB_DVDREAD} -L${withval}/lib -ldvdread"
5844 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I${withval}/include"
5846 echo "$ac_t""no" 1>&6
5847 { echo "configure: error: Cannot find ${withval}/dvdread/dvd_reader.h" 1>&2; exit 1; }
5853 # Check whether --enable-vcd or --disable-vcd was given.
5854 if test "${enable_vcd+set}" = set; then
5855 enableval="$enable_vcd"
5860 if test x$enable_vcd != xno
5862 cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5865 #include <linux/cdrom.h>
5867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5868 egrep "cdrom_msf0" >/dev/null 2>&1; then
5871 PLUGINS="${PLUGINS} vcd"
5877 if test "x${SYS}" = "xbsdi"
5879 PLUGINS="${PLUGINS} vcd"
5882 if test "x${SYS}" = "xdarwin"
5884 PLUGINS="${PLUGINS} vcd"
5885 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
5889 # Check whether --enable-satellite or --disable-satellite was given.
5890 if test "${enable_satellite+set}" = set; then
5891 enableval="$enable_satellite"
5892 if test x$enable_satellite = xyes
5894 BUILTINS="${BUILTINS} satellite"
5895 cat >> confdefs.h <<\EOF
5896 #define HAVE_SATELLITE 1
5903 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
5904 echo "configure:5905: checking for inet_pton" >&5
5905 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
5906 echo $ac_n "(cached) $ac_c" 1>&6
5908 cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5911 /* System header to define __stub macros and hopefully few prototypes,
5912 which can conflict with char inet_pton(); below. */
5914 /* Override any gcc2 internal prototype to avoid an error. */
5915 /* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */
5921 /* The GNU C library defines this for functions which it implements
5922 to always fail with ENOSYS. Some functions are actually named
5923 something starting with __ and the normal name is an alias. */
5924 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
5932 if { (eval echo configure:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5934 eval "ac_cv_func_inet_pton=yes"
5936 echo "configure: failed program was:" >&5
5937 cat conftest.$ac_ext >&5
5939 eval "ac_cv_func_inet_pton=no"
5944 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
5945 echo "$ac_t""yes" 1>&6
5946 PLUGINS="${PLUGINS} ipv6"
5948 echo "$ac_t""no" 1>&6
5953 # Check whether --with- or --without- was given.
5954 if test "${with_+set}" = set; then
5960 # Check whether --enable-mad or --disable-mad was given.
5961 if test "${enable_mad+set}" = set; then
5962 enableval="$enable_mad"
5966 if test x$enable_mad = xyes
5968 PLUGINS="${PLUGINS} mad"
5969 LIB_MAD="${LIB_MAD} -lmad"
5970 # Check whether --with-mad or --without-mad was given.
5971 if test "${with_mad+set}" = set; then
5973 if test "x$with_val" != "xno" -a "x$with_val" != "x"
5975 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
5976 LIB_MAD="${LIB_MAD} -L$with_val/lib"
5981 save_LDFLAGS=$LDFLAGS
5982 CFLAGS="$CFLAGS $CFLAGS_MAD"
5983 LDFLAGS="$LDFLAGS $LIB_MAD"
5986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5988 echo "configure:5989: checking for $ac_hdr" >&5
5989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5998 { (eval echo configure:5999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6000 if test -z "$ac_err"; then
6002 eval "ac_cv_header_$ac_safe=yes"
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6008 eval "ac_cv_header_$ac_safe=no"
6012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6013 echo "$ac_t""yes" 1>&6
6014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6015 cat >> confdefs.h <<EOF
6016 #define $ac_tr_hdr 1
6020 echo "$ac_t""no" 1>&6
6021 echo "Cannot find development headers for libmad..."
6027 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6028 echo "configure:6029: checking for mad_bit_init in -lmad" >&5
6029 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6033 ac_save_LIBS="$LIBS"
6035 cat > conftest.$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 /* Override any gcc2 internal prototype to avoid an error. */
6039 /* We use char because int might match the return type of a gcc2
6040 builtin and then its argument prototype would still apply. */
6041 char mad_bit_init();
6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6049 eval "ac_cv_lib_$ac_lib_var=yes"
6051 echo "configure: failed program was:" >&5
6052 cat conftest.$ac_ext >&5
6054 eval "ac_cv_lib_$ac_lib_var=no"
6057 LIBS="$ac_save_LIBS"
6060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6061 echo "$ac_t""yes" 1>&6
6062 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6063 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6064 cat >> confdefs.h <<EOF
6065 #define $ac_tr_lib 1
6071 echo "$ac_t""no" 1>&6
6072 echo "Cannot find libmad library..."
6078 LDFLAGS=$save_LDFLAGS
6081 if test x$SYS = xbeos
6083 PLUGINS="${PLUGINS} beos"
6087 # Check whether --enable-a52 or --disable-a52 was given.
6088 if test "${enable_a52+set}" = set; then
6089 enableval="$enable_a52"
6093 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6095 for ac_hdr in a52dec/a52.h
6097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6099 echo "configure:6100: checking for $ac_hdr" >&5
6100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6103 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6109 { (eval echo configure:6110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6111 if test -z "$ac_err"; then
6113 eval "ac_cv_header_$ac_safe=yes"
6116 echo "configure: failed program was:" >&5
6117 cat conftest.$ac_ext >&5
6119 eval "ac_cv_header_$ac_safe=no"
6123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6126 cat >> confdefs.h <<EOF
6127 #define $ac_tr_hdr 1
6130 BUILTINS="${BUILTINS} a52"
6131 LIB_A52="${LIB_A52} -la52 -lm"
6134 echo "$ac_t""no" 1>&6
6140 # Check whether --enable-vorbis or --disable-vorbis was given.
6141 if test "${enable_vorbis+set}" = set; then
6142 enableval="$enable_vorbis"
6146 if test "x$enableval" != "xno"
6148 for ac_hdr in ogg/ogg.h
6150 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6151 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6152 echo "configure:6153: checking for $ac_hdr" >&5
6153 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6154 echo $ac_n "(cached) $ac_c" 1>&6
6156 cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure"
6158 #include "confdefs.h"
6161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6162 { (eval echo configure:6163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6164 if test -z "$ac_err"; then
6166 eval "ac_cv_header_$ac_safe=yes"
6169 echo "configure: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6172 eval "ac_cv_header_$ac_safe=no"
6176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6178 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6179 cat >> confdefs.h <<EOF
6180 #define $ac_tr_hdr 1
6183 PLUGINS="${PLUGINS} vorbis"
6184 LIB_VORBIS="${LIB_VORBIS} -lvorbis"
6187 echo "$ac_t""no" 1>&6
6194 # Check whether --with- or --without- was given.
6195 if test "${with_+set}" = set; then
6201 # Check whether --enable-x11 or --disable-x11 was given.
6202 if test "${enable_x11+set}" = set; then
6203 enableval="$enable_x11"
6207 if test x$enable_x11 != xno &&
6208 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6209 if test x$x_includes = xNONE; then
6210 x_includes=/usr/X11R6/include
6212 if test x$x_libraries = xNONE; then
6213 x_libraries=/usr/X11R6/lib
6215 saved_CPPFLAGS=$CPPFLAGS
6216 CPPFLAGS="$CPPFLAGS -I$x_includes"
6217 for ac_hdr in X11/Xlib.h
6219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6221 echo "configure:6222: checking for $ac_hdr" >&5
6222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6223 echo $ac_n "(cached) $ac_c" 1>&6
6225 cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6231 { (eval echo configure:6232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6233 if test -z "$ac_err"; then
6235 eval "ac_cv_header_$ac_safe=yes"
6238 echo "configure: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6241 eval "ac_cv_header_$ac_safe=no"
6245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6246 echo "$ac_t""yes" 1>&6
6247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6248 cat >> confdefs.h <<EOF
6249 #define $ac_tr_hdr 1
6252 PLUGINS="${PLUGINS} x11"
6253 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6254 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6257 echo "$ac_t""no" 1>&6
6261 CPPFLAGS=$saved_CPPFLAGS
6264 # Check whether --enable-xvideo or --disable-xvideo was given.
6265 if test "${enable_xvideo+set}" = set; then
6266 enableval="$enable_xvideo"
6270 if test x$enable_xvideo != xno &&
6271 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6272 if test x$x_includes = xNONE; then
6273 x_includes=/usr/X11R6/include
6275 if test x$x_libraries = xNONE; then
6276 x_libraries=/usr/X11R6/lib
6278 saved_CPPFLAGS=$CPPFLAGS
6279 CPPFLAGS="$CPPFLAGS -I$x_includes"
6280 for ac_hdr in X11/extensions/Xv.h
6282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6284 echo "configure:6285: checking for $ac_hdr" >&5
6285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6286 echo $ac_n "(cached) $ac_c" 1>&6
6288 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6294 { (eval echo configure:6295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6296 if test -z "$ac_err"; then
6298 eval "ac_cv_header_$ac_safe=yes"
6301 echo "configure: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6304 eval "ac_cv_header_$ac_safe=no"
6308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6309 echo "$ac_t""yes" 1>&6
6310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6311 cat >> confdefs.h <<EOF
6312 #define $ac_tr_hdr 1
6315 saved_CFLAGS=$CFLAGS
6316 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6317 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6318 echo "configure:6319: checking for XvSetPortAttribute in -lXv_pic" >&5
6319 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6323 ac_save_LIBS="$LIBS"
6324 LIBS="-lXv_pic $LIBS"
6325 cat > conftest.$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6328 /* Override any gcc2 internal prototype to avoid an error. */
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6331 char XvSetPortAttribute();
6334 XvSetPortAttribute()
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6339 eval "ac_cv_lib_$ac_lib_var=yes"
6341 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6344 eval "ac_cv_lib_$ac_lib_var=no"
6347 LIBS="$ac_save_LIBS"
6350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6352 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6353 PLUGINS="${PLUGINS} xvideo"
6354 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6355 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6357 echo "$ac_t""no" 1>&6
6358 # We don't have Xv_pic, let's make xvideo.a as builtin
6359 BUILTINS="${BUILTINS} xvideo"
6360 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6361 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6364 CFLAGS=$saved_CFLAGS
6366 CPPFLAGS=$saved_CPPFLAGS
6368 echo "$ac_t""no" 1>&6
6374 # Check whether --enable-sdl or --disable-sdl was given.
6375 if test "${enable_sdl+set}" = set; then
6376 enableval="$enable_sdl"
6380 if test "x$enable_sdl" != "xno"
6383 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6384 if test "${with_sdl_config_path+set}" = set; then
6385 withval="$with_sdl_config_path"
6386 if test "x$withval" != "xno"
6388 SDL_PATH=$withval:$PATH
6392 # Extract the first word of "sdl12-config", so it can be a program name with args.
6393 set dummy sdl12-config; ac_word=$2
6394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6395 echo "configure:6396: checking for $ac_word" >&5
6396 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6399 case "$SDL12_CONFIG" in
6401 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6404 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6408 ac_dummy="$SDL_PATH"
6409 for ac_dir in $ac_dummy; do
6410 test -z "$ac_dir" && ac_dir=.
6411 if test -f $ac_dir/$ac_word; then
6412 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6417 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6421 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6422 if test -n "$SDL12_CONFIG"; then
6423 echo "$ac_t""$SDL12_CONFIG" 1>&6
6425 echo "$ac_t""no" 1>&6
6428 SDL_CONFIG=${SDL12_CONFIG}
6429 SDL_HEADER="SDL12/SDL.h"
6430 if test x${SDL_CONFIG} = xno
6432 # Extract the first word of "sdl11-config", so it can be a program name with args.
6433 set dummy sdl11-config; ac_word=$2
6434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6435 echo "configure:6436: checking for $ac_word" >&5
6436 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6437 echo $ac_n "(cached) $ac_c" 1>&6
6439 case "$SDL11_CONFIG" in
6441 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6444 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6448 ac_dummy="$SDL_PATH"
6449 for ac_dir in $ac_dummy; do
6450 test -z "$ac_dir" && ac_dir=.
6451 if test -f $ac_dir/$ac_word; then
6452 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6457 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6461 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6462 if test -n "$SDL11_CONFIG"; then
6463 echo "$ac_t""$SDL11_CONFIG" 1>&6
6465 echo "$ac_t""no" 1>&6
6468 SDL_CONFIG=${SDL11_CONFIG}
6469 SDL_HEADER="SDL11/SDL.h"
6471 if test x${SDL_CONFIG} = xno
6473 # Extract the first word of "sdl-config", so it can be a program name with args.
6474 set dummy sdl-config; ac_word=$2
6475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6476 echo "configure:6477: checking for $ac_word" >&5
6477 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 case "$SDL_CONFIG" in
6482 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6485 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6489 ac_dummy="$SDL_PATH"
6490 for ac_dir in $ac_dummy; do
6491 test -z "$ac_dir" && ac_dir=.
6492 if test -f $ac_dir/$ac_word; then
6493 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6498 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6502 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6503 if test -n "$SDL_CONFIG"; then
6504 echo "$ac_t""$SDL_CONFIG" 1>&6
6506 echo "$ac_t""no" 1>&6
6509 SDL_HEADER="SDL/SDL.h"
6511 if test x${SDL_CONFIG} != xno
6513 PLUGINS="${PLUGINS} sdl"
6514 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
6515 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6516 save_CPPFLAGS=$CPPFLAGS
6517 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
6518 for ac_hdr in ${SDL_HEADER}
6520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6522 echo "configure:6523: checking for $ac_hdr" >&5
6523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6532 { (eval echo configure:6533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6534 if test -z "$ac_err"; then
6536 eval "ac_cv_header_$ac_safe=yes"
6539 echo "configure: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6542 eval "ac_cv_header_$ac_safe=no"
6546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6547 echo "$ac_t""yes" 1>&6
6548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6549 cat >> confdefs.h <<EOF
6550 #define $ac_tr_hdr 1
6552 cat >> confdefs.h <<EOF
6553 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6557 echo "$ac_t""no" 1>&6
6558 { echo "configure: error: The development package for SDL is not installed.
6559 Please install it and try again. Alternatively you can also configure with
6560 --disable-sdl." 1>&2; exit 1; }
6565 CPPFLAGS=$save_CPPFLAGS
6566 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6568 { echo "configure: error: The development package for SDL is not installed.
6569 Please install it and try again. Alternatively you can also configure with
6570 --disable-sdl." 1>&2; exit 1; }
6572 elif test "x$enable_sdl" = "xyes"
6574 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6575 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6580 # Check whether --enable-directx or --disable-directx was given.
6581 if test "${enable_directx+set}" = set; then
6582 enableval="$enable_directx"
6586 if test "x$enableval" != "xno"
6588 if test x$SYS = xmingw32
6590 # Check whether --with-directx or --without-directx was given.
6591 if test "${with_directx+set}" = set; then
6592 withval="$with_directx"
6596 if test "x$with_directx" = "x"
6598 for ac_hdr in ddraw.h
6600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6602 echo "configure:6603: checking for $ac_hdr" >&5
6603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6612 { (eval echo configure:6613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6614 if test -z "$ac_err"; then
6616 eval "ac_cv_header_$ac_safe=yes"
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6622 eval "ac_cv_header_$ac_safe=no"
6626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6629 cat >> confdefs.h <<EOF
6630 #define $ac_tr_hdr 1
6632 PLUGINS="${PLUGINS} directx"
6633 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
6635 echo "$ac_t""no" 1>&6
6640 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
6641 echo "configure:6642: checking for directX headers in ${withval}" >&5
6642 if test -f ${withval}/ddraw.h
6644 PLUGINS="${PLUGINS} directx"
6645 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
6646 INCLUDE="${INCLUDE} -I${withval}"
6647 echo "$ac_t""yes" 1>&6
6649 echo "$ac_t""no" 1>&6
6650 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
6656 # Check whether --enable-fb or --disable-fb was given.
6657 if test "${enable_fb+set}" = set; then
6658 enableval="$enable_fb"
6662 if test x$enable_fb != xno
6664 for ac_hdr in linux/fb.h
6666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6668 echo "configure:6669: checking for $ac_hdr" >&5
6669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6678 { (eval echo configure:6679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6680 if test -z "$ac_err"; then
6682 eval "ac_cv_header_$ac_safe=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_header_$ac_safe=no"
6692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6695 cat >> confdefs.h <<EOF
6696 #define $ac_tr_hdr 1
6699 PLUGINS="${PLUGINS} fb"
6702 echo "$ac_t""no" 1>&6
6708 # Check whether --enable-mga or --disable-mga was given.
6709 if test "${enable_mga+set}" = set; then
6710 enableval="$enable_mga"
6711 if test x$enable_mga = xyes
6713 PLUGINS="${PLUGINS} mga xmga"
6718 # Check whether --enable-ggi or --disable-ggi was given.
6719 if test "${enable_ggi+set}" = set; then
6720 enableval="$enable_ggi"
6724 if test x$enable_ggi = xyes
6726 PLUGINS="${PLUGINS} ggi"
6727 LIB_GGI="${LIB_GGI} -lggi"
6728 # Check whether --with-ggi or --without-ggi was given.
6729 if test "${with_ggi+set}" = set; then
6731 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6733 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
6734 LIB_GGI="${LIB_GGI} -L$with_val/lib"
6740 # Check whether --enable-glide or --disable-glide was given.
6741 if test "${enable_glide+set}" = set; then
6742 enableval="$enable_glide"
6746 if test x$enable_glide = xyes
6748 PLUGINS="${PLUGINS} glide"
6749 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
6750 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
6751 # Check whether --with-glide or --without-glide was given.
6752 if test "${with_glide+set}" = set; then
6753 withval="$with_glide"
6754 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6756 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
6757 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
6763 # Check whether --enable-aa or --disable-aa was given.
6764 if test "${enable_aa+set}" = set; then
6765 enableval="$enable_aa"
6769 if test x$enable_aa = xyes
6771 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
6772 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
6773 echo "configure:6774: checking for aalib.h" >&5
6774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6775 echo $ac_n "(cached) $ac_c" 1>&6
6777 cat > conftest.$ac_ext <<EOF
6778 #line 6779 "configure"
6779 #include "confdefs.h"
6782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6783 { (eval echo configure:6784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6785 if test -z "$ac_err"; then
6787 eval "ac_cv_header_$ac_safe=yes"
6790 echo "configure: failed program was:" >&5
6791 cat conftest.$ac_ext >&5
6793 eval "ac_cv_header_$ac_safe=no"
6797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6801 echo "$ac_t""no" 1>&6
6805 if test x$have_aa = xtrue
6807 PLUGINS="${PLUGINS} aa"
6808 LIB_AA="${LIB_AA} -laa"
6813 # Check whether --with- or --without- was given.
6814 if test "${with_+set}" = set; then
6820 # Check whether --enable-dsp or --disable-dsp was given.
6821 if test "${enable_dsp+set}" = set; then
6822 enableval="$enable_dsp"
6827 if test x$enable_dsp != xno &&
6828 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
6830 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
6832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6834 echo "configure:6835: checking for $ac_hdr" >&5
6835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6836 echo $ac_n "(cached) $ac_c" 1>&6
6838 cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6844 { (eval echo configure:6845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6846 if test -z "$ac_err"; then
6848 eval "ac_cv_header_$ac_safe=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 eval "ac_cv_header_$ac_safe=no"
6858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6859 echo "$ac_t""yes" 1>&6
6860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6861 cat >> confdefs.h <<EOF
6862 #define $ac_tr_hdr 1
6865 PLUGINS="${PLUGINS} dsp"
6866 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
6867 echo "configure:6868: checking for main in -lossaudio" >&5
6868 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
6869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6872 ac_save_LIBS="$LIBS"
6873 LIBS="-lossaudio $LIBS"
6874 cat > conftest.$ac_ext <<EOF
6875 #line 6876 "configure"
6876 #include "confdefs.h"
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6884 eval "ac_cv_lib_$ac_lib_var=yes"
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6889 eval "ac_cv_lib_$ac_lib_var=no"
6892 LIBS="$ac_save_LIBS"
6895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6896 echo "$ac_t""yes" 1>&6
6897 LIB_DSP="${LIB_DSP} -lossaudio"
6899 echo "$ac_t""no" 1>&6
6904 echo "$ac_t""no" 1>&6
6910 # Check whether --enable-esd or --disable-esd was given.
6911 if test "${enable_esd+set}" = set; then
6912 enableval="$enable_esd"
6913 if test x$enable_esd = xyes
6915 # Extract the first word of "esd-config", so it can be a program name with args.
6916 set dummy esd-config; ac_word=$2
6917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6918 echo "configure:6919: checking for $ac_word" >&5
6919 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6922 case "$ESD_CONFIG" in
6924 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6927 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6932 for ac_dir in $ac_dummy; do
6933 test -z "$ac_dir" && ac_dir=.
6934 if test -f $ac_dir/$ac_word; then
6935 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6940 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6944 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6945 if test -n "$ESD_CONFIG"; then
6946 echo "$ac_t""$ESD_CONFIG" 1>&6
6948 echo "$ac_t""no" 1>&6
6951 if test x${ESD_CONFIG} != xno
6953 PLUGINS="${PLUGINS} esd"
6954 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
6955 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
6961 # Check whether --enable-arts or --disable-arts was given.
6962 if test "${enable_arts+set}" = set; then
6963 enableval="$enable_arts"
6964 if test x$enable_arts = xyes
6966 # Extract the first word of "artsc-config", so it can be a program name with args.
6967 set dummy artsc-config; ac_word=$2
6968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6969 echo "configure:6970: checking for $ac_word" >&5
6970 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6973 case "$ARTS_CONFIG" in
6975 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6978 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6983 for ac_dir in $ac_dummy; do
6984 test -z "$ac_dir" && ac_dir=.
6985 if test -f $ac_dir/$ac_word; then
6986 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6991 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6995 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6996 if test -n "$ARTS_CONFIG"; then
6997 echo "$ac_t""$ARTS_CONFIG" 1>&6
6999 echo "$ac_t""no" 1>&6
7002 if test x${ARTS_CONFIG} != xno
7004 PLUGINS="${PLUGINS} arts"
7005 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7006 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7012 # Check whether --enable-alsa or --disable-alsa was given.
7013 if test "${enable_alsa+set}" = set; then
7014 enableval="$enable_alsa"
7015 if test x$enable_alsa = xyes
7017 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7018 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7019 echo "configure:7020: checking for alsa/asoundlib.h" >&5
7020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7021 echo $ac_n "(cached) $ac_c" 1>&6
7023 cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure"
7025 #include "confdefs.h"
7026 #include <alsa/asoundlib.h>
7028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7029 { (eval echo configure:7030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7031 if test -z "$ac_err"; then
7033 eval "ac_cv_header_$ac_safe=yes"
7036 echo "configure: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7039 eval "ac_cv_header_$ac_safe=no"
7043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7044 echo "$ac_t""yes" 1>&6
7045 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7046 echo "configure:7047: checking for main in -lasound" >&5
7047 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7051 ac_save_LIBS="$LIBS"
7052 LIBS="-lasound $LIBS"
7053 cat > conftest.$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7061 if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7063 eval "ac_cv_lib_$ac_lib_var=yes"
7065 echo "configure: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7068 eval "ac_cv_lib_$ac_lib_var=no"
7071 LIBS="$ac_save_LIBS"
7074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7075 echo "$ac_t""yes" 1>&6
7078 echo "$ac_t""no" 1>&6
7083 echo "$ac_t""no" 1>&6
7087 if test x$have_alsa = xtrue
7089 PLUGINS="${PLUGINS} alsa"
7090 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7096 # Check whether --enable-waveout or --disable-waveout was given.
7097 if test "${enable_waveout+set}" = set; then
7098 enableval="$enable_waveout"
7102 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7104 PLUGINS="${PLUGINS} waveout"
7105 LIB_WAVEOUT="-lwinmm"
7109 # Check whether --with- or --without- was given.
7110 if test "${with_+set}" = set; then
7116 # Check whether --enable-gtk or --disable-gtk was given.
7117 if test "${enable_gtk+set}" = set; then
7118 enableval="$enable_gtk"
7122 if test x$enable_gtk != xno
7125 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7126 if test "${with_gtk_config_path+set}" = set; then
7127 withval="$with_gtk_config_path"
7128 if test "x$withval" != "xno"
7130 GTK_PATH=$withval:$PATH
7134 # look for gtk-config
7135 # Extract the first word of "gtk12-config", so it can be a program name with args.
7136 set dummy gtk12-config; ac_word=$2
7137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7138 echo "configure:7139: checking for $ac_word" >&5
7139 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7140 echo $ac_n "(cached) $ac_c" 1>&6
7142 case "$GTK12_CONFIG" in
7144 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7147 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7151 ac_dummy="$GTK_PATH"
7152 for ac_dir in $ac_dummy; do
7153 test -z "$ac_dir" && ac_dir=.
7154 if test -f $ac_dir/$ac_word; then
7155 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7160 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7164 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7165 if test -n "$GTK12_CONFIG"; then
7166 echo "$ac_t""$GTK12_CONFIG" 1>&6
7168 echo "$ac_t""no" 1>&6
7171 GTK_CONFIG=${GTK12_CONFIG}
7172 if test x${GTK_CONFIG} = xno
7174 # Extract the first word of "gtk-config", so it can be a program name with args.
7175 set dummy gtk-config; ac_word=$2
7176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7177 echo "configure:7178: checking for $ac_word" >&5
7178 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7179 echo $ac_n "(cached) $ac_c" 1>&6
7181 case "$GTK_CONFIG" in
7183 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7186 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7190 ac_dummy="$GTK_PATH"
7191 for ac_dir in $ac_dummy; do
7192 test -z "$ac_dir" && ac_dir=.
7193 if test -f $ac_dir/$ac_word; then
7194 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7199 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7203 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7204 if test -n "$GTK_CONFIG"; then
7205 echo "$ac_t""$GTK_CONFIG" 1>&6
7207 echo "$ac_t""no" 1>&6
7211 if test x${GTK_CONFIG} != xno
7213 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7215 { 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; }
7217 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7218 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7219 # now look for the gtk.h header
7220 saved_CPPFLAGS=$CPPFLAGS
7221 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7222 ac_cv_gtk_headers=yes
7223 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7227 echo "configure:7228: checking for $ac_hdr" >&5
7228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7229 echo $ac_n "(cached) $ac_c" 1>&6
7231 cat > conftest.$ac_ext <<EOF
7232 #line 7233 "configure"
7233 #include "confdefs.h"
7236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7237 { (eval echo configure:7238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7239 if test -z "$ac_err"; then
7241 eval "ac_cv_header_$ac_safe=yes"
7244 echo "configure: failed program was:" >&5
7245 cat conftest.$ac_ext >&5
7247 eval "ac_cv_header_$ac_safe=no"
7251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7252 echo "$ac_t""yes" 1>&6
7253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7254 cat >> confdefs.h <<EOF
7255 #define $ac_tr_hdr 1
7259 echo "$ac_t""no" 1>&6
7260 ac_cv_gtk_headers=no
7261 echo "Cannot find gtk development headers."
7266 if test "x$ac_cv_gtk_headers" = xyes
7268 PLUGINS="${PLUGINS} gtk"
7269 ALIASES="${ALIASES} gvlc"
7271 CPPFLAGS=$saved_CPPFLAGS
7275 # Check whether --enable-gnome or --disable-gnome was given.
7276 if test "${enable_gnome+set}" = set; then
7277 enableval="$enable_gnome"
7278 if test x$enable_gnome = xyes; then
7279 # look for gnome-config
7280 # Extract the first word of "gnome-config", so it can be a program name with args.
7281 set dummy gnome-config; ac_word=$2
7282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7283 echo "configure:7284: checking for $ac_word" >&5
7284 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7285 echo $ac_n "(cached) $ac_c" 1>&6
7287 case "$GNOME_CONFIG" in
7289 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7292 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7297 for ac_dir in $ac_dummy; do
7298 test -z "$ac_dir" && ac_dir=.
7299 if test -f $ac_dir/$ac_word; then
7300 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7305 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7309 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7310 if test -n "$GNOME_CONFIG"; then
7311 echo "$ac_t""$GNOME_CONFIG" 1>&6
7313 echo "$ac_t""no" 1>&6
7316 if test -x ${GNOME_CONFIG}
7318 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7319 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7321 # now look for the gnome.h header
7322 saved_CPPFLAGS=$CPPFLAGS
7323 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7324 for ac_hdr in gnome.h
7326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7328 echo "configure:7329: checking for $ac_hdr" >&5
7329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7330 echo $ac_n "(cached) $ac_c" 1>&6
7332 cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7338 { (eval echo configure:7339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7340 if test -z "$ac_err"; then
7342 eval "ac_cv_header_$ac_safe=yes"
7345 echo "configure: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7348 eval "ac_cv_header_$ac_safe=no"
7352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7353 echo "$ac_t""yes" 1>&6
7354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7355 cat >> confdefs.h <<EOF
7356 #define $ac_tr_hdr 1
7359 PLUGINS="${PLUGINS} gnome"
7360 ALIASES="${ALIASES} gnome-vlc"
7363 echo "$ac_t""no" 1>&6
7364 { echo "configure: error: Can't find gnome headers. Please install the gnome
7365 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7371 CPPFLAGS=$saved_CPPFLAGS
7376 # Check whether --enable-qt or --disable-qt was given.
7377 if test "${enable_qt+set}" = set; then
7378 enableval="$enable_qt"
7379 if test x$enable_qt = xyes; then
7380 PLUGINS="${PLUGINS} qt"
7381 ALIASES="${ALIASES} qvlc"
7382 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7383 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7384 if test -x ${QTDIR}/bin/moc
7386 MOC=${QTDIR}/bin/moc
7394 # Check whether --enable-kde or --disable-kde was given.
7395 if test "${enable_kde+set}" = set; then
7396 enableval="$enable_kde"
7397 if test x$enable_kde = xyes; then
7398 PLUGINS="${PLUGINS} kde"
7399 ALIASES="${ALIASES} kvlc"
7400 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7401 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7402 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7403 if test -x ${QTDIR}/bin/moc
7405 MOC=${QTDIR}/bin/moc
7413 # Check whether --enable-macosx or --disable-macosx was given.
7414 if test "${enable_macosx+set}" = set; then
7415 enableval="$enable_macosx"
7416 if test x$enable_macosx = xyes
7418 BUILTINS="${BUILTINS} macosx"
7419 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7420 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7421 LIB_COMMON="${LIB_COMMON} -ObjC"
7424 for ac_hdr in Cocoa/Cocoa.h
7426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7428 echo "configure:7429: checking for $ac_hdr" >&5
7429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7432 cat > conftest.$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7438 { (eval echo configure:7439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7440 if test -z "$ac_err"; then
7442 eval "ac_cv_header_$ac_safe=yes"
7445 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7448 eval "ac_cv_header_$ac_safe=no"
7452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7453 echo "$ac_t""yes" 1>&6
7454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7455 cat >> confdefs.h <<EOF
7456 #define $ac_tr_hdr 1
7458 BUILTINS="${BUILTINS} macosx"
7459 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7460 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7461 LIB_COMMON="${LIB_COMMON} -ObjC"
7464 echo "$ac_t""no" 1>&6
7471 # Check whether --enable-qnx or --disable-qnx was given.
7472 if test "${enable_qnx+set}" = set; then
7473 enableval="$enable_qnx"
7477 if test x$enable_qnx != xno
7481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7483 echo "configure:7484: checking for $ac_hdr" >&5
7484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7487 cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7493 { (eval echo configure:7494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7495 if test -z "$ac_err"; then
7497 eval "ac_cv_header_$ac_safe=yes"
7500 echo "configure: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7503 eval "ac_cv_header_$ac_safe=no"
7507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7508 echo "$ac_t""yes" 1>&6
7509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7510 cat >> confdefs.h <<EOF
7511 #define $ac_tr_hdr 1
7514 PLUGINS="${PLUGINS} qnx"
7515 LIB_QNX="${LIB_QNX} -lasound -lph"
7518 echo "$ac_t""no" 1>&6
7524 # Check whether --enable-win32 or --disable-win32 was given.
7525 if test "${enable_win32+set}" = set; then
7526 enableval="$enable_win32"
7527 if test "x$enableval" != "xno"
7529 PLUGINS="${PLUGINS} win32"
7534 # Check whether --enable-ncurses or --disable-ncurses was given.
7535 if test "${enable_ncurses+set}" = set; then
7536 enableval="$enable_ncurses"
7537 if test x$enable_ncurses = xyes; then
7538 PLUGINS="${PLUGINS} ncurses"
7539 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7544 # Check whether --enable-lirc or --disable-lirc was given.
7545 if test "${enable_lirc+set}" = set; then
7546 enableval="$enable_lirc"
7550 if test x$enable_lirc = xyes
7552 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7553 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7554 echo "configure:7555: checking for lirc/lirc_client.h" >&5
7555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7558 cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7561 #include <lirc/lirc_client.h>
7563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7564 { (eval echo configure:7565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7566 if test -z "$ac_err"; then
7568 eval "ac_cv_header_$ac_safe=yes"
7571 echo "configure: failed program was:" >&5
7572 cat conftest.$ac_ext >&5
7574 eval "ac_cv_header_$ac_safe=no"
7578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7579 echo "$ac_t""yes" 1>&6
7580 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7581 echo "configure:7582: checking for lirc_init in -llirc_client" >&5
7582 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7586 ac_save_LIBS="$LIBS"
7587 LIBS="-llirc_client $LIBS"
7588 cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7591 /* Override any gcc2 internal prototype to avoid an error. */
7592 /* We use char because int might match the return type of a gcc2
7593 builtin and then its argument prototype would still apply. */
7600 if { (eval echo configure:7601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7602 eval "ac_cv_lib_$ac_lib_var=yes"
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7607 eval "ac_cv_lib_$ac_lib_var=no"
7610 LIBS="$ac_save_LIBS"
7613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7614 echo "$ac_t""yes" 1>&6
7617 echo "$ac_t""no" 1>&6
7622 echo "$ac_t""no" 1>&6
7626 if test x$have_lirc = xtrue
7628 PLUGINS="${PLUGINS} lirc"
7629 LIB_LIRC="${LIB_LIRC} -llirc_client"
7635 # Check whether --with- or --without- was given.
7636 if test "${with_+set}" = set; then
7642 # Check whether --with-words or --without-words was given.
7643 if test "${with_words+set}" = set; then
7644 withval="$with_words"
7650 ac_cv_c_bigendian=yes
7653 ac_cv_c_bigendian=no
7656 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
7657 echo "configure:7658: checking whether the byte order is big-endian" >&5
7658 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7661 ac_cv_c_bigendian=unknown
7662 cat >conftest.c <<EOF
7663 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
7664 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
7665 void _a(void) { char*s = (char*)am; s = (char *)ai; }
7666 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
7667 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
7668 void _e(void) { char*s = (char*)em; s = (char*)ei; }
7669 int main(void) { _a(); _e(); return 0; }
7672 if test -f conftest.c
7674 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
7675 && test -f conftest.o
7677 if test "`strings conftest.o | grep BIGenDianSyS`"
7679 ac_cv_c_bigendian=yes
7681 if test "`strings conftest.o | grep LiTTleEnDian`"
7683 ac_cv_c_bigendian=no
7690 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7691 if test x$ac_cv_c_bigendian = xunknown
7693 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
7697 if test $ac_cv_c_bigendian = yes
7699 cat >> confdefs.h <<\EOF
7700 #define WORDS_BIGENDIAN 1
7706 # Check whether --with-dll-path or --without-dll-path was given.
7707 if test "${with_dll_path+set}" = set; then
7708 withval="$with_dll_path"
7709 if test "x$withval" != "xno"
7717 # Check whether --enable-gprof or --disable-gprof was given.
7718 if test "${enable_gprof+set}" = set; then
7719 enableval="$enable_gprof"
7720 if test x$enableval = xyes; then GPROF=1; fi
7725 # Check whether --enable-cprof or --disable-cprof was given.
7726 if test "${enable_cprof+set}" = set; then
7727 enableval="$enable_cprof"
7728 if test x$enableval = xyes;
7730 LIB_COMMON="${LIB_COMMON} -lcprof"
7737 # Check whether --enable-pth or --disable-pth was given.
7738 if test "${enable_pth+set}" = set; then
7739 enableval="$enable_pth"
7740 if test x$enableval = xyes; then
7741 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
7742 echo "configure:7743: checking for pth_init in -lpth" >&5
7743 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
7744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 ac_save_LIBS="$LIBS"
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7763 eval "ac_cv_lib_$ac_lib_var=yes"
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7768 eval "ac_cv_lib_$ac_lib_var=no"
7771 LIBS="$ac_save_LIBS"
7774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7775 echo "$ac_t""yes" 1>&6
7776 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7777 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7778 cat >> confdefs.h <<EOF
7779 #define $ac_tr_lib 1
7785 echo "$ac_t""no" 1>&6
7788 cat > conftest.$ac_ext <<EOF
7789 #line 7790 "configure"
7790 #include "confdefs.h"
7793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7794 egrep "pth_init" >/dev/null 2>&1; then
7797 cat >> confdefs.h <<\EOF
7798 #define PTH_INIT_IN_PTH_H 1
7810 # Check whether --enable-st or --disable-st was given.
7811 if test "${enable_st+set}" = set; then
7812 enableval="$enable_st"
7813 if test x$enableval = xyes; then
7814 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
7815 echo "configure:7816: checking for st_init in -lst" >&5
7816 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
7817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7818 echo $ac_n "(cached) $ac_c" 1>&6
7820 ac_save_LIBS="$LIBS"
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* Override any gcc2 internal prototype to avoid an error. */
7826 /* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7834 if { (eval echo configure:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7836 eval "ac_cv_lib_$ac_lib_var=yes"
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7841 eval "ac_cv_lib_$ac_lib_var=no"
7844 LIBS="$ac_save_LIBS"
7847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7848 echo "$ac_t""yes" 1>&6
7849 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7851 cat >> confdefs.h <<EOF
7852 #define $ac_tr_lib 1
7858 echo "$ac_t""no" 1>&6
7861 cat > conftest.$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7867 egrep "st_init" >/dev/null 2>&1; then
7870 cat >> confdefs.h <<\EOF
7871 #define ST_INIT_IN_ST_H 1
7883 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
7885 # Check whether --enable-plugins or --disable-plugins was given.
7886 if test "${enable_plugins+set}" = set; then
7887 enableval="$enable_plugins"
7888 if test x$enable_plugins = xno
7890 BUILTINS="${BUILTINS} ${PLUGINS}"
7896 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
7898 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
7900 BUILTINS="${BUILTINS} ${PLUGINS}"
7904 cat >> confdefs.h <<EOF
7905 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN\n"
7908 cat >> confdefs.h <<EOF
7909 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
7913 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
7914 cat >> confdefs.h <<EOF
7915 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
7918 cat >> confdefs.h <<EOF
7919 #define MODULE_SYMBOL $VLC_SYMBOL
7923 DATA_PATH="${ac_tool_prefix}/share/videolan"
7925 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8022 cat > confcache <<\EOF
8023 # This file is a shell script that caches the results of configure
8024 # tests run on this system so they can be shared between configure
8025 # scripts and configure runs. It is not useful on other systems.
8026 # If it contains results you don't want to keep, you may remove or edit it.
8028 # By default, configure uses ./config.cache as the cache file,
8029 # creating it if it does not exist already. You can give configure
8030 # the --cache-file=FILE option to use a different cache file; that is
8031 # what configure does when it calls configure scripts in
8032 # subdirectories, so they share the cache.
8033 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8034 # config.status only pays attention to the cache file if you give it the
8035 # --recheck option to rerun configure.
8038 # The following way of writing the cache mishandles newlines in values,
8039 # but we know of no workaround that is simple, portable, and efficient.
8040 # So, don't put newlines in cache variables' values.
8041 # Ultrix sh set writes to stderr and can't be redirected directly,
8042 # and sets the high bit in the cache file unless we assign to the vars.
8044 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8046 # `set' does not quote correctly, so add quotes (double-quote substitution
8047 # turns \\\\ into \\, and sed turns \\ into \).
8049 -e "s/'/'\\\\''/g" \
8050 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8053 # `set' quotes correctly as required by POSIX, so do not add quotes.
8054 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8057 if cmp -s $cache_file confcache; then
8060 if test -w $cache_file; then
8061 echo "updating cache $cache_file"
8062 cat confcache > $cache_file
8064 echo "not updating unwritable cache $cache_file"
8069 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8071 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8072 # Let make expand exec_prefix.
8073 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8075 # Any assignment to VPATH causes Sun make to only execute
8076 # the first set of double-colon rules, so remove it if not needed.
8077 # If there is a colon in the path, we need to keep it.
8078 if test "x$srcdir" = x.; then
8079 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8082 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8084 DEFS=-DHAVE_CONFIG_H
8086 # Without the "./", some shells look in PATH for config.status.
8087 : ${CONFIG_STATUS=./config.status}
8089 echo creating $CONFIG_STATUS
8090 rm -f $CONFIG_STATUS
8091 cat > $CONFIG_STATUS <<EOF
8093 # Generated automatically by configure.
8094 # Run this file to recreate the current configuration.
8095 # This directory was configured as follows,
8096 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8098 # $0 $ac_configure_args
8100 # Compiler output produced by configure, useful for debugging
8101 # configure, is in ./config.log if it exists.
8103 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8106 case "\$ac_option" in
8107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8108 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8109 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8110 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8111 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8113 -help | --help | --hel | --he | --h)
8114 echo "\$ac_cs_usage"; exit 0 ;;
8115 *) echo "\$ac_cs_usage"; exit 1 ;;
8119 ac_given_srcdir=$srcdir
8120 ac_given_INSTALL="$INSTALL"
8122 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8124 cat >> $CONFIG_STATUS <<EOF
8126 # Protect against being on the right side of a sed subst in config.status.
8127 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8128 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8132 s%@CFLAGS@%$CFLAGS%g
8133 s%@CPPFLAGS@%$CPPFLAGS%g
8134 s%@CXXFLAGS@%$CXXFLAGS%g
8135 s%@FFLAGS@%$FFLAGS%g
8137 s%@LDFLAGS@%$LDFLAGS%g
8139 s%@exec_prefix@%$exec_prefix%g
8140 s%@prefix@%$prefix%g
8141 s%@program_transform_name@%$program_transform_name%g
8142 s%@bindir@%$bindir%g
8143 s%@sbindir@%$sbindir%g
8144 s%@libexecdir@%$libexecdir%g
8145 s%@datadir@%$datadir%g
8146 s%@sysconfdir@%$sysconfdir%g
8147 s%@sharedstatedir@%$sharedstatedir%g
8148 s%@localstatedir@%$localstatedir%g
8149 s%@libdir@%$libdir%g
8150 s%@includedir@%$includedir%g
8151 s%@oldincludedir@%$oldincludedir%g
8152 s%@infodir@%$infodir%g
8153 s%@mandir@%$mandir%g
8155 s%@host_alias@%$host_alias%g
8156 s%@host_cpu@%$host_cpu%g
8157 s%@host_vendor@%$host_vendor%g
8158 s%@host_os@%$host_os%g
8159 s%@target@%$target%g
8160 s%@target_alias@%$target_alias%g
8161 s%@target_cpu@%$target_cpu%g
8162 s%@target_vendor@%$target_vendor%g
8163 s%@target_os@%$target_os%g
8165 s%@build_alias@%$build_alias%g
8166 s%@build_cpu@%$build_cpu%g
8167 s%@build_vendor@%$build_vendor%g
8168 s%@build_os@%$build_os%g
8169 s%@SET_MAKE@%$SET_MAKE%g
8172 s%@RANLIB@%$RANLIB%g
8174 s%@ALLOCA@%$ALLOCA%g
8175 s%@GLIBC21@%$GLIBC21%g
8176 s%@LIBICONV@%$LIBICONV%g
8177 s%@USE_NLS@%$USE_NLS%g
8178 s%@MSGFMT@%$MSGFMT%g
8179 s%@GMSGFMT@%$GMSGFMT%g
8180 s%@XGETTEXT@%$XGETTEXT%g
8181 s%@INTLBISON@%$INTLBISON%g
8182 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8183 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8184 s%@CATALOGS@%$CATALOGS%g
8185 s%@CATOBJEXT@%$CATOBJEXT%g
8186 s%@GMOFILES@%$GMOFILES%g
8187 s%@INTLLIBS@%$INTLLIBS%g
8188 s%@INTLOBJS@%$INTLOBJS%g
8189 s%@POFILES@%$POFILES%g
8191 s%@DATADIRNAME@%$DATADIRNAME%g
8192 s%@INSTOBJEXT@%$INSTOBJEXT%g
8193 s%@GENCAT@%$GENCAT%g
8194 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8195 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8196 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8197 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8198 s%@INSTALL_DATA@%$INSTALL_DATA%g
8199 s%@WINDRES@%$WINDRES%g
8200 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8201 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8202 s%@SDL_CONFIG@%$SDL_CONFIG%g
8203 s%@ESD_CONFIG@%$ESD_CONFIG%g
8204 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8205 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8206 s%@GTK_CONFIG@%$GTK_CONFIG%g
8207 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8208 s%@DATA_PATH@%$DATA_PATH%g
8209 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8212 s%@PLUGINS@%$PLUGINS%g
8213 s%@BUILTINS@%$BUILTINS%g
8214 s%@ALIASES@%$ALIASES%g
8215 s%@INCLUDE@%$INCLUDE%g
8220 s%@OPTIMS@%$OPTIMS%g
8221 s%@TUNING@%$TUNING%g
8222 s%@RELEASE@%$RELEASE%g
8224 s%@DLL_PATH@%$DLL_PATH%g
8225 s%@PACKAGE@%$PACKAGE%g
8226 s%@VERSION@%$VERSION%g
8227 s%@PLDFLAGS@%$PLDFLAGS%g
8228 s%@LIB_COMMON@%$LIB_COMMON%g
8229 s%@LIB_VLC@%$LIB_VLC%g
8230 s%@LIB_A52@%$LIB_A52%g
8231 s%@LIB_AA@%$LIB_AA%g
8232 s%@LIB_ALSA@%$LIB_ALSA%g
8233 s%@LIB_ARTS@%$LIB_ARTS%g
8234 s%@LIB_BEOS@%$LIB_BEOS%g
8235 s%@LIB_CHROMA_I420_RGB@%$LIB_CHROMA_I420_RGB%g
8236 s%@LIB_DARWIN@%$LIB_DARWIN%g
8237 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8238 s%@LIB_DSP@%$LIB_DSP%g
8239 s%@LIB_DVD@%$LIB_DVD%g
8240 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8241 s%@LIB_ESD@%$LIB_ESD%g
8242 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8243 s%@LIB_GGI@%$LIB_GGI%g
8244 s%@LIB_GLIDE@%$LIB_GLIDE%g
8245 s%@LIB_GNOME@%$LIB_GNOME%g
8246 s%@LIB_GTK@%$LIB_GTK%g
8247 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8248 s%@LIB_IMDCT@%$LIB_IMDCT%g
8249 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8250 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8251 s%@LIB_IPV4@%$LIB_IPV4%g
8252 s%@LIB_IPV6@%$LIB_IPV6%g
8253 s%@LIB_KDE@%$LIB_KDE%g
8254 s%@LIB_LIRC@%$LIB_LIRC%g
8255 s%@LIB_MACOSX@%$LIB_MACOSX%g
8256 s%@LIB_MAD@%$LIB_MAD%g
8257 s%@LIB_MEMCPYALTIVEC@%$LIB_MEMCPYALTIVEC%g
8258 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8259 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8260 s%@LIB_NCURSES@%$LIB_NCURSES%g
8261 s%@LIB_QNX@%$LIB_QNX%g
8262 s%@LIB_QT@%$LIB_QT%g
8263 s%@LIB_RC@%$LIB_RC%g
8264 s%@LIB_SDL@%$LIB_SDL%g
8265 s%@LIB_VCD@%$LIB_VCD%g
8266 s%@LIB_VORBIS@%$LIB_VORBIS%g
8267 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8268 s%@LIB_WIN32@%$LIB_WIN32%g
8269 s%@LIB_X11@%$LIB_X11%g
8270 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8271 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8272 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8273 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8274 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8275 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8276 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8277 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8278 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8279 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8280 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8281 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8282 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8283 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8284 s%@CFLAGS_MEMCPYALTIVEC@%$CFLAGS_MEMCPYALTIVEC%g
8285 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8286 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8287 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8288 s%@CFLAGS_QT@%$CFLAGS_QT%g
8289 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8290 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8291 s%@CFLAGS_X11@%$CFLAGS_X11%g
8292 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8293 s%@NEED_GETOPT@%$NEED_GETOPT%g
8298 cat >> $CONFIG_STATUS <<\EOF
8300 # Split the substitutions into bite-sized pieces for seds with
8301 # small command number limits, like on Digital OSF/1 and HP-UX.
8302 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8303 ac_file=1 # Number of current file.
8304 ac_beg=1 # First line for current file.
8305 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8308 while $ac_more_lines; do
8309 if test $ac_beg -gt 1; then
8310 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8312 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8314 if test ! -s conftest.s$ac_file; then
8316 rm -f conftest.s$ac_file
8318 if test -z "$ac_sed_cmds"; then
8319 ac_sed_cmds="sed -f conftest.s$ac_file"
8321 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8323 ac_file=`expr $ac_file + 1`
8325 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8328 if test -z "$ac_sed_cmds"; then
8333 cat >> $CONFIG_STATUS <<EOF
8335 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8337 cat >> $CONFIG_STATUS <<\EOF
8338 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8339 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8341 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8342 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8343 *) ac_file_in="${ac_file}.in" ;;
8346 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8348 # Remove last slash and all that follows it. Not all systems have dirname.
8349 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8350 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8351 # The file is in a subdirectory.
8352 test ! -d "$ac_dir" && mkdir "$ac_dir"
8353 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8354 # A "../" for each directory in $ac_dir_suffix.
8355 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8357 ac_dir_suffix= ac_dots=
8360 case "$ac_given_srcdir" in
8362 if test -z "$ac_dots"; then top_srcdir=.
8363 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8364 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8366 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8367 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8370 case "$ac_given_INSTALL" in
8371 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8372 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8375 echo creating "$ac_file"
8377 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8379 *Makefile*) ac_comsub="1i\\
8380 # $configure_input" ;;
8384 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8386 s%@configure_input@%$configure_input%g
8387 s%@srcdir@%$srcdir%g
8388 s%@top_srcdir@%$top_srcdir%g
8389 s%@INSTALL@%$INSTALL%g
8390 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8394 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8395 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8397 # ac_d sets the value in "#define NAME VALUE" lines.
8398 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8399 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8402 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8403 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8404 ac_uB='\([ ]\)%\1#\2define\3'
8407 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8408 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8409 ac_eB='$%\1#\2define\3'
8413 if test "${CONFIG_HEADERS+set}" != set; then
8415 cat >> $CONFIG_STATUS <<EOF
8416 CONFIG_HEADERS="include/defs.h"
8418 cat >> $CONFIG_STATUS <<\EOF
8420 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8421 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8423 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8424 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8425 *) ac_file_in="${ac_file}.in" ;;
8428 echo creating $ac_file
8430 rm -f conftest.frag conftest.in conftest.out
8431 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8432 cat $ac_file_inputs > conftest.in
8436 # Transform confdefs.h into a sed script conftest.vals that substitutes
8437 # the proper values into config.h.in to produce config.h. And first:
8438 # Protect against being on the right side of a sed subst in config.status.
8439 # Protect against being in an unquoted here document in config.status.
8441 cat > conftest.hdr <<\EOF
8444 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8448 sed -n -f conftest.hdr confdefs.h > conftest.vals
8451 # This sed command replaces #undef with comments. This is necessary, for
8452 # example, in the case of _POSIX_SOURCE, which is predefined and required
8453 # on some systems where configure will not decide to define it.
8454 cat >> conftest.vals <<\EOF
8455 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8458 # Break up conftest.vals because some shells have a limit on
8459 # the size of here documents, and old seds have small limits too.
8464 ac_lines=`grep -c . conftest.vals`
8465 # grep -c gives empty output for an empty file on some AIX systems.
8466 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8467 # Write a limited-size here document to conftest.frag.
8468 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8469 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8471 sed -f conftest.frag conftest.in > conftest.out
8473 mv conftest.out conftest.in
8475 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8477 mv conftest.tail conftest.vals
8481 cat >> $CONFIG_STATUS <<\EOF
8482 rm -f conftest.frag conftest.h
8483 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8484 cat conftest.in >> conftest.h
8486 if cmp -s $ac_file conftest.h 2>/dev/null; then
8487 echo "$ac_file is unchanged"
8490 # Remove last slash and all that follows it. Not all systems have dirname.
8491 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8492 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8493 # The file is in a subdirectory.
8494 test ! -d "$ac_dir" && mkdir "$ac_dir"
8497 mv conftest.h $ac_file
8502 cat >> $CONFIG_STATUS <<EOF
8506 cat >> $CONFIG_STATUS <<\EOF
8507 for ac_file in $CONFIG_FILES; do
8508 # Support "outfile[:infile[:infile...]]"
8510 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8512 # PO directories have a Makefile.in generated from Makefile.in.in.
8513 case "$ac_file" in */Makefile.in)
8514 # Adjust a relative srcdir.
8515 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8516 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8517 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8518 # In autoconf-2.13 it is called $ac_given_srcdir.
8519 # In autoconf-2.50 it is called $srcdir.
8520 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8521 case "$ac_given_srcdir" in
8522 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8523 /*) top_srcdir="$ac_given_srcdir" ;;
8524 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8526 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8527 rm -f "$ac_dir/POTFILES"
8528 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8529 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8530 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8531 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8539 chmod +x $CONFIG_STATUS
8540 rm -fr confdefs* $ac_clean_files
8541 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8546 --------------------
8547 vlc version : ${VERSION}
8549 architecture : ${ARCH}
8550 optimizations : ${OPTIMS}
8552 debug mode : ${DEBUG}
8553 release : ${RELEASE}
8554 cprof/gprof support : ${CPROF}/${GPROF}
8555 need builtin getopt : ${NEED_GETOPT}
8556 built-in modules :${BUILTINS}
8557 plug-in modules :${PLUGINS}
8558 vlc aliases :${ALIASES}
8560 You may now tune Makefile.opts at your convenience, for instance to choose
8561 which modules get compiled as plugins.
8563 To build vlc and its plugins, type \`$VLC_MAKE'.