3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --with-dvdcss[=name] use libdvdcss, either 'yes', 'no', 'local-static',
39 'local-shared', or a path to another libdvdcss such
40 as '/usr/local' (default 'local-static')"
42 --with-dvdread[=name] use libdvdread, same options as dvdcss (default 'no')"
44 --enable-vcd VCD support for Linux (default enabled)"
48 --enable-mad libmad module (default disabled)"
50 --with-mad=PATH path to libmad"
52 --disable-a52 AC3 support with liba52 (default enabled)"
56 --disable-x11 X11 support (default enabled)"
58 --disable-xvideo XVideo support (default enabled)"
60 --disable-sdl SDL support (default enabled)"
62 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
64 --enable-directx Win32 DirectX support (default enabled on Win32)"
66 --with-directx=PATH Win32 DirectX headers and libraries"
68 --enable-fb Linux framebuffer support (default enabled on Linux)"
70 --enable-mga Linux kernel Matrox support (default disabled)"
72 --enable-ggi GGI support (default disabled)"
74 --with-ggi=PATH path to libggi"
76 --enable-glide Glide (3dfx) support (default disabled)"
78 --with-glide=PATH path to libglide"
82 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
84 --enable-esd Esound library support (default disabled)"
86 --enable-arts aRts sound server (default disabled)"
88 --enable-alsa ALSA sound support for Linux (default disabled)"
90 --enable-waveout Win32 waveOut module (default enabled on Win32)"
94 --disable-gtk Gtk+ support (default enabled)"
96 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
98 --enable-gnome Gnome interface support (default disabled)"
100 --enable-qt Qt interface support (default disabled)"
102 --enable-kde KDE interface support (default disabled)"
104 --enable-macosx MacOS X support (default enabled on MacOS X)"
106 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
108 --enable-win32 Win32 interface support (default disabled)"
110 --enable-ncurses ncurses interface support (default disabled)"
112 --enable-lirc lirc support (default disabled)"
116 --with-words=endianness set endianness (big or little)"
118 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
120 --enable-gprof gprof profiling (default disabled)"
122 --enable-cprof cprof profiling (default disabled)"
124 --enable-pth GNU Pth support (default disabled)"
126 --enable-st State Threads (default disabled)"
128 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
130 # Initialize some variables set by options.
131 # The variables have the same names as the options, with
132 # dashes changed to underlines.
134 cache_file=./config.cache
143 program_transform_name=s,x,x,
151 bindir='${exec_prefix}/bin'
152 sbindir='${exec_prefix}/sbin'
153 libexecdir='${exec_prefix}/libexec'
154 datadir='${prefix}/share'
155 sysconfdir='${prefix}/etc'
156 sharedstatedir='${prefix}/com'
157 localstatedir='${prefix}/var'
158 libdir='${exec_prefix}/lib'
159 includedir='${prefix}/include'
160 oldincludedir='/usr/include'
161 infodir='${prefix}/info'
162 mandir='${prefix}/man'
164 # Initialize some other variables.
167 SHELL=${CONFIG_SHELL-/bin/sh}
168 # Maximum number of lines to put in a shell here document.
175 # If the previous option needs an argument, assign it.
176 if test -n "$ac_prev"; then
177 eval "$ac_prev=\$ac_option"
183 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
187 # Accept the important Cygnus configure options, so we can diagnose typos.
191 -bindir | --bindir | --bindi | --bind | --bin | --bi)
193 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
194 bindir="$ac_optarg" ;;
196 -build | --build | --buil | --bui | --bu)
198 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
199 build="$ac_optarg" ;;
201 -cache-file | --cache-file | --cache-fil | --cache-fi \
202 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
203 ac_prev=cache_file ;;
204 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
205 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
206 cache_file="$ac_optarg" ;;
208 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
210 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
212 datadir="$ac_optarg" ;;
214 -disable-* | --disable-*)
215 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
216 # Reject names that are not valid shell variable names.
217 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
218 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
220 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
221 eval "enable_${ac_feature}=no" ;;
223 -enable-* | --enable-*)
224 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
225 # Reject names that are not valid shell variable names.
226 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
227 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
229 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
234 eval "enable_${ac_feature}='$ac_optarg'" ;;
236 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
237 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
238 | --exec | --exe | --ex)
239 ac_prev=exec_prefix ;;
240 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
241 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
242 | --exec=* | --exe=* | --ex=*)
243 exec_prefix="$ac_optarg" ;;
245 -gas | --gas | --ga | --g)
246 # Obsolete; use --with-gas.
249 -help | --help | --hel | --he)
250 # Omit some internal or obsolete options to make the list less imposing.
251 # This message is too long to be a string in the A/UX 3.1 sh.
253 Usage: configure [options] [host]
254 Options: [defaults in brackets after descriptions]
256 --cache-file=FILE cache test results in FILE
257 --help print this message
258 --no-create do not create output files
259 --quiet, --silent do not print \`checking...' messages
260 --version print the version of autoconf that created configure
261 Directory and file names:
262 --prefix=PREFIX install architecture-independent files in PREFIX
264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
266 --bindir=DIR user executables in DIR [EPREFIX/bin]
267 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
268 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
269 --datadir=DIR read-only architecture-independent data in DIR
271 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
272 --sharedstatedir=DIR modifiable architecture-independent data in DIR
274 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
275 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
276 --includedir=DIR C header files in DIR [PREFIX/include]
277 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
278 --infodir=DIR info documentation in DIR [PREFIX/info]
279 --mandir=DIR man documentation in DIR [PREFIX/man]
280 --srcdir=DIR find the sources in DIR [configure dir or ..]
281 --program-prefix=PREFIX prepend PREFIX to installed program names
282 --program-suffix=SUFFIX append SUFFIX to installed program names
283 --program-transform-name=PROGRAM
284 run sed PROGRAM on installed program names
288 --build=BUILD configure for building on BUILD [BUILD=HOST]
289 --host=HOST configure for HOST [guessed]
290 --target=TARGET configure for TARGET [TARGET=HOST]
291 Features and packages:
292 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
293 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
294 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
295 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
296 --x-includes=DIR X include files are in DIR
297 --x-libraries=DIR X library files are in DIR
299 if test -n "$ac_help"; then
300 echo "--enable and --with options recognized:$ac_help"
304 -host | --host | --hos | --ho)
306 -host=* | --host=* | --hos=* | --ho=*)
309 -includedir | --includedir | --includedi | --included | --include \
310 | --includ | --inclu | --incl | --inc)
311 ac_prev=includedir ;;
312 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
313 | --includ=* | --inclu=* | --incl=* | --inc=*)
314 includedir="$ac_optarg" ;;
316 -infodir | --infodir | --infodi | --infod | --info | --inf)
318 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
319 infodir="$ac_optarg" ;;
321 -libdir | --libdir | --libdi | --libd)
323 -libdir=* | --libdir=* | --libdi=* | --libd=*)
324 libdir="$ac_optarg" ;;
326 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
327 | --libexe | --libex | --libe)
328 ac_prev=libexecdir ;;
329 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
330 | --libexe=* | --libex=* | --libe=*)
331 libexecdir="$ac_optarg" ;;
333 -localstatedir | --localstatedir | --localstatedi | --localstated \
334 | --localstate | --localstat | --localsta | --localst \
335 | --locals | --local | --loca | --loc | --lo)
336 ac_prev=localstatedir ;;
337 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
338 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
339 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
340 localstatedir="$ac_optarg" ;;
342 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
344 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
345 mandir="$ac_optarg" ;;
348 # Obsolete; use --without-fp.
351 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
355 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
356 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
359 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
360 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
361 | --oldin | --oldi | --old | --ol | --o)
362 ac_prev=oldincludedir ;;
363 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
364 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
365 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
366 oldincludedir="$ac_optarg" ;;
368 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
370 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
371 prefix="$ac_optarg" ;;
373 -program-prefix | --program-prefix | --program-prefi | --program-pref \
374 | --program-pre | --program-pr | --program-p)
375 ac_prev=program_prefix ;;
376 -program-prefix=* | --program-prefix=* | --program-prefi=* \
377 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
378 program_prefix="$ac_optarg" ;;
380 -program-suffix | --program-suffix | --program-suffi | --program-suff \
381 | --program-suf | --program-su | --program-s)
382 ac_prev=program_suffix ;;
383 -program-suffix=* | --program-suffix=* | --program-suffi=* \
384 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
385 program_suffix="$ac_optarg" ;;
387 -program-transform-name | --program-transform-name \
388 | --program-transform-nam | --program-transform-na \
389 | --program-transform-n | --program-transform- \
390 | --program-transform | --program-transfor \
391 | --program-transfo | --program-transf \
392 | --program-trans | --program-tran \
393 | --progr-tra | --program-tr | --program-t)
394 ac_prev=program_transform_name ;;
395 -program-transform-name=* | --program-transform-name=* \
396 | --program-transform-nam=* | --program-transform-na=* \
397 | --program-transform-n=* | --program-transform-=* \
398 | --program-transform=* | --program-transfor=* \
399 | --program-transfo=* | --program-transf=* \
400 | --program-trans=* | --program-tran=* \
401 | --progr-tra=* | --program-tr=* | --program-t=*)
402 program_transform_name="$ac_optarg" ;;
404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
405 | -silent | --silent | --silen | --sile | --sil)
408 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
410 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
412 sbindir="$ac_optarg" ;;
414 -sharedstatedir | --sharedstatedir | --sharedstatedi \
415 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
416 | --sharedst | --shareds | --shared | --share | --shar \
418 ac_prev=sharedstatedir ;;
419 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
420 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
421 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
423 sharedstatedir="$ac_optarg" ;;
425 -site | --site | --sit)
427 -site=* | --site=* | --sit=*)
430 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
432 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
433 srcdir="$ac_optarg" ;;
435 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
436 | --syscon | --sysco | --sysc | --sys | --sy)
437 ac_prev=sysconfdir ;;
438 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
439 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
440 sysconfdir="$ac_optarg" ;;
442 -target | --target | --targe | --targ | --tar | --ta | --t)
444 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
445 target="$ac_optarg" ;;
447 -v | -verbose | --verbose | --verbos | --verbo | --verb)
450 -version | --version | --versio | --versi | --vers)
451 echo "configure generated by autoconf version 2.13"
455 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
456 # Reject names that are not valid shell variable names.
457 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
458 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
460 ac_package=`echo $ac_package| sed 's/-/_/g'`
465 eval "with_${ac_package}='$ac_optarg'" ;;
467 -without-* | --without-*)
468 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
469 # Reject names that are not valid shell variable names.
470 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
473 ac_package=`echo $ac_package| sed 's/-/_/g'`
474 eval "with_${ac_package}=no" ;;
477 # Obsolete; use --with-x.
480 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
481 | --x-incl | --x-inc | --x-in | --x-i)
482 ac_prev=x_includes ;;
483 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
484 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
485 x_includes="$ac_optarg" ;;
487 -x-libraries | --x-libraries | --x-librarie | --x-librari \
488 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
489 ac_prev=x_libraries ;;
490 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
491 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
492 x_libraries="$ac_optarg" ;;
494 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
498 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
499 echo "configure: warning: $ac_option: invalid host type" 1>&2
501 if test "x$nonopt" != xNONE; then
502 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
510 if test -n "$ac_prev"; then
511 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
514 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
516 # File descriptor usage:
519 # 2 errors and warnings
520 # 3 some systems may open it to /dev/tty
521 # 4 used on the Kubota Titan
522 # 6 checking for... messages and results
523 # 5 compiler messages saved in config.log
524 if test "$silent" = yes; then
532 This file contains any messages produced by compilers while
533 running configure, to aid debugging if configure makes a mistake.
536 # Strip out --no-create and --no-recursion so they do not pile up.
537 # Also quote any args containing shell metacharacters.
542 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
543 | --no-cr | --no-c) ;;
544 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
545 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
546 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
547 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
548 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
553 # Only set these to C if already set. These must not be set unconditionally
554 # because not all systems understand e.g. LANG=C (notably SCO).
555 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
556 # Non-C LC_CTYPE values break the ctype check.
557 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
558 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
559 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
560 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
562 # confdefs.h avoids OS command line length limits that DEFS can exceed.
563 rm -rf conftest* confdefs.h
564 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
567 # A filename unique to this package, relative to the directory that
568 # configure is in, which we can look for to find out if srcdir is correct.
569 ac_unique_file=include/main.h
571 # Find the source files, if location was not specified.
572 if test -z "$srcdir"; then
573 ac_srcdir_defaulted=yes
574 # Try the directory containing this script, then its parent.
576 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
577 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
579 if test ! -r $srcdir/$ac_unique_file; then
583 ac_srcdir_defaulted=no
585 if test ! -r $srcdir/$ac_unique_file; then
586 if test "$ac_srcdir_defaulted" = yes; then
587 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
589 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
592 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
594 # Prefer explicitly selected file to automatically selected ones.
595 if test -z "$CONFIG_SITE"; then
596 if test "x$prefix" != xNONE; then
597 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
599 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
602 for ac_site_file in $CONFIG_SITE; do
603 if test -r "$ac_site_file"; then
604 echo "loading site script $ac_site_file"
609 if test -r "$cache_file"; then
610 echo "loading cache $cache_file"
613 echo "creating cache $cache_file"
618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
619 ac_cpp='$CPP $CPPFLAGS'
620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
622 cross_compiling=$ac_cv_prog_cc_cross
626 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
627 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
628 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
635 ac_n= ac_c='\c' ac_t=
642 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
643 if test -f $ac_dir/install-sh; then
645 ac_install_sh="$ac_aux_dir/install-sh -c"
647 elif test -f $ac_dir/install.sh; then
649 ac_install_sh="$ac_aux_dir/install.sh -c"
653 if test -z "$ac_aux_dir"; then
654 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
656 ac_config_guess=$ac_aux_dir/config.guess
657 ac_config_sub=$ac_aux_dir/config.sub
658 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
661 # Do some error checking and defaulting for the host and target type.
663 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
666 # 1. You are not allowed to specify --host, --target, and nonopt at the
668 # 2. Host defaults to nonopt.
669 # 3. If nonopt is not specified, then host defaults to the current host,
670 # as determined by config.guess.
671 # 4. Target and build default to nonopt.
672 # 5. If nonopt is not specified, then target and build default to host.
674 # The aliases save the names the user supplied, while $host etc.
675 # will get canonicalized.
676 case $host---$target---$nonopt in
677 NONE---*---* | *---NONE---* | *---*---NONE) ;;
678 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 # Make sure we can run config.sub.
683 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
684 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
687 echo $ac_n "checking host system type""... $ac_c" 1>&6
688 echo "configure:689: checking host system type" >&5
691 case "$host_alias" in
695 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
696 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
698 *) host_alias=$nonopt ;;
702 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
703 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo "$ac_t""$host" 1>&6
708 echo $ac_n "checking target system type""... $ac_c" 1>&6
709 echo "configure:710: checking target system type" >&5
712 case "$target_alias" in
715 NONE) target_alias=$host_alias ;;
716 *) target_alias=$nonopt ;;
720 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
721 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$target" 1>&6
726 echo $ac_n "checking build system type""... $ac_c" 1>&6
727 echo "configure:728: checking build system type" >&5
730 case "$build_alias" in
733 NONE) build_alias=$host_alias ;;
734 *) build_alias=$nonopt ;;
738 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
739 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
740 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
741 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
742 echo "$ac_t""$build" 1>&6
744 test "$host_alias" != "$target_alias" &&
745 test "$program_prefix$program_suffix$program_transform_name" = \
747 program_prefix=${target_alias}-
751 if test -r src/interface/main.c; then
753 VLC_VERSION="0.2.92-dev"
758 if test -r extras/libdvdcss/libdvdcss.c; then
760 LIBDVDCSS_VERSION="1.0.1-dev"
762 if test -r extras/libdvdcss/csskeys.h; then
763 cat >> confdefs.h <<\EOF
764 #define HAVE_CSSKEYS 1
770 save_CFLAGS="${CFLAGS}"
771 save_LDFLAGS="${LDFLAGS}"
773 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${MAKE-make} sets \${MAKE}" >&5
775 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
776 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 cat > conftestmake <<\EOF
781 @echo 'ac_maketemp="${MAKE}"'
783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
784 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
785 if test -n "$ac_maketemp"; then
786 eval ac_cv_prog_make_${ac_make}_set=yes
788 eval ac_cv_prog_make_${ac_make}_set=no
792 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
793 echo "$ac_t""yes" 1>&6
796 echo "$ac_t""no" 1>&6
797 SET_MAKE="MAKE=${MAKE-make}"
800 # Extract the first word of "gcc", so it can be a program name with args.
801 set dummy gcc; ac_word=$2
802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
803 echo "configure:804: checking for $ac_word" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 if test -n "$CC"; then
808 ac_cv_prog_CC="$CC" # Let the user override the test.
810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
812 for ac_dir in $ac_dummy; do
813 test -z "$ac_dir" && ac_dir=.
814 if test -f $ac_dir/$ac_word; then
823 if test -n "$CC"; then
824 echo "$ac_t""$CC" 1>&6
826 echo "$ac_t""no" 1>&6
829 if test -z "$CC"; then
830 # Extract the first word of "cc", so it can be a program name with args.
831 set dummy cc; ac_word=$2
832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
833 echo "configure:834: checking for $ac_word" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 if test -n "$CC"; then
838 ac_cv_prog_CC="$CC" # Let the user override the test.
840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
843 for ac_dir in $ac_dummy; do
844 test -z "$ac_dir" && ac_dir=.
845 if test -f $ac_dir/$ac_word; then
846 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
855 if test $ac_prog_rejected = yes; then
856 # We found a bogon in the path, so make sure we never use it.
857 set dummy $ac_cv_prog_CC
859 if test $# -gt 0; then
860 # We chose a different compiler from the bogus one.
861 # However, it has the same basename, so the bogon will be chosen
862 # first if we set CC to just the basename; use the full file name.
864 set dummy "$ac_dir/$ac_word" "$@"
872 if test -n "$CC"; then
873 echo "$ac_t""$CC" 1>&6
875 echo "$ac_t""no" 1>&6
878 if test -z "$CC"; then
881 # Extract the first word of "cl", so it can be a program name with args.
882 set dummy cl; ac_word=$2
883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
884 echo "configure:885: checking for $ac_word" >&5
885 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
888 if test -n "$CC"; then
889 ac_cv_prog_CC="$CC" # Let the user override the test.
891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
893 for ac_dir in $ac_dummy; do
894 test -z "$ac_dir" && ac_dir=.
895 if test -f $ac_dir/$ac_word; then
904 if test -n "$CC"; then
905 echo "$ac_t""$CC" 1>&6
907 echo "$ac_t""no" 1>&6
912 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
915 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
916 echo "configure:917: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
920 ac_cpp='$CPP $CPPFLAGS'
921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
923 cross_compiling=$ac_cv_prog_cc_cross
925 cat > conftest.$ac_ext << EOF
927 #line 928 "configure"
928 #include "confdefs.h"
932 if { (eval echo configure:933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
933 ac_cv_prog_cc_works=yes
934 # If we can't run a trivial program, we are probably using a cross compiler.
935 if (./conftest; exit) 2>/dev/null; then
936 ac_cv_prog_cc_cross=no
938 ac_cv_prog_cc_cross=yes
941 echo "configure: failed program was:" >&5
942 cat conftest.$ac_ext >&5
943 ac_cv_prog_cc_works=no
947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
948 ac_cpp='$CPP $CPPFLAGS'
949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
951 cross_compiling=$ac_cv_prog_cc_cross
953 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
954 if test $ac_cv_prog_cc_works = no; then
955 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
957 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
958 echo "configure:959: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
959 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
960 cross_compiling=$ac_cv_prog_cc_cross
962 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
963 echo "configure:964: checking whether we are using GNU C" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 cat > conftest.c <<EOF
972 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
979 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
981 if test $ac_cv_prog_gcc = yes; then
987 ac_test_CFLAGS="${CFLAGS+set}"
988 ac_save_CFLAGS="$CFLAGS"
990 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${CC-cc} accepts -g" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 echo 'void f(){}' > conftest.c
996 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1005 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1006 if test "$ac_test_CFLAGS" = set; then
1007 CFLAGS="$ac_save_CFLAGS"
1008 elif test $ac_cv_prog_cc_g = yes; then
1009 if test "$GCC" = yes; then
1015 if test "$GCC" = yes; then
1022 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1023 echo "configure:1024: checking how to run the C preprocessor" >&5
1024 # On Suns, sometimes $CPP names a directory.
1025 if test -n "$CPP" && test -d "$CPP"; then
1028 if test -z "$CPP"; then
1029 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 # This must be in double quotes, not single quotes, because CPP may get
1033 # substituted into the Makefile and "${CC-cc}" will confuse make.
1035 # On the NeXT, cc -E runs the code through the compiler's parser,
1036 # not just through cpp.
1037 cat > conftest.$ac_ext <<EOF
1038 #line 1039 "configure"
1039 #include "confdefs.h"
1043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1044 { (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1046 if test -z "$ac_err"; then
1050 echo "configure: failed program was:" >&5
1051 cat conftest.$ac_ext >&5
1053 CPP="${CC-cc} -E -traditional-cpp"
1054 cat > conftest.$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1061 { (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1063 if test -z "$ac_err"; then
1067 echo "configure: failed program was:" >&5
1068 cat conftest.$ac_ext >&5
1070 CPP="${CC-cc} -nologo -E"
1071 cat > conftest.$ac_ext <<EOF
1072 #line 1073 "configure"
1073 #include "confdefs.h"
1077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1078 { (eval echo configure:1079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1080 if test -z "$ac_err"; then
1084 echo "configure: failed program was:" >&5
1085 cat conftest.$ac_ext >&5
1094 ac_cv_prog_CPP="$CPP"
1096 CPP="$ac_cv_prog_CPP"
1098 ac_cv_prog_CPP="$CPP"
1100 echo "$ac_t""$CPP" 1>&6
1103 if test $host != $build; then
1104 ac_tool_prefix=${host_alias}-
1109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$RANLIB"; then
1117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1131 RANLIB="$ac_cv_prog_RANLIB"
1132 if test -n "$RANLIB"; then
1133 echo "$ac_t""$RANLIB" 1>&6
1135 echo "$ac_t""no" 1>&6
1139 if test -z "$ac_cv_prog_RANLIB"; then
1140 if test -n "$ac_tool_prefix"; then
1141 # Extract the first word of "ranlib", so it can be a program name with args.
1142 set dummy ranlib; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$RANLIB"; then
1149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_RANLIB="ranlib"
1161 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1164 RANLIB="$ac_cv_prog_RANLIB"
1165 if test -n "$RANLIB"; then
1166 echo "$ac_t""$RANLIB" 1>&6
1168 echo "$ac_t""no" 1>&6
1177 ALL_LINGUAS="de fr no ru"
1179 cat >> confdefs.h <<EOF
1180 #define PACKAGE "vlc"
1183 cat >> confdefs.h <<EOF
1184 #define VERSION "$VLC_VERSION"
1187 # Extract the first word of "ranlib", so it can be a program name with args.
1188 set dummy ranlib; ac_word=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$RANLIB"; then
1195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1199 for ac_dir in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir=.
1201 if test -f $ac_dir/$ac_word; then
1202 ac_cv_prog_RANLIB="ranlib"
1207 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1210 RANLIB="$ac_cv_prog_RANLIB"
1211 if test -n "$RANLIB"; then
1212 echo "$ac_t""$RANLIB" 1>&6
1214 echo "$ac_t""no" 1>&6
1218 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1219 echo "configure:1220: checking for strerror in -lcposix" >&5
1220 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 ac_save_LIBS="$LIBS"
1225 LIBS="-lcposix $LIBS"
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1229 /* Override any gcc2 internal prototype to avoid an error. */
1230 /* We use char because int might match the return type of a gcc2
1231 builtin and then its argument prototype would still apply. */
1238 if { (eval echo configure:1239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1240 eval "ac_cv_lib_$ac_lib_var=yes"
1242 echo "configure: failed program was:" >&5
1243 cat conftest.$ac_ext >&5
1245 eval "ac_cv_lib_$ac_lib_var=no"
1248 LIBS="$ac_save_LIBS"
1251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1252 echo "$ac_t""yes" 1>&6
1253 LIBS="$LIBS -lcposix"
1255 echo "$ac_t""no" 1>&6
1260 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1261 echo "configure:1262: checking for ANSI C header files" >&5
1262 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1274 { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1276 if test -z "$ac_err"; then
1278 ac_cv_header_stdc=yes
1281 echo "configure: failed program was:" >&5
1282 cat conftest.$ac_ext >&5
1284 ac_cv_header_stdc=no
1288 if test $ac_cv_header_stdc = yes; then
1289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1296 egrep "memchr" >/dev/null 2>&1; then
1300 ac_cv_header_stdc=no
1306 if test $ac_cv_header_stdc = yes; then
1307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1314 egrep "free" >/dev/null 2>&1; then
1318 ac_cv_header_stdc=no
1324 if test $ac_cv_header_stdc = yes; then
1325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1326 if test "$cross_compiling" = yes; then
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1333 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1334 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1336 int main () { int i; for (i = 0; i < 256; i++)
1337 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1341 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1348 ac_cv_header_stdc=no
1356 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1357 if test $ac_cv_header_stdc = yes; then
1358 cat >> confdefs.h <<\EOF
1359 #define STDC_HEADERS 1
1364 echo $ac_n "checking for working const""... $ac_c" 1>&6
1365 echo "configure:1366: checking for working const" >&5
1366 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1375 /* Ultrix mips cc rejects this. */
1376 typedef int charset[2]; const charset x;
1377 /* SunOS 4.1.1 cc rejects this. */
1378 char const *const *ccp;
1380 /* NEC SVR4.0.2 mips cc rejects this. */
1381 struct point {int x, y;};
1382 static struct point const zero = {0,0};
1383 /* AIX XL C 1.02.0.0 rejects this.
1384 It does not let you subtract one const X* pointer from another in an arm
1385 of an if-expression whose if-part is not a constant expression */
1386 const char *g = "string";
1387 ccp = &g + (g ? g-g : 0);
1388 /* HPUX 7.0 cc rejects these. */
1391 ccp = (char const *const *) p;
1392 { /* SCO 3.2v4 cc rejects this. */
1394 char const *s = 0 ? (char *) 0 : (char const *) 0;
1398 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1400 const int *foo = &x[0];
1403 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1404 typedef const int *iptr;
1408 { /* AIX XL C 1.02.0.0 rejects this saying
1409 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1410 struct s { int j; const int *ap[3]; };
1411 struct s *b; b->j = 5;
1413 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1419 if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1431 echo "$ac_t""$ac_cv_c_const" 1>&6
1432 if test $ac_cv_c_const = no; then
1433 cat >> confdefs.h <<\EOF
1439 echo $ac_n "checking for inline""... $ac_c" 1>&6
1440 echo "configure:1441: checking for inline" >&5
1441 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1445 for ac_kw in inline __inline__ __inline; do
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1454 if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1456 ac_cv_c_inline=$ac_kw; break
1458 echo "configure: failed program was:" >&5
1459 cat conftest.$ac_ext >&5
1466 echo "$ac_t""$ac_cv_c_inline" 1>&6
1467 case "$ac_cv_c_inline" in
1469 no) cat >> confdefs.h <<\EOF
1473 *) cat >> confdefs.h <<EOF
1474 #define inline $ac_cv_c_inline
1479 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1480 echo "configure:1481: checking for off_t" >&5
1481 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487 #include <sys/types.h>
1493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1494 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1496 ac_cv_type_off_t=yes
1504 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1505 if test $ac_cv_type_off_t = no; then
1506 cat >> confdefs.h <<\EOF
1512 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1513 echo "configure:1514: checking for size_t" >&5
1514 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 #include <sys/types.h>
1526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1527 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1529 ac_cv_type_size_t=yes
1532 ac_cv_type_size_t=no
1537 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1538 if test $ac_cv_type_size_t = no; then
1539 cat >> confdefs.h <<\EOF
1540 #define size_t unsigned
1545 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1546 # for constant arguments. Useless!
1547 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1548 echo "configure:1549: checking for working alloca.h" >&5
1549 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1557 char *p = alloca(2 * sizeof(int));
1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1562 ac_cv_header_alloca_h=yes
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1567 ac_cv_header_alloca_h=no
1572 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1573 if test $ac_cv_header_alloca_h = yes; then
1574 cat >> confdefs.h <<\EOF
1575 #define HAVE_ALLOCA_H 1
1580 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1581 echo "configure:1582: checking for alloca" >&5
1582 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1590 # define alloca __builtin_alloca
1593 # include <malloc.h>
1594 # define alloca _alloca
1597 # include <alloca.h>
1602 # ifndef alloca /* predefined by HP cc +Olibcalls */
1611 char *p = (char *) alloca(1);
1614 if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1616 ac_cv_func_alloca_works=yes
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1621 ac_cv_func_alloca_works=no
1626 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1627 if test $ac_cv_func_alloca_works = yes; then
1628 cat >> confdefs.h <<\EOF
1629 #define HAVE_ALLOCA 1
1634 if test $ac_cv_func_alloca_works = no; then
1635 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1636 # that cause trouble. Some versions do not even contain alloca or
1637 # contain a buggy version. If you still want to use their alloca,
1638 # use ar to extract alloca.o from them instead of compiling alloca.c.
1639 ALLOCA=alloca.${ac_objext}
1640 cat >> confdefs.h <<\EOF
1645 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1646 echo "configure:1647: checking whether alloca needs Cray hooks" >&5
1647 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 cat > conftest.$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1653 #if defined(CRAY) && ! defined(CRAY2)
1660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1661 egrep "webecray" >/dev/null 2>&1; then
1672 echo "$ac_t""$ac_cv_os_cray" 1>&6
1673 if test $ac_cv_os_cray = yes; then
1674 for ac_func in _getb67 GETB67 getb67; do
1675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1676 echo "configure:1677: checking for $ac_func" >&5
1677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1683 /* System header to define __stub macros and hopefully few prototypes,
1684 which can conflict with char $ac_func(); below. */
1686 /* Override any gcc2 internal prototype to avoid an error. */
1687 /* We use char because int might match the return type of a gcc2
1688 builtin and then its argument prototype would still apply. */
1693 /* The GNU C library defines this for functions which it implements
1694 to always fail with ENOSYS. Some functions are actually named
1695 something starting with __ and the normal name is an alias. */
1696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1704 if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1706 eval "ac_cv_func_$ac_func=yes"
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1711 eval "ac_cv_func_$ac_func=no"
1716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1717 echo "$ac_t""yes" 1>&6
1718 cat >> confdefs.h <<EOF
1719 #define CRAY_STACKSEG_END $ac_func
1724 echo "$ac_t""no" 1>&6
1730 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1731 echo "configure:1732: checking stack direction for C alloca" >&5
1732 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 if test "$cross_compiling" = yes; then
1736 ac_cv_c_stack_direction=0
1738 cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1741 find_stack_direction ()
1743 static char *addr = 0;
1748 return find_stack_direction ();
1751 return (&dummy > addr) ? 1 : -1;
1755 exit (find_stack_direction() < 0);
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1760 ac_cv_c_stack_direction=1
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1765 ac_cv_c_stack_direction=-1
1772 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1773 cat >> confdefs.h <<EOF
1774 #define STACK_DIRECTION $ac_cv_c_stack_direction
1779 for ac_hdr in unistd.h
1781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1783 echo "configure:1784: checking for $ac_hdr" >&5
1784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 cat > conftest.$ac_ext <<EOF
1788 #line 1789 "configure"
1789 #include "confdefs.h"
1792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1793 { (eval echo configure:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1795 if test -z "$ac_err"; then
1797 eval "ac_cv_header_$ac_safe=yes"
1800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1803 eval "ac_cv_header_$ac_safe=no"
1807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1808 echo "$ac_t""yes" 1>&6
1809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1810 cat >> confdefs.h <<EOF
1811 #define $ac_tr_hdr 1
1815 echo "$ac_t""no" 1>&6
1819 for ac_func in getpagesize
1821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1822 echo "configure:1823: checking for $ac_func" >&5
1823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $ac_func(); below. */
1832 /* Override any gcc2 internal prototype to avoid an error. */
1833 /* We use char because int might match the return type of a gcc2
1834 builtin and then its argument prototype would still apply. */
1839 /* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1850 if { (eval echo configure:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1852 eval "ac_cv_func_$ac_func=yes"
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1857 eval "ac_cv_func_$ac_func=no"
1862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1863 echo "$ac_t""yes" 1>&6
1864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1865 cat >> confdefs.h <<EOF
1866 #define $ac_tr_func 1
1870 echo "$ac_t""no" 1>&6
1874 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1875 echo "configure:1876: checking for working mmap" >&5
1876 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test "$cross_compiling" = yes; then
1880 ac_cv_func_mmap_fixed_mapped=no
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1886 /* Thanks to Mike Haertel and Jim Avera for this test.
1887 Here is a matrix of mmap possibilities:
1888 mmap private not fixed
1889 mmap private fixed at somewhere currently unmapped
1890 mmap private fixed at somewhere already mapped
1891 mmap shared not fixed
1892 mmap shared fixed at somewhere currently unmapped
1893 mmap shared fixed at somewhere already mapped
1894 For private mappings, we should verify that changes cannot be read()
1895 back from the file, nor mmap's back from the file at a different
1896 address. (There have been systems where private was not correctly
1897 implemented like the infamous i386 svr4.0, and systems where the
1898 VM page cache was not coherent with the filesystem buffer cache
1899 like early versions of FreeBSD and possibly contemporary NetBSD.)
1900 For shared mappings, we should conversely verify that changes get
1901 propogated back to all the places they're supposed to be.
1903 Grep wants private fixed already mapped.
1904 The main things grep needs to know about mmap are:
1905 * does it exist and is it safe to write into the mmap'd area
1906 * how to use it (BSD variants) */
1907 #include <sys/types.h>
1909 #include <sys/mman.h>
1911 /* This mess was copied from the GNU getpagesize.h. */
1912 #ifndef HAVE_GETPAGESIZE
1913 # ifdef HAVE_UNISTD_H
1914 # include <unistd.h>
1917 /* Assume that all systems that can run configure have sys/param.h. */
1918 # ifndef HAVE_SYS_PARAM_H
1919 # define HAVE_SYS_PARAM_H 1
1922 # ifdef _SC_PAGESIZE
1923 # define getpagesize() sysconf(_SC_PAGESIZE)
1924 # else /* no _SC_PAGESIZE */
1925 # ifdef HAVE_SYS_PARAM_H
1926 # include <sys/param.h>
1927 # ifdef EXEC_PAGESIZE
1928 # define getpagesize() EXEC_PAGESIZE
1929 # else /* no EXEC_PAGESIZE */
1931 # define getpagesize() NBPG * CLSIZE
1934 # endif /* no CLSIZE */
1935 # else /* no NBPG */
1937 # define getpagesize() NBPC
1938 # else /* no NBPC */
1940 # define getpagesize() PAGESIZE
1941 # endif /* PAGESIZE */
1942 # endif /* no NBPC */
1943 # endif /* no NBPG */
1944 # endif /* no EXEC_PAGESIZE */
1945 # else /* no HAVE_SYS_PARAM_H */
1946 # define getpagesize() 8192 /* punt totally */
1947 # endif /* no HAVE_SYS_PARAM_H */
1948 # endif /* no _SC_PAGESIZE */
1950 #endif /* no HAVE_GETPAGESIZE */
1953 extern "C" { void *malloc(unsigned); }
1961 char *data, *data2, *data3;
1965 pagesize = getpagesize();
1968 * First, make a file with some known garbage in it.
1970 data = malloc(pagesize);
1973 for (i = 0; i < pagesize; ++i)
1974 *(data + i) = rand();
1976 fd = creat("conftestmmap", 0600);
1979 if (write(fd, data, pagesize) != pagesize)
1984 * Next, try to mmap the file at a fixed address which
1985 * already has something else allocated at it. If we can,
1986 * also make sure that we see the same garbage.
1988 fd = open("conftestmmap", O_RDWR);
1991 data2 = malloc(2 * pagesize);
1994 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1995 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1996 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1998 for (i = 0; i < pagesize; ++i)
1999 if (*(data + i) != *(data2 + i))
2003 * Finally, make sure that changes to the mapped area
2004 * do not percolate back to the file as seen by read().
2005 * (This is a bug on some variants of i386 svr4.0.)
2007 for (i = 0; i < pagesize; ++i)
2008 *(data2 + i) = *(data2 + i) + 1;
2009 data3 = malloc(pagesize);
2012 if (read(fd, data3, pagesize) != pagesize)
2014 for (i = 0; i < pagesize; ++i)
2015 if (*(data + i) != *(data3 + i))
2018 unlink("conftestmmap");
2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2025 ac_cv_func_mmap_fixed_mapped=yes
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2030 ac_cv_func_mmap_fixed_mapped=no
2037 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2038 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2039 cat >> confdefs.h <<\EOF
2046 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2047 echo "configure:2048: checking whether we are using the GNU C Library 2.1 or newer" >&5
2048 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2055 #include <features.h>
2056 #ifdef __GNU_LIBRARY__
2057 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2064 egrep "Lucky GNU user" >/dev/null 2>&1; then
2066 ac_cv_gnu_library_2_1=yes
2069 ac_cv_gnu_library_2_1=no
2077 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2079 GLIBC21="$ac_cv_gnu_library_2_1"
2083 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2084 stdlib.h string.h unistd.h sys/param.h
2086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2088 echo "configure:2089: checking for $ac_hdr" >&5
2089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 cat > conftest.$ac_ext <<EOF
2093 #line 2094 "configure"
2094 #include "confdefs.h"
2097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2098 { (eval echo configure:2099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2100 if test -z "$ac_err"; then
2102 eval "ac_cv_header_$ac_safe=yes"
2105 echo "configure: failed program was:" >&5
2106 cat conftest.$ac_ext >&5
2108 eval "ac_cv_header_$ac_safe=no"
2112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2113 echo "$ac_t""yes" 1>&6
2114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2115 cat >> confdefs.h <<EOF
2116 #define $ac_tr_hdr 1
2120 echo "$ac_t""no" 1>&6
2124 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2125 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2126 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_func" >&5
2130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 /* System header to define __stub macros and hopefully few prototypes,
2137 which can conflict with char $ac_func(); below. */
2139 /* Override any gcc2 internal prototype to avoid an error. */
2140 /* We use char because int might match the return type of a gcc2
2141 builtin and then its argument prototype would still apply. */
2146 /* The GNU C library defines this for functions which it implements
2147 to always fail with ENOSYS. Some functions are actually named
2148 something starting with __ and the normal name is an alias. */
2149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2159 eval "ac_cv_func_$ac_func=yes"
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2164 eval "ac_cv_func_$ac_func=no"
2169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2172 cat >> confdefs.h <<EOF
2173 #define $ac_tr_func 1
2177 echo "$ac_t""no" 1>&6
2184 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2185 if test "${with_libiconv_prefix+set}" = set; then
2186 withval="$with_libiconv_prefix"
2188 for dir in `echo "$withval" | tr : ' '`; do
2189 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2190 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2196 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2197 echo "configure:2198: checking for iconv" >&5
2198 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2202 am_cv_func_iconv="no, consider installing GNU libiconv"
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2210 iconv_t cd = iconv_open("","");
2211 iconv(cd,NULL,NULL,NULL,NULL);
2215 if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2217 am_cv_func_iconv=yes
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2223 if test "$am_cv_func_iconv" != yes; then
2224 am_save_LIBS="$LIBS"
2225 LIBS="$LIBS -liconv"
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2232 iconv_t cd = iconv_open("","");
2233 iconv(cd,NULL,NULL,NULL,NULL);
2237 if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2240 am_cv_func_iconv=yes
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2246 LIBS="$am_save_LIBS"
2251 echo "$ac_t""$am_cv_func_iconv" 1>&6
2252 if test "$am_cv_func_iconv" = yes; then
2253 cat >> confdefs.h <<\EOF
2254 #define HAVE_ICONV 1
2257 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2258 echo "configure:2259: checking for iconv declaration" >&5
2259 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2273 #if defined(__STDC__) || defined(__cplusplus)
2274 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2283 if { (eval echo configure:2284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2285 am_cv_proto_iconv_arg1=""
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 am_cv_proto_iconv_arg1="const"
2293 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);"
2296 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2297 echo "$ac_t""${ac_t:-
2298 }$am_cv_proto_iconv" 1>&6
2299 cat >> confdefs.h <<EOF
2300 #define ICONV_CONST $am_cv_proto_iconv_arg1
2305 if test "$am_cv_lib_iconv" = yes; then
2311 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2312 echo "configure:2313: checking for nl_langinfo and CODESET" >&5
2313 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 #include <langinfo.h>
2321 char* cs = nl_langinfo(CODESET);
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2326 am_cv_langinfo_codeset=yes
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2331 am_cv_langinfo_codeset=no
2337 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2338 if test $am_cv_langinfo_codeset = yes; then
2339 cat >> confdefs.h <<\EOF
2340 #define HAVE_LANGINFO_CODESET 1
2345 if test $ac_cv_header_locale_h = yes; then
2346 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2347 echo "configure:2348: checking for LC_MESSAGES" >&5
2348 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2359 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2361 am_cv_val_LC_MESSAGES=yes
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2366 am_cv_val_LC_MESSAGES=no
2371 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2372 if test $am_cv_val_LC_MESSAGES = yes; then
2373 cat >> confdefs.h <<\EOF
2374 #define HAVE_LC_MESSAGES 1
2379 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2380 echo "configure:2381: checking whether NLS is requested" >&5
2381 # Check whether --enable-nls or --disable-nls was given.
2382 if test "${enable_nls+set}" = set; then
2383 enableval="$enable_nls"
2389 echo "$ac_t""$USE_NLS" 1>&6
2392 BUILD_INCLUDED_LIBINTL=no
2393 USE_INCLUDED_LIBINTL=no
2396 if test "$USE_NLS" = "yes"; then
2397 cat >> confdefs.h <<\EOF
2398 #define ENABLE_NLS 1
2401 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2402 echo "configure:2403: checking whether included gettext is requested" >&5
2403 # Check whether --with-included-gettext or --without-included-gettext was given.
2404 if test "${with_included_gettext+set}" = set; then
2405 withval="$with_included_gettext"
2406 nls_cv_force_use_gnu_gettext=$withval
2408 nls_cv_force_use_gnu_gettext=no
2411 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2413 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2414 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2420 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2422 echo "configure:2423: checking for libintl.h" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429 #include <libintl.h>
2431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2436 eval "ac_cv_header_$ac_safe=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 eval "ac_cv_header_$ac_safe=no"
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2449 echo "configure:2450: checking for GNU gettext in libc" >&5
2450 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 #include <libintl.h>
2457 extern int _nl_msg_cat_cntr;
2459 bindtextdomain ("", "");
2460 return (int) gettext ("") + _nl_msg_cat_cntr
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2465 gt_cv_func_gnugettext1_libc=yes
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 gt_cv_func_gnugettext1_libc=no
2475 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2477 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2478 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2479 echo "configure:2480: checking for GNU gettext in libintl" >&5
2480 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 gt_save_LIBS="$LIBS"
2484 LIBS="$LIBS -lintl $LIBICONV"
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <libintl.h>
2489 extern int _nl_msg_cat_cntr;
2491 bindtextdomain ("", "");
2492 return (int) gettext ("") + _nl_msg_cat_cntr
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497 gt_cv_func_gnugettext1_libintl=yes
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2502 gt_cv_func_gnugettext1_libintl=no
2505 LIBS="$gt_save_LIBS"
2508 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2511 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2512 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2513 && test "$PACKAGE" != gettext; }; then
2514 cat >> confdefs.h <<\EOF
2515 #define HAVE_GETTEXT 1
2519 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2520 INTLLIBS="-lintl $LIBICONV"
2523 gt_save_LIBS="$LIBS"
2524 LIBS="$LIBS $INTLLIBS"
2525 for ac_func in dcgettext
2527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2528 echo "configure:2529: checking for $ac_func" >&5
2529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 /* System header to define __stub macros and hopefully few prototypes,
2536 which can conflict with char $ac_func(); below. */
2538 /* Override any gcc2 internal prototype to avoid an error. */
2539 /* We use char because int might match the return type of a gcc2
2540 builtin and then its argument prototype would still apply. */
2545 /* The GNU C library defines this for functions which it implements
2546 to always fail with ENOSYS. Some functions are actually named
2547 something starting with __ and the normal name is an alias. */
2548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2556 if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2558 eval "ac_cv_func_$ac_func=yes"
2560 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2563 eval "ac_cv_func_$ac_func=no"
2568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2571 cat >> confdefs.h <<EOF
2572 #define $ac_tr_func 1
2576 echo "$ac_t""no" 1>&6
2580 LIBS="$gt_save_LIBS"
2582 # Extract the first word of "msgfmt", so it can be a program name with args.
2583 set dummy msgfmt; ac_word=$2
2584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_word" >&5
2586 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2591 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2595 for ac_dir in $PATH; do
2596 test -z "$ac_dir" && ac_dir=.
2597 if test -f $ac_dir/$ac_word; then
2598 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2599 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2605 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2609 MSGFMT="$ac_cv_path_MSGFMT"
2610 if test "$MSGFMT" != ":"; then
2611 echo "$ac_t""$MSGFMT" 1>&6
2613 echo "$ac_t""no" 1>&6
2616 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2617 set dummy gmsgfmt; ac_word=$2
2618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2619 echo "configure:2620: checking for $ac_word" >&5
2620 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2625 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2628 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2633 for ac_dir in $ac_dummy; do
2634 test -z "$ac_dir" && ac_dir=.
2635 if test -f $ac_dir/$ac_word; then
2636 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2641 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2645 GMSGFMT="$ac_cv_path_GMSGFMT"
2646 if test -n "$GMSGFMT"; then
2647 echo "$ac_t""$GMSGFMT" 1>&6
2649 echo "$ac_t""no" 1>&6
2653 # Extract the first word of "xgettext", so it can be a program name with args.
2654 set dummy xgettext; ac_word=$2
2655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2656 echo "configure:2657: checking for $ac_word" >&5
2657 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2662 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2666 for ac_dir in $PATH; do
2667 test -z "$ac_dir" && ac_dir=.
2668 if test -f $ac_dir/$ac_word; then
2669 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2670 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2676 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2680 XGETTEXT="$ac_cv_path_XGETTEXT"
2681 if test "$XGETTEXT" != ":"; then
2682 echo "$ac_t""$XGETTEXT" 1>&6
2684 echo "$ac_t""no" 1>&6
2692 echo "$ac_t""no" 1>&6
2696 if test "$CATOBJEXT" = "NONE"; then
2697 nls_cv_use_gnu_gettext=yes
2701 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2702 INTLOBJS="\$(GETTOBJS)"
2703 # Extract the first word of "msgfmt", so it can be a program name with args.
2704 set dummy msgfmt; 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_MSGFMT'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2712 ac_cv_path_MSGFMT="$MSGFMT" # 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 --statistics /dev/null >/dev/null 2>&1; then
2720 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2726 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2730 MSGFMT="$ac_cv_path_MSGFMT"
2731 if test "$MSGFMT" != ":"; then
2732 echo "$ac_t""$MSGFMT" 1>&6
2734 echo "$ac_t""no" 1>&6
2737 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2738 set dummy gmsgfmt; ac_word=$2
2739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2740 echo "configure:2741: checking for $ac_word" >&5
2741 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2746 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2749 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2754 for ac_dir in $ac_dummy; do
2755 test -z "$ac_dir" && ac_dir=.
2756 if test -f $ac_dir/$ac_word; then
2757 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2762 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2766 GMSGFMT="$ac_cv_path_GMSGFMT"
2767 if test -n "$GMSGFMT"; then
2768 echo "$ac_t""$GMSGFMT" 1>&6
2770 echo "$ac_t""no" 1>&6
2773 # Extract the first word of "xgettext", so it can be a program name with args.
2774 set dummy xgettext; ac_word=$2
2775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $ac_word" >&5
2777 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2782 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2786 for ac_dir in $PATH; do
2787 test -z "$ac_dir" && ac_dir=.
2788 if test -f $ac_dir/$ac_word; then
2789 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2790 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2796 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2800 XGETTEXT="$ac_cv_path_XGETTEXT"
2801 if test "$XGETTEXT" != ":"; then
2802 echo "$ac_t""$XGETTEXT" 1>&6
2804 echo "$ac_t""no" 1>&6
2808 BUILD_INCLUDED_LIBINTL=yes
2809 USE_INCLUDED_LIBINTL=yes
2811 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2812 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2815 if test "$GMSGFMT" != ":"; then
2816 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2819 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2824 if test "$XGETTEXT" != ":"; then
2825 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2828 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2838 if test "$PACKAGE" = gettext; then
2839 BUILD_INCLUDED_LIBINTL=yes
2842 for ac_prog in bison
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2847 echo "configure:2848: checking for $ac_word" >&5
2848 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 if test -n "$INTLBISON"; then
2852 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2856 for ac_dir in $ac_dummy; do
2857 test -z "$ac_dir" && ac_dir=.
2858 if test -f $ac_dir/$ac_word; then
2859 ac_cv_prog_INTLBISON="$ac_prog"
2866 INTLBISON="$ac_cv_prog_INTLBISON"
2867 if test -n "$INTLBISON"; then
2868 echo "$ac_t""$INTLBISON" 1>&6
2870 echo "$ac_t""no" 1>&6
2873 test -n "$INTLBISON" && break
2876 if test -z "$INTLBISON"; then
2879 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2880 echo "configure:2881: checking version of bison" >&5
2881 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2882 case $ac_prog_version in
2883 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2884 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2885 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2886 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2888 echo "$ac_t""$ac_prog_version" 1>&6
2890 if test $ac_verc_fail = yes; then
2894 for lang in $ALL_LINGUAS; do
2895 GMOFILES="$GMOFILES $lang.gmo"
2896 POFILES="$POFILES $lang.po"
2910 nls_cv_header_libgt=
2922 if test "x$CATOBJEXT" != "x"; then
2923 if test "x$ALL_LINGUAS" = "x"; then
2926 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2927 echo "configure:2928: checking for catalogs to be installed" >&5
2929 for presentlang in $ALL_LINGUAS; do
2931 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2932 # Use the presentlang catalog if desiredlang is
2933 # a. equal to presentlang, or
2934 # b. a variant of presentlang (because in this case,
2935 # presentlang can be used as a fallback for messages
2936 # which are not translated in the desiredlang catalog).
2937 case "$desiredlang" in
2938 "$presentlang"*) useit=yes;;
2941 if test $useit = yes; then
2942 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2945 LINGUAS=$NEW_LINGUAS
2946 echo "$ac_t""$LINGUAS" 1>&6
2949 if test -n "$LINGUAS"; then
2950 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2955 if test -n "$ac_aux_dir"; then
2956 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2958 if test -z "$MKINSTALLDIRS"; then
2959 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2963 INTL_LIBTOOL_SUFFIX_PREFIX=
2967 # Find a good install program. We prefer a C program (faster),
2968 # so one script is as good as another. But avoid the broken or
2969 # incompatible versions:
2970 # SysV /etc/install, /usr/sbin/install
2971 # SunOS /usr/etc/install
2972 # IRIX /sbin/install
2974 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2977 # ./install, which can be erroneously created by make from ./install.sh.
2978 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2979 echo "configure:2980: checking for a BSD compatible install" >&5
2980 if test -z "$INSTALL"; then
2981 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2985 for ac_dir in $PATH; do
2986 # Account for people who put trailing slashes in PATH elements.
2988 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2990 # OSF1 and SCO ODT 3.0 have their own names for install.
2991 # Don't use installbsd from OSF since it installs stuff as root
2993 for ac_prog in ginstall scoinst install; do
2994 if test -f $ac_dir/$ac_prog; then
2995 if test $ac_prog = install &&
2996 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2997 # AIX install. It has an incompatible calling convention.
3000 ac_cv_path_install="$ac_dir/$ac_prog -c"
3011 if test "${ac_cv_path_install+set}" = set; then
3012 INSTALL="$ac_cv_path_install"
3014 # As a last resort, use the slow shell script. We don't cache a
3015 # path for INSTALL within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the path is relative.
3018 INSTALL="$ac_install_sh"
3021 echo "$ac_t""$INSTALL" 1>&6
3023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3024 # It thinks the first close brace ends the variable substitution.
3025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3027 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3029 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3032 case x"${target_os}" in
3047 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}windres; ac_word=$2
3049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_word" >&5
3051 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 if test -n "$WINDRES"; then
3055 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3059 for ac_dir in $ac_dummy; do
3060 test -z "$ac_dir" && ac_dir=.
3061 if test -f $ac_dir/$ac_word; then
3062 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3069 WINDRES="$ac_cv_prog_WINDRES"
3070 if test -n "$WINDRES"; then
3071 echo "$ac_t""$WINDRES" 1>&6
3073 echo "$ac_t""no" 1>&6
3077 if test -z "$ac_cv_prog_WINDRES"; then
3078 if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "windres", so it can be a program name with args.
3080 set dummy windres; ac_word=$2
3081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3082 echo "configure:3083: checking for $ac_word" >&5
3083 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 if test -n "$WINDRES"; then
3087 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3091 for ac_dir in $ac_dummy; do
3092 test -z "$ac_dir" && ac_dir=.
3093 if test -f $ac_dir/$ac_word; then
3094 ac_cv_prog_WINDRES="windres"
3099 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3102 WINDRES="$ac_cv_prog_WINDRES"
3103 if test -n "$WINDRES"; then
3104 echo "$ac_t""$WINDRES" 1>&6
3106 echo "$ac_t""no" 1>&6
3114 LIB_IPV4="${LIB_IPV4} -lws2_32"
3115 LIB_RC="${LIB_RC} -lws2_32"
3119 LIB_X11="${LIB_X11} -lsocket"
3120 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3124 LIB="${LIB} -lbe -lbind"
3125 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3126 PLDFLAGS="${PLDFLAGS} -nostart"
3133 for ac_func in gettimeofday select strerror strtod strtol isatty
3135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3136 echo "configure:3137: checking for $ac_func" >&5
3137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3143 /* System header to define __stub macros and hopefully few prototypes,
3144 which can conflict with char $ac_func(); below. */
3146 /* Override any gcc2 internal prototype to avoid an error. */
3147 /* We use char because int might match the return type of a gcc2
3148 builtin and then its argument prototype would still apply. */
3153 /* The GNU C library defines this for functions which it implements
3154 to always fail with ENOSYS. Some functions are actually named
3155 something starting with __ and the normal name is an alias. */
3156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3164 if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3166 eval "ac_cv_func_$ac_func=yes"
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3171 eval "ac_cv_func_$ac_func=no"
3176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3177 echo "$ac_t""yes" 1>&6
3178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3179 cat >> confdefs.h <<EOF
3180 #define $ac_tr_func 1
3184 echo "$ac_t""no" 1>&6
3188 echo $ac_n "checking for connect""... $ac_c" 1>&6
3189 echo "configure:3190: checking for connect" >&5
3190 if eval "test \"`echo '$''{'ac_cv_func_connect'+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 connect(); 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_connect) || defined (__stub___connect)
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_connect=yes"
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3224 eval "ac_cv_func_connect=no"
3229 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3233 echo "$ac_t""no" 1>&6
3235 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3236 echo "configure:3237: checking for connect in -lsocket" >&5
3237 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 ac_save_LIBS="$LIBS"
3242 LIBS="-lsocket $LIBS"
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 /* Override any gcc2 internal prototype to avoid an error. */
3247 /* We use char because int might match the return type of a gcc2
3248 builtin and then its argument prototype would still apply. */
3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3257 eval "ac_cv_lib_$ac_lib_var=yes"
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 eval "ac_cv_lib_$ac_lib_var=no"
3265 LIBS="$ac_save_LIBS"
3268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3270 LIB="${LIB} -lsocket"
3272 echo "$ac_t""no" 1>&6
3278 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3279 echo "configure:3280: checking for gethostbyname" >&5
3280 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 /* System header to define __stub macros and hopefully few prototypes,
3287 which can conflict with char gethostbyname(); below. */
3289 /* Override any gcc2 internal prototype to avoid an error. */
3290 /* We use char because int might match the return type of a gcc2
3291 builtin and then its argument prototype would still apply. */
3292 char gethostbyname();
3296 /* The GNU C library defines this for functions which it implements
3297 to always fail with ENOSYS. Some functions are actually named
3298 something starting with __ and the normal name is an alias. */
3299 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3307 if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3309 eval "ac_cv_func_gethostbyname=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3314 eval "ac_cv_func_gethostbyname=no"
3319 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3320 echo "$ac_t""yes" 1>&6
3323 echo "$ac_t""no" 1>&6
3325 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3326 echo "configure:3327: checking for gethostbyname in -lnsl" >&5
3327 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 ac_save_LIBS="$LIBS"
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3339 char gethostbyname();
3345 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3347 eval "ac_cv_lib_$ac_lib_var=yes"
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3352 eval "ac_cv_lib_$ac_lib_var=no"
3355 LIBS="$ac_save_LIBS"
3358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
3362 echo "$ac_t""no" 1>&6
3368 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3369 echo "configure:3370: checking for nanosleep" >&5
3370 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 /* System header to define __stub macros and hopefully few prototypes,
3377 which can conflict with char nanosleep(); below. */
3379 /* Override any gcc2 internal prototype to avoid an error. */
3380 /* We use char because int might match the return type of a gcc2
3381 builtin and then its argument prototype would still apply. */
3386 /* The GNU C library defines this for functions which it implements
3387 to always fail with ENOSYS. Some functions are actually named
3388 something starting with __ and the normal name is an alias. */
3389 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3397 if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3399 eval "ac_cv_func_nanosleep=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_func_nanosleep=no"
3409 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3413 echo "$ac_t""no" 1>&6
3415 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3416 echo "configure:3417: checking for nanosleep in -lrt" >&5
3417 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 ac_save_LIBS="$LIBS"
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* Override any gcc2 internal prototype to avoid an error. */
3427 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3437 eval "ac_cv_lib_$ac_lib_var=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 eval "ac_cv_lib_$ac_lib_var=no"
3445 LIBS="$ac_save_LIBS"
3448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3449 echo "$ac_t""yes" 1>&6
3452 echo "$ac_t""no" 1>&6
3454 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3455 echo "configure:3456: checking for nanosleep in -lposix4" >&5
3456 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 ac_save_LIBS="$LIBS"
3461 LIBS="-lposix4 $LIBS"
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3476 eval "ac_cv_lib_$ac_lib_var=yes"
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3481 eval "ac_cv_lib_$ac_lib_var=no"
3484 LIBS="$ac_save_LIBS"
3487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3489 LIB="${LIB} -lposix4"
3491 echo "$ac_t""no" 1>&6
3500 for ac_func in usleep
3502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3503 echo "configure:3504: checking for $ac_func" >&5
3504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 /* System header to define __stub macros and hopefully few prototypes,
3511 which can conflict with char $ac_func(); below. */
3513 /* Override any gcc2 internal prototype to avoid an error. */
3514 /* We use char because int might match the return type of a gcc2
3515 builtin and then its argument prototype would still apply. */
3520 /* The GNU C library defines this for functions which it implements
3521 to always fail with ENOSYS. Some functions are actually named
3522 something starting with __ and the normal name is an alias. */
3523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3531 if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533 eval "ac_cv_func_$ac_func=yes"
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3538 eval "ac_cv_func_$ac_func=no"
3543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3546 cat >> confdefs.h <<EOF
3547 #define $ac_tr_func 1
3551 echo "$ac_t""no" 1>&6
3555 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3556 echo "configure:3557: checking for inet_aton" >&5
3557 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 /* System header to define __stub macros and hopefully few prototypes,
3564 which can conflict with char inet_aton(); below. */
3566 /* Override any gcc2 internal prototype to avoid an error. */
3567 /* We use char because int might match the return type of a gcc2
3568 builtin and then its argument prototype would still apply. */
3573 /* The GNU C library defines this for functions which it implements
3574 to always fail with ENOSYS. Some functions are actually named
3575 something starting with __ and the normal name is an alias. */
3576 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3584 if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3586 eval "ac_cv_func_inet_aton=yes"
3588 echo "configure: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3591 eval "ac_cv_func_inet_aton=no"
3596 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3597 echo "$ac_t""yes" 1>&6
3600 echo "$ac_t""no" 1>&6
3602 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3603 echo "configure:3604: checking for inet_aton in -lresolv" >&5
3604 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 ac_save_LIBS="$LIBS"
3609 LIBS="-lresolv $LIBS"
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 /* Override any gcc2 internal prototype to avoid an error. */
3614 /* We use char because int might match the return type of a gcc2
3615 builtin and then its argument prototype would still apply. */
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3624 eval "ac_cv_lib_$ac_lib_var=yes"
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3629 eval "ac_cv_lib_$ac_lib_var=no"
3632 LIBS="$ac_save_LIBS"
3635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3637 LIB="${LIB} -lresolv"
3639 echo "$ac_t""no" 1>&6
3645 for ac_func in vasprintf
3647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3648 echo "configure:3649: checking for $ac_func" >&5
3649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 /* System header to define __stub macros and hopefully few prototypes,
3656 which can conflict with char $ac_func(); below. */
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3665 /* The GNU C library defines this for functions which it implements
3666 to always fail with ENOSYS. Some functions are actually named
3667 something starting with __ and the normal name is an alias. */
3668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3676 if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3678 eval "ac_cv_func_$ac_func=yes"
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3683 eval "ac_cv_func_$ac_func=no"
3688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3691 cat >> confdefs.h <<EOF
3692 #define $ac_tr_func 1
3696 echo "$ac_t""no" 1>&6
3702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3703 echo "configure:3704: checking for $ac_func" >&5
3704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 /* System header to define __stub macros and hopefully few prototypes,
3711 which can conflict with char $ac_func(); below. */
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3720 /* The GNU C library defines this for functions which it implements
3721 to always fail with ENOSYS. Some functions are actually named
3722 something starting with __ and the normal name is an alias. */
3723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3731 if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3733 eval "ac_cv_func_$ac_func=yes"
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3738 eval "ac_cv_func_$ac_func=no"
3743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3746 cat >> confdefs.h <<EOF
3747 #define $ac_tr_func 1
3751 echo "$ac_t""no" 1>&6
3755 for ac_func in memalign valloc
3757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3758 echo "configure:3759: checking for $ac_func" >&5
3759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 /* System header to define __stub macros and hopefully few prototypes,
3766 which can conflict with char $ac_func(); below. */
3768 /* Override any gcc2 internal prototype to avoid an error. */
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3775 /* The GNU C library defines this for functions which it implements
3776 to always fail with ENOSYS. Some functions are actually named
3777 something starting with __ and the normal name is an alias. */
3778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3788 eval "ac_cv_func_$ac_func=yes"
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3793 eval "ac_cv_func_$ac_func=no"
3798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3801 cat >> confdefs.h <<EOF
3802 #define $ac_tr_func 1
3806 echo "$ac_t""no" 1>&6
3811 for ac_func in sigrelse
3813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3814 echo "configure:3815: checking for $ac_func" >&5
3815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 /* System header to define __stub macros and hopefully few prototypes,
3822 which can conflict with char $ac_func(); below. */
3824 /* Override any gcc2 internal prototype to avoid an error. */
3825 /* We use char because int might match the return type of a gcc2
3826 builtin and then its argument prototype would still apply. */
3831 /* The GNU C library defines this for functions which it implements
3832 to always fail with ENOSYS. Some functions are actually named
3833 something starting with __ and the normal name is an alias. */
3834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3844 eval "ac_cv_func_$ac_func=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 eval "ac_cv_func_$ac_func=no"
3854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3855 echo "$ac_t""yes" 1>&6
3856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3857 cat >> confdefs.h <<EOF
3858 #define $ac_tr_func 1
3862 echo "$ac_t""no" 1>&6
3866 for ac_func in getpwuid_r getpwuid
3868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3869 echo "configure:3870: checking for $ac_func" >&5
3870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 /* System header to define __stub macros and hopefully few prototypes,
3877 which can conflict with char $ac_func(); below. */
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3886 /* The GNU C library defines this for functions which it implements
3887 to always fail with ENOSYS. Some functions are actually named
3888 something starting with __ and the normal name is an alias. */
3889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3904 eval "ac_cv_func_$ac_func=no"
3909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3912 cat >> confdefs.h <<EOF
3913 #define $ac_tr_func 1
3917 echo "$ac_t""no" 1>&6
3923 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3924 echo "configure:3925: checking for getopt_long" >&5
3925 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 /* System header to define __stub macros and hopefully few prototypes,
3932 which can conflict with char getopt_long(); below. */
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3941 /* The GNU C library defines this for functions which it implements
3942 to always fail with ENOSYS. Some functions are actually named
3943 something starting with __ and the normal name is an alias. */
3944 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3954 eval "ac_cv_func_getopt_long=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 eval "ac_cv_func_getopt_long=no"
3964 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 cat >> confdefs.h <<\EOF
3967 #define HAVE_GETOPT_LONG 1
3971 echo "$ac_t""no" 1>&6
3972 # FreeBSD has a gnugetopt library for this:
3973 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3974 echo "configure:3975: checking for getopt_long in -lgnugetopt" >&5
3975 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3979 ac_save_LIBS="$LIBS"
3980 LIBS="-lgnugetopt $LIBS"
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3984 /* Override any gcc2 internal prototype to avoid an error. */
3985 /* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3993 if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3995 eval "ac_cv_lib_$ac_lib_var=yes"
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4000 eval "ac_cv_lib_$ac_lib_var=no"
4003 LIBS="$ac_save_LIBS"
4006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4007 echo "$ac_t""yes" 1>&6
4008 cat >> confdefs.h <<\EOF
4009 #define HAVE_GETOPT_LONG 1
4011 LIB="${LIB} -lgnugetopt"
4013 echo "$ac_t""no" 1>&6
4020 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4021 echo "configure:4022: checking return type of signal handlers" >&5
4022 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 #include <sys/types.h>
4034 extern "C" void (*signal (int, void (*)(int)))(int);
4036 void (*signal ()) ();
4043 if { (eval echo configure:4044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4045 ac_cv_type_signal=void
4047 echo "configure: failed program was:" >&5
4048 cat conftest.$ac_ext >&5
4050 ac_cv_type_signal=int
4055 echo "$ac_t""$ac_cv_type_signal" 1>&6
4056 cat >> confdefs.h <<EOF
4057 #define RETSIGTYPE $ac_cv_type_signal
4061 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4062 echo "configure:4063: checking for dlopen in -ldl" >&5
4063 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4067 ac_save_LIBS="$LIBS"
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 /* Override any gcc2 internal prototype to avoid an error. */
4073 /* We use char because int might match the return type of a gcc2
4074 builtin and then its argument prototype would still apply. */
4081 if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4083 eval "ac_cv_lib_$ac_lib_var=yes"
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4088 eval "ac_cv_lib_$ac_lib_var=no"
4091 LIBS="$ac_save_LIBS"
4094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4095 echo "$ac_t""yes" 1>&6
4098 echo "$ac_t""no" 1>&6
4101 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4102 echo "configure:4103: checking for cos in -lm" >&5
4103 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4107 ac_save_LIBS="$LIBS"
4109 cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4112 /* Override any gcc2 internal prototype to avoid an error. */
4113 /* We use char because int might match the return type of a gcc2
4114 builtin and then its argument prototype would still apply. */
4121 if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4123 eval "ac_cv_lib_$ac_lib_var=yes"
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4128 eval "ac_cv_lib_$ac_lib_var=no"
4131 LIBS="$ac_save_LIBS"
4134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4135 echo "$ac_t""yes" 1>&6
4136 LIB_IMDCT="${LIB_IMDCT} -lm"
4137 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4139 echo "$ac_t""no" 1>&6
4142 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4143 echo "configure:4144: checking for pow in -lm" >&5
4144 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4148 ac_save_LIBS="$LIBS"
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 /* Override any gcc2 internal prototype to avoid an error. */
4154 /* We use char because int might match the return type of a gcc2
4155 builtin and then its argument prototype would still apply. */
4162 if { (eval echo configure:4163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4164 eval "ac_cv_lib_$ac_lib_var=yes"
4166 echo "configure: failed program was:" >&5
4167 cat conftest.$ac_ext >&5
4169 eval "ac_cv_lib_$ac_lib_var=no"
4172 LIBS="$ac_save_LIBS"
4175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4176 echo "$ac_t""yes" 1>&6
4177 LIB_IMDCT="${LIB_IMDCT} -lm"
4178 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4179 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4182 echo "$ac_t""no" 1>&6
4187 if test "x${THREAD_LIB}" = xerror; then
4188 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4189 echo "configure:4190: checking for pthread_attr_init in -lpthread" >&5
4190 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 ac_save_LIBS="$LIBS"
4195 LIBS="-lpthread $LIBS"
4196 cat > conftest.$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4199 /* Override any gcc2 internal prototype to avoid an error. */
4200 /* We use char because int might match the return type of a gcc2
4201 builtin and then its argument prototype would still apply. */
4202 char pthread_attr_init();
4208 if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4210 eval "ac_cv_lib_$ac_lib_var=yes"
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4215 eval "ac_cv_lib_$ac_lib_var=no"
4218 LIBS="$ac_save_LIBS"
4221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4222 echo "$ac_t""yes" 1>&6
4223 THREAD_LIB="-lpthread"
4225 echo "$ac_t""no" 1>&6
4229 if test "x${THREAD_LIB}" = xerror; then
4230 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4231 echo "configure:4232: checking for pthread_attr_init in -lpthreads" >&5
4232 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4236 ac_save_LIBS="$LIBS"
4237 LIBS="-lpthreads $LIBS"
4238 cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4241 /* Override any gcc2 internal prototype to avoid an error. */
4242 /* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244 char pthread_attr_init();
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4252 eval "ac_cv_lib_$ac_lib_var=yes"
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4257 eval "ac_cv_lib_$ac_lib_var=no"
4260 LIBS="$ac_save_LIBS"
4263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4264 echo "$ac_t""yes" 1>&6
4265 THREAD_LIB="-lpthreads"
4267 echo "$ac_t""no" 1>&6
4271 if test "x${THREAD_LIB}" = xerror; then
4272 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4273 echo "configure:4274: checking for pthread_attr_init in -lc_r" >&5
4274 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 ac_save_LIBS="$LIBS"
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 /* Override any gcc2 internal prototype to avoid an error. */
4284 /* We use char because int might match the return type of a gcc2
4285 builtin and then its argument prototype would still apply. */
4286 char pthread_attr_init();
4292 if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4294 eval "ac_cv_lib_$ac_lib_var=yes"
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 eval "ac_cv_lib_$ac_lib_var=no"
4302 LIBS="$ac_save_LIBS"
4305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4306 echo "$ac_t""yes" 1>&6
4309 echo "$ac_t""no" 1>&6
4313 if test "x${THREAD_LIB}" = xerror; then
4314 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4315 echo "configure:4316: checking for pthread_attr_init" >&5
4316 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322 /* System header to define __stub macros and hopefully few prototypes,
4323 which can conflict with char pthread_attr_init(); below. */
4325 /* Override any gcc2 internal prototype to avoid an error. */
4326 /* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4328 char pthread_attr_init();
4332 /* The GNU C library defines this for functions which it implements
4333 to always fail with ENOSYS. Some functions are actually named
4334 something starting with __ and the normal name is an alias. */
4335 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4338 pthread_attr_init();
4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4345 eval "ac_cv_func_pthread_attr_init=yes"
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4350 eval "ac_cv_func_pthread_attr_init=no"
4355 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4356 echo "$ac_t""yes" 1>&6
4359 echo "$ac_t""no" 1>&6
4365 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4366 echo "configure:4367: checking for cthread_fork in -lthreads" >&5
4367 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4371 ac_save_LIBS="$LIBS"
4372 LIBS="-lthreads $LIBS"
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 /* Override any gcc2 internal prototype to avoid an error. */
4377 /* We use char because int might match the return type of a gcc2
4378 builtin and then its argument prototype would still apply. */
4379 char cthread_fork();
4385 if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4387 eval "ac_cv_lib_$ac_lib_var=yes"
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4392 eval "ac_cv_lib_$ac_lib_var=no"
4395 LIBS="$ac_save_LIBS"
4398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4400 THREAD_LIB="-lthreads"
4402 echo "$ac_t""no" 1>&6
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 #include <pthread.h>
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 egrep "pthread_cond_t" >/dev/null 2>&1; then
4415 cat >> confdefs.h <<\EOF
4416 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 #include <strings.h>
4427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4428 egrep "strncasecmp" >/dev/null 2>&1; then
4431 cat >> confdefs.h <<\EOF
4432 #define STRNCASECMP_IN_STRINGS_H 1
4439 for ac_hdr in getopt.h strings.h
4441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_hdr" >&5
4444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4453 { (eval echo configure:4454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4455 if test -z "$ac_err"; then
4457 eval "ac_cv_header_$ac_safe=yes"
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4463 eval "ac_cv_header_$ac_safe=no"
4467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4468 echo "$ac_t""yes" 1>&6
4469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4470 cat >> confdefs.h <<EOF
4471 #define $ac_tr_hdr 1
4475 echo "$ac_t""no" 1>&6
4479 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4483 echo "configure:4484: checking for $ac_hdr" >&5
4484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4493 { (eval echo configure:4494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4495 if test -z "$ac_err"; then
4497 eval "ac_cv_header_$ac_safe=yes"
4500 echo "configure: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4503 eval "ac_cv_header_$ac_safe=no"
4507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4508 echo "$ac_t""yes" 1>&6
4509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4510 cat >> confdefs.h <<EOF
4511 #define $ac_tr_hdr 1
4515 echo "$ac_t""no" 1>&6
4519 for ac_hdr in dlfcn.h image.h
4521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4523 echo "configure:4524: checking for $ac_hdr" >&5
4524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4525 echo $ac_n "(cached) $ac_c" 1>&6
4527 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4533 { (eval echo configure:4534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4535 if test -z "$ac_err"; then
4537 eval "ac_cv_header_$ac_safe=yes"
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4543 eval "ac_cv_header_$ac_safe=no"
4547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4548 echo "$ac_t""yes" 1>&6
4549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4550 cat >> confdefs.h <<EOF
4551 #define $ac_tr_hdr 1
4555 echo "$ac_t""no" 1>&6
4559 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4563 echo "configure:4564: checking for $ac_hdr" >&5
4564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4567 cat > conftest.$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4573 { (eval echo configure:4574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4575 if test -z "$ac_err"; then
4577 eval "ac_cv_header_$ac_safe=yes"
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4583 eval "ac_cv_header_$ac_safe=no"
4587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4588 echo "$ac_t""yes" 1>&6
4589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4590 cat >> confdefs.h <<EOF
4591 #define $ac_tr_hdr 1
4595 echo "$ac_t""no" 1>&6
4599 for ac_hdr in machine/param.h sys/shm.h
4601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4603 echo "configure:4604: checking for $ac_hdr" >&5
4604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4613 { (eval echo configure:4614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4615 if test -z "$ac_err"; then
4617 eval "ac_cv_header_$ac_safe=yes"
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4623 eval "ac_cv_header_$ac_safe=no"
4627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4628 echo "$ac_t""yes" 1>&6
4629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4630 cat >> confdefs.h <<EOF
4631 #define $ac_tr_hdr 1
4635 echo "$ac_t""no" 1>&6
4640 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4641 echo "configure:4642: checking whether time.h and sys/time.h may both be included" >&5
4642 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 #include <sys/types.h>
4649 #include <sys/time.h>
4655 if { (eval echo configure:4656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4657 ac_cv_header_time=yes
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4662 ac_cv_header_time=no
4667 echo "$ac_t""$ac_cv_header_time" 1>&6
4668 if test $ac_cv_header_time = yes; then
4669 cat >> confdefs.h <<\EOF
4670 #define TIME_WITH_SYS_TIME 1
4676 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4680 echo "configure:4681: checking for $ac_hdr" >&5
4681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4682 echo $ac_n "(cached) $ac_c" 1>&6
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4690 { (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4692 if test -z "$ac_err"; then
4694 eval "ac_cv_header_$ac_safe=yes"
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 eval "ac_cv_header_$ac_safe=no"
4704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4707 cat >> confdefs.h <<EOF
4708 #define $ac_tr_hdr 1
4712 echo "$ac_t""no" 1>&6
4717 if test x$SYS != xmingw32
4719 if test x$x_includes = xNONE; then
4720 x_includes=/usr/X11R6/include
4722 if test x$x_libraries = xNONE; then
4723 x_libraries=/usr/X11R6/lib
4725 saved_CPPFLAGS=$CPPFLAGS
4726 CPPFLAGS="$CPPFLAGS -I$x_includes"
4727 for ac_hdr in X11/extensions/dpms.h
4729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4731 echo "configure:4732: checking for $ac_hdr" >&5
4732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4735 cat > conftest.$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4741 { (eval echo configure:4742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4743 if test -z "$ac_err"; then
4745 eval "ac_cv_header_$ac_safe=yes"
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4751 eval "ac_cv_header_$ac_safe=no"
4755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4756 echo "$ac_t""yes" 1>&6
4757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4758 cat >> confdefs.h <<EOF
4759 #define $ac_tr_hdr 1
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 #include <X11/extensions/dpms.h>
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 egrep "DPMSInfo" >/dev/null 2>&1; then
4771 cat >> confdefs.h <<\EOF
4772 #define DPMSINFO_IN_DPMS_H 1
4781 echo "$ac_t""no" 1>&6
4785 CPPFLAGS=$saved_CPPFLAGS
4788 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4789 echo "configure:4790: checking for ntohl in sys/param.h" >&5
4790 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 CFLAGS="${save_CFLAGS} -Wall -Werror"
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4797 #include <sys/param.h>
4799 void foo() { int meuh; ntohl(meuh); }
4802 if { (eval echo configure:4803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4804 ac_cv_c_ntohl_sys_param_h=yes
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4809 ac_cv_c_ntohl_sys_param_h=no
4814 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4815 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4816 cat >> confdefs.h <<\EOF
4817 #define NTOHL_IN_SYS_PARAM_H 1
4822 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4823 echo "configure:4824: checking if \$CC accepts -finline-limit" >&5
4824 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4828 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4836 if { (eval echo configure:4837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4838 ac_cv_c_inline_limit=yes
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4843 ac_cv_c_inline_limit=no
4848 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4849 if test x"$ac_cv_c_inline_limit" != x"no"; then
4850 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4853 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4854 echo "configure:4855: checking if \$CC accepts -Wall -Winline" >&5
4855 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 CFLAGS="${save_CFLAGS} -Wall -Winline"
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4867 if { (eval echo configure:4868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4869 ac_cv_c_Wall_Winline=yes
4871 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4874 ac_cv_c_Wall_Winline=no
4879 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4880 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4881 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4883 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4884 echo "configure:4885: checking if \$CC accepts -wall -winline" >&5
4885 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 CFLAGS="${save_CFLAGS} -wall -winline"
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4897 if { (eval echo configure:4898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4899 ac_cv_c_wall_winline=yes
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4904 ac_cv_c_wall_winline=no
4909 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4910 if test x"$ac_cv_c_wall_winline" != x"no"; then
4911 save_CFLAGS="${save_CFLAGS} -wall -winline"
4915 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4916 echo "configure:4917: checking if \$CC accepts -pipe" >&5
4917 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 CFLAGS="${save_CFLAGS} -pipe"
4921 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4929 if { (eval echo configure:4930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4941 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4942 if test x"$ac_cv_c_pipe" != x"no"; then
4943 save_CFLAGS="${save_CFLAGS} -pipe"
4946 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4947 echo "configure:4948: checking if \$CC accepts -O3" >&5
4948 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 CFLAGS="${save_CFLAGS} -O3"
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4960 if { (eval echo configure:4961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4972 echo "$ac_t""$ac_cv_c_o3" 1>&6
4973 if test x"$ac_cv_c_o3" != x"no"; then
4974 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
4976 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
4977 echo "configure:4978: checking if \$CC accepts -O2" >&5
4978 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 CFLAGS="${save_CFLAGS} -O2"
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4990 if { (eval echo configure:4991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
5002 echo "$ac_t""$ac_cv_c_o2" 1>&6
5003 if test x"$ac_cv_c_o2" != x"no"; then
5004 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5006 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5007 echo "configure:5008: checking if \$CC accepts -O" >&5
5008 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5009 echo $ac_n "(cached) $ac_c" 1>&6
5011 CFLAGS="${save_CFLAGS} -O"
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5020 if { (eval echo configure:5021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5032 echo "$ac_t""$ac_cv_c_o" 1>&6
5033 if test x"$ac_cv_c_o" != x"no"; then
5034 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5039 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5040 echo "configure:5041: checking if \$CC accepts -ffast-math" >&5
5041 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5042 echo $ac_n "(cached) $ac_c" 1>&6
5044 CFLAGS="${save_CFLAGS} -ffast-math"
5045 cat > conftest.$ac_ext <<EOF
5046 #line 5047 "configure"
5047 #include "confdefs.h"
5053 if { (eval echo configure:5054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5055 ac_cv_c_fast_math=yes
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5060 ac_cv_c_fast_math=no
5065 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5066 if test x"$ac_cv_c_fast_math" != x"no"; then
5067 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5070 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5071 echo "configure:5072: checking if \$CC accepts -funroll-loops" >&5
5072 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5075 CFLAGS="${save_CFLAGS} -funroll-loops"
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5084 if { (eval echo configure:5085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5086 ac_cv_c_unroll_loops=yes
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5091 ac_cv_c_unroll_loops=no
5096 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5097 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5098 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5101 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5102 echo "configure:5103: checking if \$CC accepts -fomit-frame-pointer" >&5
5103 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5106 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5107 cat > conftest.$ac_ext <<EOF
5108 #line 5109 "configure"
5109 #include "confdefs.h"
5115 if { (eval echo configure:5116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5117 ac_cv_c_omit_frame_pointer=yes
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5122 ac_cv_c_omit_frame_pointer=no
5127 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5128 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5129 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5132 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
5133 echo "configure:5134: checking if \$CC accepts -bundle -undefined error" >&5
5134 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 CFLAGS="${save_CFLAGS} -bundle -undefined error"
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5146 if { (eval echo configure:5147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5158 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5159 if test x"$ac_cv_ld_darwin" != x"no"; then
5160 PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
5163 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5164 echo "configure:5165: checking if \$CC accepts -shared" >&5
5165 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 CFLAGS="${save_CFLAGS} -shared"
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5177 if { (eval echo configure:5178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5179 ac_cv_ld_plugins=yes
5181 echo "configure: failed program was:" >&5
5182 cat conftest.$ac_ext >&5
5189 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5190 if test x"$ac_cv_ld_plugins" != x"no"; then
5191 PLDFLAGS="${PLDFLAGS} -shared"
5194 if test x"${SOFLAGS}" = x; then
5195 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5196 echo "configure:5197: checking for soname setting" >&5
5197 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5198 echo $ac_n "(cached) $ac_c" 1>&6
5202 try_SOFLAGS="-Wl,-soname -Wl,"
5203 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5212 if { (eval echo configure:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5214 ac_cv_ld_soname="${try_SOFLAGS}"
5216 echo "configure: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5221 try_SOFLAGS="-Wl,-h -Wl,"
5222 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5231 if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 ac_cv_ld_soname="${try_SOFLAGS}"
5235 echo "configure: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5238 ac_cv_ld_soname=none
5246 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5247 if test x"$ac_cv_ld_soname" != x"none"; then
5248 SOFLAGS=$ac_cv_ld_soname
5252 Your system doesn't seem to have support for dynamic linking. You may
5253 have problems using libdvdcss.
5259 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5260 echo "configure:5261: checking __attribute__ ((aligned ())) support" >&5
5261 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 ac_cv_c_attribute_aligned=0
5265 CFLAGS="${save_CFLAGS} -Werror"
5266 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5272 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5275 if { (eval echo configure:5276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5277 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5286 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5287 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5288 cat >> confdefs.h <<EOF
5289 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5294 CFLAGS="${save_CFLAGS}"
5295 LDFLAGS="${save_LDFLAGS}"
5297 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5298 echo "configure:5299: checking for boolean_t in sys/types.h" >&5
5299 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 #include <sys/types.h>
5310 if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5312 ac_cv_c_boolean_t_sys_types_h=yes
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5317 ac_cv_c_boolean_t_sys_types_h=no
5322 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5323 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5324 cat >> confdefs.h <<\EOF
5325 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5330 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5331 echo "configure:5332: checking for boolean_t in pthread.h" >&5
5332 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 #include <pthread.h>
5343 if { (eval echo configure:5344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5345 ac_cv_c_boolean_t_pthread_h=yes
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5350 ac_cv_c_boolean_t_pthread_h=no
5355 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5356 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5357 cat >> confdefs.h <<\EOF
5358 #define BOOLEAN_T_IN_PTHREAD_H 1
5363 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5364 echo "configure:5365: checking for boolean_t in cthreads.h" >&5
5365 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 #include <cthreads.h>
5376 if { (eval echo configure:5377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5378 ac_cv_c_boolean_t_cthreads_h=yes
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5383 ac_cv_c_boolean_t_cthreads_h=no
5388 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5389 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5390 cat >> confdefs.h <<\EOF
5391 #define BOOLEAN_T_IN_CTHREADS_H 1
5396 case x"${target_cpu}" in
5405 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"
5406 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"
5408 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5409 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5410 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5411 SSE_MODULES="imdctsse downmixsse"
5412 ALTIVEC_MODULES="idctaltivec motionaltivec"
5414 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5415 echo "configure:5416: checking if \$CC groks MMX inline assembly" >&5
5416 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5424 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5427 if { (eval echo configure:5428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5429 ac_cv_mmx_inline=yes
5431 echo "configure: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5439 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5440 if test x"$ac_cv_mmx_inline" != x"no"; then
5441 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5444 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5445 echo "configure:5446: checking if \$CC groks MMX EXT inline assembly" >&5
5446 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5454 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5457 if { (eval echo configure:5458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5459 ac_cv_mmxext_inline=yes
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 ac_cv_mmxext_inline=no
5469 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5470 if test x"$ac_cv_mmxext_inline" != x"no"; then
5471 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5474 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5475 echo "configure:5476: checking if \$CC groks 3D Now! inline assembly" >&5
5476 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5477 echo $ac_n "(cached) $ac_c" 1>&6
5479 cat > conftest.$ac_ext <<EOF
5480 #line 5481 "configure"
5481 #include "confdefs.h"
5484 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5487 if { (eval echo configure:5488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5489 ac_cv_3dnow_inline=yes
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5494 ac_cv_3dnow_inline=no
5499 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5500 if test x"$ac_cv_3dnow_inline" != x"no"; then
5501 cat >> confdefs.h <<\EOF
5502 #define CAN_COMPILE_3DNOW 1
5505 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5508 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5509 echo "configure:5510: checking if \$CC groks SSE inline assembly" >&5
5510 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5511 echo $ac_n "(cached) $ac_c" 1>&6
5513 cat > conftest.$ac_ext <<EOF
5514 #line 5515 "configure"
5515 #include "confdefs.h"
5518 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5521 if { (eval echo configure:5522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5523 ac_cv_sse_inline=yes
5525 echo "configure: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5533 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5534 if test x"$ac_cv_sse_inline" != x"no"; then
5535 cat >> confdefs.h <<\EOF
5536 #define CAN_COMPILE_SSE 1
5539 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5542 # don't try to grok altivec with native mingw32 it doesn't work right now
5543 # we should be able to remove this test with future versions of mingw32
5544 if test x$SYS != xmingw32; then
5545 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5546 echo "configure:5547: checking if \$CC groks Altivec inline assembly" >&5
5547 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5555 asm volatile("vperm 0,1,2,3");
5558 if { (eval echo configure:5559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5560 ac_cv_altivec_inline=yes
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5566 CFLAGS="$CFLAGS -Wa,-m7400"
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5572 asm volatile("vperm 0,1,2,3");
5575 if { (eval echo configure:5576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5577 ac_cv_altivec_inline="-Wa,-m7400"
5579 echo "configure: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5582 ac_cv_altivec_inline=no
5591 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5592 if test x"$ac_cv_altivec_inline" != x"no"; then
5593 cat >> confdefs.h <<\EOF
5594 #define CAN_COMPILE_ALTIVEC 1
5597 if test x"$ac_cv_altivec_inline" != x"yes"; then
5598 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5599 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5600 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5602 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5605 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5606 echo "configure:5607: checking if \$CC groks Altivec C extensions" >&5
5607 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5611 CFLAGS="$CFLAGS -faltivec"
5613 cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5618 vec_mtvscr((vector unsigned int)(0));
5621 if { (eval echo configure:5622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5623 ac_cv_c_altivec=-faltivec
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5630 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5631 cat > conftest.$ac_ext <<EOF
5632 #line 5633 "configure"
5633 #include "confdefs.h"
5636 vec_mtvscr((vector unsigned int)(0));
5639 if { (eval echo configure:5640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5641 ac_cv_c_altivec="-fvec"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5656 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5657 if test x"$ac_cv_c_altivec" != x"no"; then
5658 cat >> confdefs.h <<\EOF
5659 #define CAN_COMPILE_C_ALTIVEC 1
5662 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5663 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5664 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5665 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5668 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5669 echo "configure:5670: checking if linker needs -framework vecLib" >&5
5670 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5673 save_LDFLAGS=$LDFLAGS
5674 LDFLAGS="$LDFLAGS -framework vecLib"
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5683 if { (eval echo configure:5684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5685 ac_cv_ld_altivec=yes
5687 echo "configure: failed program was:" >&5
5688 cat conftest.$ac_ext >&5
5693 LDFLAGS=$save_LDFLAGS
5697 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5698 if test x"$ac_cv_ld_altivec" != x"no"; then
5699 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5700 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5701 LIB="${LIB} -framework vecLib"
5711 DVD_DEVICE="/dev/dvd"
5712 VCD_DEVICE="/dev/cdrom"
5716 cat >> confdefs.h <<EOF
5717 #define DVD_DEVICE "$DVD_DEVICE"
5720 cat >> confdefs.h <<EOF
5721 #define VCD_DEVICE "$VCD_DEVICE"
5727 CAN_BUILD_LIBDVDCSS=0
5729 for ac_hdr in winioctl.h
5731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5733 echo "configure:5734: checking for $ac_hdr" >&5
5734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5743 { (eval echo configure:5744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5745 if test -z "$ac_err"; then
5747 eval "ac_cv_header_$ac_safe=yes"
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5753 eval "ac_cv_header_$ac_safe=no"
5757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5758 echo "$ac_t""yes" 1>&6
5759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5760 cat >> confdefs.h <<EOF
5761 #define $ac_tr_hdr 1
5764 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5767 echo "$ac_t""no" 1>&6
5772 for ac_hdr in sys/ioctl.h
5774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_hdr" >&5
5777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5786 { (eval echo configure:5787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5788 if test -z "$ac_err"; then
5790 eval "ac_cv_header_$ac_safe=yes"
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5796 eval "ac_cv_header_$ac_safe=no"
5800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5801 echo "$ac_t""yes" 1>&6
5802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5803 cat >> confdefs.h <<EOF
5804 #define $ac_tr_hdr 1
5807 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5808 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5812 echo "configure:5813: checking for $ac_hdr" >&5
5813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5822 { (eval echo configure:5823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5824 if test -z "$ac_err"; then
5826 eval "ac_cv_header_$ac_safe=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 eval "ac_cv_header_$ac_safe=no"
5836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5837 echo "$ac_t""yes" 1>&6
5838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5839 cat >> confdefs.h <<EOF
5840 #define $ac_tr_hdr 1
5844 echo "$ac_t""no" 1>&6
5850 OPENBSD_DVD_STRUCT=0
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5854 #include <sys/cdio.h>
5856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5857 egrep "dvd_struct" >/dev/null 2>&1; then
5860 cat >> confdefs.h <<\EOF
5861 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5864 cat > conftest.$ac_ext <<EOF
5865 #line 5866 "configure"
5866 #include "confdefs.h"
5867 #include <sys/cdio.h>
5869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5870 egrep "struct dvd_struct" >/dev/null 2>&1; then
5876 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887 #include <sys/dvdio.h>
5889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5890 egrep "dvd_struct" >/dev/null 2>&1; then
5893 cat >> confdefs.h <<\EOF
5894 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5897 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure"
5899 #include "confdefs.h"
5900 #include <sys/dvdio.h>
5902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5903 egrep "struct dvd_struct" >/dev/null 2>&1; then
5917 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure"
5919 #include "confdefs.h"
5920 #include <linux/cdrom.h>
5922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5923 egrep "dvd_struct" >/dev/null 2>&1; then
5926 cat >> confdefs.h <<\EOF
5927 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5942 egrep "dvd_struct" >/dev/null 2>&1; then
5945 cat >> confdefs.h <<\EOF
5946 #define DVD_STRUCT_IN_DVD_H 1
5949 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
5955 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
5957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5959 echo "configure:5960: checking for $ac_hdr" >&5
5960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5961 echo $ac_n "(cached) $ac_c" 1>&6
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5969 { (eval echo configure:5970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5971 if test -z "$ac_err"; then
5973 eval "ac_cv_header_$ac_safe=yes"
5976 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5979 eval "ac_cv_header_$ac_safe=no"
5983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5984 echo "$ac_t""yes" 1>&6
5985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5986 cat >> confdefs.h <<EOF
5987 #define $ac_tr_hdr 1
5991 cat >> confdefs.h <<\EOF
5992 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
5995 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
5999 echo "$ac_t""no" 1>&6
6007 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6008 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6009 echo "configure:6010: checking for sys/scsi/scsi_types.h" >&5
6010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6011 echo $ac_n "(cached) $ac_c" 1>&6
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6016 #include <sys/scsi/scsi_types.h>
6018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6019 { (eval echo configure:6020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6021 if test -z "$ac_err"; then
6023 eval "ac_cv_header_$ac_safe=yes"
6026 echo "configure: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6029 eval "ac_cv_header_$ac_safe=no"
6033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6034 echo "$ac_t""yes" 1>&6
6036 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6037 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6038 echo "configure:6039: checking for sys/scsi/impl/uscsi.h" >&5
6039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 #include <sys/scsi/impl/uscsi.h>
6047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6048 { (eval echo configure:6049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6050 if test -z "$ac_err"; then
6052 eval "ac_cv_header_$ac_safe=yes"
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6058 eval "ac_cv_header_$ac_safe=no"
6062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6063 echo "$ac_t""yes" 1>&6
6065 cat >> confdefs.h <<\EOF
6066 #define SOLARIS_USCSI 1
6071 echo "$ac_t""no" 1>&6
6076 echo "$ac_t""no" 1>&6
6079 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6080 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6081 echo "configure:6082: checking for sys/scsi.h" >&5
6082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6083 echo $ac_n "(cached) $ac_c" 1>&6
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 #include <sys/scsi.h>
6090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6091 { (eval echo configure:6092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6093 if test -z "$ac_err"; then
6095 eval "ac_cv_header_$ac_safe=yes"
6098 echo "configure: failed program was:" >&5
6099 cat conftest.$ac_ext >&5
6101 eval "ac_cv_header_$ac_safe=no"
6105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 #include <sys/scsi.h>
6113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114 egrep "sctl_io" >/dev/null 2>&1; then
6117 cat >> confdefs.h <<\EOF
6118 #define HPUX_SCTL_IO 1
6127 echo "$ac_t""no" 1>&6
6130 if test x$LINUX_DVD_STRUCT = x1; then
6131 cat >> confdefs.h <<\EOF
6132 #define HAVE_LINUX_DVD_STRUCT 1
6135 if test x$OPENBSD_DVD_STRUCT = x1; then
6136 cat >> confdefs.h <<\EOF
6137 #define HAVE_OPENBSD_DVD_STRUCT 1
6142 if test x$BSD_DVD_STRUCT = x1; then
6143 cat >> confdefs.h <<\EOF
6144 #define HAVE_BSD_DVD_STRUCT 1
6151 echo "$ac_t""no" 1>&6
6156 # Check whether --with- or --without- was given.
6157 if test "${with_+set}" = set; then
6162 # Check whether --with- or --without- was given.
6163 if test "${with_+set}" = set; then
6169 # Check whether --with-tuning or --without-tuning was given.
6170 if test "${with_tuning+set}" = set; then
6171 withval="$with_tuning"
6175 if test "x$withval" != "x"; then
6178 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6180 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6184 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6187 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6190 # Check whether --enable-optimizations or --disable-optimizations was given.
6191 if test "${enable_optimizations+set}" = set; then
6192 enableval="$enable_optimizations"
6193 if test x$enableval = xno; then OPTIMS=0; fi
6199 # Check whether --enable-altivec or --disable-altivec was given.
6200 if test "${enable_altivec+set}" = set; then
6201 enableval="$enable_altivec"
6202 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6203 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6205 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6206 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6211 # Check whether --enable-debug or --disable-debug was given.
6212 if test "${enable_debug+set}" = set; then
6213 enableval="$enable_debug"
6214 if test x$enableval = xyes; then DEBUG=1; fi
6218 # Check whether --enable-release or --disable-release was given.
6219 if test "${enable_release+set}" = set; then
6220 enableval="$enable_release"
6221 if test x$enableval = xyes; then RELEASE=1; fi
6223 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6224 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6229 # Check whether --with- or --without- was given.
6230 if test "${with_+set}" = set; then
6239 # Check whether --with-dvdcss or --without-dvdcss was given.
6240 if test "${with_dvdcss+set}" = set; then
6241 withval="$with_dvdcss"
6242 case "x${withval}" in
6244 # local libdvdcss, statically linked
6245 BUILTINS="${BUILTINS} dvd"
6246 if test x${CAN_BUILD_LIBDVDCSS} = x1
6250 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6251 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6255 # local libdvdcss, dynamically linked
6256 PLUGINS="${PLUGINS} dvd"
6257 if test x${CAN_BUILD_LIBDVDCSS} = x1
6260 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6261 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6265 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6266 PLUGINS="${PLUGINS} dvd"
6268 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6269 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6270 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6271 LIB_DVD="${LIB_DVD} -ldl"
6274 # existing libdvdcss
6275 PLUGINS="${PLUGINS} dvd"
6276 if test "x$withval" != "xyes"
6278 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6279 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6281 LIB_DVD="${LIB_DVD} -ldvdcss"
6284 # user didn't decide, we choose to use local libdvdcss and link statically
6285 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6286 if test x${CAN_BUILD_LIBDVDCSS} = x1
6288 BUILTINS="${BUILTINS} dvd"
6291 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6292 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6294 # XXX: no check for libdl is done, don't try this at home !
6295 PLUGINS="${PLUGINS} dvd"
6297 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6298 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6299 LIB_DVD="${LIB_DVD} -ldl"
6304 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6305 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6306 # Check whether --with-dvdread or --without-dvdread was given.
6307 if test "${with_dvdread+set}" = set; then
6308 withval="$with_dvdread"
6309 case "x${withval}" in
6311 if test x${STATIC_LIBDVDREAD} = x1
6313 BUILTINS="${BUILTINS} dvdread"
6314 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6315 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6317 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6323 if test x${STATIC_LIBDVDREAD} = x1
6325 #BUILTINS="${BUILTINS} dvdread"
6326 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6327 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6329 #PLUGINS="${PLUGINS} dvdread"
6330 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6331 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6335 if test "x$withval" != "xlocal-shared"
6337 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6338 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6340 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6341 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6343 if test x${STATIC_LIBDVDCSS} = x1
6345 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6347 #PLUGINS="${PLUGINS} dvdread"
6348 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6349 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6352 if test x${DUMMY_LIBDVDCSS} = x1
6354 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6356 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6361 # Check whether --enable-vcd or --disable-vcd was given.
6362 if test "${enable_vcd+set}" = set; then
6363 enableval="$enable_vcd"
6368 if test x$enable_vcd != xno
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6373 #include <linux/cdrom.h>
6375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 egrep "cdrom_msf0" >/dev/null 2>&1; then
6379 PLUGINS="${PLUGINS} vcd"
6385 if test "x${SYS}" = "xbsdi"
6387 PLUGINS="${PLUGINS} vcd"
6390 if test "x${SYS}" = "xdarwin"
6392 PLUGINS="${PLUGINS} vcd"
6393 LIB_VCD="${LIB_VCD} -framework IOKit"
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6400 #include <netinet/in.h>
6402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403 egrep "in6_addr" >/dev/null 2>&1; then
6406 PLUGINS="${PLUGINS} ipv6"
6412 # Check whether --with- or --without- was given.
6413 if test "${with_+set}" = set; then
6419 # Check whether --enable-mad or --disable-mad was given.
6420 if test "${enable_mad+set}" = set; then
6421 enableval="$enable_mad"
6425 if test x$enable_mad == xyes
6427 PLUGINS="${PLUGINS} mad"
6428 LIB_MAD="${LIB_MAD} -lmad"
6429 # Check whether --with-mad or --without-mad was given.
6430 if test "${with_mad+set}" = set; then
6432 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6434 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6435 LIB_MAD="${LIB_MAD} -L$with_val/lib"
6440 save_LDFLAGS=$LDFLAGS
6441 CFLAGS="$CFLAGS $CFLAGS_MAD"
6442 LDFLAGS="$LDFLAGS $LIB_MAD"
6445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6447 echo "configure:6448: checking for $ac_hdr" >&5
6448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6449 echo $ac_n "(cached) $ac_c" 1>&6
6451 cat > conftest.$ac_ext <<EOF
6452 #line 6453 "configure"
6453 #include "confdefs.h"
6456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6457 { (eval echo configure:6458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6459 if test -z "$ac_err"; then
6461 eval "ac_cv_header_$ac_safe=yes"
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 eval "ac_cv_header_$ac_safe=no"
6471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6472 echo "$ac_t""yes" 1>&6
6473 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6474 cat >> confdefs.h <<EOF
6475 #define $ac_tr_hdr 1
6479 echo "$ac_t""no" 1>&6
6480 echo "Cannot find development headers for libmad..."
6486 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6487 echo "configure:6488: checking for mad_bit_init in -lmad" >&5
6488 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6490 echo $ac_n "(cached) $ac_c" 1>&6
6492 ac_save_LIBS="$LIBS"
6494 cat > conftest.$ac_ext <<EOF
6495 #line 6496 "configure"
6496 #include "confdefs.h"
6497 /* Override any gcc2 internal prototype to avoid an error. */
6498 /* We use char because int might match the return type of a gcc2
6499 builtin and then its argument prototype would still apply. */
6500 char mad_bit_init();
6506 if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6508 eval "ac_cv_lib_$ac_lib_var=yes"
6510 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6513 eval "ac_cv_lib_$ac_lib_var=no"
6516 LIBS="$ac_save_LIBS"
6519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6520 echo "$ac_t""yes" 1>&6
6521 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6522 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6523 cat >> confdefs.h <<EOF
6524 #define $ac_tr_lib 1
6530 echo "$ac_t""no" 1>&6
6531 echo "Cannot find libmad library..."
6537 LDFLAGS=$save_LDFLAGS
6540 if test x$SYS = xbeos
6542 PLUGINS="${PLUGINS} beos"
6546 # Check whether --enable-a52 or --disable-a52 was given.
6547 if test "${enable_a52+set}" = set; then
6548 enableval="$enable_a52"
6552 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6554 for ac_hdr in a52dec/a52.h
6556 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6557 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6558 echo "configure:6559: checking for $ac_hdr" >&5
6559 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6568 { (eval echo configure:6569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6570 if test -z "$ac_err"; then
6572 eval "ac_cv_header_$ac_safe=yes"
6575 echo "configure: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6578 eval "ac_cv_header_$ac_safe=no"
6582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6583 echo "$ac_t""yes" 1>&6
6584 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6585 cat >> confdefs.h <<EOF
6586 #define $ac_tr_hdr 1
6589 BUILTINS="${BUILTINS} a52"
6590 LIB_A52="${LIB_A52} -la52"
6593 echo "$ac_t""no" 1>&6
6600 # Check whether --with- or --without- was given.
6601 if test "${with_+set}" = set; then
6607 # Check whether --enable-x11 or --disable-x11 was given.
6608 if test "${enable_x11+set}" = set; then
6609 enableval="$enable_x11"
6613 if test x$enable_x11 != xno &&
6614 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6615 if test x$x_includes = xNONE; then
6616 x_includes=/usr/X11R6/include
6618 if test x$x_libraries = xNONE; then
6619 x_libraries=/usr/X11R6/lib
6621 saved_CPPFLAGS=$CPPFLAGS
6622 CPPFLAGS="$CPPFLAGS -I$x_includes"
6623 for ac_hdr in X11/Xlib.h
6625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6627 echo "configure:6628: checking for $ac_hdr" >&5
6628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6629 echo $ac_n "(cached) $ac_c" 1>&6
6631 cat > conftest.$ac_ext <<EOF
6632 #line 6633 "configure"
6633 #include "confdefs.h"
6636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6637 { (eval echo configure:6638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6639 if test -z "$ac_err"; then
6641 eval "ac_cv_header_$ac_safe=yes"
6644 echo "configure: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6647 eval "ac_cv_header_$ac_safe=no"
6651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6652 echo "$ac_t""yes" 1>&6
6653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6654 cat >> confdefs.h <<EOF
6655 #define $ac_tr_hdr 1
6658 PLUGINS="${PLUGINS} x11"
6659 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6660 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6663 echo "$ac_t""no" 1>&6
6667 CPPFLAGS=$saved_CPPFLAGS
6670 # Check whether --enable-xvideo or --disable-xvideo was given.
6671 if test "${enable_xvideo+set}" = set; then
6672 enableval="$enable_xvideo"
6676 if test x$enable_xvideo != xno &&
6677 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6678 if test x$x_includes = xNONE; then
6679 x_includes=/usr/X11R6/include
6681 if test x$x_libraries = xNONE; then
6682 x_libraries=/usr/X11R6/lib
6684 saved_CPPFLAGS=$CPPFLAGS
6685 CPPFLAGS="$CPPFLAGS -I$x_includes"
6686 for ac_hdr in X11/extensions/Xv.h
6688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6690 echo "configure:6691: checking for $ac_hdr" >&5
6691 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6700 { (eval echo configure:6701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6702 if test -z "$ac_err"; then
6704 eval "ac_cv_header_$ac_safe=yes"
6707 echo "configure: failed program was:" >&5
6708 cat conftest.$ac_ext >&5
6710 eval "ac_cv_header_$ac_safe=no"
6714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6715 echo "$ac_t""yes" 1>&6
6716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6717 cat >> confdefs.h <<EOF
6718 #define $ac_tr_hdr 1
6721 saved_CFLAGS=$CFLAGS
6722 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6723 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6724 echo "configure:6725: checking for XvSetPortAttribute in -lXv_pic" >&5
6725 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6729 ac_save_LIBS="$LIBS"
6730 LIBS="-lXv_pic $LIBS"
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* Override any gcc2 internal prototype to avoid an error. */
6735 /* We use char because int might match the return type of a gcc2
6736 builtin and then its argument prototype would still apply. */
6737 char XvSetPortAttribute();
6740 XvSetPortAttribute()
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6745 eval "ac_cv_lib_$ac_lib_var=yes"
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6750 eval "ac_cv_lib_$ac_lib_var=no"
6753 LIBS="$ac_save_LIBS"
6756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6758 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6759 PLUGINS="${PLUGINS} xvideo"
6760 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6761 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6763 echo "$ac_t""no" 1>&6
6764 # We don't have Xv_pic, let's make xvideo.a as builtin
6765 BUILTINS="${BUILTINS} xvideo"
6766 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6767 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6770 CFLAGS=$saved_CFLAGS
6772 CPPFLAGS=$saved_CPPFLAGS
6774 echo "$ac_t""no" 1>&6
6780 # Check whether --enable-sdl or --disable-sdl was given.
6781 if test "${enable_sdl+set}" = set; then
6782 enableval="$enable_sdl"
6786 if test "x$enable_sdl" != "xno"
6789 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6790 if test "${with_sdl_config_path+set}" = set; then
6791 withval="$with_sdl_config_path"
6792 if test "x$withval" != "xno"
6794 SDL_PATH=$withval:$PATH
6798 # Extract the first word of "sdl12-config", so it can be a program name with args.
6799 set dummy sdl12-config; ac_word=$2
6800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6801 echo "configure:6802: checking for $ac_word" >&5
6802 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6803 echo $ac_n "(cached) $ac_c" 1>&6
6805 case "$SDL12_CONFIG" in
6807 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6810 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6814 ac_dummy="$SDL_PATH"
6815 for ac_dir in $ac_dummy; do
6816 test -z "$ac_dir" && ac_dir=.
6817 if test -f $ac_dir/$ac_word; then
6818 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6823 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6827 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6828 if test -n "$SDL12_CONFIG"; then
6829 echo "$ac_t""$SDL12_CONFIG" 1>&6
6831 echo "$ac_t""no" 1>&6
6834 SDL_CONFIG=${SDL12_CONFIG}
6835 SDL_HEADER="SDL12/SDL.h"
6836 if test x${SDL_CONFIG} = xno
6838 # Extract the first word of "sdl11-config", so it can be a program name with args.
6839 set dummy sdl11-config; ac_word=$2
6840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6841 echo "configure:6842: checking for $ac_word" >&5
6842 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6845 case "$SDL11_CONFIG" in
6847 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6850 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6854 ac_dummy="$SDL_PATH"
6855 for ac_dir in $ac_dummy; do
6856 test -z "$ac_dir" && ac_dir=.
6857 if test -f $ac_dir/$ac_word; then
6858 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6863 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6867 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6868 if test -n "$SDL11_CONFIG"; then
6869 echo "$ac_t""$SDL11_CONFIG" 1>&6
6871 echo "$ac_t""no" 1>&6
6874 SDL_CONFIG=${SDL11_CONFIG}
6875 SDL_HEADER="SDL11/SDL.h"
6877 if test x${SDL_CONFIG} = xno
6879 # Extract the first word of "sdl-config", so it can be a program name with args.
6880 set dummy sdl-config; ac_word=$2
6881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6882 echo "configure:6883: checking for $ac_word" >&5
6883 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6884 echo $ac_n "(cached) $ac_c" 1>&6
6886 case "$SDL_CONFIG" in
6888 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6891 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6895 ac_dummy="$SDL_PATH"
6896 for ac_dir in $ac_dummy; do
6897 test -z "$ac_dir" && ac_dir=.
6898 if test -f $ac_dir/$ac_word; then
6899 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6904 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6908 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6909 if test -n "$SDL_CONFIG"; then
6910 echo "$ac_t""$SDL_CONFIG" 1>&6
6912 echo "$ac_t""no" 1>&6
6915 SDL_HEADER="SDL/SDL.h"
6917 if test x${SDL_CONFIG} != xno
6919 PLUGINS="${PLUGINS} sdl"
6920 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
6921 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6922 save_CPPFLAGS=$CPPFLAGS
6923 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
6924 for ac_hdr in ${SDL_HEADER}
6926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6928 echo "configure:6929: checking for $ac_hdr" >&5
6929 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6930 echo $ac_n "(cached) $ac_c" 1>&6
6932 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6938 { (eval echo configure:6939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6940 if test -z "$ac_err"; then
6942 eval "ac_cv_header_$ac_safe=yes"
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6948 eval "ac_cv_header_$ac_safe=no"
6952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6953 echo "$ac_t""yes" 1>&6
6954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6955 cat >> confdefs.h <<EOF
6956 #define $ac_tr_hdr 1
6958 cat >> confdefs.h <<EOF
6959 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6963 echo "$ac_t""no" 1>&6
6964 { echo "configure: error: The development package for SDL is not installed.
6965 Please install it and try again. Alternatively you can also configure with
6966 --disable-sdl." 1>&2; exit 1; }
6971 CPPFLAGS=$save_CPPFLAGS
6972 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6974 { echo "configure: error: The development package for SDL is not installed.
6975 Please install it and try again. Alternatively you can also configure with
6976 --disable-sdl." 1>&2; exit 1; }
6978 elif test "x$enable_sdl" = "xyes"
6980 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6981 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6986 # Check whether --enable-directx or --disable-directx was given.
6987 if test "${enable_directx+set}" = set; then
6988 enableval="$enable_directx"
6992 if test "x$enableval" != "xno"
6994 if test x$SYS = xmingw32
6996 # Check whether --with-directx or --without-directx was given.
6997 if test "${with_directx+set}" = set; then
6998 withval="$with_directx"
7002 if test "x$with_directx" = "x"
7004 for ac_hdr in ddraw.h
7006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7008 echo "configure:7009: checking for $ac_hdr" >&5
7009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7010 echo $ac_n "(cached) $ac_c" 1>&6
7012 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7018 { (eval echo configure:7019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7020 if test -z "$ac_err"; then
7022 eval "ac_cv_header_$ac_safe=yes"
7025 echo "configure: failed program was:" >&5
7026 cat conftest.$ac_ext >&5
7028 eval "ac_cv_header_$ac_safe=no"
7032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7033 echo "$ac_t""yes" 1>&6
7034 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7035 cat >> confdefs.h <<EOF
7036 #define $ac_tr_hdr 1
7038 PLUGINS="${PLUGINS} directx"
7039 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7041 echo "$ac_t""no" 1>&6
7046 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7047 echo "configure:7048: checking for directX headers in ${withval}" >&5
7048 if test -f ${withval}/ddraw.h
7050 PLUGINS="${PLUGINS} directx"
7051 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7052 INCLUDE="${INCLUDE} -I${withval}"
7053 echo "$ac_t""yes" 1>&6
7055 echo "$ac_t""no" 1>&6
7056 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7062 # Check whether --enable-fb or --disable-fb was given.
7063 if test "${enable_fb+set}" = set; then
7064 enableval="$enable_fb"
7068 if test x$enable_fb != xno
7070 for ac_hdr in linux/fb.h
7072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7074 echo "configure:7075: checking for $ac_hdr" >&5
7075 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7078 cat > conftest.$ac_ext <<EOF
7079 #line 7080 "configure"
7080 #include "confdefs.h"
7083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7084 { (eval echo configure:7085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7086 if test -z "$ac_err"; then
7088 eval "ac_cv_header_$ac_safe=yes"
7091 echo "configure: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7094 eval "ac_cv_header_$ac_safe=no"
7098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7099 echo "$ac_t""yes" 1>&6
7100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7101 cat >> confdefs.h <<EOF
7102 #define $ac_tr_hdr 1
7105 PLUGINS="${PLUGINS} fb"
7108 echo "$ac_t""no" 1>&6
7114 # Check whether --enable-mga or --disable-mga was given.
7115 if test "${enable_mga+set}" = set; then
7116 enableval="$enable_mga"
7117 if test x$enable_mga = xyes
7119 PLUGINS="${PLUGINS} mga xmga"
7124 # Check whether --enable-ggi or --disable-ggi was given.
7125 if test "${enable_ggi+set}" = set; then
7126 enableval="$enable_ggi"
7130 if test x$enable_ggi == xyes
7132 PLUGINS="${PLUGINS} ggi"
7133 LIB_GGI="${LIB_GGI} -lggi"
7134 # Check whether --with-ggi or --without-ggi was given.
7135 if test "${with_ggi+set}" = set; then
7137 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7139 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7140 LIB_GGI="${LIB_GGI} -L$with_val/lib"
7146 # Check whether --enable-glide or --disable-glide was given.
7147 if test "${enable_glide+set}" = set; then
7148 enableval="$enable_glide"
7152 if test x$enable_glide == xyes
7154 PLUGINS="${PLUGINS} glide"
7155 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7156 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7157 # Check whether --with-glide or --without-glide was given.
7158 if test "${with_glide+set}" = set; then
7159 withval="$with_glide"
7160 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7162 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7163 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7170 # Check whether --with- or --without- was given.
7171 if test "${with_+set}" = set; then
7177 # Check whether --enable-dsp or --disable-dsp was given.
7178 if test "${enable_dsp+set}" = set; then
7179 enableval="$enable_dsp"
7184 if test x$enable_dsp != xno &&
7185 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7187 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7191 echo "configure:7192: checking for $ac_hdr" >&5
7192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7195 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7201 { (eval echo configure:7202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7203 if test -z "$ac_err"; then
7205 eval "ac_cv_header_$ac_safe=yes"
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7211 eval "ac_cv_header_$ac_safe=no"
7215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7216 echo "$ac_t""yes" 1>&6
7217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7218 cat >> confdefs.h <<EOF
7219 #define $ac_tr_hdr 1
7222 PLUGINS="${PLUGINS} dsp"
7223 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7224 echo "configure:7225: checking for main in -lossaudio" >&5
7225 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7227 echo $ac_n "(cached) $ac_c" 1>&6
7229 ac_save_LIBS="$LIBS"
7230 LIBS="-lossaudio $LIBS"
7231 cat > conftest.$ac_ext <<EOF
7232 #line 7233 "configure"
7233 #include "confdefs.h"
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7241 eval "ac_cv_lib_$ac_lib_var=yes"
7243 echo "configure: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7246 eval "ac_cv_lib_$ac_lib_var=no"
7249 LIBS="$ac_save_LIBS"
7252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7253 echo "$ac_t""yes" 1>&6
7254 LIB_DSP="${LIB_DSP} -lossaudio"
7256 echo "$ac_t""no" 1>&6
7261 echo "$ac_t""no" 1>&6
7267 # Check whether --enable-esd or --disable-esd was given.
7268 if test "${enable_esd+set}" = set; then
7269 enableval="$enable_esd"
7270 if test x$enable_esd = xyes
7272 # Extract the first word of "esd-config", so it can be a program name with args.
7273 set dummy esd-config; ac_word=$2
7274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7275 echo "configure:7276: checking for $ac_word" >&5
7276 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7277 echo $ac_n "(cached) $ac_c" 1>&6
7279 case "$ESD_CONFIG" in
7281 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7284 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7289 for ac_dir in $ac_dummy; do
7290 test -z "$ac_dir" && ac_dir=.
7291 if test -f $ac_dir/$ac_word; then
7292 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7297 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7301 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7302 if test -n "$ESD_CONFIG"; then
7303 echo "$ac_t""$ESD_CONFIG" 1>&6
7305 echo "$ac_t""no" 1>&6
7308 if test x${ESD_CONFIG} != xno
7310 PLUGINS="${PLUGINS} esd"
7311 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7312 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7318 # Check whether --enable-arts or --disable-arts was given.
7319 if test "${enable_arts+set}" = set; then
7320 enableval="$enable_arts"
7321 if test x$enable_arts = xyes
7323 # Extract the first word of "artsc-config", so it can be a program name with args.
7324 set dummy artsc-config; ac_word=$2
7325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7326 echo "configure:7327: checking for $ac_word" >&5
7327 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7330 case "$ARTS_CONFIG" in
7332 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7335 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7340 for ac_dir in $ac_dummy; do
7341 test -z "$ac_dir" && ac_dir=.
7342 if test -f $ac_dir/$ac_word; then
7343 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7348 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7352 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7353 if test -n "$ARTS_CONFIG"; then
7354 echo "$ac_t""$ARTS_CONFIG" 1>&6
7356 echo "$ac_t""no" 1>&6
7359 if test x${ARTS_CONFIG} != xno
7361 PLUGINS="${PLUGINS} arts"
7362 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7363 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7369 # Check whether --enable-alsa or --disable-alsa was given.
7370 if test "${enable_alsa+set}" = set; then
7371 enableval="$enable_alsa"
7372 if test x$enable_alsa = xyes
7374 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7375 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7376 echo "configure:7377: checking for alsa/asoundlib.h" >&5
7377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7378 echo $ac_n "(cached) $ac_c" 1>&6
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7382 "configure"
7382 #include "confdefs.h"
7383 #include <alsa/asoundlib.h>
7385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7386 { (eval echo configure:7387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7388 if test -z "$ac_err"; then
7390 eval "ac_cv_header_$ac_safe=yes"
7393 echo "configure: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7396 eval "ac_cv_header_$ac_safe=no"
7400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7401 echo "$ac_t""yes" 1>&6
7402 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7403 echo "configure:7404: checking for main in -lasound" >&5
7404 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 ac_save_LIBS="$LIBS"
7409 LIBS="-lasound $LIBS"
7410 cat > conftest.$ac_ext <<EOF
7411 #line 7412 "configure"
7412 #include "confdefs.h"
7418 if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7420 eval "ac_cv_lib_$ac_lib_var=yes"
7422 echo "configure: failed program was:" >&5
7423 cat conftest.$ac_ext >&5
7425 eval "ac_cv_lib_$ac_lib_var=no"
7428 LIBS="$ac_save_LIBS"
7431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7432 echo "$ac_t""yes" 1>&6
7435 echo "$ac_t""no" 1>&6
7440 echo "$ac_t""no" 1>&6
7444 if test x$have_alsa = xtrue
7446 PLUGINS="${PLUGINS} alsa"
7447 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7453 # Check whether --enable-waveout or --disable-waveout was given.
7454 if test "${enable_waveout+set}" = set; then
7455 enableval="$enable_waveout"
7459 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7461 PLUGINS="${PLUGINS} waveout"
7462 LIB_WAVEOUT="-lwinmm"
7466 # Check whether --with- or --without- was given.
7467 if test "${with_+set}" = set; then
7473 # Check whether --enable-gtk or --disable-gtk was given.
7474 if test "${enable_gtk+set}" = set; then
7475 enableval="$enable_gtk"
7479 if test x$enable_gtk != xno
7482 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7483 if test "${with_gtk_config_path+set}" = set; then
7484 withval="$with_gtk_config_path"
7485 if test "x$withval" != "xno"
7487 GTK_PATH=$withval:$PATH
7491 # look for gtk-config
7492 # Extract the first word of "gtk12-config", so it can be a program name with args.
7493 set dummy gtk12-config; ac_word=$2
7494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7495 echo "configure:7496: checking for $ac_word" >&5
7496 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7497 echo $ac_n "(cached) $ac_c" 1>&6
7499 case "$GTK12_CONFIG" in
7501 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7504 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7508 ac_dummy="$GTK_PATH"
7509 for ac_dir in $ac_dummy; do
7510 test -z "$ac_dir" && ac_dir=.
7511 if test -f $ac_dir/$ac_word; then
7512 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7517 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7521 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7522 if test -n "$GTK12_CONFIG"; then
7523 echo "$ac_t""$GTK12_CONFIG" 1>&6
7525 echo "$ac_t""no" 1>&6
7528 GTK_CONFIG=${GTK12_CONFIG}
7529 if test x${GTK_CONFIG} = xno
7531 # Extract the first word of "gtk-config", so it can be a program name with args.
7532 set dummy gtk-config; ac_word=$2
7533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7534 echo "configure:7535: checking for $ac_word" >&5
7535 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7536 echo $ac_n "(cached) $ac_c" 1>&6
7538 case "$GTK_CONFIG" in
7540 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7543 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7547 ac_dummy="$GTK_PATH"
7548 for ac_dir in $ac_dummy; do
7549 test -z "$ac_dir" && ac_dir=.
7550 if test -f $ac_dir/$ac_word; then
7551 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7556 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7560 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7561 if test -n "$GTK_CONFIG"; then
7562 echo "$ac_t""$GTK_CONFIG" 1>&6
7564 echo "$ac_t""no" 1>&6
7568 if test x${GTK_CONFIG} != xno
7570 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7572 { 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; }
7574 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7575 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7576 # now look for the gtk.h header
7577 saved_CPPFLAGS=$CPPFLAGS
7578 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7579 ac_cv_gtk_headers=yes
7580 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7584 echo "configure:7585: checking for $ac_hdr" >&5
7585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7594 { (eval echo configure:7595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7596 if test -z "$ac_err"; then
7598 eval "ac_cv_header_$ac_safe=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 eval "ac_cv_header_$ac_safe=no"
7608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7609 echo "$ac_t""yes" 1>&6
7610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7611 cat >> confdefs.h <<EOF
7612 #define $ac_tr_hdr 1
7616 echo "$ac_t""no" 1>&6
7617 ac_cv_gtk_headers=no
7618 echo "Cannot find gtk development headers."
7623 if test "x$ac_cv_gtk_headers" = xyes
7625 PLUGINS="${PLUGINS} gtk"
7626 ALIASES="${ALIASES} gvlc"
7628 CPPFLAGS=$saved_CPPFLAGS
7632 # Check whether --enable-gnome or --disable-gnome was given.
7633 if test "${enable_gnome+set}" = set; then
7634 enableval="$enable_gnome"
7635 if test x$enable_gnome = xyes; then
7636 # look for gnome-config
7637 # Extract the first word of "gnome-config", so it can be a program name with args.
7638 set dummy gnome-config; ac_word=$2
7639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7640 echo "configure:7641: checking for $ac_word" >&5
7641 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7644 case "$GNOME_CONFIG" in
7646 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7649 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7654 for ac_dir in $ac_dummy; do
7655 test -z "$ac_dir" && ac_dir=.
7656 if test -f $ac_dir/$ac_word; then
7657 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7662 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7666 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7667 if test -n "$GNOME_CONFIG"; then
7668 echo "$ac_t""$GNOME_CONFIG" 1>&6
7670 echo "$ac_t""no" 1>&6
7673 if test -x ${GNOME_CONFIG}
7675 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7676 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7678 # now look for the gnome.h header
7679 saved_CPPFLAGS=$CPPFLAGS
7680 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7681 for ac_hdr in gnome.h
7683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7685 echo "configure:7686: checking for $ac_hdr" >&5
7686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7687 echo $ac_n "(cached) $ac_c" 1>&6
7689 cat > conftest.$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7695 { (eval echo configure:7696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7697 if test -z "$ac_err"; then
7699 eval "ac_cv_header_$ac_safe=yes"
7702 echo "configure: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7705 eval "ac_cv_header_$ac_safe=no"
7709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7710 echo "$ac_t""yes" 1>&6
7711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7712 cat >> confdefs.h <<EOF
7713 #define $ac_tr_hdr 1
7716 PLUGINS="${PLUGINS} gnome"
7717 ALIASES="${ALIASES} gnome-vlc"
7720 echo "$ac_t""no" 1>&6
7721 { echo "configure: error: Can't find gnome headers. Please install the gnome
7722 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7728 CPPFLAGS=$saved_CPPFLAGS
7733 # Check whether --enable-qt or --disable-qt was given.
7734 if test "${enable_qt+set}" = set; then
7735 enableval="$enable_qt"
7736 if test x$enable_qt = xyes; then
7737 PLUGINS="${PLUGINS} qt"
7738 ALIASES="${ALIASES} qvlc"
7739 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7740 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7741 if test -x ${QTDIR}/bin/moc
7743 MOC=${QTDIR}/bin/moc
7751 # Check whether --enable-kde or --disable-kde was given.
7752 if test "${enable_kde+set}" = set; then
7753 enableval="$enable_kde"
7754 if test x$enable_kde = xyes; then
7755 PLUGINS="${PLUGINS} kde"
7756 ALIASES="${ALIASES} kvlc"
7757 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7758 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7759 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7760 if test -x ${QTDIR}/bin/moc
7762 MOC=${QTDIR}/bin/moc
7770 # Check whether --enable-macosx or --disable-macosx was given.
7771 if test "${enable_macosx+set}" = set; then
7772 enableval="$enable_macosx"
7773 if test x$enable_macosx = xyes
7775 BUILTINS="${BUILTINS} macosx"
7776 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7777 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7781 for ac_hdr in Cocoa/Cocoa.h
7783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7785 echo "configure:7786: checking for $ac_hdr" >&5
7786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7789 cat > conftest.$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7795 { (eval echo configure:7796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7797 if test -z "$ac_err"; then
7799 eval "ac_cv_header_$ac_safe=yes"
7802 echo "configure: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7805 eval "ac_cv_header_$ac_safe=no"
7809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7810 echo "$ac_t""yes" 1>&6
7811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7812 cat >> confdefs.h <<EOF
7813 #define $ac_tr_hdr 1
7815 BUILTINS="${BUILTINS} macosx"
7816 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7817 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7821 echo "$ac_t""no" 1>&6
7828 # Check whether --enable-qnx or --disable-qnx was given.
7829 if test "${enable_qnx+set}" = set; then
7830 enableval="$enable_qnx"
7834 if test x$enable_qnx != xno
7838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7840 echo "configure:7841: checking for $ac_hdr" >&5
7841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7842 echo $ac_n "(cached) $ac_c" 1>&6
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7850 { (eval echo configure:7851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7852 if test -z "$ac_err"; then
7854 eval "ac_cv_header_$ac_safe=yes"
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7860 eval "ac_cv_header_$ac_safe=no"
7864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7867 cat >> confdefs.h <<EOF
7868 #define $ac_tr_hdr 1
7871 PLUGINS="${PLUGINS} qnx"
7872 LIB_QNX="${LIB_QNX} -lasound -lph"
7875 echo "$ac_t""no" 1>&6
7881 # Check whether --enable-win32 or --disable-win32 was given.
7882 if test "${enable_win32+set}" = set; then
7883 enableval="$enable_win32"
7884 if test "x$enableval" != "xno"
7886 PLUGINS="${PLUGINS} win32"
7891 # Check whether --enable-ncurses or --disable-ncurses was given.
7892 if test "${enable_ncurses+set}" = set; then
7893 enableval="$enable_ncurses"
7894 if test x$enable_ncurses = xyes; then
7895 PLUGINS="${PLUGINS} ncurses"
7896 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7901 # Check whether --enable-lirc or --disable-lirc was given.
7902 if test "${enable_lirc+set}" = set; then
7903 enableval="$enable_lirc"
7907 if test x$enable_lirc = xyes
7909 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7910 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7911 echo "configure:7912: checking for lirc/lirc_client.h" >&5
7912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7913 echo $ac_n "(cached) $ac_c" 1>&6
7915 cat > conftest.$ac_ext <<EOF
7916 #line 7917 "configure"
7917 #include "confdefs.h"
7918 #include <lirc/lirc_client.h>
7920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7921 { (eval echo configure:7922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7923 if test -z "$ac_err"; then
7925 eval "ac_cv_header_$ac_safe=yes"
7928 echo "configure: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7931 eval "ac_cv_header_$ac_safe=no"
7935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7936 echo "$ac_t""yes" 1>&6
7937 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7938 echo "configure:7939: checking for lirc_init in -llirc_client" >&5
7939 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7941 echo $ac_n "(cached) $ac_c" 1>&6
7943 ac_save_LIBS="$LIBS"
7944 LIBS="-llirc_client $LIBS"
7945 cat > conftest.$ac_ext <<EOF
7946 #line 7947 "configure"
7947 #include "confdefs.h"
7948 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7957 if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7959 eval "ac_cv_lib_$ac_lib_var=yes"
7961 echo "configure: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7964 eval "ac_cv_lib_$ac_lib_var=no"
7967 LIBS="$ac_save_LIBS"
7970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7971 echo "$ac_t""yes" 1>&6
7974 echo "$ac_t""no" 1>&6
7979 echo "$ac_t""no" 1>&6
7983 if test x$have_lirc = xtrue
7985 PLUGINS="${PLUGINS} lirc"
7986 LIB_LIRC="${LIB_LIRC} -llirc_client"
7992 # Check whether --with- or --without- was given.
7993 if test "${with_+set}" = set; then
7999 # Check whether --with-words or --without-words was given.
8000 if test "${with_words+set}" = set; then
8001 withval="$with_words"
8007 ac_cv_c_bigendian=yes
8010 ac_cv_c_bigendian=no
8013 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8014 echo "configure:8015: checking whether the byte order is big-endian" >&5
8015 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8018 ac_cv_c_bigendian=unknown
8019 cat >conftest.c <<EOF
8020 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8021 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8022 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8023 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8024 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8025 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8026 int main(void) { _a(); _e(); return 0; }
8029 if test -f conftest.c
8031 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
8032 && test -f conftest.o
8034 if test "`strings conftest.o | grep BIGenDianSyS`"
8036 ac_cv_c_bigendian=yes
8038 if test "`strings conftest.o | grep LiTTleEnDian`"
8040 ac_cv_c_bigendian=no
8047 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8048 if test x$ac_cv_c_bigendian = xunknown
8050 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8054 if test $ac_cv_c_bigendian = yes
8056 cat >> confdefs.h <<\EOF
8057 #define WORDS_BIGENDIAN 1
8063 # Check whether --with-dll-path or --without-dll-path was given.
8064 if test "${with_dll_path+set}" = set; then
8065 withval="$with_dll_path"
8066 if test "x$withval" != "xno"
8074 # Check whether --enable-gprof or --disable-gprof was given.
8075 if test "${enable_gprof+set}" = set; then
8076 enableval="$enable_gprof"
8077 if test x$enableval = xyes; then GPROF=1; fi
8082 # Check whether --enable-cprof or --disable-cprof was given.
8083 if test "${enable_cprof+set}" = set; then
8084 enableval="$enable_cprof"
8085 if test x$enableval = xyes;
8087 LIB="${LIB} -lcprof"
8094 # Check whether --enable-pth or --disable-pth was given.
8095 if test "${enable_pth+set}" = set; then
8096 enableval="$enable_pth"
8097 if test x$enableval = xyes; then
8098 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8099 echo "configure:8100: checking for pth_init in -lpth" >&5
8100 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8102 echo $ac_n "(cached) $ac_c" 1>&6
8104 ac_save_LIBS="$LIBS"
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8109 /* Override any gcc2 internal prototype to avoid an error. */
8110 /* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8118 if { (eval echo configure:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8120 eval "ac_cv_lib_$ac_lib_var=yes"
8122 echo "configure: failed program was:" >&5
8123 cat conftest.$ac_ext >&5
8125 eval "ac_cv_lib_$ac_lib_var=no"
8128 LIBS="$ac_save_LIBS"
8131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8132 echo "$ac_t""yes" 1>&6
8133 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8134 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8135 cat >> confdefs.h <<EOF
8136 #define $ac_tr_lib 1
8142 echo "$ac_t""no" 1>&6
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151 egrep "pth_init" >/dev/null 2>&1; then
8154 cat >> confdefs.h <<\EOF
8155 #define PTH_INIT_IN_PTH_H 1
8167 # Check whether --enable-st or --disable-st was given.
8168 if test "${enable_st+set}" = set; then
8169 enableval="$enable_st"
8170 if test x$enableval = xyes; then
8171 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8172 echo "configure:8173: checking for st_init in -lst" >&5
8173 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8177 ac_save_LIBS="$LIBS"
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 /* Override any gcc2 internal prototype to avoid an error. */
8183 /* We use char because int might match the return type of a gcc2
8184 builtin and then its argument prototype would still apply. */
8191 if { (eval echo configure:8192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8193 eval "ac_cv_lib_$ac_lib_var=yes"
8195 echo "configure: failed program was:" >&5
8196 cat conftest.$ac_ext >&5
8198 eval "ac_cv_lib_$ac_lib_var=no"
8201 LIBS="$ac_save_LIBS"
8204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8205 echo "$ac_t""yes" 1>&6
8206 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8207 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8208 cat >> confdefs.h <<EOF
8209 #define $ac_tr_lib 1
8215 echo "$ac_t""no" 1>&6
8218 cat > conftest.$ac_ext <<EOF
8219 #line 8220 "configure"
8220 #include "confdefs.h"
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224 egrep "st_init" >/dev/null 2>&1; then
8227 cat >> confdefs.h <<\EOF
8228 #define ST_INIT_IN_ST_H 1
8240 LIB="${LIB} ${THREAD_LIB}"
8242 # Check whether --enable-plugins or --disable-plugins was given.
8243 if test "${enable_plugins+set}" = set; then
8244 enableval="$enable_plugins"
8245 if test x$enable_plugins = xno
8247 BUILTINS="${BUILTINS} ${PLUGINS}"
8253 cat >> confdefs.h <<EOF
8254 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8257 cat >> confdefs.h <<EOF
8258 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8262 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8263 cat >> confdefs.h <<EOF
8264 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8267 cat >> confdefs.h <<EOF
8268 #define MODULE_SYMBOL $VLC_SYMBOL
8272 DATA_PATH="${ac_tool_prefix}/share/videolan"
8274 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8372 cat > confcache <<\EOF
8373 # This file is a shell script that caches the results of configure
8374 # tests run on this system so they can be shared between configure
8375 # scripts and configure runs. It is not useful on other systems.
8376 # If it contains results you don't want to keep, you may remove or edit it.
8378 # By default, configure uses ./config.cache as the cache file,
8379 # creating it if it does not exist already. You can give configure
8380 # the --cache-file=FILE option to use a different cache file; that is
8381 # what configure does when it calls configure scripts in
8382 # subdirectories, so they share the cache.
8383 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8384 # config.status only pays attention to the cache file if you give it the
8385 # --recheck option to rerun configure.
8388 # The following way of writing the cache mishandles newlines in values,
8389 # but we know of no workaround that is simple, portable, and efficient.
8390 # So, don't put newlines in cache variables' values.
8391 # Ultrix sh set writes to stderr and can't be redirected directly,
8392 # and sets the high bit in the cache file unless we assign to the vars.
8394 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8396 # `set' does not quote correctly, so add quotes (double-quote substitution
8397 # turns \\\\ into \\, and sed turns \\ into \).
8399 -e "s/'/'\\\\''/g" \
8400 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8403 # `set' quotes correctly as required by POSIX, so do not add quotes.
8404 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8407 if cmp -s $cache_file confcache; then
8410 if test -w $cache_file; then
8411 echo "updating cache $cache_file"
8412 cat confcache > $cache_file
8414 echo "not updating unwritable cache $cache_file"
8419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8422 # Let make expand exec_prefix.
8423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8425 # Any assignment to VPATH causes Sun make to only execute
8426 # the first set of double-colon rules, so remove it if not needed.
8427 # If there is a colon in the path, we need to keep it.
8428 if test "x$srcdir" = x.; then
8429 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8432 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8434 DEFS=-DHAVE_CONFIG_H
8436 # Without the "./", some shells look in PATH for config.status.
8437 : ${CONFIG_STATUS=./config.status}
8439 echo creating $CONFIG_STATUS
8440 rm -f $CONFIG_STATUS
8441 cat > $CONFIG_STATUS <<EOF
8443 # Generated automatically by configure.
8444 # Run this file to recreate the current configuration.
8445 # This directory was configured as follows,
8446 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8448 # $0 $ac_configure_args
8450 # Compiler output produced by configure, useful for debugging
8451 # configure, is in ./config.log if it exists.
8453 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8456 case "\$ac_option" in
8457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8458 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8459 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8460 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8461 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8463 -help | --help | --hel | --he | --h)
8464 echo "\$ac_cs_usage"; exit 0 ;;
8465 *) echo "\$ac_cs_usage"; exit 1 ;;
8469 ac_given_srcdir=$srcdir
8470 ac_given_INSTALL="$INSTALL"
8472 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8474 cat >> $CONFIG_STATUS <<EOF
8476 # Protect against being on the right side of a sed subst in config.status.
8477 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8478 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8482 s%@CFLAGS@%$CFLAGS%g
8483 s%@CPPFLAGS@%$CPPFLAGS%g
8484 s%@CXXFLAGS@%$CXXFLAGS%g
8485 s%@FFLAGS@%$FFLAGS%g
8487 s%@LDFLAGS@%$LDFLAGS%g
8489 s%@exec_prefix@%$exec_prefix%g
8490 s%@prefix@%$prefix%g
8491 s%@program_transform_name@%$program_transform_name%g
8492 s%@bindir@%$bindir%g
8493 s%@sbindir@%$sbindir%g
8494 s%@libexecdir@%$libexecdir%g
8495 s%@datadir@%$datadir%g
8496 s%@sysconfdir@%$sysconfdir%g
8497 s%@sharedstatedir@%$sharedstatedir%g
8498 s%@localstatedir@%$localstatedir%g
8499 s%@libdir@%$libdir%g
8500 s%@includedir@%$includedir%g
8501 s%@oldincludedir@%$oldincludedir%g
8502 s%@infodir@%$infodir%g
8503 s%@mandir@%$mandir%g
8505 s%@host_alias@%$host_alias%g
8506 s%@host_cpu@%$host_cpu%g
8507 s%@host_vendor@%$host_vendor%g
8508 s%@host_os@%$host_os%g
8509 s%@target@%$target%g
8510 s%@target_alias@%$target_alias%g
8511 s%@target_cpu@%$target_cpu%g
8512 s%@target_vendor@%$target_vendor%g
8513 s%@target_os@%$target_os%g
8515 s%@build_alias@%$build_alias%g
8516 s%@build_cpu@%$build_cpu%g
8517 s%@build_vendor@%$build_vendor%g
8518 s%@build_os@%$build_os%g
8519 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8520 s%@SET_MAKE@%$SET_MAKE%g
8523 s%@RANLIB@%$RANLIB%g
8524 s%@ALLOCA@%$ALLOCA%g
8525 s%@GLIBC21@%$GLIBC21%g
8526 s%@LIBICONV@%$LIBICONV%g
8527 s%@USE_NLS@%$USE_NLS%g
8528 s%@MSGFMT@%$MSGFMT%g
8529 s%@GMSGFMT@%$GMSGFMT%g
8530 s%@XGETTEXT@%$XGETTEXT%g
8531 s%@INTLBISON@%$INTLBISON%g
8532 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8533 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8534 s%@CATALOGS@%$CATALOGS%g
8535 s%@CATOBJEXT@%$CATOBJEXT%g
8536 s%@GMOFILES@%$GMOFILES%g
8537 s%@INTLLIBS@%$INTLLIBS%g
8538 s%@INTLOBJS@%$INTLOBJS%g
8539 s%@POFILES@%$POFILES%g
8541 s%@DATADIRNAME@%$DATADIRNAME%g
8542 s%@INSTOBJEXT@%$INSTOBJEXT%g
8543 s%@GENCAT@%$GENCAT%g
8544 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8545 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8546 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8547 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8548 s%@INSTALL_DATA@%$INSTALL_DATA%g
8549 s%@WINDRES@%$WINDRES%g
8550 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8551 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8552 s%@SDL_CONFIG@%$SDL_CONFIG%g
8553 s%@ESD_CONFIG@%$ESD_CONFIG%g
8554 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8555 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8556 s%@GTK_CONFIG@%$GTK_CONFIG%g
8557 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8558 s%@DATA_PATH@%$DATA_PATH%g
8559 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8562 s%@PLUGINS@%$PLUGINS%g
8563 s%@BUILTINS@%$BUILTINS%g
8564 s%@ALIASES@%$ALIASES%g
8565 s%@INCLUDE@%$INCLUDE%g
8570 s%@OPTIMS@%$OPTIMS%g
8571 s%@TUNING@%$TUNING%g
8572 s%@RELEASE@%$RELEASE%g
8574 s%@DLL_PATH@%$DLL_PATH%g
8575 s%@PACKAGE@%$PACKAGE%g
8576 s%@VERSION@%$VERSION%g
8577 s%@VCD_DEVICE@%$VCD_DEVICE%g
8578 s%@DVD_DEVICE@%$DVD_DEVICE%g
8579 s%@PLDFLAGS@%$PLDFLAGS%g
8580 s%@SOFLAGS@%$SOFLAGS%g
8582 s%@LIB_ALSA@%$LIB_ALSA%g
8583 s%@LIB_ARTS@%$LIB_ARTS%g
8584 s%@LIB_BEOS@%$LIB_BEOS%g
8585 s%@LIB_DARWIN@%$LIB_DARWIN%g
8586 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8587 s%@LIB_DSP@%$LIB_DSP%g
8588 s%@LIB_DVD@%$LIB_DVD%g
8589 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8590 s%@LIB_ESD@%$LIB_ESD%g
8591 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8592 s%@LIB_GGI@%$LIB_GGI%g
8593 s%@LIB_GLIDE@%$LIB_GLIDE%g
8594 s%@LIB_GNOME@%$LIB_GNOME%g
8595 s%@LIB_GTK@%$LIB_GTK%g
8596 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8597 s%@LIB_IMDCT@%$LIB_IMDCT%g
8598 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8599 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8600 s%@LIB_IPV4@%$LIB_IPV4%g
8601 s%@LIB_IPV6@%$LIB_IPV6%g
8602 s%@LIB_KDE@%$LIB_KDE%g
8603 s%@LIB_A52@%$LIB_A52%g
8604 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8605 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8606 s%@LIB_LIRC@%$LIB_LIRC%g
8607 s%@LIB_MACOSX@%$LIB_MACOSX%g
8608 s%@LIB_MAD@%$LIB_MAD%g
8609 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8610 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8611 s%@LIB_NCURSES@%$LIB_NCURSES%g
8612 s%@LIB_QNX@%$LIB_QNX%g
8613 s%@LIB_QT@%$LIB_QT%g
8614 s%@LIB_RC@%$LIB_RC%g
8615 s%@LIB_SDL@%$LIB_SDL%g
8616 s%@LIB_VCD@%$LIB_VCD%g
8617 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8618 s%@LIB_WIN32@%$LIB_WIN32%g
8619 s%@LIB_X11@%$LIB_X11%g
8620 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8621 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8622 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8623 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8624 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8625 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8626 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8627 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8628 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8629 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8630 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8631 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8632 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8633 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8634 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8635 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8636 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8637 s%@CFLAGS_QT@%$CFLAGS_QT%g
8638 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8639 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8640 s%@CFLAGS_X11@%$CFLAGS_X11%g
8641 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8642 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8643 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8644 s%@NEED_GETOPT@%$NEED_GETOPT%g
8645 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8650 cat >> $CONFIG_STATUS <<\EOF
8652 # Split the substitutions into bite-sized pieces for seds with
8653 # small command number limits, like on Digital OSF/1 and HP-UX.
8654 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8655 ac_file=1 # Number of current file.
8656 ac_beg=1 # First line for current file.
8657 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8660 while $ac_more_lines; do
8661 if test $ac_beg -gt 1; then
8662 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8664 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8666 if test ! -s conftest.s$ac_file; then
8668 rm -f conftest.s$ac_file
8670 if test -z "$ac_sed_cmds"; then
8671 ac_sed_cmds="sed -f conftest.s$ac_file"
8673 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8675 ac_file=`expr $ac_file + 1`
8677 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8680 if test -z "$ac_sed_cmds"; then
8685 cat >> $CONFIG_STATUS <<EOF
8687 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8689 cat >> $CONFIG_STATUS <<\EOF
8690 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8691 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8693 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8694 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8695 *) ac_file_in="${ac_file}.in" ;;
8698 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8700 # Remove last slash and all that follows it. Not all systems have dirname.
8701 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8702 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8703 # The file is in a subdirectory.
8704 test ! -d "$ac_dir" && mkdir "$ac_dir"
8705 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8706 # A "../" for each directory in $ac_dir_suffix.
8707 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8709 ac_dir_suffix= ac_dots=
8712 case "$ac_given_srcdir" in
8714 if test -z "$ac_dots"; then top_srcdir=.
8715 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8716 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8718 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8719 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8722 case "$ac_given_INSTALL" in
8723 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8724 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8727 echo creating "$ac_file"
8729 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8731 *Makefile*) ac_comsub="1i\\
8732 # $configure_input" ;;
8736 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8738 s%@configure_input@%$configure_input%g
8739 s%@srcdir@%$srcdir%g
8740 s%@top_srcdir@%$top_srcdir%g
8741 s%@INSTALL@%$INSTALL%g
8742 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8746 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8747 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8749 # ac_d sets the value in "#define NAME VALUE" lines.
8750 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8751 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8754 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8755 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8756 ac_uB='\([ ]\)%\1#\2define\3'
8759 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8760 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8761 ac_eB='$%\1#\2define\3'
8765 if test "${CONFIG_HEADERS+set}" != set; then
8767 cat >> $CONFIG_STATUS <<EOF
8768 CONFIG_HEADERS="include/defs.h"
8770 cat >> $CONFIG_STATUS <<\EOF
8772 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8773 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8775 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8776 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8777 *) ac_file_in="${ac_file}.in" ;;
8780 echo creating $ac_file
8782 rm -f conftest.frag conftest.in conftest.out
8783 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8784 cat $ac_file_inputs > conftest.in
8788 # Transform confdefs.h into a sed script conftest.vals that substitutes
8789 # the proper values into config.h.in to produce config.h. And first:
8790 # Protect against being on the right side of a sed subst in config.status.
8791 # Protect against being in an unquoted here document in config.status.
8793 cat > conftest.hdr <<\EOF
8796 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8800 sed -n -f conftest.hdr confdefs.h > conftest.vals
8803 # This sed command replaces #undef with comments. This is necessary, for
8804 # example, in the case of _POSIX_SOURCE, which is predefined and required
8805 # on some systems where configure will not decide to define it.
8806 cat >> conftest.vals <<\EOF
8807 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8810 # Break up conftest.vals because some shells have a limit on
8811 # the size of here documents, and old seds have small limits too.
8816 ac_lines=`grep -c . conftest.vals`
8817 # grep -c gives empty output for an empty file on some AIX systems.
8818 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8819 # Write a limited-size here document to conftest.frag.
8820 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8821 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8823 sed -f conftest.frag conftest.in > conftest.out
8825 mv conftest.out conftest.in
8827 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8829 mv conftest.tail conftest.vals
8833 cat >> $CONFIG_STATUS <<\EOF
8834 rm -f conftest.frag conftest.h
8835 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8836 cat conftest.in >> conftest.h
8838 if cmp -s $ac_file conftest.h 2>/dev/null; then
8839 echo "$ac_file is unchanged"
8842 # Remove last slash and all that follows it. Not all systems have dirname.
8843 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8844 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8845 # The file is in a subdirectory.
8846 test ! -d "$ac_dir" && mkdir "$ac_dir"
8849 mv conftest.h $ac_file
8854 cat >> $CONFIG_STATUS <<EOF
8858 cat >> $CONFIG_STATUS <<\EOF
8859 for ac_file in $CONFIG_FILES; do
8860 # Support "outfile[:infile[:infile...]]"
8862 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8864 # PO directories have a Makefile.in generated from Makefile.in.in.
8865 case "$ac_file" in */Makefile.in)
8866 # Adjust a relative srcdir.
8867 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8868 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8869 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8870 # In autoconf-2.13 it is called $ac_given_srcdir.
8871 # In autoconf-2.50 it is called $srcdir.
8872 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8873 case "$ac_given_srcdir" in
8874 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8875 /*) top_srcdir="$ac_given_srcdir" ;;
8876 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8878 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8879 rm -f "$ac_dir/POTFILES"
8880 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8881 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8882 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8883 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8891 chmod +x $CONFIG_STATUS
8892 rm -fr confdefs* $ac_clean_files
8893 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8897 global configuration
8898 --------------------
8900 architecture : ${ARCH}
8901 optimizations : ${OPTIMS}
8903 release: : ${RELEASE}"
8905 if test x${HAVE_VLC} = x1
8910 vlc version : ${VLC_VERSION}
8911 debug mode : ${DEBUG}
8912 cprof/gprof support : ${CPROF}/${GPROF}
8913 need builtin getopt : ${NEED_GETOPT}
8914 built-in modules :${BUILTINS}
8915 plug-in modules :${PLUGINS}
8916 vlc aliases :${ALIASES}"
8920 libdvdcss configuration
8921 -----------------------
8922 can be built : ${CAN_BUILD_LIBDVDCSS}
8923 will be built : ${NEED_LIBDVDCSS}"
8924 if test x${NEED_LIBDVDCSS} = x1
8926 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
8927 echo "link statically : ${STATIC_LIBDVDCSS}"
8929 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
8933 You may now tune Makefile.opts at your convenience, for instance to choose
8934 which modules get compiled as plugins.
8936 if test x${HAVE_VLC} = x1
8938 echo "To build vlc and its plugins, type \`make'."
8940 if test x${NEED_LIBDVDCSS} = x1
8942 echo "To build libdvdcss only, type \`make libdvdcss'."