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 --enable-ffmpeg ffmpeg codec (default disabled)"
66 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
68 --enable-a52 AC3 support with liba52 (default enabled)"
70 --with-a52-tree=PATH a52dec tree for static linking "
72 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
76 --enable-x11 X11 support (default enabled)"
78 --enable-xvideo XVideo support (default enabled)"
80 --enable-sdl SDL support (default enabled)"
82 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
84 --enable-directx Win32 DirectX support (default enabled on Win32)"
86 --with-directx=PATH Win32 DirectX headers and libraries"
88 --enable-fb Linux framebuffer support (default enabled on Linux)"
90 --enable-mga Linux kernel Matrox support (default disabled)"
92 --enable-ggi GGI support (default disabled)"
94 --with-ggi=PATH path to libggi"
96 --enable-glide Glide (3dfx) support (default disabled)"
98 --with-glide=PATH path to libglide"
100 --enable-aa aalib output (default disabled)"
104 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
106 --enable-esd Esound library support (default disabled)"
108 --enable-arts aRts sound server (default disabled)"
110 --enable-alsa ALSA sound support for Linux (default disabled)"
112 --enable-waveout Win32 waveOut module (default enabled on Win32)"
116 --enable-gtk Gtk+ support (default enabled)"
118 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
120 --enable-gnome Gnome interface support (default disabled)"
122 --enable-qt Qt interface support (default disabled)"
124 --enable-kde KDE interface support (default disabled)"
126 --enable-macosx MacOS X support (default enabled on MacOS X)"
128 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
130 --enable-intfwin Win32 interface support (default disabled)"
132 --with-bcbuilder=PATH Borland C++ Builder installation path"
134 --enable-ncurses ncurses interface support (default disabled)"
136 --enable-lirc lirc support (default disabled)"
140 --with-words=endianness set endianness (big or little)"
142 --enable-gprof gprof profiling (default disabled)"
144 --enable-cprof cprof profiling (default disabled)"
146 --enable-pth GNU Pth support (default disabled)"
148 --enable-st State Threads (default disabled)"
150 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
152 # Initialize some variables set by options.
153 # The variables have the same names as the options, with
154 # dashes changed to underlines.
156 cache_file=./config.cache
165 program_transform_name=s,x,x,
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datadir='${prefix}/share'
177 sysconfdir='${prefix}/etc'
178 sharedstatedir='${prefix}/com'
179 localstatedir='${prefix}/var'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${prefix}/info'
184 mandir='${prefix}/man'
186 # Initialize some other variables.
189 SHELL=${CONFIG_SHELL-/bin/sh}
190 # Maximum number of lines to put in a shell here document.
197 # If the previous option needs an argument, assign it.
198 if test -n "$ac_prev"; then
199 eval "$ac_prev=\$ac_option"
205 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
209 # Accept the important Cygnus configure options, so we can diagnose typos.
213 -bindir | --bindir | --bindi | --bind | --bin | --bi)
215 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 bindir="$ac_optarg" ;;
218 -build | --build | --buil | --bui | --bu)
220 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
221 build="$ac_optarg" ;;
223 -cache-file | --cache-file | --cache-fil | --cache-fi \
224 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
225 ac_prev=cache_file ;;
226 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
227 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
228 cache_file="$ac_optarg" ;;
230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
234 datadir="$ac_optarg" ;;
236 -disable-* | --disable-*)
237 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
238 # Reject names that are not valid shell variable names.
239 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
240 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
242 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
243 eval "enable_${ac_feature}=no" ;;
245 -enable-* | --enable-*)
246 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
247 # Reject names that are not valid shell variable names.
248 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
249 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
251 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
256 eval "enable_${ac_feature}='$ac_optarg'" ;;
258 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
259 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
260 | --exec | --exe | --ex)
261 ac_prev=exec_prefix ;;
262 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
263 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
264 | --exec=* | --exe=* | --ex=*)
265 exec_prefix="$ac_optarg" ;;
267 -gas | --gas | --ga | --g)
268 # Obsolete; use --with-gas.
271 -help | --help | --hel | --he)
272 # Omit some internal or obsolete options to make the list less imposing.
273 # This message is too long to be a string in the A/UX 3.1 sh.
275 Usage: configure [options] [host]
276 Options: [defaults in brackets after descriptions]
278 --cache-file=FILE cache test results in FILE
279 --help print this message
280 --no-create do not create output files
281 --quiet, --silent do not print \`checking...' messages
282 --version print the version of autoconf that created configure
283 Directory and file names:
284 --prefix=PREFIX install architecture-independent files in PREFIX
286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
288 --bindir=DIR user executables in DIR [EPREFIX/bin]
289 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
290 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
291 --datadir=DIR read-only architecture-independent data in DIR
293 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
294 --sharedstatedir=DIR modifiable architecture-independent data in DIR
296 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
297 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
298 --includedir=DIR C header files in DIR [PREFIX/include]
299 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
300 --infodir=DIR info documentation in DIR [PREFIX/info]
301 --mandir=DIR man documentation in DIR [PREFIX/man]
302 --srcdir=DIR find the sources in DIR [configure dir or ..]
303 --program-prefix=PREFIX prepend PREFIX to installed program names
304 --program-suffix=SUFFIX append SUFFIX to installed program names
305 --program-transform-name=PROGRAM
306 run sed PROGRAM on installed program names
310 --build=BUILD configure for building on BUILD [BUILD=HOST]
311 --host=HOST configure for HOST [guessed]
312 --target=TARGET configure for TARGET [TARGET=HOST]
313 Features and packages:
314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
316 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
317 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
318 --x-includes=DIR X include files are in DIR
319 --x-libraries=DIR X library files are in DIR
321 if test -n "$ac_help"; then
322 echo "--enable and --with options recognized:$ac_help"
326 -host | --host | --hos | --ho)
328 -host=* | --host=* | --hos=* | --ho=*)
331 -includedir | --includedir | --includedi | --included | --include \
332 | --includ | --inclu | --incl | --inc)
333 ac_prev=includedir ;;
334 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
335 | --includ=* | --inclu=* | --incl=* | --inc=*)
336 includedir="$ac_optarg" ;;
338 -infodir | --infodir | --infodi | --infod | --info | --inf)
340 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
341 infodir="$ac_optarg" ;;
343 -libdir | --libdir | --libdi | --libd)
345 -libdir=* | --libdir=* | --libdi=* | --libd=*)
346 libdir="$ac_optarg" ;;
348 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
349 | --libexe | --libex | --libe)
350 ac_prev=libexecdir ;;
351 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
352 | --libexe=* | --libex=* | --libe=*)
353 libexecdir="$ac_optarg" ;;
355 -localstatedir | --localstatedir | --localstatedi | --localstated \
356 | --localstate | --localstat | --localsta | --localst \
357 | --locals | --local | --loca | --loc | --lo)
358 ac_prev=localstatedir ;;
359 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
360 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
361 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
362 localstatedir="$ac_optarg" ;;
364 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
366 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
367 mandir="$ac_optarg" ;;
370 # Obsolete; use --without-fp.
373 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
377 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
378 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
381 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
382 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
383 | --oldin | --oldi | --old | --ol | --o)
384 ac_prev=oldincludedir ;;
385 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
386 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
387 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
388 oldincludedir="$ac_optarg" ;;
390 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
392 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
393 prefix="$ac_optarg" ;;
395 -program-prefix | --program-prefix | --program-prefi | --program-pref \
396 | --program-pre | --program-pr | --program-p)
397 ac_prev=program_prefix ;;
398 -program-prefix=* | --program-prefix=* | --program-prefi=* \
399 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
400 program_prefix="$ac_optarg" ;;
402 -program-suffix | --program-suffix | --program-suffi | --program-suff \
403 | --program-suf | --program-su | --program-s)
404 ac_prev=program_suffix ;;
405 -program-suffix=* | --program-suffix=* | --program-suffi=* \
406 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
407 program_suffix="$ac_optarg" ;;
409 -program-transform-name | --program-transform-name \
410 | --program-transform-nam | --program-transform-na \
411 | --program-transform-n | --program-transform- \
412 | --program-transform | --program-transfor \
413 | --program-transfo | --program-transf \
414 | --program-trans | --program-tran \
415 | --progr-tra | --program-tr | --program-t)
416 ac_prev=program_transform_name ;;
417 -program-transform-name=* | --program-transform-name=* \
418 | --program-transform-nam=* | --program-transform-na=* \
419 | --program-transform-n=* | --program-transform-=* \
420 | --program-transform=* | --program-transfor=* \
421 | --program-transfo=* | --program-transf=* \
422 | --program-trans=* | --program-tran=* \
423 | --progr-tra=* | --program-tr=* | --program-t=*)
424 program_transform_name="$ac_optarg" ;;
426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
427 | -silent | --silent | --silen | --sile | --sil)
430 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
432 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
434 sbindir="$ac_optarg" ;;
436 -sharedstatedir | --sharedstatedir | --sharedstatedi \
437 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
438 | --sharedst | --shareds | --shared | --share | --shar \
440 ac_prev=sharedstatedir ;;
441 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
442 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
443 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
445 sharedstatedir="$ac_optarg" ;;
447 -site | --site | --sit)
449 -site=* | --site=* | --sit=*)
452 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
454 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
455 srcdir="$ac_optarg" ;;
457 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
458 | --syscon | --sysco | --sysc | --sys | --sy)
459 ac_prev=sysconfdir ;;
460 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
461 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
462 sysconfdir="$ac_optarg" ;;
464 -target | --target | --targe | --targ | --tar | --ta | --t)
466 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
467 target="$ac_optarg" ;;
469 -v | -verbose | --verbose | --verbos | --verbo | --verb)
472 -version | --version | --versio | --versi | --vers)
473 echo "configure generated by autoconf version 2.13"
477 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
478 # Reject names that are not valid shell variable names.
479 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
482 ac_package=`echo $ac_package| sed 's/-/_/g'`
487 eval "with_${ac_package}='$ac_optarg'" ;;
489 -without-* | --without-*)
490 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
491 # Reject names that are not valid shell variable names.
492 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
493 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
495 ac_package=`echo $ac_package| sed 's/-/_/g'`
496 eval "with_${ac_package}=no" ;;
499 # Obsolete; use --with-x.
502 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
503 | --x-incl | --x-inc | --x-in | --x-i)
504 ac_prev=x_includes ;;
505 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
506 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
507 x_includes="$ac_optarg" ;;
509 -x-libraries | --x-libraries | --x-librarie | --x-librari \
510 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
511 ac_prev=x_libraries ;;
512 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
513 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
514 x_libraries="$ac_optarg" ;;
516 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
520 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
521 echo "configure: warning: $ac_option: invalid host type" 1>&2
523 if test "x$nonopt" != xNONE; then
524 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
532 if test -n "$ac_prev"; then
533 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
536 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538 # File descriptor usage:
541 # 2 errors and warnings
542 # 3 some systems may open it to /dev/tty
543 # 4 used on the Kubota Titan
544 # 6 checking for... messages and results
545 # 5 compiler messages saved in config.log
546 if test "$silent" = yes; then
554 This file contains any messages produced by compilers while
555 running configure, to aid debugging if configure makes a mistake.
558 # Strip out --no-create and --no-recursion so they do not pile up.
559 # Also quote any args containing shell metacharacters.
564 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
565 | --no-cr | --no-c) ;;
566 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
567 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
568 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
569 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
570 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
575 # Only set these to C if already set. These must not be set unconditionally
576 # because not all systems understand e.g. LANG=C (notably SCO).
577 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
578 # Non-C LC_CTYPE values break the ctype check.
579 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
580 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
581 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
582 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
584 # confdefs.h avoids OS command line length limits that DEFS can exceed.
585 rm -rf conftest* confdefs.h
586 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
589 # A filename unique to this package, relative to the directory that
590 # configure is in, which we can look for to find out if srcdir is correct.
591 ac_unique_file=include/main.h
593 # Find the source files, if location was not specified.
594 if test -z "$srcdir"; then
595 ac_srcdir_defaulted=yes
596 # Try the directory containing this script, then its parent.
598 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
599 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
601 if test ! -r $srcdir/$ac_unique_file; then
605 ac_srcdir_defaulted=no
607 if test ! -r $srcdir/$ac_unique_file; then
608 if test "$ac_srcdir_defaulted" = yes; then
609 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
611 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
614 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
616 # Prefer explicitly selected file to automatically selected ones.
617 if test -z "$CONFIG_SITE"; then
618 if test "x$prefix" != xNONE; then
619 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
621 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
624 for ac_site_file in $CONFIG_SITE; do
625 if test -r "$ac_site_file"; then
626 echo "loading site script $ac_site_file"
631 if test -r "$cache_file"; then
632 echo "loading cache $cache_file"
635 echo "creating cache $cache_file"
640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
641 ac_cpp='$CPP $CPPFLAGS'
642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
644 cross_compiling=$ac_cv_prog_cc_cross
648 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
649 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
650 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
657 ac_n= ac_c='\c' ac_t=
663 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
664 if test -f $ac_dir/install-sh; then
666 ac_install_sh="$ac_aux_dir/install-sh -c"
668 elif test -f $ac_dir/install.sh; then
670 ac_install_sh="$ac_aux_dir/install.sh -c"
674 if test -z "$ac_aux_dir"; then
675 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
677 ac_config_guess=$ac_aux_dir/config.guess
678 ac_config_sub=$ac_aux_dir/config.sub
679 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
682 # Do some error checking and defaulting for the host and target type.
684 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
687 # 1. You are not allowed to specify --host, --target, and nonopt at the
689 # 2. Host defaults to nonopt.
690 # 3. If nonopt is not specified, then host defaults to the current host,
691 # as determined by config.guess.
692 # 4. Target and build default to nonopt.
693 # 5. If nonopt is not specified, then target and build default to host.
695 # The aliases save the names the user supplied, while $host etc.
696 # will get canonicalized.
697 case $host---$target---$nonopt in
698 NONE---*---* | *---NONE---* | *---*---NONE) ;;
699 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
703 # Make sure we can run config.sub.
704 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
705 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708 echo $ac_n "checking host system type""... $ac_c" 1>&6
709 echo "configure:710: checking host system type" >&5
712 case "$host_alias" in
716 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
717 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
719 *) host_alias=$nonopt ;;
723 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
724 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$host" 1>&6
729 echo $ac_n "checking target system type""... $ac_c" 1>&6
730 echo "configure:731: checking target system type" >&5
733 case "$target_alias" in
736 NONE) target_alias=$host_alias ;;
737 *) target_alias=$nonopt ;;
741 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
742 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$target" 1>&6
747 echo $ac_n "checking build system type""... $ac_c" 1>&6
748 echo "configure:749: checking build system type" >&5
751 case "$build_alias" in
754 NONE) build_alias=$host_alias ;;
755 *) build_alias=$nonopt ;;
759 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
760 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
761 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
762 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
763 echo "$ac_t""$build" 1>&6
765 test "$host_alias" != "$target_alias" &&
766 test "$program_prefix$program_suffix$program_transform_name" = \
768 program_prefix=${target_alias}-
775 save_CFLAGS="${CFLAGS}"
776 save_CPPFLAGS="${CPPFLAGS}"
777 save_LDFLAGS="${LDFLAGS}"
779 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
780 echo "configure:781: checking whether ${MAKE-make} sets \${MAKE}" >&5
781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
782 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 cat > conftestmake <<\EOF
787 @echo 'ac_maketemp="${MAKE}"'
789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
790 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
791 if test -n "$ac_maketemp"; then
792 eval ac_cv_prog_make_${ac_make}_set=yes
794 eval ac_cv_prog_make_${ac_make}_set=no
798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
799 echo "$ac_t""yes" 1>&6
802 echo "$ac_t""no" 1>&6
803 SET_MAKE="MAKE=${MAKE-make}"
806 # Extract the first word of "gcc", so it can be a program name with args.
807 set dummy gcc; ac_word=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
809 echo "configure:810: checking for $ac_word" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 if test -n "$CC"; then
814 ac_cv_prog_CC="$CC" # Let the user override the test.
816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
818 for ac_dir in $ac_dummy; do
819 test -z "$ac_dir" && ac_dir=.
820 if test -f $ac_dir/$ac_word; then
829 if test -n "$CC"; then
830 echo "$ac_t""$CC" 1>&6
832 echo "$ac_t""no" 1>&6
835 if test -z "$CC"; then
836 # Extract the first word of "cc", so it can be a program name with args.
837 set dummy cc; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CC"; then
844 ac_cv_prog_CC="$CC" # Let the user override the test.
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
849 for ac_dir in $ac_dummy; do
850 test -z "$ac_dir" && ac_dir=.
851 if test -f $ac_dir/$ac_word; then
852 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
861 if test $ac_prog_rejected = yes; then
862 # We found a bogon in the path, so make sure we never use it.
863 set dummy $ac_cv_prog_CC
865 if test $# -gt 0; then
866 # We chose a different compiler from the bogus one.
867 # However, it has the same basename, so the bogon will be chosen
868 # first if we set CC to just the basename; use the full file name.
870 set dummy "$ac_dir/$ac_word" "$@"
878 if test -n "$CC"; then
879 echo "$ac_t""$CC" 1>&6
881 echo "$ac_t""no" 1>&6
884 if test -z "$CC"; then
887 # Extract the first word of "cl", so it can be a program name with args.
888 set dummy cl; ac_word=$2
889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
890 echo "configure:891: checking for $ac_word" >&5
891 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
894 if test -n "$CC"; then
895 ac_cv_prog_CC="$CC" # Let the user override the test.
897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
899 for ac_dir in $ac_dummy; do
900 test -z "$ac_dir" && ac_dir=.
901 if test -f $ac_dir/$ac_word; then
910 if test -n "$CC"; then
911 echo "$ac_t""$CC" 1>&6
913 echo "$ac_t""no" 1>&6
918 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
921 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
922 echo "configure:923: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926 ac_cpp='$CPP $CPPFLAGS'
927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929 cross_compiling=$ac_cv_prog_cc_cross
931 cat > conftest.$ac_ext << EOF
933 #line 934 "configure"
934 #include "confdefs.h"
938 if { (eval echo configure:939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
939 ac_cv_prog_cc_works=yes
940 # If we can't run a trivial program, we are probably using a cross compiler.
941 if (./conftest; exit) 2>/dev/null; then
942 ac_cv_prog_cc_cross=no
944 ac_cv_prog_cc_cross=yes
947 echo "configure: failed program was:" >&5
948 cat conftest.$ac_ext >&5
949 ac_cv_prog_cc_works=no
953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
954 ac_cpp='$CPP $CPPFLAGS'
955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
957 cross_compiling=$ac_cv_prog_cc_cross
959 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
960 if test $ac_cv_prog_cc_works = no; then
961 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
963 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
964 echo "configure:965: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
965 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
966 cross_compiling=$ac_cv_prog_cc_cross
968 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
969 echo "configure:970: checking whether we are using GNU C" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 cat > conftest.c <<EOF
978 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
985 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
987 if test $ac_cv_prog_gcc = yes; then
993 ac_test_CFLAGS="${CFLAGS+set}"
994 ac_save_CFLAGS="$CFLAGS"
996 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
997 echo "configure:998: checking whether ${CC-cc} accepts -g" >&5
998 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 echo 'void f(){}' > conftest.c
1002 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1011 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1012 if test "$ac_test_CFLAGS" = set; then
1013 CFLAGS="$ac_save_CFLAGS"
1014 elif test $ac_cv_prog_cc_g = yes; then
1015 if test "$GCC" = yes; then
1021 if test "$GCC" = yes; then
1028 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1029 echo "configure:1030: checking how to run the C preprocessor" >&5
1030 # On Suns, sometimes $CPP names a directory.
1031 if test -n "$CPP" && test -d "$CPP"; then
1034 if test -z "$CPP"; then
1035 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 # This must be in double quotes, not single quotes, because CPP may get
1039 # substituted into the Makefile and "${CC-cc}" will confuse make.
1041 # On the NeXT, cc -E runs the code through the compiler's parser,
1042 # not just through cpp.
1043 cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1050 { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1052 if test -z "$ac_err"; then
1056 echo "configure: failed program was:" >&5
1057 cat conftest.$ac_ext >&5
1059 CPP="${CC-cc} -E -traditional-cpp"
1060 cat > conftest.$ac_ext <<EOF
1061 #line 1062 "configure"
1062 #include "confdefs.h"
1066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1067 { (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1069 if test -z "$ac_err"; then
1073 echo "configure: failed program was:" >&5
1074 cat conftest.$ac_ext >&5
1076 CPP="${CC-cc} -nologo -E"
1077 cat > conftest.$ac_ext <<EOF
1078 #line 1079 "configure"
1079 #include "confdefs.h"
1083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1084 { (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1086 if test -z "$ac_err"; then
1090 echo "configure: failed program was:" >&5
1091 cat conftest.$ac_ext >&5
1100 ac_cv_prog_CPP="$CPP"
1102 CPP="$ac_cv_prog_CPP"
1104 ac_cv_prog_CPP="$CPP"
1106 echo "$ac_t""$CPP" 1>&6
1109 if test $host != $build; then
1110 ac_tool_prefix=${host_alias}-
1115 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1116 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$RANLIB"; then
1123 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 if test -f $ac_dir/$ac_word; then
1130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1137 RANLIB="$ac_cv_prog_RANLIB"
1138 if test -n "$RANLIB"; then
1139 echo "$ac_t""$RANLIB" 1>&6
1141 echo "$ac_t""no" 1>&6
1145 if test -z "$ac_cv_prog_RANLIB"; then
1146 if test -n "$ac_tool_prefix"; then
1147 # Extract the first word of "ranlib", so it can be a program name with args.
1148 set dummy ranlib; ac_word=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1151: checking for $ac_word" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 if test -n "$RANLIB"; then
1155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1159 for ac_dir in $ac_dummy; do
1160 test -z "$ac_dir" && ac_dir=.
1161 if test -f $ac_dir/$ac_word; then
1162 ac_cv_prog_RANLIB="ranlib"
1167 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1170 RANLIB="$ac_cv_prog_RANLIB"
1171 if test -n "$RANLIB"; then
1172 echo "$ac_t""$RANLIB" 1>&6
1174 echo "$ac_t""no" 1>&6
1182 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1183 set dummy ${ac_tool_prefix}strip; ac_word=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 if test -n "$STRIP"; then
1190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1194 for ac_dir in $ac_dummy; do
1195 test -z "$ac_dir" && ac_dir=.
1196 if test -f $ac_dir/$ac_word; then
1197 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1204 STRIP="$ac_cv_prog_STRIP"
1205 if test -n "$STRIP"; then
1206 echo "$ac_t""$STRIP" 1>&6
1208 echo "$ac_t""no" 1>&6
1212 if test -z "$ac_cv_prog_STRIP"; then
1213 if test -n "$ac_tool_prefix"; then
1214 # Extract the first word of "strip", so it can be a program name with args.
1215 set dummy strip; ac_word=$2
1216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1217 echo "configure:1218: checking for $ac_word" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 if test -n "$STRIP"; then
1222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1226 for ac_dir in $ac_dummy; do
1227 test -z "$ac_dir" && ac_dir=.
1228 if test -f $ac_dir/$ac_word; then
1229 ac_cv_prog_STRIP="strip"
1234 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1237 STRIP="$ac_cv_prog_STRIP"
1238 if test -n "$STRIP"; then
1239 echo "$ac_t""$STRIP" 1>&6
1241 echo "$ac_t""no" 1>&6
1250 # Extract the first word of "gmake", so it can be a program name with args.
1251 set dummy gmake; ac_word=$2
1252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1253 echo "configure:1254: checking for $ac_word" >&5
1254 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1259 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1262 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1267 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1275 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1279 GMAKE="$ac_cv_path_GMAKE"
1280 if test -n "$GMAKE"; then
1281 echo "$ac_t""$GMAKE" 1>&6
1283 echo "$ac_t""no" 1>&6
1286 if test "x$GMAKE" = "xno"; then
1287 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1288 echo "configure:1289: checking whether GNU make is installed" >&5
1289 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if make --version | grep -q -i gnu; then
1295 echo "This software needs you to install GNU make to compile properly."
1296 echo "You can get it from http://www.gnu.org/."
1301 echo "$ac_t""$ac_cv_gmake" 1>&6
1307 ALL_LINGUAS="de en_GB fr ja no ru nl"
1309 cat >> confdefs.h <<EOF
1310 #define VLC_PACKAGE "$PACKAGE"
1313 cat >> confdefs.h <<EOF
1314 #define VLC_VERSION "$VERSION"
1317 # Extract the first word of "ranlib", so it can be a program name with args.
1318 set dummy ranlib; ac_word=$2
1319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1320 echo "configure:1321: checking for $ac_word" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 if test -n "$RANLIB"; then
1325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1329 for ac_dir in $ac_dummy; do
1330 test -z "$ac_dir" && ac_dir=.
1331 if test -f $ac_dir/$ac_word; then
1332 ac_cv_prog_RANLIB="ranlib"
1337 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1340 RANLIB="$ac_cv_prog_RANLIB"
1341 if test -n "$RANLIB"; then
1342 echo "$ac_t""$RANLIB" 1>&6
1344 echo "$ac_t""no" 1>&6
1348 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1349 echo "configure:1350: checking for strerror in -lcposix" >&5
1350 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 ac_save_LIBS="$LIBS"
1355 LIBS="-lcposix $LIBS"
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1359 /* Override any gcc2 internal prototype to avoid an error. */
1360 /* We use char because int might match the return type of a gcc2
1361 builtin and then its argument prototype would still apply. */
1368 if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1370 eval "ac_cv_lib_$ac_lib_var=yes"
1372 echo "configure: failed program was:" >&5
1373 cat conftest.$ac_ext >&5
1375 eval "ac_cv_lib_$ac_lib_var=no"
1378 LIBS="$ac_save_LIBS"
1381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1382 echo "$ac_t""yes" 1>&6
1383 LIBS="$LIBS -lcposix"
1385 echo "$ac_t""no" 1>&6
1390 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1391 echo "configure:1392: checking for ANSI C header files" >&5
1392 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1404 { (eval echo configure:1405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1406 if test -z "$ac_err"; then
1408 ac_cv_header_stdc=yes
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1414 ac_cv_header_stdc=no
1418 if test $ac_cv_header_stdc = yes; then
1419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1420 cat > conftest.$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1426 egrep "memchr" >/dev/null 2>&1; then
1430 ac_cv_header_stdc=no
1436 if test $ac_cv_header_stdc = yes; then
1437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1444 egrep "free" >/dev/null 2>&1; then
1448 ac_cv_header_stdc=no
1454 if test $ac_cv_header_stdc = yes; then
1455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1456 if test "$cross_compiling" = yes; then
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1463 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1464 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1465 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1466 int main () { int i; for (i = 0; i < 256; i++)
1467 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1478 ac_cv_header_stdc=no
1486 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1487 if test $ac_cv_header_stdc = yes; then
1488 cat >> confdefs.h <<\EOF
1489 #define STDC_HEADERS 1
1494 echo $ac_n "checking for working const""... $ac_c" 1>&6
1495 echo "configure:1496: checking for working const" >&5
1496 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1505 /* Ultrix mips cc rejects this. */
1506 typedef int charset[2]; const charset x;
1507 /* SunOS 4.1.1 cc rejects this. */
1508 char const *const *ccp;
1510 /* NEC SVR4.0.2 mips cc rejects this. */
1511 struct point {int x, y;};
1512 static struct point const zero = {0,0};
1513 /* AIX XL C 1.02.0.0 rejects this.
1514 It does not let you subtract one const X* pointer from another in an arm
1515 of an if-expression whose if-part is not a constant expression */
1516 const char *g = "string";
1517 ccp = &g + (g ? g-g : 0);
1518 /* HPUX 7.0 cc rejects these. */
1521 ccp = (char const *const *) p;
1522 { /* SCO 3.2v4 cc rejects this. */
1524 char const *s = 0 ? (char *) 0 : (char const *) 0;
1528 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1530 const int *foo = &x[0];
1533 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1534 typedef const int *iptr;
1538 { /* AIX XL C 1.02.0.0 rejects this saying
1539 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1540 struct s { int j; const int *ap[3]; };
1541 struct s *b; b->j = 5;
1543 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1549 if { (eval echo configure:1550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1561 echo "$ac_t""$ac_cv_c_const" 1>&6
1562 if test $ac_cv_c_const = no; then
1563 cat >> confdefs.h <<\EOF
1569 echo $ac_n "checking for inline""... $ac_c" 1>&6
1570 echo "configure:1571: checking for inline" >&5
1571 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1575 for ac_kw in inline __inline__ __inline; do
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1584 if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1586 ac_cv_c_inline=$ac_kw; break
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1596 echo "$ac_t""$ac_cv_c_inline" 1>&6
1597 case "$ac_cv_c_inline" in
1599 no) cat >> confdefs.h <<\EOF
1603 *) cat >> confdefs.h <<EOF
1604 #define inline $ac_cv_c_inline
1609 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1610 echo "configure:1611: checking for off_t" >&5
1611 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 #include <sys/types.h>
1623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1624 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1626 ac_cv_type_off_t=yes
1634 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1635 if test $ac_cv_type_off_t = no; then
1636 cat >> confdefs.h <<\EOF
1642 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1643 echo "configure:1644: checking for size_t" >&5
1644 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1650 #include <sys/types.h>
1656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1657 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1659 ac_cv_type_size_t=yes
1662 ac_cv_type_size_t=no
1667 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1668 if test $ac_cv_type_size_t = no; then
1669 cat >> confdefs.h <<\EOF
1670 #define size_t unsigned
1675 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1676 # for constant arguments. Useless!
1677 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1678 echo "configure:1679: checking for working alloca.h" >&5
1679 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 cat > conftest.$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1687 char *p = alloca(2 * sizeof(int));
1690 if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1692 ac_cv_header_alloca_h=yes
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1697 ac_cv_header_alloca_h=no
1702 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1703 if test $ac_cv_header_alloca_h = yes; then
1704 cat >> confdefs.h <<\EOF
1705 #define HAVE_ALLOCA_H 1
1710 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1711 echo "configure:1712: checking for alloca" >&5
1712 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1720 # define alloca __builtin_alloca
1723 # include <malloc.h>
1724 # define alloca _alloca
1727 # include <alloca.h>
1732 # ifndef alloca /* predefined by HP cc +Olibcalls */
1741 char *p = (char *) alloca(1);
1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1746 ac_cv_func_alloca_works=yes
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 ac_cv_func_alloca_works=no
1756 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1757 if test $ac_cv_func_alloca_works = yes; then
1758 cat >> confdefs.h <<\EOF
1759 #define HAVE_ALLOCA 1
1764 if test $ac_cv_func_alloca_works = no; then
1765 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1766 # that cause trouble. Some versions do not even contain alloca or
1767 # contain a buggy version. If you still want to use their alloca,
1768 # use ar to extract alloca.o from them instead of compiling alloca.c.
1769 ALLOCA=alloca.${ac_objext}
1770 cat >> confdefs.h <<\EOF
1775 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1776 echo "configure:1777: checking whether alloca needs Cray hooks" >&5
1777 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1783 #if defined(CRAY) && ! defined(CRAY2)
1790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1791 egrep "webecray" >/dev/null 2>&1; then
1802 echo "$ac_t""$ac_cv_os_cray" 1>&6
1803 if test $ac_cv_os_cray = yes; then
1804 for ac_func in _getb67 GETB67 getb67; do
1805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1806 echo "configure:1807: checking for $ac_func" >&5
1807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1813 /* System header to define __stub macros and hopefully few prototypes,
1814 which can conflict with char $ac_func(); below. */
1816 /* Override any gcc2 internal prototype to avoid an error. */
1817 /* We use char because int might match the return type of a gcc2
1818 builtin and then its argument prototype would still apply. */
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1834 if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1836 eval "ac_cv_func_$ac_func=yes"
1838 echo "configure: failed program was:" >&5
1839 cat conftest.$ac_ext >&5
1841 eval "ac_cv_func_$ac_func=no"
1846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1847 echo "$ac_t""yes" 1>&6
1848 cat >> confdefs.h <<EOF
1849 #define CRAY_STACKSEG_END $ac_func
1854 echo "$ac_t""no" 1>&6
1860 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1861 echo "configure:1862: checking stack direction for C alloca" >&5
1862 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 if test "$cross_compiling" = yes; then
1866 ac_cv_c_stack_direction=0
1868 cat > conftest.$ac_ext <<EOF
1869 #line 1870 "configure"
1870 #include "confdefs.h"
1871 find_stack_direction ()
1873 static char *addr = 0;
1878 return find_stack_direction ();
1881 return (&dummy > addr) ? 1 : -1;
1885 exit (find_stack_direction() < 0);
1888 if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1890 ac_cv_c_stack_direction=1
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1895 ac_cv_c_stack_direction=-1
1902 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1903 cat >> confdefs.h <<EOF
1904 #define STACK_DIRECTION $ac_cv_c_stack_direction
1909 for ac_hdr in unistd.h
1911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1913 echo "configure:1914: checking for $ac_hdr" >&5
1914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1923 { (eval echo configure:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1925 if test -z "$ac_err"; then
1927 eval "ac_cv_header_$ac_safe=yes"
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 eval "ac_cv_header_$ac_safe=no"
1937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1938 echo "$ac_t""yes" 1>&6
1939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1940 cat >> confdefs.h <<EOF
1941 #define $ac_tr_hdr 1
1945 echo "$ac_t""no" 1>&6
1949 for ac_func in getpagesize
1951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_func" >&5
1953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959 /* System header to define __stub macros and hopefully few prototypes,
1960 which can conflict with char $ac_func(); below. */
1962 /* Override any gcc2 internal prototype to avoid an error. */
1963 /* We use char because int might match the return type of a gcc2
1964 builtin and then its argument prototype would still apply. */
1969 /* The GNU C library defines this for functions which it implements
1970 to always fail with ENOSYS. Some functions are actually named
1971 something starting with __ and the normal name is an alias. */
1972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1980 if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1982 eval "ac_cv_func_$ac_func=yes"
1984 echo "configure: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1987 eval "ac_cv_func_$ac_func=no"
1992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1993 echo "$ac_t""yes" 1>&6
1994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1995 cat >> confdefs.h <<EOF
1996 #define $ac_tr_func 1
2000 echo "$ac_t""no" 1>&6
2004 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2005 echo "configure:2006: checking for working mmap" >&5
2006 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 if test "$cross_compiling" = yes; then
2010 ac_cv_func_mmap_fixed_mapped=no
2012 cat > conftest.$ac_ext <<EOF
2013 #line 2014 "configure"
2014 #include "confdefs.h"
2016 /* Thanks to Mike Haertel and Jim Avera for this test.
2017 Here is a matrix of mmap possibilities:
2018 mmap private not fixed
2019 mmap private fixed at somewhere currently unmapped
2020 mmap private fixed at somewhere already mapped
2021 mmap shared not fixed
2022 mmap shared fixed at somewhere currently unmapped
2023 mmap shared fixed at somewhere already mapped
2024 For private mappings, we should verify that changes cannot be read()
2025 back from the file, nor mmap's back from the file at a different
2026 address. (There have been systems where private was not correctly
2027 implemented like the infamous i386 svr4.0, and systems where the
2028 VM page cache was not coherent with the filesystem buffer cache
2029 like early versions of FreeBSD and possibly contemporary NetBSD.)
2030 For shared mappings, we should conversely verify that changes get
2031 propogated back to all the places they're supposed to be.
2033 Grep wants private fixed already mapped.
2034 The main things grep needs to know about mmap are:
2035 * does it exist and is it safe to write into the mmap'd area
2036 * how to use it (BSD variants) */
2037 #include <sys/types.h>
2039 #include <sys/mman.h>
2041 /* This mess was copied from the GNU getpagesize.h. */
2042 #ifndef HAVE_GETPAGESIZE
2043 # ifdef HAVE_UNISTD_H
2044 # include <unistd.h>
2047 /* Assume that all systems that can run configure have sys/param.h. */
2048 # ifndef HAVE_SYS_PARAM_H
2049 # define HAVE_SYS_PARAM_H 1
2052 # ifdef _SC_PAGESIZE
2053 # define getpagesize() sysconf(_SC_PAGESIZE)
2054 # else /* no _SC_PAGESIZE */
2055 # ifdef HAVE_SYS_PARAM_H
2056 # include <sys/param.h>
2057 # ifdef EXEC_PAGESIZE
2058 # define getpagesize() EXEC_PAGESIZE
2059 # else /* no EXEC_PAGESIZE */
2061 # define getpagesize() NBPG * CLSIZE
2064 # endif /* no CLSIZE */
2065 # else /* no NBPG */
2067 # define getpagesize() NBPC
2068 # else /* no NBPC */
2070 # define getpagesize() PAGESIZE
2071 # endif /* PAGESIZE */
2072 # endif /* no NBPC */
2073 # endif /* no NBPG */
2074 # endif /* no EXEC_PAGESIZE */
2075 # else /* no HAVE_SYS_PARAM_H */
2076 # define getpagesize() 8192 /* punt totally */
2077 # endif /* no HAVE_SYS_PARAM_H */
2078 # endif /* no _SC_PAGESIZE */
2080 #endif /* no HAVE_GETPAGESIZE */
2083 extern "C" { void *malloc(unsigned); }
2091 char *data, *data2, *data3;
2095 pagesize = getpagesize();
2098 * First, make a file with some known garbage in it.
2100 data = malloc(pagesize);
2103 for (i = 0; i < pagesize; ++i)
2104 *(data + i) = rand();
2106 fd = creat("conftestmmap", 0600);
2109 if (write(fd, data, pagesize) != pagesize)
2114 * Next, try to mmap the file at a fixed address which
2115 * already has something else allocated at it. If we can,
2116 * also make sure that we see the same garbage.
2118 fd = open("conftestmmap", O_RDWR);
2121 data2 = malloc(2 * pagesize);
2124 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2125 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2126 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2128 for (i = 0; i < pagesize; ++i)
2129 if (*(data + i) != *(data2 + i))
2133 * Finally, make sure that changes to the mapped area
2134 * do not percolate back to the file as seen by read().
2135 * (This is a bug on some variants of i386 svr4.0.)
2137 for (i = 0; i < pagesize; ++i)
2138 *(data2 + i) = *(data2 + i) + 1;
2139 data3 = malloc(pagesize);
2142 if (read(fd, data3, pagesize) != pagesize)
2144 for (i = 0; i < pagesize; ++i)
2145 if (*(data + i) != *(data3 + i))
2148 unlink("conftestmmap");
2153 if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2155 ac_cv_func_mmap_fixed_mapped=yes
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2160 ac_cv_func_mmap_fixed_mapped=no
2167 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2168 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2169 cat >> confdefs.h <<\EOF
2176 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2177 echo "configure:2178: checking whether we are using the GNU C Library 2.1 or newer" >&5
2178 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2181 cat > conftest.$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2185 #include <features.h>
2186 #ifdef __GNU_LIBRARY__
2187 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2194 egrep "Lucky GNU user" >/dev/null 2>&1; then
2196 ac_cv_gnu_library_2_1=yes
2199 ac_cv_gnu_library_2_1=no
2207 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2209 GLIBC21="$ac_cv_gnu_library_2_1"
2213 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2214 stdlib.h string.h unistd.h sys/param.h
2216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_hdr" >&5
2219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 cat > conftest.$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2228 { (eval echo configure:2229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2230 if test -z "$ac_err"; then
2232 eval "ac_cv_header_$ac_safe=yes"
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2238 eval "ac_cv_header_$ac_safe=no"
2242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2243 echo "$ac_t""yes" 1>&6
2244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2245 cat >> confdefs.h <<EOF
2246 #define $ac_tr_hdr 1
2250 echo "$ac_t""no" 1>&6
2254 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2255 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2256 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_func" >&5
2260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 /* System header to define __stub macros and hopefully few prototypes,
2267 which can conflict with char $ac_func(); below. */
2269 /* Override any gcc2 internal prototype to avoid an error. */
2270 /* We use char because int might match the return type of a gcc2
2271 builtin and then its argument prototype would still apply. */
2276 /* The GNU C library defines this for functions which it implements
2277 to always fail with ENOSYS. Some functions are actually named
2278 something starting with __ and the normal name is an alias. */
2279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2287 if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2289 eval "ac_cv_func_$ac_func=yes"
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 eval "ac_cv_func_$ac_func=no"
2299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2302 cat >> confdefs.h <<EOF
2303 #define $ac_tr_func 1
2307 echo "$ac_t""no" 1>&6
2314 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2315 if test "${with_libiconv_prefix+set}" = set; then
2316 withval="$with_libiconv_prefix"
2318 for dir in `echo "$withval" | tr : ' '`; do
2319 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2320 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2326 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2327 echo "configure:2328: checking for iconv" >&5
2328 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2332 am_cv_func_iconv="no, consider installing GNU libiconv"
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2340 iconv_t cd = iconv_open("","");
2341 iconv(cd,NULL,NULL,NULL,NULL);
2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2347 am_cv_func_iconv=yes
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2353 if test "$am_cv_func_iconv" != yes; then
2354 am_save_LIBS="$LIBS"
2355 LIBS="$LIBS -liconv"
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2362 iconv_t cd = iconv_open("","");
2363 iconv(cd,NULL,NULL,NULL,NULL);
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2370 am_cv_func_iconv=yes
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2376 LIBS="$am_save_LIBS"
2381 echo "$ac_t""$am_cv_func_iconv" 1>&6
2382 if test "$am_cv_func_iconv" = yes; then
2383 cat >> confdefs.h <<\EOF
2384 #define HAVE_ICONV 1
2387 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2388 echo "configure:2389: checking for iconv declaration" >&5
2389 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2393 cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2403 #if defined(__STDC__) || defined(__cplusplus)
2404 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2413 if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2415 am_cv_proto_iconv_arg1=""
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2420 am_cv_proto_iconv_arg1="const"
2423 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);"
2426 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2427 echo "$ac_t""${ac_t:-
2428 }$am_cv_proto_iconv" 1>&6
2429 cat >> confdefs.h <<EOF
2430 #define ICONV_CONST $am_cv_proto_iconv_arg1
2435 if test "$am_cv_lib_iconv" = yes; then
2441 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2442 echo "configure:2443: checking for nl_langinfo and CODESET" >&5
2443 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 #include <langinfo.h>
2451 char* cs = nl_langinfo(CODESET);
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2456 am_cv_langinfo_codeset=yes
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2461 am_cv_langinfo_codeset=no
2467 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2468 if test $am_cv_langinfo_codeset = yes; then
2469 cat >> confdefs.h <<\EOF
2470 #define HAVE_LANGINFO_CODESET 1
2475 if test $ac_cv_header_locale_h = yes; then
2476 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2477 echo "configure:2478: checking for LC_MESSAGES" >&5
2478 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491 am_cv_val_LC_MESSAGES=yes
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2496 am_cv_val_LC_MESSAGES=no
2501 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2502 if test $am_cv_val_LC_MESSAGES = yes; then
2503 cat >> confdefs.h <<\EOF
2504 #define HAVE_LC_MESSAGES 1
2509 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2510 echo "configure:2511: checking whether NLS is requested" >&5
2511 # Check whether --enable-nls or --disable-nls was given.
2512 if test "${enable_nls+set}" = set; then
2513 enableval="$enable_nls"
2519 echo "$ac_t""$USE_NLS" 1>&6
2522 BUILD_INCLUDED_LIBINTL=no
2523 USE_INCLUDED_LIBINTL=no
2526 if test "$USE_NLS" = "yes"; then
2527 cat >> confdefs.h <<\EOF
2528 #define ENABLE_NLS 1
2531 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2532 echo "configure:2533: checking whether included gettext is requested" >&5
2533 # Check whether --with-included-gettext or --without-included-gettext was given.
2534 if test "${with_included_gettext+set}" = set; then
2535 withval="$with_included_gettext"
2536 nls_cv_force_use_gnu_gettext=$withval
2538 nls_cv_force_use_gnu_gettext=no
2541 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2543 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2544 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2550 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2551 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2552 echo "configure:2553: checking for libintl.h" >&5
2553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2559 #include <libintl.h>
2561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2562 { (eval echo configure:2563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2564 if test -z "$ac_err"; then
2566 eval "ac_cv_header_$ac_safe=yes"
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2572 eval "ac_cv_header_$ac_safe=no"
2576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2577 echo "$ac_t""yes" 1>&6
2578 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2579 echo "configure:2580: checking for GNU gettext in libc" >&5
2580 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <libintl.h>
2587 extern int _nl_msg_cat_cntr;
2589 bindtextdomain ("", "");
2590 return (int) gettext ("") + _nl_msg_cat_cntr
2593 if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2595 gt_cv_func_gnugettext1_libc=yes
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2600 gt_cv_func_gnugettext1_libc=no
2605 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2607 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2608 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2609 echo "configure:2610: checking for GNU gettext in libintl" >&5
2610 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 gt_save_LIBS="$LIBS"
2614 LIBS="$LIBS -lintl $LIBICONV"
2615 cat > conftest.$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2618 #include <libintl.h>
2619 extern int _nl_msg_cat_cntr;
2621 bindtextdomain ("", "");
2622 return (int) gettext ("") + _nl_msg_cat_cntr
2625 if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2627 gt_cv_func_gnugettext1_libintl=yes
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2632 gt_cv_func_gnugettext1_libintl=no
2635 LIBS="$gt_save_LIBS"
2638 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2641 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2642 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2643 && test "$PACKAGE" != gettext; }; then
2644 cat >> confdefs.h <<\EOF
2645 #define HAVE_GETTEXT 1
2649 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2650 INTLLIBS="-lintl $LIBICONV"
2653 gt_save_LIBS="$LIBS"
2654 LIBS="$LIBS $INTLLIBS"
2655 for ac_func in dcgettext
2657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_func" >&5
2659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 /* System header to define __stub macros and hopefully few prototypes,
2666 which can conflict with char $ac_func(); below. */
2668 /* Override any gcc2 internal prototype to avoid an error. */
2669 /* We use char because int might match the return type of a gcc2
2670 builtin and then its argument prototype would still apply. */
2675 /* The GNU C library defines this for functions which it implements
2676 to always fail with ENOSYS. Some functions are actually named
2677 something starting with __ and the normal name is an alias. */
2678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2686 if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2688 eval "ac_cv_func_$ac_func=yes"
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2693 eval "ac_cv_func_$ac_func=no"
2698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2699 echo "$ac_t""yes" 1>&6
2700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2701 cat >> confdefs.h <<EOF
2702 #define $ac_tr_func 1
2706 echo "$ac_t""no" 1>&6
2710 LIBS="$gt_save_LIBS"
2712 # Extract the first word of "msgfmt", so it can be a program name with args.
2713 set dummy msgfmt; ac_word=$2
2714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2715 echo "configure:2716: checking for $ac_word" >&5
2716 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2721 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2725 for ac_dir in $PATH; do
2726 test -z "$ac_dir" && ac_dir=.
2727 if test -f $ac_dir/$ac_word; then
2728 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2729 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2735 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2739 MSGFMT="$ac_cv_path_MSGFMT"
2740 if test "$MSGFMT" != ":"; then
2741 echo "$ac_t""$MSGFMT" 1>&6
2743 echo "$ac_t""no" 1>&6
2746 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2747 set dummy gmsgfmt; ac_word=$2
2748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2749 echo "configure:2750: checking for $ac_word" >&5
2750 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2755 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2758 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2763 for ac_dir in $ac_dummy; do
2764 test -z "$ac_dir" && ac_dir=.
2765 if test -f $ac_dir/$ac_word; then
2766 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2771 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2775 GMSGFMT="$ac_cv_path_GMSGFMT"
2776 if test -n "$GMSGFMT"; then
2777 echo "$ac_t""$GMSGFMT" 1>&6
2779 echo "$ac_t""no" 1>&6
2783 # Extract the first word of "xgettext", so it can be a program name with args.
2784 set dummy xgettext; ac_word=$2
2785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2786 echo "configure:2787: checking for $ac_word" >&5
2787 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2792 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2796 for ac_dir in $PATH; do
2797 test -z "$ac_dir" && ac_dir=.
2798 if test -f $ac_dir/$ac_word; then
2799 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2800 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2806 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2810 XGETTEXT="$ac_cv_path_XGETTEXT"
2811 if test "$XGETTEXT" != ":"; then
2812 echo "$ac_t""$XGETTEXT" 1>&6
2814 echo "$ac_t""no" 1>&6
2822 echo "$ac_t""no" 1>&6
2826 if test "$CATOBJEXT" = "NONE"; then
2827 nls_cv_use_gnu_gettext=yes
2831 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2832 INTLOBJS="\$(GETTOBJS)"
2833 # Extract the first word of "msgfmt", so it can be a program name with args.
2834 set dummy msgfmt; ac_word=$2
2835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2836 echo "configure:2837: checking for $ac_word" >&5
2837 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2838 echo $ac_n "(cached) $ac_c" 1>&6
2842 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2846 for ac_dir in $PATH; do
2847 test -z "$ac_dir" && ac_dir=.
2848 if test -f $ac_dir/$ac_word; then
2849 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2850 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2856 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2860 MSGFMT="$ac_cv_path_MSGFMT"
2861 if test "$MSGFMT" != ":"; then
2862 echo "$ac_t""$MSGFMT" 1>&6
2864 echo "$ac_t""no" 1>&6
2867 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2868 set dummy gmsgfmt; ac_word=$2
2869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2870 echo "configure:2871: checking for $ac_word" >&5
2871 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2876 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2879 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2884 for ac_dir in $ac_dummy; do
2885 test -z "$ac_dir" && ac_dir=.
2886 if test -f $ac_dir/$ac_word; then
2887 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2892 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2896 GMSGFMT="$ac_cv_path_GMSGFMT"
2897 if test -n "$GMSGFMT"; then
2898 echo "$ac_t""$GMSGFMT" 1>&6
2900 echo "$ac_t""no" 1>&6
2903 # Extract the first word of "xgettext", so it can be a program name with args.
2904 set dummy xgettext; ac_word=$2
2905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_word" >&5
2907 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2912 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2916 for ac_dir in $PATH; do
2917 test -z "$ac_dir" && ac_dir=.
2918 if test -f $ac_dir/$ac_word; then
2919 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2920 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2926 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2930 XGETTEXT="$ac_cv_path_XGETTEXT"
2931 if test "$XGETTEXT" != ":"; then
2932 echo "$ac_t""$XGETTEXT" 1>&6
2934 echo "$ac_t""no" 1>&6
2938 BUILD_INCLUDED_LIBINTL=yes
2939 USE_INCLUDED_LIBINTL=yes
2941 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2942 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2945 if test "$GMSGFMT" != ":"; then
2946 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2949 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2954 if test "$XGETTEXT" != ":"; then
2955 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2958 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2968 if test "$PACKAGE" = gettext; then
2969 BUILD_INCLUDED_LIBINTL=yes
2972 for ac_prog in bison
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy $ac_prog; ac_word=$2
2976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2977 echo "configure:2978: checking for $ac_word" >&5
2978 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 if test -n "$INTLBISON"; then
2982 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2986 for ac_dir in $ac_dummy; do
2987 test -z "$ac_dir" && ac_dir=.
2988 if test -f $ac_dir/$ac_word; then
2989 ac_cv_prog_INTLBISON="$ac_prog"
2996 INTLBISON="$ac_cv_prog_INTLBISON"
2997 if test -n "$INTLBISON"; then
2998 echo "$ac_t""$INTLBISON" 1>&6
3000 echo "$ac_t""no" 1>&6
3003 test -n "$INTLBISON" && break
3006 if test -z "$INTLBISON"; then
3009 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3010 echo "configure:3011: checking version of bison" >&5
3011 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3012 case $ac_prog_version in
3013 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3014 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3015 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3016 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3018 echo "$ac_t""$ac_prog_version" 1>&6
3020 if test $ac_verc_fail = yes; then
3024 for lang in $ALL_LINGUAS; do
3025 GMOFILES="$GMOFILES $lang.gmo"
3026 POFILES="$POFILES $lang.po"
3040 nls_cv_header_libgt=
3052 if test "x$CATOBJEXT" != "x"; then
3053 if test "x$ALL_LINGUAS" = "x"; then
3056 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3057 echo "configure:3058: checking for catalogs to be installed" >&5
3059 for presentlang in $ALL_LINGUAS; do
3061 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3062 # Use the presentlang catalog if desiredlang is
3063 # a. equal to presentlang, or
3064 # b. a variant of presentlang (because in this case,
3065 # presentlang can be used as a fallback for messages
3066 # which are not translated in the desiredlang catalog).
3067 case "$desiredlang" in
3068 "$presentlang"*) useit=yes;;
3071 if test $useit = yes; then
3072 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3075 LINGUAS=$NEW_LINGUAS
3076 echo "$ac_t""$LINGUAS" 1>&6
3079 if test -n "$LINGUAS"; then
3080 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3085 if test -n "$ac_aux_dir"; then
3086 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3088 if test -z "$MKINSTALLDIRS"; then
3089 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3093 INTL_LIBTOOL_SUFFIX_PREFIX=
3097 # Find a good install program. We prefer a C program (faster),
3098 # so one script is as good as another. But avoid the broken or
3099 # incompatible versions:
3100 # SysV /etc/install, /usr/sbin/install
3101 # SunOS /usr/etc/install
3102 # IRIX /sbin/install
3104 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3105 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3106 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3107 # ./install, which can be erroneously created by make from ./install.sh.
3108 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3109 echo "configure:3110: checking for a BSD compatible install" >&5
3110 if test -z "$INSTALL"; then
3111 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3114 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3115 for ac_dir in $PATH; do
3116 # Account for people who put trailing slashes in PATH elements.
3118 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3120 # OSF1 and SCO ODT 3.0 have their own names for install.
3121 # Don't use installbsd from OSF since it installs stuff as root
3123 for ac_prog in ginstall scoinst install; do
3124 if test -f $ac_dir/$ac_prog; then
3125 if test $ac_prog = install &&
3126 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3127 # AIX install. It has an incompatible calling convention.
3130 ac_cv_path_install="$ac_dir/$ac_prog -c"
3141 if test "${ac_cv_path_install+set}" = set; then
3142 INSTALL="$ac_cv_path_install"
3144 # As a last resort, use the slow shell script. We don't cache a
3145 # path for INSTALL within a source directory, because that will
3146 # break other packages using the cache if that directory is
3147 # removed, or if the path is relative.
3148 INSTALL="$ac_install_sh"
3151 echo "$ac_t""$INSTALL" 1>&6
3153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3154 # It thinks the first close brace ends the variable substitution.
3155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3162 case x"${target_os}" in
3171 save_CFLAGS="${save_CFLAGS} -pthread"
3172 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3173 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3177 save_CFLAGS="${save_CFLAGS} -pthread"
3181 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3185 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3186 set dummy ${ac_tool_prefix}windres; ac_word=$2
3187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3188 echo "configure:3189: checking for $ac_word" >&5
3189 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 if test -n "$WINDRES"; then
3193 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3197 for ac_dir in $ac_dummy; do
3198 test -z "$ac_dir" && ac_dir=.
3199 if test -f $ac_dir/$ac_word; then
3200 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3207 WINDRES="$ac_cv_prog_WINDRES"
3208 if test -n "$WINDRES"; then
3209 echo "$ac_t""$WINDRES" 1>&6
3211 echo "$ac_t""no" 1>&6
3215 if test -z "$ac_cv_prog_WINDRES"; then
3216 if test -n "$ac_tool_prefix"; then
3217 # Extract the first word of "windres", so it can be a program name with args.
3218 set dummy windres; ac_word=$2
3219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_word" >&5
3221 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 if test -n "$WINDRES"; then
3225 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3229 for ac_dir in $ac_dummy; do
3230 test -z "$ac_dir" && ac_dir=.
3231 if test -f $ac_dir/$ac_word; then
3232 ac_cv_prog_WINDRES="windres"
3237 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3240 WINDRES="$ac_cv_prog_WINDRES"
3241 if test -n "$WINDRES"; then
3242 echo "$ac_t""$WINDRES" 1>&6
3244 echo "$ac_t""no" 1>&6
3252 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3253 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3254 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3255 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3256 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3260 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3261 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3265 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3266 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3267 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3268 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3269 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3276 if test x"${SYS}" = xmingw32
3278 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3280 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3283 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3285 for ac_func in gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3288 echo "configure:3289: checking for $ac_func" >&5
3289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* System header to define __stub macros and hopefully few prototypes,
3296 which can conflict with char $ac_func(); below. */
3298 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
3305 /* The GNU C library defines this for functions which it implements
3306 to always fail with ENOSYS. Some functions are actually named
3307 something starting with __ and the normal name is an alias. */
3308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 eval "ac_cv_func_$ac_func=yes"
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 eval "ac_cv_func_$ac_func=no"
3328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3329 echo "$ac_t""yes" 1>&6
3330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3331 cat >> confdefs.h <<EOF
3332 #define $ac_tr_func 1
3336 echo "$ac_t""no" 1>&6
3341 echo $ac_n "checking for connect""... $ac_c" 1>&6
3342 echo "configure:3343: checking for connect" >&5
3343 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 /* System header to define __stub macros and hopefully few prototypes,
3350 which can conflict with char connect(); below. */
3352 /* Override any gcc2 internal prototype to avoid an error. */
3353 /* We use char because int might match the return type of a gcc2
3354 builtin and then its argument prototype would still apply. */
3359 /* The GNU C library defines this for functions which it implements
3360 to always fail with ENOSYS. Some functions are actually named
3361 something starting with __ and the normal name is an alias. */
3362 #if defined (__stub_connect) || defined (__stub___connect)
3370 if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3372 eval "ac_cv_func_connect=yes"
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 eval "ac_cv_func_connect=no"
3382 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3383 echo "$ac_t""yes" 1>&6
3386 echo "$ac_t""no" 1>&6
3388 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3389 echo "configure:3390: checking for connect in -lsocket" >&5
3390 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 ac_save_LIBS="$LIBS"
3395 LIBS="-lsocket $LIBS"
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* Override any gcc2 internal prototype to avoid an error. */
3400 /* We use char because int might match the return type of a gcc2
3401 builtin and then its argument prototype would still apply. */
3408 if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3410 eval "ac_cv_lib_$ac_lib_var=yes"
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3415 eval "ac_cv_lib_$ac_lib_var=no"
3418 LIBS="$ac_save_LIBS"
3421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3422 echo "$ac_t""yes" 1>&6
3423 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3424 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3427 echo "$ac_t""no" 1>&6
3432 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3433 echo "configure:3434: checking for gethostbyname" >&5
3434 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 /* System header to define __stub macros and hopefully few prototypes,
3441 which can conflict with char gethostbyname(); below. */
3443 /* Override any gcc2 internal prototype to avoid an error. */
3444 /* We use char because int might match the return type of a gcc2
3445 builtin and then its argument prototype would still apply. */
3446 char gethostbyname();
3450 /* The GNU C library defines this for functions which it implements
3451 to always fail with ENOSYS. Some functions are actually named
3452 something starting with __ and the normal name is an alias. */
3453 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3461 if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3463 eval "ac_cv_func_gethostbyname=yes"
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3468 eval "ac_cv_func_gethostbyname=no"
3473 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6
3477 echo "$ac_t""no" 1>&6
3479 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3480 echo "configure:3481: checking for gethostbyname in -lnsl" >&5
3481 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 ac_save_LIBS="$LIBS"
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 /* Override any gcc2 internal prototype to avoid an error. */
3491 /* We use char because int might match the return type of a gcc2
3492 builtin and then its argument prototype would still apply. */
3493 char gethostbyname();
3499 if { (eval echo configure:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3501 eval "ac_cv_lib_$ac_lib_var=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3506 eval "ac_cv_lib_$ac_lib_var=no"
3509 LIBS="$ac_save_LIBS"
3512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3514 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3516 echo "$ac_t""no" 1>&6
3522 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3523 echo "configure:3524: checking for gethostbyname" >&5
3524 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* System header to define __stub macros and hopefully few prototypes,
3531 which can conflict with char gethostbyname(); below. */
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 /* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3536 char gethostbyname();
3540 /* The GNU C library defines this for functions which it implements
3541 to always fail with ENOSYS. Some functions are actually named
3542 something starting with __ and the normal name is an alias. */
3543 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3553 eval "ac_cv_func_gethostbyname=yes"
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3558 eval "ac_cv_func_gethostbyname=no"
3563 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3567 echo "$ac_t""no" 1>&6
3569 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3570 echo "configure:3571: checking for gethostbyname in -lbind" >&5
3571 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 ac_save_LIBS="$LIBS"
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 /* Override any gcc2 internal prototype to avoid an error. */
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3583 char gethostbyname();
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3591 eval "ac_cv_lib_$ac_lib_var=yes"
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 eval "ac_cv_lib_$ac_lib_var=no"
3599 LIBS="$ac_save_LIBS"
3602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3604 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3606 echo "$ac_t""no" 1>&6
3612 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3613 echo "configure:3614: checking for nanosleep" >&5
3614 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 /* System header to define __stub macros and hopefully few prototypes,
3621 which can conflict with char nanosleep(); below. */
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 /* We use char because int might match the return type of a gcc2
3625 builtin and then its argument prototype would still apply. */
3630 /* The GNU C library defines this for functions which it implements
3631 to always fail with ENOSYS. Some functions are actually named
3632 something starting with __ and the normal name is an alias. */
3633 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3641 if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3643 eval "ac_cv_func_nanosleep=yes"
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 eval "ac_cv_func_nanosleep=no"
3653 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3654 echo "$ac_t""yes" 1>&6
3657 echo "$ac_t""no" 1>&6
3659 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3660 echo "configure:3661: checking for nanosleep in -lrt" >&5
3661 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3665 ac_save_LIBS="$LIBS"
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 /* Override any gcc2 internal prototype to avoid an error. */
3671 /* We use char because int might match the return type of a gcc2
3672 builtin and then its argument prototype would still apply. */
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3681 eval "ac_cv_lib_$ac_lib_var=yes"
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 eval "ac_cv_lib_$ac_lib_var=no"
3689 LIBS="$ac_save_LIBS"
3692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3693 echo "$ac_t""yes" 1>&6
3694 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3696 echo "$ac_t""no" 1>&6
3698 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3699 echo "configure:3700: checking for nanosleep in -lposix4" >&5
3700 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 ac_save_LIBS="$LIBS"
3705 LIBS="-lposix4 $LIBS"
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 /* Override any gcc2 internal prototype to avoid an error. */
3710 /* We use char because int might match the return type of a gcc2
3711 builtin and then its argument prototype would still apply. */
3718 if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3720 eval "ac_cv_lib_$ac_lib_var=yes"
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 eval "ac_cv_lib_$ac_lib_var=no"
3728 LIBS="$ac_save_LIBS"
3731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3732 echo "$ac_t""yes" 1>&6
3733 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3735 echo "$ac_t""no" 1>&6
3744 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3745 echo "configure:3746: checking for inet_aton" >&5
3746 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 /* System header to define __stub macros and hopefully few prototypes,
3753 which can conflict with char inet_aton(); below. */
3755 /* Override any gcc2 internal prototype to avoid an error. */
3756 /* We use char because int might match the return type of a gcc2
3757 builtin and then its argument prototype would still apply. */
3762 /* The GNU C library defines this for functions which it implements
3763 to always fail with ENOSYS. Some functions are actually named
3764 something starting with __ and the normal name is an alias. */
3765 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3773 if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3775 eval "ac_cv_func_inet_aton=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3780 eval "ac_cv_func_inet_aton=no"
3785 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3789 echo "$ac_t""no" 1>&6
3791 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3792 echo "configure:3793: checking for inet_aton in -lresolv" >&5
3793 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 ac_save_LIBS="$LIBS"
3798 LIBS="-lresolv $LIBS"
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 /* Override any gcc2 internal prototype to avoid an error. */
3803 /* We use char because int might match the return type of a gcc2
3804 builtin and then its argument prototype would still apply. */
3811 if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3813 eval "ac_cv_lib_$ac_lib_var=yes"
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3818 eval "ac_cv_lib_$ac_lib_var=no"
3821 LIBS="$ac_save_LIBS"
3824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3825 echo "$ac_t""yes" 1>&6
3826 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3828 echo "$ac_t""no" 1>&6
3834 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3835 echo "configure:3836: checking for textdomain" >&5
3836 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 cat > conftest.$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3842 /* System header to define __stub macros and hopefully few prototypes,
3843 which can conflict with char textdomain(); below. */
3845 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3852 /* The GNU C library defines this for functions which it implements
3853 to always fail with ENOSYS. Some functions are actually named
3854 something starting with __ and the normal name is an alias. */
3855 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3863 if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3865 eval "ac_cv_func_textdomain=yes"
3867 echo "configure: failed program was:" >&5
3868 cat conftest.$ac_ext >&5
3870 eval "ac_cv_func_textdomain=no"
3875 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3879 echo "$ac_t""no" 1>&6
3881 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3882 echo "configure:3883: checking for textdomain in -lintl" >&5
3883 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3887 ac_save_LIBS="$LIBS"
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 /* We use char because int might match the return type of a gcc2
3894 builtin and then its argument prototype would still apply. */
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3903 eval "ac_cv_lib_$ac_lib_var=yes"
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 eval "ac_cv_lib_$ac_lib_var=no"
3911 LIBS="$ac_save_LIBS"
3914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3915 echo "$ac_t""yes" 1>&6
3916 save_LDFLAGS="${save_LDFLAGS} -lintl"
3918 echo "$ac_t""no" 1>&6
3926 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3927 echo "configure:3928: checking for getopt_long" >&5
3928 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3931 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3934 /* System header to define __stub macros and hopefully few prototypes,
3935 which can conflict with char getopt_long(); below. */
3937 /* Override any gcc2 internal prototype to avoid an error. */
3938 /* We use char because int might match the return type of a gcc2
3939 builtin and then its argument prototype would still apply. */
3944 /* The GNU C library defines this for functions which it implements
3945 to always fail with ENOSYS. Some functions are actually named
3946 something starting with __ and the normal name is an alias. */
3947 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3955 if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3957 eval "ac_cv_func_getopt_long=yes"
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3962 eval "ac_cv_func_getopt_long=no"
3967 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3968 echo "$ac_t""yes" 1>&6
3969 cat >> confdefs.h <<\EOF
3970 #define HAVE_GETOPT_LONG 1
3974 echo "$ac_t""no" 1>&6
3975 # FreeBSD has a gnugetopt library for this:
3976 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3977 echo "configure:3978: checking for getopt_long in -lgnugetopt" >&5
3978 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3982 ac_save_LIBS="$LIBS"
3983 LIBS="-lgnugetopt $LIBS"
3984 cat > conftest.$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3987 /* Override any gcc2 internal prototype to avoid an error. */
3988 /* We use char because int might match the return type of a gcc2
3989 builtin and then its argument prototype would still apply. */
3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3998 eval "ac_cv_lib_$ac_lib_var=yes"
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4003 eval "ac_cv_lib_$ac_lib_var=no"
4006 LIBS="$ac_save_LIBS"
4009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011 cat >> confdefs.h <<\EOF
4012 #define HAVE_GETOPT_LONG 1
4014 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4016 echo "$ac_t""no" 1>&6
4023 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4024 echo "configure:4025: checking return type of signal handlers" >&5
4025 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4028 cat > conftest.$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4031 #include <sys/types.h>
4037 extern "C" void (*signal (int, void (*)(int)))(int);
4039 void (*signal ()) ();
4046 if { (eval echo configure:4047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4048 ac_cv_type_signal=void
4050 echo "configure: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4053 ac_cv_type_signal=int
4058 echo "$ac_t""$ac_cv_type_signal" 1>&6
4059 cat >> confdefs.h <<EOF
4060 #define RETSIGTYPE $ac_cv_type_signal
4064 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4065 echo "configure:4066: checking for dlopen in -ldl" >&5
4066 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4070 ac_save_LIBS="$LIBS"
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 /* Override any gcc2 internal prototype to avoid an error. */
4076 /* We use char because int might match the return type of a gcc2
4077 builtin and then its argument prototype would still apply. */
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4086 eval "ac_cv_lib_$ac_lib_var=yes"
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4091 eval "ac_cv_lib_$ac_lib_var=no"
4094 LIBS="$ac_save_LIBS"
4097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4098 echo "$ac_t""yes" 1>&6
4099 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4101 echo "$ac_t""no" 1>&6
4104 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4105 echo "configure:4106: checking for cos in -lm" >&5
4106 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4110 ac_save_LIBS="$LIBS"
4112 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 /* Override any gcc2 internal prototype to avoid an error. */
4116 /* We use char because int might match the return type of a gcc2
4117 builtin and then its argument prototype would still apply. */
4124 if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4126 eval "ac_cv_lib_$ac_lib_var=yes"
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 eval "ac_cv_lib_$ac_lib_var=no"
4134 LIBS="$ac_save_LIBS"
4137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6
4139 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4140 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4142 echo "$ac_t""no" 1>&6
4145 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4146 echo "configure:4147: checking for pow in -lm" >&5
4147 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4151 ac_save_LIBS="$LIBS"
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4167 eval "ac_cv_lib_$ac_lib_var=yes"
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4172 eval "ac_cv_lib_$ac_lib_var=no"
4175 LIBS="$ac_save_LIBS"
4178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4180 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4181 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4182 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4183 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4186 echo "$ac_t""no" 1>&6
4191 if test "x${THREAD_LIB}" = xerror; then
4192 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4193 echo "configure:4194: checking for pthread_attr_init in -lpthread" >&5
4194 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 ac_save_LIBS="$LIBS"
4199 LIBS="-lpthread $LIBS"
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 /* Override any gcc2 internal prototype to avoid an error. */
4204 /* We use char because int might match the return type of a gcc2
4205 builtin and then its argument prototype would still apply. */
4206 char pthread_attr_init();
4212 if { (eval echo configure:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4214 eval "ac_cv_lib_$ac_lib_var=yes"
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4219 eval "ac_cv_lib_$ac_lib_var=no"
4222 LIBS="$ac_save_LIBS"
4225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4226 echo "$ac_t""yes" 1>&6
4227 THREAD_LIB="-lpthread"
4229 echo "$ac_t""no" 1>&6
4233 if test "x${THREAD_LIB}" = xerror; then
4234 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4235 echo "configure:4236: checking for pthread_attr_init in -lpthreads" >&5
4236 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 ac_save_LIBS="$LIBS"
4241 LIBS="-lpthreads $LIBS"
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 /* Override any gcc2 internal prototype to avoid an error. */
4246 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4248 char pthread_attr_init();
4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4256 eval "ac_cv_lib_$ac_lib_var=yes"
4258 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4261 eval "ac_cv_lib_$ac_lib_var=no"
4264 LIBS="$ac_save_LIBS"
4267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4268 echo "$ac_t""yes" 1>&6
4269 THREAD_LIB="-lpthreads"
4271 echo "$ac_t""no" 1>&6
4275 if test "x${THREAD_LIB}" = xerror; then
4276 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4277 echo "configure:4278: checking for pthread_attr_init in -lc_r" >&5
4278 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4282 ac_save_LIBS="$LIBS"
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 /* Override any gcc2 internal prototype to avoid an error. */
4288 /* We use char because int might match the return type of a gcc2
4289 builtin and then its argument prototype would still apply. */
4290 char pthread_attr_init();
4296 if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4298 eval "ac_cv_lib_$ac_lib_var=yes"
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4303 eval "ac_cv_lib_$ac_lib_var=no"
4306 LIBS="$ac_save_LIBS"
4309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4313 echo "$ac_t""no" 1>&6
4317 if test "x${THREAD_LIB}" = xerror; then
4318 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4319 echo "configure:4320: checking for pthread_attr_init" >&5
4320 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 /* System header to define __stub macros and hopefully few prototypes,
4327 which can conflict with char pthread_attr_init(); below. */
4329 /* Override any gcc2 internal prototype to avoid an error. */
4330 /* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4332 char pthread_attr_init();
4336 /* The GNU C library defines this for functions which it implements
4337 to always fail with ENOSYS. Some functions are actually named
4338 something starting with __ and the normal name is an alias. */
4339 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4342 pthread_attr_init();
4347 if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4349 eval "ac_cv_func_pthread_attr_init=yes"
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4354 eval "ac_cv_func_pthread_attr_init=no"
4359 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4360 echo "$ac_t""yes" 1>&6
4363 echo "$ac_t""no" 1>&6
4369 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4370 echo "configure:4371: checking for cthread_fork in -lthreads" >&5
4371 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 ac_save_LIBS="$LIBS"
4376 LIBS="-lthreads $LIBS"
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4383 char cthread_fork();
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4391 eval "ac_cv_lib_$ac_lib_var=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 eval "ac_cv_lib_$ac_lib_var=no"
4399 LIBS="$ac_save_LIBS"
4402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4404 THREAD_LIB="-lthreads"
4406 echo "$ac_t""no" 1>&6
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 #include <pthread.h>
4415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4416 egrep "pthread_cond_t" >/dev/null 2>&1; then
4419 cat >> confdefs.h <<\EOF
4420 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 #include <strings.h>
4431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4432 egrep "strncasecmp" >/dev/null 2>&1; then
4435 cat >> confdefs.h <<\EOF
4436 #define STRNCASECMP_IN_STRINGS_H 1
4443 for ac_hdr in getopt.h strings.h
4445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4447 echo "configure:4448: checking for $ac_hdr" >&5
4448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4457 { (eval echo configure:4458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4459 if test -z "$ac_err"; then
4461 eval "ac_cv_header_$ac_safe=yes"
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4467 eval "ac_cv_header_$ac_safe=no"
4471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4474 cat >> confdefs.h <<EOF
4475 #define $ac_tr_hdr 1
4479 echo "$ac_t""no" 1>&6
4483 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_hdr" >&5
4488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4497 { (eval echo configure:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4499 if test -z "$ac_err"; then
4501 eval "ac_cv_header_$ac_safe=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4507 eval "ac_cv_header_$ac_safe=no"
4511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_hdr 1
4519 echo "$ac_t""no" 1>&6
4523 for ac_hdr in dlfcn.h image.h
4525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4527 echo "configure:4528: checking for $ac_hdr" >&5
4528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4537 { (eval echo configure:4538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4539 if test -z "$ac_err"; then
4541 eval "ac_cv_header_$ac_safe=yes"
4544 echo "configure: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4547 eval "ac_cv_header_$ac_safe=no"
4551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4552 echo "$ac_t""yes" 1>&6
4553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4554 cat >> confdefs.h <<EOF
4555 #define $ac_tr_hdr 1
4559 echo "$ac_t""no" 1>&6
4563 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4567 echo "configure:4568: checking for $ac_hdr" >&5
4568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4577 { (eval echo configure:4578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4579 if test -z "$ac_err"; then
4581 eval "ac_cv_header_$ac_safe=yes"
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4587 eval "ac_cv_header_$ac_safe=no"
4591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4594 cat >> confdefs.h <<EOF
4595 #define $ac_tr_hdr 1
4599 echo "$ac_t""no" 1>&6
4603 for ac_hdr in machine/param.h sys/shm.h
4605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4607 echo "configure:4608: checking for $ac_hdr" >&5
4608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4617 { (eval echo configure:4618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4619 if test -z "$ac_err"; then
4621 eval "ac_cv_header_$ac_safe=yes"
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4627 eval "ac_cv_header_$ac_safe=no"
4631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4634 cat >> confdefs.h <<EOF
4635 #define $ac_tr_hdr 1
4639 echo "$ac_t""no" 1>&6
4643 for ac_hdr in linux/version.h
4645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4647 echo "configure:4648: checking for $ac_hdr" >&5
4648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4657 { (eval echo configure:4658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4659 if test -z "$ac_err"; then
4661 eval "ac_cv_header_$ac_safe=yes"
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4667 eval "ac_cv_header_$ac_safe=no"
4671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4674 cat >> confdefs.h <<EOF
4675 #define $ac_tr_hdr 1
4679 echo "$ac_t""no" 1>&6
4684 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4685 echo "configure:4686: checking whether time.h and sys/time.h may both be included" >&5
4686 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4692 #include <sys/types.h>
4693 #include <sys/time.h>
4699 if { (eval echo configure:4700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4701 ac_cv_header_time=yes
4703 echo "configure: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
4706 ac_cv_header_time=no
4711 echo "$ac_t""$ac_cv_header_time" 1>&6
4712 if test $ac_cv_header_time = yes; then
4713 cat >> confdefs.h <<\EOF
4714 #define TIME_WITH_SYS_TIME 1
4720 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4724 echo "configure:4725: checking for $ac_hdr" >&5
4725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4734 { (eval echo configure:4735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4736 if test -z "$ac_err"; then
4738 eval "ac_cv_header_$ac_safe=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4744 eval "ac_cv_header_$ac_safe=no"
4748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4751 cat >> confdefs.h <<EOF
4752 #define $ac_tr_hdr 1
4756 echo "$ac_t""no" 1>&6
4761 if test x$SYS != xmingw32
4763 if test x$x_includes = xNONE; then
4764 x_includes=/usr/X11R6/include
4766 if test x$x_libraries = xNONE; then
4767 x_libraries=/usr/X11R6/lib
4769 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4770 for ac_hdr in X11/extensions/dpms.h
4772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_hdr" >&5
4775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4784 { (eval echo configure:4785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4786 if test -z "$ac_err"; then
4788 eval "ac_cv_header_$ac_safe=yes"
4791 echo "configure: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4794 eval "ac_cv_header_$ac_safe=no"
4798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4801 cat >> confdefs.h <<EOF
4802 #define $ac_tr_hdr 1
4805 cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4808 #include <X11/extensions/dpms.h>
4810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4811 egrep "DPMSInfo" >/dev/null 2>&1; then
4814 cat >> confdefs.h <<\EOF
4815 #define DPMSINFO_IN_DPMS_H 1
4824 echo "$ac_t""no" 1>&6
4828 CPPFLAGS="$save_CPPFLAGS"
4831 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4832 echo "configure:4833: checking for ntohl in sys/param.h" >&5
4833 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 CFLAGS="${save_CFLAGS} -Wall -Werror"
4837 cat > conftest.$ac_ext <<EOF
4838 #line 4839 "configure"
4839 #include "confdefs.h"
4840 #include <sys/param.h>
4842 void foo() { int meuh; ntohl(meuh); }
4845 if { (eval echo configure:4846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4847 ac_cv_c_ntohl_sys_param_h=yes
4849 echo "configure: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4852 ac_cv_c_ntohl_sys_param_h=no
4857 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4858 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4859 cat >> confdefs.h <<\EOF
4860 #define NTOHL_IN_SYS_PARAM_H 1
4865 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4866 echo "configure:4867: checking if \$CC accepts -finline-limit" >&5
4867 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4870 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4879 if { (eval echo configure:4880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4881 ac_cv_c_inline_limit=yes
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4886 ac_cv_c_inline_limit=no
4891 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4892 if test x"$ac_cv_c_inline_limit" != x"no"; then
4893 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4896 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4897 echo "configure:4898: checking if \$CC accepts -Wall -Winline" >&5
4898 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 CFLAGS="${save_CFLAGS} -Wall -Winline"
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4910 if { (eval echo configure:4911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4912 ac_cv_c_Wall_Winline=yes
4914 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4917 ac_cv_c_Wall_Winline=no
4922 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4923 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4924 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4926 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4927 echo "configure:4928: checking if \$CC accepts -wall -winline" >&5
4928 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 CFLAGS="${save_CFLAGS} -wall -winline"
4932 cat > conftest.$ac_ext <<EOF
4933 #line 4934 "configure"
4934 #include "confdefs.h"
4940 if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4942 ac_cv_c_wall_winline=yes
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4947 ac_cv_c_wall_winline=no
4952 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4953 if test x"$ac_cv_c_wall_winline" != x"no"; then
4954 save_CFLAGS="${save_CFLAGS} -wall -winline"
4958 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4959 echo "configure:4960: checking if \$CC accepts -pipe" >&5
4960 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4963 CFLAGS="${save_CFLAGS} -pipe"
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4972 if { (eval echo configure:4973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4976 echo "configure: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4984 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4985 if test x"$ac_cv_c_pipe" != x"no"; then
4986 save_CFLAGS="${save_CFLAGS} -pipe"
4989 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4990 echo "configure:4991: checking if \$CC accepts -O3" >&5
4991 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4994 CFLAGS="${save_CFLAGS} -O3"
4995 cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
5003 if { (eval echo configure:5004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5007 echo "configure: failed program was:" >&5
5008 cat conftest.$ac_ext >&5
5015 echo "$ac_t""$ac_cv_c_o3" 1>&6
5016 if test x"$ac_cv_c_o3" != x"no"; then
5017 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5019 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5020 echo "configure:5021: checking if \$CC accepts -O2" >&5
5021 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5024 CFLAGS="${save_CFLAGS} -O2"
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5033 if { (eval echo configure:5034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5045 echo "$ac_t""$ac_cv_c_o2" 1>&6
5046 if test x"$ac_cv_c_o2" != x"no"; then
5047 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5049 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5050 echo "configure:5051: checking if \$CC accepts -O" >&5
5051 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5052 echo $ac_n "(cached) $ac_c" 1>&6
5054 CFLAGS="${save_CFLAGS} -O"
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5063 if { (eval echo configure:5064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5075 echo "$ac_t""$ac_cv_c_o" 1>&6
5076 if test x"$ac_cv_c_o" != x"no"; then
5077 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5082 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5083 echo "configure:5084: checking if \$CC accepts -ffast-math" >&5
5084 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5087 CFLAGS="${save_CFLAGS} -ffast-math"
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5096 if { (eval echo configure:5097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5098 ac_cv_c_fast_math=yes
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 ac_cv_c_fast_math=no
5108 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5109 if test x"$ac_cv_c_fast_math" != x"no"; then
5110 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5113 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5114 echo "configure:5115: checking if \$CC accepts -funroll-loops" >&5
5115 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 CFLAGS="${save_CFLAGS} -funroll-loops"
5119 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5127 if { (eval echo configure:5128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5129 ac_cv_c_unroll_loops=yes
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5134 ac_cv_c_unroll_loops=no
5139 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5140 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5141 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5144 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5145 echo "configure:5146: checking if \$CC accepts -fomit-frame-pointer" >&5
5146 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5149 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5158 if { (eval echo configure:5159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5160 ac_cv_c_omit_frame_pointer=yes
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5165 ac_cv_c_omit_frame_pointer=no
5170 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5171 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5172 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5175 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5176 echo "configure:5177: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5177 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5180 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5189 if { (eval echo configure:5190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5201 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5202 if test x"$ac_cv_ld_darwin" != x"no"; then
5203 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5206 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5207 echo "configure:5208: checking if \$CC accepts -shared" >&5
5208 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 CFLAGS="${save_CFLAGS} -shared"
5212 cat > conftest.$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5220 if { (eval echo configure:5221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5222 ac_cv_ld_plugins=yes
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5232 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5233 if test x"$ac_cv_ld_plugins" != x"no"; then
5234 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5237 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5238 echo "configure:5239: checking for variadic cpp macros" >&5
5239 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5242 CFLAGS="${save_CFLAGS}"
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5247 #define a(b,c...) printf(b,##c)
5249 a("foo");a("%s","bar");a("%s%s","baz","quux");
5252 if { (eval echo configure:5253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5254 ac_cv_cpp_variadic_macros=yes
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5259 ac_cv_cpp_variadic_macros=no
5264 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5265 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5266 cat >> confdefs.h <<\EOF
5267 #define HAVE_VARIADIC_MACROS 1
5272 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5273 echo "configure:5274: checking __attribute__ ((aligned ())) support" >&5
5274 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 ac_cv_c_attribute_aligned=0
5278 CFLAGS="${save_CFLAGS} -Werror"
5279 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5280 cat > conftest.$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5285 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5288 if { (eval echo configure:5289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5290 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5292 echo "configure: failed program was:" >&5
5293 cat conftest.$ac_ext >&5
5299 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5300 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5301 cat >> confdefs.h <<EOF
5302 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5307 CFLAGS="${save_CFLAGS}"
5308 CPPFLAGS="${save_CPPFLAGS}"
5309 LDFLAGS="${save_LDFLAGS}"
5311 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5312 echo "configure:5313: checking for boolean_t in sys/types.h" >&5
5313 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 #include <sys/types.h>
5324 if { (eval echo configure:5325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5326 ac_cv_c_boolean_t_sys_types_h=yes
5328 echo "configure: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5331 ac_cv_c_boolean_t_sys_types_h=no
5336 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5337 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5338 cat >> confdefs.h <<\EOF
5339 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5344 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5345 echo "configure:5346: checking for boolean_t in pthread.h" >&5
5346 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5352 #include <pthread.h>
5357 if { (eval echo configure:5358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5359 ac_cv_c_boolean_t_pthread_h=yes
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5364 ac_cv_c_boolean_t_pthread_h=no
5369 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5370 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5371 cat >> confdefs.h <<\EOF
5372 #define BOOLEAN_T_IN_PTHREAD_H 1
5377 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5378 echo "configure:5379: checking for boolean_t in cthreads.h" >&5
5379 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5380 echo $ac_n "(cached) $ac_c" 1>&6
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5385 #include <cthreads.h>
5390 if { (eval echo configure:5391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5392 ac_cv_c_boolean_t_cthreads_h=yes
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5397 ac_cv_c_boolean_t_cthreads_h=no
5402 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5403 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5404 cat >> confdefs.h <<\EOF
5405 #define BOOLEAN_T_IN_CTHREADS_H 1
5410 case x"${target_cpu}" in
5415 ARCH="${target_cpu}"
5419 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"
5420 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
5422 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5423 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5424 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5425 SSE_MODULES="imdctsse downmixsse"
5426 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5428 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5429 echo "configure:5430: checking if \$CC groks MMX inline assembly" >&5
5430 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5438 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5441 if { (eval echo configure:5442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5443 ac_cv_mmx_inline=yes
5445 echo "configure: failed program was:" >&5
5446 cat conftest.$ac_ext >&5
5453 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5454 if test x"$ac_cv_mmx_inline" != x"no"; then
5455 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5458 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5459 echo "configure:5460: checking if \$CC groks MMX EXT inline assembly" >&5
5460 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5461 echo $ac_n "(cached) $ac_c" 1>&6
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5468 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5471 if { (eval echo configure:5472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5473 ac_cv_mmxext_inline=yes
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 ac_cv_mmxext_inline=no
5483 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5484 if test x"$ac_cv_mmxext_inline" != x"no"; then
5485 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5488 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5489 echo "configure:5490: checking if \$CC groks 3D Now! inline assembly" >&5
5490 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5493 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5498 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5501 if { (eval echo configure:5502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5503 ac_cv_3dnow_inline=yes
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5508 ac_cv_3dnow_inline=no
5513 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5514 if test x"$ac_cv_3dnow_inline" != x"no"; then
5515 cat >> confdefs.h <<\EOF
5516 #define CAN_COMPILE_3DNOW 1
5519 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5522 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5523 echo "configure:5524: checking if \$CC groks SSE inline assembly" >&5
5524 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5532 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5535 if { (eval echo configure:5536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5537 ac_cv_sse_inline=yes
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5547 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5548 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5549 cat >> confdefs.h <<\EOF
5550 #define CAN_COMPILE_SSE 1
5553 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5556 # don't try to grok altivec with native mingw32 it doesn't work right now
5557 # we should be able to remove this test with future versions of mingw32
5558 if test x$SYS != xmingw32; then
5559 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5560 echo "configure:5561: checking if \$CC groks Altivec inline assembly" >&5
5561 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5569 asm volatile("vperm 0,1,2,3");
5572 if { (eval echo configure:5573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5574 ac_cv_altivec_inline=yes
5576 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5580 CFLAGS="$CFLAGS -Wa,-m7400"
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5586 asm volatile("vperm 0,1,2,3");
5589 if { (eval echo configure:5590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5591 ac_cv_altivec_inline="-Wa,-m7400"
5593 echo "configure: failed program was:" >&5
5594 cat conftest.$ac_ext >&5
5596 ac_cv_altivec_inline=no
5605 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5606 if test x"$ac_cv_altivec_inline" != x"no"; then
5607 cat >> confdefs.h <<\EOF
5608 #define CAN_COMPILE_ALTIVEC 1
5611 if test x"$ac_cv_altivec_inline" != x"yes"; then
5612 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5613 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5614 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5615 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5617 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5620 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5621 echo "configure:5622: checking if \$CC groks Altivec C extensions" >&5
5622 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
5626 CFLAGS="$CFLAGS -faltivec"
5628 cat > conftest.$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5633 vec_mtvscr((vector unsigned int)(0));
5636 if { (eval echo configure:5637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5638 ac_cv_c_altivec=-faltivec
5640 echo "configure: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5645 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5651 vec_mtvscr((vector unsigned int)(0));
5654 if { (eval echo configure:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5656 ac_cv_c_altivec="-fvec"
5658 echo "configure: failed program was:" >&5
5659 cat conftest.$ac_ext >&5
5671 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5672 if test x"$ac_cv_c_altivec" != x"no"; then
5673 cat >> confdefs.h <<\EOF
5674 #define CAN_COMPILE_C_ALTIVEC 1
5677 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5678 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5679 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5680 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5681 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5684 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5685 echo "configure:5686: checking if linker needs -framework vecLib" >&5
5686 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5689 save_LDFLAGS=$LDFLAGS
5690 LDFLAGS="$LDFLAGS -framework vecLib"
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5699 if { (eval echo configure:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5701 ac_cv_ld_altivec=yes
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5709 LDFLAGS=$save_LDFLAGS
5713 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5714 if test x"$ac_cv_ld_altivec" != x"no"; then
5715 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5716 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5717 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5718 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5723 # Check whether --with- or --without- was given.
5724 if test "${with_+set}" = set; then
5729 # Check whether --with- or --without- was given.
5730 if test "${with_+set}" = set; then
5736 # Check whether --with-tuning or --without-tuning was given.
5737 if test "${with_tuning+set}" = set; then
5738 withval="$with_tuning"
5742 if test "x$with_tuning" != "x"; then
5743 TUNING="$with_tuning"
5745 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5747 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5751 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5754 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5757 # Check whether --enable-optimizations or --disable-optimizations was given.
5758 if test "${enable_optimizations+set}" = set; then
5759 enableval="$enable_optimizations"
5760 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5766 # Check whether --enable-altivec or --disable-altivec was given.
5767 if test "${enable_altivec+set}" = set; then
5768 enableval="$enable_altivec"
5769 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5770 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5772 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5773 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5778 # Check whether --enable-debug or --disable-debug was given.
5779 if test "${enable_debug+set}" = set; then
5780 enableval="$enable_debug"
5781 if test x$enable_debug = xyes; then DEBUG=1; fi
5786 # Check whether --enable-release or --disable-release was given.
5787 if test "${enable_release+set}" = set; then
5788 enableval="$enable_release"
5789 if test x$enable_release = xyes; then RELEASE=1; fi
5791 VERSION="${VERSION}_`date +%Y-%m-%d`"
5796 # Check whether --with- or --without- was given.
5797 if test "${with_+set}" = set; then
5803 # Check whether --enable-dvd or --disable-dvd was given.
5804 if test "${enable_dvd+set}" = set; then
5805 enableval="$enable_dvd"
5809 if test "x$enable_dvd" != "xno"
5811 # Check whether --with-dvdcss or --without-dvdcss was given.
5812 if test "${with_dvdcss+set}" = set; then
5813 withval="$with_dvdcss"
5817 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5818 if test "${with_dvdcss_tree+set}" = set; then
5819 withval="$with_dvdcss_tree"
5823 case "x$with_dvdcss" in
5825 if test "x$with_dvdcss_tree" = x
5827 for ac_hdr in dvdcss/dvdcss.h
5829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5831 echo "configure:5832: checking for $ac_hdr" >&5
5832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5841 { (eval echo configure:5842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5843 if test -z "$ac_err"; then
5845 eval "ac_cv_header_$ac_safe=yes"
5848 echo "configure: failed program was:" >&5
5849 cat conftest.$ac_ext >&5
5851 eval "ac_cv_header_$ac_safe=no"
5855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5856 echo "$ac_t""yes" 1>&6
5857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5858 cat >> confdefs.h <<EOF
5859 #define $ac_tr_hdr 1
5861 PLUGINS="${PLUGINS} dvd"
5862 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5864 echo "$ac_t""no" 1>&6
5865 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
5866 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5871 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5872 echo "configure:5873: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5873 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5874 if test "x$real_dvdcss_tree" = x
5876 echo "$ac_t""no" 1>&6
5877 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5879 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5881 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5882 BUILTINS="${BUILTINS} dvd"
5883 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5884 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5886 echo "$ac_t""no" 1>&6
5887 { 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; }
5892 PLUGINS="${PLUGINS} dvd"
5893 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5894 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5897 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5898 echo "configure:5899: checking for dvdcss headers in ${with_dvdcss}" >&5
5899 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5901 echo "$ac_t""yes" 1>&6
5902 PLUGINS="${PLUGINS} dvd"
5903 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5904 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5906 echo "$ac_t""no" 1>&6
5907 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5913 # Check whether --enable-dvdread or --disable-dvdread was given.
5914 if test "${enable_dvdread+set}" = set; then
5915 enableval="$enable_dvdread"
5919 if test "x$enable_dvdread" != "xno"
5921 # Check whether --with-dvdread or --without-dvdread was given.
5922 if test "${with_dvdread+set}" = set; then
5923 withval="$with_dvdread"
5927 if test "x$with_dvdread" = x
5932 test_LDFLAGS="-L${with_dvdread}/lib"
5933 test_CFLAGS="-I${with_dvdread}/include"
5935 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5936 for ac_hdr in dvdread/dvd_reader.h
5938 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5940 echo "configure:5941: checking for $ac_hdr" >&5
5941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5942 echo $ac_n "(cached) $ac_c" 1>&6
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure"
5946 #include "confdefs.h"
5949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5950 { (eval echo configure:5951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5952 if test -z "$ac_err"; then
5954 eval "ac_cv_header_$ac_safe=yes"
5957 echo "configure: failed program was:" >&5
5958 cat conftest.$ac_ext >&5
5960 eval "ac_cv_header_$ac_safe=no"
5964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5965 echo "$ac_t""yes" 1>&6
5966 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5967 cat >> confdefs.h <<EOF
5968 #define $ac_tr_hdr 1
5971 cat > conftest.$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5974 #include <dvdread/dvd_reader.h>
5976 void foo() { int i=DVD_VIDEO_LB_LEN; }
5979 if { (eval echo configure:5980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5982 PLUGINS="${PLUGINS} dvdread"
5983 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
5984 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
5987 echo "configure: failed program was:" >&5
5988 cat conftest.$ac_ext >&5
5991 if test "x$enable_dvdread" != x
5993 { 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; }
6000 echo "$ac_t""no" 1>&6
6001 if test "x$enable_dvdread" != x
6003 if test "x$with_dvdread" != x
6005 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6007 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6014 CPPFLAGS="$save_CPPFLAGS"
6017 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6018 if test "${enable_dvbpsi+set}" = set; then
6019 enableval="$enable_dvbpsi"
6023 if test "x$enable_dvbpsi" != "xno"
6025 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6026 if test "${with_dvbpsi+set}" = set; then
6027 withval="$with_dvbpsi"
6031 if test "x$with_dvbpsi" = x
6036 test_LDFLAGS="-L${with_dvbpsi}/lib"
6037 test_CFLAGS="-I${with_dvbpsi}/include"
6039 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6040 ac_safe=`echo "dvbpsi/dvbpsi.h" | sed 'y%./+-%__p_%'`
6041 echo $ac_n "checking for dvbpsi/dvbpsi.h""... $ac_c" 1>&6
6042 echo "configure:6043: checking for dvbpsi/dvbpsi.h" >&5
6043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 cat > conftest.$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6049 #include <dvbpsi/dvbpsi.h>
6051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6052 { (eval echo configure:6053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6054 if test -z "$ac_err"; then
6056 eval "ac_cv_header_$ac_safe=yes"
6059 echo "configure: failed program was:" >&5
6060 cat conftest.$ac_ext >&5
6062 eval "ac_cv_header_$ac_safe=no"
6066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6069 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6070 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6071 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6074 echo "$ac_t""no" 1>&6
6076 if test "x$enable_dvbpsi" != x
6078 { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org" 1>&2; exit 1; }
6083 CPPFLAGS="$save_CPPFLAGS"
6086 # Check whether --enable-vcd or --disable-vcd was given.
6087 if test "${enable_vcd+set}" = set; then
6088 enableval="$enable_vcd"
6093 if test x$enable_vcd != xno
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6098 #include <linux/cdrom.h>
6100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101 egrep "cdrom_msf0" >/dev/null 2>&1; then
6104 PLUGINS="${PLUGINS} vcd"
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 #include <sys/cdio.h>
6115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6116 egrep "ioc_toc_header " >/dev/null 2>&1; then
6119 PLUGINS="${PLUGINS} vcd"
6120 cat >> confdefs.h <<\EOF
6121 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6129 if test "x${SYS}" = "xbsdi"
6131 PLUGINS="${PLUGINS} vcd"
6134 if test "x${SYS}" = "xdarwin"
6136 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6137 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6141 # Check whether --enable-satellite or --disable-satellite was given.
6142 if test "${enable_satellite+set}" = set; then
6143 enableval="$enable_satellite"
6144 if test x$enable_satellite = xyes
6146 PLUGINS="${PLUGINS} satellite"
6151 if test x$SYS != xnto
6153 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6154 echo "configure:6155: checking for inet_pton" >&5
6155 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6161 /* System header to define __stub macros and hopefully few prototypes,
6162 which can conflict with char inet_pton(); below. */
6164 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */
6171 /* The GNU C library defines this for functions which it implements
6172 to always fail with ENOSYS. Some functions are actually named
6173 something starting with __ and the normal name is an alias. */
6174 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6182 if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6184 eval "ac_cv_func_inet_pton=yes"
6186 echo "configure: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6189 eval "ac_cv_func_inet_pton=no"
6194 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6196 PLUGINS="${PLUGINS} ipv6"
6198 echo "$ac_t""no" 1>&6
6203 # Check whether --enable-avi or --disable-avi was given.
6204 if test "${enable_avi+set}" = set; then
6205 enableval="$enable_avi"
6209 if test x$enable_avi != xno
6211 PLUGINS="${PLUGINS} avi"
6215 # Check whether --with- or --without- was given.
6216 if test "${with_+set}" = set; then
6222 # Check whether --enable-mad or --disable-mad was given.
6223 if test "${enable_mad+set}" = set; then
6224 enableval="$enable_mad"
6228 if test x$enable_mad = xyes
6230 PLUGINS="${PLUGINS} mad"
6231 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6232 # Check whether --with-mad or --without-mad was given.
6233 if test "${with_mad+set}" = set; then
6235 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6237 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6238 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6243 save_LDFLAGS=$LDFLAGS
6244 CFLAGS="$CFLAGS $mad_CFLAGS"
6245 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6250 echo "configure:6251: checking for $ac_hdr" >&5
6251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6260 { (eval echo configure:6261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6262 if test -z "$ac_err"; then
6264 eval "ac_cv_header_$ac_safe=yes"
6267 echo "configure: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6270 eval "ac_cv_header_$ac_safe=no"
6274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6275 echo "$ac_t""yes" 1>&6
6276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6277 cat >> confdefs.h <<EOF
6278 #define $ac_tr_hdr 1
6282 echo "$ac_t""no" 1>&6
6283 echo "Cannot find development headers for libmad..."
6289 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6290 echo "configure:6291: checking for mad_bit_init in -lmad" >&5
6291 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6295 ac_save_LIBS="$LIBS"
6297 cat > conftest.$ac_ext <<EOF
6298 #line 6299 "configure"
6299 #include "confdefs.h"
6300 /* Override any gcc2 internal prototype to avoid an error. */
6301 /* We use char because int might match the return type of a gcc2
6302 builtin and then its argument prototype would still apply. */
6303 char mad_bit_init();
6309 if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6311 eval "ac_cv_lib_$ac_lib_var=yes"
6313 echo "configure: failed program was:" >&5
6314 cat conftest.$ac_ext >&5
6316 eval "ac_cv_lib_$ac_lib_var=no"
6319 LIBS="$ac_save_LIBS"
6322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6323 echo "$ac_t""yes" 1>&6
6324 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6326 cat >> confdefs.h <<EOF
6327 #define $ac_tr_lib 1
6333 echo "$ac_t""no" 1>&6
6334 echo "Cannot find libmad library..."
6340 LDFLAGS=$save_LDFLAGS
6343 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6344 if test "${enable_ffmpeg+set}" = set; then
6345 enableval="$enable_ffmpeg"
6349 if test "x$enable_ffmpeg" = "xyes"
6351 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6352 if test "${with_ffmpeg_tree+set}" = set; then
6353 withval="$with_ffmpeg_tree"
6357 if test "x$with_ffmpeg_tree" = x
6359 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&2; exit 1; }
6361 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6362 echo "configure:6363: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6363 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6364 if test "x$real_ffmpeg_tree" = x
6366 echo "$ac_t""no" 1>&6
6367 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6369 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6371 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6372 BUILTINS="${BUILTINS} ffmpeg"
6373 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6374 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6376 echo "$ac_t""no" 1>&6
6377 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6383 if test x$SYS = xbeos
6385 PLUGINS="${PLUGINS} beos"
6388 # Check whether --enable-a52 or --disable-a52 was given.
6389 if test "${enable_a52+set}" = set; then
6390 enableval="$enable_a52"
6394 if test "x$enable_a52" != "xno"
6396 # Check whether --with-a52-tree or --without-a52-tree was given.
6397 if test "${with_a52_tree+set}" = set; then
6398 withval="$with_a52_tree"
6402 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6404 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6405 if test "x$real_a52_tree" = x
6407 echo "$ac_t""no" 1>&6
6408 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6410 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6411 echo "configure:6412: checking for a52.h in ${real_a52_tree}/include" >&5
6412 if test -f ${real_a52_tree}/include/a52.h
6414 echo "$ac_t""yes" 1>&6
6415 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6416 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6417 save_LDFLAGS=$LDFLAGS
6418 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6419 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6420 echo "configure:6421: checking for a52_free in -la52" >&5
6421 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6423 echo $ac_n "(cached) $ac_c" 1>&6
6425 ac_save_LIBS="$LIBS"
6426 LIBS="-la52 -lm $LIBS"
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 /* Override any gcc2 internal prototype to avoid an error. */
6431 /* We use char because int might match the return type of a gcc2
6432 builtin and then its argument prototype would still apply. */
6439 if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6441 eval "ac_cv_lib_$ac_lib_var=yes"
6443 echo "configure: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6446 eval "ac_cv_lib_$ac_lib_var=no"
6449 LIBS="$ac_save_LIBS"
6452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6453 echo "$ac_t""yes" 1>&6
6455 BUILTINS="${BUILTINS} a52"
6456 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6457 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6460 echo "$ac_t""no" 1>&6
6462 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6464 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6466 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6471 LDFLAGS=$save_LDFLAGS
6473 echo "$ac_t""no" 1>&6
6474 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6476 else for ac_hdr in a52dec/a52.h
6478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6480 echo "configure:6481: checking for $ac_hdr" >&5
6481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6490 { (eval echo configure:6491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6492 if test -z "$ac_err"; then
6494 eval "ac_cv_header_$ac_safe=yes"
6497 echo "configure: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6500 eval "ac_cv_header_$ac_safe=no"
6504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6505 echo "$ac_t""yes" 1>&6
6506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6507 cat >> confdefs.h <<EOF
6508 #define $ac_tr_hdr 1
6511 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6512 echo "configure:6513: checking for a52_free in -la52" >&5
6513 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6515 echo $ac_n "(cached) $ac_c" 1>&6
6517 ac_save_LIBS="$LIBS"
6518 LIBS="-la52 -lm $LIBS"
6519 cat > conftest.$ac_ext <<EOF
6520 #line 6521 "configure"
6521 #include "confdefs.h"
6522 /* Override any gcc2 internal prototype to avoid an error. */
6523 /* We use char because int might match the return type of a gcc2
6524 builtin and then its argument prototype would still apply. */
6531 if { (eval echo configure:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533 eval "ac_cv_lib_$ac_lib_var=yes"
6535 echo "configure: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6538 eval "ac_cv_lib_$ac_lib_var=no"
6541 LIBS="$ac_save_LIBS"
6544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6547 BUILTINS="${BUILTINS} a52"
6548 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6549 a52_CFLAGS="${a52_CFLAGS}"
6552 echo "$ac_t""no" 1>&6
6557 echo "$ac_t""no" 1>&6
6564 # Check whether --enable-vorbis or --disable-vorbis was given.
6565 if test "${enable_vorbis+set}" = set; then
6566 enableval="$enable_vorbis"
6570 if test "x$enable_vorbis" != "xno"
6572 for ac_hdr in ogg/ogg.h
6574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6576 echo "configure:6577: checking for $ac_hdr" >&5
6577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6578 echo $ac_n "(cached) $ac_c" 1>&6
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6586 { (eval echo configure:6587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6588 if test -z "$ac_err"; then
6590 eval "ac_cv_header_$ac_safe=yes"
6593 echo "configure: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6596 eval "ac_cv_header_$ac_safe=no"
6600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6601 echo "$ac_t""yes" 1>&6
6602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6603 cat >> confdefs.h <<EOF
6604 #define $ac_tr_hdr 1
6607 #PLUGINS="${PLUGINS} vorbis"
6608 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6611 echo "$ac_t""no" 1>&6
6618 # Check whether --with- or --without- was given.
6619 if test "${with_+set}" = set; then
6625 # Check whether --enable-x11 or --disable-x11 was given.
6626 if test "${enable_x11+set}" = set; then
6627 enableval="$enable_x11"
6631 if test x$enable_x11 != xno &&
6632 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6633 if test x$x_includes = xNONE; then
6634 x_includes=/usr/X11R6/include
6636 if test x$x_libraries = xNONE; then
6637 x_libraries=/usr/X11R6/lib
6639 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6640 for ac_hdr in X11/Xlib.h
6642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6644 echo "configure:6645: checking for $ac_hdr" >&5
6645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6648 cat > conftest.$ac_ext <<EOF
6649 #line 6650 "configure"
6650 #include "confdefs.h"
6653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6654 { (eval echo configure:6655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6656 if test -z "$ac_err"; then
6658 eval "ac_cv_header_$ac_safe=yes"
6661 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6664 eval "ac_cv_header_$ac_safe=no"
6668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6669 echo "$ac_t""yes" 1>&6
6670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6671 cat >> confdefs.h <<EOF
6672 #define $ac_tr_hdr 1
6675 PLUGINS="${PLUGINS} x11"
6676 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6677 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6680 echo "$ac_t""no" 1>&6
6684 CPPFLAGS="$save_CPPFLAGS"
6687 # Check whether --enable-xvideo or --disable-xvideo was given.
6688 if test "${enable_xvideo+set}" = set; then
6689 enableval="$enable_xvideo"
6693 if test x$enable_xvideo != xno &&
6694 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6695 if test x$x_includes = xNONE; then
6696 x_includes=/usr/X11R6/include
6698 if test x$x_libraries = xNONE; then
6699 x_libraries=/usr/X11R6/lib
6701 save_CPPFLAGS=$CPPFLAGS
6702 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6703 for ac_hdr in X11/extensions/Xv.h
6705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6707 echo "configure:6708: checking for $ac_hdr" >&5
6708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6
6711 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure"
6713 #include "confdefs.h"
6716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6717 { (eval echo configure:6718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6719 if test -z "$ac_err"; then
6721 eval "ac_cv_header_$ac_safe=yes"
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6727 eval "ac_cv_header_$ac_safe=no"
6731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6734 cat >> confdefs.h <<EOF
6735 #define $ac_tr_hdr 1
6739 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6740 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6741 echo "configure:6742: checking for XvSetPortAttribute in -lXv_pic" >&5
6742 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6743 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6744 echo $ac_n "(cached) $ac_c" 1>&6
6746 ac_save_LIBS="$LIBS"
6747 LIBS="-lXv_pic $LIBS"
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6751 /* Override any gcc2 internal prototype to avoid an error. */
6752 /* We use char because int might match the return type of a gcc2
6753 builtin and then its argument prototype would still apply. */
6754 char XvSetPortAttribute();
6757 XvSetPortAttribute()
6760 if { (eval echo configure:6761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6762 eval "ac_cv_lib_$ac_lib_var=yes"
6764 echo "configure: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6767 eval "ac_cv_lib_$ac_lib_var=no"
6770 LIBS="$ac_save_LIBS"
6773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6774 echo "$ac_t""yes" 1>&6
6775 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6776 PLUGINS="${PLUGINS} xvideo"
6777 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6778 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6780 echo "$ac_t""no" 1>&6
6781 # We don't have Xv_pic, let's make xvideo.a as builtin
6782 BUILTINS="${BUILTINS} xvideo"
6783 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6784 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6787 CFLAGS="$save_CFLAGS"
6789 CPPFLAGS="$save_CPPFLAGS"
6791 echo "$ac_t""no" 1>&6
6797 # Check whether --enable-sdl or --disable-sdl was given.
6798 if test "${enable_sdl+set}" = set; then
6799 enableval="$enable_sdl"
6803 if test "x$enable_sdl" != "xno"
6806 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6807 if test "${with_sdl_config_path+set}" = set; then
6808 withval="$with_sdl_config_path"
6809 if test "x$with_sdl_config_path" != "xno"
6811 SDL_PATH="$with_sdl_config_path:$PATH"
6815 # Extract the first word of "sdl12-config", so it can be a program name with args.
6816 set dummy sdl12-config; ac_word=$2
6817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6818 echo "configure:6819: checking for $ac_word" >&5
6819 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6820 echo $ac_n "(cached) $ac_c" 1>&6
6822 case "$SDL12_CONFIG" in
6824 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6827 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6831 ac_dummy="$SDL_PATH"
6832 for ac_dir in $ac_dummy; do
6833 test -z "$ac_dir" && ac_dir=.
6834 if test -f $ac_dir/$ac_word; then
6835 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6840 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6844 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6845 if test -n "$SDL12_CONFIG"; then
6846 echo "$ac_t""$SDL12_CONFIG" 1>&6
6848 echo "$ac_t""no" 1>&6
6851 SDL_CONFIG=${SDL12_CONFIG}
6852 SDL_HEADER="SDL12/SDL.h"
6853 if test x${SDL_CONFIG} = xno
6855 # Extract the first word of "sdl11-config", so it can be a program name with args.
6856 set dummy sdl11-config; ac_word=$2
6857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6858 echo "configure:6859: checking for $ac_word" >&5
6859 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6860 echo $ac_n "(cached) $ac_c" 1>&6
6862 case "$SDL11_CONFIG" in
6864 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6867 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6871 ac_dummy="$SDL_PATH"
6872 for ac_dir in $ac_dummy; do
6873 test -z "$ac_dir" && ac_dir=.
6874 if test -f $ac_dir/$ac_word; then
6875 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6880 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6884 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6885 if test -n "$SDL11_CONFIG"; then
6886 echo "$ac_t""$SDL11_CONFIG" 1>&6
6888 echo "$ac_t""no" 1>&6
6891 SDL_CONFIG=${SDL11_CONFIG}
6892 SDL_HEADER="SDL11/SDL.h"
6894 if test x${SDL_CONFIG} = xno
6896 # Extract the first word of "sdl-config", so it can be a program name with args.
6897 set dummy sdl-config; ac_word=$2
6898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6899 echo "configure:6900: checking for $ac_word" >&5
6900 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6901 echo $ac_n "(cached) $ac_c" 1>&6
6903 case "$SDL_CONFIG" in
6905 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6908 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6912 ac_dummy="$SDL_PATH"
6913 for ac_dir in $ac_dummy; do
6914 test -z "$ac_dir" && ac_dir=.
6915 if test -f $ac_dir/$ac_word; then
6916 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6921 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6925 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6926 if test -n "$SDL_CONFIG"; then
6927 echo "$ac_t""$SDL_CONFIG" 1>&6
6929 echo "$ac_t""no" 1>&6
6932 SDL_HEADER="SDL/SDL.h"
6934 if test x${SDL_CONFIG} != xno
6936 PLUGINS="${PLUGINS} sdl"
6937 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
6938 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6939 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
6940 for ac_hdr in ${SDL_HEADER}
6942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6944 echo "configure:6945: checking for $ac_hdr" >&5
6945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6954 { (eval echo configure:6955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6956 if test -z "$ac_err"; then
6958 eval "ac_cv_header_$ac_safe=yes"
6961 echo "configure: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6964 eval "ac_cv_header_$ac_safe=no"
6968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6969 echo "$ac_t""yes" 1>&6
6970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6971 cat >> confdefs.h <<EOF
6972 #define $ac_tr_hdr 1
6974 cat >> confdefs.h <<EOF
6975 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6979 echo "$ac_t""no" 1>&6
6980 { echo "configure: error: The development package for SDL is not installed.
6981 Please install it and try again. Alternatively you can also configure with
6982 --disable-sdl." 1>&2; exit 1; }
6987 CPPFLAGS="$save_CPPFLAGS"
6988 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6990 { echo "configure: error: The development package for SDL is not installed.
6991 Please install it and try again. Alternatively you can also configure with
6992 --disable-sdl." 1>&2; exit 1; }
6994 elif test "x$enable_sdl" = "xyes"
6996 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6997 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7002 # Check whether --enable-directx or --disable-directx was given.
7003 if test "${enable_directx+set}" = set; then
7004 enableval="$enable_directx"
7008 if test "x$enable_directx" != "xno"
7010 if test x$SYS = xmingw32
7012 # Check whether --with-directx or --without-directx was given.
7013 if test "${with_directx+set}" = set; then
7014 withval="$with_directx"
7018 if test "x$with_directx" = "x"
7020 for ac_hdr in ddraw.h
7022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7024 echo "configure:7025: checking for $ac_hdr" >&5
7025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7028 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7034 { (eval echo configure:7035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7036 if test -z "$ac_err"; then
7038 eval "ac_cv_header_$ac_safe=yes"
7041 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7044 eval "ac_cv_header_$ac_safe=no"
7048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7049 echo "$ac_t""yes" 1>&6
7050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7051 cat >> confdefs.h <<EOF
7052 #define $ac_tr_hdr 1
7054 PLUGINS="${PLUGINS} directx"
7055 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7057 echo "$ac_t""no" 1>&6
7062 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7063 echo "configure:7064: checking for directX headers in ${with_directx}" >&5
7064 if test -f ${with_directx}/ddraw.h
7066 PLUGINS="${PLUGINS} directx"
7067 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7068 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7069 echo "$ac_t""yes" 1>&6
7071 echo "$ac_t""no" 1>&6
7072 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7078 # Check whether --enable-fb or --disable-fb was given.
7079 if test "${enable_fb+set}" = set; then
7080 enableval="$enable_fb"
7084 if test x$enable_fb != xno
7086 for ac_hdr in linux/fb.h
7088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7090 echo "configure:7091: checking for $ac_hdr" >&5
7091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7092 echo $ac_n "(cached) $ac_c" 1>&6
7094 cat > conftest.$ac_ext <<EOF
7095 #line 7096 "configure"
7096 #include "confdefs.h"
7099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7100 { (eval echo configure:7101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7102 if test -z "$ac_err"; then
7104 eval "ac_cv_header_$ac_safe=yes"
7107 echo "configure: failed program was:" >&5
7108 cat conftest.$ac_ext >&5
7110 eval "ac_cv_header_$ac_safe=no"
7114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7115 echo "$ac_t""yes" 1>&6
7116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7117 cat >> confdefs.h <<EOF
7118 #define $ac_tr_hdr 1
7121 PLUGINS="${PLUGINS} fb"
7124 echo "$ac_t""no" 1>&6
7130 # Check whether --enable-mga or --disable-mga was given.
7131 if test "${enable_mga+set}" = set; then
7132 enableval="$enable_mga"
7133 if test x$enable_mga = xyes
7135 PLUGINS="${PLUGINS} mga xmga"
7140 # Check whether --enable-ggi or --disable-ggi was given.
7141 if test "${enable_ggi+set}" = set; then
7142 enableval="$enable_ggi"
7146 if test x$enable_ggi = xyes
7148 PLUGINS="${PLUGINS} ggi"
7149 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7150 # Check whether --with-ggi or --without-ggi was given.
7151 if test "${with_ggi+set}" = set; then
7153 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7155 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7156 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7162 # Check whether --enable-glide or --disable-glide was given.
7163 if test "${enable_glide+set}" = set; then
7164 enableval="$enable_glide"
7168 if test x$enable_glide = xyes
7170 PLUGINS="${PLUGINS} glide"
7171 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7172 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7173 # Check whether --with-glide or --without-glide was given.
7174 if test "${with_glide+set}" = set; then
7175 withval="$with_glide"
7176 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7178 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7179 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7185 # Check whether --enable-aa or --disable-aa was given.
7186 if test "${enable_aa+set}" = set; then
7187 enableval="$enable_aa"
7191 if test x$enable_aa = xyes
7193 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7194 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7195 echo "configure:7196: checking for aalib.h" >&5
7196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7197 echo $ac_n "(cached) $ac_c" 1>&6
7199 cat > conftest.$ac_ext <<EOF
7200 #line 7201 "configure"
7201 #include "confdefs.h"
7204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7205 { (eval echo configure:7206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7207 if test -z "$ac_err"; then
7209 eval "ac_cv_header_$ac_safe=yes"
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7215 eval "ac_cv_header_$ac_safe=no"
7219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7220 echo "$ac_t""yes" 1>&6
7223 echo "$ac_t""no" 1>&6
7227 if test x$have_aa = xtrue
7229 PLUGINS="${PLUGINS} aa"
7230 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7235 # Check whether --with- or --without- was given.
7236 if test "${with_+set}" = set; then
7242 # Check whether --enable-dsp or --disable-dsp was given.
7243 if test "${enable_dsp+set}" = set; then
7244 enableval="$enable_dsp"
7249 if test x$enable_dsp != xno &&
7250 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7252 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7256 echo "configure:7257: checking for $ac_hdr" >&5
7257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7258 echo $ac_n "(cached) $ac_c" 1>&6
7260 cat > conftest.$ac_ext <<EOF
7261 #line 7262 "configure"
7262 #include "confdefs.h"
7265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7266 { (eval echo configure:7267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7268 if test -z "$ac_err"; then
7270 eval "ac_cv_header_$ac_safe=yes"
7273 echo "configure: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7276 eval "ac_cv_header_$ac_safe=no"
7280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7281 echo "$ac_t""yes" 1>&6
7282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7283 cat >> confdefs.h <<EOF
7284 #define $ac_tr_hdr 1
7287 PLUGINS="${PLUGINS} dsp"
7288 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7289 echo "configure:7290: checking for main in -lossaudio" >&5
7290 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7294 ac_save_LIBS="$LIBS"
7295 LIBS="-lossaudio $LIBS"
7296 cat > conftest.$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7304 if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7306 eval "ac_cv_lib_$ac_lib_var=yes"
7308 echo "configure: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7311 eval "ac_cv_lib_$ac_lib_var=no"
7314 LIBS="$ac_save_LIBS"
7317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7318 echo "$ac_t""yes" 1>&6
7319 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7321 echo "$ac_t""no" 1>&6
7326 echo "$ac_t""no" 1>&6
7332 # Check whether --enable-esd or --disable-esd was given.
7333 if test "${enable_esd+set}" = set; then
7334 enableval="$enable_esd"
7335 if test x$enable_esd = xyes
7337 # Extract the first word of "esd-config", so it can be a program name with args.
7338 set dummy esd-config; ac_word=$2
7339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7340 echo "configure:7341: checking for $ac_word" >&5
7341 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7344 case "$ESD_CONFIG" in
7346 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7349 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7354 for ac_dir in $ac_dummy; do
7355 test -z "$ac_dir" && ac_dir=.
7356 if test -f $ac_dir/$ac_word; then
7357 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7362 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7366 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7367 if test -n "$ESD_CONFIG"; then
7368 echo "$ac_t""$ESD_CONFIG" 1>&6
7370 echo "$ac_t""no" 1>&6
7373 if test x${ESD_CONFIG} != xno
7375 PLUGINS="${PLUGINS} esd"
7376 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7377 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7383 # Check whether --enable-arts or --disable-arts was given.
7384 if test "${enable_arts+set}" = set; then
7385 enableval="$enable_arts"
7386 if test x$enable_arts = xyes
7388 # Extract the first word of "artsc-config", so it can be a program name with args.
7389 set dummy artsc-config; ac_word=$2
7390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7391 echo "configure:7392: checking for $ac_word" >&5
7392 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7393 echo $ac_n "(cached) $ac_c" 1>&6
7395 case "$ARTS_CONFIG" in
7397 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7400 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7405 for ac_dir in $ac_dummy; do
7406 test -z "$ac_dir" && ac_dir=.
7407 if test -f $ac_dir/$ac_word; then
7408 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7413 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7417 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7418 if test -n "$ARTS_CONFIG"; then
7419 echo "$ac_t""$ARTS_CONFIG" 1>&6
7421 echo "$ac_t""no" 1>&6
7424 if test x${ARTS_CONFIG} != xno
7426 PLUGINS="${PLUGINS} arts"
7427 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7428 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7434 # Check whether --enable-alsa or --disable-alsa was given.
7435 if test "${enable_alsa+set}" = set; then
7436 enableval="$enable_alsa"
7437 if test x$enable_alsa = xyes
7439 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7440 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7441 echo "configure:7442: checking for alsa/asoundlib.h" >&5
7442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7443 echo $ac_n "(cached) $ac_c" 1>&6
7445 cat > conftest.$ac_ext <<EOF
7446 #line 7447 "configure"
7447 #include "confdefs.h"
7448 #include <alsa/asoundlib.h>
7450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7451 { (eval echo configure:7452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7453 if test -z "$ac_err"; then
7455 eval "ac_cv_header_$ac_safe=yes"
7458 echo "configure: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7461 eval "ac_cv_header_$ac_safe=no"
7465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7466 echo "$ac_t""yes" 1>&6
7467 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7468 echo "configure:7469: checking for main in -lasound" >&5
7469 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7471 echo $ac_n "(cached) $ac_c" 1>&6
7473 ac_save_LIBS="$LIBS"
7474 LIBS="-lasound $LIBS"
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7483 if { (eval echo configure:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7485 eval "ac_cv_lib_$ac_lib_var=yes"
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7490 eval "ac_cv_lib_$ac_lib_var=no"
7493 LIBS="$ac_save_LIBS"
7496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7497 echo "$ac_t""yes" 1>&6
7500 echo "$ac_t""no" 1>&6
7505 echo "$ac_t""no" 1>&6
7509 if test x$have_alsa = xtrue
7511 PLUGINS="${PLUGINS} alsa"
7512 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7518 # Check whether --enable-waveout or --disable-waveout was given.
7519 if test "${enable_waveout+set}" = set; then
7520 enableval="$enable_waveout"
7524 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7526 PLUGINS="${PLUGINS} waveout"
7527 waveout_LDFLAGS="-lwinmm"
7531 # Check whether --with- or --without- was given.
7532 if test "${with_+set}" = set; then
7538 # Check whether --enable-gtk or --disable-gtk was given.
7539 if test "${enable_gtk+set}" = set; then
7540 enableval="$enable_gtk"
7544 if test x$enable_gtk != xno
7547 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7548 if test "${with_gtk_config_path+set}" = set; then
7549 withval="$with_gtk_config_path"
7550 if test "x$with_gtk_config_path" != "xno"
7552 GTK_PATH="$with_gtk_config_path:$PATH"
7556 # look for gtk-config
7557 # Extract the first word of "gtk12-config", so it can be a program name with args.
7558 set dummy gtk12-config; ac_word=$2
7559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7560 echo "configure:7561: checking for $ac_word" >&5
7561 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7562 echo $ac_n "(cached) $ac_c" 1>&6
7564 case "$GTK12_CONFIG" in
7566 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7569 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7573 ac_dummy="$GTK_PATH"
7574 for ac_dir in $ac_dummy; do
7575 test -z "$ac_dir" && ac_dir=.
7576 if test -f $ac_dir/$ac_word; then
7577 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7582 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7586 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7587 if test -n "$GTK12_CONFIG"; then
7588 echo "$ac_t""$GTK12_CONFIG" 1>&6
7590 echo "$ac_t""no" 1>&6
7593 GTK_CONFIG=${GTK12_CONFIG}
7594 if test x${GTK_CONFIG} = xno
7596 # Extract the first word of "gtk-config", so it can be a program name with args.
7597 set dummy gtk-config; ac_word=$2
7598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7599 echo "configure:7600: checking for $ac_word" >&5
7600 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7603 case "$GTK_CONFIG" in
7605 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7608 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7612 ac_dummy="$GTK_PATH"
7613 for ac_dir in $ac_dummy; do
7614 test -z "$ac_dir" && ac_dir=.
7615 if test -f $ac_dir/$ac_word; then
7616 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7621 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7625 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7626 if test -n "$GTK_CONFIG"; then
7627 echo "$ac_t""$GTK_CONFIG" 1>&6
7629 echo "$ac_t""no" 1>&6
7633 if test x${GTK_CONFIG} != xno
7635 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7637 { 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; }
7639 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7640 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7641 # now look for the gtk.h header
7642 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7643 ac_cv_gtk_headers=yes
7644 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7648 echo "configure:7649: checking for $ac_hdr" >&5
7649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7652 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7658 { (eval echo configure:7659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7660 if test -z "$ac_err"; then
7662 eval "ac_cv_header_$ac_safe=yes"
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7668 eval "ac_cv_header_$ac_safe=no"
7672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7673 echo "$ac_t""yes" 1>&6
7674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7675 cat >> confdefs.h <<EOF
7676 #define $ac_tr_hdr 1
7680 echo "$ac_t""no" 1>&6
7681 ac_cv_gtk_headers=no
7682 echo "Cannot find gtk development headers."
7687 if test "x$ac_cv_gtk_headers" = xyes
7689 PLUGINS="${PLUGINS} gtk"
7690 ALIASES="${ALIASES} gvlc"
7692 CPPFLAGS="$save_CPPFLAGS"
7696 # Check whether --enable-gnome or --disable-gnome was given.
7697 if test "${enable_gnome+set}" = set; then
7698 enableval="$enable_gnome"
7699 if test x$enable_gnome = xyes; then
7700 # look for gnome-config
7701 # Extract the first word of "gnome-config", so it can be a program name with args.
7702 set dummy gnome-config; ac_word=$2
7703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7704 echo "configure:7705: checking for $ac_word" >&5
7705 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7706 echo $ac_n "(cached) $ac_c" 1>&6
7708 case "$GNOME_CONFIG" in
7710 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7713 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7718 for ac_dir in $ac_dummy; do
7719 test -z "$ac_dir" && ac_dir=.
7720 if test -f $ac_dir/$ac_word; then
7721 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7726 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7730 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7731 if test -n "$GNOME_CONFIG"; then
7732 echo "$ac_t""$GNOME_CONFIG" 1>&6
7734 echo "$ac_t""no" 1>&6
7737 if test -x ${GNOME_CONFIG}
7739 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7740 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7742 # now look for the gnome.h header
7743 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
7744 for ac_hdr in gnome.h
7746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7748 echo "configure:7749: checking for $ac_hdr" >&5
7749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7750 echo $ac_n "(cached) $ac_c" 1>&6
7752 cat > conftest.$ac_ext <<EOF
7753 #line 7754 "configure"
7754 #include "confdefs.h"
7757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7758 { (eval echo configure:7759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7760 if test -z "$ac_err"; then
7762 eval "ac_cv_header_$ac_safe=yes"
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7768 eval "ac_cv_header_$ac_safe=no"
7772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7773 echo "$ac_t""yes" 1>&6
7774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7775 cat >> confdefs.h <<EOF
7776 #define $ac_tr_hdr 1
7779 PLUGINS="${PLUGINS} gnome"
7780 ALIASES="${ALIASES} gnome-vlc"
7783 echo "$ac_t""no" 1>&6
7784 { echo "configure: error: Can't find gnome headers. Please install the gnome
7785 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7790 CPPFLAGS="$save_CPPFLAGS"
7795 # Check whether --enable-qt or --disable-qt was given.
7796 if test "${enable_qt+set}" = set; then
7797 enableval="$enable_qt"
7798 if test x$enable_qt = xyes; then
7799 PLUGINS="${PLUGINS} qt"
7800 ALIASES="${ALIASES} qvlc"
7801 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7802 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7803 if test -x ${QTDIR}/bin/moc
7805 MOC=${QTDIR}/bin/moc
7813 # Check whether --enable-kde or --disable-kde was given.
7814 if test "${enable_kde+set}" = set; then
7815 enableval="$enable_kde"
7816 if test x$enable_kde = xyes; then
7817 PLUGINS="${PLUGINS} kde"
7818 ALIASES="${ALIASES} kvlc"
7819 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
7820 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
7821 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
7822 if test -x ${QTDIR}/bin/moc
7824 MOC=${QTDIR}/bin/moc
7832 # Check whether --enable-macosx or --disable-macosx was given.
7833 if test "${enable_macosx+set}" = set; then
7834 enableval="$enable_macosx"
7835 if test x$enable_macosx = xyes
7837 BUILTINS="${BUILTINS} macosx"
7838 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7839 macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
7840 LDFLAGS="${LDFLAGS} -ObjC"
7843 for ac_hdr in Cocoa/Cocoa.h
7845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7847 echo "configure:7848: checking for $ac_hdr" >&5
7848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7849 echo $ac_n "(cached) $ac_c" 1>&6
7851 cat > conftest.$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7857 { (eval echo configure:7858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7859 if test -z "$ac_err"; then
7861 eval "ac_cv_header_$ac_safe=yes"
7864 echo "configure: failed program was:" >&5
7865 cat conftest.$ac_ext >&5
7867 eval "ac_cv_header_$ac_safe=no"
7871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7872 echo "$ac_t""yes" 1>&6
7873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7874 cat >> confdefs.h <<EOF
7875 #define $ac_tr_hdr 1
7877 BUILTINS="${BUILTINS} macosx"
7878 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7879 macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
7880 LDFLAGS="${LDFLAGS} -ObjC"
7883 echo "$ac_t""no" 1>&6
7890 # Check whether --enable-qnx or --disable-qnx was given.
7891 if test "${enable_qnx+set}" = set; then
7892 enableval="$enable_qnx"
7896 if test x$enable_qnx != xno
7900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7902 echo "configure:7903: checking for $ac_hdr" >&5
7903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7904 echo $ac_n "(cached) $ac_c" 1>&6
7906 cat > conftest.$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7912 { (eval echo configure:7913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7914 if test -z "$ac_err"; then
7916 eval "ac_cv_header_$ac_safe=yes"
7919 echo "configure: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7922 eval "ac_cv_header_$ac_safe=no"
7926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7927 echo "$ac_t""yes" 1>&6
7928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7929 cat >> confdefs.h <<EOF
7930 #define $ac_tr_hdr 1
7933 PLUGINS="${PLUGINS} qnx"
7934 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
7937 echo "$ac_t""no" 1>&6
7943 # Check whether --enable-intfwin or --disable-intfwin was given.
7944 if test "${enable_intfwin+set}" = set; then
7945 enableval="$enable_intfwin"
7946 if test "x$enable_intfwin" != "xno"
7948 # Check whether --with-bcbuilder or --without-bcbuilder was given.
7949 if test "${with_bcbuilder+set}" = set; then
7950 withval="$with_bcbuilder"
7954 if test "x$with_bcbuilder" != "x"
7956 BCBUILDER="$with_bcbuilder"
7958 PLUGINS="${PLUGINS} intfwin"
7963 # Check whether --enable-ncurses or --disable-ncurses was given.
7964 if test "${enable_ncurses+set}" = set; then
7965 enableval="$enable_ncurses"
7966 if test x$enable_ncurses = xyes; then
7967 PLUGINS="${PLUGINS} ncurses"
7968 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
7973 # Check whether --enable-lirc or --disable-lirc was given.
7974 if test "${enable_lirc+set}" = set; then
7975 enableval="$enable_lirc"
7979 if test x$enable_lirc = xyes
7981 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7982 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7983 echo "configure:7984: checking for lirc/lirc_client.h" >&5
7984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7985 echo $ac_n "(cached) $ac_c" 1>&6
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7990 #include <lirc/lirc_client.h>
7992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7993 { (eval echo configure:7994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7995 if test -z "$ac_err"; then
7997 eval "ac_cv_header_$ac_safe=yes"
8000 echo "configure: failed program was:" >&5
8001 cat conftest.$ac_ext >&5
8003 eval "ac_cv_header_$ac_safe=no"
8007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8008 echo "$ac_t""yes" 1>&6
8009 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8010 echo "configure:8011: checking for lirc_init in -llirc_client" >&5
8011 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8013 echo $ac_n "(cached) $ac_c" 1>&6
8015 ac_save_LIBS="$LIBS"
8016 LIBS="-llirc_client $LIBS"
8017 cat > conftest.$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8020 /* Override any gcc2 internal prototype to avoid an error. */
8021 /* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8029 if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8031 eval "ac_cv_lib_$ac_lib_var=yes"
8033 echo "configure: failed program was:" >&5
8034 cat conftest.$ac_ext >&5
8036 eval "ac_cv_lib_$ac_lib_var=no"
8039 LIBS="$ac_save_LIBS"
8042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8043 echo "$ac_t""yes" 1>&6
8046 echo "$ac_t""no" 1>&6
8051 echo "$ac_t""no" 1>&6
8055 if test x$have_lirc = xtrue
8057 PLUGINS="${PLUGINS} lirc"
8058 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8062 # Check whether --with- or --without- was given.
8063 if test "${with_+set}" = set; then
8069 # Check whether --with-words or --without-words was given.
8070 if test "${with_words+set}" = set; then
8071 withval="$with_words"
8075 case "x$with_words" in
8077 ac_cv_c_bigendian=yes
8080 ac_cv_c_bigendian=no
8083 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8084 echo "configure:8085: checking whether the byte order is big-endian" >&5
8085 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
8088 ac_cv_c_bigendian=unknown
8089 cat >conftest.c <<EOF
8090 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8091 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8092 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8093 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8094 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8095 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8096 int main(void) { _a(); _e(); return 0; }
8099 if test -f conftest.c
8101 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8102 && test -f conftest.o
8104 if test "`strings conftest.o | grep BIGenDianSyS`"
8106 ac_cv_c_bigendian=yes
8108 if test "`strings conftest.o | grep LiTTleEnDian`"
8110 ac_cv_c_bigendian=no
8117 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8118 if test x$ac_cv_c_bigendian = xunknown
8120 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8124 if test $ac_cv_c_bigendian = yes
8126 cat >> confdefs.h <<\EOF
8127 #define WORDS_BIGENDIAN 1
8133 # Check whether --enable-gprof or --disable-gprof was given.
8134 if test "${enable_gprof+set}" = set; then
8135 enableval="$enable_gprof"
8136 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
8141 # Check whether --enable-cprof or --disable-cprof was given.
8142 if test "${enable_cprof+set}" = set; then
8143 enableval="$enable_cprof"
8144 if test "x$enable_cprof" = "xyes";
8146 LDFLAGS="${LDFLAGS} -lcprof"
8153 # Check whether --enable-pth or --disable-pth was given.
8154 if test "${enable_pth+set}" = set; then
8155 enableval="$enable_pth"
8156 if test "x$enable_pth" = "xyes"; then
8157 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8158 echo "configure:8159: checking for pth_init in -lpth" >&5
8159 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8161 echo $ac_n "(cached) $ac_c" 1>&6
8163 ac_save_LIBS="$LIBS"
8165 cat > conftest.$ac_ext <<EOF
8166 #line 8167 "configure"
8167 #include "confdefs.h"
8168 /* Override any gcc2 internal prototype to avoid an error. */
8169 /* We use char because int might match the return type of a gcc2
8170 builtin and then its argument prototype would still apply. */
8177 if { (eval echo configure:8178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8179 eval "ac_cv_lib_$ac_lib_var=yes"
8181 echo "configure: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8184 eval "ac_cv_lib_$ac_lib_var=no"
8187 LIBS="$ac_save_LIBS"
8190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8191 echo "$ac_t""yes" 1>&6
8192 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8194 cat >> confdefs.h <<EOF
8195 #define $ac_tr_lib 1
8201 echo "$ac_t""no" 1>&6
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8210 egrep "pth_init" >/dev/null 2>&1; then
8213 cat >> confdefs.h <<\EOF
8214 #define PTH_INIT_IN_PTH_H 1
8226 # Check whether --enable-st or --disable-st was given.
8227 if test "${enable_st+set}" = set; then
8228 enableval="$enable_st"
8229 if test "x$enable_st" = "xyes"; then
8230 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8231 echo "configure:8232: checking for st_init in -lst" >&5
8232 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8234 echo $ac_n "(cached) $ac_c" 1>&6
8236 ac_save_LIBS="$LIBS"
8238 cat > conftest.$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8241 /* Override any gcc2 internal prototype to avoid an error. */
8242 /* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */
8250 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8252 eval "ac_cv_lib_$ac_lib_var=yes"
8254 echo "configure: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8257 eval "ac_cv_lib_$ac_lib_var=no"
8260 LIBS="$ac_save_LIBS"
8263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8264 echo "$ac_t""yes" 1>&6
8265 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8266 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8267 cat >> confdefs.h <<EOF
8268 #define $ac_tr_lib 1
8274 echo "$ac_t""no" 1>&6
8277 cat > conftest.$ac_ext <<EOF
8278 #line 8279 "configure"
8279 #include "confdefs.h"
8282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8283 egrep "st_init" >/dev/null 2>&1; then
8286 cat >> confdefs.h <<\EOF
8287 #define ST_INIT_IN_ST_H 1
8299 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
8301 # Check whether --enable-plugins or --disable-plugins was given.
8302 if test "${enable_plugins+set}" = set; then
8303 enableval="$enable_plugins"
8304 if test x$enable_plugins = xno
8306 BUILTINS="${BUILTINS} ${PLUGINS}"
8312 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8314 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8316 BUILTINS="${BUILTINS} ${PLUGINS}"
8320 cat >> confdefs.h <<EOF
8321 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8324 cat >> confdefs.h <<EOF
8325 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8329 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8330 cat >> confdefs.h <<EOF
8331 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8334 cat >> confdefs.h <<EOF
8335 #define MODULE_SYMBOL $VLC_SYMBOL
8339 DATA_PATH="${ac_tool_prefix}/share/videolan"
8341 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8438 cat > confcache <<\EOF
8439 # This file is a shell script that caches the results of configure
8440 # tests run on this system so they can be shared between configure
8441 # scripts and configure runs. It is not useful on other systems.
8442 # If it contains results you don't want to keep, you may remove or edit it.
8444 # By default, configure uses ./config.cache as the cache file,
8445 # creating it if it does not exist already. You can give configure
8446 # the --cache-file=FILE option to use a different cache file; that is
8447 # what configure does when it calls configure scripts in
8448 # subdirectories, so they share the cache.
8449 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8450 # config.status only pays attention to the cache file if you give it the
8451 # --recheck option to rerun configure.
8454 # The following way of writing the cache mishandles newlines in values,
8455 # but we know of no workaround that is simple, portable, and efficient.
8456 # So, don't put newlines in cache variables' values.
8457 # Ultrix sh set writes to stderr and can't be redirected directly,
8458 # and sets the high bit in the cache file unless we assign to the vars.
8460 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8462 # `set' does not quote correctly, so add quotes (double-quote substitution
8463 # turns \\\\ into \\, and sed turns \\ into \).
8465 -e "s/'/'\\\\''/g" \
8466 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8469 # `set' quotes correctly as required by POSIX, so do not add quotes.
8470 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8473 if cmp -s $cache_file confcache; then
8476 if test -w $cache_file; then
8477 echo "updating cache $cache_file"
8478 cat confcache > $cache_file
8480 echo "not updating unwritable cache $cache_file"
8485 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8488 # Let make expand exec_prefix.
8489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8491 # Any assignment to VPATH causes Sun make to only execute
8492 # the first set of double-colon rules, so remove it if not needed.
8493 # If there is a colon in the path, we need to keep it.
8494 if test "x$srcdir" = x.; then
8495 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8498 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8500 DEFS=-DHAVE_CONFIG_H
8502 # Without the "./", some shells look in PATH for config.status.
8503 : ${CONFIG_STATUS=./config.status}
8505 echo creating $CONFIG_STATUS
8506 rm -f $CONFIG_STATUS
8507 cat > $CONFIG_STATUS <<EOF
8509 # Generated automatically by configure.
8510 # Run this file to recreate the current configuration.
8511 # This directory was configured as follows,
8512 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8514 # $0 $ac_configure_args
8516 # Compiler output produced by configure, useful for debugging
8517 # configure, is in ./config.log if it exists.
8519 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8522 case "\$ac_option" in
8523 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8524 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8525 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8526 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8527 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8529 -help | --help | --hel | --he | --h)
8530 echo "\$ac_cs_usage"; exit 0 ;;
8531 *) echo "\$ac_cs_usage"; exit 1 ;;
8535 ac_given_srcdir=$srcdir
8536 ac_given_INSTALL="$INSTALL"
8538 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8540 cat >> $CONFIG_STATUS <<EOF
8542 # Protect against being on the right side of a sed subst in config.status.
8543 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8544 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8548 s%@CFLAGS@%$CFLAGS%g
8549 s%@CPPFLAGS@%$CPPFLAGS%g
8550 s%@CXXFLAGS@%$CXXFLAGS%g
8551 s%@FFLAGS@%$FFLAGS%g
8553 s%@LDFLAGS@%$LDFLAGS%g
8555 s%@exec_prefix@%$exec_prefix%g
8556 s%@prefix@%$prefix%g
8557 s%@program_transform_name@%$program_transform_name%g
8558 s%@bindir@%$bindir%g
8559 s%@sbindir@%$sbindir%g
8560 s%@libexecdir@%$libexecdir%g
8561 s%@datadir@%$datadir%g
8562 s%@sysconfdir@%$sysconfdir%g
8563 s%@sharedstatedir@%$sharedstatedir%g
8564 s%@localstatedir@%$localstatedir%g
8565 s%@libdir@%$libdir%g
8566 s%@includedir@%$includedir%g
8567 s%@oldincludedir@%$oldincludedir%g
8568 s%@infodir@%$infodir%g
8569 s%@mandir@%$mandir%g
8571 s%@host_alias@%$host_alias%g
8572 s%@host_cpu@%$host_cpu%g
8573 s%@host_vendor@%$host_vendor%g
8574 s%@host_os@%$host_os%g
8575 s%@target@%$target%g
8576 s%@target_alias@%$target_alias%g
8577 s%@target_cpu@%$target_cpu%g
8578 s%@target_vendor@%$target_vendor%g
8579 s%@target_os@%$target_os%g
8581 s%@build_alias@%$build_alias%g
8582 s%@build_cpu@%$build_cpu%g
8583 s%@build_vendor@%$build_vendor%g
8584 s%@build_os@%$build_os%g
8585 s%@SET_MAKE@%$SET_MAKE%g
8588 s%@RANLIB@%$RANLIB%g
8591 s%@ALLOCA@%$ALLOCA%g
8592 s%@GLIBC21@%$GLIBC21%g
8593 s%@LIBICONV@%$LIBICONV%g
8594 s%@USE_NLS@%$USE_NLS%g
8595 s%@MSGFMT@%$MSGFMT%g
8596 s%@GMSGFMT@%$GMSGFMT%g
8597 s%@XGETTEXT@%$XGETTEXT%g
8598 s%@INTLBISON@%$INTLBISON%g
8599 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8600 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8601 s%@CATALOGS@%$CATALOGS%g
8602 s%@CATOBJEXT@%$CATOBJEXT%g
8603 s%@GMOFILES@%$GMOFILES%g
8604 s%@INTLLIBS@%$INTLLIBS%g
8605 s%@INTLOBJS@%$INTLOBJS%g
8606 s%@POFILES@%$POFILES%g
8608 s%@DATADIRNAME@%$DATADIRNAME%g
8609 s%@INSTOBJEXT@%$INSTOBJEXT%g
8610 s%@GENCAT@%$GENCAT%g
8611 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8612 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8613 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8614 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8615 s%@INSTALL_DATA@%$INSTALL_DATA%g
8616 s%@WINDRES@%$WINDRES%g
8617 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8618 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8619 s%@SDL_CONFIG@%$SDL_CONFIG%g
8620 s%@ESD_CONFIG@%$ESD_CONFIG%g
8621 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8622 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8623 s%@GTK_CONFIG@%$GTK_CONFIG%g
8624 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8625 s%@DATA_PATH@%$DATA_PATH%g
8626 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8629 s%@PLUGINS@%$PLUGINS%g
8630 s%@BUILTINS@%$BUILTINS%g
8631 s%@ALIASES@%$ALIASES%g
8636 s%@OPTIMS@%$OPTIMS%g
8637 s%@TUNING@%$TUNING%g
8638 s%@RELEASE@%$RELEASE%g
8640 s%@BCBUILDER@%$BCBUILDER%g
8641 s%@PACKAGE@%$PACKAGE%g
8642 s%@VERSION@%$VERSION%g
8643 s%@NEED_GETOPT@%$NEED_GETOPT%g
8644 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8645 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8646 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8647 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8648 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8649 s%@a52_CFLAGS@%$a52_CFLAGS%g
8650 s%@arts_CFLAGS@%$arts_CFLAGS%g
8651 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8652 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8653 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8654 s%@directx_CFLAGS@%$directx_CFLAGS%g
8655 s%@esd_CFLAGS@%$esd_CFLAGS%g
8656 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8657 s%@glide_CFLAGS@%$glide_CFLAGS%g
8658 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8659 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8660 s%@kde_CFLAGS@%$kde_CFLAGS%g
8661 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8662 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8663 s%@mad_CFLAGS@%$mad_CFLAGS%g
8664 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8665 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8666 s%@qt_CFLAGS@%$qt_CFLAGS%g
8667 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8668 s%@x11_CFLAGS@%$x11_CFLAGS%g
8669 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8670 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8671 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8672 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8673 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8674 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8675 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8676 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8677 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8678 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8679 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8680 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8681 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8682 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8683 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8684 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8685 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8686 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8687 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8688 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8689 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8690 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8691 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8692 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8693 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8694 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8695 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8696 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8697 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8698 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8699 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8700 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8701 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8702 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8703 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8704 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8705 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8706 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8707 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8708 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8709 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8710 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8711 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8716 cat >> $CONFIG_STATUS <<\EOF
8718 # Split the substitutions into bite-sized pieces for seds with
8719 # small command number limits, like on Digital OSF/1 and HP-UX.
8720 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8721 ac_file=1 # Number of current file.
8722 ac_beg=1 # First line for current file.
8723 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8726 while $ac_more_lines; do
8727 if test $ac_beg -gt 1; then
8728 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8730 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8732 if test ! -s conftest.s$ac_file; then
8734 rm -f conftest.s$ac_file
8736 if test -z "$ac_sed_cmds"; then
8737 ac_sed_cmds="sed -f conftest.s$ac_file"
8739 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8741 ac_file=`expr $ac_file + 1`
8743 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8746 if test -z "$ac_sed_cmds"; then
8751 cat >> $CONFIG_STATUS <<EOF
8753 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8755 cat >> $CONFIG_STATUS <<\EOF
8756 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8759 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8760 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8761 *) ac_file_in="${ac_file}.in" ;;
8764 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8766 # Remove last slash and all that follows it. Not all systems have dirname.
8767 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8768 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8769 # The file is in a subdirectory.
8770 test ! -d "$ac_dir" && mkdir "$ac_dir"
8771 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8772 # A "../" for each directory in $ac_dir_suffix.
8773 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8775 ac_dir_suffix= ac_dots=
8778 case "$ac_given_srcdir" in
8780 if test -z "$ac_dots"; then top_srcdir=.
8781 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8782 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8784 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8785 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8788 case "$ac_given_INSTALL" in
8789 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8790 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8793 echo creating "$ac_file"
8795 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8797 *Makefile*) ac_comsub="1i\\
8798 # $configure_input" ;;
8802 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8804 s%@configure_input@%$configure_input%g
8805 s%@srcdir@%$srcdir%g
8806 s%@top_srcdir@%$top_srcdir%g
8807 s%@INSTALL@%$INSTALL%g
8808 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8812 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8813 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8815 # ac_d sets the value in "#define NAME VALUE" lines.
8816 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8817 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8820 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8821 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8822 ac_uB='\([ ]\)%\1#\2define\3'
8825 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8826 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8827 ac_eB='$%\1#\2define\3'
8831 if test "${CONFIG_HEADERS+set}" != set; then
8833 cat >> $CONFIG_STATUS <<EOF
8834 CONFIG_HEADERS="include/defs.h"
8836 cat >> $CONFIG_STATUS <<\EOF
8838 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8841 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8842 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8843 *) ac_file_in="${ac_file}.in" ;;
8846 echo creating $ac_file
8848 rm -f conftest.frag conftest.in conftest.out
8849 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8850 cat $ac_file_inputs > conftest.in
8854 # Transform confdefs.h into a sed script conftest.vals that substitutes
8855 # the proper values into config.h.in to produce config.h. And first:
8856 # Protect against being on the right side of a sed subst in config.status.
8857 # Protect against being in an unquoted here document in config.status.
8859 cat > conftest.hdr <<\EOF
8862 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8866 sed -n -f conftest.hdr confdefs.h > conftest.vals
8869 # This sed command replaces #undef with comments. This is necessary, for
8870 # example, in the case of _POSIX_SOURCE, which is predefined and required
8871 # on some systems where configure will not decide to define it.
8872 cat >> conftest.vals <<\EOF
8873 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8876 # Break up conftest.vals because some shells have a limit on
8877 # the size of here documents, and old seds have small limits too.
8882 ac_lines=`grep -c . conftest.vals`
8883 # grep -c gives empty output for an empty file on some AIX systems.
8884 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8885 # Write a limited-size here document to conftest.frag.
8886 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8887 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8889 sed -f conftest.frag conftest.in > conftest.out
8891 mv conftest.out conftest.in
8893 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8895 mv conftest.tail conftest.vals
8899 cat >> $CONFIG_STATUS <<\EOF
8900 rm -f conftest.frag conftest.h
8901 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8902 cat conftest.in >> conftest.h
8904 if cmp -s $ac_file conftest.h 2>/dev/null; then
8905 echo "$ac_file is unchanged"
8908 # Remove last slash and all that follows it. Not all systems have dirname.
8909 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8910 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8911 # The file is in a subdirectory.
8912 test ! -d "$ac_dir" && mkdir "$ac_dir"
8915 mv conftest.h $ac_file
8920 cat >> $CONFIG_STATUS <<EOF
8924 cat >> $CONFIG_STATUS <<\EOF
8925 for ac_file in $CONFIG_FILES; do
8926 # Support "outfile[:infile[:infile...]]"
8928 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8930 # PO directories have a Makefile.in generated from Makefile.in.in.
8931 case "$ac_file" in */Makefile.in)
8932 # Adjust a relative srcdir.
8933 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8934 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8935 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8936 # In autoconf-2.13 it is called $ac_given_srcdir.
8937 # In autoconf-2.50 it is called $srcdir.
8938 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8939 case "$ac_given_srcdir" in
8940 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8941 /*) top_srcdir="$ac_given_srcdir" ;;
8942 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8944 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8945 rm -f "$ac_dir/POTFILES"
8946 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8947 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8948 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8949 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8957 chmod +x $CONFIG_STATUS
8958 rm -fr confdefs* $ac_clean_files
8959 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8964 --------------------
8965 vlc version : ${VERSION}
8967 architecture : ${ARCH}
8968 optimizations : ${OPTIMS}
8970 debug mode : ${DEBUG}
8971 release : ${RELEASE}
8972 cprof/gprof support : ${CPROF}/${GPROF}
8973 need builtin getopt : ${NEED_GETOPT}
8974 built-in modules :${BUILTINS}
8975 plug-in modules :${PLUGINS}
8976 vlc aliases :${ALIASES}
8978 You may now tune Makefile.opts at your convenience, for instance to choose
8979 which modules get compiled as plugins.
8981 To build vlc and its plugins, type \`$VLC_MAKE'.