3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
50 --with-dvbpsi=PATH libdvbpsi headers and libraries"
52 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
54 --enable-satellite satellite card support (default disabled)"
56 --enable-avi AVI demux module (default enabled)"
60 --enable-mad libmad module (default disabled)"
62 --with-mad=PATH path to libmad"
64 --with-mad-tree=PATH mad tree for static linking"
66 --enable-ffmpeg ffmpeg codec (default disabled)"
68 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
70 --enable-a52 AC3 support with liba52 (default enabled)"
72 --with-a52-tree=PATH a52dec tree for static linking "
74 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
78 --enable-x11 X11 support (default enabled)"
80 --enable-xvideo XVideo support (default enabled)"
82 --enable-sdl SDL support (default enabled)"
84 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
86 --enable-directx Win32 DirectX support (default enabled on Win32)"
88 --with-directx=PATH Win32 DirectX headers and libraries"
90 --enable-fb Linux framebuffer support (default enabled on Linux)"
92 --enable-mga Linux kernel Matrox support (default disabled)"
94 --enable-ggi GGI support (default disabled)"
96 --with-ggi=PATH path to libggi"
98 --enable-glide Glide (3dfx) support (default disabled)"
100 --with-glide=PATH path to libglide"
102 --enable-aa aalib output (default disabled)"
106 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
108 --enable-esd Esound library support (default disabled)"
110 --enable-arts aRts sound server (default disabled)"
112 --enable-alsa ALSA sound support for Linux (default disabled)"
114 --enable-waveout Win32 waveOut module (default enabled on Win32)"
118 --enable-gtk Gtk+ support (default enabled)"
120 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
122 --enable-gnome Gnome interface support (default disabled)"
124 --enable-qt Qt interface support (default disabled)"
126 --enable-kde KDE interface support (default disabled)"
128 --enable-macosx MacOS X support (default enabled on MacOS X)"
130 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
132 --enable-intfwin Win32 interface support (default disabled)"
134 --with-bcbuilder=PATH Borland C++ Builder installation path"
136 --enable-ncurses ncurses interface support (default disabled)"
138 --enable-lirc lirc support (default disabled)"
142 --with-words=endianness set endianness (big or little)"
144 --enable-gprof gprof profiling (default disabled)"
146 --enable-cprof cprof profiling (default disabled)"
148 --enable-pth GNU Pth support (default disabled)"
150 --enable-st State Threads (default disabled)"
152 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
154 # Initialize some variables set by options.
155 # The variables have the same names as the options, with
156 # dashes changed to underlines.
158 cache_file=./config.cache
167 program_transform_name=s,x,x,
175 bindir='${exec_prefix}/bin'
176 sbindir='${exec_prefix}/sbin'
177 libexecdir='${exec_prefix}/libexec'
178 datadir='${prefix}/share'
179 sysconfdir='${prefix}/etc'
180 sharedstatedir='${prefix}/com'
181 localstatedir='${prefix}/var'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${prefix}/info'
186 mandir='${prefix}/man'
188 # Initialize some other variables.
191 SHELL=${CONFIG_SHELL-/bin/sh}
192 # Maximum number of lines to put in a shell here document.
199 # If the previous option needs an argument, assign it.
200 if test -n "$ac_prev"; then
201 eval "$ac_prev=\$ac_option"
207 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
211 # Accept the important Cygnus configure options, so we can diagnose typos.
215 -bindir | --bindir | --bindi | --bind | --bin | --bi)
217 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
218 bindir="$ac_optarg" ;;
220 -build | --build | --buil | --bui | --bu)
222 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
223 build="$ac_optarg" ;;
225 -cache-file | --cache-file | --cache-fil | --cache-fi \
226 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
227 ac_prev=cache_file ;;
228 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
229 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
230 cache_file="$ac_optarg" ;;
232 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
234 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
236 datadir="$ac_optarg" ;;
238 -disable-* | --disable-*)
239 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
240 # Reject names that are not valid shell variable names.
241 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
242 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
244 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
245 eval "enable_${ac_feature}=no" ;;
247 -enable-* | --enable-*)
248 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
249 # Reject names that are not valid shell variable names.
250 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
251 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
253 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
258 eval "enable_${ac_feature}='$ac_optarg'" ;;
260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
262 | --exec | --exe | --ex)
263 ac_prev=exec_prefix ;;
264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
266 | --exec=* | --exe=* | --ex=*)
267 exec_prefix="$ac_optarg" ;;
269 -gas | --gas | --ga | --g)
270 # Obsolete; use --with-gas.
273 -help | --help | --hel | --he)
274 # Omit some internal or obsolete options to make the list less imposing.
275 # This message is too long to be a string in the A/UX 3.1 sh.
277 Usage: configure [options] [host]
278 Options: [defaults in brackets after descriptions]
280 --cache-file=FILE cache test results in FILE
281 --help print this message
282 --no-create do not create output files
283 --quiet, --silent do not print \`checking...' messages
284 --version print the version of autoconf that created configure
285 Directory and file names:
286 --prefix=PREFIX install architecture-independent files in PREFIX
288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
290 --bindir=DIR user executables in DIR [EPREFIX/bin]
291 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
292 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
293 --datadir=DIR read-only architecture-independent data in DIR
295 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
296 --sharedstatedir=DIR modifiable architecture-independent data in DIR
298 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
299 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
300 --includedir=DIR C header files in DIR [PREFIX/include]
301 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
302 --infodir=DIR info documentation in DIR [PREFIX/info]
303 --mandir=DIR man documentation in DIR [PREFIX/man]
304 --srcdir=DIR find the sources in DIR [configure dir or ..]
305 --program-prefix=PREFIX prepend PREFIX to installed program names
306 --program-suffix=SUFFIX append SUFFIX to installed program names
307 --program-transform-name=PROGRAM
308 run sed PROGRAM on installed program names
312 --build=BUILD configure for building on BUILD [BUILD=HOST]
313 --host=HOST configure for HOST [guessed]
314 --target=TARGET configure for TARGET [TARGET=HOST]
315 Features and packages:
316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
320 --x-includes=DIR X include files are in DIR
321 --x-libraries=DIR X library files are in DIR
323 if test -n "$ac_help"; then
324 echo "--enable and --with options recognized:$ac_help"
328 -host | --host | --hos | --ho)
330 -host=* | --host=* | --hos=* | --ho=*)
333 -includedir | --includedir | --includedi | --included | --include \
334 | --includ | --inclu | --incl | --inc)
335 ac_prev=includedir ;;
336 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
337 | --includ=* | --inclu=* | --incl=* | --inc=*)
338 includedir="$ac_optarg" ;;
340 -infodir | --infodir | --infodi | --infod | --info | --inf)
342 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
343 infodir="$ac_optarg" ;;
345 -libdir | --libdir | --libdi | --libd)
347 -libdir=* | --libdir=* | --libdi=* | --libd=*)
348 libdir="$ac_optarg" ;;
350 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
351 | --libexe | --libex | --libe)
352 ac_prev=libexecdir ;;
353 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
354 | --libexe=* | --libex=* | --libe=*)
355 libexecdir="$ac_optarg" ;;
357 -localstatedir | --localstatedir | --localstatedi | --localstated \
358 | --localstate | --localstat | --localsta | --localst \
359 | --locals | --local | --loca | --loc | --lo)
360 ac_prev=localstatedir ;;
361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
362 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
363 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
364 localstatedir="$ac_optarg" ;;
366 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
368 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
369 mandir="$ac_optarg" ;;
372 # Obsolete; use --without-fp.
375 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
379 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
380 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
383 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
384 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
385 | --oldin | --oldi | --old | --ol | --o)
386 ac_prev=oldincludedir ;;
387 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
388 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
389 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
390 oldincludedir="$ac_optarg" ;;
392 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
394 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
395 prefix="$ac_optarg" ;;
397 -program-prefix | --program-prefix | --program-prefi | --program-pref \
398 | --program-pre | --program-pr | --program-p)
399 ac_prev=program_prefix ;;
400 -program-prefix=* | --program-prefix=* | --program-prefi=* \
401 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
402 program_prefix="$ac_optarg" ;;
404 -program-suffix | --program-suffix | --program-suffi | --program-suff \
405 | --program-suf | --program-su | --program-s)
406 ac_prev=program_suffix ;;
407 -program-suffix=* | --program-suffix=* | --program-suffi=* \
408 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
409 program_suffix="$ac_optarg" ;;
411 -program-transform-name | --program-transform-name \
412 | --program-transform-nam | --program-transform-na \
413 | --program-transform-n | --program-transform- \
414 | --program-transform | --program-transfor \
415 | --program-transfo | --program-transf \
416 | --program-trans | --program-tran \
417 | --progr-tra | --program-tr | --program-t)
418 ac_prev=program_transform_name ;;
419 -program-transform-name=* | --program-transform-name=* \
420 | --program-transform-nam=* | --program-transform-na=* \
421 | --program-transform-n=* | --program-transform-=* \
422 | --program-transform=* | --program-transfor=* \
423 | --program-transfo=* | --program-transf=* \
424 | --program-trans=* | --program-tran=* \
425 | --progr-tra=* | --program-tr=* | --program-t=*)
426 program_transform_name="$ac_optarg" ;;
428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
429 | -silent | --silent | --silen | --sile | --sil)
432 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
434 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
436 sbindir="$ac_optarg" ;;
438 -sharedstatedir | --sharedstatedir | --sharedstatedi \
439 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
440 | --sharedst | --shareds | --shared | --share | --shar \
442 ac_prev=sharedstatedir ;;
443 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
444 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
445 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
447 sharedstatedir="$ac_optarg" ;;
449 -site | --site | --sit)
451 -site=* | --site=* | --sit=*)
454 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
456 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
457 srcdir="$ac_optarg" ;;
459 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
460 | --syscon | --sysco | --sysc | --sys | --sy)
461 ac_prev=sysconfdir ;;
462 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
463 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
464 sysconfdir="$ac_optarg" ;;
466 -target | --target | --targe | --targ | --tar | --ta | --t)
468 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
469 target="$ac_optarg" ;;
471 -v | -verbose | --verbose | --verbos | --verbo | --verb)
474 -version | --version | --versio | --versi | --vers)
475 echo "configure generated by autoconf version 2.13"
479 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
480 # Reject names that are not valid shell variable names.
481 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
482 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
484 ac_package=`echo $ac_package| sed 's/-/_/g'`
489 eval "with_${ac_package}='$ac_optarg'" ;;
491 -without-* | --without-*)
492 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
493 # Reject names that are not valid shell variable names.
494 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
495 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
497 ac_package=`echo $ac_package| sed 's/-/_/g'`
498 eval "with_${ac_package}=no" ;;
501 # Obsolete; use --with-x.
504 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
505 | --x-incl | --x-inc | --x-in | --x-i)
506 ac_prev=x_includes ;;
507 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
508 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
509 x_includes="$ac_optarg" ;;
511 -x-libraries | --x-libraries | --x-librarie | --x-librari \
512 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
513 ac_prev=x_libraries ;;
514 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
515 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
516 x_libraries="$ac_optarg" ;;
518 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
522 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
523 echo "configure: warning: $ac_option: invalid host type" 1>&2
525 if test "x$nonopt" != xNONE; then
526 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
534 if test -n "$ac_prev"; then
535 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
538 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
540 # File descriptor usage:
543 # 2 errors and warnings
544 # 3 some systems may open it to /dev/tty
545 # 4 used on the Kubota Titan
546 # 6 checking for... messages and results
547 # 5 compiler messages saved in config.log
548 if test "$silent" = yes; then
556 This file contains any messages produced by compilers while
557 running configure, to aid debugging if configure makes a mistake.
560 # Strip out --no-create and --no-recursion so they do not pile up.
561 # Also quote any args containing shell metacharacters.
566 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
567 | --no-cr | --no-c) ;;
568 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
569 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
570 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
571 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
572 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
577 # Only set these to C if already set. These must not be set unconditionally
578 # because not all systems understand e.g. LANG=C (notably SCO).
579 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
580 # Non-C LC_CTYPE values break the ctype check.
581 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
582 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
583 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
584 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
586 # confdefs.h avoids OS command line length limits that DEFS can exceed.
587 rm -rf conftest* confdefs.h
588 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
591 # A filename unique to this package, relative to the directory that
592 # configure is in, which we can look for to find out if srcdir is correct.
593 ac_unique_file=include/main.h
595 # Find the source files, if location was not specified.
596 if test -z "$srcdir"; then
597 ac_srcdir_defaulted=yes
598 # Try the directory containing this script, then its parent.
600 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
601 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
603 if test ! -r $srcdir/$ac_unique_file; then
607 ac_srcdir_defaulted=no
609 if test ! -r $srcdir/$ac_unique_file; then
610 if test "$ac_srcdir_defaulted" = yes; then
611 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
613 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
616 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
618 # Prefer explicitly selected file to automatically selected ones.
619 if test -z "$CONFIG_SITE"; then
620 if test "x$prefix" != xNONE; then
621 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
623 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
626 for ac_site_file in $CONFIG_SITE; do
627 if test -r "$ac_site_file"; then
628 echo "loading site script $ac_site_file"
633 if test -r "$cache_file"; then
634 echo "loading cache $cache_file"
637 echo "creating cache $cache_file"
642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
643 ac_cpp='$CPP $CPPFLAGS'
644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
645 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
646 cross_compiling=$ac_cv_prog_cc_cross
650 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
651 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
652 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
659 ac_n= ac_c='\c' ac_t=
665 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
666 if test -f $ac_dir/install-sh; then
668 ac_install_sh="$ac_aux_dir/install-sh -c"
670 elif test -f $ac_dir/install.sh; then
672 ac_install_sh="$ac_aux_dir/install.sh -c"
676 if test -z "$ac_aux_dir"; then
677 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
679 ac_config_guess=$ac_aux_dir/config.guess
680 ac_config_sub=$ac_aux_dir/config.sub
681 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
684 # Do some error checking and defaulting for the host and target type.
686 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
689 # 1. You are not allowed to specify --host, --target, and nonopt at the
691 # 2. Host defaults to nonopt.
692 # 3. If nonopt is not specified, then host defaults to the current host,
693 # as determined by config.guess.
694 # 4. Target and build default to nonopt.
695 # 5. If nonopt is not specified, then target and build default to host.
697 # The aliases save the names the user supplied, while $host etc.
698 # will get canonicalized.
699 case $host---$target---$nonopt in
700 NONE---*---* | *---NONE---* | *---*---NONE) ;;
701 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
705 # Make sure we can run config.sub.
706 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
707 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
710 echo $ac_n "checking host system type""... $ac_c" 1>&6
711 echo "configure:712: checking host system type" >&5
714 case "$host_alias" in
718 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
719 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
721 *) host_alias=$nonopt ;;
725 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
726 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$host" 1>&6
731 echo $ac_n "checking target system type""... $ac_c" 1>&6
732 echo "configure:733: checking target system type" >&5
735 case "$target_alias" in
738 NONE) target_alias=$host_alias ;;
739 *) target_alias=$nonopt ;;
743 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
744 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
745 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
746 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
747 echo "$ac_t""$target" 1>&6
749 echo $ac_n "checking build system type""... $ac_c" 1>&6
750 echo "configure:751: checking build system type" >&5
753 case "$build_alias" in
756 NONE) build_alias=$host_alias ;;
757 *) build_alias=$nonopt ;;
761 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
762 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
763 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
764 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo "$ac_t""$build" 1>&6
767 test "$host_alias" != "$target_alias" &&
768 test "$program_prefix$program_suffix$program_transform_name" = \
770 program_prefix=${target_alias}-
777 save_CFLAGS="${CFLAGS}"
778 save_CPPFLAGS="${CPPFLAGS}"
779 save_LDFLAGS="${LDFLAGS}"
781 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
782 echo "configure:783: checking whether ${MAKE-make} sets \${MAKE}" >&5
783 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
784 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 cat > conftestmake <<\EOF
789 @echo 'ac_maketemp="${MAKE}"'
791 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
792 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
793 if test -n "$ac_maketemp"; then
794 eval ac_cv_prog_make_${ac_make}_set=yes
796 eval ac_cv_prog_make_${ac_make}_set=no
800 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
801 echo "$ac_t""yes" 1>&6
804 echo "$ac_t""no" 1>&6
805 SET_MAKE="MAKE=${MAKE-make}"
808 # Extract the first word of "gcc", so it can be a program name with args.
809 set dummy gcc; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC="$CC" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 for ac_dir in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir=.
822 if test -f $ac_dir/$ac_word; then
831 if test -n "$CC"; then
832 echo "$ac_t""$CC" 1>&6
834 echo "$ac_t""no" 1>&6
837 if test -z "$CC"; then
838 # Extract the first word of "cc", so it can be a program name with args.
839 set dummy cc; ac_word=$2
840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841 echo "configure:842: checking for $ac_word" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 if test -n "$CC"; then
846 ac_cv_prog_CC="$CC" # Let the user override the test.
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
851 for ac_dir in $ac_dummy; do
852 test -z "$ac_dir" && ac_dir=.
853 if test -f $ac_dir/$ac_word; then
854 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
863 if test $ac_prog_rejected = yes; then
864 # We found a bogon in the path, so make sure we never use it.
865 set dummy $ac_cv_prog_CC
867 if test $# -gt 0; then
868 # We chose a different compiler from the bogus one.
869 # However, it has the same basename, so the bogon will be chosen
870 # first if we set CC to just the basename; use the full file name.
872 set dummy "$ac_dir/$ac_word" "$@"
880 if test -n "$CC"; then
881 echo "$ac_t""$CC" 1>&6
883 echo "$ac_t""no" 1>&6
886 if test -z "$CC"; then
889 # Extract the first word of "cl", so it can be a program name with args.
890 set dummy cl; ac_word=$2
891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892 echo "configure:893: checking for $ac_word" >&5
893 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 if test -n "$CC"; then
897 ac_cv_prog_CC="$CC" # Let the user override the test.
899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
901 for ac_dir in $ac_dummy; do
902 test -z "$ac_dir" && ac_dir=.
903 if test -f $ac_dir/$ac_word; then
912 if test -n "$CC"; then
913 echo "$ac_t""$CC" 1>&6
915 echo "$ac_t""no" 1>&6
920 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
923 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
924 echo "configure:925: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
933 cat > conftest.$ac_ext << EOF
935 #line 936 "configure"
936 #include "confdefs.h"
940 if { (eval echo configure:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
941 ac_cv_prog_cc_works=yes
942 # If we can't run a trivial program, we are probably using a cross compiler.
943 if (./conftest; exit) 2>/dev/null; then
944 ac_cv_prog_cc_cross=no
946 ac_cv_prog_cc_cross=yes
949 echo "configure: failed program was:" >&5
950 cat conftest.$ac_ext >&5
951 ac_cv_prog_cc_works=no
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling=$ac_cv_prog_cc_cross
961 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
962 if test $ac_cv_prog_cc_works = no; then
963 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
965 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
966 echo "configure:967: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
967 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
968 cross_compiling=$ac_cv_prog_cc_cross
970 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
971 echo "configure:972: checking whether we are using GNU C" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 cat > conftest.c <<EOF
980 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
987 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
989 if test $ac_cv_prog_gcc = yes; then
995 ac_test_CFLAGS="${CFLAGS+set}"
996 ac_save_CFLAGS="$CFLAGS"
998 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
999 echo "configure:1000: checking whether ${CC-cc} accepts -g" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 echo 'void f(){}' > conftest.c
1004 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1013 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1014 if test "$ac_test_CFLAGS" = set; then
1015 CFLAGS="$ac_save_CFLAGS"
1016 elif test $ac_cv_prog_cc_g = yes; then
1017 if test "$GCC" = yes; then
1023 if test "$GCC" = yes; then
1030 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1031 echo "configure:1032: checking how to run the C preprocessor" >&5
1032 # On Suns, sometimes $CPP names a directory.
1033 if test -n "$CPP" && test -d "$CPP"; then
1036 if test -z "$CPP"; then
1037 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 # This must be in double quotes, not single quotes, because CPP may get
1041 # substituted into the Makefile and "${CC-cc}" will confuse make.
1043 # On the NeXT, cc -E runs the code through the compiler's parser,
1044 # not just through cpp.
1045 cat > conftest.$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1052 { (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1054 if test -z "$ac_err"; then
1058 echo "configure: failed program was:" >&5
1059 cat conftest.$ac_ext >&5
1061 CPP="${CC-cc} -E -traditional-cpp"
1062 cat > conftest.$ac_ext <<EOF
1063 #line 1064 "configure"
1064 #include "confdefs.h"
1068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1069 { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1071 if test -z "$ac_err"; then
1075 echo "configure: failed program was:" >&5
1076 cat conftest.$ac_ext >&5
1078 CPP="${CC-cc} -nologo -E"
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1086 { (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1088 if test -z "$ac_err"; then
1092 echo "configure: failed program was:" >&5
1093 cat conftest.$ac_ext >&5
1102 ac_cv_prog_CPP="$CPP"
1104 CPP="$ac_cv_prog_CPP"
1106 ac_cv_prog_CPP="$CPP"
1108 echo "$ac_t""$CPP" 1>&6
1111 if test $host != $build; then
1112 ac_tool_prefix=${host_alias}-
1117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 if test -n "$RANLIB"; then
1125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1129 for ac_dir in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1139 RANLIB="$ac_cv_prog_RANLIB"
1140 if test -n "$RANLIB"; then
1141 echo "$ac_t""$RANLIB" 1>&6
1143 echo "$ac_t""no" 1>&6
1147 if test -z "$ac_cv_prog_RANLIB"; then
1148 if test -n "$ac_tool_prefix"; then
1149 # Extract the first word of "ranlib", so it can be a program name with args.
1150 set dummy ranlib; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$RANLIB"; then
1157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1161 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_RANLIB="ranlib"
1169 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1172 RANLIB="$ac_cv_prog_RANLIB"
1173 if test -n "$RANLIB"; then
1174 echo "$ac_t""$RANLIB" 1>&6
1176 echo "$ac_t""no" 1>&6
1184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1185 set dummy ${ac_tool_prefix}strip; ac_word=$2
1186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1187 echo "configure:1188: checking for $ac_word" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 if test -n "$STRIP"; then
1192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1196 for ac_dir in $ac_dummy; do
1197 test -z "$ac_dir" && ac_dir=.
1198 if test -f $ac_dir/$ac_word; then
1199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1206 STRIP="$ac_cv_prog_STRIP"
1207 if test -n "$STRIP"; then
1208 echo "$ac_t""$STRIP" 1>&6
1210 echo "$ac_t""no" 1>&6
1214 if test -z "$ac_cv_prog_STRIP"; then
1215 if test -n "$ac_tool_prefix"; then
1216 # Extract the first word of "strip", so it can be a program name with args.
1217 set dummy strip; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$STRIP"; then
1224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1228 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/$ac_word; then
1231 ac_cv_prog_STRIP="strip"
1236 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1239 STRIP="$ac_cv_prog_STRIP"
1240 if test -n "$STRIP"; then
1241 echo "$ac_t""$STRIP" 1>&6
1243 echo "$ac_t""no" 1>&6
1252 # Extract the first word of "gmake", so it can be a program name with args.
1253 set dummy gmake; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1261 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1264 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1269 for ac_dir in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1277 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1281 GMAKE="$ac_cv_path_GMAKE"
1282 if test -n "$GMAKE"; then
1283 echo "$ac_t""$GMAKE" 1>&6
1285 echo "$ac_t""no" 1>&6
1288 if test "x$GMAKE" = "xno"; then
1289 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1290 echo "configure:1291: checking whether GNU make is installed" >&5
1291 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 if make --version | grep -q -i gnu; then
1297 echo "This software needs you to install GNU make to compile properly."
1298 echo "You can get it from http://www.gnu.org/."
1303 echo "$ac_t""$ac_cv_gmake" 1>&6
1309 ALL_LINGUAS="de en_GB fr ja no ru nl"
1311 cat >> confdefs.h <<EOF
1312 #define VLC_PACKAGE "$PACKAGE"
1315 cat >> confdefs.h <<EOF
1316 #define VLC_VERSION "$VERSION"
1319 # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 if test -n "$RANLIB"; then
1327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_RANLIB="ranlib"
1339 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344 echo "$ac_t""$RANLIB" 1>&6
1346 echo "$ac_t""no" 1>&6
1350 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1351 echo "configure:1352: checking for strerror in -lcposix" >&5
1352 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 ac_save_LIBS="$LIBS"
1357 LIBS="-lcposix $LIBS"
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1370 if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1372 eval "ac_cv_lib_$ac_lib_var=yes"
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1377 eval "ac_cv_lib_$ac_lib_var=no"
1380 LIBS="$ac_save_LIBS"
1383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1385 LIBS="$LIBS -lcposix"
1387 echo "$ac_t""no" 1>&6
1392 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1393 echo "configure:1394: checking for ANSI C header files" >&5
1394 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1406 { (eval echo configure:1407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1408 if test -z "$ac_err"; then
1410 ac_cv_header_stdc=yes
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1416 ac_cv_header_stdc=no
1420 if test $ac_cv_header_stdc = yes; then
1421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1428 egrep "memchr" >/dev/null 2>&1; then
1432 ac_cv_header_stdc=no
1438 if test $ac_cv_header_stdc = yes; then
1439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1446 egrep "free" >/dev/null 2>&1; then
1450 ac_cv_header_stdc=no
1456 if test $ac_cv_header_stdc = yes; then
1457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1458 if test "$cross_compiling" = yes; then
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1465 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1466 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1468 int main () { int i; for (i = 0; i < 256; i++)
1469 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1473 if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1480 ac_cv_header_stdc=no
1488 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1489 if test $ac_cv_header_stdc = yes; then
1490 cat >> confdefs.h <<\EOF
1491 #define STDC_HEADERS 1
1496 echo $ac_n "checking for working const""... $ac_c" 1>&6
1497 echo "configure:1498: checking for working const" >&5
1498 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1507 /* Ultrix mips cc rejects this. */
1508 typedef int charset[2]; const charset x;
1509 /* SunOS 4.1.1 cc rejects this. */
1510 char const *const *ccp;
1512 /* NEC SVR4.0.2 mips cc rejects this. */
1513 struct point {int x, y;};
1514 static struct point const zero = {0,0};
1515 /* AIX XL C 1.02.0.0 rejects this.
1516 It does not let you subtract one const X* pointer from another in an arm
1517 of an if-expression whose if-part is not a constant expression */
1518 const char *g = "string";
1519 ccp = &g + (g ? g-g : 0);
1520 /* HPUX 7.0 cc rejects these. */
1523 ccp = (char const *const *) p;
1524 { /* SCO 3.2v4 cc rejects this. */
1526 char const *s = 0 ? (char *) 0 : (char const *) 0;
1530 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1532 const int *foo = &x[0];
1535 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1536 typedef const int *iptr;
1540 { /* AIX XL C 1.02.0.0 rejects this saying
1541 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1542 struct s { int j; const int *ap[3]; };
1543 struct s *b; b->j = 5;
1545 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1551 if { (eval echo configure:1552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1563 echo "$ac_t""$ac_cv_c_const" 1>&6
1564 if test $ac_cv_c_const = no; then
1565 cat >> confdefs.h <<\EOF
1571 echo $ac_n "checking for inline""... $ac_c" 1>&6
1572 echo "configure:1573: checking for inline" >&5
1573 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1577 for ac_kw in inline __inline__ __inline; do
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1586 if { (eval echo configure:1587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1588 ac_cv_c_inline=$ac_kw; break
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1598 echo "$ac_t""$ac_cv_c_inline" 1>&6
1599 case "$ac_cv_c_inline" in
1601 no) cat >> confdefs.h <<\EOF
1605 *) cat >> confdefs.h <<EOF
1606 #define inline $ac_cv_c_inline
1611 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1612 echo "configure:1613: checking for off_t" >&5
1613 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 cat > conftest.$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1619 #include <sys/types.h>
1625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1626 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1628 ac_cv_type_off_t=yes
1636 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1637 if test $ac_cv_type_off_t = no; then
1638 cat >> confdefs.h <<\EOF
1644 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1645 echo "configure:1646: checking for size_t" >&5
1646 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 cat > conftest.$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1652 #include <sys/types.h>
1658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1659 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1661 ac_cv_type_size_t=yes
1664 ac_cv_type_size_t=no
1669 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1670 if test $ac_cv_type_size_t = no; then
1671 cat >> confdefs.h <<\EOF
1672 #define size_t unsigned
1677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1678 # for constant arguments. Useless!
1679 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1680 echo "configure:1681: checking for working alloca.h" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1689 char *p = alloca(2 * sizeof(int));
1692 if { (eval echo configure:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1694 ac_cv_header_alloca_h=yes
1696 echo "configure: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1699 ac_cv_header_alloca_h=no
1704 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1705 if test $ac_cv_header_alloca_h = yes; then
1706 cat >> confdefs.h <<\EOF
1707 #define HAVE_ALLOCA_H 1
1712 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1713 echo "configure:1714: checking for alloca" >&5
1714 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 cat > conftest.$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1722 # define alloca __builtin_alloca
1725 # include <malloc.h>
1726 # define alloca _alloca
1729 # include <alloca.h>
1734 # ifndef alloca /* predefined by HP cc +Olibcalls */
1743 char *p = (char *) alloca(1);
1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 ac_cv_func_alloca_works=yes
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1753 ac_cv_func_alloca_works=no
1758 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1759 if test $ac_cv_func_alloca_works = yes; then
1760 cat >> confdefs.h <<\EOF
1761 #define HAVE_ALLOCA 1
1766 if test $ac_cv_func_alloca_works = no; then
1767 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1768 # that cause trouble. Some versions do not even contain alloca or
1769 # contain a buggy version. If you still want to use their alloca,
1770 # use ar to extract alloca.o from them instead of compiling alloca.c.
1771 ALLOCA=alloca.${ac_objext}
1772 cat >> confdefs.h <<\EOF
1777 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1778 echo "configure:1779: checking whether alloca needs Cray hooks" >&5
1779 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 cat > conftest.$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1785 #if defined(CRAY) && ! defined(CRAY2)
1792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1793 egrep "webecray" >/dev/null 2>&1; then
1804 echo "$ac_t""$ac_cv_os_cray" 1>&6
1805 if test $ac_cv_os_cray = yes; then
1806 for ac_func in _getb67 GETB67 getb67; do
1807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1808 echo "configure:1809: checking for $ac_func" >&5
1809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $ac_func(); below. */
1818 /* Override any gcc2 internal prototype to avoid an error. */
1819 /* We use char because int might match the return type of a gcc2
1820 builtin and then its argument prototype would still apply. */
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1838 eval "ac_cv_func_$ac_func=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 eval "ac_cv_func_$ac_func=no"
1848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1849 echo "$ac_t""yes" 1>&6
1850 cat >> confdefs.h <<EOF
1851 #define CRAY_STACKSEG_END $ac_func
1856 echo "$ac_t""no" 1>&6
1862 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1863 echo "configure:1864: checking stack direction for C alloca" >&5
1864 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 if test "$cross_compiling" = yes; then
1868 ac_cv_c_stack_direction=0
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 find_stack_direction ()
1875 static char *addr = 0;
1880 return find_stack_direction ();
1883 return (&dummy > addr) ? 1 : -1;
1887 exit (find_stack_direction() < 0);
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1892 ac_cv_c_stack_direction=1
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1897 ac_cv_c_stack_direction=-1
1904 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1905 cat >> confdefs.h <<EOF
1906 #define STACK_DIRECTION $ac_cv_c_stack_direction
1911 for ac_hdr in unistd.h
1913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_hdr" >&5
1916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1925 { (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1927 if test -z "$ac_err"; then
1929 eval "ac_cv_header_$ac_safe=yes"
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 eval "ac_cv_header_$ac_safe=no"
1939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1940 echo "$ac_t""yes" 1>&6
1941 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1942 cat >> confdefs.h <<EOF
1943 #define $ac_tr_hdr 1
1947 echo "$ac_t""no" 1>&6
1951 for ac_func in getpagesize
1953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1954 echo "configure:1955: checking for $ac_func" >&5
1955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1961 /* System header to define __stub macros and hopefully few prototypes,
1962 which can conflict with char $ac_func(); below. */
1964 /* Override any gcc2 internal prototype to avoid an error. */
1965 /* We use char because int might match the return type of a gcc2
1966 builtin and then its argument prototype would still apply. */
1971 /* The GNU C library defines this for functions which it implements
1972 to always fail with ENOSYS. Some functions are actually named
1973 something starting with __ and the normal name is an alias. */
1974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1982 if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1984 eval "ac_cv_func_$ac_func=yes"
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1989 eval "ac_cv_func_$ac_func=no"
1994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1995 echo "$ac_t""yes" 1>&6
1996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1997 cat >> confdefs.h <<EOF
1998 #define $ac_tr_func 1
2002 echo "$ac_t""no" 1>&6
2006 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2007 echo "configure:2008: checking for working mmap" >&5
2008 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 if test "$cross_compiling" = yes; then
2012 ac_cv_func_mmap_fixed_mapped=no
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2018 /* Thanks to Mike Haertel and Jim Avera for this test.
2019 Here is a matrix of mmap possibilities:
2020 mmap private not fixed
2021 mmap private fixed at somewhere currently unmapped
2022 mmap private fixed at somewhere already mapped
2023 mmap shared not fixed
2024 mmap shared fixed at somewhere currently unmapped
2025 mmap shared fixed at somewhere already mapped
2026 For private mappings, we should verify that changes cannot be read()
2027 back from the file, nor mmap's back from the file at a different
2028 address. (There have been systems where private was not correctly
2029 implemented like the infamous i386 svr4.0, and systems where the
2030 VM page cache was not coherent with the filesystem buffer cache
2031 like early versions of FreeBSD and possibly contemporary NetBSD.)
2032 For shared mappings, we should conversely verify that changes get
2033 propogated back to all the places they're supposed to be.
2035 Grep wants private fixed already mapped.
2036 The main things grep needs to know about mmap are:
2037 * does it exist and is it safe to write into the mmap'd area
2038 * how to use it (BSD variants) */
2039 #include <sys/types.h>
2041 #include <sys/mman.h>
2043 /* This mess was copied from the GNU getpagesize.h. */
2044 #ifndef HAVE_GETPAGESIZE
2045 # ifdef HAVE_UNISTD_H
2046 # include <unistd.h>
2049 /* Assume that all systems that can run configure have sys/param.h. */
2050 # ifndef HAVE_SYS_PARAM_H
2051 # define HAVE_SYS_PARAM_H 1
2054 # ifdef _SC_PAGESIZE
2055 # define getpagesize() sysconf(_SC_PAGESIZE)
2056 # else /* no _SC_PAGESIZE */
2057 # ifdef HAVE_SYS_PARAM_H
2058 # include <sys/param.h>
2059 # ifdef EXEC_PAGESIZE
2060 # define getpagesize() EXEC_PAGESIZE
2061 # else /* no EXEC_PAGESIZE */
2063 # define getpagesize() NBPG * CLSIZE
2066 # endif /* no CLSIZE */
2067 # else /* no NBPG */
2069 # define getpagesize() NBPC
2070 # else /* no NBPC */
2072 # define getpagesize() PAGESIZE
2073 # endif /* PAGESIZE */
2074 # endif /* no NBPC */
2075 # endif /* no NBPG */
2076 # endif /* no EXEC_PAGESIZE */
2077 # else /* no HAVE_SYS_PARAM_H */
2078 # define getpagesize() 8192 /* punt totally */
2079 # endif /* no HAVE_SYS_PARAM_H */
2080 # endif /* no _SC_PAGESIZE */
2082 #endif /* no HAVE_GETPAGESIZE */
2085 extern "C" { void *malloc(unsigned); }
2093 char *data, *data2, *data3;
2097 pagesize = getpagesize();
2100 * First, make a file with some known garbage in it.
2102 data = malloc(pagesize);
2105 for (i = 0; i < pagesize; ++i)
2106 *(data + i) = rand();
2108 fd = creat("conftestmmap", 0600);
2111 if (write(fd, data, pagesize) != pagesize)
2116 * Next, try to mmap the file at a fixed address which
2117 * already has something else allocated at it. If we can,
2118 * also make sure that we see the same garbage.
2120 fd = open("conftestmmap", O_RDWR);
2123 data2 = malloc(2 * pagesize);
2126 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2127 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2128 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2130 for (i = 0; i < pagesize; ++i)
2131 if (*(data + i) != *(data2 + i))
2135 * Finally, make sure that changes to the mapped area
2136 * do not percolate back to the file as seen by read().
2137 * (This is a bug on some variants of i386 svr4.0.)
2139 for (i = 0; i < pagesize; ++i)
2140 *(data2 + i) = *(data2 + i) + 1;
2141 data3 = malloc(pagesize);
2144 if (read(fd, data3, pagesize) != pagesize)
2146 for (i = 0; i < pagesize; ++i)
2147 if (*(data + i) != *(data3 + i))
2150 unlink("conftestmmap");
2155 if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2157 ac_cv_func_mmap_fixed_mapped=yes
2159 echo "configure: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2162 ac_cv_func_mmap_fixed_mapped=no
2169 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2170 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2171 cat >> confdefs.h <<\EOF
2178 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2179 echo "configure:2180: checking whether we are using the GNU C Library 2.1 or newer" >&5
2180 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2187 #include <features.h>
2188 #ifdef __GNU_LIBRARY__
2189 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2196 egrep "Lucky GNU user" >/dev/null 2>&1; then
2198 ac_cv_gnu_library_2_1=yes
2201 ac_cv_gnu_library_2_1=no
2209 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2211 GLIBC21="$ac_cv_gnu_library_2_1"
2215 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2216 stdlib.h string.h unistd.h sys/param.h
2218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2220 echo "configure:2221: checking for $ac_hdr" >&5
2221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2230 { (eval echo configure:2231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2232 if test -z "$ac_err"; then
2234 eval "ac_cv_header_$ac_safe=yes"
2237 echo "configure: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2240 eval "ac_cv_header_$ac_safe=no"
2244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2245 echo "$ac_t""yes" 1>&6
2246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2247 cat >> confdefs.h <<EOF
2248 #define $ac_tr_hdr 1
2252 echo "$ac_t""no" 1>&6
2256 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2257 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2258 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2261 echo "configure:2262: checking for $ac_func" >&5
2262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 /* System header to define __stub macros and hopefully few prototypes,
2269 which can conflict with char $ac_func(); below. */
2271 /* Override any gcc2 internal prototype to avoid an error. */
2272 /* We use char because int might match the return type of a gcc2
2273 builtin and then its argument prototype would still apply. */
2278 /* The GNU C library defines this for functions which it implements
2279 to always fail with ENOSYS. Some functions are actually named
2280 something starting with __ and the normal name is an alias. */
2281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2289 if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2291 eval "ac_cv_func_$ac_func=yes"
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 eval "ac_cv_func_$ac_func=no"
2301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2302 echo "$ac_t""yes" 1>&6
2303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2304 cat >> confdefs.h <<EOF
2305 #define $ac_tr_func 1
2309 echo "$ac_t""no" 1>&6
2316 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2317 if test "${with_libiconv_prefix+set}" = set; then
2318 withval="$with_libiconv_prefix"
2320 for dir in `echo "$withval" | tr : ' '`; do
2321 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2322 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2328 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2329 echo "configure:2330: checking for iconv" >&5
2330 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2334 am_cv_func_iconv="no, consider installing GNU libiconv"
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2342 iconv_t cd = iconv_open("","");
2343 iconv(cd,NULL,NULL,NULL,NULL);
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2349 am_cv_func_iconv=yes
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2355 if test "$am_cv_func_iconv" != yes; then
2356 am_save_LIBS="$LIBS"
2357 LIBS="$LIBS -liconv"
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2364 iconv_t cd = iconv_open("","");
2365 iconv(cd,NULL,NULL,NULL,NULL);
2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372 am_cv_func_iconv=yes
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2378 LIBS="$am_save_LIBS"
2383 echo "$ac_t""$am_cv_func_iconv" 1>&6
2384 if test "$am_cv_func_iconv" = yes; then
2385 cat >> confdefs.h <<\EOF
2386 #define HAVE_ICONV 1
2389 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2390 echo "configure:2391: checking for iconv declaration" >&5
2391 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2405 #if defined(__STDC__) || defined(__cplusplus)
2406 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2415 if { (eval echo configure:2416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417 am_cv_proto_iconv_arg1=""
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2422 am_cv_proto_iconv_arg1="const"
2425 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2428 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2429 echo "$ac_t""${ac_t:-
2430 }$am_cv_proto_iconv" 1>&6
2431 cat >> confdefs.h <<EOF
2432 #define ICONV_CONST $am_cv_proto_iconv_arg1
2437 if test "$am_cv_lib_iconv" = yes; then
2443 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2444 echo "configure:2445: checking for nl_langinfo and CODESET" >&5
2445 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2451 #include <langinfo.h>
2453 char* cs = nl_langinfo(CODESET);
2456 if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2458 am_cv_langinfo_codeset=yes
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 am_cv_langinfo_codeset=no
2469 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2470 if test $am_cv_langinfo_codeset = yes; then
2471 cat >> confdefs.h <<\EOF
2472 #define HAVE_LANGINFO_CODESET 1
2477 if test $ac_cv_header_locale_h = yes; then
2478 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2479 echo "configure:2480: checking for LC_MESSAGES" >&5
2480 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2493 am_cv_val_LC_MESSAGES=yes
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 am_cv_val_LC_MESSAGES=no
2503 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2504 if test $am_cv_val_LC_MESSAGES = yes; then
2505 cat >> confdefs.h <<\EOF
2506 #define HAVE_LC_MESSAGES 1
2511 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2512 echo "configure:2513: checking whether NLS is requested" >&5
2513 # Check whether --enable-nls or --disable-nls was given.
2514 if test "${enable_nls+set}" = set; then
2515 enableval="$enable_nls"
2521 echo "$ac_t""$USE_NLS" 1>&6
2524 BUILD_INCLUDED_LIBINTL=no
2525 USE_INCLUDED_LIBINTL=no
2528 if test "$USE_NLS" = "yes"; then
2529 cat >> confdefs.h <<\EOF
2530 #define ENABLE_NLS 1
2533 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2534 echo "configure:2535: checking whether included gettext is requested" >&5
2535 # Check whether --with-included-gettext or --without-included-gettext was given.
2536 if test "${with_included_gettext+set}" = set; then
2537 withval="$with_included_gettext"
2538 nls_cv_force_use_gnu_gettext=$withval
2540 nls_cv_force_use_gnu_gettext=no
2543 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2545 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2546 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2552 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2553 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2554 echo "configure:2555: checking for libintl.h" >&5
2555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 #include <libintl.h>
2563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2564 { (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2566 if test -z "$ac_err"; then
2568 eval "ac_cv_header_$ac_safe=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 eval "ac_cv_header_$ac_safe=no"
2578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2579 echo "$ac_t""yes" 1>&6
2580 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2581 echo "configure:2582: checking for GNU gettext in libc" >&5
2582 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #include <libintl.h>
2589 extern int _nl_msg_cat_cntr;
2591 bindtextdomain ("", "");
2592 return (int) gettext ("") + _nl_msg_cat_cntr
2595 if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2597 gt_cv_func_gnugettext1_libc=yes
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 gt_cv_func_gnugettext1_libc=no
2607 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2609 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2610 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2611 echo "configure:2612: checking for GNU gettext in libintl" >&5
2612 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 gt_save_LIBS="$LIBS"
2616 LIBS="$LIBS -lintl $LIBICONV"
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 #include <libintl.h>
2621 extern int _nl_msg_cat_cntr;
2623 bindtextdomain ("", "");
2624 return (int) gettext ("") + _nl_msg_cat_cntr
2627 if { (eval echo configure:2628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2629 gt_cv_func_gnugettext1_libintl=yes
2631 echo "configure: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2634 gt_cv_func_gnugettext1_libintl=no
2637 LIBS="$gt_save_LIBS"
2640 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2643 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2644 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2645 && test "$PACKAGE" != gettext; }; then
2646 cat >> confdefs.h <<\EOF
2647 #define HAVE_GETTEXT 1
2651 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2652 INTLLIBS="-lintl $LIBICONV"
2655 gt_save_LIBS="$LIBS"
2656 LIBS="$LIBS $INTLLIBS"
2657 for ac_func in dcgettext
2659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2660 echo "configure:2661: checking for $ac_func" >&5
2661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2667 /* System header to define __stub macros and hopefully few prototypes,
2668 which can conflict with char $ac_func(); below. */
2670 /* Override any gcc2 internal prototype to avoid an error. */
2671 /* We use char because int might match the return type of a gcc2
2672 builtin and then its argument prototype would still apply. */
2677 /* The GNU C library defines this for functions which it implements
2678 to always fail with ENOSYS. Some functions are actually named
2679 something starting with __ and the normal name is an alias. */
2680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2688 if { (eval echo configure:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2690 eval "ac_cv_func_$ac_func=yes"
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2695 eval "ac_cv_func_$ac_func=no"
2700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2703 cat >> confdefs.h <<EOF
2704 #define $ac_tr_func 1
2708 echo "$ac_t""no" 1>&6
2712 LIBS="$gt_save_LIBS"
2714 # Extract the first word of "msgfmt", so it can be a program name with args.
2715 set dummy msgfmt; ac_word=$2
2716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2717 echo "configure:2718: checking for $ac_word" >&5
2718 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2723 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2727 for ac_dir in $PATH; do
2728 test -z "$ac_dir" && ac_dir=.
2729 if test -f $ac_dir/$ac_word; then
2730 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2731 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2741 MSGFMT="$ac_cv_path_MSGFMT"
2742 if test "$MSGFMT" != ":"; then
2743 echo "$ac_t""$MSGFMT" 1>&6
2745 echo "$ac_t""no" 1>&6
2748 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2749 set dummy gmsgfmt; ac_word=$2
2750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_word" >&5
2752 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2757 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2760 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2765 for ac_dir in $ac_dummy; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2773 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2777 GMSGFMT="$ac_cv_path_GMSGFMT"
2778 if test -n "$GMSGFMT"; then
2779 echo "$ac_t""$GMSGFMT" 1>&6
2781 echo "$ac_t""no" 1>&6
2785 # Extract the first word of "xgettext", so it can be a program name with args.
2786 set dummy xgettext; ac_word=$2
2787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_word" >&5
2789 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2794 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2798 for ac_dir in $PATH; do
2799 test -z "$ac_dir" && ac_dir=.
2800 if test -f $ac_dir/$ac_word; then
2801 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2802 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2808 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2812 XGETTEXT="$ac_cv_path_XGETTEXT"
2813 if test "$XGETTEXT" != ":"; then
2814 echo "$ac_t""$XGETTEXT" 1>&6
2816 echo "$ac_t""no" 1>&6
2824 echo "$ac_t""no" 1>&6
2828 if test "$CATOBJEXT" = "NONE"; then
2829 nls_cv_use_gnu_gettext=yes
2833 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2834 INTLOBJS="\$(GETTOBJS)"
2835 # Extract the first word of "msgfmt", so it can be a program name with args.
2836 set dummy msgfmt; ac_word=$2
2837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2838 echo "configure:2839: checking for $ac_word" >&5
2839 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2844 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2848 for ac_dir in $PATH; do
2849 test -z "$ac_dir" && ac_dir=.
2850 if test -f $ac_dir/$ac_word; then
2851 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2852 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2858 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2862 MSGFMT="$ac_cv_path_MSGFMT"
2863 if test "$MSGFMT" != ":"; then
2864 echo "$ac_t""$MSGFMT" 1>&6
2866 echo "$ac_t""no" 1>&6
2869 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2870 set dummy gmsgfmt; ac_word=$2
2871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2872 echo "configure:2873: checking for $ac_word" >&5
2873 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2878 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2881 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2886 for ac_dir in $ac_dummy; do
2887 test -z "$ac_dir" && ac_dir=.
2888 if test -f $ac_dir/$ac_word; then
2889 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2894 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2898 GMSGFMT="$ac_cv_path_GMSGFMT"
2899 if test -n "$GMSGFMT"; then
2900 echo "$ac_t""$GMSGFMT" 1>&6
2902 echo "$ac_t""no" 1>&6
2905 # Extract the first word of "xgettext", so it can be a program name with args.
2906 set dummy xgettext; ac_word=$2
2907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2908 echo "configure:2909: checking for $ac_word" >&5
2909 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2914 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2918 for ac_dir in $PATH; do
2919 test -z "$ac_dir" && ac_dir=.
2920 if test -f $ac_dir/$ac_word; then
2921 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2922 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2928 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2932 XGETTEXT="$ac_cv_path_XGETTEXT"
2933 if test "$XGETTEXT" != ":"; then
2934 echo "$ac_t""$XGETTEXT" 1>&6
2936 echo "$ac_t""no" 1>&6
2940 BUILD_INCLUDED_LIBINTL=yes
2941 USE_INCLUDED_LIBINTL=yes
2943 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2944 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2947 if test "$GMSGFMT" != ":"; then
2948 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2951 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2956 if test "$XGETTEXT" != ":"; then
2957 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2960 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2970 if test "$PACKAGE" = gettext; then
2971 BUILD_INCLUDED_LIBINTL=yes
2974 for ac_prog in bison
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_word" >&5
2980 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 if test -n "$INTLBISON"; then
2984 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2988 for ac_dir in $ac_dummy; do
2989 test -z "$ac_dir" && ac_dir=.
2990 if test -f $ac_dir/$ac_word; then
2991 ac_cv_prog_INTLBISON="$ac_prog"
2998 INTLBISON="$ac_cv_prog_INTLBISON"
2999 if test -n "$INTLBISON"; then
3000 echo "$ac_t""$INTLBISON" 1>&6
3002 echo "$ac_t""no" 1>&6
3005 test -n "$INTLBISON" && break
3008 if test -z "$INTLBISON"; then
3011 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3012 echo "configure:3013: checking version of bison" >&5
3013 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3014 case $ac_prog_version in
3015 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3016 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3017 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3018 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3020 echo "$ac_t""$ac_prog_version" 1>&6
3022 if test $ac_verc_fail = yes; then
3026 for lang in $ALL_LINGUAS; do
3027 GMOFILES="$GMOFILES $lang.gmo"
3028 POFILES="$POFILES $lang.po"
3042 nls_cv_header_libgt=
3054 if test "x$CATOBJEXT" != "x"; then
3055 if test "x$ALL_LINGUAS" = "x"; then
3058 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3059 echo "configure:3060: checking for catalogs to be installed" >&5
3061 for presentlang in $ALL_LINGUAS; do
3063 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3064 # Use the presentlang catalog if desiredlang is
3065 # a. equal to presentlang, or
3066 # b. a variant of presentlang (because in this case,
3067 # presentlang can be used as a fallback for messages
3068 # which are not translated in the desiredlang catalog).
3069 case "$desiredlang" in
3070 "$presentlang"*) useit=yes;;
3073 if test $useit = yes; then
3074 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3077 LINGUAS=$NEW_LINGUAS
3078 echo "$ac_t""$LINGUAS" 1>&6
3081 if test -n "$LINGUAS"; then
3082 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3087 if test -n "$ac_aux_dir"; then
3088 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3090 if test -z "$MKINSTALLDIRS"; then
3091 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3095 INTL_LIBTOOL_SUFFIX_PREFIX=
3099 # Find a good install program. We prefer a C program (faster),
3100 # so one script is as good as another. But avoid the broken or
3101 # incompatible versions:
3102 # SysV /etc/install, /usr/sbin/install
3103 # SunOS /usr/etc/install
3104 # IRIX /sbin/install
3106 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3107 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3108 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3109 # ./install, which can be erroneously created by make from ./install.sh.
3110 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3111 echo "configure:3112: checking for a BSD compatible install" >&5
3112 if test -z "$INSTALL"; then
3113 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3117 for ac_dir in $PATH; do
3118 # Account for people who put trailing slashes in PATH elements.
3120 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3122 # OSF1 and SCO ODT 3.0 have their own names for install.
3123 # Don't use installbsd from OSF since it installs stuff as root
3125 for ac_prog in ginstall scoinst install; do
3126 if test -f $ac_dir/$ac_prog; then
3127 if test $ac_prog = install &&
3128 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3129 # AIX install. It has an incompatible calling convention.
3132 ac_cv_path_install="$ac_dir/$ac_prog -c"
3143 if test "${ac_cv_path_install+set}" = set; then
3144 INSTALL="$ac_cv_path_install"
3146 # As a last resort, use the slow shell script. We don't cache a
3147 # path for INSTALL within a source directory, because that will
3148 # break other packages using the cache if that directory is
3149 # removed, or if the path is relative.
3150 INSTALL="$ac_install_sh"
3153 echo "$ac_t""$INSTALL" 1>&6
3155 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3156 # It thinks the first close brace ends the variable substitution.
3157 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3159 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3164 case x"${target_os}" in
3173 save_CFLAGS="${save_CFLAGS} -pthread"
3174 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3175 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3179 save_CFLAGS="${save_CFLAGS} -pthread"
3183 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3187 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}windres; ac_word=$2
3189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3190 echo "configure:3191: checking for $ac_word" >&5
3191 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 if test -n "$WINDRES"; then
3195 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3199 for ac_dir in $ac_dummy; do
3200 test -z "$ac_dir" && ac_dir=.
3201 if test -f $ac_dir/$ac_word; then
3202 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3209 WINDRES="$ac_cv_prog_WINDRES"
3210 if test -n "$WINDRES"; then
3211 echo "$ac_t""$WINDRES" 1>&6
3213 echo "$ac_t""no" 1>&6
3217 if test -z "$ac_cv_prog_WINDRES"; then
3218 if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "windres", so it can be a program name with args.
3220 set dummy windres; ac_word=$2
3221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_word" >&5
3223 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 if test -n "$WINDRES"; then
3227 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3231 for ac_dir in $ac_dummy; do
3232 test -z "$ac_dir" && ac_dir=.
3233 if test -f $ac_dir/$ac_word; then
3234 ac_cv_prog_WINDRES="windres"
3239 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3242 WINDRES="$ac_cv_prog_WINDRES"
3243 if test -n "$WINDRES"; then
3244 echo "$ac_t""$WINDRES" 1>&6
3246 echo "$ac_t""no" 1>&6
3254 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3255 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3256 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3257 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3258 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3262 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3263 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3267 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3268 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3269 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3270 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3271 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3278 if test x"${SYS}" = xmingw32
3280 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3282 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3285 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3287 for ac_func in gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_func" >&5
3291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 /* System header to define __stub macros and hopefully few prototypes,
3298 which can conflict with char $ac_func(); below. */
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3307 /* The GNU C library defines this for functions which it implements
3308 to always fail with ENOSYS. Some functions are actually named
3309 something starting with __ and the normal name is an alias. */
3310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3318 if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3320 eval "ac_cv_func_$ac_func=yes"
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3325 eval "ac_cv_func_$ac_func=no"
3330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3333 cat >> confdefs.h <<EOF
3334 #define $ac_tr_func 1
3338 echo "$ac_t""no" 1>&6
3343 echo $ac_n "checking for connect""... $ac_c" 1>&6
3344 echo "configure:3345: checking for connect" >&5
3345 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 /* System header to define __stub macros and hopefully few prototypes,
3352 which can conflict with char connect(); below. */
3354 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3361 /* The GNU C library defines this for functions which it implements
3362 to always fail with ENOSYS. Some functions are actually named
3363 something starting with __ and the normal name is an alias. */
3364 #if defined (__stub_connect) || defined (__stub___connect)
3372 if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3374 eval "ac_cv_func_connect=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 eval "ac_cv_func_connect=no"
3384 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3388 echo "$ac_t""no" 1>&6
3390 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3391 echo "configure:3392: checking for connect in -lsocket" >&5
3392 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 ac_save_LIBS="$LIBS"
3397 LIBS="-lsocket $LIBS"
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3410 if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412 eval "ac_cv_lib_$ac_lib_var=yes"
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3417 eval "ac_cv_lib_$ac_lib_var=no"
3420 LIBS="$ac_save_LIBS"
3423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3424 echo "$ac_t""yes" 1>&6
3425 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3426 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3429 echo "$ac_t""no" 1>&6
3434 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3435 echo "configure:3436: checking for gethostbyname" >&5
3436 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 /* System header to define __stub macros and hopefully few prototypes,
3443 which can conflict with char gethostbyname(); below. */
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3448 char gethostbyname();
3452 /* The GNU C library defines this for functions which it implements
3453 to always fail with ENOSYS. Some functions are actually named
3454 something starting with __ and the normal name is an alias. */
3455 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3465 eval "ac_cv_func_gethostbyname=yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3470 eval "ac_cv_func_gethostbyname=no"
3475 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3479 echo "$ac_t""no" 1>&6
3481 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3482 echo "configure:3483: checking for gethostbyname in -lnsl" >&5
3483 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 ac_save_LIBS="$LIBS"
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 /* Override any gcc2 internal prototype to avoid an error. */
3493 /* We use char because int might match the return type of a gcc2
3494 builtin and then its argument prototype would still apply. */
3495 char gethostbyname();
3501 if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3503 eval "ac_cv_lib_$ac_lib_var=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 eval "ac_cv_lib_$ac_lib_var=no"
3511 LIBS="$ac_save_LIBS"
3514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3515 echo "$ac_t""yes" 1>&6
3516 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3518 echo "$ac_t""no" 1>&6
3524 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3525 echo "configure:3526: checking for gethostbyname" >&5
3526 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 /* System header to define __stub macros and hopefully few prototypes,
3533 which can conflict with char gethostbyname(); below. */
3535 /* Override any gcc2 internal prototype to avoid an error. */
3536 /* We use char because int might match the return type of a gcc2
3537 builtin and then its argument prototype would still apply. */
3538 char gethostbyname();
3542 /* The GNU C library defines this for functions which it implements
3543 to always fail with ENOSYS. Some functions are actually named
3544 something starting with __ and the normal name is an alias. */
3545 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3553 if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3555 eval "ac_cv_func_gethostbyname=yes"
3557 echo "configure: failed program was:" >&5
3558 cat conftest.$ac_ext >&5
3560 eval "ac_cv_func_gethostbyname=no"
3565 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3569 echo "$ac_t""no" 1>&6
3571 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3572 echo "configure:3573: checking for gethostbyname in -lbind" >&5
3573 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3577 ac_save_LIBS="$LIBS"
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 /* Override any gcc2 internal prototype to avoid an error. */
3583 /* We use char because int might match the return type of a gcc2
3584 builtin and then its argument prototype would still apply. */
3585 char gethostbyname();
3591 if { (eval echo configure:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3593 eval "ac_cv_lib_$ac_lib_var=yes"
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3598 eval "ac_cv_lib_$ac_lib_var=no"
3601 LIBS="$ac_save_LIBS"
3604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3605 echo "$ac_t""yes" 1>&6
3606 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3608 echo "$ac_t""no" 1>&6
3614 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3615 echo "configure:3616: checking for nanosleep" >&5
3616 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 /* System header to define __stub macros and hopefully few prototypes,
3623 which can conflict with char nanosleep(); below. */
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3632 /* The GNU C library defines this for functions which it implements
3633 to always fail with ENOSYS. Some functions are actually named
3634 something starting with __ and the normal name is an alias. */
3635 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3645 eval "ac_cv_func_nanosleep=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3650 eval "ac_cv_func_nanosleep=no"
3655 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3656 echo "$ac_t""yes" 1>&6
3659 echo "$ac_t""no" 1>&6
3661 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3662 echo "configure:3663: checking for nanosleep in -lrt" >&5
3663 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 ac_save_LIBS="$LIBS"
3669 cat > conftest.$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3672 /* Override any gcc2 internal prototype to avoid an error. */
3673 /* We use char because int might match the return type of a gcc2
3674 builtin and then its argument prototype would still apply. */
3681 if { (eval echo configure:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3683 eval "ac_cv_lib_$ac_lib_var=yes"
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 eval "ac_cv_lib_$ac_lib_var=no"
3691 LIBS="$ac_save_LIBS"
3694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3696 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3698 echo "$ac_t""no" 1>&6
3700 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3701 echo "configure:3702: checking for nanosleep in -lposix4" >&5
3702 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 ac_save_LIBS="$LIBS"
3707 LIBS="-lposix4 $LIBS"
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 /* Override any gcc2 internal prototype to avoid an error. */
3712 /* We use char because int might match the return type of a gcc2
3713 builtin and then its argument prototype would still apply. */
3720 if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3722 eval "ac_cv_lib_$ac_lib_var=yes"
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3727 eval "ac_cv_lib_$ac_lib_var=no"
3730 LIBS="$ac_save_LIBS"
3733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3734 echo "$ac_t""yes" 1>&6
3735 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3737 echo "$ac_t""no" 1>&6
3746 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3747 echo "configure:3748: checking for inet_aton" >&5
3748 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3751 cat > conftest.$ac_ext <<EOF
3752 #line 3753 "configure"
3753 #include "confdefs.h"
3754 /* System header to define __stub macros and hopefully few prototypes,
3755 which can conflict with char inet_aton(); below. */
3757 /* Override any gcc2 internal prototype to avoid an error. */
3758 /* We use char because int might match the return type of a gcc2
3759 builtin and then its argument prototype would still apply. */
3764 /* The GNU C library defines this for functions which it implements
3765 to always fail with ENOSYS. Some functions are actually named
3766 something starting with __ and the normal name is an alias. */
3767 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3775 if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3777 eval "ac_cv_func_inet_aton=yes"
3779 echo "configure: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3782 eval "ac_cv_func_inet_aton=no"
3787 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3788 echo "$ac_t""yes" 1>&6
3791 echo "$ac_t""no" 1>&6
3793 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3794 echo "configure:3795: checking for inet_aton in -lresolv" >&5
3795 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3799 ac_save_LIBS="$LIBS"
3800 LIBS="-lresolv $LIBS"
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* Override any gcc2 internal prototype to avoid an error. */
3805 /* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3813 if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3815 eval "ac_cv_lib_$ac_lib_var=yes"
3817 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3820 eval "ac_cv_lib_$ac_lib_var=no"
3823 LIBS="$ac_save_LIBS"
3826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3827 echo "$ac_t""yes" 1>&6
3828 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3830 echo "$ac_t""no" 1>&6
3836 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3837 echo "configure:3838: checking for textdomain" >&5
3838 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3841 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 /* System header to define __stub macros and hopefully few prototypes,
3845 which can conflict with char textdomain(); below. */
3847 /* Override any gcc2 internal prototype to avoid an error. */
3848 /* We use char because int might match the return type of a gcc2
3849 builtin and then its argument prototype would still apply. */
3854 /* The GNU C library defines this for functions which it implements
3855 to always fail with ENOSYS. Some functions are actually named
3856 something starting with __ and the normal name is an alias. */
3857 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3865 if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3867 eval "ac_cv_func_textdomain=yes"
3869 echo "configure: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3872 eval "ac_cv_func_textdomain=no"
3877 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3878 echo "$ac_t""yes" 1>&6
3881 echo "$ac_t""no" 1>&6
3883 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3884 echo "configure:3885: checking for textdomain in -lintl" >&5
3885 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 ac_save_LIBS="$LIBS"
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3894 /* Override any gcc2 internal prototype to avoid an error. */
3895 /* We use char because int might match the return type of a gcc2
3896 builtin and then its argument prototype would still apply. */
3903 if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3905 eval "ac_cv_lib_$ac_lib_var=yes"
3907 echo "configure: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3910 eval "ac_cv_lib_$ac_lib_var=no"
3913 LIBS="$ac_save_LIBS"
3916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3917 echo "$ac_t""yes" 1>&6
3918 save_LDFLAGS="${save_LDFLAGS} -lintl"
3920 echo "$ac_t""no" 1>&6
3928 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3929 echo "configure:3930: checking for getopt_long" >&5
3930 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3933 cat > conftest.$ac_ext <<EOF
3934 #line 3935 "configure"
3935 #include "confdefs.h"
3936 /* System header to define __stub macros and hopefully few prototypes,
3937 which can conflict with char getopt_long(); below. */
3939 /* Override any gcc2 internal prototype to avoid an error. */
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3946 /* The GNU C library defines this for functions which it implements
3947 to always fail with ENOSYS. Some functions are actually named
3948 something starting with __ and the normal name is an alias. */
3949 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3957 if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3959 eval "ac_cv_func_getopt_long=yes"
3961 echo "configure: failed program was:" >&5
3962 cat conftest.$ac_ext >&5
3964 eval "ac_cv_func_getopt_long=no"
3969 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3970 echo "$ac_t""yes" 1>&6
3971 cat >> confdefs.h <<\EOF
3972 #define HAVE_GETOPT_LONG 1
3976 echo "$ac_t""no" 1>&6
3977 # FreeBSD has a gnugetopt library for this:
3978 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3979 echo "configure:3980: checking for getopt_long in -lgnugetopt" >&5
3980 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 ac_save_LIBS="$LIBS"
3985 LIBS="-lgnugetopt $LIBS"
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 /* We use char because int might match the return type of a gcc2
3991 builtin and then its argument prototype would still apply. */
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000 eval "ac_cv_lib_$ac_lib_var=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 eval "ac_cv_lib_$ac_lib_var=no"
4008 LIBS="$ac_save_LIBS"
4011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4012 echo "$ac_t""yes" 1>&6
4013 cat >> confdefs.h <<\EOF
4014 #define HAVE_GETOPT_LONG 1
4016 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4018 echo "$ac_t""no" 1>&6
4025 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4026 echo "configure:4027: checking return type of signal handlers" >&5
4027 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4030 cat > conftest.$ac_ext <<EOF
4031 #line 4032 "configure"
4032 #include "confdefs.h"
4033 #include <sys/types.h>
4039 extern "C" void (*signal (int, void (*)(int)))(int);
4041 void (*signal ()) ();
4048 if { (eval echo configure:4049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4050 ac_cv_type_signal=void
4052 echo "configure: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4055 ac_cv_type_signal=int
4060 echo "$ac_t""$ac_cv_type_signal" 1>&6
4061 cat >> confdefs.h <<EOF
4062 #define RETSIGTYPE $ac_cv_type_signal
4066 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4067 echo "configure:4068: checking for dlopen in -ldl" >&5
4068 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 ac_save_LIBS="$LIBS"
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 /* Override any gcc2 internal prototype to avoid an error. */
4078 /* We use char because int might match the return type of a gcc2
4079 builtin and then its argument prototype would still apply. */
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4088 eval "ac_cv_lib_$ac_lib_var=yes"
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4093 eval "ac_cv_lib_$ac_lib_var=no"
4096 LIBS="$ac_save_LIBS"
4099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4100 echo "$ac_t""yes" 1>&6
4101 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4103 echo "$ac_t""no" 1>&6
4106 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4107 echo "configure:4108: checking for cos in -lm" >&5
4108 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4112 ac_save_LIBS="$LIBS"
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 /* Override any gcc2 internal prototype to avoid an error. */
4118 /* We use char because int might match the return type of a gcc2
4119 builtin and then its argument prototype would still apply. */
4126 if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4128 eval "ac_cv_lib_$ac_lib_var=yes"
4130 echo "configure: failed program was:" >&5
4131 cat conftest.$ac_ext >&5
4133 eval "ac_cv_lib_$ac_lib_var=no"
4136 LIBS="$ac_save_LIBS"
4139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4140 echo "$ac_t""yes" 1>&6
4141 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4142 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4144 echo "$ac_t""no" 1>&6
4147 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4148 echo "configure:4149: checking for pow in -lm" >&5
4149 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4153 ac_save_LIBS="$LIBS"
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4158 /* Override any gcc2 internal prototype to avoid an error. */
4159 /* We use char because int might match the return type of a gcc2
4160 builtin and then its argument prototype would still apply. */
4167 if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4169 eval "ac_cv_lib_$ac_lib_var=yes"
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4174 eval "ac_cv_lib_$ac_lib_var=no"
4177 LIBS="$ac_save_LIBS"
4180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4181 echo "$ac_t""yes" 1>&6
4182 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4183 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4184 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4185 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4188 echo "$ac_t""no" 1>&6
4193 if test "x${THREAD_LIB}" = xerror; then
4194 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4195 echo "configure:4196: checking for pthread_attr_init in -lpthread" >&5
4196 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 ac_save_LIBS="$LIBS"
4201 LIBS="-lpthread $LIBS"
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4205 /* Override any gcc2 internal prototype to avoid an error. */
4206 /* We use char because int might match the return type of a gcc2
4207 builtin and then its argument prototype would still apply. */
4208 char pthread_attr_init();
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4216 eval "ac_cv_lib_$ac_lib_var=yes"
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 eval "ac_cv_lib_$ac_lib_var=no"
4224 LIBS="$ac_save_LIBS"
4227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4228 echo "$ac_t""yes" 1>&6
4229 THREAD_LIB="-lpthread"
4231 echo "$ac_t""no" 1>&6
4235 if test "x${THREAD_LIB}" = xerror; then
4236 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4237 echo "configure:4238: checking for pthread_attr_init in -lpthreads" >&5
4238 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4242 ac_save_LIBS="$LIBS"
4243 LIBS="-lpthreads $LIBS"
4244 cat > conftest.$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4247 /* Override any gcc2 internal prototype to avoid an error. */
4248 /* We use char because int might match the return type of a gcc2
4249 builtin and then its argument prototype would still apply. */
4250 char pthread_attr_init();
4256 if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4258 eval "ac_cv_lib_$ac_lib_var=yes"
4260 echo "configure: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4263 eval "ac_cv_lib_$ac_lib_var=no"
4266 LIBS="$ac_save_LIBS"
4269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4270 echo "$ac_t""yes" 1>&6
4271 THREAD_LIB="-lpthreads"
4273 echo "$ac_t""no" 1>&6
4277 if test "x${THREAD_LIB}" = xerror; then
4278 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4279 echo "configure:4280: checking for pthread_attr_init in -lc_r" >&5
4280 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 ac_save_LIBS="$LIBS"
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4289 /* Override any gcc2 internal prototype to avoid an error. */
4290 /* We use char because int might match the return type of a gcc2
4291 builtin and then its argument prototype would still apply. */
4292 char pthread_attr_init();
4298 if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4300 eval "ac_cv_lib_$ac_lib_var=yes"
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4305 eval "ac_cv_lib_$ac_lib_var=no"
4308 LIBS="$ac_save_LIBS"
4311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4312 echo "$ac_t""yes" 1>&6
4315 echo "$ac_t""no" 1>&6
4319 if test "x${THREAD_LIB}" = xerror; then
4320 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4321 echo "configure:4322: checking for pthread_attr_init" >&5
4322 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 /* System header to define __stub macros and hopefully few prototypes,
4329 which can conflict with char pthread_attr_init(); below. */
4331 /* Override any gcc2 internal prototype to avoid an error. */
4332 /* We use char because int might match the return type of a gcc2
4333 builtin and then its argument prototype would still apply. */
4334 char pthread_attr_init();
4338 /* The GNU C library defines this for functions which it implements
4339 to always fail with ENOSYS. Some functions are actually named
4340 something starting with __ and the normal name is an alias. */
4341 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4344 pthread_attr_init();
4349 if { (eval echo configure:4350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4351 eval "ac_cv_func_pthread_attr_init=yes"
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4356 eval "ac_cv_func_pthread_attr_init=no"
4361 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4362 echo "$ac_t""yes" 1>&6
4365 echo "$ac_t""no" 1>&6
4371 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4372 echo "configure:4373: checking for cthread_fork in -lthreads" >&5
4373 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 ac_save_LIBS="$LIBS"
4378 LIBS="-lthreads $LIBS"
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4382 /* Override any gcc2 internal prototype to avoid an error. */
4383 /* We use char because int might match the return type of a gcc2
4384 builtin and then its argument prototype would still apply. */
4385 char cthread_fork();
4391 if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4393 eval "ac_cv_lib_$ac_lib_var=yes"
4395 echo "configure: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4398 eval "ac_cv_lib_$ac_lib_var=no"
4401 LIBS="$ac_save_LIBS"
4404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6
4406 THREAD_LIB="-lthreads"
4408 echo "$ac_t""no" 1>&6
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 #include <pthread.h>
4417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418 egrep "pthread_cond_t" >/dev/null 2>&1; then
4421 cat >> confdefs.h <<\EOF
4422 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <strings.h>
4433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4434 egrep "strncasecmp" >/dev/null 2>&1; then
4437 cat >> confdefs.h <<\EOF
4438 #define STRNCASECMP_IN_STRINGS_H 1
4445 for ac_hdr in getopt.h strings.h
4447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_hdr" >&5
4450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4459 { (eval echo configure:4460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4461 if test -z "$ac_err"; then
4463 eval "ac_cv_header_$ac_safe=yes"
4466 echo "configure: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4469 eval "ac_cv_header_$ac_safe=no"
4473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4476 cat >> confdefs.h <<EOF
4477 #define $ac_tr_hdr 1
4481 echo "$ac_t""no" 1>&6
4485 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4489 echo "configure:4490: checking for $ac_hdr" >&5
4490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4499 { (eval echo configure:4500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4501 if test -z "$ac_err"; then
4503 eval "ac_cv_header_$ac_safe=yes"
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4509 eval "ac_cv_header_$ac_safe=no"
4513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4516 cat >> confdefs.h <<EOF
4517 #define $ac_tr_hdr 1
4521 echo "$ac_t""no" 1>&6
4525 for ac_hdr in dlfcn.h image.h
4527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4529 echo "configure:4530: checking for $ac_hdr" >&5
4530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4539 { (eval echo configure:4540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4541 if test -z "$ac_err"; then
4543 eval "ac_cv_header_$ac_safe=yes"
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4549 eval "ac_cv_header_$ac_safe=no"
4553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4554 echo "$ac_t""yes" 1>&6
4555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4556 cat >> confdefs.h <<EOF
4557 #define $ac_tr_hdr 1
4561 echo "$ac_t""no" 1>&6
4565 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4567 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4569 echo "configure:4570: checking for $ac_hdr" >&5
4570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4571 echo $ac_n "(cached) $ac_c" 1>&6
4573 cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4579 { (eval echo configure:4580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4581 if test -z "$ac_err"; then
4583 eval "ac_cv_header_$ac_safe=yes"
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4589 eval "ac_cv_header_$ac_safe=no"
4593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4594 echo "$ac_t""yes" 1>&6
4595 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4596 cat >> confdefs.h <<EOF
4597 #define $ac_tr_hdr 1
4601 echo "$ac_t""no" 1>&6
4605 for ac_hdr in machine/param.h sys/shm.h
4607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_hdr" >&5
4610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4619 { (eval echo configure:4620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4621 if test -z "$ac_err"; then
4623 eval "ac_cv_header_$ac_safe=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 eval "ac_cv_header_$ac_safe=no"
4633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4636 cat >> confdefs.h <<EOF
4637 #define $ac_tr_hdr 1
4641 echo "$ac_t""no" 1>&6
4645 for ac_hdr in linux/version.h
4647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_hdr" >&5
4650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4659 { (eval echo configure:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4661 if test -z "$ac_err"; then
4663 eval "ac_cv_header_$ac_safe=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4669 eval "ac_cv_header_$ac_safe=no"
4673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4676 cat >> confdefs.h <<EOF
4677 #define $ac_tr_hdr 1
4681 echo "$ac_t""no" 1>&6
4686 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4687 echo "configure:4688: checking whether time.h and sys/time.h may both be included" >&5
4688 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694 #include <sys/types.h>
4695 #include <sys/time.h>
4701 if { (eval echo configure:4702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4703 ac_cv_header_time=yes
4705 echo "configure: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4708 ac_cv_header_time=no
4713 echo "$ac_t""$ac_cv_header_time" 1>&6
4714 if test $ac_cv_header_time = yes; then
4715 cat >> confdefs.h <<\EOF
4716 #define TIME_WITH_SYS_TIME 1
4722 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4726 echo "configure:4727: checking for $ac_hdr" >&5
4727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4728 echo $ac_n "(cached) $ac_c" 1>&6
4730 cat > conftest.$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4736 { (eval echo configure:4737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4738 if test -z "$ac_err"; then
4740 eval "ac_cv_header_$ac_safe=yes"
4743 echo "configure: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4746 eval "ac_cv_header_$ac_safe=no"
4750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4751 echo "$ac_t""yes" 1>&6
4752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4753 cat >> confdefs.h <<EOF
4754 #define $ac_tr_hdr 1
4758 echo "$ac_t""no" 1>&6
4763 if test x$SYS != xmingw32
4765 if test x$x_includes = xNONE; then
4766 x_includes=/usr/X11R6/include
4768 if test x$x_libraries = xNONE; then
4769 x_libraries=/usr/X11R6/lib
4771 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4772 for ac_hdr in X11/extensions/dpms.h
4774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4776 echo "configure:4777: checking for $ac_hdr" >&5
4777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4786 { (eval echo configure:4787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4788 if test -z "$ac_err"; then
4790 eval "ac_cv_header_$ac_safe=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_header_$ac_safe=no"
4800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4803 cat >> confdefs.h <<EOF
4804 #define $ac_tr_hdr 1
4807 cat > conftest.$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4810 #include <X11/extensions/dpms.h>
4812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4813 egrep "DPMSInfo" >/dev/null 2>&1; then
4816 cat >> confdefs.h <<\EOF
4817 #define DPMSINFO_IN_DPMS_H 1
4826 echo "$ac_t""no" 1>&6
4830 CPPFLAGS="$save_CPPFLAGS"
4833 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4834 echo "configure:4835: checking for ntohl in sys/param.h" >&5
4835 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4838 CFLAGS="${save_CFLAGS} -Wall -Werror"
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 #include <sys/param.h>
4844 void foo() { int meuh; ntohl(meuh); }
4847 if { (eval echo configure:4848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4849 ac_cv_c_ntohl_sys_param_h=yes
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4854 ac_cv_c_ntohl_sys_param_h=no
4859 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4860 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4861 cat >> confdefs.h <<\EOF
4862 #define NTOHL_IN_SYS_PARAM_H 1
4867 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4868 echo "configure:4869: checking if \$CC accepts -finline-limit" >&5
4869 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4881 if { (eval echo configure:4882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4883 ac_cv_c_inline_limit=yes
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 ac_cv_c_inline_limit=no
4893 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4894 if test x"$ac_cv_c_inline_limit" != x"no"; then
4895 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4898 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4899 echo "configure:4900: checking if \$CC accepts -Wall -Winline" >&5
4900 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4903 CFLAGS="${save_CFLAGS} -Wall -Winline"
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4912 if { (eval echo configure:4913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4914 ac_cv_c_Wall_Winline=yes
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4919 ac_cv_c_Wall_Winline=no
4924 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4925 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4926 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4928 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4929 echo "configure:4930: checking if \$CC accepts -wall -winline" >&5
4930 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4933 CFLAGS="${save_CFLAGS} -wall -winline"
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4942 if { (eval echo configure:4943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4944 ac_cv_c_wall_winline=yes
4946 echo "configure: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4949 ac_cv_c_wall_winline=no
4954 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4955 if test x"$ac_cv_c_wall_winline" != x"no"; then
4956 save_CFLAGS="${save_CFLAGS} -wall -winline"
4960 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4961 echo "configure:4962: checking if \$CC accepts -pipe" >&5
4962 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 CFLAGS="${save_CFLAGS} -pipe"
4966 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4974 if { (eval echo configure:4975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4986 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4987 if test x"$ac_cv_c_pipe" != x"no"; then
4988 save_CFLAGS="${save_CFLAGS} -pipe"
4991 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4992 echo "configure:4993: checking if \$CC accepts -O3" >&5
4993 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 CFLAGS="${save_CFLAGS} -O3"
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5005 if { (eval echo configure:5006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5009 echo "configure: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5017 echo "$ac_t""$ac_cv_c_o3" 1>&6
5018 if test x"$ac_cv_c_o3" != x"no"; then
5019 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5021 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5022 echo "configure:5023: checking if \$CC accepts -O2" >&5
5023 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5024 echo $ac_n "(cached) $ac_c" 1>&6
5026 CFLAGS="${save_CFLAGS} -O2"
5027 cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure"
5029 #include "confdefs.h"
5035 if { (eval echo configure:5036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5047 echo "$ac_t""$ac_cv_c_o2" 1>&6
5048 if test x"$ac_cv_c_o2" != x"no"; then
5049 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5051 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5052 echo "configure:5053: checking if \$CC accepts -O" >&5
5053 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5056 CFLAGS="${save_CFLAGS} -O"
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5065 if { (eval echo configure:5066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5069 echo "configure: failed program was:" >&5
5070 cat conftest.$ac_ext >&5
5077 echo "$ac_t""$ac_cv_c_o" 1>&6
5078 if test x"$ac_cv_c_o" != x"no"; then
5079 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5084 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5085 echo "configure:5086: checking if \$CC accepts -ffast-math" >&5
5086 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5087 echo $ac_n "(cached) $ac_c" 1>&6
5089 CFLAGS="${save_CFLAGS} -ffast-math"
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5098 if { (eval echo configure:5099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5100 ac_cv_c_fast_math=yes
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 ac_cv_c_fast_math=no
5110 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5111 if test x"$ac_cv_c_fast_math" != x"no"; then
5112 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5115 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5116 echo "configure:5117: checking if \$CC accepts -funroll-loops" >&5
5117 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5118 echo $ac_n "(cached) $ac_c" 1>&6
5120 CFLAGS="${save_CFLAGS} -funroll-loops"
5121 cat > conftest.$ac_ext <<EOF
5122 #line 5123 "configure"
5123 #include "confdefs.h"
5129 if { (eval echo configure:5130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5131 ac_cv_c_unroll_loops=yes
5133 echo "configure: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5136 ac_cv_c_unroll_loops=no
5141 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5142 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5143 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5146 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5147 echo "configure:5148: checking if \$CC accepts -fomit-frame-pointer" >&5
5148 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5160 if { (eval echo configure:5161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5162 ac_cv_c_omit_frame_pointer=yes
5164 echo "configure: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5167 ac_cv_c_omit_frame_pointer=no
5172 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5173 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5174 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5177 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5178 echo "configure:5179: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5179 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5191 if { (eval echo configure:5192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5195 echo "configure: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5203 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5204 if test x"$ac_cv_ld_darwin" != x"no"; then
5205 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5208 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5209 echo "configure:5210: checking if \$CC accepts -shared" >&5
5210 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 CFLAGS="${save_CFLAGS} -shared"
5214 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5222 if { (eval echo configure:5223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5224 ac_cv_ld_plugins=yes
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5234 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5235 if test x"$ac_cv_ld_plugins" != x"no"; then
5236 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5239 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5240 echo "configure:5241: checking for variadic cpp macros" >&5
5241 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 CFLAGS="${save_CFLAGS}"
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5249 #define a(b,c...) printf(b,##c)
5251 a("foo");a("%s","bar");a("%s%s","baz","quux");
5254 if { (eval echo configure:5255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5256 ac_cv_cpp_variadic_macros=yes
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5261 ac_cv_cpp_variadic_macros=no
5266 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5267 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5268 cat >> confdefs.h <<\EOF
5269 #define HAVE_VARIADIC_MACROS 1
5274 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5275 echo "configure:5276: checking __attribute__ ((aligned ())) support" >&5
5276 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5279 ac_cv_c_attribute_aligned=0
5280 CFLAGS="${save_CFLAGS} -Werror"
5281 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5287 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5290 if { (eval echo configure:5291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5292 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5294 echo "configure: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5301 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5302 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5303 cat >> confdefs.h <<EOF
5304 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5309 CFLAGS="${save_CFLAGS}"
5310 CPPFLAGS="${save_CPPFLAGS}"
5311 LDFLAGS="${save_LDFLAGS}"
5313 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5314 echo "configure:5315: checking for boolean_t in sys/types.h" >&5
5315 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5321 #include <sys/types.h>
5326 if { (eval echo configure:5327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5328 ac_cv_c_boolean_t_sys_types_h=yes
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 ac_cv_c_boolean_t_sys_types_h=no
5338 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5339 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5340 cat >> confdefs.h <<\EOF
5341 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5346 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5347 echo "configure:5348: checking for boolean_t in pthread.h" >&5
5348 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5354 #include <pthread.h>
5359 if { (eval echo configure:5360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5361 ac_cv_c_boolean_t_pthread_h=yes
5363 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5366 ac_cv_c_boolean_t_pthread_h=no
5371 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5372 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5373 cat >> confdefs.h <<\EOF
5374 #define BOOLEAN_T_IN_PTHREAD_H 1
5379 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5380 echo "configure:5381: checking for boolean_t in cthreads.h" >&5
5381 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 cat > conftest.$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5387 #include <cthreads.h>
5392 if { (eval echo configure:5393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5394 ac_cv_c_boolean_t_cthreads_h=yes
5396 echo "configure: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5399 ac_cv_c_boolean_t_cthreads_h=no
5404 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5405 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5406 cat >> confdefs.h <<\EOF
5407 #define BOOLEAN_T_IN_CTHREADS_H 1
5412 case x"${target_cpu}" in
5417 ARCH="${target_cpu}"
5421 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5422 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone fx_scope"
5424 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5425 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5426 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5427 SSE_MODULES="imdctsse downmixsse"
5428 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5430 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5431 echo "configure:5432: checking if \$CC groks MMX inline assembly" >&5
5432 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5440 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5443 if { (eval echo configure:5444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5445 ac_cv_mmx_inline=yes
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5455 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5456 if test x"$ac_cv_mmx_inline" != x"no"; then
5457 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5460 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5461 echo "configure:5462: checking if \$CC groks MMX EXT inline assembly" >&5
5462 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5470 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5473 if { (eval echo configure:5474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5475 ac_cv_mmxext_inline=yes
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5480 ac_cv_mmxext_inline=no
5485 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5486 if test x"$ac_cv_mmxext_inline" != x"no"; then
5487 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5490 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5491 echo "configure:5492: checking if \$CC groks 3D Now! inline assembly" >&5
5492 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5500 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5503 if { (eval echo configure:5504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5505 ac_cv_3dnow_inline=yes
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5510 ac_cv_3dnow_inline=no
5515 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5516 if test x"$ac_cv_3dnow_inline" != x"no"; then
5517 cat >> confdefs.h <<\EOF
5518 #define CAN_COMPILE_3DNOW 1
5521 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5524 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5525 echo "configure:5526: checking if \$CC groks SSE inline assembly" >&5
5526 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5534 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5537 if { (eval echo configure:5538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5539 ac_cv_sse_inline=yes
5541 echo "configure: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5549 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5550 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5551 cat >> confdefs.h <<\EOF
5552 #define CAN_COMPILE_SSE 1
5555 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5558 # don't try to grok altivec with native mingw32 it doesn't work right now
5559 # we should be able to remove this test with future versions of mingw32
5560 if test x$SYS != xmingw32; then
5561 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5562 echo "configure:5563: checking if \$CC groks Altivec inline assembly" >&5
5563 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5564 echo $ac_n "(cached) $ac_c" 1>&6
5566 cat > conftest.$ac_ext <<EOF
5567 #line 5568 "configure"
5568 #include "confdefs.h"
5571 asm volatile("vperm 0,1,2,3");
5574 if { (eval echo configure:5575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5576 ac_cv_altivec_inline=yes
5578 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5582 CFLAGS="$CFLAGS -Wa,-m7400"
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5588 asm volatile("vperm 0,1,2,3");
5591 if { (eval echo configure:5592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5593 ac_cv_altivec_inline="-Wa,-m7400"
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5598 ac_cv_altivec_inline=no
5607 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5608 if test x"$ac_cv_altivec_inline" != x"no"; then
5609 cat >> confdefs.h <<\EOF
5610 #define CAN_COMPILE_ALTIVEC 1
5613 if test x"$ac_cv_altivec_inline" != x"yes"; then
5614 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5615 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5616 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5617 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5619 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5622 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5623 echo "configure:5624: checking if \$CC groks Altivec C extensions" >&5
5624 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5625 echo $ac_n "(cached) $ac_c" 1>&6
5628 CFLAGS="$CFLAGS -faltivec"
5630 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5635 vec_mtvscr((vector unsigned int)(0));
5638 if { (eval echo configure:5639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5640 ac_cv_c_altivec=-faltivec
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5647 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5653 vec_mtvscr((vector unsigned int)(0));
5656 if { (eval echo configure:5657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5658 ac_cv_c_altivec="-fvec"
5660 echo "configure: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5673 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5674 if test x"$ac_cv_c_altivec" != x"no"; then
5675 cat >> confdefs.h <<\EOF
5676 #define CAN_COMPILE_C_ALTIVEC 1
5679 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5680 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5681 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5682 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5683 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5686 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5687 echo "configure:5688: checking if linker needs -framework vecLib" >&5
5688 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5691 save_LDFLAGS=$LDFLAGS
5692 LDFLAGS="$LDFLAGS -framework vecLib"
5693 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5701 if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703 ac_cv_ld_altivec=yes
5705 echo "configure: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5711 LDFLAGS=$save_LDFLAGS
5715 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5716 if test x"$ac_cv_ld_altivec" != x"no"; then
5717 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5718 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5719 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5720 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5725 # Check whether --with- or --without- was given.
5726 if test "${with_+set}" = set; then
5731 # Check whether --with- or --without- was given.
5732 if test "${with_+set}" = set; then
5738 # Check whether --with-tuning or --without-tuning was given.
5739 if test "${with_tuning+set}" = set; then
5740 withval="$with_tuning"
5744 if test "x$with_tuning" != "x"; then
5745 TUNING="$with_tuning"
5747 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5749 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5753 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5756 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5759 # Check whether --enable-optimizations or --disable-optimizations was given.
5760 if test "${enable_optimizations+set}" = set; then
5761 enableval="$enable_optimizations"
5762 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5768 # Check whether --enable-altivec or --disable-altivec was given.
5769 if test "${enable_altivec+set}" = set; then
5770 enableval="$enable_altivec"
5771 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5772 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5774 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5775 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5780 # Check whether --enable-debug or --disable-debug was given.
5781 if test "${enable_debug+set}" = set; then
5782 enableval="$enable_debug"
5783 if test x$enable_debug = xyes; then DEBUG=1; fi
5788 # Check whether --enable-release or --disable-release was given.
5789 if test "${enable_release+set}" = set; then
5790 enableval="$enable_release"
5791 if test x$enable_release = xyes; then RELEASE=1; fi
5793 VERSION="${VERSION}_`date +%Y-%m-%d`"
5798 # Check whether --with- or --without- was given.
5799 if test "${with_+set}" = set; then
5805 # Check whether --enable-dvd or --disable-dvd was given.
5806 if test "${enable_dvd+set}" = set; then
5807 enableval="$enable_dvd"
5811 if test "x$enable_dvd" != "xno"
5813 # Check whether --with-dvdcss or --without-dvdcss was given.
5814 if test "${with_dvdcss+set}" = set; then
5815 withval="$with_dvdcss"
5819 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5820 if test "${with_dvdcss_tree+set}" = set; then
5821 withval="$with_dvdcss_tree"
5825 case "x$with_dvdcss" in
5827 if test "x$with_dvdcss_tree" = x
5829 for ac_hdr in dvdcss/dvdcss.h
5831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5833 echo "configure:5834: checking for $ac_hdr" >&5
5834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5843 { (eval echo configure:5844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5845 if test -z "$ac_err"; then
5847 eval "ac_cv_header_$ac_safe=yes"
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 eval "ac_cv_header_$ac_safe=no"
5857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5858 echo "$ac_t""yes" 1>&6
5859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5860 cat >> confdefs.h <<EOF
5861 #define $ac_tr_hdr 1
5863 PLUGINS="${PLUGINS} dvd"
5864 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5866 echo "$ac_t""no" 1>&6
5867 echo "configure: warning: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." 1>&2
5868 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5873 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5874 echo "configure:5875: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5875 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5876 if test "x$real_dvdcss_tree" = x
5878 echo "$ac_t""no" 1>&6
5879 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5881 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5883 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5884 BUILTINS="${BUILTINS} dvd"
5885 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5886 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5888 echo "$ac_t""no" 1>&6
5889 { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
5894 PLUGINS="${PLUGINS} dvd"
5895 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5896 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5899 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5900 echo "configure:5901: checking for dvdcss headers in ${with_dvdcss}" >&5
5901 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5903 echo "$ac_t""yes" 1>&6
5904 PLUGINS="${PLUGINS} dvd"
5905 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5906 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5908 echo "$ac_t""no" 1>&6
5909 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5915 # Check whether --enable-dvdread or --disable-dvdread was given.
5916 if test "${enable_dvdread+set}" = set; then
5917 enableval="$enable_dvdread"
5921 if test "x$enable_dvdread" != "xno"
5923 # Check whether --with-dvdread or --without-dvdread was given.
5924 if test "${with_dvdread+set}" = set; then
5925 withval="$with_dvdread"
5929 if test "x$with_dvdread" = x
5934 test_LDFLAGS="-L${with_dvdread}/lib"
5935 test_CFLAGS="-I${with_dvdread}/include"
5937 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5938 for ac_hdr in dvdread/dvd_reader.h
5940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5942 echo "configure:5943: checking for $ac_hdr" >&5
5943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5946 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5952 { (eval echo configure:5953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5954 if test -z "$ac_err"; then
5956 eval "ac_cv_header_$ac_safe=yes"
5959 echo "configure: failed program was:" >&5
5960 cat conftest.$ac_ext >&5
5962 eval "ac_cv_header_$ac_safe=no"
5966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5967 echo "$ac_t""yes" 1>&6
5968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5969 cat >> confdefs.h <<EOF
5970 #define $ac_tr_hdr 1
5973 cat > conftest.$ac_ext <<EOF
5974 #line 5975 "configure"
5975 #include "confdefs.h"
5976 #include <dvdread/dvd_reader.h>
5978 void foo() { int i=DVD_VIDEO_LB_LEN; }
5981 if { (eval echo configure:5982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5984 PLUGINS="${PLUGINS} dvdread"
5985 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
5986 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
5989 echo "configure: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5993 if test "x$enable_dvdread" != x
5995 { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; }
6002 echo "$ac_t""no" 1>&6
6003 if test "x$enable_dvdread" != x
6005 if test "x$with_dvdread" != x
6007 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6009 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6016 CPPFLAGS="$save_CPPFLAGS"
6019 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6020 if test "${enable_dvbpsi+set}" = set; then
6021 enableval="$enable_dvbpsi"
6025 if test "x$enable_dvbpsi" != "xno"
6027 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6028 if test "${with_dvbpsi+set}" = set; then
6029 withval="$with_dvbpsi"
6033 if test "x$with_dvbpsi" = x
6038 test_LDFLAGS="-L${with_dvbpsi}/lib"
6039 test_CFLAGS="-I${with_dvbpsi}/include"
6041 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6042 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6043 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6044 echo "configure:6045: checking for dvbpsi/dr.h" >&5
6045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6046 echo $ac_n "(cached) $ac_c" 1>&6
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051 #include <dvbpsi/dr.h>
6053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054 { (eval echo configure:6055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6056 if test -z "$ac_err"; then
6058 eval "ac_cv_header_$ac_safe=yes"
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6064 eval "ac_cv_header_$ac_safe=no"
6068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
6071 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6072 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6073 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6076 echo "$ac_t""no" 1>&6
6078 if test "x$enable_dvbpsi" != x
6080 { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" 1>&2; exit 1; }
6085 CPPFLAGS="$save_CPPFLAGS"
6088 # Check whether --enable-vcd or --disable-vcd was given.
6089 if test "${enable_vcd+set}" = set; then
6090 enableval="$enable_vcd"
6095 if test x$enable_vcd != xno
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 #include <linux/cdrom.h>
6102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6103 egrep "cdrom_msf0" >/dev/null 2>&1; then
6106 PLUGINS="${PLUGINS} vcd"
6112 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure"
6114 #include "confdefs.h"
6115 #include <sys/cdio.h>
6117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6118 egrep "ioc_toc_header " >/dev/null 2>&1; then
6121 PLUGINS="${PLUGINS} vcd"
6122 cat >> confdefs.h <<\EOF
6123 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6131 if test "x${SYS}" = "xbsdi"
6133 PLUGINS="${PLUGINS} vcd"
6136 if test "x${SYS}" = "xdarwin"
6138 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6139 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6143 # Check whether --enable-satellite or --disable-satellite was given.
6144 if test "${enable_satellite+set}" = set; then
6145 enableval="$enable_satellite"
6146 if test x$enable_satellite = xyes
6148 PLUGINS="${PLUGINS} satellite"
6153 if test x$SYS != xnto
6155 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6156 echo "configure:6157: checking for inet_pton" >&5
6157 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure"
6162 #include "confdefs.h"
6163 /* System header to define __stub macros and hopefully few prototypes,
6164 which can conflict with char inet_pton(); below. */
6166 /* Override any gcc2 internal prototype to avoid an error. */
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6173 /* The GNU C library defines this for functions which it implements
6174 to always fail with ENOSYS. Some functions are actually named
6175 something starting with __ and the normal name is an alias. */
6176 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6186 eval "ac_cv_func_inet_pton=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 eval "ac_cv_func_inet_pton=no"
6196 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6197 echo "$ac_t""yes" 1>&6
6198 PLUGINS="${PLUGINS} ipv6"
6200 echo "$ac_t""no" 1>&6
6205 # Check whether --enable-avi or --disable-avi was given.
6206 if test "${enable_avi+set}" = set; then
6207 enableval="$enable_avi"
6211 if test x$enable_avi != xno
6213 PLUGINS="${PLUGINS} avi"
6217 # Check whether --with- or --without- was given.
6218 if test "${with_+set}" = set; then
6224 # Check whether --enable-mad or --disable-mad was given.
6225 if test "${enable_mad+set}" = set; then
6226 enableval="$enable_mad"
6230 if test x$enable_mad = xyes
6232 # Check whether --with-mad or --without-mad was given.
6233 if test "${with_mad+set}" = set; then
6238 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6240 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6241 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6244 # Check whether --with-mad-tree or --without-mad-tree was given.
6245 if test "${with_mad_tree+set}" = set; then
6246 withval="$with_mad_tree"
6250 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6252 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6253 if test "x$real_mad_tree" = x
6255 echo "$ac_t""no" 1>&6
6256 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6258 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6259 echo "configure:6260: checking for mad.h in ${real_mad_tree}/libmad" >&5
6260 if test -f ${real_mad_tree}/libmad/mad.h
6262 echo "$ac_t""yes" 1>&6
6263 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6264 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6265 save_LDFLAGS=$LDFLAGS
6266 LDFLAGS=$mad_LDFLAGS
6267 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6268 echo "configure:6269: checking for mad_bit_init in -lmad" >&5
6269 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6273 ac_save_LIBS="$LIBS"
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 /* Override any gcc2 internal prototype to avoid an error. */
6279 /* We use char because int might match the return type of a gcc2
6280 builtin and then its argument prototype would still apply. */
6281 char mad_bit_init();
6287 if { (eval echo configure:6288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6289 eval "ac_cv_lib_$ac_lib_var=yes"
6291 echo "configure: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6294 eval "ac_cv_lib_$ac_lib_var=no"
6297 LIBS="$ac_save_LIBS"
6300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6301 echo "$ac_t""yes" 1>&6
6303 BUILTINS="${BUILTINS} mad"
6304 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6307 echo "$ac_t""no" 1>&6
6308 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6312 LDFLAGS=$save_LDFLAGS
6314 echo "$ac_t""no" 1>&6
6315 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6319 save_LDFLAGS=$LDFLAGS
6320 CFLAGS="$CFLAGS $mad_CFLAGS"
6321 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_hdr" >&5
6327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6330 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6336 { (eval echo configure:6337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6338 if test -z "$ac_err"; then
6340 eval "ac_cv_header_$ac_safe=yes"
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 eval "ac_cv_header_$ac_safe=no"
6350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6353 cat >> confdefs.h <<EOF
6354 #define $ac_tr_hdr 1
6358 echo "$ac_t""no" 1>&6
6359 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6363 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6364 echo "configure:6365: checking for mad_bit_init in -lmad" >&5
6365 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6369 ac_save_LIBS="$LIBS"
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 /* Override any gcc2 internal prototype to avoid an error. */
6375 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */
6377 char mad_bit_init();
6383 if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6385 eval "ac_cv_lib_$ac_lib_var=yes"
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6390 eval "ac_cv_lib_$ac_lib_var=no"
6393 LIBS="$ac_save_LIBS"
6396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6397 echo "$ac_t""yes" 1>&6
6398 PLUGINS="${PLUGINS} mad"
6399 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6401 echo "$ac_t""no" 1>&6
6402 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6406 LDFLAGS=$save_LDFLAGS
6410 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6411 if test "${enable_ffmpeg+set}" = set; then
6412 enableval="$enable_ffmpeg"
6416 if test "x$enable_ffmpeg" = "xyes"
6418 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6419 if test "${with_ffmpeg_tree+set}" = set; then
6420 withval="$with_ffmpeg_tree"
6424 if test "x$with_ffmpeg_tree" = x
6426 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&2; exit 1; }
6428 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6429 echo "configure:6430: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6430 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6431 if test "x$real_ffmpeg_tree" = x
6433 echo "$ac_t""no" 1>&6
6434 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6436 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6438 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6439 BUILTINS="${BUILTINS} ffmpeg"
6440 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6441 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6443 echo "$ac_t""no" 1>&6
6444 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6450 if test x$SYS = xbeos
6452 PLUGINS="${PLUGINS} beos"
6455 # Check whether --enable-a52 or --disable-a52 was given.
6456 if test "${enable_a52+set}" = set; then
6457 enableval="$enable_a52"
6461 if test "x$enable_a52" != "xno"
6463 # Check whether --with-a52-tree or --without-a52-tree was given.
6464 if test "${with_a52_tree+set}" = set; then
6465 withval="$with_a52_tree"
6469 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6471 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6472 if test "x$real_a52_tree" = x
6474 echo "$ac_t""no" 1>&6
6475 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6477 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6478 echo "configure:6479: checking for a52.h in ${real_a52_tree}/include" >&5
6479 if test -f ${real_a52_tree}/include/a52.h
6481 echo "$ac_t""yes" 1>&6
6482 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6483 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6484 save_LDFLAGS=$LDFLAGS
6485 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6486 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6487 echo "configure:6488: checking for a52_free in -la52" >&5
6488 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6490 echo $ac_n "(cached) $ac_c" 1>&6
6492 ac_save_LIBS="$LIBS"
6493 LIBS="-la52 -lm $LIBS"
6494 cat > conftest.$ac_ext <<EOF
6495 #line 6496 "configure"
6496 #include "confdefs.h"
6497 /* Override any gcc2 internal prototype to avoid an error. */
6498 /* We use char because int might match the return type of a gcc2
6499 builtin and then its argument prototype would still apply. */
6506 if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6508 eval "ac_cv_lib_$ac_lib_var=yes"
6510 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6513 eval "ac_cv_lib_$ac_lib_var=no"
6516 LIBS="$ac_save_LIBS"
6519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6520 echo "$ac_t""yes" 1>&6
6522 BUILTINS="${BUILTINS} a52"
6523 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6524 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6527 echo "$ac_t""no" 1>&6
6529 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6531 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6533 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6538 LDFLAGS=$save_LDFLAGS
6540 echo "$ac_t""no" 1>&6
6541 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6543 else for ac_hdr in a52dec/a52.h
6545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6547 echo "configure:6548: checking for $ac_hdr" >&5
6548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6557 { (eval echo configure:6558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6559 if test -z "$ac_err"; then
6561 eval "ac_cv_header_$ac_safe=yes"
6564 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6567 eval "ac_cv_header_$ac_safe=no"
6571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6572 echo "$ac_t""yes" 1>&6
6573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6574 cat >> confdefs.h <<EOF
6575 #define $ac_tr_hdr 1
6578 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6579 echo "configure:6580: checking for a52_free in -la52" >&5
6580 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6584 ac_save_LIBS="$LIBS"
6585 LIBS="-la52 -lm $LIBS"
6586 cat > conftest.$ac_ext <<EOF
6587 #line 6588 "configure"
6588 #include "confdefs.h"
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6598 if { (eval echo configure:6599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6600 eval "ac_cv_lib_$ac_lib_var=yes"
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6605 eval "ac_cv_lib_$ac_lib_var=no"
6608 LIBS="$ac_save_LIBS"
6611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6612 echo "$ac_t""yes" 1>&6
6614 BUILTINS="${BUILTINS} a52"
6615 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6616 a52_CFLAGS="${a52_CFLAGS}"
6619 echo "$ac_t""no" 1>&6
6624 echo "$ac_t""no" 1>&6
6631 # Check whether --enable-vorbis or --disable-vorbis was given.
6632 if test "${enable_vorbis+set}" = set; then
6633 enableval="$enable_vorbis"
6637 if test "x$enable_vorbis" != "xno"
6639 for ac_hdr in ogg/ogg.h
6641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6643 echo "configure:6644: checking for $ac_hdr" >&5
6644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6653 { (eval echo configure:6654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6655 if test -z "$ac_err"; then
6657 eval "ac_cv_header_$ac_safe=yes"
6660 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6663 eval "ac_cv_header_$ac_safe=no"
6667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6668 echo "$ac_t""yes" 1>&6
6669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6670 cat >> confdefs.h <<EOF
6671 #define $ac_tr_hdr 1
6674 #PLUGINS="${PLUGINS} vorbis"
6675 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6678 echo "$ac_t""no" 1>&6
6685 # Check whether --with- or --without- was given.
6686 if test "${with_+set}" = set; then
6692 # Check whether --enable-x11 or --disable-x11 was given.
6693 if test "${enable_x11+set}" = set; then
6694 enableval="$enable_x11"
6698 if test x$enable_x11 != xno &&
6699 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6700 if test x$x_includes = xNONE; then
6701 x_includes=/usr/X11R6/include
6703 if test x$x_libraries = xNONE; then
6704 x_libraries=/usr/X11R6/lib
6706 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6707 for ac_hdr in X11/Xlib.h
6709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6711 echo "configure:6712: checking for $ac_hdr" >&5
6712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6713 echo $ac_n "(cached) $ac_c" 1>&6
6715 cat > conftest.$ac_ext <<EOF
6716 #line 6717 "configure"
6717 #include "confdefs.h"
6720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6721 { (eval echo configure:6722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6723 if test -z "$ac_err"; then
6725 eval "ac_cv_header_$ac_safe=yes"
6728 echo "configure: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6731 eval "ac_cv_header_$ac_safe=no"
6735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6738 cat >> confdefs.h <<EOF
6739 #define $ac_tr_hdr 1
6742 PLUGINS="${PLUGINS} x11"
6743 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6744 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6747 echo "$ac_t""no" 1>&6
6751 CPPFLAGS="$save_CPPFLAGS"
6754 # Check whether --enable-xvideo or --disable-xvideo was given.
6755 if test "${enable_xvideo+set}" = set; then
6756 enableval="$enable_xvideo"
6760 if test x$enable_xvideo != xno &&
6761 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6762 if test x$x_includes = xNONE; then
6763 x_includes=/usr/X11R6/include
6765 if test x$x_libraries = xNONE; then
6766 x_libraries=/usr/X11R6/lib
6768 save_CPPFLAGS=$CPPFLAGS
6769 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6770 for ac_hdr in X11/extensions/Xv.h
6772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6774 echo "configure:6775: checking for $ac_hdr" >&5
6775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6776 echo $ac_n "(cached) $ac_c" 1>&6
6778 cat > conftest.$ac_ext <<EOF
6779 #line 6780 "configure"
6780 #include "confdefs.h"
6783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6784 { (eval echo configure:6785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6786 if test -z "$ac_err"; then
6788 eval "ac_cv_header_$ac_safe=yes"
6791 echo "configure: failed program was:" >&5
6792 cat conftest.$ac_ext >&5
6794 eval "ac_cv_header_$ac_safe=no"
6798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6799 echo "$ac_t""yes" 1>&6
6800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6801 cat >> confdefs.h <<EOF
6802 #define $ac_tr_hdr 1
6806 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6807 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6808 echo "configure:6809: checking for XvSetPortAttribute in -lXv_pic" >&5
6809 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6811 echo $ac_n "(cached) $ac_c" 1>&6
6813 ac_save_LIBS="$LIBS"
6814 LIBS="-lXv_pic $LIBS"
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6818 /* Override any gcc2 internal prototype to avoid an error. */
6819 /* We use char because int might match the return type of a gcc2
6820 builtin and then its argument prototype would still apply. */
6821 char XvSetPortAttribute();
6824 XvSetPortAttribute()
6827 if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6829 eval "ac_cv_lib_$ac_lib_var=yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6834 eval "ac_cv_lib_$ac_lib_var=no"
6837 LIBS="$ac_save_LIBS"
6840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6841 echo "$ac_t""yes" 1>&6
6842 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6843 PLUGINS="${PLUGINS} xvideo"
6844 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6845 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6847 echo "$ac_t""no" 1>&6
6848 # We don't have Xv_pic, let's make xvideo.a as builtin
6849 BUILTINS="${BUILTINS} xvideo"
6850 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6851 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6854 CFLAGS="$save_CFLAGS"
6856 CPPFLAGS="$save_CPPFLAGS"
6858 echo "$ac_t""no" 1>&6
6864 # Check whether --enable-sdl or --disable-sdl was given.
6865 if test "${enable_sdl+set}" = set; then
6866 enableval="$enable_sdl"
6870 if test "x$enable_sdl" != "xno"
6873 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6874 if test "${with_sdl_config_path+set}" = set; then
6875 withval="$with_sdl_config_path"
6876 if test "x$with_sdl_config_path" != "xno"
6878 SDL_PATH="$with_sdl_config_path:$PATH"
6882 # Extract the first word of "sdl12-config", so it can be a program name with args.
6883 set dummy sdl12-config; ac_word=$2
6884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6885 echo "configure:6886: checking for $ac_word" >&5
6886 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6887 echo $ac_n "(cached) $ac_c" 1>&6
6889 case "$SDL12_CONFIG" in
6891 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6894 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6898 ac_dummy="$SDL_PATH"
6899 for ac_dir in $ac_dummy; do
6900 test -z "$ac_dir" && ac_dir=.
6901 if test -f $ac_dir/$ac_word; then
6902 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6907 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6911 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6912 if test -n "$SDL12_CONFIG"; then
6913 echo "$ac_t""$SDL12_CONFIG" 1>&6
6915 echo "$ac_t""no" 1>&6
6918 SDL_CONFIG=${SDL12_CONFIG}
6919 SDL_HEADER="SDL12/SDL.h"
6920 if test x${SDL_CONFIG} = xno
6922 # Extract the first word of "sdl11-config", so it can be a program name with args.
6923 set dummy sdl11-config; ac_word=$2
6924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6925 echo "configure:6926: checking for $ac_word" >&5
6926 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6927 echo $ac_n "(cached) $ac_c" 1>&6
6929 case "$SDL11_CONFIG" in
6931 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6934 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6938 ac_dummy="$SDL_PATH"
6939 for ac_dir in $ac_dummy; do
6940 test -z "$ac_dir" && ac_dir=.
6941 if test -f $ac_dir/$ac_word; then
6942 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6947 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6951 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6952 if test -n "$SDL11_CONFIG"; then
6953 echo "$ac_t""$SDL11_CONFIG" 1>&6
6955 echo "$ac_t""no" 1>&6
6958 SDL_CONFIG=${SDL11_CONFIG}
6959 SDL_HEADER="SDL11/SDL.h"
6961 if test x${SDL_CONFIG} = xno
6963 # Extract the first word of "sdl-config", so it can be a program name with args.
6964 set dummy sdl-config; ac_word=$2
6965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6966 echo "configure:6967: checking for $ac_word" >&5
6967 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6968 echo $ac_n "(cached) $ac_c" 1>&6
6970 case "$SDL_CONFIG" in
6972 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6975 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6979 ac_dummy="$SDL_PATH"
6980 for ac_dir in $ac_dummy; do
6981 test -z "$ac_dir" && ac_dir=.
6982 if test -f $ac_dir/$ac_word; then
6983 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6988 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6992 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6993 if test -n "$SDL_CONFIG"; then
6994 echo "$ac_t""$SDL_CONFIG" 1>&6
6996 echo "$ac_t""no" 1>&6
6999 SDL_HEADER="SDL/SDL.h"
7001 if test x${SDL_CONFIG} != xno
7003 PLUGINS="${PLUGINS} sdl"
7004 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7005 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7006 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7007 for ac_hdr in ${SDL_HEADER}
7009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7011 echo "configure:7012: checking for $ac_hdr" >&5
7012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7013 echo $ac_n "(cached) $ac_c" 1>&6
7015 cat > conftest.$ac_ext <<EOF
7016 #line 7017 "configure"
7017 #include "confdefs.h"
7020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7021 { (eval echo configure:7022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7023 if test -z "$ac_err"; then
7025 eval "ac_cv_header_$ac_safe=yes"
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7031 eval "ac_cv_header_$ac_safe=no"
7035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7036 echo "$ac_t""yes" 1>&6
7037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7038 cat >> confdefs.h <<EOF
7039 #define $ac_tr_hdr 1
7041 cat >> confdefs.h <<EOF
7042 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7046 echo "$ac_t""no" 1>&6
7047 { echo "configure: error: The development package for SDL is not installed.
7048 Please install it and try again. Alternatively you can also configure with
7049 --disable-sdl." 1>&2; exit 1; }
7054 CPPFLAGS="$save_CPPFLAGS"
7055 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7057 { echo "configure: error: The development package for SDL is not installed.
7058 Please install it and try again. Alternatively you can also configure with
7059 --disable-sdl." 1>&2; exit 1; }
7061 elif test "x$enable_sdl" = "xyes"
7063 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7064 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7069 # Check whether --enable-directx or --disable-directx was given.
7070 if test "${enable_directx+set}" = set; then
7071 enableval="$enable_directx"
7075 if test "x$enable_directx" != "xno"
7077 if test x$SYS = xmingw32
7079 # Check whether --with-directx or --without-directx was given.
7080 if test "${with_directx+set}" = set; then
7081 withval="$with_directx"
7085 if test "x$with_directx" = "x"
7087 for ac_hdr in ddraw.h
7089 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7091 echo "configure:7092: checking for $ac_hdr" >&5
7092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7093 echo $ac_n "(cached) $ac_c" 1>&6
7095 cat > conftest.$ac_ext <<EOF
7096 #line 7097 "configure"
7097 #include "confdefs.h"
7100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7101 { (eval echo configure:7102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7103 if test -z "$ac_err"; then
7105 eval "ac_cv_header_$ac_safe=yes"
7108 echo "configure: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7111 eval "ac_cv_header_$ac_safe=no"
7115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7116 echo "$ac_t""yes" 1>&6
7117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7118 cat >> confdefs.h <<EOF
7119 #define $ac_tr_hdr 1
7121 PLUGINS="${PLUGINS} directx"
7122 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7124 echo "$ac_t""no" 1>&6
7129 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7130 echo "configure:7131: checking for directX headers in ${with_directx}" >&5
7131 if test -f ${with_directx}/ddraw.h
7133 PLUGINS="${PLUGINS} directx"
7134 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7135 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7136 echo "$ac_t""yes" 1>&6
7138 echo "$ac_t""no" 1>&6
7139 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7145 # Check whether --enable-fb or --disable-fb was given.
7146 if test "${enable_fb+set}" = set; then
7147 enableval="$enable_fb"
7151 if test x$enable_fb != xno
7153 for ac_hdr in linux/fb.h
7155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7157 echo "configure:7158: checking for $ac_hdr" >&5
7158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7167 { (eval echo configure:7168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7169 if test -z "$ac_err"; then
7171 eval "ac_cv_header_$ac_safe=yes"
7174 echo "configure: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7177 eval "ac_cv_header_$ac_safe=no"
7181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7182 echo "$ac_t""yes" 1>&6
7183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7184 cat >> confdefs.h <<EOF
7185 #define $ac_tr_hdr 1
7188 PLUGINS="${PLUGINS} fb"
7191 echo "$ac_t""no" 1>&6
7197 # Check whether --enable-mga or --disable-mga was given.
7198 if test "${enable_mga+set}" = set; then
7199 enableval="$enable_mga"
7200 if test x$enable_mga = xyes
7202 PLUGINS="${PLUGINS} mga xmga"
7207 # Check whether --enable-ggi or --disable-ggi was given.
7208 if test "${enable_ggi+set}" = set; then
7209 enableval="$enable_ggi"
7213 if test x$enable_ggi = xyes
7215 PLUGINS="${PLUGINS} ggi"
7216 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7217 # Check whether --with-ggi or --without-ggi was given.
7218 if test "${with_ggi+set}" = set; then
7220 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7222 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7223 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7229 # Check whether --enable-glide or --disable-glide was given.
7230 if test "${enable_glide+set}" = set; then
7231 enableval="$enable_glide"
7235 if test x$enable_glide = xyes
7237 PLUGINS="${PLUGINS} glide"
7238 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7239 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7240 # Check whether --with-glide or --without-glide was given.
7241 if test "${with_glide+set}" = set; then
7242 withval="$with_glide"
7243 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7245 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7246 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7252 # Check whether --enable-aa or --disable-aa was given.
7253 if test "${enable_aa+set}" = set; then
7254 enableval="$enable_aa"
7258 if test x$enable_aa = xyes
7260 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7261 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7262 echo "configure:7263: checking for aalib.h" >&5
7263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7264 echo $ac_n "(cached) $ac_c" 1>&6
7266 cat > conftest.$ac_ext <<EOF
7267 #line 7268 "configure"
7268 #include "confdefs.h"
7271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7272 { (eval echo configure:7273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7274 if test -z "$ac_err"; then
7276 eval "ac_cv_header_$ac_safe=yes"
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7282 eval "ac_cv_header_$ac_safe=no"
7286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7290 echo "$ac_t""no" 1>&6
7294 if test x$have_aa = xtrue
7296 PLUGINS="${PLUGINS} aa"
7297 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7302 # Check whether --with- or --without- was given.
7303 if test "${with_+set}" = set; then
7309 # Check whether --enable-dsp or --disable-dsp was given.
7310 if test "${enable_dsp+set}" = set; then
7311 enableval="$enable_dsp"
7316 if test x$enable_dsp != xno &&
7317 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7319 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7323 echo "configure:7324: checking for $ac_hdr" >&5
7324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7325 echo $ac_n "(cached) $ac_c" 1>&6
7327 cat > conftest.$ac_ext <<EOF
7328 #line 7329 "configure"
7329 #include "confdefs.h"
7332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7333 { (eval echo configure:7334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7335 if test -z "$ac_err"; then
7337 eval "ac_cv_header_$ac_safe=yes"
7340 echo "configure: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7343 eval "ac_cv_header_$ac_safe=no"
7347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7348 echo "$ac_t""yes" 1>&6
7349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7350 cat >> confdefs.h <<EOF
7351 #define $ac_tr_hdr 1
7354 PLUGINS="${PLUGINS} dsp"
7355 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7356 echo "configure:7357: checking for main in -lossaudio" >&5
7357 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7359 echo $ac_n "(cached) $ac_c" 1>&6
7361 ac_save_LIBS="$LIBS"
7362 LIBS="-lossaudio $LIBS"
7363 cat > conftest.$ac_ext <<EOF
7364 #line 7365 "configure"
7365 #include "confdefs.h"
7371 if { (eval echo configure:7372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7373 eval "ac_cv_lib_$ac_lib_var=yes"
7375 echo "configure: failed program was:" >&5
7376 cat conftest.$ac_ext >&5
7378 eval "ac_cv_lib_$ac_lib_var=no"
7381 LIBS="$ac_save_LIBS"
7384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7385 echo "$ac_t""yes" 1>&6
7386 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7388 echo "$ac_t""no" 1>&6
7393 echo "$ac_t""no" 1>&6
7399 # Check whether --enable-esd or --disable-esd was given.
7400 if test "${enable_esd+set}" = set; then
7401 enableval="$enable_esd"
7402 if test x$enable_esd = xyes
7404 # Extract the first word of "esd-config", so it can be a program name with args.
7405 set dummy esd-config; ac_word=$2
7406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7407 echo "configure:7408: checking for $ac_word" >&5
7408 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6
7411 case "$ESD_CONFIG" in
7413 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7416 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7421 for ac_dir in $ac_dummy; do
7422 test -z "$ac_dir" && ac_dir=.
7423 if test -f $ac_dir/$ac_word; then
7424 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7429 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7433 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7434 if test -n "$ESD_CONFIG"; then
7435 echo "$ac_t""$ESD_CONFIG" 1>&6
7437 echo "$ac_t""no" 1>&6
7440 if test x${ESD_CONFIG} != xno
7442 PLUGINS="${PLUGINS} esd"
7443 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7444 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7450 # Check whether --enable-arts or --disable-arts was given.
7451 if test "${enable_arts+set}" = set; then
7452 enableval="$enable_arts"
7453 if test x$enable_arts = xyes
7455 # Extract the first word of "artsc-config", so it can be a program name with args.
7456 set dummy artsc-config; ac_word=$2
7457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7458 echo "configure:7459: checking for $ac_word" >&5
7459 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7460 echo $ac_n "(cached) $ac_c" 1>&6
7462 case "$ARTS_CONFIG" in
7464 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7467 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7472 for ac_dir in $ac_dummy; do
7473 test -z "$ac_dir" && ac_dir=.
7474 if test -f $ac_dir/$ac_word; then
7475 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7480 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7484 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7485 if test -n "$ARTS_CONFIG"; then
7486 echo "$ac_t""$ARTS_CONFIG" 1>&6
7488 echo "$ac_t""no" 1>&6
7491 if test x${ARTS_CONFIG} != xno
7493 PLUGINS="${PLUGINS} arts"
7494 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7495 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7501 # Check whether --enable-alsa or --disable-alsa was given.
7502 if test "${enable_alsa+set}" = set; then
7503 enableval="$enable_alsa"
7504 if test x$enable_alsa = xyes
7506 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7507 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7508 echo "configure:7509: checking for alsa/asoundlib.h" >&5
7509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7510 echo $ac_n "(cached) $ac_c" 1>&6
7512 cat > conftest.$ac_ext <<EOF
7513 #line 7514 "configure"
7514 #include "confdefs.h"
7515 #include <alsa/asoundlib.h>
7517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7518 { (eval echo configure:7519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7520 if test -z "$ac_err"; then
7522 eval "ac_cv_header_$ac_safe=yes"
7525 echo "configure: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7528 eval "ac_cv_header_$ac_safe=no"
7532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7533 echo "$ac_t""yes" 1>&6
7534 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7535 echo "configure:7536: checking for main in -lasound" >&5
7536 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7538 echo $ac_n "(cached) $ac_c" 1>&6
7540 ac_save_LIBS="$LIBS"
7541 LIBS="-lasound $LIBS"
7542 cat > conftest.$ac_ext <<EOF
7543 #line 7544 "configure"
7544 #include "confdefs.h"
7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7552 eval "ac_cv_lib_$ac_lib_var=yes"
7554 echo "configure: failed program was:" >&5
7555 cat conftest.$ac_ext >&5
7557 eval "ac_cv_lib_$ac_lib_var=no"
7560 LIBS="$ac_save_LIBS"
7563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7564 echo "$ac_t""yes" 1>&6
7567 echo "$ac_t""no" 1>&6
7572 echo "$ac_t""no" 1>&6
7576 if test x$have_alsa = xtrue
7578 PLUGINS="${PLUGINS} alsa"
7579 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7585 # Check whether --enable-waveout or --disable-waveout was given.
7586 if test "${enable_waveout+set}" = set; then
7587 enableval="$enable_waveout"
7591 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7593 PLUGINS="${PLUGINS} waveout"
7594 waveout_LDFLAGS="-lwinmm"
7598 # Check whether --with- or --without- was given.
7599 if test "${with_+set}" = set; then
7605 # Check whether --enable-gtk or --disable-gtk was given.
7606 if test "${enable_gtk+set}" = set; then
7607 enableval="$enable_gtk"
7611 if test x$enable_gtk != xno
7614 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7615 if test "${with_gtk_config_path+set}" = set; then
7616 withval="$with_gtk_config_path"
7617 if test "x$with_gtk_config_path" != "xno"
7619 GTK_PATH="$with_gtk_config_path:$PATH"
7623 # look for gtk-config
7624 # Extract the first word of "gtk12-config", so it can be a program name with args.
7625 set dummy gtk12-config; ac_word=$2
7626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7627 echo "configure:7628: checking for $ac_word" >&5
7628 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7631 case "$GTK12_CONFIG" in
7633 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7636 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7640 ac_dummy="$GTK_PATH"
7641 for ac_dir in $ac_dummy; do
7642 test -z "$ac_dir" && ac_dir=.
7643 if test -f $ac_dir/$ac_word; then
7644 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7649 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7653 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7654 if test -n "$GTK12_CONFIG"; then
7655 echo "$ac_t""$GTK12_CONFIG" 1>&6
7657 echo "$ac_t""no" 1>&6
7660 GTK_CONFIG=${GTK12_CONFIG}
7661 if test x${GTK_CONFIG} = xno
7663 # Extract the first word of "gtk-config", so it can be a program name with args.
7664 set dummy gtk-config; ac_word=$2
7665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7666 echo "configure:7667: checking for $ac_word" >&5
7667 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7670 case "$GTK_CONFIG" in
7672 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7675 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7679 ac_dummy="$GTK_PATH"
7680 for ac_dir in $ac_dummy; do
7681 test -z "$ac_dir" && ac_dir=.
7682 if test -f $ac_dir/$ac_word; then
7683 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7688 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7692 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7693 if test -n "$GTK_CONFIG"; then
7694 echo "$ac_t""$GTK_CONFIG" 1>&6
7696 echo "$ac_t""no" 1>&6
7700 if test x${GTK_CONFIG} != xno
7702 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7704 { 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; }
7706 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7707 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7708 # now look for the gtk.h header
7709 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7710 ac_cv_gtk_headers=yes
7711 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7715 echo "configure:7716: checking for $ac_hdr" >&5
7716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7719 cat > conftest.$ac_ext <<EOF
7720 #line 7721 "configure"
7721 #include "confdefs.h"
7724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7725 { (eval echo configure:7726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7727 if test -z "$ac_err"; then
7729 eval "ac_cv_header_$ac_safe=yes"
7732 echo "configure: failed program was:" >&5
7733 cat conftest.$ac_ext >&5
7735 eval "ac_cv_header_$ac_safe=no"
7739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7740 echo "$ac_t""yes" 1>&6
7741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7742 cat >> confdefs.h <<EOF
7743 #define $ac_tr_hdr 1
7747 echo "$ac_t""no" 1>&6
7748 ac_cv_gtk_headers=no
7749 echo "Cannot find gtk development headers."
7754 if test "x$ac_cv_gtk_headers" = xyes
7756 PLUGINS="${PLUGINS} gtk"
7757 ALIASES="${ALIASES} gvlc"
7759 CPPFLAGS="$save_CPPFLAGS"
7763 # Check whether --enable-gnome or --disable-gnome was given.
7764 if test "${enable_gnome+set}" = set; then
7765 enableval="$enable_gnome"
7766 if test x$enable_gnome = xyes; then
7767 # look for gnome-config
7768 # Extract the first word of "gnome-config", so it can be a program name with args.
7769 set dummy gnome-config; ac_word=$2
7770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7771 echo "configure:7772: checking for $ac_word" >&5
7772 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7773 echo $ac_n "(cached) $ac_c" 1>&6
7775 case "$GNOME_CONFIG" in
7777 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7780 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7785 for ac_dir in $ac_dummy; do
7786 test -z "$ac_dir" && ac_dir=.
7787 if test -f $ac_dir/$ac_word; then
7788 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7793 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7797 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7798 if test -n "$GNOME_CONFIG"; then
7799 echo "$ac_t""$GNOME_CONFIG" 1>&6
7801 echo "$ac_t""no" 1>&6
7804 if test -x ${GNOME_CONFIG}
7806 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7807 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7809 # now look for the gnome.h header
7810 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
7811 for ac_hdr in gnome.h
7813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7815 echo "configure:7816: checking for $ac_hdr" >&5
7816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7817 echo $ac_n "(cached) $ac_c" 1>&6
7819 cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7825 { (eval echo configure:7826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7827 if test -z "$ac_err"; then
7829 eval "ac_cv_header_$ac_safe=yes"
7832 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7835 eval "ac_cv_header_$ac_safe=no"
7839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7840 echo "$ac_t""yes" 1>&6
7841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7842 cat >> confdefs.h <<EOF
7843 #define $ac_tr_hdr 1
7846 PLUGINS="${PLUGINS} gnome"
7847 ALIASES="${ALIASES} gnome-vlc"
7850 echo "$ac_t""no" 1>&6
7851 { echo "configure: error: Can't find gnome headers. Please install the gnome
7852 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7857 CPPFLAGS="$save_CPPFLAGS"
7862 # Check whether --enable-qt or --disable-qt was given.
7863 if test "${enable_qt+set}" = set; then
7864 enableval="$enable_qt"
7865 if test x$enable_qt = xyes; then
7866 PLUGINS="${PLUGINS} qt"
7867 ALIASES="${ALIASES} qvlc"
7868 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7869 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7870 if test -x ${QTDIR}/bin/moc
7872 MOC=${QTDIR}/bin/moc
7880 # Check whether --enable-kde or --disable-kde was given.
7881 if test "${enable_kde+set}" = set; then
7882 enableval="$enable_kde"
7883 if test x$enable_kde = xyes; then
7884 PLUGINS="${PLUGINS} kde"
7885 ALIASES="${ALIASES} kvlc"
7886 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
7887 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
7888 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
7889 if test -x ${QTDIR}/bin/moc
7891 MOC=${QTDIR}/bin/moc
7899 # Check whether --enable-macosx or --disable-macosx was given.
7900 if test "${enable_macosx+set}" = set; then
7901 enableval="$enable_macosx"
7902 if test x$enable_macosx = xyes
7904 BUILTINS="${BUILTINS} macosx"
7905 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
7908 for ac_hdr in Cocoa/Cocoa.h
7910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7912 echo "configure:7913: checking for $ac_hdr" >&5
7913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7914 echo $ac_n "(cached) $ac_c" 1>&6
7916 cat > conftest.$ac_ext <<EOF
7917 #line 7918 "configure"
7918 #include "confdefs.h"
7921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7922 { (eval echo configure:7923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7924 if test -z "$ac_err"; then
7926 eval "ac_cv_header_$ac_safe=yes"
7929 echo "configure: failed program was:" >&5
7930 cat conftest.$ac_ext >&5
7932 eval "ac_cv_header_$ac_safe=no"
7936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7937 echo "$ac_t""yes" 1>&6
7938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7939 cat >> confdefs.h <<EOF
7940 #define $ac_tr_hdr 1
7942 BUILTINS="${BUILTINS} macosx"
7943 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
7946 echo "$ac_t""no" 1>&6
7953 # Check whether --enable-qnx or --disable-qnx was given.
7954 if test "${enable_qnx+set}" = set; then
7955 enableval="$enable_qnx"
7959 if test x$enable_qnx != xno
7963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7965 echo "configure:7966: checking for $ac_hdr" >&5
7966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7969 cat > conftest.$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7975 { (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7977 if test -z "$ac_err"; then
7979 eval "ac_cv_header_$ac_safe=yes"
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7985 eval "ac_cv_header_$ac_safe=no"
7989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7990 echo "$ac_t""yes" 1>&6
7991 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7992 cat >> confdefs.h <<EOF
7993 #define $ac_tr_hdr 1
7996 PLUGINS="${PLUGINS} qnx"
7997 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8000 echo "$ac_t""no" 1>&6
8006 # Check whether --enable-intfwin or --disable-intfwin was given.
8007 if test "${enable_intfwin+set}" = set; then
8008 enableval="$enable_intfwin"
8009 if test "x$enable_intfwin" != "xno"
8011 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8012 if test "${with_bcbuilder+set}" = set; then
8013 withval="$with_bcbuilder"
8017 if test "x$with_bcbuilder" != "x"
8019 BCBUILDER="$with_bcbuilder"
8021 PLUGINS="${PLUGINS} intfwin"
8026 # Check whether --enable-ncurses or --disable-ncurses was given.
8027 if test "${enable_ncurses+set}" = set; then
8028 enableval="$enable_ncurses"
8029 if test x$enable_ncurses = xyes; then
8030 PLUGINS="${PLUGINS} ncurses"
8031 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8036 # Check whether --enable-lirc or --disable-lirc was given.
8037 if test "${enable_lirc+set}" = set; then
8038 enableval="$enable_lirc"
8042 if test x$enable_lirc = xyes
8044 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8045 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8046 echo "configure:8047: checking for lirc/lirc_client.h" >&5
8047 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8050 cat > conftest.$ac_ext <<EOF
8051 #line 8052 "configure"
8052 #include "confdefs.h"
8053 #include <lirc/lirc_client.h>
8055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8056 { (eval echo configure:8057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8058 if test -z "$ac_err"; then
8060 eval "ac_cv_header_$ac_safe=yes"
8063 echo "configure: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8066 eval "ac_cv_header_$ac_safe=no"
8070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8071 echo "$ac_t""yes" 1>&6
8072 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8073 echo "configure:8074: checking for lirc_init in -llirc_client" >&5
8074 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8076 echo $ac_n "(cached) $ac_c" 1>&6
8078 ac_save_LIBS="$LIBS"
8079 LIBS="-llirc_client $LIBS"
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8083 /* Override any gcc2 internal prototype to avoid an error. */
8084 /* We use char because int might match the return type of a gcc2
8085 builtin and then its argument prototype would still apply. */
8092 if { (eval echo configure:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8094 eval "ac_cv_lib_$ac_lib_var=yes"
8096 echo "configure: failed program was:" >&5
8097 cat conftest.$ac_ext >&5
8099 eval "ac_cv_lib_$ac_lib_var=no"
8102 LIBS="$ac_save_LIBS"
8105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8106 echo "$ac_t""yes" 1>&6
8109 echo "$ac_t""no" 1>&6
8114 echo "$ac_t""no" 1>&6
8118 if test x$have_lirc = xtrue
8120 PLUGINS="${PLUGINS} lirc"
8121 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8125 # Check whether --with- or --without- was given.
8126 if test "${with_+set}" = set; then
8132 # Check whether --with-words or --without-words was given.
8133 if test "${with_words+set}" = set; then
8134 withval="$with_words"
8138 case "x$with_words" in
8140 ac_cv_c_bigendian=yes
8143 ac_cv_c_bigendian=no
8146 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8147 echo "configure:8148: checking whether the byte order is big-endian" >&5
8148 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8151 ac_cv_c_bigendian=unknown
8152 cat >conftest.c <<EOF
8153 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8154 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8155 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8156 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8157 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8158 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8159 int main(void) { _a(); _e(); return 0; }
8162 if test -f conftest.c
8164 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8165 && test -f conftest.o
8167 if test "`strings conftest.o | grep BIGenDianSyS`"
8169 ac_cv_c_bigendian=yes
8171 if test "`strings conftest.o | grep LiTTleEnDian`"
8173 ac_cv_c_bigendian=no
8180 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8181 if test x$ac_cv_c_bigendian = xunknown
8183 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8187 if test $ac_cv_c_bigendian = yes
8189 cat >> confdefs.h <<\EOF
8190 #define WORDS_BIGENDIAN 1
8196 # Check whether --enable-gprof or --disable-gprof was given.
8197 if test "${enable_gprof+set}" = set; then
8198 enableval="$enable_gprof"
8199 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
8204 # Check whether --enable-cprof or --disable-cprof was given.
8205 if test "${enable_cprof+set}" = set; then
8206 enableval="$enable_cprof"
8207 if test "x$enable_cprof" = "xyes";
8209 LDFLAGS="${LDFLAGS} -lcprof"
8216 # Check whether --enable-pth or --disable-pth was given.
8217 if test "${enable_pth+set}" = set; then
8218 enableval="$enable_pth"
8219 if test "x$enable_pth" = "xyes"; then
8220 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8221 echo "configure:8222: checking for pth_init in -lpth" >&5
8222 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8226 ac_save_LIBS="$LIBS"
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 eval "ac_cv_lib_$ac_lib_var=yes"
8244 echo "configure: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8247 eval "ac_cv_lib_$ac_lib_var=no"
8250 LIBS="$ac_save_LIBS"
8253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8254 echo "$ac_t""yes" 1>&6
8255 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8256 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8257 cat >> confdefs.h <<EOF
8258 #define $ac_tr_lib 1
8264 echo "$ac_t""no" 1>&6
8267 cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8273 egrep "pth_init" >/dev/null 2>&1; then
8276 cat >> confdefs.h <<\EOF
8277 #define PTH_INIT_IN_PTH_H 1
8289 # Check whether --enable-st or --disable-st was given.
8290 if test "${enable_st+set}" = set; then
8291 enableval="$enable_st"
8292 if test "x$enable_st" = "xyes"; then
8293 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8294 echo "configure:8295: checking for st_init in -lst" >&5
8295 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8299 ac_save_LIBS="$LIBS"
8301 cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 /* Override any gcc2 internal prototype to avoid an error. */
8305 /* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8313 if { (eval echo configure:8314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8315 eval "ac_cv_lib_$ac_lib_var=yes"
8317 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8320 eval "ac_cv_lib_$ac_lib_var=no"
8323 LIBS="$ac_save_LIBS"
8326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8327 echo "$ac_t""yes" 1>&6
8328 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8330 cat >> confdefs.h <<EOF
8331 #define $ac_tr_lib 1
8337 echo "$ac_t""no" 1>&6
8340 cat > conftest.$ac_ext <<EOF
8341 #line 8342 "configure"
8342 #include "confdefs.h"
8345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8346 egrep "st_init" >/dev/null 2>&1; then
8349 cat >> confdefs.h <<\EOF
8350 #define ST_INIT_IN_ST_H 1
8362 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
8364 # Check whether --enable-plugins or --disable-plugins was given.
8365 if test "${enable_plugins+set}" = set; then
8366 enableval="$enable_plugins"
8367 if test x$enable_plugins = xno
8369 BUILTINS="${BUILTINS} ${PLUGINS}"
8375 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8377 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8379 BUILTINS="${BUILTINS} ${PLUGINS}"
8383 cat >> confdefs.h <<EOF
8384 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8387 cat >> confdefs.h <<EOF
8388 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8392 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8393 cat >> confdefs.h <<EOF
8394 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8397 cat >> confdefs.h <<EOF
8398 #define MODULE_SYMBOL $VLC_SYMBOL
8402 DATA_PATH="${ac_tool_prefix}/share/videolan"
8404 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8501 cat > confcache <<\EOF
8502 # This file is a shell script that caches the results of configure
8503 # tests run on this system so they can be shared between configure
8504 # scripts and configure runs. It is not useful on other systems.
8505 # If it contains results you don't want to keep, you may remove or edit it.
8507 # By default, configure uses ./config.cache as the cache file,
8508 # creating it if it does not exist already. You can give configure
8509 # the --cache-file=FILE option to use a different cache file; that is
8510 # what configure does when it calls configure scripts in
8511 # subdirectories, so they share the cache.
8512 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8513 # config.status only pays attention to the cache file if you give it the
8514 # --recheck option to rerun configure.
8517 # The following way of writing the cache mishandles newlines in values,
8518 # but we know of no workaround that is simple, portable, and efficient.
8519 # So, don't put newlines in cache variables' values.
8520 # Ultrix sh set writes to stderr and can't be redirected directly,
8521 # and sets the high bit in the cache file unless we assign to the vars.
8523 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8525 # `set' does not quote correctly, so add quotes (double-quote substitution
8526 # turns \\\\ into \\, and sed turns \\ into \).
8528 -e "s/'/'\\\\''/g" \
8529 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8532 # `set' quotes correctly as required by POSIX, so do not add quotes.
8533 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8536 if cmp -s $cache_file confcache; then
8539 if test -w $cache_file; then
8540 echo "updating cache $cache_file"
8541 cat confcache > $cache_file
8543 echo "not updating unwritable cache $cache_file"
8548 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8551 # Let make expand exec_prefix.
8552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8554 # Any assignment to VPATH causes Sun make to only execute
8555 # the first set of double-colon rules, so remove it if not needed.
8556 # If there is a colon in the path, we need to keep it.
8557 if test "x$srcdir" = x.; then
8558 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8561 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8563 DEFS=-DHAVE_CONFIG_H
8565 # Without the "./", some shells look in PATH for config.status.
8566 : ${CONFIG_STATUS=./config.status}
8568 echo creating $CONFIG_STATUS
8569 rm -f $CONFIG_STATUS
8570 cat > $CONFIG_STATUS <<EOF
8572 # Generated automatically by configure.
8573 # Run this file to recreate the current configuration.
8574 # This directory was configured as follows,
8575 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8577 # $0 $ac_configure_args
8579 # Compiler output produced by configure, useful for debugging
8580 # configure, is in ./config.log if it exists.
8582 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8585 case "\$ac_option" in
8586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8587 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8588 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8589 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8590 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8592 -help | --help | --hel | --he | --h)
8593 echo "\$ac_cs_usage"; exit 0 ;;
8594 *) echo "\$ac_cs_usage"; exit 1 ;;
8598 ac_given_srcdir=$srcdir
8599 ac_given_INSTALL="$INSTALL"
8601 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8603 cat >> $CONFIG_STATUS <<EOF
8605 # Protect against being on the right side of a sed subst in config.status.
8606 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8607 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8611 s%@CFLAGS@%$CFLAGS%g
8612 s%@CPPFLAGS@%$CPPFLAGS%g
8613 s%@CXXFLAGS@%$CXXFLAGS%g
8614 s%@FFLAGS@%$FFLAGS%g
8616 s%@LDFLAGS@%$LDFLAGS%g
8618 s%@exec_prefix@%$exec_prefix%g
8619 s%@prefix@%$prefix%g
8620 s%@program_transform_name@%$program_transform_name%g
8621 s%@bindir@%$bindir%g
8622 s%@sbindir@%$sbindir%g
8623 s%@libexecdir@%$libexecdir%g
8624 s%@datadir@%$datadir%g
8625 s%@sysconfdir@%$sysconfdir%g
8626 s%@sharedstatedir@%$sharedstatedir%g
8627 s%@localstatedir@%$localstatedir%g
8628 s%@libdir@%$libdir%g
8629 s%@includedir@%$includedir%g
8630 s%@oldincludedir@%$oldincludedir%g
8631 s%@infodir@%$infodir%g
8632 s%@mandir@%$mandir%g
8634 s%@host_alias@%$host_alias%g
8635 s%@host_cpu@%$host_cpu%g
8636 s%@host_vendor@%$host_vendor%g
8637 s%@host_os@%$host_os%g
8638 s%@target@%$target%g
8639 s%@target_alias@%$target_alias%g
8640 s%@target_cpu@%$target_cpu%g
8641 s%@target_vendor@%$target_vendor%g
8642 s%@target_os@%$target_os%g
8644 s%@build_alias@%$build_alias%g
8645 s%@build_cpu@%$build_cpu%g
8646 s%@build_vendor@%$build_vendor%g
8647 s%@build_os@%$build_os%g
8648 s%@SET_MAKE@%$SET_MAKE%g
8651 s%@RANLIB@%$RANLIB%g
8654 s%@ALLOCA@%$ALLOCA%g
8655 s%@GLIBC21@%$GLIBC21%g
8656 s%@LIBICONV@%$LIBICONV%g
8657 s%@USE_NLS@%$USE_NLS%g
8658 s%@MSGFMT@%$MSGFMT%g
8659 s%@GMSGFMT@%$GMSGFMT%g
8660 s%@XGETTEXT@%$XGETTEXT%g
8661 s%@INTLBISON@%$INTLBISON%g
8662 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8663 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8664 s%@CATALOGS@%$CATALOGS%g
8665 s%@CATOBJEXT@%$CATOBJEXT%g
8666 s%@GMOFILES@%$GMOFILES%g
8667 s%@INTLLIBS@%$INTLLIBS%g
8668 s%@INTLOBJS@%$INTLOBJS%g
8669 s%@POFILES@%$POFILES%g
8671 s%@DATADIRNAME@%$DATADIRNAME%g
8672 s%@INSTOBJEXT@%$INSTOBJEXT%g
8673 s%@GENCAT@%$GENCAT%g
8674 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8675 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8676 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8677 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8678 s%@INSTALL_DATA@%$INSTALL_DATA%g
8679 s%@WINDRES@%$WINDRES%g
8680 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8681 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8682 s%@SDL_CONFIG@%$SDL_CONFIG%g
8683 s%@ESD_CONFIG@%$ESD_CONFIG%g
8684 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8685 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8686 s%@GTK_CONFIG@%$GTK_CONFIG%g
8687 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8688 s%@DATA_PATH@%$DATA_PATH%g
8689 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8692 s%@PLUGINS@%$PLUGINS%g
8693 s%@BUILTINS@%$BUILTINS%g
8694 s%@ALIASES@%$ALIASES%g
8699 s%@OPTIMS@%$OPTIMS%g
8700 s%@TUNING@%$TUNING%g
8701 s%@RELEASE@%$RELEASE%g
8703 s%@BCBUILDER@%$BCBUILDER%g
8704 s%@PACKAGE@%$PACKAGE%g
8705 s%@VERSION@%$VERSION%g
8706 s%@NEED_GETOPT@%$NEED_GETOPT%g
8707 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8708 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8709 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8710 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8711 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8712 s%@a52_CFLAGS@%$a52_CFLAGS%g
8713 s%@arts_CFLAGS@%$arts_CFLAGS%g
8714 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8715 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8716 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8717 s%@directx_CFLAGS@%$directx_CFLAGS%g
8718 s%@esd_CFLAGS@%$esd_CFLAGS%g
8719 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8720 s%@glide_CFLAGS@%$glide_CFLAGS%g
8721 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8722 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8723 s%@kde_CFLAGS@%$kde_CFLAGS%g
8724 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8725 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8726 s%@mad_CFLAGS@%$mad_CFLAGS%g
8727 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8728 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8729 s%@qt_CFLAGS@%$qt_CFLAGS%g
8730 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8731 s%@x11_CFLAGS@%$x11_CFLAGS%g
8732 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8733 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8734 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8735 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8736 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8737 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8738 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8739 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8740 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8741 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8742 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8743 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8744 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8745 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8746 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8747 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8748 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8749 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8750 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8751 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8752 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8753 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8754 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8755 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8756 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8757 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8758 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8759 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8760 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8761 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8762 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8763 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8764 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8765 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8766 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8767 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8768 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8769 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8770 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8771 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8772 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8773 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8774 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8779 cat >> $CONFIG_STATUS <<\EOF
8781 # Split the substitutions into bite-sized pieces for seds with
8782 # small command number limits, like on Digital OSF/1 and HP-UX.
8783 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8784 ac_file=1 # Number of current file.
8785 ac_beg=1 # First line for current file.
8786 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8789 while $ac_more_lines; do
8790 if test $ac_beg -gt 1; then
8791 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8793 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8795 if test ! -s conftest.s$ac_file; then
8797 rm -f conftest.s$ac_file
8799 if test -z "$ac_sed_cmds"; then
8800 ac_sed_cmds="sed -f conftest.s$ac_file"
8802 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8804 ac_file=`expr $ac_file + 1`
8806 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8809 if test -z "$ac_sed_cmds"; then
8814 cat >> $CONFIG_STATUS <<EOF
8816 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8818 cat >> $CONFIG_STATUS <<\EOF
8819 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8822 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8823 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8824 *) ac_file_in="${ac_file}.in" ;;
8827 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8829 # Remove last slash and all that follows it. Not all systems have dirname.
8830 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8831 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8832 # The file is in a subdirectory.
8833 test ! -d "$ac_dir" && mkdir "$ac_dir"
8834 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8835 # A "../" for each directory in $ac_dir_suffix.
8836 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8838 ac_dir_suffix= ac_dots=
8841 case "$ac_given_srcdir" in
8843 if test -z "$ac_dots"; then top_srcdir=.
8844 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8845 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8847 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8848 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8851 case "$ac_given_INSTALL" in
8852 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8853 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8856 echo creating "$ac_file"
8858 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8860 *Makefile*) ac_comsub="1i\\
8861 # $configure_input" ;;
8865 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8867 s%@configure_input@%$configure_input%g
8868 s%@srcdir@%$srcdir%g
8869 s%@top_srcdir@%$top_srcdir%g
8870 s%@INSTALL@%$INSTALL%g
8871 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8875 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8876 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8878 # ac_d sets the value in "#define NAME VALUE" lines.
8879 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8880 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8883 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8884 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8885 ac_uB='\([ ]\)%\1#\2define\3'
8888 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8889 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8890 ac_eB='$%\1#\2define\3'
8894 if test "${CONFIG_HEADERS+set}" != set; then
8896 cat >> $CONFIG_STATUS <<EOF
8897 CONFIG_HEADERS="include/defs.h"
8899 cat >> $CONFIG_STATUS <<\EOF
8901 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8904 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8905 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8906 *) ac_file_in="${ac_file}.in" ;;
8909 echo creating $ac_file
8911 rm -f conftest.frag conftest.in conftest.out
8912 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8913 cat $ac_file_inputs > conftest.in
8917 # Transform confdefs.h into a sed script conftest.vals that substitutes
8918 # the proper values into config.h.in to produce config.h. And first:
8919 # Protect against being on the right side of a sed subst in config.status.
8920 # Protect against being in an unquoted here document in config.status.
8922 cat > conftest.hdr <<\EOF
8925 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8929 sed -n -f conftest.hdr confdefs.h > conftest.vals
8932 # This sed command replaces #undef with comments. This is necessary, for
8933 # example, in the case of _POSIX_SOURCE, which is predefined and required
8934 # on some systems where configure will not decide to define it.
8935 cat >> conftest.vals <<\EOF
8936 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8939 # Break up conftest.vals because some shells have a limit on
8940 # the size of here documents, and old seds have small limits too.
8945 ac_lines=`grep -c . conftest.vals`
8946 # grep -c gives empty output for an empty file on some AIX systems.
8947 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8948 # Write a limited-size here document to conftest.frag.
8949 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8950 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8952 sed -f conftest.frag conftest.in > conftest.out
8954 mv conftest.out conftest.in
8956 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8958 mv conftest.tail conftest.vals
8962 cat >> $CONFIG_STATUS <<\EOF
8963 rm -f conftest.frag conftest.h
8964 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8965 cat conftest.in >> conftest.h
8967 if cmp -s $ac_file conftest.h 2>/dev/null; then
8968 echo "$ac_file is unchanged"
8971 # Remove last slash and all that follows it. Not all systems have dirname.
8972 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8973 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8974 # The file is in a subdirectory.
8975 test ! -d "$ac_dir" && mkdir "$ac_dir"
8978 mv conftest.h $ac_file
8983 cat >> $CONFIG_STATUS <<EOF
8987 cat >> $CONFIG_STATUS <<\EOF
8988 for ac_file in $CONFIG_FILES; do
8989 # Support "outfile[:infile[:infile...]]"
8991 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8993 # PO directories have a Makefile.in generated from Makefile.in.in.
8994 case "$ac_file" in */Makefile.in)
8995 # Adjust a relative srcdir.
8996 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8997 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8998 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8999 # In autoconf-2.13 it is called $ac_given_srcdir.
9000 # In autoconf-2.50 it is called $srcdir.
9001 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9002 case "$ac_given_srcdir" in
9003 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9004 /*) top_srcdir="$ac_given_srcdir" ;;
9005 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9007 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9008 rm -f "$ac_dir/POTFILES"
9009 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9010 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9011 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9012 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9020 chmod +x $CONFIG_STATUS
9021 rm -fr confdefs* $ac_clean_files
9022 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9027 --------------------
9028 vlc version : ${VERSION}
9030 architecture : ${ARCH}
9031 optimizations : ${OPTIMS}
9033 debug mode : ${DEBUG}
9034 release : ${RELEASE}
9035 cprof/gprof support : ${CPROF}/${GPROF}
9036 need builtin getopt : ${NEED_GETOPT}
9037 built-in modules :${BUILTINS}
9038 plug-in modules :${PLUGINS}
9039 vlc aliases :${ALIASES}
9041 You may now tune Makefile.opts at your convenience, for instance to choose
9042 which modules get compiled as plugins.
9044 To build vlc and its plugins, type \`$VLC_MAKE'.