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"
21 --with-words=endianness Set endianness (big or little)"
23 --with-tuning=[arch] Enable special tuning for an architecture
24 (default i686 on IA-32 and 750 on PPC)"
26 --enable-release Activate extra optimizations (default disabled)"
28 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
30 --enable-debug Enable debug mode (default disabled)"
32 --enable-gprof Enable gprof profiling (default disabled)"
34 --enable-cprof Enable cprof profiling (default disabled)"
36 --disable-optimizations Disable compiler optimizations (default enabled)"
38 --enable-pth Enable GNU Pth support (default disabled)"
40 --enable-st Enable State Threads (default disabled)"
42 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
43 or 'local-static', 'local-shared', or a path to
44 another libdvdcss such as '/usr/local'
45 (default 'local-static')"
47 --with-dvdread[=name] way to use libdvdread,
48 same options as --with-dvdcss (default no)"
50 --enable-vcd VCD support for Linux (default enabled)"
52 --disable-dummy dummy module (default enabled)"
54 --disable-logger file logger module (default enabled)"
56 --disable-null Null module (default enabled)"
58 --disable-rc Remote Control module (default enabled)"
60 --with-mad[=PATH] libmad module (default disabled)"
62 --disable-dsp Linux /dev/dsp support (default enabled)"
64 --enable-esd Esound library support (default disabled)"
66 --enable-arts aRts sound server (default disabled)"
68 --enable-macosx MacOS X support (default enabled on MacOS X)"
70 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
72 --disable-a52 AC3 support with liba52 (default enabled)"
74 --enable-fb Linux framebuffer support (default disabled)"
76 --enable-mga Linux kernel Matrox support (default disabled)"
78 --with-ggi[=name] GGI support (default disabled)"
80 --disable-sdl SDL support (default enabled)"
82 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
84 --disable-directx Win32 DirectX support (default enabled on Win32)"
86 --with-directx-path=path Win32 DirectX headers and libraries"
88 --disable-waveout Win32 waveOut module (default enabled on Win32)"
90 --enable-win32 Win32 interface support (default disabled)"
92 --with-glide[=name] Glide (3dfx) support (default disabled)"
94 --enable-ncurses ncurses interface support (default disabled)"
96 --enable-qt Qt interface support (default disabled)"
98 --enable-kde KDE interface support (default disabled)"
100 --enable-gnome Gnome interface support (default disabled)"
102 --disable-gtk Gtk+ support (default enabled)"
104 --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
106 --disable-x11 X11 support (default enabled)"
108 --disable-xvideo XVideo support (default enabled)"
110 --enable-lirc lirc support (default disabled)"
112 --enable-alsa Alsa sound drivers support (Only for linux)
115 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
117 --with-dll-path=path Path to Win32 DLLs (default search in \$PWD)"
119 # Initialize some variables set by options.
120 # The variables have the same names as the options, with
121 # dashes changed to underlines.
123 cache_file=./config.cache
132 program_transform_name=s,x,x,
140 bindir='${exec_prefix}/bin'
141 sbindir='${exec_prefix}/sbin'
142 libexecdir='${exec_prefix}/libexec'
143 datadir='${prefix}/share'
144 sysconfdir='${prefix}/etc'
145 sharedstatedir='${prefix}/com'
146 localstatedir='${prefix}/var'
147 libdir='${exec_prefix}/lib'
148 includedir='${prefix}/include'
149 oldincludedir='/usr/include'
150 infodir='${prefix}/info'
151 mandir='${prefix}/man'
153 # Initialize some other variables.
156 SHELL=${CONFIG_SHELL-/bin/sh}
157 # Maximum number of lines to put in a shell here document.
164 # If the previous option needs an argument, assign it.
165 if test -n "$ac_prev"; then
166 eval "$ac_prev=\$ac_option"
172 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
176 # Accept the important Cygnus configure options, so we can diagnose typos.
180 -bindir | --bindir | --bindi | --bind | --bin | --bi)
182 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
183 bindir="$ac_optarg" ;;
185 -build | --build | --buil | --bui | --bu)
187 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
188 build="$ac_optarg" ;;
190 -cache-file | --cache-file | --cache-fil | --cache-fi \
191 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
192 ac_prev=cache_file ;;
193 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
194 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
195 cache_file="$ac_optarg" ;;
197 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
199 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
201 datadir="$ac_optarg" ;;
203 -disable-* | --disable-*)
204 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
205 # Reject names that are not valid shell variable names.
206 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
207 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
209 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
210 eval "enable_${ac_feature}=no" ;;
212 -enable-* | --enable-*)
213 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
214 # Reject names that are not valid shell variable names.
215 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
216 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
218 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
223 eval "enable_${ac_feature}='$ac_optarg'" ;;
225 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
226 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
227 | --exec | --exe | --ex)
228 ac_prev=exec_prefix ;;
229 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
230 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
231 | --exec=* | --exe=* | --ex=*)
232 exec_prefix="$ac_optarg" ;;
234 -gas | --gas | --ga | --g)
235 # Obsolete; use --with-gas.
238 -help | --help | --hel | --he)
239 # Omit some internal or obsolete options to make the list less imposing.
240 # This message is too long to be a string in the A/UX 3.1 sh.
242 Usage: configure [options] [host]
243 Options: [defaults in brackets after descriptions]
245 --cache-file=FILE cache test results in FILE
246 --help print this message
247 --no-create do not create output files
248 --quiet, --silent do not print \`checking...' messages
249 --version print the version of autoconf that created configure
250 Directory and file names:
251 --prefix=PREFIX install architecture-independent files in PREFIX
253 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
255 --bindir=DIR user executables in DIR [EPREFIX/bin]
256 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
257 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
258 --datadir=DIR read-only architecture-independent data in DIR
260 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
261 --sharedstatedir=DIR modifiable architecture-independent data in DIR
263 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
264 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
265 --includedir=DIR C header files in DIR [PREFIX/include]
266 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
267 --infodir=DIR info documentation in DIR [PREFIX/info]
268 --mandir=DIR man documentation in DIR [PREFIX/man]
269 --srcdir=DIR find the sources in DIR [configure dir or ..]
270 --program-prefix=PREFIX prepend PREFIX to installed program names
271 --program-suffix=SUFFIX append SUFFIX to installed program names
272 --program-transform-name=PROGRAM
273 run sed PROGRAM on installed program names
277 --build=BUILD configure for building on BUILD [BUILD=HOST]
278 --host=HOST configure for HOST [guessed]
279 --target=TARGET configure for TARGET [TARGET=HOST]
280 Features and packages:
281 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
282 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
283 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
284 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
285 --x-includes=DIR X include files are in DIR
286 --x-libraries=DIR X library files are in DIR
288 if test -n "$ac_help"; then
289 echo "--enable and --with options recognized:$ac_help"
293 -host | --host | --hos | --ho)
295 -host=* | --host=* | --hos=* | --ho=*)
298 -includedir | --includedir | --includedi | --included | --include \
299 | --includ | --inclu | --incl | --inc)
300 ac_prev=includedir ;;
301 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
302 | --includ=* | --inclu=* | --incl=* | --inc=*)
303 includedir="$ac_optarg" ;;
305 -infodir | --infodir | --infodi | --infod | --info | --inf)
307 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
308 infodir="$ac_optarg" ;;
310 -libdir | --libdir | --libdi | --libd)
312 -libdir=* | --libdir=* | --libdi=* | --libd=*)
313 libdir="$ac_optarg" ;;
315 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
316 | --libexe | --libex | --libe)
317 ac_prev=libexecdir ;;
318 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
319 | --libexe=* | --libex=* | --libe=*)
320 libexecdir="$ac_optarg" ;;
322 -localstatedir | --localstatedir | --localstatedi | --localstated \
323 | --localstate | --localstat | --localsta | --localst \
324 | --locals | --local | --loca | --loc | --lo)
325 ac_prev=localstatedir ;;
326 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
327 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
328 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
329 localstatedir="$ac_optarg" ;;
331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
334 mandir="$ac_optarg" ;;
337 # Obsolete; use --without-fp.
340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
350 | --oldin | --oldi | --old | --ol | --o)
351 ac_prev=oldincludedir ;;
352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
355 oldincludedir="$ac_optarg" ;;
357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
360 prefix="$ac_optarg" ;;
362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
363 | --program-pre | --program-pr | --program-p)
364 ac_prev=program_prefix ;;
365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
367 program_prefix="$ac_optarg" ;;
369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
370 | --program-suf | --program-su | --program-s)
371 ac_prev=program_suffix ;;
372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
374 program_suffix="$ac_optarg" ;;
376 -program-transform-name | --program-transform-name \
377 | --program-transform-nam | --program-transform-na \
378 | --program-transform-n | --program-transform- \
379 | --program-transform | --program-transfor \
380 | --program-transfo | --program-transf \
381 | --program-trans | --program-tran \
382 | --progr-tra | --program-tr | --program-t)
383 ac_prev=program_transform_name ;;
384 -program-transform-name=* | --program-transform-name=* \
385 | --program-transform-nam=* | --program-transform-na=* \
386 | --program-transform-n=* | --program-transform-=* \
387 | --program-transform=* | --program-transfor=* \
388 | --program-transfo=* | --program-transf=* \
389 | --program-trans=* | --program-tran=* \
390 | --progr-tra=* | --program-tr=* | --program-t=*)
391 program_transform_name="$ac_optarg" ;;
393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
394 | -silent | --silent | --silen | --sile | --sil)
397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 sbindir="$ac_optarg" ;;
403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
405 | --sharedst | --shareds | --shared | --share | --shar \
407 ac_prev=sharedstatedir ;;
408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 sharedstatedir="$ac_optarg" ;;
414 -site | --site | --sit)
416 -site=* | --site=* | --sit=*)
419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
422 srcdir="$ac_optarg" ;;
424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
425 | --syscon | --sysco | --sysc | --sys | --sy)
426 ac_prev=sysconfdir ;;
427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
429 sysconfdir="$ac_optarg" ;;
431 -target | --target | --targe | --targ | --tar | --ta | --t)
433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
434 target="$ac_optarg" ;;
436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 -version | --version | --versio | --versi | --vers)
440 echo "configure generated by autoconf version 2.13"
444 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
445 # Reject names that are not valid shell variable names.
446 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
447 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
449 ac_package=`echo $ac_package| sed 's/-/_/g'`
454 eval "with_${ac_package}='$ac_optarg'" ;;
456 -without-* | --without-*)
457 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
458 # Reject names that are not valid shell variable names.
459 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
460 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
462 ac_package=`echo $ac_package| sed 's/-/_/g'`
463 eval "with_${ac_package}=no" ;;
466 # Obsolete; use --with-x.
469 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
470 | --x-incl | --x-inc | --x-in | --x-i)
471 ac_prev=x_includes ;;
472 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
473 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
474 x_includes="$ac_optarg" ;;
476 -x-libraries | --x-libraries | --x-librarie | --x-librari \
477 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
478 ac_prev=x_libraries ;;
479 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
480 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
481 x_libraries="$ac_optarg" ;;
483 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
487 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
488 echo "configure: warning: $ac_option: invalid host type" 1>&2
490 if test "x$nonopt" != xNONE; then
491 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
499 if test -n "$ac_prev"; then
500 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
503 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
505 # File descriptor usage:
508 # 2 errors and warnings
509 # 3 some systems may open it to /dev/tty
510 # 4 used on the Kubota Titan
511 # 6 checking for... messages and results
512 # 5 compiler messages saved in config.log
513 if test "$silent" = yes; then
521 This file contains any messages produced by compilers while
522 running configure, to aid debugging if configure makes a mistake.
525 # Strip out --no-create and --no-recursion so they do not pile up.
526 # Also quote any args containing shell metacharacters.
531 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
532 | --no-cr | --no-c) ;;
533 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
534 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
535 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
536 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
537 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
542 # Only set these to C if already set. These must not be set unconditionally
543 # because not all systems understand e.g. LANG=C (notably SCO).
544 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
545 # Non-C LC_CTYPE values break the ctype check.
546 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
547 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
548 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
549 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
551 # confdefs.h avoids OS command line length limits that DEFS can exceed.
552 rm -rf conftest* confdefs.h
553 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
556 # A filename unique to this package, relative to the directory that
557 # configure is in, which we can look for to find out if srcdir is correct.
558 ac_unique_file=include/main.h
560 # Find the source files, if location was not specified.
561 if test -z "$srcdir"; then
562 ac_srcdir_defaulted=yes
563 # Try the directory containing this script, then its parent.
565 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
566 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
568 if test ! -r $srcdir/$ac_unique_file; then
572 ac_srcdir_defaulted=no
574 if test ! -r $srcdir/$ac_unique_file; then
575 if test "$ac_srcdir_defaulted" = yes; then
576 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
578 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
581 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
583 # Prefer explicitly selected file to automatically selected ones.
584 if test -z "$CONFIG_SITE"; then
585 if test "x$prefix" != xNONE; then
586 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
588 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
591 for ac_site_file in $CONFIG_SITE; do
592 if test -r "$ac_site_file"; then
593 echo "loading site script $ac_site_file"
598 if test -r "$cache_file"; then
599 echo "loading cache $cache_file"
602 echo "creating cache $cache_file"
607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
608 ac_cpp='$CPP $CPPFLAGS'
609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
611 cross_compiling=$ac_cv_prog_cc_cross
615 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
616 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
617 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
624 ac_n= ac_c='\c' ac_t=
631 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
632 if test -f $ac_dir/install-sh; then
634 ac_install_sh="$ac_aux_dir/install-sh -c"
636 elif test -f $ac_dir/install.sh; then
638 ac_install_sh="$ac_aux_dir/install.sh -c"
642 if test -z "$ac_aux_dir"; then
643 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
645 ac_config_guess=$ac_aux_dir/config.guess
646 ac_config_sub=$ac_aux_dir/config.sub
647 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
650 # Do some error checking and defaulting for the host and target type.
652 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
655 # 1. You are not allowed to specify --host, --target, and nonopt at the
657 # 2. Host defaults to nonopt.
658 # 3. If nonopt is not specified, then host defaults to the current host,
659 # as determined by config.guess.
660 # 4. Target and build default to nonopt.
661 # 5. If nonopt is not specified, then target and build default to host.
663 # The aliases save the names the user supplied, while $host etc.
664 # will get canonicalized.
665 case $host---$target---$nonopt in
666 NONE---*---* | *---NONE---* | *---*---NONE) ;;
667 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
671 # Make sure we can run config.sub.
672 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
673 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
676 echo $ac_n "checking host system type""... $ac_c" 1>&6
677 echo "configure:678: checking host system type" >&5
680 case "$host_alias" in
684 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
685 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
687 *) host_alias=$nonopt ;;
691 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
692 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$host" 1>&6
697 echo $ac_n "checking target system type""... $ac_c" 1>&6
698 echo "configure:699: checking target system type" >&5
701 case "$target_alias" in
704 NONE) target_alias=$host_alias ;;
705 *) target_alias=$nonopt ;;
709 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
710 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$target" 1>&6
715 echo $ac_n "checking build system type""... $ac_c" 1>&6
716 echo "configure:717: checking build system type" >&5
719 case "$build_alias" in
722 NONE) build_alias=$host_alias ;;
723 *) build_alias=$nonopt ;;
727 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
728 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
729 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
730 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
731 echo "$ac_t""$build" 1>&6
733 test "$host_alias" != "$target_alias" &&
734 test "$program_prefix$program_suffix$program_transform_name" = \
736 program_prefix=${target_alias}-
740 if test -r src/interface/main.c; then
742 VLC_VERSION="0.2.92-dev"
747 if test -r extras/libdvdcss/libdvdcss.c; then
749 LIBDVDCSS_VERSION="1.0.1-dev"
751 if test -r extras/libdvdcss/csskeys.h; then
752 cat >> confdefs.h <<\EOF
753 #define HAVE_CSSKEYS 1
759 save_CFLAGS="${CFLAGS}"
760 save_LDFLAGS="${LDFLAGS}"
762 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
763 echo "configure:764: checking whether ${MAKE-make} sets \${MAKE}" >&5
764 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
765 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
768 cat > conftestmake <<\EOF
770 @echo 'ac_maketemp="${MAKE}"'
772 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
773 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
774 if test -n "$ac_maketemp"; then
775 eval ac_cv_prog_make_${ac_make}_set=yes
777 eval ac_cv_prog_make_${ac_make}_set=no
781 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
782 echo "$ac_t""yes" 1>&6
785 echo "$ac_t""no" 1>&6
786 SET_MAKE="MAKE=${MAKE-make}"
789 # Extract the first word of "gcc", so it can be a program name with args.
790 set dummy gcc; ac_word=$2
791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
792 echo "configure:793: checking for $ac_word" >&5
793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 if test -n "$CC"; then
797 ac_cv_prog_CC="$CC" # Let the user override the test.
799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
801 for ac_dir in $ac_dummy; do
802 test -z "$ac_dir" && ac_dir=.
803 if test -f $ac_dir/$ac_word; then
812 if test -n "$CC"; then
813 echo "$ac_t""$CC" 1>&6
815 echo "$ac_t""no" 1>&6
818 if test -z "$CC"; then
819 # Extract the first word of "cc", so it can be a program name with args.
820 set dummy cc; ac_word=$2
821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
822 echo "configure:823: checking for $ac_word" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 if test -n "$CC"; then
827 ac_cv_prog_CC="$CC" # Let the user override the test.
829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 for ac_dir in $ac_dummy; do
833 test -z "$ac_dir" && ac_dir=.
834 if test -f $ac_dir/$ac_word; then
835 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
844 if test $ac_prog_rejected = yes; then
845 # We found a bogon in the path, so make sure we never use it.
846 set dummy $ac_cv_prog_CC
848 if test $# -gt 0; then
849 # We chose a different compiler from the bogus one.
850 # However, it has the same basename, so the bogon will be chosen
851 # first if we set CC to just the basename; use the full file name.
853 set dummy "$ac_dir/$ac_word" "$@"
861 if test -n "$CC"; then
862 echo "$ac_t""$CC" 1>&6
864 echo "$ac_t""no" 1>&6
867 if test -z "$CC"; then
870 # Extract the first word of "cl", so it can be a program name with args.
871 set dummy cl; ac_word=$2
872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
873 echo "configure:874: checking for $ac_word" >&5
874 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
877 if test -n "$CC"; then
878 ac_cv_prog_CC="$CC" # Let the user override the test.
880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
882 for ac_dir in $ac_dummy; do
883 test -z "$ac_dir" && ac_dir=.
884 if test -f $ac_dir/$ac_word; then
893 if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6
896 echo "$ac_t""no" 1>&6
901 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
909 ac_cpp='$CPP $CPPFLAGS'
910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
912 cross_compiling=$ac_cv_prog_cc_cross
914 cat > conftest.$ac_ext << EOF
916 #line 917 "configure"
917 #include "confdefs.h"
921 if { (eval echo configure:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
922 ac_cv_prog_cc_works=yes
923 # If we can't run a trivial program, we are probably using a cross compiler.
924 if (./conftest; exit) 2>/dev/null; then
925 ac_cv_prog_cc_cross=no
927 ac_cv_prog_cc_cross=yes
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 ac_cv_prog_cc_works=no
936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
937 ac_cpp='$CPP $CPPFLAGS'
938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
940 cross_compiling=$ac_cv_prog_cc_cross
942 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
943 if test $ac_cv_prog_cc_works = no; then
944 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
947 echo "configure:948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
948 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
949 cross_compiling=$ac_cv_prog_cc_cross
951 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
952 echo "configure:953: checking whether we are using GNU C" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 cat > conftest.c <<EOF
961 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
968 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
970 if test $ac_cv_prog_gcc = yes; then
976 ac_test_CFLAGS="${CFLAGS+set}"
977 ac_save_CFLAGS="$CFLAGS"
979 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
980 echo "configure:981: checking whether ${CC-cc} accepts -g" >&5
981 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
984 echo 'void f(){}' > conftest.c
985 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
994 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
995 if test "$ac_test_CFLAGS" = set; then
996 CFLAGS="$ac_save_CFLAGS"
997 elif test $ac_cv_prog_cc_g = yes; then
998 if test "$GCC" = yes; then
1004 if test "$GCC" = yes; then
1011 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1012 echo "configure:1013: checking how to run the C preprocessor" >&5
1013 # On Suns, sometimes $CPP names a directory.
1014 if test -n "$CPP" && test -d "$CPP"; then
1017 if test -z "$CPP"; then
1018 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 # This must be in double quotes, not single quotes, because CPP may get
1022 # substituted into the Makefile and "${CC-cc}" will confuse make.
1024 # On the NeXT, cc -E runs the code through the compiler's parser,
1025 # not just through cpp.
1026 cat > conftest.$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1039 echo "configure: failed program was:" >&5
1040 cat conftest.$ac_ext >&5
1042 CPP="${CC-cc} -E -traditional-cpp"
1043 cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1050 { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1052 if test -z "$ac_err"; then
1056 echo "configure: failed program was:" >&5
1057 cat conftest.$ac_ext >&5
1059 CPP="${CC-cc} -nologo -E"
1060 cat > conftest.$ac_ext <<EOF
1061 #line 1062 "configure"
1062 #include "confdefs.h"
1066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1067 { (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1069 if test -z "$ac_err"; then
1073 echo "configure: failed program was:" >&5
1074 cat conftest.$ac_ext >&5
1083 ac_cv_prog_CPP="$CPP"
1085 CPP="$ac_cv_prog_CPP"
1087 ac_cv_prog_CPP="$CPP"
1089 echo "$ac_t""$CPP" 1>&6
1092 if test $host != $build; then
1093 ac_tool_prefix=${host_alias}-
1098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 if test -n "$RANLIB"; then
1106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1120 RANLIB="$ac_cv_prog_RANLIB"
1121 if test -n "$RANLIB"; then
1122 echo "$ac_t""$RANLIB" 1>&6
1124 echo "$ac_t""no" 1>&6
1128 if test -z "$ac_cv_prog_RANLIB"; then
1129 if test -n "$ac_tool_prefix"; then
1130 # Extract the first word of "ranlib", so it can be a program name with args.
1131 set dummy ranlib; ac_word=$2
1132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1133 echo "configure:1134: checking for $ac_word" >&5
1134 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1137 if test -n "$RANLIB"; then
1138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1142 for ac_dir in $ac_dummy; do
1143 test -z "$ac_dir" && ac_dir=.
1144 if test -f $ac_dir/$ac_word; then
1145 ac_cv_prog_RANLIB="ranlib"
1150 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1153 RANLIB="$ac_cv_prog_RANLIB"
1154 if test -n "$RANLIB"; then
1155 echo "$ac_t""$RANLIB" 1>&6
1157 echo "$ac_t""no" 1>&6
1166 ALL_LINGUAS="de fr ru"
1168 cat >> confdefs.h <<EOF
1169 #define PACKAGE "vlc"
1172 cat >> confdefs.h <<EOF
1173 #define VERSION "$VLC_VERSION"
1176 # Extract the first word of "ranlib", so it can be a program name with args.
1177 set dummy ranlib; ac_word=$2
1178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_word" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 if test -n "$RANLIB"; then
1184 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1188 for ac_dir in $ac_dummy; do
1189 test -z "$ac_dir" && ac_dir=.
1190 if test -f $ac_dir/$ac_word; then
1191 ac_cv_prog_RANLIB="ranlib"
1196 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1199 RANLIB="$ac_cv_prog_RANLIB"
1200 if test -n "$RANLIB"; then
1201 echo "$ac_t""$RANLIB" 1>&6
1203 echo "$ac_t""no" 1>&6
1207 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1208 echo "configure:1209: checking for strerror in -lcposix" >&5
1209 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 ac_save_LIBS="$LIBS"
1214 LIBS="-lcposix $LIBS"
1215 cat > conftest.$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1218 /* Override any gcc2 internal prototype to avoid an error. */
1219 /* We use char because int might match the return type of a gcc2
1220 builtin and then its argument prototype would still apply. */
1227 if { (eval echo configure:1228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1229 eval "ac_cv_lib_$ac_lib_var=yes"
1231 echo "configure: failed program was:" >&5
1232 cat conftest.$ac_ext >&5
1234 eval "ac_cv_lib_$ac_lib_var=no"
1237 LIBS="$ac_save_LIBS"
1240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1241 echo "$ac_t""yes" 1>&6
1242 LIBS="$LIBS -lcposix"
1244 echo "$ac_t""no" 1>&6
1249 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1250 echo "configure:1251: checking for ANSI C header files" >&5
1251 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1263 { (eval echo configure:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1265 if test -z "$ac_err"; then
1267 ac_cv_header_stdc=yes
1270 echo "configure: failed program was:" >&5
1271 cat conftest.$ac_ext >&5
1273 ac_cv_header_stdc=no
1277 if test $ac_cv_header_stdc = yes; then
1278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1285 egrep "memchr" >/dev/null 2>&1; then
1289 ac_cv_header_stdc=no
1295 if test $ac_cv_header_stdc = yes; then
1296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1297 cat > conftest.$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1303 egrep "free" >/dev/null 2>&1; then
1307 ac_cv_header_stdc=no
1313 if test $ac_cv_header_stdc = yes; then
1314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1315 if test "$cross_compiling" = yes; then
1318 cat > conftest.$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1322 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1323 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1325 int main () { int i; for (i = 0; i < 256; i++)
1326 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1330 if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1337 ac_cv_header_stdc=no
1345 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1346 if test $ac_cv_header_stdc = yes; then
1347 cat >> confdefs.h <<\EOF
1348 #define STDC_HEADERS 1
1353 echo $ac_n "checking for working const""... $ac_c" 1>&6
1354 echo "configure:1355: checking for working const" >&5
1355 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1364 /* Ultrix mips cc rejects this. */
1365 typedef int charset[2]; const charset x;
1366 /* SunOS 4.1.1 cc rejects this. */
1367 char const *const *ccp;
1369 /* NEC SVR4.0.2 mips cc rejects this. */
1370 struct point {int x, y;};
1371 static struct point const zero = {0,0};
1372 /* AIX XL C 1.02.0.0 rejects this.
1373 It does not let you subtract one const X* pointer from another in an arm
1374 of an if-expression whose if-part is not a constant expression */
1375 const char *g = "string";
1376 ccp = &g + (g ? g-g : 0);
1377 /* HPUX 7.0 cc rejects these. */
1380 ccp = (char const *const *) p;
1381 { /* SCO 3.2v4 cc rejects this. */
1383 char const *s = 0 ? (char *) 0 : (char const *) 0;
1387 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1389 const int *foo = &x[0];
1392 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1393 typedef const int *iptr;
1397 { /* AIX XL C 1.02.0.0 rejects this saying
1398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1399 struct s { int j; const int *ap[3]; };
1400 struct s *b; b->j = 5;
1402 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1408 if { (eval echo configure:1409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1420 echo "$ac_t""$ac_cv_c_const" 1>&6
1421 if test $ac_cv_c_const = no; then
1422 cat >> confdefs.h <<\EOF
1428 echo $ac_n "checking for inline""... $ac_c" 1>&6
1429 echo "configure:1430: checking for inline" >&5
1430 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1434 for ac_kw in inline __inline__ __inline; do
1435 cat > conftest.$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1443 if { (eval echo configure:1444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1445 ac_cv_c_inline=$ac_kw; break
1447 echo "configure: failed program was:" >&5
1448 cat conftest.$ac_ext >&5
1455 echo "$ac_t""$ac_cv_c_inline" 1>&6
1456 case "$ac_cv_c_inline" in
1458 no) cat >> confdefs.h <<\EOF
1462 *) cat >> confdefs.h <<EOF
1463 #define inline $ac_cv_c_inline
1468 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1469 echo "configure:1470: checking for off_t" >&5
1470 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1476 #include <sys/types.h>
1482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1483 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1485 ac_cv_type_off_t=yes
1493 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1494 if test $ac_cv_type_off_t = no; then
1495 cat >> confdefs.h <<\EOF
1501 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1502 echo "configure:1503: checking for size_t" >&5
1503 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1509 #include <sys/types.h>
1515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1516 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1518 ac_cv_type_size_t=yes
1521 ac_cv_type_size_t=no
1526 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1527 if test $ac_cv_type_size_t = no; then
1528 cat >> confdefs.h <<\EOF
1529 #define size_t unsigned
1534 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1535 # for constant arguments. Useless!
1536 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1537 echo "configure:1538: checking for working alloca.h" >&5
1538 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1546 char *p = alloca(2 * sizeof(int));
1549 if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1551 ac_cv_header_alloca_h=yes
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1556 ac_cv_header_alloca_h=no
1561 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1562 if test $ac_cv_header_alloca_h = yes; then
1563 cat >> confdefs.h <<\EOF
1564 #define HAVE_ALLOCA_H 1
1569 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1570 echo "configure:1571: checking for alloca" >&5
1571 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 cat > conftest.$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1579 # define alloca __builtin_alloca
1582 # include <malloc.h>
1583 # define alloca _alloca
1586 # include <alloca.h>
1591 # ifndef alloca /* predefined by HP cc +Olibcalls */
1600 char *p = (char *) alloca(1);
1603 if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1605 ac_cv_func_alloca_works=yes
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1610 ac_cv_func_alloca_works=no
1615 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1616 if test $ac_cv_func_alloca_works = yes; then
1617 cat >> confdefs.h <<\EOF
1618 #define HAVE_ALLOCA 1
1623 if test $ac_cv_func_alloca_works = no; then
1624 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1625 # that cause trouble. Some versions do not even contain alloca or
1626 # contain a buggy version. If you still want to use their alloca,
1627 # use ar to extract alloca.o from them instead of compiling alloca.c.
1628 ALLOCA=alloca.${ac_objext}
1629 cat >> confdefs.h <<\EOF
1634 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1635 echo "configure:1636: checking whether alloca needs Cray hooks" >&5
1636 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 #if defined(CRAY) && ! defined(CRAY2)
1649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1650 egrep "webecray" >/dev/null 2>&1; then
1661 echo "$ac_t""$ac_cv_os_cray" 1>&6
1662 if test $ac_cv_os_cray = yes; then
1663 for ac_func in _getb67 GETB67 getb67; do
1664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1665 echo "configure:1666: checking for $ac_func" >&5
1666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 cat > conftest.$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 /* System header to define __stub macros and hopefully few prototypes,
1673 which can conflict with char $ac_func(); below. */
1675 /* Override any gcc2 internal prototype to avoid an error. */
1676 /* We use char because int might match the return type of a gcc2
1677 builtin and then its argument prototype would still apply. */
1682 /* The GNU C library defines this for functions which it implements
1683 to always fail with ENOSYS. Some functions are actually named
1684 something starting with __ and the normal name is an alias. */
1685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 eval "ac_cv_func_$ac_func=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 eval "ac_cv_func_$ac_func=no"
1705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1706 echo "$ac_t""yes" 1>&6
1707 cat >> confdefs.h <<EOF
1708 #define CRAY_STACKSEG_END $ac_func
1713 echo "$ac_t""no" 1>&6
1719 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1720 echo "configure:1721: checking stack direction for C alloca" >&5
1721 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 if test "$cross_compiling" = yes; then
1725 ac_cv_c_stack_direction=0
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 find_stack_direction ()
1732 static char *addr = 0;
1737 return find_stack_direction ();
1740 return (&dummy > addr) ? 1 : -1;
1744 exit (find_stack_direction() < 0);
1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1749 ac_cv_c_stack_direction=1
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1754 ac_cv_c_stack_direction=-1
1761 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1762 cat >> confdefs.h <<EOF
1763 #define STACK_DIRECTION $ac_cv_c_stack_direction
1768 for ac_hdr in unistd.h
1770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1772 echo "configure:1773: checking for $ac_hdr" >&5
1773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1782 { (eval echo configure:1783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1784 if test -z "$ac_err"; then
1786 eval "ac_cv_header_$ac_safe=yes"
1789 echo "configure: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1792 eval "ac_cv_header_$ac_safe=no"
1796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1797 echo "$ac_t""yes" 1>&6
1798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1799 cat >> confdefs.h <<EOF
1800 #define $ac_tr_hdr 1
1804 echo "$ac_t""no" 1>&6
1808 for ac_func in getpagesize
1810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1811 echo "configure:1812: checking for $ac_func" >&5
1812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 cat > conftest.$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1818 /* System header to define __stub macros and hopefully few prototypes,
1819 which can conflict with char $ac_func(); below. */
1821 /* Override any gcc2 internal prototype to avoid an error. */
1822 /* We use char because int might match the return type of a gcc2
1823 builtin and then its argument prototype would still apply. */
1828 /* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1839 if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1841 eval "ac_cv_func_$ac_func=yes"
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1846 eval "ac_cv_func_$ac_func=no"
1851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1854 cat >> confdefs.h <<EOF
1855 #define $ac_tr_func 1
1859 echo "$ac_t""no" 1>&6
1863 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1864 echo "configure:1865: checking for working mmap" >&5
1865 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1868 if test "$cross_compiling" = yes; then
1869 ac_cv_func_mmap_fixed_mapped=no
1871 cat > conftest.$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1875 /* Thanks to Mike Haertel and Jim Avera for this test.
1876 Here is a matrix of mmap possibilities:
1877 mmap private not fixed
1878 mmap private fixed at somewhere currently unmapped
1879 mmap private fixed at somewhere already mapped
1880 mmap shared not fixed
1881 mmap shared fixed at somewhere currently unmapped
1882 mmap shared fixed at somewhere already mapped
1883 For private mappings, we should verify that changes cannot be read()
1884 back from the file, nor mmap's back from the file at a different
1885 address. (There have been systems where private was not correctly
1886 implemented like the infamous i386 svr4.0, and systems where the
1887 VM page cache was not coherent with the filesystem buffer cache
1888 like early versions of FreeBSD and possibly contemporary NetBSD.)
1889 For shared mappings, we should conversely verify that changes get
1890 propogated back to all the places they're supposed to be.
1892 Grep wants private fixed already mapped.
1893 The main things grep needs to know about mmap are:
1894 * does it exist and is it safe to write into the mmap'd area
1895 * how to use it (BSD variants) */
1896 #include <sys/types.h>
1898 #include <sys/mman.h>
1900 /* This mess was copied from the GNU getpagesize.h. */
1901 #ifndef HAVE_GETPAGESIZE
1902 # ifdef HAVE_UNISTD_H
1903 # include <unistd.h>
1906 /* Assume that all systems that can run configure have sys/param.h. */
1907 # ifndef HAVE_SYS_PARAM_H
1908 # define HAVE_SYS_PARAM_H 1
1911 # ifdef _SC_PAGESIZE
1912 # define getpagesize() sysconf(_SC_PAGESIZE)
1913 # else /* no _SC_PAGESIZE */
1914 # ifdef HAVE_SYS_PARAM_H
1915 # include <sys/param.h>
1916 # ifdef EXEC_PAGESIZE
1917 # define getpagesize() EXEC_PAGESIZE
1918 # else /* no EXEC_PAGESIZE */
1920 # define getpagesize() NBPG * CLSIZE
1923 # endif /* no CLSIZE */
1924 # else /* no NBPG */
1926 # define getpagesize() NBPC
1927 # else /* no NBPC */
1929 # define getpagesize() PAGESIZE
1930 # endif /* PAGESIZE */
1931 # endif /* no NBPC */
1932 # endif /* no NBPG */
1933 # endif /* no EXEC_PAGESIZE */
1934 # else /* no HAVE_SYS_PARAM_H */
1935 # define getpagesize() 8192 /* punt totally */
1936 # endif /* no HAVE_SYS_PARAM_H */
1937 # endif /* no _SC_PAGESIZE */
1939 #endif /* no HAVE_GETPAGESIZE */
1942 extern "C" { void *malloc(unsigned); }
1950 char *data, *data2, *data3;
1954 pagesize = getpagesize();
1957 * First, make a file with some known garbage in it.
1959 data = malloc(pagesize);
1962 for (i = 0; i < pagesize; ++i)
1963 *(data + i) = rand();
1965 fd = creat("conftestmmap", 0600);
1968 if (write(fd, data, pagesize) != pagesize)
1973 * Next, try to mmap the file at a fixed address which
1974 * already has something else allocated at it. If we can,
1975 * also make sure that we see the same garbage.
1977 fd = open("conftestmmap", O_RDWR);
1980 data2 = malloc(2 * pagesize);
1983 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1984 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1985 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1987 for (i = 0; i < pagesize; ++i)
1988 if (*(data + i) != *(data2 + i))
1992 * Finally, make sure that changes to the mapped area
1993 * do not percolate back to the file as seen by read().
1994 * (This is a bug on some variants of i386 svr4.0.)
1996 for (i = 0; i < pagesize; ++i)
1997 *(data2 + i) = *(data2 + i) + 1;
1998 data3 = malloc(pagesize);
2001 if (read(fd, data3, pagesize) != pagesize)
2003 for (i = 0; i < pagesize; ++i)
2004 if (*(data + i) != *(data3 + i))
2007 unlink("conftestmmap");
2012 if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2014 ac_cv_func_mmap_fixed_mapped=yes
2016 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2019 ac_cv_func_mmap_fixed_mapped=no
2026 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2027 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2028 cat >> confdefs.h <<\EOF
2035 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2036 echo "configure:2037: checking whether we are using the GNU C Library 2.1 or newer" >&5
2037 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2040 cat > conftest.$ac_ext <<EOF
2041 #line 2042 "configure"
2042 #include "confdefs.h"
2044 #include <features.h>
2045 #ifdef __GNU_LIBRARY__
2046 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2053 egrep "Lucky GNU user" >/dev/null 2>&1; then
2055 ac_cv_gnu_library_2_1=yes
2058 ac_cv_gnu_library_2_1=no
2066 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2068 GLIBC21="$ac_cv_gnu_library_2_1"
2072 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2073 stdlib.h string.h unistd.h sys/param.h
2075 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2077 echo "configure:2078: checking for $ac_hdr" >&5
2078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2087 { (eval echo configure:2088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2089 if test -z "$ac_err"; then
2091 eval "ac_cv_header_$ac_safe=yes"
2094 echo "configure: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2097 eval "ac_cv_header_$ac_safe=no"
2101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2102 echo "$ac_t""yes" 1>&6
2103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2104 cat >> confdefs.h <<EOF
2105 #define $ac_tr_hdr 1
2109 echo "$ac_t""no" 1>&6
2113 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2114 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2115 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_func" >&5
2119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125 /* System header to define __stub macros and hopefully few prototypes,
2126 which can conflict with char $ac_func(); below. */
2128 /* Override any gcc2 internal prototype to avoid an error. */
2129 /* We use char because int might match the return type of a gcc2
2130 builtin and then its argument prototype would still apply. */
2135 /* The GNU C library defines this for functions which it implements
2136 to always fail with ENOSYS. Some functions are actually named
2137 something starting with __ and the normal name is an alias. */
2138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2146 if { (eval echo configure:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2148 eval "ac_cv_func_$ac_func=yes"
2150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2153 eval "ac_cv_func_$ac_func=no"
2158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2161 cat >> confdefs.h <<EOF
2162 #define $ac_tr_func 1
2166 echo "$ac_t""no" 1>&6
2173 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2174 if test "${with_libiconv_prefix+set}" = set; then
2175 withval="$with_libiconv_prefix"
2177 for dir in `echo "$withval" | tr : ' '`; do
2178 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2179 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2185 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2186 echo "configure:2187: checking for iconv" >&5
2187 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2191 am_cv_func_iconv="no, consider installing GNU libiconv"
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2199 iconv_t cd = iconv_open("","");
2200 iconv(cd,NULL,NULL,NULL,NULL);
2204 if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2206 am_cv_func_iconv=yes
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2212 if test "$am_cv_func_iconv" != yes; then
2213 am_save_LIBS="$LIBS"
2214 LIBS="$LIBS -liconv"
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2221 iconv_t cd = iconv_open("","");
2222 iconv(cd,NULL,NULL,NULL,NULL);
2226 if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2229 am_cv_func_iconv=yes
2231 echo "configure: failed program was:" >&5
2232 cat conftest.$ac_ext >&5
2235 LIBS="$am_save_LIBS"
2240 echo "$ac_t""$am_cv_func_iconv" 1>&6
2241 if test "$am_cv_func_iconv" = yes; then
2242 cat >> confdefs.h <<\EOF
2243 #define HAVE_ICONV 1
2246 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2247 echo "configure:2248: checking for iconv declaration" >&5
2248 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2262 #if defined(__STDC__) || defined(__cplusplus)
2263 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2272 if { (eval echo configure:2273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2274 am_cv_proto_iconv_arg1=""
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2279 am_cv_proto_iconv_arg1="const"
2282 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);"
2285 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2286 echo "$ac_t""${ac_t:-
2287 }$am_cv_proto_iconv" 1>&6
2288 cat >> confdefs.h <<EOF
2289 #define ICONV_CONST $am_cv_proto_iconv_arg1
2294 if test "$am_cv_lib_iconv" = yes; then
2300 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2301 echo "configure:2302: checking for nl_langinfo and CODESET" >&5
2302 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <langinfo.h>
2310 char* cs = nl_langinfo(CODESET);
2313 if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2315 am_cv_langinfo_codeset=yes
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2320 am_cv_langinfo_codeset=no
2326 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2327 if test $am_cv_langinfo_codeset = yes; then
2328 cat >> confdefs.h <<\EOF
2329 #define HAVE_LANGINFO_CODESET 1
2334 if test $ac_cv_header_locale_h = yes; then
2335 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2336 echo "configure:2337: checking for LC_MESSAGES" >&5
2337 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2348 if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2350 am_cv_val_LC_MESSAGES=yes
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2355 am_cv_val_LC_MESSAGES=no
2360 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2361 if test $am_cv_val_LC_MESSAGES = yes; then
2362 cat >> confdefs.h <<\EOF
2363 #define HAVE_LC_MESSAGES 1
2368 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2369 echo "configure:2370: checking whether NLS is requested" >&5
2370 # Check whether --enable-nls or --disable-nls was given.
2371 if test "${enable_nls+set}" = set; then
2372 enableval="$enable_nls"
2378 echo "$ac_t""$USE_NLS" 1>&6
2381 BUILD_INCLUDED_LIBINTL=no
2382 USE_INCLUDED_LIBINTL=no
2385 if test "$USE_NLS" = "yes"; then
2386 cat >> confdefs.h <<\EOF
2387 #define ENABLE_NLS 1
2390 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2391 echo "configure:2392: checking whether included gettext is requested" >&5
2392 # Check whether --with-included-gettext or --without-included-gettext was given.
2393 if test "${with_included_gettext+set}" = set; then
2394 withval="$with_included_gettext"
2395 nls_cv_force_use_gnu_gettext=$withval
2397 nls_cv_force_use_gnu_gettext=no
2400 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2402 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2403 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2409 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2410 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2411 echo "configure:2412: checking for libintl.h" >&5
2412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2418 #include <libintl.h>
2420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2421 { (eval echo configure:2422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2423 if test -z "$ac_err"; then
2425 eval "ac_cv_header_$ac_safe=yes"
2428 echo "configure: failed program was:" >&5
2429 cat conftest.$ac_ext >&5
2431 eval "ac_cv_header_$ac_safe=no"
2435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2436 echo "$ac_t""yes" 1>&6
2437 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2438 echo "configure:2439: checking for GNU gettext in libc" >&5
2439 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 #include <libintl.h>
2446 extern int _nl_msg_cat_cntr;
2448 bindtextdomain ("", "");
2449 return (int) gettext ("") + _nl_msg_cat_cntr
2452 if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2454 gt_cv_func_gnugettext1_libc=yes
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2459 gt_cv_func_gnugettext1_libc=no
2464 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2466 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2467 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2468 echo "configure:2469: checking for GNU gettext in libintl" >&5
2469 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 gt_save_LIBS="$LIBS"
2473 LIBS="$LIBS -lintl $LIBICONV"
2474 cat > conftest.$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2477 #include <libintl.h>
2478 extern int _nl_msg_cat_cntr;
2480 bindtextdomain ("", "");
2481 return (int) gettext ("") + _nl_msg_cat_cntr
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2486 gt_cv_func_gnugettext1_libintl=yes
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 gt_cv_func_gnugettext1_libintl=no
2494 LIBS="$gt_save_LIBS"
2497 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2500 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2501 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2502 && test "$PACKAGE" != gettext; }; then
2503 cat >> confdefs.h <<\EOF
2504 #define HAVE_GETTEXT 1
2508 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2509 INTLLIBS="-lintl $LIBICONV"
2512 gt_save_LIBS="$LIBS"
2513 LIBS="$LIBS $INTLLIBS"
2514 for ac_func in dcgettext
2516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2517 echo "configure:2518: checking for $ac_func" >&5
2518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 /* System header to define __stub macros and hopefully few prototypes,
2525 which can conflict with char $ac_func(); below. */
2527 /* Override any gcc2 internal prototype to avoid an error. */
2528 /* We use char because int might match the return type of a gcc2
2529 builtin and then its argument prototype would still apply. */
2534 /* The GNU C library defines this for functions which it implements
2535 to always fail with ENOSYS. Some functions are actually named
2536 something starting with __ and the normal name is an alias. */
2537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2545 if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2547 eval "ac_cv_func_$ac_func=yes"
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2552 eval "ac_cv_func_$ac_func=no"
2557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2560 cat >> confdefs.h <<EOF
2561 #define $ac_tr_func 1
2565 echo "$ac_t""no" 1>&6
2569 LIBS="$gt_save_LIBS"
2571 # Extract the first word of "msgfmt", so it can be a program name with args.
2572 set dummy msgfmt; ac_word=$2
2573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_word" >&5
2575 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2580 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2584 for ac_dir in $PATH; do
2585 test -z "$ac_dir" && ac_dir=.
2586 if test -f $ac_dir/$ac_word; then
2587 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2588 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2594 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2598 MSGFMT="$ac_cv_path_MSGFMT"
2599 if test "$MSGFMT" != ":"; then
2600 echo "$ac_t""$MSGFMT" 1>&6
2602 echo "$ac_t""no" 1>&6
2605 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2606 set dummy gmsgfmt; ac_word=$2
2607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2608 echo "configure:2609: checking for $ac_word" >&5
2609 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2614 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2617 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2622 for ac_dir in $ac_dummy; do
2623 test -z "$ac_dir" && ac_dir=.
2624 if test -f $ac_dir/$ac_word; then
2625 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2630 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2634 GMSGFMT="$ac_cv_path_GMSGFMT"
2635 if test -n "$GMSGFMT"; then
2636 echo "$ac_t""$GMSGFMT" 1>&6
2638 echo "$ac_t""no" 1>&6
2642 # Extract the first word of "xgettext", so it can be a program name with args.
2643 set dummy xgettext; ac_word=$2
2644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2645 echo "configure:2646: checking for $ac_word" >&5
2646 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2651 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2655 for ac_dir in $PATH; do
2656 test -z "$ac_dir" && ac_dir=.
2657 if test -f $ac_dir/$ac_word; then
2658 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2659 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2665 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2669 XGETTEXT="$ac_cv_path_XGETTEXT"
2670 if test "$XGETTEXT" != ":"; then
2671 echo "$ac_t""$XGETTEXT" 1>&6
2673 echo "$ac_t""no" 1>&6
2681 echo "$ac_t""no" 1>&6
2685 if test "$CATOBJEXT" = "NONE"; then
2686 nls_cv_use_gnu_gettext=yes
2690 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2691 INTLOBJS="\$(GETTOBJS)"
2692 # Extract the first word of "msgfmt", so it can be a program name with args.
2693 set dummy msgfmt; ac_word=$2
2694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_word" >&5
2696 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2701 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2705 for ac_dir in $PATH; do
2706 test -z "$ac_dir" && ac_dir=.
2707 if test -f $ac_dir/$ac_word; then
2708 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2709 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2715 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2719 MSGFMT="$ac_cv_path_MSGFMT"
2720 if test "$MSGFMT" != ":"; then
2721 echo "$ac_t""$MSGFMT" 1>&6
2723 echo "$ac_t""no" 1>&6
2726 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2727 set dummy gmsgfmt; ac_word=$2
2728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2729 echo "configure:2730: checking for $ac_word" >&5
2730 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2735 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2738 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2743 for ac_dir in $ac_dummy; do
2744 test -z "$ac_dir" && ac_dir=.
2745 if test -f $ac_dir/$ac_word; then
2746 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2751 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2755 GMSGFMT="$ac_cv_path_GMSGFMT"
2756 if test -n "$GMSGFMT"; then
2757 echo "$ac_t""$GMSGFMT" 1>&6
2759 echo "$ac_t""no" 1>&6
2762 # Extract the first word of "xgettext", so it can be a program name with args.
2763 set dummy xgettext; ac_word=$2
2764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2765 echo "configure:2766: checking for $ac_word" >&5
2766 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2771 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2775 for ac_dir in $PATH; do
2776 test -z "$ac_dir" && ac_dir=.
2777 if test -f $ac_dir/$ac_word; then
2778 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2779 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2785 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2789 XGETTEXT="$ac_cv_path_XGETTEXT"
2790 if test "$XGETTEXT" != ":"; then
2791 echo "$ac_t""$XGETTEXT" 1>&6
2793 echo "$ac_t""no" 1>&6
2797 BUILD_INCLUDED_LIBINTL=yes
2798 USE_INCLUDED_LIBINTL=yes
2800 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2801 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2804 if test "$GMSGFMT" != ":"; then
2805 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2808 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2813 if test "$XGETTEXT" != ":"; then
2814 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2817 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2827 if test "$PACKAGE" = gettext; then
2828 BUILD_INCLUDED_LIBINTL=yes
2831 for ac_prog in bison
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2836 echo "configure:2837: checking for $ac_word" >&5
2837 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2838 echo $ac_n "(cached) $ac_c" 1>&6
2840 if test -n "$INTLBISON"; then
2841 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2845 for ac_dir in $ac_dummy; do
2846 test -z "$ac_dir" && ac_dir=.
2847 if test -f $ac_dir/$ac_word; then
2848 ac_cv_prog_INTLBISON="$ac_prog"
2855 INTLBISON="$ac_cv_prog_INTLBISON"
2856 if test -n "$INTLBISON"; then
2857 echo "$ac_t""$INTLBISON" 1>&6
2859 echo "$ac_t""no" 1>&6
2862 test -n "$INTLBISON" && break
2865 if test -z "$INTLBISON"; then
2868 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2869 echo "configure:2870: checking version of bison" >&5
2870 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2871 case $ac_prog_version in
2872 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2873 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2874 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2875 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2877 echo "$ac_t""$ac_prog_version" 1>&6
2879 if test $ac_verc_fail = yes; then
2883 for lang in $ALL_LINGUAS; do
2884 GMOFILES="$GMOFILES $lang.gmo"
2885 POFILES="$POFILES $lang.po"
2899 nls_cv_header_libgt=
2911 if test "x$CATOBJEXT" != "x"; then
2912 if test "x$ALL_LINGUAS" = "x"; then
2915 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2916 echo "configure:2917: checking for catalogs to be installed" >&5
2918 for presentlang in $ALL_LINGUAS; do
2920 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2921 # Use the presentlang catalog if desiredlang is
2922 # a. equal to presentlang, or
2923 # b. a variant of presentlang (because in this case,
2924 # presentlang can be used as a fallback for messages
2925 # which are not translated in the desiredlang catalog).
2926 case "$desiredlang" in
2927 "$presentlang"*) useit=yes;;
2930 if test $useit = yes; then
2931 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2934 LINGUAS=$NEW_LINGUAS
2935 echo "$ac_t""$LINGUAS" 1>&6
2938 if test -n "$LINGUAS"; then
2939 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2944 if test -n "$ac_aux_dir"; then
2945 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2947 if test -z "$MKINSTALLDIRS"; then
2948 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2952 INTL_LIBTOOL_SUFFIX_PREFIX=
2956 # Find a good install program. We prefer a C program (faster),
2957 # so one script is as good as another. But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2966 # ./install, which can be erroneously created by make from ./install.sh.
2967 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2968 echo "configure:2969: checking for a BSD compatible install" >&5
2969 if test -z "$INSTALL"; then
2970 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2974 for ac_dir in $PATH; do
2975 # Account for people who put trailing slashes in PATH elements.
2977 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2979 # OSF1 and SCO ODT 3.0 have their own names for install.
2980 # Don't use installbsd from OSF since it installs stuff as root
2982 for ac_prog in ginstall scoinst install; do
2983 if test -f $ac_dir/$ac_prog; then
2984 if test $ac_prog = install &&
2985 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2986 # AIX install. It has an incompatible calling convention.
2989 ac_cv_path_install="$ac_dir/$ac_prog -c"
3000 if test "${ac_cv_path_install+set}" = set; then
3001 INSTALL="$ac_cv_path_install"
3003 # As a last resort, use the slow shell script. We don't cache a
3004 # path for INSTALL within a source directory, because that will
3005 # break other packages using the cache if that directory is
3006 # removed, or if the path is relative.
3007 INSTALL="$ac_install_sh"
3010 echo "$ac_t""$INSTALL" 1>&6
3012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3013 # It thinks the first close brace ends the variable substitution.
3014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3021 case x"${target_os}" in
3036 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3037 set dummy ${ac_tool_prefix}windres; ac_word=$2
3038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3039 echo "configure:3040: checking for $ac_word" >&5
3040 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 if test -n "$WINDRES"; then
3044 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3048 for ac_dir in $ac_dummy; do
3049 test -z "$ac_dir" && ac_dir=.
3050 if test -f $ac_dir/$ac_word; then
3051 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3058 WINDRES="$ac_cv_prog_WINDRES"
3059 if test -n "$WINDRES"; then
3060 echo "$ac_t""$WINDRES" 1>&6
3062 echo "$ac_t""no" 1>&6
3066 if test -z "$ac_cv_prog_WINDRES"; then
3067 if test -n "$ac_tool_prefix"; then
3068 # Extract the first word of "windres", so it can be a program name with args.
3069 set dummy windres; ac_word=$2
3070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3071 echo "configure:3072: checking for $ac_word" >&5
3072 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 if test -n "$WINDRES"; then
3076 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3080 for ac_dir in $ac_dummy; do
3081 test -z "$ac_dir" && ac_dir=.
3082 if test -f $ac_dir/$ac_word; then
3083 ac_cv_prog_WINDRES="windres"
3088 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3091 WINDRES="$ac_cv_prog_WINDRES"
3092 if test -n "$WINDRES"; then
3093 echo "$ac_t""$WINDRES" 1>&6
3095 echo "$ac_t""no" 1>&6
3103 LIB_MPEG_TS="${LIB_MPEG_TS} -lws2_32"
3104 LIB_RC="${LIB_RC} -lws2_32"
3108 LIB_X11="${LIB_X11} -lsocket"
3109 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3114 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3115 PLDFLAGS="${PLDFLAGS} -nostart"
3122 # Check whether --with-words or --without-words was given.
3123 if test "${with_words+set}" = set; then
3124 withval="$with_words"
3130 ac_cv_c_bigendian=yes
3133 ac_cv_c_bigendian=no
3136 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
3137 echo "configure:3138: checking whether the byte order is big-endian" >&5
3138 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 ac_cv_c_bigendian=unknown
3142 cat >conftest.c <<EOF
3143 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
3144 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
3145 void _a(void) { char*s = (char*)am; s = (char *)ai; }
3146 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
3147 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
3148 void _e(void) { char*s = (char*)em; s = (char*)ei; }
3149 int main(void) { _a(); _e(); return 0; }
3152 if test -f conftest.c
3154 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
3155 && test -f conftest.o
3157 if test `grep -l BIGenDianSyS conftest.o`
3159 ac_cv_c_bigendian=yes
3161 if test `grep -l LiTTleEnDian conftest.o`
3163 ac_cv_c_bigendian=no
3170 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3171 if test $ac_cv_c_bigendian = xunknown
3173 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
3177 if test $ac_cv_c_bigendian = yes
3179 cat >> confdefs.h <<\EOF
3180 #define WORDS_BIGENDIAN 1
3185 for ac_func in gettimeofday select strerror strtod strtol isatty
3187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3188 echo "configure:3189: checking for $ac_func" >&5
3189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 /* System header to define __stub macros and hopefully few prototypes,
3196 which can conflict with char $ac_func(); below. */
3198 /* Override any gcc2 internal prototype to avoid an error. */
3199 /* We use char because int might match the return type of a gcc2
3200 builtin and then its argument prototype would still apply. */
3205 /* The GNU C library defines this for functions which it implements
3206 to always fail with ENOSYS. Some functions are actually named
3207 something starting with __ and the normal name is an alias. */
3208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3216 if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3218 eval "ac_cv_func_$ac_func=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 eval "ac_cv_func_$ac_func=no"
3228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3229 echo "$ac_t""yes" 1>&6
3230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3231 cat >> confdefs.h <<EOF
3232 #define $ac_tr_func 1
3236 echo "$ac_t""no" 1>&6
3240 echo $ac_n "checking for connect""... $ac_c" 1>&6
3241 echo "configure:3242: checking for connect" >&5
3242 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 /* System header to define __stub macros and hopefully few prototypes,
3249 which can conflict with char connect(); below. */
3251 /* Override any gcc2 internal prototype to avoid an error. */
3252 /* We use char because int might match the return type of a gcc2
3253 builtin and then its argument prototype would still apply. */
3258 /* The GNU C library defines this for functions which it implements
3259 to always fail with ENOSYS. Some functions are actually named
3260 something starting with __ and the normal name is an alias. */
3261 #if defined (__stub_connect) || defined (__stub___connect)
3269 if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3271 eval "ac_cv_func_connect=yes"
3273 echo "configure: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3276 eval "ac_cv_func_connect=no"
3281 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3285 echo "$ac_t""no" 1>&6
3287 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3288 echo "configure:3289: checking for connect in -lsocket" >&5
3289 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 ac_save_LIBS="$LIBS"
3294 LIBS="-lsocket $LIBS"
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3314 eval "ac_cv_lib_$ac_lib_var=no"
3317 LIBS="$ac_save_LIBS"
3320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3321 echo "$ac_t""yes" 1>&6
3322 LIB="${LIB} -lsocket"
3324 echo "$ac_t""no" 1>&6
3330 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3331 echo "configure:3332: checking for gethostbyname" >&5
3332 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 /* System header to define __stub macros and hopefully few prototypes,
3339 which can conflict with char gethostbyname(); below. */
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 /* We use char because int might match the return type of a gcc2
3343 builtin and then its argument prototype would still apply. */
3344 char gethostbyname();
3348 /* The GNU C library defines this for functions which it implements
3349 to always fail with ENOSYS. Some functions are actually named
3350 something starting with __ and the normal name is an alias. */
3351 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3359 if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3361 eval "ac_cv_func_gethostbyname=yes"
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3366 eval "ac_cv_func_gethostbyname=no"
3371 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3372 echo "$ac_t""yes" 1>&6
3375 echo "$ac_t""no" 1>&6
3377 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3378 echo "configure:3379: checking for gethostbyname in -lnsl" >&5
3379 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 ac_save_LIBS="$LIBS"
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 /* Override any gcc2 internal prototype to avoid an error. */
3389 /* We use char because int might match the return type of a gcc2
3390 builtin and then its argument prototype would still apply. */
3391 char gethostbyname();
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_lib_$ac_lib_var=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_lib_$ac_lib_var=no"
3407 LIBS="$ac_save_LIBS"
3410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3414 echo "$ac_t""no" 1>&6
3420 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3421 echo "configure:3422: checking for nanosleep" >&5
3422 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 cat > conftest.$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 /* System header to define __stub macros and hopefully few prototypes,
3429 which can conflict with char nanosleep(); below. */
3431 /* Override any gcc2 internal prototype to avoid an error. */
3432 /* We use char because int might match the return type of a gcc2
3433 builtin and then its argument prototype would still apply. */
3438 /* The GNU C library defines this for functions which it implements
3439 to always fail with ENOSYS. Some functions are actually named
3440 something starting with __ and the normal name is an alias. */
3441 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3449 if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3451 eval "ac_cv_func_nanosleep=yes"
3453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3456 eval "ac_cv_func_nanosleep=no"
3461 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3462 echo "$ac_t""yes" 1>&6
3465 echo "$ac_t""no" 1>&6
3467 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3468 echo "configure:3469: checking for nanosleep in -lrt" >&5
3469 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 ac_save_LIBS="$LIBS"
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3487 if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3489 eval "ac_cv_lib_$ac_lib_var=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3494 eval "ac_cv_lib_$ac_lib_var=no"
3497 LIBS="$ac_save_LIBS"
3500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3504 echo "$ac_t""no" 1>&6
3506 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3507 echo "configure:3508: checking for nanosleep in -lposix4" >&5
3508 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 ac_save_LIBS="$LIBS"
3513 LIBS="-lposix4 $LIBS"
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3526 if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3528 eval "ac_cv_lib_$ac_lib_var=yes"
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3533 eval "ac_cv_lib_$ac_lib_var=no"
3536 LIBS="$ac_save_LIBS"
3539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3540 echo "$ac_t""yes" 1>&6
3541 LIB="${LIB} -lposix4"
3543 echo "$ac_t""no" 1>&6
3552 for ac_func in usleep
3554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $ac_func" >&5
3556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 /* System header to define __stub macros and hopefully few prototypes,
3563 which can conflict with char $ac_func(); below. */
3565 /* Override any gcc2 internal prototype to avoid an error. */
3566 /* We use char because int might match the return type of a gcc2
3567 builtin and then its argument prototype would still apply. */
3572 /* The GNU C library defines this for functions which it implements
3573 to always fail with ENOSYS. Some functions are actually named
3574 something starting with __ and the normal name is an alias. */
3575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3583 if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3585 eval "ac_cv_func_$ac_func=yes"
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3590 eval "ac_cv_func_$ac_func=no"
3595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3596 echo "$ac_t""yes" 1>&6
3597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3598 cat >> confdefs.h <<EOF
3599 #define $ac_tr_func 1
3603 echo "$ac_t""no" 1>&6
3607 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3608 echo "configure:3609: checking for inet_aton" >&5
3609 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 /* System header to define __stub macros and hopefully few prototypes,
3616 which can conflict with char inet_aton(); below. */
3618 /* Override any gcc2 internal prototype to avoid an error. */
3619 /* We use char because int might match the return type of a gcc2
3620 builtin and then its argument prototype would still apply. */
3625 /* The GNU C library defines this for functions which it implements
3626 to always fail with ENOSYS. Some functions are actually named
3627 something starting with __ and the normal name is an alias. */
3628 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3636 if { (eval echo configure:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3638 eval "ac_cv_func_inet_aton=yes"
3640 echo "configure: failed program was:" >&5
3641 cat conftest.$ac_ext >&5
3643 eval "ac_cv_func_inet_aton=no"
3648 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3649 echo "$ac_t""yes" 1>&6
3652 echo "$ac_t""no" 1>&6
3654 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3655 echo "configure:3656: checking for inet_aton in -lresolv" >&5
3656 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3660 ac_save_LIBS="$LIBS"
3661 LIBS="-lresolv $LIBS"
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 /* Override any gcc2 internal prototype to avoid an error. */
3666 /* We use char because int might match the return type of a gcc2
3667 builtin and then its argument prototype would still apply. */
3674 if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3676 eval "ac_cv_lib_$ac_lib_var=yes"
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3681 eval "ac_cv_lib_$ac_lib_var=no"
3684 LIBS="$ac_save_LIBS"
3687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3688 echo "$ac_t""yes" 1>&6
3689 LIB="${LIB} -lresolv"
3691 echo "$ac_t""no" 1>&6
3697 for ac_func in vasprintf
3699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3700 echo "configure:3701: checking for $ac_func" >&5
3701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 /* System header to define __stub macros and hopefully few prototypes,
3708 which can conflict with char $ac_func(); below. */
3710 /* Override any gcc2 internal prototype to avoid an error. */
3711 /* We use char because int might match the return type of a gcc2
3712 builtin and then its argument prototype would still apply. */
3717 /* The GNU C library defines this for functions which it implements
3718 to always fail with ENOSYS. Some functions are actually named
3719 something starting with __ and the normal name is an alias. */
3720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3728 if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3730 eval "ac_cv_func_$ac_func=yes"
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3735 eval "ac_cv_func_$ac_func=no"
3740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3741 echo "$ac_t""yes" 1>&6
3742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3743 cat >> confdefs.h <<EOF
3744 #define $ac_tr_func 1
3748 echo "$ac_t""no" 1>&6
3754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3755 echo "configure:3756: checking for $ac_func" >&5
3756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3762 /* System header to define __stub macros and hopefully few prototypes,
3763 which can conflict with char $ac_func(); below. */
3765 /* Override any gcc2 internal prototype to avoid an error. */
3766 /* We use char because int might match the return type of a gcc2
3767 builtin and then its argument prototype would still apply. */
3772 /* The GNU C library defines this for functions which it implements
3773 to always fail with ENOSYS. Some functions are actually named
3774 something starting with __ and the normal name is an alias. */
3775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3783 if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 eval "ac_cv_func_$ac_func=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_func_$ac_func=no"
3795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3796 echo "$ac_t""yes" 1>&6
3797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3798 cat >> confdefs.h <<EOF
3799 #define $ac_tr_func 1
3803 echo "$ac_t""no" 1>&6
3807 for ac_func in memalign valloc
3809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3810 echo "configure:3811: checking for $ac_func" >&5
3811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3817 /* System header to define __stub macros and hopefully few prototypes,
3818 which can conflict with char $ac_func(); below. */
3820 /* Override any gcc2 internal prototype to avoid an error. */
3821 /* We use char because int might match the return type of a gcc2
3822 builtin and then its argument prototype would still apply. */
3827 /* The GNU C library defines this for functions which it implements
3828 to always fail with ENOSYS. Some functions are actually named
3829 something starting with __ and the normal name is an alias. */
3830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3838 if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3840 eval "ac_cv_func_$ac_func=yes"
3842 echo "configure: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3845 eval "ac_cv_func_$ac_func=no"
3850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3853 cat >> confdefs.h <<EOF
3854 #define $ac_tr_func 1
3858 echo "$ac_t""no" 1>&6
3863 for ac_func in sigrelse
3865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3866 echo "configure:3867: checking for $ac_func" >&5
3867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* System header to define __stub macros and hopefully few prototypes,
3874 which can conflict with char $ac_func(); below. */
3876 /* Override any gcc2 internal prototype to avoid an error. */
3877 /* We use char because int might match the return type of a gcc2
3878 builtin and then its argument prototype would still apply. */
3883 /* The GNU C library defines this for functions which it implements
3884 to always fail with ENOSYS. Some functions are actually named
3885 something starting with __ and the normal name is an alias. */
3886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3894 if { (eval echo configure:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3896 eval "ac_cv_func_$ac_func=yes"
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3901 eval "ac_cv_func_$ac_func=no"
3906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3907 echo "$ac_t""yes" 1>&6
3908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3909 cat >> confdefs.h <<EOF
3910 #define $ac_tr_func 1
3914 echo "$ac_t""no" 1>&6
3920 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3921 echo "configure:3922: checking for getopt_long" >&5
3922 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 /* System header to define __stub macros and hopefully few prototypes,
3929 which can conflict with char getopt_long(); below. */
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 /* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
3938 /* The GNU C library defines this for functions which it implements
3939 to always fail with ENOSYS. Some functions are actually named
3940 something starting with __ and the normal name is an alias. */
3941 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 eval "ac_cv_func_getopt_long=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3956 eval "ac_cv_func_getopt_long=no"
3961 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3963 cat >> confdefs.h <<\EOF
3964 #define HAVE_GETOPT_LONG 1
3968 echo "$ac_t""no" 1>&6
3969 # FreeBSD has a gnugetopt library for this:
3970 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3971 echo "configure:3972: checking for getopt_long in -lgnugetopt" >&5
3972 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 ac_save_LIBS="$LIBS"
3977 LIBS="-lgnugetopt $LIBS"
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 /* Override any gcc2 internal prototype to avoid an error. */
3982 /* We use char because int might match the return type of a gcc2
3983 builtin and then its argument prototype would still apply. */
3990 if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3992 eval "ac_cv_lib_$ac_lib_var=yes"
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3997 eval "ac_cv_lib_$ac_lib_var=no"
4000 LIBS="$ac_save_LIBS"
4003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4004 echo "$ac_t""yes" 1>&6
4005 cat >> confdefs.h <<\EOF
4006 #define HAVE_GETOPT_LONG 1
4008 LIB="${LIB} -lgnugetopt"
4010 echo "$ac_t""no" 1>&6
4017 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4018 echo "configure:4019: checking return type of signal handlers" >&5
4019 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4025 #include <sys/types.h>
4031 extern "C" void (*signal (int, void (*)(int)))(int);
4033 void (*signal ()) ();
4040 if { (eval echo configure:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4042 ac_cv_type_signal=void
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4047 ac_cv_type_signal=int
4052 echo "$ac_t""$ac_cv_type_signal" 1>&6
4053 cat >> confdefs.h <<EOF
4054 #define RETSIGTYPE $ac_cv_type_signal
4058 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4059 echo "configure:4060: checking for dlopen in -ldl" >&5
4060 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4064 ac_save_LIBS="$LIBS"
4066 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4069 /* Override any gcc2 internal prototype to avoid an error. */
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4078 if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4080 eval "ac_cv_lib_$ac_lib_var=yes"
4082 echo "configure: failed program was:" >&5
4083 cat conftest.$ac_ext >&5
4085 eval "ac_cv_lib_$ac_lib_var=no"
4088 LIBS="$ac_save_LIBS"
4091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4092 echo "$ac_t""yes" 1>&6
4095 echo "$ac_t""no" 1>&6
4098 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4099 echo "configure:4100: checking for cos in -lm" >&5
4100 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 ac_save_LIBS="$LIBS"
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4109 /* Override any gcc2 internal prototype to avoid an error. */
4110 /* We use char because int might match the return type of a gcc2
4111 builtin and then its argument prototype would still apply. */
4118 if { (eval echo configure:4119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4120 eval "ac_cv_lib_$ac_lib_var=yes"
4122 echo "configure: failed program was:" >&5
4123 cat conftest.$ac_ext >&5
4125 eval "ac_cv_lib_$ac_lib_var=no"
4128 LIBS="$ac_save_LIBS"
4131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4133 LIB_IMDCT="${LIB_IMDCT} -lm"
4134 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4136 echo "$ac_t""no" 1>&6
4139 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4140 echo "configure:4141: checking for pow in -lm" >&5
4141 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4145 ac_save_LIBS="$LIBS"
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 /* Override any gcc2 internal prototype to avoid an error. */
4151 /* We use char because int might match the return type of a gcc2
4152 builtin and then its argument prototype would still apply. */
4159 if { (eval echo configure:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4161 eval "ac_cv_lib_$ac_lib_var=yes"
4163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4166 eval "ac_cv_lib_$ac_lib_var=no"
4169 LIBS="$ac_save_LIBS"
4172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4174 LIB_IMDCT="${LIB_IMDCT} -lm"
4175 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4176 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4179 echo "$ac_t""no" 1>&6
4184 if test "x${THREAD_LIB}" = xerror; then
4185 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4186 echo "configure:4187: checking for pthread_attr_init in -lpthread" >&5
4187 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4191 ac_save_LIBS="$LIBS"
4192 LIBS="-lpthread $LIBS"
4193 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4196 /* Override any gcc2 internal prototype to avoid an error. */
4197 /* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4199 char pthread_attr_init();
4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4207 eval "ac_cv_lib_$ac_lib_var=yes"
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4212 eval "ac_cv_lib_$ac_lib_var=no"
4215 LIBS="$ac_save_LIBS"
4218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4220 THREAD_LIB="-lpthread"
4222 echo "$ac_t""no" 1>&6
4226 if test "x${THREAD_LIB}" = xerror; then
4227 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4228 echo "configure:4229: checking for pthread_attr_init in -lpthreads" >&5
4229 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4231 echo $ac_n "(cached) $ac_c" 1>&6
4233 ac_save_LIBS="$LIBS"
4234 LIBS="-lpthreads $LIBS"
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4238 /* Override any gcc2 internal prototype to avoid an error. */
4239 /* We use char because int might match the return type of a gcc2
4240 builtin and then its argument prototype would still apply. */
4241 char pthread_attr_init();
4247 if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4249 eval "ac_cv_lib_$ac_lib_var=yes"
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4254 eval "ac_cv_lib_$ac_lib_var=no"
4257 LIBS="$ac_save_LIBS"
4260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4262 THREAD_LIB="-lpthreads"
4264 echo "$ac_t""no" 1>&6
4268 if test "x${THREAD_LIB}" = xerror; then
4269 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4270 echo "configure:4271: checking for pthread_attr_init in -lc_r" >&5
4271 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 ac_save_LIBS="$LIBS"
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 /* Override any gcc2 internal prototype to avoid an error. */
4281 /* We use char because int might match the return type of a gcc2
4282 builtin and then its argument prototype would still apply. */
4283 char pthread_attr_init();
4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4291 eval "ac_cv_lib_$ac_lib_var=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 eval "ac_cv_lib_$ac_lib_var=no"
4299 LIBS="$ac_save_LIBS"
4302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4306 echo "$ac_t""no" 1>&6
4310 if test "x${THREAD_LIB}" = xerror; then
4311 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4312 echo "configure:4313: checking for pthread_attr_init" >&5
4313 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 /* System header to define __stub macros and hopefully few prototypes,
4320 which can conflict with char pthread_attr_init(); below. */
4322 /* Override any gcc2 internal prototype to avoid an error. */
4323 /* We use char because int might match the return type of a gcc2
4324 builtin and then its argument prototype would still apply. */
4325 char pthread_attr_init();
4329 /* The GNU C library defines this for functions which it implements
4330 to always fail with ENOSYS. Some functions are actually named
4331 something starting with __ and the normal name is an alias. */
4332 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4335 pthread_attr_init();
4340 if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4342 eval "ac_cv_func_pthread_attr_init=yes"
4344 echo "configure: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4347 eval "ac_cv_func_pthread_attr_init=no"
4352 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4356 echo "$ac_t""no" 1>&6
4362 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4363 echo "configure:4364: checking for cthread_fork in -lthreads" >&5
4364 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 ac_save_LIBS="$LIBS"
4369 LIBS="-lthreads $LIBS"
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 /* Override any gcc2 internal prototype to avoid an error. */
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376 char cthread_fork();
4382 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4384 eval "ac_cv_lib_$ac_lib_var=yes"
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4389 eval "ac_cv_lib_$ac_lib_var=no"
4392 LIBS="$ac_save_LIBS"
4395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4397 THREAD_LIB="-lthreads"
4399 echo "$ac_t""no" 1>&6
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406 #include <pthread.h>
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 egrep "pthread_cond_t" >/dev/null 2>&1; then
4412 cat >> confdefs.h <<\EOF
4413 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 #include <strings.h>
4424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4425 egrep "strncasecmp" >/dev/null 2>&1; then
4428 cat >> confdefs.h <<\EOF
4429 #define STRNCASECMP_IN_STRINGS_H 1
4436 for ac_hdr in getopt.h strings.h
4438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4440 echo "configure:4441: checking for $ac_hdr" >&5
4441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4450 { (eval echo configure:4451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4452 if test -z "$ac_err"; then
4454 eval "ac_cv_header_$ac_safe=yes"
4457 echo "configure: failed program was:" >&5
4458 cat conftest.$ac_ext >&5
4460 eval "ac_cv_header_$ac_safe=no"
4464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4465 echo "$ac_t""yes" 1>&6
4466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4467 cat >> confdefs.h <<EOF
4468 #define $ac_tr_hdr 1
4472 echo "$ac_t""no" 1>&6
4476 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4480 echo "configure:4481: checking for $ac_hdr" >&5
4481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4490 { (eval echo configure:4491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4492 if test -z "$ac_err"; then
4494 eval "ac_cv_header_$ac_safe=yes"
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 eval "ac_cv_header_$ac_safe=no"
4504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4505 echo "$ac_t""yes" 1>&6
4506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4507 cat >> confdefs.h <<EOF
4508 #define $ac_tr_hdr 1
4512 echo "$ac_t""no" 1>&6
4516 for ac_hdr in sys/soundcard.h machine/soundcard.h
4518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4520 echo "configure:4521: checking for $ac_hdr" >&5
4521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4530 { (eval echo configure:4531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4532 if test -z "$ac_err"; then
4534 eval "ac_cv_header_$ac_safe=yes"
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4540 eval "ac_cv_header_$ac_safe=no"
4544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4545 echo "$ac_t""yes" 1>&6
4546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4547 cat >> confdefs.h <<EOF
4548 #define $ac_tr_hdr 1
4552 echo "$ac_t""no" 1>&6
4556 for ac_hdr in dlfcn.h image.h
4558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4560 echo "configure:4561: checking for $ac_hdr" >&5
4561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4570 { (eval echo configure:4571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4572 if test -z "$ac_err"; then
4574 eval "ac_cv_header_$ac_safe=yes"
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4580 eval "ac_cv_header_$ac_safe=no"
4584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4585 echo "$ac_t""yes" 1>&6
4586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4587 cat >> confdefs.h <<EOF
4588 #define $ac_tr_hdr 1
4592 echo "$ac_t""no" 1>&6
4596 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4600 echo "configure:4601: checking for $ac_hdr" >&5
4601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4610 { (eval echo configure:4611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4612 if test -z "$ac_err"; then
4614 eval "ac_cv_header_$ac_safe=yes"
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 eval "ac_cv_header_$ac_safe=no"
4624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4627 cat >> confdefs.h <<EOF
4628 #define $ac_tr_hdr 1
4632 echo "$ac_t""no" 1>&6
4636 for ac_hdr in machine/param.h sys/shm.h
4638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4640 echo "configure:4641: checking for $ac_hdr" >&5
4641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4644 cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4650 { (eval echo configure:4651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4652 if test -z "$ac_err"; then
4654 eval "ac_cv_header_$ac_safe=yes"
4657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4660 eval "ac_cv_header_$ac_safe=no"
4664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4665 echo "$ac_t""yes" 1>&6
4666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4667 cat >> confdefs.h <<EOF
4668 #define $ac_tr_hdr 1
4672 echo "$ac_t""no" 1>&6
4677 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4678 echo "configure:4679: checking whether time.h and sys/time.h may both be included" >&5
4679 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 #include <sys/types.h>
4686 #include <sys/time.h>
4692 if { (eval echo configure:4693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4694 ac_cv_header_time=yes
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4699 ac_cv_header_time=no
4704 echo "$ac_t""$ac_cv_header_time" 1>&6
4705 if test $ac_cv_header_time = yes; then
4706 cat >> confdefs.h <<\EOF
4707 #define TIME_WITH_SYS_TIME 1
4713 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4717 echo "configure:4718: checking for $ac_hdr" >&5
4718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 cat > conftest.$ac_ext <<EOF
4722 #line 4723 "configure"
4723 #include "confdefs.h"
4726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4727 { (eval echo configure:4728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4729 if test -z "$ac_err"; then
4731 eval "ac_cv_header_$ac_safe=yes"
4734 echo "configure: failed program was:" >&5
4735 cat conftest.$ac_ext >&5
4737 eval "ac_cv_header_$ac_safe=no"
4741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4742 echo "$ac_t""yes" 1>&6
4743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4744 cat >> confdefs.h <<EOF
4745 #define $ac_tr_hdr 1
4749 echo "$ac_t""no" 1>&6
4754 if test x$SYS != xmingw32
4756 if test x$x_includes = xNONE; then
4757 x_includes=/usr/X11R6/include
4759 if test x$x_libraries = xNONE; then
4760 x_libraries=/usr/X11R6/lib
4762 saved_CPPFLAGS=$CPPFLAGS
4763 CPPFLAGS="$CPPFLAGS -I$x_includes"
4764 for ac_hdr in X11/extensions/dpms.h
4766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4768 echo "configure:4769: checking for $ac_hdr" >&5
4769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 cat > conftest.$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4778 { (eval echo configure:4779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4780 if test -z "$ac_err"; then
4782 eval "ac_cv_header_$ac_safe=yes"
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 eval "ac_cv_header_$ac_safe=no"
4792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4795 cat >> confdefs.h <<EOF
4796 #define $ac_tr_hdr 1
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 #include <X11/extensions/dpms.h>
4804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805 egrep "DPMSInfo" >/dev/null 2>&1; then
4808 cat >> confdefs.h <<\EOF
4809 #define DPMSINFO_IN_DPMS_H 1
4818 echo "$ac_t""no" 1>&6
4822 CPPFLAGS=$saved_CPPFLAGS
4825 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4826 echo "configure:4827: checking for ntohl in sys/param.h" >&5
4827 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 CFLAGS="${save_CFLAGS} -Wall -Werror"
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 #include <sys/param.h>
4836 void foo() { int meuh; ntohl(meuh); }
4839 if { (eval echo configure:4840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4841 ac_cv_c_ntohl_sys_param_h=yes
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 ac_cv_c_ntohl_sys_param_h=no
4851 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4852 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4853 cat >> confdefs.h <<\EOF
4854 #define NTOHL_IN_SYS_PARAM_H 1
4859 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4860 echo "configure:4861: checking if \$CC accepts -finline-limit" >&5
4861 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4873 if { (eval echo configure:4874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4875 ac_cv_c_inline_limit=yes
4877 echo "configure: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4880 ac_cv_c_inline_limit=no
4885 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4886 if test x"$ac_cv_c_inline_limit" != x"no"; then
4887 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4890 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4891 echo "configure:4892: checking if \$CC accepts -Wall -Winline" >&5
4892 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4895 CFLAGS="${save_CFLAGS} -Wall -Winline"
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4904 if { (eval echo configure:4905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4906 ac_cv_c_Wall_Winline=yes
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4911 ac_cv_c_Wall_Winline=no
4916 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4917 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4918 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4920 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4921 echo "configure:4922: checking if \$CC accepts -wall -winline" >&5
4922 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4925 CFLAGS="${save_CFLAGS} -wall -winline"
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4934 if { (eval echo configure:4935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4936 ac_cv_c_wall_winline=yes
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4941 ac_cv_c_wall_winline=no
4946 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4947 if test x"$ac_cv_c_wall_winline" != x"no"; then
4948 save_CFLAGS="${save_CFLAGS} -wall -winline"
4952 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4953 echo "configure:4954: checking if \$CC accepts -pipe" >&5
4954 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 CFLAGS="${save_CFLAGS} -pipe"
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4966 if { (eval echo configure:4967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4970 echo "configure: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4978 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4979 if test x"$ac_cv_c_pipe" != x"no"; then
4980 save_CFLAGS="${save_CFLAGS} -pipe"
4983 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4984 echo "configure:4985: checking if \$CC accepts -O3" >&5
4985 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4988 CFLAGS="${save_CFLAGS} -O3"
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4997 if { (eval echo configure:4998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5001 echo "configure: failed program was:" >&5
5002 cat conftest.$ac_ext >&5
5009 echo "$ac_t""$ac_cv_c_o3" 1>&6
5010 if test x"$ac_cv_c_o3" != x"no"; then
5011 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5013 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5014 echo "configure:5015: checking if \$CC accepts -O2" >&5
5015 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5018 CFLAGS="${save_CFLAGS} -O2"
5019 cat > conftest.$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5027 if { (eval echo configure:5028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5039 echo "$ac_t""$ac_cv_c_o2" 1>&6
5040 if test x"$ac_cv_c_o2" != x"no"; then
5041 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5043 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5044 echo "configure:5045: checking if \$CC accepts -O" >&5
5045 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5048 CFLAGS="${save_CFLAGS} -O"
5049 cat > conftest.$ac_ext <<EOF
5050 #line 5051 "configure"
5051 #include "confdefs.h"
5057 if { (eval echo configure:5058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5061 echo "configure: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5069 echo "$ac_t""$ac_cv_c_o" 1>&6
5070 if test x"$ac_cv_c_o" != x"no"; then
5071 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5076 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5077 echo "configure:5078: checking if \$CC accepts -ffast-math" >&5
5078 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5081 CFLAGS="${save_CFLAGS} -ffast-math"
5082 cat > conftest.$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5090 if { (eval echo configure:5091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5092 ac_cv_c_fast_math=yes
5094 echo "configure: failed program was:" >&5
5095 cat conftest.$ac_ext >&5
5097 ac_cv_c_fast_math=no
5102 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5103 if test x"$ac_cv_c_fast_math" != x"no"; then
5104 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5107 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5108 echo "configure:5109: checking if \$CC accepts -funroll-loops" >&5
5109 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5112 CFLAGS="${save_CFLAGS} -funroll-loops"
5113 cat > conftest.$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5121 if { (eval echo configure:5122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5123 ac_cv_c_unroll_loops=yes
5125 echo "configure: failed program was:" >&5
5126 cat conftest.$ac_ext >&5
5128 ac_cv_c_unroll_loops=no
5133 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5134 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5135 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5138 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5139 echo "configure:5140: checking if \$CC accepts -fomit-frame-pointer" >&5
5140 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5143 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5144 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5152 if { (eval echo configure:5153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5154 ac_cv_c_omit_frame_pointer=yes
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 ac_cv_c_omit_frame_pointer=no
5164 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5165 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5166 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5169 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
5170 echo "configure:5171: checking if \$CC accepts -bundle -undefined error" >&5
5171 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 CFLAGS="${save_CFLAGS} -bundle -undefined error"
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5183 if { (eval echo configure:5184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5187 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5
5195 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5196 if test x"$ac_cv_ld_darwin" != x"no"; then
5197 PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
5200 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5201 echo "configure:5202: checking if \$CC accepts -shared" >&5
5202 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5205 CFLAGS="${save_CFLAGS} -shared"
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5214 if { (eval echo configure:5215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5216 ac_cv_ld_plugins=yes
5218 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5226 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5227 if test x"$ac_cv_ld_plugins" != x"no"; then
5228 PLDFLAGS="${PLDFLAGS} -shared"
5231 if test x"${SOFLAGS}" = x; then
5232 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5233 echo "configure:5234: checking for soname setting" >&5
5234 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5239 try_SOFLAGS="-Wl,-soname -Wl,"
5240 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5241 cat > conftest.$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5251 ac_cv_ld_soname="${try_SOFLAGS}"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5258 try_SOFLAGS="-Wl,-h -Wl,"
5259 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5270 ac_cv_ld_soname="${try_SOFLAGS}"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 ac_cv_ld_soname=none
5283 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5284 if test x"$ac_cv_ld_soname" != x"none"; then
5285 SOFLAGS=$ac_cv_ld_soname
5289 Your system doesn't seem to have support for dynamic linking. You may
5290 have problems using libdvdcss.
5296 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5297 echo "configure:5298: checking __attribute__ ((aligned ())) support" >&5
5298 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5299 echo $ac_n "(cached) $ac_c" 1>&6
5301 ac_cv_c_attribute_aligned=0
5302 CFLAGS="${save_CFLAGS} -Werror"
5303 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5309 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5312 if { (eval echo configure:5313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5314 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5316 echo "configure: failed program was:" >&5
5317 cat conftest.$ac_ext >&5
5323 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5324 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5325 cat >> confdefs.h <<EOF
5326 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5331 CFLAGS="${save_CFLAGS}"
5332 LDFLAGS="${save_LDFLAGS}"
5334 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5335 echo "configure:5336: checking for boolean_t in sys/types.h" >&5
5336 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342 #include <sys/types.h>
5347 if { (eval echo configure:5348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5349 ac_cv_c_boolean_t_sys_types_h=yes
5351 echo "configure: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5354 ac_cv_c_boolean_t_sys_types_h=no
5359 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5360 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5361 cat >> confdefs.h <<\EOF
5362 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5367 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5368 echo "configure:5369: checking for boolean_t in pthread.h" >&5
5369 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 #include <pthread.h>
5380 if { (eval echo configure:5381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5382 ac_cv_c_boolean_t_pthread_h=yes
5384 echo "configure: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5387 ac_cv_c_boolean_t_pthread_h=no
5392 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5393 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5394 cat >> confdefs.h <<\EOF
5395 #define BOOLEAN_T_IN_PTHREAD_H 1
5400 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5401 echo "configure:5402: checking for boolean_t in cthreads.h" >&5
5402 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5403 echo $ac_n "(cached) $ac_c" 1>&6
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 #include <cthreads.h>
5413 if { (eval echo configure:5414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5415 ac_cv_c_boolean_t_cthreads_h=yes
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5420 ac_cv_c_boolean_t_cthreads_h=no
5425 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5426 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5427 cat >> confdefs.h <<\EOF
5428 #define BOOLEAN_T_IN_CTHREADS_H 1
5433 case x"${target_cpu}" in
5442 BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5443 PLUGINS="${PLUGINS} lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
5445 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5446 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5447 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5448 SSE_MODULES="imdctsse downmixsse"
5449 ALTIVEC_MODULES="idctaltivec motionaltivec"
5451 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5452 echo "configure:5453: checking if \$CC groks MMX inline assembly" >&5
5453 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5461 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5464 if { (eval echo configure:5465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5466 ac_cv_mmx_inline=yes
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5476 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5477 if test x"$ac_cv_mmx_inline" != x"no"; then
5478 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5481 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5482 echo "configure:5483: checking if \$CC groks MMX EXT inline assembly" >&5
5483 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5491 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5494 if { (eval echo configure:5495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5496 ac_cv_mmxext_inline=yes
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5501 ac_cv_mmxext_inline=no
5506 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5507 if test x"$ac_cv_mmxext_inline" != x"no"; then
5508 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5511 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5512 echo "configure:5513: checking if \$CC groks 3D Now! inline assembly" >&5
5513 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5516 cat > conftest.$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5521 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5524 if { (eval echo configure:5525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5526 ac_cv_3dnow_inline=yes
5528 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5531 ac_cv_3dnow_inline=no
5536 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5537 if test x"$ac_cv_3dnow_inline" != x"no"; then
5538 cat >> confdefs.h <<\EOF
5539 #define CAN_COMPILE_3DNOW 1
5542 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5545 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5546 echo "configure:5547: checking if \$CC groks SSE inline assembly" >&5
5547 if eval "test \"`echo '$''{'ac_cv_sse_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 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5558 if { (eval echo configure:5559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5560 ac_cv_sse_inline=yes
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5570 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5571 if test x"$ac_cv_sse_inline" != x"no"; then
5572 cat >> confdefs.h <<\EOF
5573 #define CAN_COMPILE_SSE 1
5576 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5579 # don't try to grok altivec with native mingw32 it doesn't work right now
5580 # we should be able to remove this test with future versions of mingw32
5581 if test x$SYS != xmingw32; then
5582 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5583 echo "configure:5584: checking if \$CC groks Altivec inline assembly" >&5
5584 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5585 echo $ac_n "(cached) $ac_c" 1>&6
5587 cat > conftest.$ac_ext <<EOF
5588 #line 5589 "configure"
5589 #include "confdefs.h"
5592 asm volatile("vperm 0,1,2,3");
5595 if { (eval echo configure:5596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5597 ac_cv_altivec_inline=yes
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5603 CFLAGS="$CFLAGS -Wa,-m7400"
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5609 asm volatile("vperm 0,1,2,3");
5612 if { (eval echo configure:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5614 ac_cv_altivec_inline="-Wa,-m7400"
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5619 ac_cv_altivec_inline=no
5628 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5629 if test x"$ac_cv_altivec_inline" != x"no"; then
5630 cat >> confdefs.h <<\EOF
5631 #define CAN_COMPILE_ALTIVEC 1
5634 if test x"$ac_cv_altivec_inline" != x"yes"; then
5635 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5636 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5637 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5639 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5642 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5643 echo "configure:5644: checking if \$CC groks Altivec C extensions" >&5
5644 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5648 CFLAGS="$CFLAGS -faltivec"
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5655 vec_mtvscr((vector unsigned int)(0));
5658 if { (eval echo configure:5659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5660 ac_cv_c_altivec=-faltivec
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5667 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5668 cat > conftest.$ac_ext <<EOF
5669 #line 5670 "configure"
5670 #include "confdefs.h"
5673 vec_mtvscr((vector unsigned int)(0));
5676 if { (eval echo configure:5677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5678 ac_cv_c_altivec="-fvec"
5680 echo "configure: failed program was:" >&5
5681 cat conftest.$ac_ext >&5
5693 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5694 if test x"$ac_cv_c_altivec" != x"no"; then
5695 cat >> confdefs.h <<\EOF
5696 #define CAN_COMPILE_C_ALTIVEC 1
5699 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5700 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5701 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5702 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5705 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5706 echo "configure:5707: checking if linker needs -framework vecLib" >&5
5707 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
5710 save_LDFLAGS=$LDFLAGS
5711 LDFLAGS="$LDFLAGS -framework vecLib"
5712 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5722 ac_cv_ld_altivec=yes
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5730 LDFLAGS=$save_LDFLAGS
5734 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5735 if test x"$ac_cv_ld_altivec" != x"no"; then
5736 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5737 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5738 LIB="${LIB} -framework vecLib"
5748 DVD_DEVICE="/dev/dvd"
5749 VCD_DEVICE="/dev/cdrom"
5753 cat >> confdefs.h <<EOF
5754 #define DVD_DEVICE "$DVD_DEVICE"
5757 cat >> confdefs.h <<EOF
5758 #define VCD_DEVICE "$VCD_DEVICE"
5764 CAN_BUILD_LIBDVDCSS=0
5766 for ac_hdr in winioctl.h
5768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5770 echo "configure:5771: checking for $ac_hdr" >&5
5771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5774 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5780 { (eval echo configure:5781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5782 if test -z "$ac_err"; then
5784 eval "ac_cv_header_$ac_safe=yes"
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5790 eval "ac_cv_header_$ac_safe=no"
5794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5795 echo "$ac_t""yes" 1>&6
5796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5797 cat >> confdefs.h <<EOF
5798 #define $ac_tr_hdr 1
5801 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5804 echo "$ac_t""no" 1>&6
5809 for ac_hdr in sys/ioctl.h
5811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5813 echo "configure:5814: checking for $ac_hdr" >&5
5814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5823 { (eval echo configure:5824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5825 if test -z "$ac_err"; then
5827 eval "ac_cv_header_$ac_safe=yes"
5830 echo "configure: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5833 eval "ac_cv_header_$ac_safe=no"
5837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5840 cat >> confdefs.h <<EOF
5841 #define $ac_tr_hdr 1
5844 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5845 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5849 echo "configure:5850: checking for $ac_hdr" >&5
5850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5851 echo $ac_n "(cached) $ac_c" 1>&6
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5859 { (eval echo configure:5860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5861 if test -z "$ac_err"; then
5863 eval "ac_cv_header_$ac_safe=yes"
5866 echo "configure: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5869 eval "ac_cv_header_$ac_safe=no"
5873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5876 cat >> confdefs.h <<EOF
5877 #define $ac_tr_hdr 1
5881 echo "$ac_t""no" 1>&6
5887 OPENBSD_DVD_STRUCT=0
5888 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5891 #include <sys/cdio.h>
5893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5894 egrep "dvd_struct" >/dev/null 2>&1; then
5897 cat >> confdefs.h <<\EOF
5898 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5904 #include <sys/cdio.h>
5906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5907 egrep "struct dvd_struct" >/dev/null 2>&1; then
5913 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5921 cat > conftest.$ac_ext <<EOF
5922 #line 5923 "configure"
5923 #include "confdefs.h"
5924 #include <sys/dvdio.h>
5926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 egrep "dvd_struct" >/dev/null 2>&1; then
5930 cat >> confdefs.h <<\EOF
5931 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 #include <sys/dvdio.h>
5939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5940 egrep "struct dvd_struct" >/dev/null 2>&1; then
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 #include <linux/cdrom.h>
5959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5960 egrep "dvd_struct" >/dev/null 2>&1; then
5963 cat >> confdefs.h <<\EOF
5964 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5973 cat > conftest.$ac_ext <<EOF
5974 #line 5975 "configure"
5975 #include "confdefs.h"
5978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5979 egrep "dvd_struct" >/dev/null 2>&1; then
5982 cat >> confdefs.h <<\EOF
5983 #define DVD_STRUCT_IN_DVD_H 1
5986 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
5992 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
5994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5996 echo "configure:5997: checking for $ac_hdr" >&5
5997 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6006 { (eval echo configure:6007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6008 if test -z "$ac_err"; then
6010 eval "ac_cv_header_$ac_safe=yes"
6013 echo "configure: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6016 eval "ac_cv_header_$ac_safe=no"
6020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6021 echo "$ac_t""yes" 1>&6
6022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6023 cat >> confdefs.h <<EOF
6024 #define $ac_tr_hdr 1
6028 cat >> confdefs.h <<\EOF
6029 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6032 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6036 echo "$ac_t""no" 1>&6
6044 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6045 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6046 echo "configure:6047: checking for sys/scsi/scsi_types.h" >&5
6047 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6048 echo $ac_n "(cached) $ac_c" 1>&6
6050 cat > conftest.$ac_ext <<EOF
6051 #line 6052 "configure"
6052 #include "confdefs.h"
6053 #include <sys/scsi/scsi_types.h>
6055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6056 { (eval echo configure:6057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6058 if test -z "$ac_err"; then
6060 eval "ac_cv_header_$ac_safe=yes"
6063 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6066 eval "ac_cv_header_$ac_safe=no"
6070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6071 echo "$ac_t""yes" 1>&6
6073 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6074 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6075 echo "configure:6076: checking for sys/scsi/impl/uscsi.h" >&5
6076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6079 cat > conftest.$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6082 #include <sys/scsi/impl/uscsi.h>
6084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6085 { (eval echo configure:6086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6087 if test -z "$ac_err"; then
6089 eval "ac_cv_header_$ac_safe=yes"
6092 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5
6095 eval "ac_cv_header_$ac_safe=no"
6099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6100 echo "$ac_t""yes" 1>&6
6102 cat >> confdefs.h <<\EOF
6103 #define SOLARIS_USCSI 1
6108 echo "$ac_t""no" 1>&6
6113 echo "$ac_t""no" 1>&6
6116 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6117 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6118 echo "configure:6119: checking for sys/scsi.h" >&5
6119 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6125 #include <sys/scsi.h>
6127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6128 { (eval echo configure:6129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6130 if test -z "$ac_err"; then
6132 eval "ac_cv_header_$ac_safe=yes"
6135 echo "configure: failed program was:" >&5
6136 cat conftest.$ac_ext >&5
6138 eval "ac_cv_header_$ac_safe=no"
6142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6143 echo "$ac_t""yes" 1>&6
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 #include <sys/scsi.h>
6150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6151 egrep "sctl_io" >/dev/null 2>&1; then
6154 cat >> confdefs.h <<\EOF
6155 #define HPUX_SCTL_IO 1
6164 echo "$ac_t""no" 1>&6
6167 if test x$LINUX_DVD_STRUCT = x1; then
6168 cat >> confdefs.h <<\EOF
6169 #define HAVE_LINUX_DVD_STRUCT 1
6172 if test x$OPENBSD_DVD_STRUCT = x1; then
6173 cat >> confdefs.h <<\EOF
6174 #define HAVE_OPENBSD_DVD_STRUCT 1
6179 if test x$BSD_DVD_STRUCT = x1; then
6180 cat >> confdefs.h <<\EOF
6181 #define HAVE_BSD_DVD_STRUCT 1
6188 echo "$ac_t""no" 1>&6
6193 # Check whether --with-tuning or --without-tuning was given.
6194 if test "${with_tuning+set}" = set; then
6195 withval="$with_tuning"
6199 if test "x$withval" != "x"; then
6202 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6204 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6208 # Check whether --enable-release or --disable-release was given.
6209 if test "${enable_release+set}" = set; then
6210 enableval="$enable_release"
6211 if test x$enableval = xyes; then RELEASE=1; fi
6213 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6214 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6218 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6221 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6224 # Check whether --enable-altivec or --disable-altivec was given.
6225 if test "${enable_altivec+set}" = set; then
6226 enableval="$enable_altivec"
6227 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6228 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6230 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6231 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6236 # Check whether --enable-debug or --disable-debug was given.
6237 if test "${enable_debug+set}" = set; then
6238 enableval="$enable_debug"
6239 if test x$enableval = xyes; then DEBUG=1; fi
6244 # Check whether --enable-gprof or --disable-gprof was given.
6245 if test "${enable_gprof+set}" = set; then
6246 enableval="$enable_gprof"
6247 if test x$enableval = xyes; then GPROF=1; fi
6252 # Check whether --enable-cprof or --disable-cprof was given.
6253 if test "${enable_cprof+set}" = set; then
6254 enableval="$enable_cprof"
6255 if test x$enableval = xyes;
6257 LIB="${LIB} -lcprof"
6264 # Check whether --enable-optimizations or --disable-optimizations was given.
6265 if test "${enable_optimizations+set}" = set; then
6266 enableval="$enable_optimizations"
6267 if test x$enableval = xno; then OPTIMS=0; fi
6273 # Check whether --enable-pth or --disable-pth was given.
6274 if test "${enable_pth+set}" = set; then
6275 enableval="$enable_pth"
6276 if test x$enableval = xyes; then
6277 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
6278 echo "configure:6279: checking for pth_init in -lpth" >&5
6279 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
6280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6281 echo $ac_n "(cached) $ac_c" 1>&6
6283 ac_save_LIBS="$LIBS"
6285 cat > conftest.$ac_ext <<EOF
6286 #line 6287 "configure"
6287 #include "confdefs.h"
6288 /* Override any gcc2 internal prototype to avoid an error. */
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6297 if { (eval echo configure:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6299 eval "ac_cv_lib_$ac_lib_var=yes"
6301 echo "configure: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6304 eval "ac_cv_lib_$ac_lib_var=no"
6307 LIBS="$ac_save_LIBS"
6310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6311 echo "$ac_t""yes" 1>&6
6312 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6314 cat >> confdefs.h <<EOF
6315 #define $ac_tr_lib 1
6321 echo "$ac_t""no" 1>&6
6324 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330 egrep "pth_init" >/dev/null 2>&1; then
6333 cat >> confdefs.h <<\EOF
6334 #define PTH_INIT_IN_PTH_H 1
6346 # Check whether --enable-st or --disable-st was given.
6347 if test "${enable_st+set}" = set; then
6348 enableval="$enable_st"
6349 if test x$enableval = xyes; then
6350 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
6351 echo "configure:6352: checking for st_init in -lst" >&5
6352 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
6353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 ac_save_LIBS="$LIBS"
6358 cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* Override any gcc2 internal prototype to avoid an error. */
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6370 if { (eval echo configure:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6372 eval "ac_cv_lib_$ac_lib_var=yes"
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6377 eval "ac_cv_lib_$ac_lib_var=no"
6380 LIBS="$ac_save_LIBS"
6383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6384 echo "$ac_t""yes" 1>&6
6385 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6387 cat >> confdefs.h <<EOF
6388 #define $ac_tr_lib 1
6394 echo "$ac_t""no" 1>&6
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403 egrep "st_init" >/dev/null 2>&1; then
6406 cat >> confdefs.h <<\EOF
6407 #define ST_INIT_IN_ST_H 1
6419 LIB="${LIB} ${THREAD_LIB}"
6424 # Check whether --with-dvdcss or --without-dvdcss was given.
6425 if test "${with_dvdcss+set}" = set; then
6426 withval="$with_dvdcss"
6427 case "x${withval}" in
6429 # local libdvdcss, statically linked
6430 BUILTINS="${BUILTINS} dvd"
6431 if test x${CAN_BUILD_LIBDVDCSS} = x1
6435 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6436 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6440 # local libdvdcss, dynamically linked
6441 PLUGINS="${PLUGINS} dvd"
6442 if test x${CAN_BUILD_LIBDVDCSS} = x1
6445 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6446 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6450 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6451 BUILTINS="${BUILTINS} dvd"
6453 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6454 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6455 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6456 LIB_DVD="${LIB_DVD} -ldl"
6459 # existing libdvdcss
6460 PLUGINS="${PLUGINS} dvd"
6461 if test "x$withval" != "xyes"
6463 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6464 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6466 LIB_DVD="${LIB_DVD} -ldvdcss"
6469 # user didn't decide, we choose to use local libdvdcss and link statically
6470 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6471 if test x${CAN_BUILD_LIBDVDCSS} = x1
6473 BUILTINS="${BUILTINS} dvd"
6476 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6477 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6479 # XXX: no check for libdl is done, don't try this at home !
6480 BUILTINS="${BUILTINS} dvd"
6482 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6483 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6484 LIB_DVD="${LIB_DVD} -ldl"
6489 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6490 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6491 # Check whether --with-dvdread or --without-dvdread was given.
6492 if test "${with_dvdread+set}" = set; then
6493 withval="$with_dvdread"
6494 case "x${withval}" in
6496 if test x${STATIC_LIBDVDREAD} = x1
6498 BUILTINS="${BUILTINS} dvdread"
6499 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6500 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6502 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6508 if test x${STATIC_LIBDVDREAD} = x1
6510 BUILTINS="${BUILTINS} dvdread"
6511 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6512 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6514 PLUGINS="${PLUGINS} dvdread"
6515 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6516 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6520 if test "x$withval" != "xlocal-shared"
6522 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6523 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6525 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6526 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6528 if test x${STATIC_LIBDVDCSS} = x1
6530 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6532 PLUGINS="${PLUGINS} dvdread"
6533 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6534 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6537 if test x${DUMMY_LIBDVDCSS} = x1
6539 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6541 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6546 # Check whether --enable-vcd or --disable-vcd was given.
6547 if test "${enable_vcd+set}" = set; then
6548 enableval="$enable_vcd"
6553 if test x$enable_vcd != xno
6555 cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 #include <linux/cdrom.h>
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561 egrep "cdrom_msf0" >/dev/null 2>&1; then
6564 BUILTINS="${BUILTINS} vcd"
6571 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
6573 BUILTINS="${BUILTINS} vcd"
6576 if test x$enable_vcd != xno -a "${SYS}" = "darwin"
6578 BUILTINS="${BUILTINS} vcd"
6579 LIB_VCD="${LIB_VCD} -framework IOKit"
6582 # Check whether --enable-dummy or --disable-dummy was given.
6583 if test "${enable_dummy+set}" = set; then
6584 enableval="$enable_dummy"
6589 if test x$enable_dummy != xno
6591 PLUGINS="${PLUGINS} dummy"
6594 # Check whether --enable-logger or --disable-logger was given.
6595 if test "${enable_logger+set}" = set; then
6596 enableval="$enable_logger"
6601 if test x$enable_logger != xno
6603 PLUGINS="${PLUGINS} logger"
6606 # Check whether --enable-null or --disable-null was given.
6607 if test "${enable_null+set}" = set; then
6608 enableval="$enable_null"
6613 if test x$enable_null != xno
6615 PLUGINS="${PLUGINS} null"
6618 # Check whether --enable-rc or --disable-rc was given.
6619 if test "${enable_rc+set}" = set; then
6620 enableval="$enable_rc"
6625 if test x$enable_rc != xno
6627 PLUGINS="${PLUGINS} rc"
6630 # Check whether --with-mad or --without-mad was given.
6631 if test "${with_mad+set}" = set; then
6633 if test "x$with_val" != "xno"; then
6634 if test -n $with_val; then
6635 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6636 LIB_MAD="${LIB_MAD} -L$with_val/lib -lmad"
6638 LIB_MAD="${LIB_MAD} -lmad"
6641 save_LDFLAGS=$LDFLAGS
6642 CFLAGS="$CFLAGS $CFLAGS_MAD"
6643 LDFLAGS="$LDFLAGS $LIB_MAD"
6646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6648 echo "configure:6649: checking for $ac_hdr" >&5
6649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6652 cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6658 { (eval echo configure:6659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6660 if test -z "$ac_err"; then
6662 eval "ac_cv_header_$ac_safe=yes"
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 eval "ac_cv_header_$ac_safe=no"
6672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6675 cat >> confdefs.h <<EOF
6676 #define $ac_tr_hdr 1
6680 echo "$ac_t""no" 1>&6
6681 echo "Cannot find development headers for libmad..."
6687 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6688 echo "configure:6689: checking for mad_bit_init in -lmad" >&5
6689 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 ac_save_LIBS="$LIBS"
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6701 char mad_bit_init();
6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 eval "ac_cv_lib_$ac_lib_var=yes"
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 eval "ac_cv_lib_$ac_lib_var=no"
6717 LIBS="$ac_save_LIBS"
6720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6724 cat >> confdefs.h <<EOF
6725 #define $ac_tr_lib 1
6731 echo "$ac_t""no" 1>&6
6732 echo "Cannot find libmad library..."
6738 LDFLAGS=$save_LDFLAGS
6739 PLUGINS="${PLUGINS} mad"
6744 if test x$SYS = xbeos
6746 PLUGINS="${PLUGINS} beos"
6750 # Check whether --enable-dsp or --disable-dsp was given.
6751 if test "${enable_dsp+set}" = set; then
6752 enableval="$enable_dsp"
6757 if test x$enable_dsp != xno &&
6758 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
6760 for ac_hdr in sys/soundcard.h machine/soundcard.h
6762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6764 echo "configure:6765: checking for $ac_hdr" >&5
6765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6768 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6774 { (eval echo configure:6775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6776 if test -z "$ac_err"; then
6778 eval "ac_cv_header_$ac_safe=yes"
6781 echo "configure: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6784 eval "ac_cv_header_$ac_safe=no"
6788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6789 echo "$ac_t""yes" 1>&6
6790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6791 cat >> confdefs.h <<EOF
6792 #define $ac_tr_hdr 1
6795 PLUGINS="${PLUGINS} dsp"
6798 echo "$ac_t""no" 1>&6
6804 # Check whether --enable-esd or --disable-esd was given.
6805 if test "${enable_esd+set}" = set; then
6806 enableval="$enable_esd"
6807 if test x$enable_esd = xyes
6809 # Extract the first word of "esd-config", so it can be a program name with args.
6810 set dummy esd-config; ac_word=$2
6811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6812 echo "configure:6813: checking for $ac_word" >&5
6813 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6816 case "$ESD_CONFIG" in
6818 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6821 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6826 for ac_dir in $ac_dummy; do
6827 test -z "$ac_dir" && ac_dir=.
6828 if test -f $ac_dir/$ac_word; then
6829 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6834 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6838 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6839 if test -n "$ESD_CONFIG"; then
6840 echo "$ac_t""$ESD_CONFIG" 1>&6
6842 echo "$ac_t""no" 1>&6
6845 if test x${ESD_CONFIG} != xno
6847 PLUGINS="${PLUGINS} esd"
6848 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
6849 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
6855 # Check whether --enable-arts or --disable-arts was given.
6856 if test "${enable_arts+set}" = set; then
6857 enableval="$enable_arts"
6858 if test x$enable_arts = xyes
6860 # Extract the first word of "artsc-config", so it can be a program name with args.
6861 set dummy artsc-config; ac_word=$2
6862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6863 echo "configure:6864: checking for $ac_word" >&5
6864 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6865 echo $ac_n "(cached) $ac_c" 1>&6
6867 case "$ARTS_CONFIG" in
6869 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6872 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6877 for ac_dir in $ac_dummy; do
6878 test -z "$ac_dir" && ac_dir=.
6879 if test -f $ac_dir/$ac_word; then
6880 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6885 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6889 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6890 if test -n "$ARTS_CONFIG"; then
6891 echo "$ac_t""$ARTS_CONFIG" 1>&6
6893 echo "$ac_t""no" 1>&6
6896 if test x${ARTS_CONFIG} != xno
6898 PLUGINS="${PLUGINS} arts"
6899 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
6900 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
6906 # Check whether --enable-macosx or --disable-macosx was given.
6907 if test "${enable_macosx+set}" = set; then
6908 enableval="$enable_macosx"
6909 if test x$enable_macosx = xyes
6911 BUILTINS="${BUILTINS} macosx"
6912 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6913 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6917 for ac_hdr in Cocoa/Cocoa.h
6919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6921 echo "configure:6922: checking for $ac_hdr" >&5
6922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6923 echo $ac_n "(cached) $ac_c" 1>&6
6925 cat > conftest.$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6931 { (eval echo configure:6932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6933 if test -z "$ac_err"; then
6935 eval "ac_cv_header_$ac_safe=yes"
6938 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6941 eval "ac_cv_header_$ac_safe=no"
6945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6946 echo "$ac_t""yes" 1>&6
6947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6948 cat >> confdefs.h <<EOF
6949 #define $ac_tr_hdr 1
6951 BUILTINS="${BUILTINS} macosx"
6952 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6953 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6957 echo "$ac_t""no" 1>&6
6964 # Check whether --enable-qnx or --disable-qnx was given.
6965 if test "${enable_qnx+set}" = set; then
6966 enableval="$enable_qnx"
6970 if test x$enable_qnx != xno
6974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6976 echo "configure:6977: checking for $ac_hdr" >&5
6977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6978 echo $ac_n "(cached) $ac_c" 1>&6
6980 cat > conftest.$ac_ext <<EOF
6981 #line 6982 "configure"
6982 #include "confdefs.h"
6985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6986 { (eval echo configure:6987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6988 if test -z "$ac_err"; then
6990 eval "ac_cv_header_$ac_safe=yes"
6993 echo "configure: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6996 eval "ac_cv_header_$ac_safe=no"
7000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7001 echo "$ac_t""yes" 1>&6
7002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7003 cat >> confdefs.h <<EOF
7004 #define $ac_tr_hdr 1
7007 PLUGINS="${PLUGINS} qnx"
7008 LIB_QNX="${LIB_QNX} -lasound -lph"
7011 echo "$ac_t""no" 1>&6
7017 # Check whether --enable-a52 or --disable-a52 was given.
7018 if test "${enable_a52+set}" = set; then
7019 enableval="$enable_a52"
7023 if test "x$enableval" != "xno" -a x$SYS != xmingw32
7025 for ac_hdr in a52dec/a52.h
7027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7029 echo "configure:7030: checking for $ac_hdr" >&5
7030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7031 echo $ac_n "(cached) $ac_c" 1>&6
7033 cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7039 { (eval echo configure:7040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7041 if test -z "$ac_err"; then
7043 eval "ac_cv_header_$ac_safe=yes"
7046 echo "configure: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7049 eval "ac_cv_header_$ac_safe=no"
7053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7054 echo "$ac_t""yes" 1>&6
7055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7056 cat >> confdefs.h <<EOF
7057 #define $ac_tr_hdr 1
7060 BUILTINS="${BUILTINS} a52"
7061 LIB_A52="${LIB_A52} -la52"
7064 echo "$ac_t""no" 1>&6
7070 # Check whether --enable-fb or --disable-fb was given.
7071 if test "${enable_fb+set}" = set; then
7072 enableval="$enable_fb"
7073 if test x$enable_fb = xyes
7075 PLUGINS="${PLUGINS} fb"
7080 # Check whether --enable-mga or --disable-mga was given.
7081 if test "${enable_mga+set}" = set; then
7082 enableval="$enable_mga"
7083 if test x$enable_mga = xyes
7085 PLUGINS="${PLUGINS} mga xmga"
7090 # Check whether --with-ggi or --without-ggi was given.
7091 if test "${with_ggi+set}" = set; then
7093 if test "x$withval" != "xno"
7095 PLUGINS="${PLUGINS} ggi"
7096 if test "x$withval" != "xyes"
7098 LIB_GGI="${LIB_GGI} -l$withval"
7100 LIB_GGI="${LIB_GGI} -lggi"
7106 # Check whether --enable-sdl or --disable-sdl was given.
7107 if test "${enable_sdl+set}" = set; then
7108 enableval="$enable_sdl"
7112 if test "x$enable_sdl" != "xno"
7115 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7116 if test "${with_sdl_config_path+set}" = set; then
7117 withval="$with_sdl_config_path"
7118 if test "x$withval" != "xno"
7120 SDL_PATH=$withval:$PATH
7124 # Extract the first word of "sdl12-config", so it can be a program name with args.
7125 set dummy sdl12-config; ac_word=$2
7126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7127 echo "configure:7128: checking for $ac_word" >&5
7128 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 case "$SDL12_CONFIG" in
7133 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7136 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7140 ac_dummy="$SDL_PATH"
7141 for ac_dir in $ac_dummy; do
7142 test -z "$ac_dir" && ac_dir=.
7143 if test -f $ac_dir/$ac_word; then
7144 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7149 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7153 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7154 if test -n "$SDL12_CONFIG"; then
7155 echo "$ac_t""$SDL12_CONFIG" 1>&6
7157 echo "$ac_t""no" 1>&6
7160 SDL_CONFIG=${SDL12_CONFIG}
7161 SDL_HEADER="SDL12/SDL.h"
7162 if test x${SDL_CONFIG} = xno
7164 # Extract the first word of "sdl11-config", so it can be a program name with args.
7165 set dummy sdl11-config; ac_word=$2
7166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7167 echo "configure:7168: checking for $ac_word" >&5
7168 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7169 echo $ac_n "(cached) $ac_c" 1>&6
7171 case "$SDL11_CONFIG" in
7173 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7176 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7180 ac_dummy="$SDL_PATH"
7181 for ac_dir in $ac_dummy; do
7182 test -z "$ac_dir" && ac_dir=.
7183 if test -f $ac_dir/$ac_word; then
7184 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7189 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7193 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7194 if test -n "$SDL11_CONFIG"; then
7195 echo "$ac_t""$SDL11_CONFIG" 1>&6
7197 echo "$ac_t""no" 1>&6
7200 SDL_CONFIG=${SDL11_CONFIG}
7201 SDL_HEADER="SDL11/SDL.h"
7203 if test x${SDL_CONFIG} = xno
7205 # Extract the first word of "sdl-config", so it can be a program name with args.
7206 set dummy sdl-config; ac_word=$2
7207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7208 echo "configure:7209: checking for $ac_word" >&5
7209 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7212 case "$SDL_CONFIG" in
7214 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7217 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7221 ac_dummy="$SDL_PATH"
7222 for ac_dir in $ac_dummy; do
7223 test -z "$ac_dir" && ac_dir=.
7224 if test -f $ac_dir/$ac_word; then
7225 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7230 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7234 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7235 if test -n "$SDL_CONFIG"; then
7236 echo "$ac_t""$SDL_CONFIG" 1>&6
7238 echo "$ac_t""no" 1>&6
7241 SDL_HEADER="SDL/SDL.h"
7243 if test x${SDL_CONFIG} != xno
7245 PLUGINS="${PLUGINS} sdl"
7246 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7247 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7248 save_CPPFLAGS=$CPPFLAGS
7249 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7250 for ac_hdr in ${SDL_HEADER}
7252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7254 echo "configure:7255: checking for $ac_hdr" >&5
7255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7258 cat > conftest.$ac_ext <<EOF
7259 #line 7260 "configure"
7260 #include "confdefs.h"
7263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7264 { (eval echo configure:7265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7266 if test -z "$ac_err"; then
7268 eval "ac_cv_header_$ac_safe=yes"
7271 echo "configure: failed program was:" >&5
7272 cat conftest.$ac_ext >&5
7274 eval "ac_cv_header_$ac_safe=no"
7278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7279 echo "$ac_t""yes" 1>&6
7280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7281 cat >> confdefs.h <<EOF
7282 #define $ac_tr_hdr 1
7284 cat >> confdefs.h <<EOF
7285 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7289 echo "$ac_t""no" 1>&6
7290 { echo "configure: error: The development package for SDL is not installed.
7291 Please install it and try again. Alternatively you can also configure with
7292 --disable-sdl." 1>&2; exit 1; }
7297 CPPFLAGS=$save_CPPFLAGS
7298 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7300 { echo "configure: error: The development package for SDL is not installed.
7301 Please install it and try again. Alternatively you can also configure with
7302 --disable-sdl." 1>&2; exit 1; }
7304 elif test "x$enable_sdl" = "xyes"
7306 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7307 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7312 # Check whether --enable-directx or --disable-directx was given.
7313 if test "${enable_directx+set}" = set; then
7314 enableval="$enable_directx"
7318 if test "x$enableval" != "xno"
7320 if test x$SYS = xmingw32
7322 # Check whether --with-directx-path or --without-directx-path was given.
7323 if test "${with_directx_path+set}" = set; then
7324 withval="$with_directx_path"
7328 if test "x$with_directx_path" = "x"
7330 for ac_hdr in ddraw.h
7332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7334 echo "configure:7335: checking for $ac_hdr" >&5
7335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7344 { (eval echo configure:7345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7346 if test -z "$ac_err"; then
7348 eval "ac_cv_header_$ac_safe=yes"
7351 echo "configure: failed program was:" >&5
7352 cat conftest.$ac_ext >&5
7354 eval "ac_cv_header_$ac_safe=no"
7358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7359 echo "$ac_t""yes" 1>&6
7360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7361 cat >> confdefs.h <<EOF
7362 #define $ac_tr_hdr 1
7364 PLUGINS="${PLUGINS} directx"
7365 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7367 echo "$ac_t""no" 1>&6
7372 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7373 echo "configure:7374: checking for directX headers in ${withval}" >&5
7374 if test -f ${withval}/ddraw.h
7376 PLUGINS="${PLUGINS} directx"
7377 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7378 INCLUDE="${INCLUDE} -I${withval}"
7379 echo "$ac_t""yes" 1>&6
7381 echo "$ac_t""no" 1>&6
7382 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7388 # Check whether --enable-waveout or --disable-waveout was given.
7389 if test "${enable_waveout+set}" = set; then
7390 enableval="$enable_waveout"
7394 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7396 PLUGINS="${PLUGINS} waveout"
7397 LIB_WAVEOUT="-lwinmm"
7400 # Check whether --enable-win32 or --disable-win32 was given.
7401 if test "${enable_win32+set}" = set; then
7402 enableval="$enable_win32"
7403 if test "x$enableval" != "xno"
7405 PLUGINS="${PLUGINS} win32"
7410 # Check whether --with-glide or --without-glide was given.
7411 if test "${with_glide+set}" = set; then
7412 withval="$with_glide"
7413 if test "x$withval" != "xno"
7415 PLUGINS="${PLUGINS} glide"
7416 if test "x$withval" != "xyes"
7418 LIB_GLIDE="${LIB_GLIDE} -l$withval -lm"
7420 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7422 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7427 # Check whether --enable-ncurses or --disable-ncurses was given.
7428 if test "${enable_ncurses+set}" = set; then
7429 enableval="$enable_ncurses"
7430 if test x$enable_ncurses = xyes; then
7431 PLUGINS="${PLUGINS} ncurses"
7432 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7437 # Check whether --enable-qt or --disable-qt was given.
7438 if test "${enable_qt+set}" = set; then
7439 enableval="$enable_qt"
7440 if test x$enable_qt = xyes; then
7441 PLUGINS="${PLUGINS} qt"
7442 ALIASES="${ALIASES} qvlc"
7443 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7444 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7445 if test -x ${QTDIR}/bin/moc
7447 MOC=${QTDIR}/bin/moc
7455 # Check whether --enable-kde or --disable-kde was given.
7456 if test "${enable_kde+set}" = set; then
7457 enableval="$enable_kde"
7458 if test x$enable_kde = xyes; then
7459 PLUGINS="${PLUGINS} kde"
7460 ALIASES="${ALIASES} kvlc"
7461 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7462 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7463 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7464 if test -x ${QTDIR}/bin/moc
7466 MOC=${QTDIR}/bin/moc
7474 # Check whether --enable-gnome or --disable-gnome was given.
7475 if test "${enable_gnome+set}" = set; then
7476 enableval="$enable_gnome"
7477 if test x$enable_gnome = xyes; then
7478 # look for gnome-config
7479 # Extract the first word of "gnome-config", so it can be a program name with args.
7480 set dummy gnome-config; ac_word=$2
7481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7482 echo "configure:7483: checking for $ac_word" >&5
7483 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7484 echo $ac_n "(cached) $ac_c" 1>&6
7486 case "$GNOME_CONFIG" in
7488 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7491 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7496 for ac_dir in $ac_dummy; do
7497 test -z "$ac_dir" && ac_dir=.
7498 if test -f $ac_dir/$ac_word; then
7499 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7504 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7508 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7509 if test -n "$GNOME_CONFIG"; then
7510 echo "$ac_t""$GNOME_CONFIG" 1>&6
7512 echo "$ac_t""no" 1>&6
7515 if test -x ${GNOME_CONFIG}
7517 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7518 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7520 # now look for the gnome.h header
7521 saved_CPPFLAGS=$CPPFLAGS
7522 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7523 for ac_hdr in gnome.h
7525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7527 echo "configure:7528: checking for $ac_hdr" >&5
7528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7531 cat > conftest.$ac_ext <<EOF
7532 #line 7533 "configure"
7533 #include "confdefs.h"
7536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7537 { (eval echo configure:7538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7539 if test -z "$ac_err"; then
7541 eval "ac_cv_header_$ac_safe=yes"
7544 echo "configure: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7547 eval "ac_cv_header_$ac_safe=no"
7551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7552 echo "$ac_t""yes" 1>&6
7553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7554 cat >> confdefs.h <<EOF
7555 #define $ac_tr_hdr 1
7558 PLUGINS="${PLUGINS} gnome"
7559 ALIASES="${ALIASES} gnome-vlc"
7562 echo "$ac_t""no" 1>&6
7563 { echo "configure: error: Can't find gnome headers. Please install the gnome
7564 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7570 CPPFLAGS=$saved_CPPFLAGS
7575 # Check whether --enable-gtk or --disable-gtk was given.
7576 if test "${enable_gtk+set}" = set; then
7577 enableval="$enable_gtk"
7581 if test x$enable_gtk != xno
7584 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7585 if test "${with_gtk_config_path+set}" = set; then
7586 withval="$with_gtk_config_path"
7587 if test "x$withval" != "xno"
7589 GTK_PATH=$withval:$PATH
7593 # look for gtk-config
7594 # Extract the first word of "gtk12-config", so it can be a program name with args.
7595 set dummy gtk12-config; ac_word=$2
7596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7597 echo "configure:7598: checking for $ac_word" >&5
7598 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7601 case "$GTK12_CONFIG" in
7603 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7606 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7610 ac_dummy="$GTK_PATH"
7611 for ac_dir in $ac_dummy; do
7612 test -z "$ac_dir" && ac_dir=.
7613 if test -f $ac_dir/$ac_word; then
7614 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7619 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7623 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7624 if test -n "$GTK12_CONFIG"; then
7625 echo "$ac_t""$GTK12_CONFIG" 1>&6
7627 echo "$ac_t""no" 1>&6
7630 GTK_CONFIG=${GTK12_CONFIG}
7631 if test x${GTK_CONFIG} = xno
7633 # Extract the first word of "gtk-config", so it can be a program name with args.
7634 set dummy gtk-config; ac_word=$2
7635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7636 echo "configure:7637: checking for $ac_word" >&5
7637 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7640 case "$GTK_CONFIG" in
7642 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7645 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7649 ac_dummy="$GTK_PATH"
7650 for ac_dir in $ac_dummy; do
7651 test -z "$ac_dir" && ac_dir=.
7652 if test -f $ac_dir/$ac_word; then
7653 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7658 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7662 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7663 if test -n "$GTK_CONFIG"; then
7664 echo "$ac_t""$GTK_CONFIG" 1>&6
7666 echo "$ac_t""no" 1>&6
7670 if test x${GTK_CONFIG} != xno
7672 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7674 { 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; }
7676 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7677 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7678 # now look for the gtk.h header
7679 saved_CPPFLAGS=$CPPFLAGS
7680 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7681 ac_cv_gtk_headers=yes
7682 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7686 echo "configure:7687: checking for $ac_hdr" >&5
7687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7690 cat > conftest.$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7696 { (eval echo configure:7697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7698 if test -z "$ac_err"; then
7700 eval "ac_cv_header_$ac_safe=yes"
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7706 eval "ac_cv_header_$ac_safe=no"
7710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7711 echo "$ac_t""yes" 1>&6
7712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7713 cat >> confdefs.h <<EOF
7714 #define $ac_tr_hdr 1
7718 echo "$ac_t""no" 1>&6
7719 ac_cv_gtk_headers=no
7720 echo "Cannot find gtk development headers."
7725 if test "x$ac_cv_gtk_headers" = xyes
7727 PLUGINS="${PLUGINS} gtk"
7728 ALIASES="${ALIASES} gvlc"
7730 CPPFLAGS=$saved_CPPFLAGS
7734 # Check whether --enable-x11 or --disable-x11 was given.
7735 if test "${enable_x11+set}" = set; then
7736 enableval="$enable_x11"
7740 if test x$enable_x11 != xno &&
7741 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
7742 if test x$x_includes = xNONE; then
7743 x_includes=/usr/X11R6/include
7745 if test x$x_libraries = xNONE; then
7746 x_libraries=/usr/X11R6/lib
7748 saved_CPPFLAGS=$CPPFLAGS
7749 CPPFLAGS="$CPPFLAGS -I$x_includes"
7750 for ac_hdr in X11/Xlib.h
7752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7754 echo "configure:7755: checking for $ac_hdr" >&5
7755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7764 { (eval echo configure:7765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7766 if test -z "$ac_err"; then
7768 eval "ac_cv_header_$ac_safe=yes"
7771 echo "configure: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7774 eval "ac_cv_header_$ac_safe=no"
7778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7779 echo "$ac_t""yes" 1>&6
7780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7781 cat >> confdefs.h <<EOF
7782 #define $ac_tr_hdr 1
7785 PLUGINS="${PLUGINS} x11"
7786 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
7787 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
7790 echo "$ac_t""no" 1>&6
7794 CPPFLAGS=$saved_CPPFLAGS
7797 # Check whether --enable-xvideo or --disable-xvideo was given.
7798 if test "${enable_xvideo+set}" = set; then
7799 enableval="$enable_xvideo"
7803 if test x$enable_xvideo != xno &&
7804 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
7805 if test x$x_includes = xNONE; then
7806 x_includes=/usr/X11R6/include
7808 if test x$x_libraries = xNONE; then
7809 x_libraries=/usr/X11R6/lib
7811 saved_CPPFLAGS=$CPPFLAGS
7812 CPPFLAGS="$CPPFLAGS -I$x_includes"
7813 for ac_hdr in X11/extensions/Xv.h
7815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7817 echo "configure:7818: checking for $ac_hdr" >&5
7818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7827 { (eval echo configure:7828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7829 if test -z "$ac_err"; then
7831 eval "ac_cv_header_$ac_safe=yes"
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7837 eval "ac_cv_header_$ac_safe=no"
7841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7842 echo "$ac_t""yes" 1>&6
7843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7844 cat >> confdefs.h <<EOF
7845 #define $ac_tr_hdr 1
7848 saved_CFLAGS=$CFLAGS
7849 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
7850 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7851 echo "configure:7852: checking for XvSetPortAttribute in -lXv_pic" >&5
7852 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7856 ac_save_LIBS="$LIBS"
7857 LIBS="-lXv_pic $LIBS"
7858 cat > conftest.$ac_ext <<EOF
7859 #line 7860 "configure"
7860 #include "confdefs.h"
7861 /* Override any gcc2 internal prototype to avoid an error. */
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7864 char XvSetPortAttribute();
7867 XvSetPortAttribute()
7870 if { (eval echo configure:7871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7872 eval "ac_cv_lib_$ac_lib_var=yes"
7874 echo "configure: failed program was:" >&5
7875 cat conftest.$ac_ext >&5
7877 eval "ac_cv_lib_$ac_lib_var=no"
7880 LIBS="$ac_save_LIBS"
7883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7884 echo "$ac_t""yes" 1>&6
7885 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7886 PLUGINS="${PLUGINS} xvideo"
7887 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
7888 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7890 echo "$ac_t""no" 1>&6
7891 # We don't have Xv_pic, let's make xvideo.a as builtin
7892 BUILTINS="${BUILTINS} xvideo"
7893 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7894 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7897 CFLAGS=$saved_CFLAGS
7899 CPPFLAGS=$saved_CPPFLAGS
7901 echo "$ac_t""no" 1>&6
7907 # Check whether --enable-lirc or --disable-lirc was given.
7908 if test "${enable_lirc+set}" = set; then
7909 enableval="$enable_lirc"
7913 if test x$enable_lirc = xyes
7915 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7916 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7917 echo "configure:7918: checking for lirc/lirc_client.h" >&5
7918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7921 cat > conftest.$ac_ext <<EOF
7922 #line 7923 "configure"
7923 #include "confdefs.h"
7924 #include <lirc/lirc_client.h>
7926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7927 { (eval echo configure:7928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7929 if test -z "$ac_err"; then
7931 eval "ac_cv_header_$ac_safe=yes"
7934 echo "configure: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7937 eval "ac_cv_header_$ac_safe=no"
7941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7942 echo "$ac_t""yes" 1>&6
7943 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7944 echo "configure:7945: checking for lirc_init in -llirc_client" >&5
7945 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7949 ac_save_LIBS="$LIBS"
7950 LIBS="-llirc_client $LIBS"
7951 cat > conftest.$ac_ext <<EOF
7952 #line 7953 "configure"
7953 #include "confdefs.h"
7954 /* Override any gcc2 internal prototype to avoid an error. */
7955 /* We use char because int might match the return type of a gcc2
7956 builtin and then its argument prototype would still apply. */
7963 if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7965 eval "ac_cv_lib_$ac_lib_var=yes"
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7970 eval "ac_cv_lib_$ac_lib_var=no"
7973 LIBS="$ac_save_LIBS"
7976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7977 echo "$ac_t""yes" 1>&6
7980 echo "$ac_t""no" 1>&6
7985 echo "$ac_t""no" 1>&6
7989 if test x$have_lirc = xtrue
7991 PLUGINS="${PLUGINS} lirc"
7992 LIB_LIRC="${LIB_LIRC} -llirc_client"
7996 # Check whether --enable-alsa or --disable-alsa was given.
7997 if test "${enable_alsa+set}" = set; then
7998 enableval="$enable_alsa"
7999 if test x$enable_alsa = xyes
8001 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8002 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8003 echo "configure:8004: checking for alsa/asoundlib.h" >&5
8004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8005 echo $ac_n "(cached) $ac_c" 1>&6
8007 cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 #include <alsa/asoundlib.h>
8012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8013 { (eval echo configure:8014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8015 if test -z "$ac_err"; then
8017 eval "ac_cv_header_$ac_safe=yes"
8020 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8023 eval "ac_cv_header_$ac_safe=no"
8027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8028 echo "$ac_t""yes" 1>&6
8029 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8030 echo "configure:8031: checking for main in -lasound" >&5
8031 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8033 echo $ac_n "(cached) $ac_c" 1>&6
8035 ac_save_LIBS="$LIBS"
8036 LIBS="-lasound $LIBS"
8037 cat > conftest.$ac_ext <<EOF
8038 #line 8039 "configure"
8039 #include "confdefs.h"
8045 if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8047 eval "ac_cv_lib_$ac_lib_var=yes"
8049 echo "configure: failed program was:" >&5
8050 cat conftest.$ac_ext >&5
8052 eval "ac_cv_lib_$ac_lib_var=no"
8055 LIBS="$ac_save_LIBS"
8058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8059 echo "$ac_t""yes" 1>&6
8062 echo "$ac_t""no" 1>&6
8067 echo "$ac_t""no" 1>&6
8071 if test x$have_alsa = xtrue
8073 PLUGINS="${PLUGINS} alsa"
8074 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
8082 # Check whether --enable-plugins or --disable-plugins was given.
8083 if test "${enable_plugins+set}" = set; then
8084 enableval="$enable_plugins"
8085 if test x$enable_plugins = xno
8087 BUILTINS="${BUILTINS} ${PLUGINS}"
8094 # Check whether --with-dll-path or --without-dll-path was given.
8095 if test "${with_dll_path+set}" = set; then
8096 withval="$with_dll_path"
8097 if test "x$withval" != "xno"
8104 cat >> confdefs.h <<EOF
8105 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8108 cat >> confdefs.h <<EOF
8109 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8113 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8114 cat >> confdefs.h <<EOF
8115 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8118 cat >> confdefs.h <<EOF
8119 #define MODULE_SYMBOL $VLC_SYMBOL
8123 DATA_PATH="${ac_tool_prefix}/share/videolan"
8125 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8220 cat > confcache <<\EOF
8221 # This file is a shell script that caches the results of configure
8222 # tests run on this system so they can be shared between configure
8223 # scripts and configure runs. It is not useful on other systems.
8224 # If it contains results you don't want to keep, you may remove or edit it.
8226 # By default, configure uses ./config.cache as the cache file,
8227 # creating it if it does not exist already. You can give configure
8228 # the --cache-file=FILE option to use a different cache file; that is
8229 # what configure does when it calls configure scripts in
8230 # subdirectories, so they share the cache.
8231 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8232 # config.status only pays attention to the cache file if you give it the
8233 # --recheck option to rerun configure.
8236 # The following way of writing the cache mishandles newlines in values,
8237 # but we know of no workaround that is simple, portable, and efficient.
8238 # So, don't put newlines in cache variables' values.
8239 # Ultrix sh set writes to stderr and can't be redirected directly,
8240 # and sets the high bit in the cache file unless we assign to the vars.
8242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8244 # `set' does not quote correctly, so add quotes (double-quote substitution
8245 # turns \\\\ into \\, and sed turns \\ into \).
8247 -e "s/'/'\\\\''/g" \
8248 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8251 # `set' quotes correctly as required by POSIX, so do not add quotes.
8252 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8255 if cmp -s $cache_file confcache; then
8258 if test -w $cache_file; then
8259 echo "updating cache $cache_file"
8260 cat confcache > $cache_file
8262 echo "not updating unwritable cache $cache_file"
8267 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8270 # Let make expand exec_prefix.
8271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8273 # Any assignment to VPATH causes Sun make to only execute
8274 # the first set of double-colon rules, so remove it if not needed.
8275 # If there is a colon in the path, we need to keep it.
8276 if test "x$srcdir" = x.; then
8277 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8280 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8282 DEFS=-DHAVE_CONFIG_H
8284 # Without the "./", some shells look in PATH for config.status.
8285 : ${CONFIG_STATUS=./config.status}
8287 echo creating $CONFIG_STATUS
8288 rm -f $CONFIG_STATUS
8289 cat > $CONFIG_STATUS <<EOF
8291 # Generated automatically by configure.
8292 # Run this file to recreate the current configuration.
8293 # This directory was configured as follows,
8294 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8296 # $0 $ac_configure_args
8298 # Compiler output produced by configure, useful for debugging
8299 # configure, is in ./config.log if it exists.
8301 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8304 case "\$ac_option" in
8305 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8306 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8307 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8308 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8309 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8311 -help | --help | --hel | --he | --h)
8312 echo "\$ac_cs_usage"; exit 0 ;;
8313 *) echo "\$ac_cs_usage"; exit 1 ;;
8317 ac_given_srcdir=$srcdir
8318 ac_given_INSTALL="$INSTALL"
8320 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8322 cat >> $CONFIG_STATUS <<EOF
8324 # Protect against being on the right side of a sed subst in config.status.
8325 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8326 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8330 s%@CFLAGS@%$CFLAGS%g
8331 s%@CPPFLAGS@%$CPPFLAGS%g
8332 s%@CXXFLAGS@%$CXXFLAGS%g
8333 s%@FFLAGS@%$FFLAGS%g
8335 s%@LDFLAGS@%$LDFLAGS%g
8337 s%@exec_prefix@%$exec_prefix%g
8338 s%@prefix@%$prefix%g
8339 s%@program_transform_name@%$program_transform_name%g
8340 s%@bindir@%$bindir%g
8341 s%@sbindir@%$sbindir%g
8342 s%@libexecdir@%$libexecdir%g
8343 s%@datadir@%$datadir%g
8344 s%@sysconfdir@%$sysconfdir%g
8345 s%@sharedstatedir@%$sharedstatedir%g
8346 s%@localstatedir@%$localstatedir%g
8347 s%@libdir@%$libdir%g
8348 s%@includedir@%$includedir%g
8349 s%@oldincludedir@%$oldincludedir%g
8350 s%@infodir@%$infodir%g
8351 s%@mandir@%$mandir%g
8353 s%@host_alias@%$host_alias%g
8354 s%@host_cpu@%$host_cpu%g
8355 s%@host_vendor@%$host_vendor%g
8356 s%@host_os@%$host_os%g
8357 s%@target@%$target%g
8358 s%@target_alias@%$target_alias%g
8359 s%@target_cpu@%$target_cpu%g
8360 s%@target_vendor@%$target_vendor%g
8361 s%@target_os@%$target_os%g
8363 s%@build_alias@%$build_alias%g
8364 s%@build_cpu@%$build_cpu%g
8365 s%@build_vendor@%$build_vendor%g
8366 s%@build_os@%$build_os%g
8367 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8368 s%@SET_MAKE@%$SET_MAKE%g
8371 s%@RANLIB@%$RANLIB%g
8372 s%@ALLOCA@%$ALLOCA%g
8373 s%@GLIBC21@%$GLIBC21%g
8374 s%@LIBICONV@%$LIBICONV%g
8375 s%@USE_NLS@%$USE_NLS%g
8376 s%@MSGFMT@%$MSGFMT%g
8377 s%@GMSGFMT@%$GMSGFMT%g
8378 s%@XGETTEXT@%$XGETTEXT%g
8379 s%@INTLBISON@%$INTLBISON%g
8380 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8381 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8382 s%@CATALOGS@%$CATALOGS%g
8383 s%@CATOBJEXT@%$CATOBJEXT%g
8384 s%@GMOFILES@%$GMOFILES%g
8385 s%@INTLLIBS@%$INTLLIBS%g
8386 s%@INTLOBJS@%$INTLOBJS%g
8387 s%@POFILES@%$POFILES%g
8389 s%@DATADIRNAME@%$DATADIRNAME%g
8390 s%@INSTOBJEXT@%$INSTOBJEXT%g
8391 s%@GENCAT@%$GENCAT%g
8392 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8393 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8394 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8395 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8396 s%@INSTALL_DATA@%$INSTALL_DATA%g
8397 s%@WINDRES@%$WINDRES%g
8398 s%@ESD_CONFIG@%$ESD_CONFIG%g
8399 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8400 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8401 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8402 s%@SDL_CONFIG@%$SDL_CONFIG%g
8403 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8404 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8405 s%@GTK_CONFIG@%$GTK_CONFIG%g
8406 s%@DATA_PATH@%$DATA_PATH%g
8407 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8410 s%@PLUGINS@%$PLUGINS%g
8411 s%@BUILTINS@%$BUILTINS%g
8412 s%@ALIASES@%$ALIASES%g
8413 s%@INCLUDE@%$INCLUDE%g
8418 s%@OPTIMS@%$OPTIMS%g
8419 s%@TUNING@%$TUNING%g
8420 s%@RELEASE@%$RELEASE%g
8422 s%@DLL_PATH@%$DLL_PATH%g
8423 s%@PACKAGE@%$PACKAGE%g
8424 s%@VERSION@%$VERSION%g
8425 s%@VCD_DEVICE@%$VCD_DEVICE%g
8426 s%@DVD_DEVICE@%$DVD_DEVICE%g
8427 s%@PLDFLAGS@%$PLDFLAGS%g
8428 s%@SOFLAGS@%$SOFLAGS%g
8430 s%@LIB_ALSA@%$LIB_ALSA%g
8431 s%@LIB_ARTS@%$LIB_ARTS%g
8432 s%@LIB_BEOS@%$LIB_BEOS%g
8433 s%@LIB_DARWIN@%$LIB_DARWIN%g
8434 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8435 s%@LIB_DVD@%$LIB_DVD%g
8436 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8437 s%@LIB_ESD@%$LIB_ESD%g
8438 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8439 s%@LIB_GGI@%$LIB_GGI%g
8440 s%@LIB_GLIDE@%$LIB_GLIDE%g
8441 s%@LIB_GNOME@%$LIB_GNOME%g
8442 s%@LIB_GTK@%$LIB_GTK%g
8443 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8444 s%@LIB_IMDCT@%$LIB_IMDCT%g
8445 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8446 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8447 s%@LIB_KDE@%$LIB_KDE%g
8448 s%@LIB_A52@%$LIB_A52%g
8449 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8450 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8451 s%@LIB_LIRC@%$LIB_LIRC%g
8452 s%@LIB_MACOSX@%$LIB_MACOSX%g
8453 s%@LIB_MAD@%$LIB_MAD%g
8454 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8455 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8456 s%@LIB_NCURSES@%$LIB_NCURSES%g
8457 s%@LIB_QNX@%$LIB_QNX%g
8458 s%@LIB_QT@%$LIB_QT%g
8459 s%@LIB_RC@%$LIB_RC%g
8460 s%@LIB_SDL@%$LIB_SDL%g
8461 s%@LIB_VCD@%$LIB_VCD%g
8462 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8463 s%@LIB_WIN32@%$LIB_WIN32%g
8464 s%@LIB_X11@%$LIB_X11%g
8465 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8466 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8467 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8468 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8469 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8470 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8471 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8472 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8473 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8474 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8475 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8476 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8477 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8478 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8479 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8480 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8481 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8482 s%@CFLAGS_QT@%$CFLAGS_QT%g
8483 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8484 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8485 s%@CFLAGS_X11@%$CFLAGS_X11%g
8486 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8487 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8488 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8489 s%@NEED_GETOPT@%$NEED_GETOPT%g
8490 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8495 cat >> $CONFIG_STATUS <<\EOF
8497 # Split the substitutions into bite-sized pieces for seds with
8498 # small command number limits, like on Digital OSF/1 and HP-UX.
8499 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8500 ac_file=1 # Number of current file.
8501 ac_beg=1 # First line for current file.
8502 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8505 while $ac_more_lines; do
8506 if test $ac_beg -gt 1; then
8507 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8509 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8511 if test ! -s conftest.s$ac_file; then
8513 rm -f conftest.s$ac_file
8515 if test -z "$ac_sed_cmds"; then
8516 ac_sed_cmds="sed -f conftest.s$ac_file"
8518 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8520 ac_file=`expr $ac_file + 1`
8522 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8525 if test -z "$ac_sed_cmds"; then
8530 cat >> $CONFIG_STATUS <<EOF
8532 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8534 cat >> $CONFIG_STATUS <<\EOF
8535 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8536 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8538 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8539 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8540 *) ac_file_in="${ac_file}.in" ;;
8543 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8545 # Remove last slash and all that follows it. Not all systems have dirname.
8546 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8547 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8548 # The file is in a subdirectory.
8549 test ! -d "$ac_dir" && mkdir "$ac_dir"
8550 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8551 # A "../" for each directory in $ac_dir_suffix.
8552 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8554 ac_dir_suffix= ac_dots=
8557 case "$ac_given_srcdir" in
8559 if test -z "$ac_dots"; then top_srcdir=.
8560 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8561 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8563 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8564 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8567 case "$ac_given_INSTALL" in
8568 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8569 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8572 echo creating "$ac_file"
8574 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8576 *Makefile*) ac_comsub="1i\\
8577 # $configure_input" ;;
8581 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8583 s%@configure_input@%$configure_input%g
8584 s%@srcdir@%$srcdir%g
8585 s%@top_srcdir@%$top_srcdir%g
8586 s%@INSTALL@%$INSTALL%g
8587 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8591 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8592 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8594 # ac_d sets the value in "#define NAME VALUE" lines.
8595 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8596 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8599 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8600 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8601 ac_uB='\([ ]\)%\1#\2define\3'
8604 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8605 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8606 ac_eB='$%\1#\2define\3'
8610 if test "${CONFIG_HEADERS+set}" != set; then
8612 cat >> $CONFIG_STATUS <<EOF
8613 CONFIG_HEADERS="include/defs.h"
8615 cat >> $CONFIG_STATUS <<\EOF
8617 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8618 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8620 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8621 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8622 *) ac_file_in="${ac_file}.in" ;;
8625 echo creating $ac_file
8627 rm -f conftest.frag conftest.in conftest.out
8628 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8629 cat $ac_file_inputs > conftest.in
8633 # Transform confdefs.h into a sed script conftest.vals that substitutes
8634 # the proper values into config.h.in to produce config.h. And first:
8635 # Protect against being on the right side of a sed subst in config.status.
8636 # Protect against being in an unquoted here document in config.status.
8638 cat > conftest.hdr <<\EOF
8641 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8645 sed -n -f conftest.hdr confdefs.h > conftest.vals
8648 # This sed command replaces #undef with comments. This is necessary, for
8649 # example, in the case of _POSIX_SOURCE, which is predefined and required
8650 # on some systems where configure will not decide to define it.
8651 cat >> conftest.vals <<\EOF
8652 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8655 # Break up conftest.vals because some shells have a limit on
8656 # the size of here documents, and old seds have small limits too.
8661 ac_lines=`grep -c . conftest.vals`
8662 # grep -c gives empty output for an empty file on some AIX systems.
8663 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8664 # Write a limited-size here document to conftest.frag.
8665 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8666 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8668 sed -f conftest.frag conftest.in > conftest.out
8670 mv conftest.out conftest.in
8672 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8674 mv conftest.tail conftest.vals
8678 cat >> $CONFIG_STATUS <<\EOF
8679 rm -f conftest.frag conftest.h
8680 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8681 cat conftest.in >> conftest.h
8683 if cmp -s $ac_file conftest.h 2>/dev/null; then
8684 echo "$ac_file is unchanged"
8687 # Remove last slash and all that follows it. Not all systems have dirname.
8688 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8689 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8690 # The file is in a subdirectory.
8691 test ! -d "$ac_dir" && mkdir "$ac_dir"
8694 mv conftest.h $ac_file
8699 cat >> $CONFIG_STATUS <<EOF
8703 cat >> $CONFIG_STATUS <<\EOF
8704 for ac_file in $CONFIG_FILES; do
8705 # Support "outfile[:infile[:infile...]]"
8707 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8709 # PO directories have a Makefile.in generated from Makefile.in.in.
8710 case "$ac_file" in */Makefile.in)
8711 # Adjust a relative srcdir.
8712 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8713 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8714 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8715 # In autoconf-2.13 it is called $ac_given_srcdir.
8716 # In autoconf-2.50 it is called $srcdir.
8717 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8718 case "$ac_given_srcdir" in
8719 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8720 /*) top_srcdir="$ac_given_srcdir" ;;
8721 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8723 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8724 rm -f "$ac_dir/POTFILES"
8725 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8726 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8727 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8728 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8736 chmod +x $CONFIG_STATUS
8737 rm -fr confdefs* $ac_clean_files
8738 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8742 global configuration
8743 --------------------
8745 architecture : ${ARCH}
8746 optimizations : ${OPTIMS}
8748 release: : ${RELEASE}"
8750 if test x${HAVE_VLC} = x1
8755 vlc version : ${VLC_VERSION}
8756 debug mode : ${DEBUG}
8757 cprof/gprof support : ${CPROF}/${GPROF}
8758 need builtin getopt : ${NEED_GETOPT}
8759 built-in modules :${BUILTINS}
8760 plug-in modules :${PLUGINS}
8761 vlc aliases :${ALIASES}"
8765 libdvdcss configuration
8766 -----------------------
8767 can be built : ${CAN_BUILD_LIBDVDCSS}
8768 will be built : ${NEED_LIBDVDCSS}"
8769 if test x${NEED_LIBDVDCSS} = x1
8771 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
8772 echo "link statically : ${STATIC_LIBDVDCSS}"
8774 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
8778 You may now tune Makefile.opts at your convenience, for instance to choose
8779 which modules get compiled as plugins.
8781 if test x${HAVE_VLC} = x1
8783 echo "To build vlc and its plugins, type \`make vlc plugins'."
8785 if test x${HAVE_LIBDVDCSS} = x1
8787 echo "To build libdvdcss only, type \`make libdvdcss'."