3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
50 --with-dvbpsi=PATH libdvbpsi headers and libraries"
52 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
54 --enable-satellite satellite card support (default disabled)"
56 --enable-avi AVI demux module (default enabled)"
60 --enable-mad libmad module (default disabled)"
62 --with-mad=PATH path to libmad"
64 --with-mad-tree=PATH mad tree for static linking"
66 --enable-ffmpeg ffmpeg codec (default disabled)"
68 --with-ffmpeg=PATH path to ffmpeg installation"
70 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
72 --enable-a52 AC3 support with liba52 (default enabled)"
74 --with-a52-tree=PATH a52dec tree for static linking "
76 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
80 --enable-x11 X11 support (default enabled)"
82 --enable-xvideo XVideo support (default enabled)"
84 --enable-sdl SDL support (default enabled)"
86 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
88 --enable-directx Win32 DirectX support (default enabled on Win32)"
90 --with-directx=PATH Win32 DirectX headers and libraries"
92 --enable-fb Linux framebuffer support (default enabled on Linux)"
94 --enable-mga Linux kernel Matrox support (default disabled)"
96 --enable-ggi GGI support (default disabled)"
98 --with-ggi=PATH path to libggi"
100 --enable-glide Glide (3dfx) support (default disabled)"
102 --with-glide=PATH path to libglide"
104 --enable-aa aalib output (default disabled)"
108 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
110 --enable-esd Esound library support (default disabled)"
112 --enable-arts aRts sound server (default disabled)"
114 --enable-alsa ALSA sound support for Linux (default disabled)"
116 --enable-waveout Win32 waveOut module (default enabled on Win32)"
120 --enable-gtk Gtk+ support (default enabled)"
122 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
124 --enable-gnome Gnome interface support (default disabled)"
126 --enable-qt Qt interface support (default disabled)"
128 --enable-kde KDE interface support (default disabled)"
130 --enable-macosx MacOS X support (default enabled on MacOS X)"
132 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
134 --enable-intfwin Win32 interface support (default disabled)"
136 --with-bcbuilder=PATH Borland C++ Builder installation path"
138 --enable-ncurses ncurses interface support (default disabled)"
140 --enable-lirc lirc support (default disabled)"
144 --with-words=endianness set endianness (big or little)"
146 --enable-gprof gprof profiling (default disabled)"
148 --enable-cprof cprof profiling (default disabled)"
150 --enable-pth GNU Pth support (default disabled)"
152 --enable-st State Threads (default disabled)"
154 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
156 # Initialize some variables set by options.
157 # The variables have the same names as the options, with
158 # dashes changed to underlines.
160 cache_file
=.
/config.cache
169 program_transform_name
=s
,x
,x
,
177 bindir
='${exec_prefix}/bin'
178 sbindir
='${exec_prefix}/sbin'
179 libexecdir
='${exec_prefix}/libexec'
180 datadir
='${prefix}/share'
181 sysconfdir
='${prefix}/etc'
182 sharedstatedir
='${prefix}/com'
183 localstatedir
='${prefix}/var'
184 libdir
='${exec_prefix}/lib'
185 includedir
='${prefix}/include'
186 oldincludedir
='/usr/include'
187 infodir
='${prefix}/info'
188 mandir
='${prefix}/man'
190 # Initialize some other variables.
193 SHELL
=${CONFIG_SHELL-/bin/sh}
194 # Maximum number of lines to put in a shell here document.
201 # If the previous option needs an argument, assign it.
202 if test -n "$ac_prev"; then
203 eval "$ac_prev=\$ac_option"
209 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
213 # Accept the important Cygnus configure options, so we can diagnose typos.
217 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
219 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
220 bindir
="$ac_optarg" ;;
222 -build |
--build |
--buil |
--bui |
--bu)
224 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
225 build
="$ac_optarg" ;;
227 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
228 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
229 ac_prev
=cache_file
;;
230 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
231 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
232 cache_file
="$ac_optarg" ;;
234 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
236 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
238 datadir
="$ac_optarg" ;;
240 -disable-* |
--disable-*)
241 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
242 # Reject names that are not valid shell variable names.
243 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
244 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
246 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
247 eval "enable_${ac_feature}=no" ;;
249 -enable-* |
--enable-*)
250 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
251 # Reject names that are not valid shell variable names.
252 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
253 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
255 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
260 eval "enable_${ac_feature}='$ac_optarg'" ;;
262 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
263 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
264 |
--exec |
--exe |
--ex)
265 ac_prev
=exec_prefix
;;
266 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
267 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
268 |
--exec=* |
--exe=* |
--ex=*)
269 exec_prefix
="$ac_optarg" ;;
271 -gas |
--gas |
--ga |
--g)
272 # Obsolete; use --with-gas.
275 -help |
--help |
--hel |
--he)
276 # Omit some internal or obsolete options to make the list less imposing.
277 # This message is too long to be a string in the A/UX 3.1 sh.
279 Usage: configure [options] [host]
280 Options: [defaults in brackets after descriptions]
282 --cache-file=FILE cache test results in FILE
283 --help print this message
284 --no-create do not create output files
285 --quiet, --silent do not print \`checking...' messages
286 --version print the version of autoconf that created configure
287 Directory and file names:
288 --prefix=PREFIX install architecture-independent files in PREFIX
290 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
292 --bindir=DIR user executables in DIR [EPREFIX/bin]
293 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
294 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
295 --datadir=DIR read-only architecture-independent data in DIR
297 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
298 --sharedstatedir=DIR modifiable architecture-independent data in DIR
300 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
301 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
302 --includedir=DIR C header files in DIR [PREFIX/include]
303 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
304 --infodir=DIR info documentation in DIR [PREFIX/info]
305 --mandir=DIR man documentation in DIR [PREFIX/man]
306 --srcdir=DIR find the sources in DIR [configure dir or ..]
307 --program-prefix=PREFIX prepend PREFIX to installed program names
308 --program-suffix=SUFFIX append SUFFIX to installed program names
309 --program-transform-name=PROGRAM
310 run sed PROGRAM on installed program names
314 --build=BUILD configure for building on BUILD [BUILD=HOST]
315 --host=HOST configure for HOST [guessed]
316 --target=TARGET configure for TARGET [TARGET=HOST]
317 Features and packages:
318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
322 --x-includes=DIR X include files are in DIR
323 --x-libraries=DIR X library files are in DIR
325 if test -n "$ac_help"; then
326 echo "--enable and --with options recognized:$ac_help"
330 -host |
--host |
--hos |
--ho)
332 -host=* |
--host=* |
--hos=* |
--ho=*)
335 -includedir |
--includedir |
--includedi |
--included |
--include \
336 |
--includ |
--inclu |
--incl |
--inc)
337 ac_prev
=includedir
;;
338 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
339 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
340 includedir
="$ac_optarg" ;;
342 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
344 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
345 infodir
="$ac_optarg" ;;
347 -libdir |
--libdir |
--libdi |
--libd)
349 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
350 libdir
="$ac_optarg" ;;
352 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
353 |
--libexe |
--libex |
--libe)
354 ac_prev
=libexecdir
;;
355 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
356 |
--libexe=* |
--libex=* |
--libe=*)
357 libexecdir
="$ac_optarg" ;;
359 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
360 |
--localstate |
--localstat |
--localsta |
--localst \
361 |
--locals |
--local |
--loca |
--loc |
--lo)
362 ac_prev
=localstatedir
;;
363 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
364 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
365 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
366 localstatedir
="$ac_optarg" ;;
368 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
370 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
371 mandir
="$ac_optarg" ;;
374 # Obsolete; use --without-fp.
377 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
381 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
382 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
385 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
386 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
387 |
--oldin |
--oldi |
--old |
--ol |
--o)
388 ac_prev
=oldincludedir
;;
389 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
390 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
391 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
392 oldincludedir
="$ac_optarg" ;;
394 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
396 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
397 prefix
="$ac_optarg" ;;
399 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
400 |
--program-pre |
--program-pr |
--program-p)
401 ac_prev
=program_prefix
;;
402 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
403 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
404 program_prefix
="$ac_optarg" ;;
406 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
407 |
--program-suf |
--program-su |
--program-s)
408 ac_prev
=program_suffix
;;
409 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
410 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
411 program_suffix
="$ac_optarg" ;;
413 -program-transform-name |
--program-transform-name \
414 |
--program-transform-nam |
--program-transform-na \
415 |
--program-transform-n |
--program-transform- \
416 |
--program-transform |
--program-transfor \
417 |
--program-transfo |
--program-transf \
418 |
--program-trans |
--program-tran \
419 |
--progr-tra |
--program-tr |
--program-t)
420 ac_prev
=program_transform_name
;;
421 -program-transform-name=* |
--program-transform-name=* \
422 |
--program-transform-nam=* |
--program-transform-na=* \
423 |
--program-transform-n=* |
--program-transform-=* \
424 |
--program-transform=* |
--program-transfor=* \
425 |
--program-transfo=* |
--program-transf=* \
426 |
--program-trans=* |
--program-tran=* \
427 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
428 program_transform_name
="$ac_optarg" ;;
430 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
431 |
-silent |
--silent |
--silen |
--sile |
--sil)
434 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
436 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
438 sbindir
="$ac_optarg" ;;
440 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
441 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
442 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
444 ac_prev
=sharedstatedir
;;
445 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
446 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
447 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
449 sharedstatedir
="$ac_optarg" ;;
451 -site |
--site |
--sit)
453 -site=* |
--site=* |
--sit=*)
456 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
458 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
459 srcdir
="$ac_optarg" ;;
461 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
462 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
463 ac_prev
=sysconfdir
;;
464 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
465 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
466 sysconfdir
="$ac_optarg" ;;
468 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
470 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
471 target
="$ac_optarg" ;;
473 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
476 -version |
--version |
--versio |
--versi |
--vers)
477 echo "configure generated by autoconf version 2.13"
481 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
482 # Reject names that are not valid shell variable names.
483 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
484 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
486 ac_package
=`echo $ac_package| sed 's/-/_/g'`
491 eval "with_${ac_package}='$ac_optarg'" ;;
493 -without-* |
--without-*)
494 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
495 # Reject names that are not valid shell variable names.
496 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
497 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
499 ac_package
=`echo $ac_package| sed 's/-/_/g'`
500 eval "with_${ac_package}=no" ;;
503 # Obsolete; use --with-x.
506 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
507 |
--x-incl |
--x-inc |
--x-in |
--x-i)
508 ac_prev
=x_includes
;;
509 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
510 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
511 x_includes
="$ac_optarg" ;;
513 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
514 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
515 ac_prev
=x_libraries
;;
516 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
517 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
518 x_libraries
="$ac_optarg" ;;
520 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
524 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
525 echo "configure: warning: $ac_option: invalid host type" 1>&2
527 if test "x$nonopt" != xNONE
; then
528 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
536 if test -n "$ac_prev"; then
537 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
540 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
542 # File descriptor usage:
545 # 2 errors and warnings
546 # 3 some systems may open it to /dev/tty
547 # 4 used on the Kubota Titan
548 # 6 checking for... messages and results
549 # 5 compiler messages saved in config.log
550 if test "$silent" = yes; then
558 This file contains any messages produced by compilers while
559 running configure, to aid debugging if configure makes a mistake.
562 # Strip out --no-create and --no-recursion so they do not pile up.
563 # Also quote any args containing shell metacharacters.
568 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
569 |
--no-cr |
--no-c) ;;
570 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
571 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
572 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
573 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
574 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
579 # Only set these to C if already set. These must not be set unconditionally
580 # because not all systems understand e.g. LANG=C (notably SCO).
581 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
582 # Non-C LC_CTYPE values break the ctype check.
583 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
584 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
585 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
586 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
589 rm -rf conftest
* confdefs.h
590 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
593 # A filename unique to this package, relative to the directory that
594 # configure is in, which we can look for to find out if srcdir is correct.
595 ac_unique_file
=include
/main.h
597 # Find the source files, if location was not specified.
598 if test -z "$srcdir"; then
599 ac_srcdir_defaulted
=yes
600 # Try the directory containing this script, then its parent.
602 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
603 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
605 if test ! -r $srcdir/$ac_unique_file; then
609 ac_srcdir_defaulted
=no
611 if test ! -r $srcdir/$ac_unique_file; then
612 if test "$ac_srcdir_defaulted" = yes; then
613 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
615 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
618 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
620 # Prefer explicitly selected file to automatically selected ones.
621 if test -z "$CONFIG_SITE"; then
622 if test "x$prefix" != xNONE
; then
623 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
625 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
628 for ac_site_file
in $CONFIG_SITE; do
629 if test -r "$ac_site_file"; then
630 echo "loading site script $ac_site_file"
635 if test -r "$cache_file"; then
636 echo "loading cache $cache_file"
639 echo "creating cache $cache_file"
644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
645 ac_cpp
='$CPP $CPPFLAGS'
646 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
647 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
648 cross_compiling
=$ac_cv_prog_cc_cross
652 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
653 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
654 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
661 ac_n
= ac_c
='\c' ac_t
=
667 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
668 if test -f $ac_dir/install-sh
; then
670 ac_install_sh
="$ac_aux_dir/install-sh -c"
672 elif test -f $ac_dir/install.sh
; then
674 ac_install_sh
="$ac_aux_dir/install.sh -c"
678 if test -z "$ac_aux_dir"; then
679 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
681 ac_config_guess
=$ac_aux_dir/config.guess
682 ac_config_sub
=$ac_aux_dir/config.sub
683 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
686 # Do some error checking and defaulting for the host and target type.
688 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
691 # 1. You are not allowed to specify --host, --target, and nonopt at the
693 # 2. Host defaults to nonopt.
694 # 3. If nonopt is not specified, then host defaults to the current host,
695 # as determined by config.guess.
696 # 4. Target and build default to nonopt.
697 # 5. If nonopt is not specified, then target and build default to host.
699 # The aliases save the names the user supplied, while $host etc.
700 # will get canonicalized.
701 case $host---$target---$nonopt in
702 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
703 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
707 # Make sure we can run config.sub.
708 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
709 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
712 echo $ac_n "checking host system type""... $ac_c" 1>&6
713 echo "configure:714: checking host system type" >&5
716 case "$host_alias" in
720 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
721 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
723 *) host_alias
=$nonopt ;;
727 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
728 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
729 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
730 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
731 echo "$ac_t""$host" 1>&6
733 echo $ac_n "checking target system type""... $ac_c" 1>&6
734 echo "configure:735: checking target system type" >&5
737 case "$target_alias" in
740 NONE
) target_alias
=$host_alias ;;
741 *) target_alias
=$nonopt ;;
745 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
746 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
749 echo "$ac_t""$target" 1>&6
751 echo $ac_n "checking build system type""... $ac_c" 1>&6
752 echo "configure:753: checking build system type" >&5
755 case "$build_alias" in
758 NONE
) build_alias
=$host_alias ;;
759 *) build_alias
=$nonopt ;;
763 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
764 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
767 echo "$ac_t""$build" 1>&6
769 test "$host_alias" != "$target_alias" &&
770 test "$program_prefix$program_suffix$program_transform_name" = \
772 program_prefix
=${target_alias}-
779 save_CFLAGS
="${CFLAGS}"
780 save_CPPFLAGS
="${CPPFLAGS}"
781 save_LDFLAGS
="${LDFLAGS}"
783 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
784 echo "configure:785: checking whether ${MAKE-make} sets \${MAKE}" >&5
785 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
786 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 cat > conftestmake
<<\EOF
791 @
echo 'ac_maketemp="${MAKE}"'
793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
794 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
795 if test -n "$ac_maketemp"; then
796 eval ac_cv_prog_make_
${ac_make}_set
=yes
798 eval ac_cv_prog_make_
${ac_make}_set
=no
802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
803 echo "$ac_t""yes" 1>&6
806 echo "$ac_t""no" 1>&6
807 SET_MAKE
="MAKE=${MAKE-make}"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc
; ac_word
=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC
="$CC" # Let the user override the test.
820 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
822 for ac_dir
in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir
=.
824 if test -f $ac_dir/$ac_word; then
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
836 echo "$ac_t""no" 1>&6
839 if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841 set dummy cc
; ac_word
=$2
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843 echo "configure:844: checking for $ac_word" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 if test -n "$CC"; then
848 ac_cv_prog_CC
="$CC" # Let the user override the test.
850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
853 for ac_dir
in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir
=.
855 if test -f $ac_dir/$ac_word; then
856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
865 if test $ac_prog_rejected = yes; then
866 # We found a bogon in the path, so make sure we never use it.
867 set dummy
$ac_cv_prog_CC
869 if test $# -gt 0; then
870 # We chose a different compiler from the bogus one.
871 # However, it has the same basename, so the bogon will be chosen
872 # first if we set CC to just the basename; use the full file name.
874 set dummy
"$ac_dir/$ac_word" "$@"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
888 if test -z "$CC"; then
891 # Extract the first word of "cl", so it can be a program name with args.
892 set dummy cl
; ac_word
=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$CC"; then
899 ac_cv_prog_CC
="$CC" # Let the user override the test.
901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
903 for ac_dir
in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir
=.
905 if test -f $ac_dir/$ac_word; then
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
917 echo "$ac_t""no" 1>&6
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp
='$CPP $CPPFLAGS'
931 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling
=$ac_cv_prog_cc_cross
935 cat > conftest.
$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
942 if { (eval echo configure
:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
943 ac_cv_prog_cc_works
=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (.
/conftest
; exit) 2>/dev
/null
; then
946 ac_cv_prog_cc_cross
=no
948 ac_cv_prog_cc_cross
=yes
951 echo "configure: failed program was:" >&5
952 cat conftest.
$ac_ext >&5
953 ac_cv_prog_cc_works
=no
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp
='$CPP $CPPFLAGS'
959 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling
=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
964 if test $ac_cv_prog_cc_works = no
; then
965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
970 cross_compiling
=$ac_cv_prog_cc_cross
972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 cat > conftest.c
<<EOF
982 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
991 if test $ac_cv_prog_gcc = yes; then
997 ac_test_CFLAGS
="${CFLAGS+set}"
998 ac_save_CFLAGS
="$CFLAGS"
1000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 echo 'void f(){}' > conftest.c
1006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1016 if test "$ac_test_CFLAGS" = set; then
1017 CFLAGS
="$ac_save_CFLAGS"
1018 elif test $ac_cv_prog_cc_g = yes; then
1019 if test "$GCC" = yes; then
1025 if test "$GCC" = yes; then
1032 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1033 echo "configure:1034: checking how to run the C preprocessor" >&5
1034 # On Suns, sometimes $CPP names a directory.
1035 if test -n "$CPP" && test -d "$CPP"; then
1038 if test -z "$CPP"; then
1039 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 # This must be in double quotes, not single quotes, because CPP may get
1043 # substituted into the Makefile and "${CC-cc}" will confuse make.
1045 # On the NeXT, cc -E runs the code through the compiler's parser,
1046 # not just through cpp.
1047 cat > conftest.
$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1053 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1054 { (eval echo configure
:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1055 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1056 if test -z "$ac_err"; then
1060 echo "configure: failed program was:" >&5
1061 cat conftest.
$ac_ext >&5
1063 CPP
="${CC-cc} -E -traditional-cpp"
1064 cat > conftest.
$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1070 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1071 { (eval echo configure
:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1072 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1073 if test -z "$ac_err"; then
1077 echo "configure: failed program was:" >&5
1078 cat conftest.
$ac_ext >&5
1080 CPP
="${CC-cc} -nologo -E"
1081 cat > conftest.
$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1087 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088 { (eval echo configure
:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1090 if test -z "$ac_err"; then
1094 echo "configure: failed program was:" >&5
1095 cat conftest.
$ac_ext >&5
1104 ac_cv_prog_CPP
="$CPP"
1106 CPP
="$ac_cv_prog_CPP"
1108 ac_cv_prog_CPP
="$CPP"
1110 echo "$ac_t""$CPP" 1>&6
1113 if test $host != $build; then
1114 ac_tool_prefix
=${host_alias}-
1119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1120 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 if test -n "$RANLIB"; then
1127 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1131 for ac_dir
in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir
=.
1133 if test -f $ac_dir/$ac_word; then
1134 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1141 RANLIB
="$ac_cv_prog_RANLIB"
1142 if test -n "$RANLIB"; then
1143 echo "$ac_t""$RANLIB" 1>&6
1145 echo "$ac_t""no" 1>&6
1149 if test -z "$ac_cv_prog_RANLIB"; then
1150 if test -n "$ac_tool_prefix"; then
1151 # Extract the first word of "ranlib", so it can be a program name with args.
1152 set dummy ranlib
; ac_word
=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 if test -n "$RANLIB"; then
1159 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1161 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1163 for ac_dir
in $ac_dummy; do
1164 test -z "$ac_dir" && ac_dir
=.
1165 if test -f $ac_dir/$ac_word; then
1166 ac_cv_prog_RANLIB
="ranlib"
1171 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1174 RANLIB
="$ac_cv_prog_RANLIB"
1175 if test -n "$RANLIB"; then
1176 echo "$ac_t""$RANLIB" 1>&6
1178 echo "$ac_t""no" 1>&6
1186 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1187 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 if test -n "$STRIP"; then
1194 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1196 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1198 for ac_dir
in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir
=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1208 STRIP
="$ac_cv_prog_STRIP"
1209 if test -n "$STRIP"; then
1210 echo "$ac_t""$STRIP" 1>&6
1212 echo "$ac_t""no" 1>&6
1216 if test -z "$ac_cv_prog_STRIP"; then
1217 if test -n "$ac_tool_prefix"; then
1218 # Extract the first word of "strip", so it can be a program name with args.
1219 set dummy strip
; ac_word
=$2
1220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1221 echo "configure:1222: checking for $ac_word" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 if test -n "$STRIP"; then
1226 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1228 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1230 for ac_dir
in $ac_dummy; do
1231 test -z "$ac_dir" && ac_dir
=.
1232 if test -f $ac_dir/$ac_word; then
1233 ac_cv_prog_STRIP
="strip"
1238 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1241 STRIP
="$ac_cv_prog_STRIP"
1242 if test -n "$STRIP"; then
1243 echo "$ac_t""$STRIP" 1>&6
1245 echo "$ac_t""no" 1>&6
1254 # Extract the first word of "gmake", so it can be a program name with args.
1255 set dummy gmake
; ac_word
=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1263 ac_cv_path_GMAKE
="$GMAKE" # Let the user override the test with a path.
1266 ac_cv_path_GMAKE
="$GMAKE" # Let the user override the test with a dos path.
1269 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1271 for ac_dir
in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir
=.
1273 if test -f $ac_dir/$ac_word; then
1274 ac_cv_path_GMAKE
="$ac_dir/$ac_word"
1279 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE
="no"
1283 GMAKE
="$ac_cv_path_GMAKE"
1284 if test -n "$GMAKE"; then
1285 echo "$ac_t""$GMAKE" 1>&6
1287 echo "$ac_t""no" 1>&6
1290 if test "x$GMAKE" = "xno"; then
1291 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1292 echo "configure:1293: checking whether GNU make is installed" >&5
1293 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if make --version |
grep -q -i gnu
; then
1299 echo "This software needs you to install GNU make to compile properly."
1300 echo "You can get it from http://www.gnu.org/."
1305 echo "$ac_t""$ac_cv_gmake" 1>&6
1311 ALL_LINGUAS
="de en_GB fr ja no ru nl"
1313 cat >> confdefs.h
<<EOF
1314 #define VLC_PACKAGE "$PACKAGE"
1317 cat >> confdefs.h
<<EOF
1318 #define VLC_VERSION "$VERSION"
1321 # Extract the first word of "ranlib", so it can be a program name with args.
1322 set dummy ranlib
; ac_word
=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 if test -n "$RANLIB"; then
1329 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1331 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1333 for ac_dir
in $ac_dummy; do
1334 test -z "$ac_dir" && ac_dir
=.
1335 if test -f $ac_dir/$ac_word; then
1336 ac_cv_prog_RANLIB
="ranlib"
1341 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1344 RANLIB
="$ac_cv_prog_RANLIB"
1345 if test -n "$RANLIB"; then
1346 echo "$ac_t""$RANLIB" 1>&6
1348 echo "$ac_t""no" 1>&6
1352 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1353 echo "configure:1354: checking for strerror in -lcposix" >&5
1354 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 ac_save_LIBS
="$LIBS"
1359 LIBS
="-lcposix $LIBS"
1360 cat > conftest.
$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1363 /* Override any gcc2 internal prototype to avoid an error. */
1364 /* We use char because int might match the return type of a gcc2
1365 builtin and then its argument prototype would still apply. */
1372 if { (eval echo configure
:1373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1374 eval "ac_cv_lib_$ac_lib_var=yes"
1376 echo "configure: failed program was:" >&5
1377 cat conftest.
$ac_ext >&5
1379 eval "ac_cv_lib_$ac_lib_var=no"
1382 LIBS
="$ac_save_LIBS"
1385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1386 echo "$ac_t""yes" 1>&6
1387 LIBS
="$LIBS -lcposix"
1389 echo "$ac_t""no" 1>&6
1394 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1395 echo "configure:1396: checking for ANSI C header files" >&5
1396 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 cat > conftest.
$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1407 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1408 { (eval echo configure
:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1409 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1410 if test -z "$ac_err"; then
1412 ac_cv_header_stdc
=yes
1415 echo "configure: failed program was:" >&5
1416 cat conftest.
$ac_ext >&5
1418 ac_cv_header_stdc
=no
1422 if test $ac_cv_header_stdc = yes; then
1423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1424 cat > conftest.
$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1430 egrep "memchr" >/dev
/null
2>&1; then
1434 ac_cv_header_stdc
=no
1440 if test $ac_cv_header_stdc = yes; then
1441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1442 cat > conftest.
$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1448 egrep "free" >/dev
/null
2>&1; then
1452 ac_cv_header_stdc
=no
1458 if test $ac_cv_header_stdc = yes; then
1459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1460 if test "$cross_compiling" = yes; then
1463 cat > conftest.
$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1467 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1468 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1470 int main () { int i; for (i = 0; i < 256; i++)
1471 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1475 if { (eval echo configure
:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1479 echo "configure: failed program was:" >&5
1480 cat conftest.
$ac_ext >&5
1482 ac_cv_header_stdc
=no
1490 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1491 if test $ac_cv_header_stdc = yes; then
1492 cat >> confdefs.h
<<\EOF
1493 #define STDC_HEADERS 1
1498 echo $ac_n "checking for working const""... $ac_c" 1>&6
1499 echo "configure:1500: checking for working const" >&5
1500 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 cat > conftest.
$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1509 /* Ultrix mips cc rejects this. */
1510 typedef int charset[2]; const charset x;
1511 /* SunOS 4.1.1 cc rejects this. */
1512 char const *const *ccp;
1514 /* NEC SVR4.0.2 mips cc rejects this. */
1515 struct point {int x, y;};
1516 static struct point const zero = {0,0};
1517 /* AIX XL C 1.02.0.0 rejects this.
1518 It does not let you subtract one const X* pointer from another in an arm
1519 of an if-expression whose if-part is not a constant expression */
1520 const char *g = "string";
1521 ccp = &g + (g ? g-g : 0);
1522 /* HPUX 7.0 cc rejects these. */
1525 ccp = (char const *const *) p;
1526 { /* SCO 3.2v4 cc rejects this. */
1528 char const *s = 0 ? (char *) 0 : (char const *) 0;
1532 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1534 const int *foo = &x[0];
1537 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1538 typedef const int *iptr;
1542 { /* AIX XL C 1.02.0.0 rejects this saying
1543 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1544 struct s { int j; const int *ap[3]; };
1545 struct s *b; b->j = 5;
1547 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1553 if { (eval echo configure
:1554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1557 echo "configure: failed program was:" >&5
1558 cat conftest.
$ac_ext >&5
1565 echo "$ac_t""$ac_cv_c_const" 1>&6
1566 if test $ac_cv_c_const = no
; then
1567 cat >> confdefs.h
<<\EOF
1573 echo $ac_n "checking for inline""... $ac_c" 1>&6
1574 echo "configure:1575: checking for inline" >&5
1575 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1579 for ac_kw
in inline __inline__ __inline
; do
1580 cat > conftest.
$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1588 if { (eval echo configure
:1589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1590 ac_cv_c_inline
=$ac_kw; break
1592 echo "configure: failed program was:" >&5
1593 cat conftest.
$ac_ext >&5
1600 echo "$ac_t""$ac_cv_c_inline" 1>&6
1601 case "$ac_cv_c_inline" in
1603 no
) cat >> confdefs.h
<<\EOF
1607 *) cat >> confdefs.h
<<EOF
1608 #define inline $ac_cv_c_inline
1613 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1614 echo "configure:1615: checking for off_t" >&5
1615 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 cat > conftest.
$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 #include <sys/types.h>
1627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1628 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1630 ac_cv_type_off_t
=yes
1638 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1639 if test $ac_cv_type_off_t = no
; then
1640 cat >> confdefs.h
<<\EOF
1646 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1647 echo "configure:1648: checking for size_t" >&5
1648 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 cat > conftest.
$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <sys/types.h>
1660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1661 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1663 ac_cv_type_size_t
=yes
1666 ac_cv_type_size_t
=no
1671 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1672 if test $ac_cv_type_size_t = no
; then
1673 cat >> confdefs.h
<<\EOF
1674 #define size_t unsigned
1679 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1680 # for constant arguments. Useless!
1681 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1682 echo "configure:1683: checking for working alloca.h" >&5
1683 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 cat > conftest.
$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1691 char *p = alloca(2 * sizeof(int));
1694 if { (eval echo configure
:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1696 ac_cv_header_alloca_h
=yes
1698 echo "configure: failed program was:" >&5
1699 cat conftest.
$ac_ext >&5
1701 ac_cv_header_alloca_h
=no
1706 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1707 if test $ac_cv_header_alloca_h = yes; then
1708 cat >> confdefs.h
<<\EOF
1709 #define HAVE_ALLOCA_H 1
1714 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1715 echo "configure:1716: checking for alloca" >&5
1716 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 cat > conftest.
$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1724 # define alloca __builtin_alloca
1727 # include <malloc.h>
1728 # define alloca _alloca
1731 # include <alloca.h>
1736 # ifndef alloca /* predefined by HP cc +Olibcalls */
1745 char *p = (char *) alloca(1);
1748 if { (eval echo configure
:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1750 ac_cv_func_alloca_works
=yes
1752 echo "configure: failed program was:" >&5
1753 cat conftest.
$ac_ext >&5
1755 ac_cv_func_alloca_works
=no
1760 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1761 if test $ac_cv_func_alloca_works = yes; then
1762 cat >> confdefs.h
<<\EOF
1763 #define HAVE_ALLOCA 1
1768 if test $ac_cv_func_alloca_works = no
; then
1769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1770 # that cause trouble. Some versions do not even contain alloca or
1771 # contain a buggy version. If you still want to use their alloca,
1772 # use ar to extract alloca.o from them instead of compiling alloca.c.
1773 ALLOCA
=alloca.
${ac_objext}
1774 cat >> confdefs.h
<<\EOF
1779 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether alloca needs Cray hooks" >&5
1781 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 cat > conftest.
$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 #if defined(CRAY) && ! defined(CRAY2)
1794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795 egrep "webecray" >/dev
/null
2>&1; then
1806 echo "$ac_t""$ac_cv_os_cray" 1>&6
1807 if test $ac_cv_os_cray = yes; then
1808 for ac_func
in _getb67 GETB67 getb67
; do
1809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_func" >&5
1811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.
$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* System header to define __stub macros and hopefully few prototypes,
1818 which can conflict with char $ac_func(); below. */
1820 /* Override any gcc2 internal prototype to avoid an error. */
1821 /* We use char because int might match the return type of a gcc2
1822 builtin and then its argument prototype would still apply. */
1827 /* The GNU C library defines this for functions which it implements
1828 to always fail with ENOSYS. Some functions are actually named
1829 something starting with __ and the normal name is an alias. */
1830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1838 if { (eval echo configure
:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1840 eval "ac_cv_func_$ac_func=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.
$ac_ext >&5
1845 eval "ac_cv_func_$ac_func=no"
1850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1851 echo "$ac_t""yes" 1>&6
1852 cat >> confdefs.h
<<EOF
1853 #define CRAY_STACKSEG_END $ac_func
1858 echo "$ac_t""no" 1>&6
1864 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1865 echo "configure:1866: checking stack direction for C alloca" >&5
1866 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 if test "$cross_compiling" = yes; then
1870 ac_cv_c_stack_direction
=0
1872 cat > conftest.
$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 find_stack_direction ()
1877 static char *addr = 0;
1882 return find_stack_direction ();
1885 return (&dummy > addr) ? 1 : -1;
1889 exit (find_stack_direction() < 0);
1892 if { (eval echo configure
:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1894 ac_cv_c_stack_direction
=1
1896 echo "configure: failed program was:" >&5
1897 cat conftest.
$ac_ext >&5
1899 ac_cv_c_stack_direction
=-1
1906 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1907 cat >> confdefs.h
<<EOF
1908 #define STACK_DIRECTION $ac_cv_c_stack_direction
1913 for ac_hdr
in unistd.h
1915 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_hdr" >&5
1918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 cat > conftest.
$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1926 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927 { (eval echo configure
:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929 if test -z "$ac_err"; then
1931 eval "ac_cv_header_$ac_safe=yes"
1934 echo "configure: failed program was:" >&5
1935 cat conftest.
$ac_ext >&5
1937 eval "ac_cv_header_$ac_safe=no"
1941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1942 echo "$ac_t""yes" 1>&6
1943 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1944 cat >> confdefs.h
<<EOF
1945 #define $ac_tr_hdr 1
1949 echo "$ac_t""no" 1>&6
1953 for ac_func
in getpagesize
1955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_func" >&5
1957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 cat > conftest.
$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 /* System header to define __stub macros and hopefully few prototypes,
1964 which can conflict with char $ac_func(); below. */
1966 /* Override any gcc2 internal prototype to avoid an error. */
1967 /* We use char because int might match the return type of a gcc2
1968 builtin and then its argument prototype would still apply. */
1973 /* The GNU C library defines this for functions which it implements
1974 to always fail with ENOSYS. Some functions are actually named
1975 something starting with __ and the normal name is an alias. */
1976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1984 if { (eval echo configure
:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1986 eval "ac_cv_func_$ac_func=yes"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.
$ac_ext >&5
1991 eval "ac_cv_func_$ac_func=no"
1996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1999 cat >> confdefs.h
<<EOF
2000 #define $ac_tr_func 1
2004 echo "$ac_t""no" 1>&6
2008 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2009 echo "configure:2010: checking for working mmap" >&5
2010 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 if test "$cross_compiling" = yes; then
2014 ac_cv_func_mmap_fixed_mapped
=no
2016 cat > conftest.
$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2020 /* Thanks to Mike Haertel and Jim Avera for this test.
2021 Here is a matrix of mmap possibilities:
2022 mmap private not fixed
2023 mmap private fixed at somewhere currently unmapped
2024 mmap private fixed at somewhere already mapped
2025 mmap shared not fixed
2026 mmap shared fixed at somewhere currently unmapped
2027 mmap shared fixed at somewhere already mapped
2028 For private mappings, we should verify that changes cannot be read()
2029 back from the file, nor mmap's back from the file at a different
2030 address. (There have been systems where private was not correctly
2031 implemented like the infamous i386 svr4.0, and systems where the
2032 VM page cache was not coherent with the filesystem buffer cache
2033 like early versions of FreeBSD and possibly contemporary NetBSD.)
2034 For shared mappings, we should conversely verify that changes get
2035 propogated back to all the places they're supposed to be.
2037 Grep wants private fixed already mapped.
2038 The main things grep needs to know about mmap are:
2039 * does it exist and is it safe to write into the mmap'd area
2040 * how to use it (BSD variants) */
2041 #include <sys/types.h>
2043 #include <sys/mman.h>
2045 /* This mess was copied from the GNU getpagesize.h. */
2046 #ifndef HAVE_GETPAGESIZE
2047 # ifdef HAVE_UNISTD_H
2048 # include <unistd.h>
2051 /* Assume that all systems that can run configure have sys/param.h. */
2052 # ifndef HAVE_SYS_PARAM_H
2053 # define HAVE_SYS_PARAM_H 1
2056 # ifdef _SC_PAGESIZE
2057 # define getpagesize() sysconf(_SC_PAGESIZE)
2058 # else /* no _SC_PAGESIZE */
2059 # ifdef HAVE_SYS_PARAM_H
2060 # include <sys/param.h>
2061 # ifdef EXEC_PAGESIZE
2062 # define getpagesize() EXEC_PAGESIZE
2063 # else /* no EXEC_PAGESIZE */
2065 # define getpagesize() NBPG * CLSIZE
2068 # endif /* no CLSIZE */
2069 # else /* no NBPG */
2071 # define getpagesize() NBPC
2072 # else /* no NBPC */
2074 # define getpagesize() PAGESIZE
2075 # endif /* PAGESIZE */
2076 # endif /* no NBPC */
2077 # endif /* no NBPG */
2078 # endif /* no EXEC_PAGESIZE */
2079 # else /* no HAVE_SYS_PARAM_H */
2080 # define getpagesize() 8192 /* punt totally */
2081 # endif /* no HAVE_SYS_PARAM_H */
2082 # endif /* no _SC_PAGESIZE */
2084 #endif /* no HAVE_GETPAGESIZE */
2087 extern "C" { void *malloc(unsigned); }
2095 char *data, *data2, *data3;
2099 pagesize = getpagesize();
2102 * First, make a file with some known garbage in it.
2104 data = malloc(pagesize);
2107 for (i = 0; i < pagesize; ++i)
2108 *(data + i) = rand();
2110 fd = creat("conftestmmap", 0600);
2113 if (write(fd, data, pagesize) != pagesize)
2118 * Next, try to mmap the file at a fixed address which
2119 * already has something else allocated at it. If we can,
2120 * also make sure that we see the same garbage.
2122 fd = open("conftestmmap", O_RDWR);
2125 data2 = malloc(2 * pagesize);
2128 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2129 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2130 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2132 for (i = 0; i < pagesize; ++i)
2133 if (*(data + i) != *(data2 + i))
2137 * Finally, make sure that changes to the mapped area
2138 * do not percolate back to the file as seen by read().
2139 * (This is a bug on some variants of i386 svr4.0.)
2141 for (i = 0; i < pagesize; ++i)
2142 *(data2 + i) = *(data2 + i) + 1;
2143 data3 = malloc(pagesize);
2146 if (read(fd, data3, pagesize) != pagesize)
2148 for (i = 0; i < pagesize; ++i)
2149 if (*(data + i) != *(data3 + i))
2152 unlink("conftestmmap");
2157 if { (eval echo configure
:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2159 ac_cv_func_mmap_fixed_mapped
=yes
2161 echo "configure: failed program was:" >&5
2162 cat conftest.
$ac_ext >&5
2164 ac_cv_func_mmap_fixed_mapped
=no
2171 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2172 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2173 cat >> confdefs.h
<<\EOF
2180 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2181 echo "configure:2182: checking whether we are using the GNU C Library 2.1 or newer" >&5
2182 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 cat > conftest.
$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2189 #include <features.h>
2190 #ifdef __GNU_LIBRARY__
2191 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2198 egrep "Lucky GNU user" >/dev
/null
2>&1; then
2200 ac_cv_gnu_library_2_1
=yes
2203 ac_cv_gnu_library_2_1
=no
2211 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2213 GLIBC21
="$ac_cv_gnu_library_2_1"
2217 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2218 stdlib.h string.h unistd.h sys
/param.h
2220 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_hdr" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2231 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2232 { (eval echo configure
:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2233 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2234 if test -z "$ac_err"; then
2236 eval "ac_cv_header_$ac_safe=yes"
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2242 eval "ac_cv_header_$ac_safe=no"
2246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2249 cat >> confdefs.h
<<EOF
2250 #define $ac_tr_hdr 1
2254 echo "$ac_t""no" 1>&6
2258 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2259 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2260 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_func" >&5
2264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.
$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 /* System header to define __stub macros and hopefully few prototypes,
2271 which can conflict with char $ac_func(); below. */
2273 /* Override any gcc2 internal prototype to avoid an error. */
2274 /* We use char because int might match the return type of a gcc2
2275 builtin and then its argument prototype would still apply. */
2280 /* The GNU C library defines this for functions which it implements
2281 to always fail with ENOSYS. Some functions are actually named
2282 something starting with __ and the normal name is an alias. */
2283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2291 if { (eval echo configure
:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2293 eval "ac_cv_func_$ac_func=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.
$ac_ext >&5
2298 eval "ac_cv_func_$ac_func=no"
2303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2306 cat >> confdefs.h
<<EOF
2307 #define $ac_tr_func 1
2311 echo "$ac_t""no" 1>&6
2318 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2319 if test "${with_libiconv_prefix+set}" = set; then
2320 withval
="$with_libiconv_prefix"
2322 for dir
in `echo "$withval" | tr : ' '`; do
2323 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
2324 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
2330 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2331 echo "configure:2332: checking for iconv" >&5
2332 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2336 am_cv_func_iconv
="no, consider installing GNU libiconv"
2338 cat > conftest.
$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2344 iconv_t cd = iconv_open("","");
2345 iconv(cd,NULL,NULL,NULL,NULL);
2349 if { (eval echo configure
:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2351 am_cv_func_iconv
=yes
2353 echo "configure: failed program was:" >&5
2354 cat conftest.
$ac_ext >&5
2357 if test "$am_cv_func_iconv" != yes; then
2358 am_save_LIBS
="$LIBS"
2359 LIBS
="$LIBS -liconv"
2360 cat > conftest.
$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2366 iconv_t cd = iconv_open("","");
2367 iconv(cd,NULL,NULL,NULL,NULL);
2371 if { (eval echo configure
:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2374 am_cv_func_iconv
=yes
2376 echo "configure: failed program was:" >&5
2377 cat conftest.
$ac_ext >&5
2380 LIBS
="$am_save_LIBS"
2385 echo "$ac_t""$am_cv_func_iconv" 1>&6
2386 if test "$am_cv_func_iconv" = yes; then
2387 cat >> confdefs.h
<<\EOF
2388 #define HAVE_ICONV 1
2391 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2392 echo "configure:2393: checking for iconv declaration" >&5
2393 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.
$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2407 #if defined(__STDC__) || defined(__cplusplus)
2408 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2417 if { (eval echo configure
:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2419 am_cv_proto_iconv_arg1
=""
2421 echo "configure: failed program was:" >&5
2422 cat conftest.
$ac_ext >&5
2424 am_cv_proto_iconv_arg1
="const"
2427 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);"
2430 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2431 echo "$ac_t""${ac_t:-
2432 }$am_cv_proto_iconv" 1>&6
2433 cat >> confdefs.h
<<EOF
2434 #define ICONV_CONST $am_cv_proto_iconv_arg1
2439 if test "$am_cv_lib_iconv" = yes; then
2445 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2446 echo "configure:2447: checking for nl_langinfo and CODESET" >&5
2447 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 #include <langinfo.h>
2455 char* cs = nl_langinfo(CODESET);
2458 if { (eval echo configure
:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2460 am_cv_langinfo_codeset
=yes
2462 echo "configure: failed program was:" >&5
2463 cat conftest.
$ac_ext >&5
2465 am_cv_langinfo_codeset
=no
2471 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2472 if test $am_cv_langinfo_codeset = yes; then
2473 cat >> confdefs.h
<<\EOF
2474 #define HAVE_LANGINFO_CODESET 1
2479 if test $ac_cv_header_locale_h = yes; then
2480 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2481 echo "configure:2482: checking for LC_MESSAGES" >&5
2482 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.
$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2493 if { (eval echo configure
:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2495 am_cv_val_LC_MESSAGES
=yes
2497 echo "configure: failed program was:" >&5
2498 cat conftest.
$ac_ext >&5
2500 am_cv_val_LC_MESSAGES
=no
2505 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2506 if test $am_cv_val_LC_MESSAGES = yes; then
2507 cat >> confdefs.h
<<\EOF
2508 #define HAVE_LC_MESSAGES 1
2513 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2514 echo "configure:2515: checking whether NLS is requested" >&5
2515 # Check whether --enable-nls or --disable-nls was given.
2516 if test "${enable_nls+set}" = set; then
2517 enableval
="$enable_nls"
2523 echo "$ac_t""$USE_NLS" 1>&6
2526 BUILD_INCLUDED_LIBINTL
=no
2527 USE_INCLUDED_LIBINTL
=no
2530 if test "$USE_NLS" = "yes"; then
2531 cat >> confdefs.h
<<\EOF
2532 #define ENABLE_NLS 1
2535 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2536 echo "configure:2537: checking whether included gettext is requested" >&5
2537 # Check whether --with-included-gettext or --without-included-gettext was given.
2538 if test "${with_included_gettext+set}" = set; then
2539 withval
="$with_included_gettext"
2540 nls_cv_force_use_gnu_gettext
=$withval
2542 nls_cv_force_use_gnu_gettext
=no
2545 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2547 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2548 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2554 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2555 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2556 echo "configure:2557: checking for libintl.h" >&5
2557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 cat > conftest.
$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 #include <libintl.h>
2565 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566 { (eval echo configure
:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568 if test -z "$ac_err"; then
2570 eval "ac_cv_header_$ac_safe=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.
$ac_ext >&5
2576 eval "ac_cv_header_$ac_safe=no"
2580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2583 echo "configure:2584: checking for GNU gettext in libc" >&5
2584 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.
$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <libintl.h>
2591 extern int _nl_msg_cat_cntr;
2593 bindtextdomain ("", "");
2594 return (int) gettext ("") + _nl_msg_cat_cntr
2597 if { (eval echo configure
:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2599 gt_cv_func_gnugettext1_libc
=yes
2601 echo "configure: failed program was:" >&5
2602 cat conftest.
$ac_ext >&5
2604 gt_cv_func_gnugettext1_libc
=no
2609 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2611 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2612 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2613 echo "configure:2614: checking for GNU gettext in libintl" >&5
2614 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 gt_save_LIBS
="$LIBS"
2618 LIBS
="$LIBS -lintl $LIBICONV"
2619 cat > conftest.
$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 #include <libintl.h>
2623 extern int _nl_msg_cat_cntr;
2625 bindtextdomain ("", "");
2626 return (int) gettext ("") + _nl_msg_cat_cntr
2629 if { (eval echo configure
:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2631 gt_cv_func_gnugettext1_libintl
=yes
2633 echo "configure: failed program was:" >&5
2634 cat conftest.
$ac_ext >&5
2636 gt_cv_func_gnugettext1_libintl
=no
2639 LIBS
="$gt_save_LIBS"
2642 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2645 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2646 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2647 && test "$PACKAGE" != gettext; }; then
2648 cat >> confdefs.h
<<\EOF
2649 #define HAVE_GETTEXT 1
2653 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2654 INTLLIBS
="-lintl $LIBICONV"
2657 gt_save_LIBS
="$LIBS"
2658 LIBS
="$LIBS $INTLLIBS"
2659 for ac_func
in dcgettext
2661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2662 echo "configure:2663: checking for $ac_func" >&5
2663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 cat > conftest.
$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 /* System header to define __stub macros and hopefully few prototypes,
2670 which can conflict with char $ac_func(); below. */
2672 /* Override any gcc2 internal prototype to avoid an error. */
2673 /* We use char because int might match the return type of a gcc2
2674 builtin and then its argument prototype would still apply. */
2679 /* The GNU C library defines this for functions which it implements
2680 to always fail with ENOSYS. Some functions are actually named
2681 something starting with __ and the normal name is an alias. */
2682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2690 if { (eval echo configure
:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2692 eval "ac_cv_func_$ac_func=yes"
2694 echo "configure: failed program was:" >&5
2695 cat conftest.
$ac_ext >&5
2697 eval "ac_cv_func_$ac_func=no"
2702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2703 echo "$ac_t""yes" 1>&6
2704 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2705 cat >> confdefs.h
<<EOF
2706 #define $ac_tr_func 1
2710 echo "$ac_t""no" 1>&6
2714 LIBS
="$gt_save_LIBS"
2716 # Extract the first word of "msgfmt", so it can be a program name with args.
2717 set dummy msgfmt
; ac_word
=$2
2718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2719 echo "configure:2720: checking for $ac_word" >&5
2720 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2725 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2728 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2729 for ac_dir
in $PATH; do
2730 test -z "$ac_dir" && ac_dir
=.
2731 if test -f $ac_dir/$ac_word; then
2732 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
2733 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2739 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
2743 MSGFMT
="$ac_cv_path_MSGFMT"
2744 if test "$MSGFMT" != ":"; then
2745 echo "$ac_t""$MSGFMT" 1>&6
2747 echo "$ac_t""no" 1>&6
2750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2751 set dummy gmsgfmt
; ac_word
=$2
2752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_word" >&5
2754 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2759 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2762 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2765 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2767 for ac_dir
in $ac_dummy; do
2768 test -z "$ac_dir" && ac_dir
=.
2769 if test -f $ac_dir/$ac_word; then
2770 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2775 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2779 GMSGFMT
="$ac_cv_path_GMSGFMT"
2780 if test -n "$GMSGFMT"; then
2781 echo "$ac_t""$GMSGFMT" 1>&6
2783 echo "$ac_t""no" 1>&6
2787 # Extract the first word of "xgettext", so it can be a program name with args.
2788 set dummy xgettext
; ac_word
=$2
2789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_word" >&5
2791 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2796 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2799 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2800 for ac_dir
in $PATH; do
2801 test -z "$ac_dir" && ac_dir
=.
2802 if test -f $ac_dir/$ac_word; then
2803 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
2804 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2810 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2814 XGETTEXT
="$ac_cv_path_XGETTEXT"
2815 if test "$XGETTEXT" != ":"; then
2816 echo "$ac_t""$XGETTEXT" 1>&6
2818 echo "$ac_t""no" 1>&6
2826 echo "$ac_t""no" 1>&6
2830 if test "$CATOBJEXT" = "NONE"; then
2831 nls_cv_use_gnu_gettext
=yes
2835 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2836 INTLOBJS
="\$(GETTOBJS)"
2837 # Extract the first word of "msgfmt", so it can be a program name with args.
2838 set dummy msgfmt
; ac_word
=$2
2839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2840 echo "configure:2841: checking for $ac_word" >&5
2841 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2846 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2850 for ac_dir
in $PATH; do
2851 test -z "$ac_dir" && ac_dir
=.
2852 if test -f $ac_dir/$ac_word; then
2853 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
2854 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2860 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
2864 MSGFMT
="$ac_cv_path_MSGFMT"
2865 if test "$MSGFMT" != ":"; then
2866 echo "$ac_t""$MSGFMT" 1>&6
2868 echo "$ac_t""no" 1>&6
2871 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2872 set dummy gmsgfmt
; ac_word
=$2
2873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_word" >&5
2875 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2880 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2883 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2886 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2888 for ac_dir
in $ac_dummy; do
2889 test -z "$ac_dir" && ac_dir
=.
2890 if test -f $ac_dir/$ac_word; then
2891 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2896 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2900 GMSGFMT
="$ac_cv_path_GMSGFMT"
2901 if test -n "$GMSGFMT"; then
2902 echo "$ac_t""$GMSGFMT" 1>&6
2904 echo "$ac_t""no" 1>&6
2907 # Extract the first word of "xgettext", so it can be a program name with args.
2908 set dummy xgettext
; ac_word
=$2
2909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_word" >&5
2911 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2916 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2919 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2920 for ac_dir
in $PATH; do
2921 test -z "$ac_dir" && ac_dir
=.
2922 if test -f $ac_dir/$ac_word; then
2923 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
2924 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2930 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2934 XGETTEXT
="$ac_cv_path_XGETTEXT"
2935 if test "$XGETTEXT" != ":"; then
2936 echo "$ac_t""$XGETTEXT" 1>&6
2938 echo "$ac_t""no" 1>&6
2942 BUILD_INCLUDED_LIBINTL
=yes
2943 USE_INCLUDED_LIBINTL
=yes
2945 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
2946 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2949 if test "$GMSGFMT" != ":"; then
2950 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
2953 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2958 if test "$XGETTEXT" != ":"; then
2959 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
2962 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2972 if test "$PACKAGE" = gettext; then
2973 BUILD_INCLUDED_LIBINTL
=yes
2976 for ac_prog
in bison
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy
$ac_prog; ac_word
=$2
2980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2981 echo "configure:2982: checking for $ac_word" >&5
2982 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 if test -n "$INTLBISON"; then
2986 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
2988 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2990 for ac_dir
in $ac_dummy; do
2991 test -z "$ac_dir" && ac_dir
=.
2992 if test -f $ac_dir/$ac_word; then
2993 ac_cv_prog_INTLBISON
="$ac_prog"
3000 INTLBISON
="$ac_cv_prog_INTLBISON"
3001 if test -n "$INTLBISON"; then
3002 echo "$ac_t""$INTLBISON" 1>&6
3004 echo "$ac_t""no" 1>&6
3007 test -n "$INTLBISON" && break
3010 if test -z "$INTLBISON"; then
3013 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3014 echo "configure:3015: checking version of bison" >&5
3015 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3016 case $ac_prog_version in
3017 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
3018 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
3019 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
3020 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
3022 echo "$ac_t""$ac_prog_version" 1>&6
3024 if test $ac_verc_fail = yes; then
3028 for lang
in $ALL_LINGUAS; do
3029 GMOFILES
="$GMOFILES $lang.gmo"
3030 POFILES
="$POFILES $lang.po"
3044 nls_cv_header_libgt
=
3056 if test "x$CATOBJEXT" != "x"; then
3057 if test "x$ALL_LINGUAS" = "x"; then
3060 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3061 echo "configure:3062: checking for catalogs to be installed" >&5
3063 for presentlang
in $ALL_LINGUAS; do
3065 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
3066 # Use the presentlang catalog if desiredlang is
3067 # a. equal to presentlang, or
3068 # b. a variant of presentlang (because in this case,
3069 # presentlang can be used as a fallback for messages
3070 # which are not translated in the desiredlang catalog).
3071 case "$desiredlang" in
3072 "$presentlang"*) useit
=yes;;
3075 if test $useit = yes; then
3076 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
3079 LINGUAS
=$NEW_LINGUAS
3080 echo "$ac_t""$LINGUAS" 1>&6
3083 if test -n "$LINGUAS"; then
3084 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3089 if test -n "$ac_aux_dir"; then
3090 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
3092 if test -z "$MKINSTALLDIRS"; then
3093 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
3097 INTL_LIBTOOL_SUFFIX_PREFIX
=
3101 # Find a good install program. We prefer a C program (faster),
3102 # so one script is as good as another. But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3108 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3109 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3110 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3111 # ./install, which can be erroneously created by make from ./install.sh.
3112 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3113 echo "configure:3114: checking for a BSD compatible install" >&5
3114 if test -z "$INSTALL"; then
3115 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3119 for ac_dir
in $PATH; do
3120 # Account for people who put trailing slashes in PATH elements.
3122 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3124 # OSF1 and SCO ODT 3.0 have their own names for install.
3125 # Don't use installbsd from OSF since it installs stuff as root
3127 for ac_prog
in ginstall scoinst
install; do
3128 if test -f $ac_dir/$ac_prog; then
3129 if test $ac_prog = install &&
3130 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3131 # AIX install. It has an incompatible calling convention.
3134 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3145 if test "${ac_cv_path_install+set}" = set; then
3146 INSTALL
="$ac_cv_path_install"
3148 # As a last resort, use the slow shell script. We don't cache a
3149 # path for INSTALL within a source directory, because that will
3150 # break other packages using the cache if that directory is
3151 # removed, or if the path is relative.
3152 INSTALL
="$ac_install_sh"
3155 echo "$ac_t""$INSTALL" 1>&6
3157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3158 # It thinks the first close brace ends the variable substitution.
3159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3161 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3163 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3166 case x
"${target_os}" in
3175 save_CFLAGS
="${save_CFLAGS} -pthread"
3176 dvd_LDFLAGS
="${dvd_LDFLAGS} -ldvd"
3177 vcd_LDFLAGS
="${vcd_LDFLAGS} -ldvd"
3181 save_CFLAGS
="${save_CFLAGS} -pthread"
3185 save_CFLAGS
="${save_CFLAGS} -no-cpp-precomp"
3189 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3190 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_word" >&5
3193 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 if test -n "$WINDRES"; then
3197 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3199 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3201 for ac_dir
in $ac_dummy; do
3202 test -z "$ac_dir" && ac_dir
=.
3203 if test -f $ac_dir/$ac_word; then
3204 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3211 WINDRES
="$ac_cv_prog_WINDRES"
3212 if test -n "$WINDRES"; then
3213 echo "$ac_t""$WINDRES" 1>&6
3215 echo "$ac_t""no" 1>&6
3219 if test -z "$ac_cv_prog_WINDRES"; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "windres", so it can be a program name with args.
3222 set dummy windres
; ac_word
=$2
3223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3224 echo "configure:3225: checking for $ac_word" >&5
3225 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 if test -n "$WINDRES"; then
3229 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3231 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3233 for ac_dir
in $ac_dummy; do
3234 test -z "$ac_dir" && ac_dir
=.
3235 if test -f $ac_dir/$ac_word; then
3236 ac_cv_prog_WINDRES
="windres"
3241 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
=":"
3244 WINDRES
="$ac_cv_prog_WINDRES"
3245 if test -n "$WINDRES"; then
3246 echo "$ac_t""$WINDRES" 1>&6
3248 echo "$ac_t""no" 1>&6
3256 save_CFLAGS
="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3257 vlc_LDFLAGS
="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3258 vlc_LDFLAGS
="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3259 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lws2_32"
3260 rc_LDFLAGS
="${rc_LDFLAGS} -lws2_32"
3264 x11_LDFLAGS
="${x11_LDFLAGS} -lsocket"
3265 xvideo_LDFLAGS
="${xvideo_LDFLAGS} -lsocket"
3269 save_CFLAGS
="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3270 vlc_LDFLAGS
="${vlc_LDFLAGS} -lbe"
3271 plugins_LDFLAGS
="${plugins_LDFLAGS} -nostart"
3272 beos_LDFLAGS
="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3273 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lbind"
3280 if test x
"${SYS}" = xmingw32
3282 plugins_CFLAGS
="${plugins_CFLAGS} -fnative-struct"
3284 plugins_CFLAGS
="${plugins_CFLAGS} -fPIC"
3287 save_CFLAGS
="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3289 for ac_func
in gettimeofday
select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3292 echo "configure:3293: checking for $ac_func" >&5
3293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.
$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 /* System header to define __stub macros and hopefully few prototypes,
3300 which can conflict with char $ac_func(); below. */
3302 /* Override any gcc2 internal prototype to avoid an error. */
3303 /* We use char because int might match the return type of a gcc2
3304 builtin and then its argument prototype would still apply. */
3309 /* The GNU C library defines this for functions which it implements
3310 to always fail with ENOSYS. Some functions are actually named
3311 something starting with __ and the normal name is an alias. */
3312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3320 if { (eval echo configure
:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3322 eval "ac_cv_func_$ac_func=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3327 eval "ac_cv_func_$ac_func=no"
3332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3333 echo "$ac_t""yes" 1>&6
3334 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3335 cat >> confdefs.h
<<EOF
3336 #define $ac_tr_func 1
3340 echo "$ac_t""no" 1>&6
3345 echo $ac_n "checking for connect""... $ac_c" 1>&6
3346 echo "configure:3347: checking for connect" >&5
3347 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3350 cat > conftest.
$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 /* System header to define __stub macros and hopefully few prototypes,
3354 which can conflict with char connect(); below. */
3356 /* Override any gcc2 internal prototype to avoid an error. */
3357 /* We use char because int might match the return type of a gcc2
3358 builtin and then its argument prototype would still apply. */
3363 /* The GNU C library defines this for functions which it implements
3364 to always fail with ENOSYS. Some functions are actually named
3365 something starting with __ and the normal name is an alias. */
3366 #if defined (__stub_connect) || defined (__stub___connect)
3374 if { (eval echo configure
:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3376 eval "ac_cv_func_connect=yes"
3378 echo "configure: failed program was:" >&5
3379 cat conftest.
$ac_ext >&5
3381 eval "ac_cv_func_connect=no"
3386 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3390 echo "$ac_t""no" 1>&6
3392 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3393 echo "configure:3394: checking for connect in -lsocket" >&5
3394 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 ac_save_LIBS
="$LIBS"
3399 LIBS
="-lsocket $LIBS"
3400 cat > conftest.
$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3412 if { (eval echo configure
:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3416 echo "configure: failed program was:" >&5
3417 cat conftest.
$ac_ext >&5
3419 eval "ac_cv_lib_$ac_lib_var=no"
3422 LIBS
="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lsocket"
3428 vlc_LDFLAGS
="${vlc_LDFLAGS} -lsocket"
3431 echo "$ac_t""no" 1>&6
3436 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3437 echo "configure:3438: checking for gethostbyname" >&5
3438 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 cat > conftest.
$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 /* System header to define __stub macros and hopefully few prototypes,
3445 which can conflict with char gethostbyname(); below. */
3447 /* Override any gcc2 internal prototype to avoid an error. */
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3450 char gethostbyname();
3454 /* The GNU C library defines this for functions which it implements
3455 to always fail with ENOSYS. Some functions are actually named
3456 something starting with __ and the normal name is an alias. */
3457 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3465 if { (eval echo configure
:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3467 eval "ac_cv_func_gethostbyname=yes"
3469 echo "configure: failed program was:" >&5
3470 cat conftest.
$ac_ext >&5
3472 eval "ac_cv_func_gethostbyname=no"
3477 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3481 echo "$ac_t""no" 1>&6
3483 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3484 echo "configure:3485: checking for gethostbyname in -lnsl" >&5
3485 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 ac_save_LIBS
="$LIBS"
3491 cat > conftest.
$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 /* Override any gcc2 internal prototype to avoid an error. */
3495 /* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3497 char gethostbyname();
3503 if { (eval echo configure
:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3505 eval "ac_cv_lib_$ac_lib_var=yes"
3507 echo "configure: failed program was:" >&5
3508 cat conftest.
$ac_ext >&5
3510 eval "ac_cv_lib_$ac_lib_var=no"
3513 LIBS
="$ac_save_LIBS"
3516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3518 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lnsl"
3520 echo "$ac_t""no" 1>&6
3526 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3527 echo "configure:3528: checking for gethostbyname" >&5
3528 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 cat > conftest.
$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* System header to define __stub macros and hopefully few prototypes,
3535 which can conflict with char gethostbyname(); below. */
3537 /* Override any gcc2 internal prototype to avoid an error. */
3538 /* We use char because int might match the return type of a gcc2
3539 builtin and then its argument prototype would still apply. */
3540 char gethostbyname();
3544 /* The GNU C library defines this for functions which it implements
3545 to always fail with ENOSYS. Some functions are actually named
3546 something starting with __ and the normal name is an alias. */
3547 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3555 if { (eval echo configure
:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3557 eval "ac_cv_func_gethostbyname=yes"
3559 echo "configure: failed program was:" >&5
3560 cat conftest.
$ac_ext >&5
3562 eval "ac_cv_func_gethostbyname=no"
3567 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3571 echo "$ac_t""no" 1>&6
3573 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3574 echo "configure:3575: checking for gethostbyname in -lbind" >&5
3575 ac_lib_var
=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 ac_save_LIBS
="$LIBS"
3581 cat > conftest.
$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 /* Override any gcc2 internal prototype to avoid an error. */
3585 /* We use char because int might match the return type of a gcc2
3586 builtin and then its argument prototype would still apply. */
3587 char gethostbyname();
3593 if { (eval echo configure
:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3595 eval "ac_cv_lib_$ac_lib_var=yes"
3597 echo "configure: failed program was:" >&5
3598 cat conftest.
$ac_ext >&5
3600 eval "ac_cv_lib_$ac_lib_var=no"
3603 LIBS
="$ac_save_LIBS"
3606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3608 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lbind"
3610 echo "$ac_t""no" 1>&6
3616 for ac_func
in nanosleep
3618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3619 echo "configure:3620: checking for $ac_func" >&5
3620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char $ac_func(); below. */
3629 /* Override any gcc2 internal prototype to avoid an error. */
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3636 /* The GNU C library defines this for functions which it implements
3637 to always fail with ENOSYS. Some functions are actually named
3638 something starting with __ and the normal name is an alias. */
3639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3647 if { (eval echo configure
:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3649 eval "ac_cv_func_$ac_func=yes"
3651 echo "configure: failed program was:" >&5
3652 cat conftest.
$ac_ext >&5
3654 eval "ac_cv_func_$ac_func=no"
3659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3661 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3662 cat >> confdefs.h
<<EOF
3663 #define $ac_tr_func 1
3667 echo "$ac_t""no" 1>&6
3668 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3669 echo "configure:3670: checking for nanosleep in -lrt" >&5
3670 ac_lib_var
=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 ac_save_LIBS
="$LIBS"
3676 cat > conftest.
$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 /* Override any gcc2 internal prototype to avoid an error. */
3680 /* We use char because int might match the return type of a gcc2
3681 builtin and then its argument prototype would still apply. */
3688 if { (eval echo configure
:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3690 eval "ac_cv_lib_$ac_lib_var=yes"
3692 echo "configure: failed program was:" >&5
3693 cat conftest.
$ac_ext >&5
3695 eval "ac_cv_lib_$ac_lib_var=no"
3698 LIBS
="$ac_save_LIBS"
3701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3703 vlc_LDFLAGS
="${vlc_LDFLAGS} -lrt"
3705 echo "$ac_t""no" 1>&6
3706 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3707 echo "configure:3708: checking for nanosleep in -lposix4" >&5
3708 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3712 ac_save_LIBS
="$LIBS"
3713 LIBS
="-lposix4 $LIBS"
3714 cat > conftest.
$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 /* Override any gcc2 internal prototype to avoid an error. */
3718 /* We use char because int might match the return type of a gcc2
3719 builtin and then its argument prototype would still apply. */
3726 if { (eval echo configure
:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3728 eval "ac_cv_lib_$ac_lib_var=yes"
3730 echo "configure: failed program was:" >&5
3731 cat conftest.
$ac_ext >&5
3733 eval "ac_cv_lib_$ac_lib_var=no"
3736 LIBS
="$ac_save_LIBS"
3739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3740 echo "$ac_t""yes" 1>&6
3741 vlc_LDFLAGS
="${vlc_LDFLAGS} -lposix4"
3743 echo "$ac_t""no" 1>&6
3753 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3754 echo "configure:3755: checking for inet_aton" >&5
3755 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.
$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 /* System header to define __stub macros and hopefully few prototypes,
3762 which can conflict with char inet_aton(); below. */
3764 /* Override any gcc2 internal prototype to avoid an error. */
3765 /* We use char because int might match the return type of a gcc2
3766 builtin and then its argument prototype would still apply. */
3771 /* The GNU C library defines this for functions which it implements
3772 to always fail with ENOSYS. Some functions are actually named
3773 something starting with __ and the normal name is an alias. */
3774 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3782 if { (eval echo configure
:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3784 eval "ac_cv_func_inet_aton=yes"
3786 echo "configure: failed program was:" >&5
3787 cat conftest.
$ac_ext >&5
3789 eval "ac_cv_func_inet_aton=no"
3794 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3798 echo "$ac_t""no" 1>&6
3800 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3801 echo "configure:3802: checking for inet_aton in -lresolv" >&5
3802 ac_lib_var
=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 ac_save_LIBS
="$LIBS"
3807 LIBS
="-lresolv $LIBS"
3808 cat > conftest.
$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811 /* Override any gcc2 internal prototype to avoid an error. */
3812 /* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3820 if { (eval echo configure
:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3822 eval "ac_cv_lib_$ac_lib_var=yes"
3824 echo "configure: failed program was:" >&5
3825 cat conftest.
$ac_ext >&5
3827 eval "ac_cv_lib_$ac_lib_var=no"
3830 LIBS
="$ac_save_LIBS"
3833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lresolv"
3837 echo "$ac_t""no" 1>&6
3843 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3844 echo "configure:3845: checking for textdomain" >&5
3845 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.
$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 /* System header to define __stub macros and hopefully few prototypes,
3852 which can conflict with char textdomain(); below. */
3854 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3861 /* The GNU C library defines this for functions which it implements
3862 to always fail with ENOSYS. Some functions are actually named
3863 something starting with __ and the normal name is an alias. */
3864 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3872 if { (eval echo configure
:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3874 eval "ac_cv_func_textdomain=yes"
3876 echo "configure: failed program was:" >&5
3877 cat conftest.
$ac_ext >&5
3879 eval "ac_cv_func_textdomain=no"
3884 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6
3888 echo "$ac_t""no" 1>&6
3890 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3891 echo "configure:3892: checking for textdomain in -lintl" >&5
3892 ac_lib_var
=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 ac_save_LIBS
="$LIBS"
3898 cat > conftest.
$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3910 if { (eval echo configure
:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3912 eval "ac_cv_lib_$ac_lib_var=yes"
3914 echo "configure: failed program was:" >&5
3915 cat conftest.
$ac_ext >&5
3917 eval "ac_cv_lib_$ac_lib_var=no"
3920 LIBS
="$ac_save_LIBS"
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3924 echo "$ac_t""yes" 1>&6
3925 save_LDFLAGS
="${save_LDFLAGS} -lintl"
3927 echo "$ac_t""no" 1>&6
3935 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3936 echo "configure:3937: checking for getopt_long" >&5
3937 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.
$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 /* System header to define __stub macros and hopefully few prototypes,
3944 which can conflict with char getopt_long(); below. */
3946 /* Override any gcc2 internal prototype to avoid an error. */
3947 /* We use char because int might match the return type of a gcc2
3948 builtin and then its argument prototype would still apply. */
3953 /* The GNU C library defines this for functions which it implements
3954 to always fail with ENOSYS. Some functions are actually named
3955 something starting with __ and the normal name is an alias. */
3956 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3964 if { (eval echo configure
:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3966 eval "ac_cv_func_getopt_long=yes"
3968 echo "configure: failed program was:" >&5
3969 cat conftest.
$ac_ext >&5
3971 eval "ac_cv_func_getopt_long=no"
3976 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3977 echo "$ac_t""yes" 1>&6
3978 cat >> confdefs.h
<<\EOF
3979 #define HAVE_GETOPT_LONG 1
3983 echo "$ac_t""no" 1>&6
3984 # FreeBSD has a gnugetopt library for this:
3985 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3986 echo "configure:3987: checking for getopt_long in -lgnugetopt" >&5
3987 ac_lib_var
=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3991 ac_save_LIBS
="$LIBS"
3992 LIBS
="-lgnugetopt $LIBS"
3993 cat > conftest.
$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 /* Override any gcc2 internal prototype to avoid an error. */
3997 /* We use char because int might match the return type of a gcc2
3998 builtin and then its argument prototype would still apply. */
4005 if { (eval echo configure
:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4007 eval "ac_cv_lib_$ac_lib_var=yes"
4009 echo "configure: failed program was:" >&5
4010 cat conftest.
$ac_ext >&5
4012 eval "ac_cv_lib_$ac_lib_var=no"
4015 LIBS
="$ac_save_LIBS"
4018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4019 echo "$ac_t""yes" 1>&6
4020 cat >> confdefs.h
<<\EOF
4021 #define HAVE_GETOPT_LONG 1
4023 vlc_LDFLAGS
="${vlc_LDFLAGS} -lgnugetopt"
4025 echo "$ac_t""no" 1>&6
4032 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4033 echo "configure:4034: checking return type of signal handlers" >&5
4034 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4037 cat > conftest.
$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4040 #include <sys/types.h>
4046 extern "C" void (*signal (int, void (*)(int)))(int);
4048 void (*signal ()) ();
4055 if { (eval echo configure
:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057 ac_cv_type_signal
=void
4059 echo "configure: failed program was:" >&5
4060 cat conftest.
$ac_ext >&5
4062 ac_cv_type_signal
=int
4067 echo "$ac_t""$ac_cv_type_signal" 1>&6
4068 cat >> confdefs.h
<<EOF
4069 #define RETSIGTYPE $ac_cv_type_signal
4073 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4074 echo "configure:4075: checking for dlopen in -ldl" >&5
4075 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4079 ac_save_LIBS
="$LIBS"
4081 cat > conftest.
$ac_ext <<EOF
4082 #line 4083 "configure"
4083 #include "confdefs.h"
4084 /* Override any gcc2 internal prototype to avoid an error. */
4085 /* We use char because int might match the return type of a gcc2
4086 builtin and then its argument prototype would still apply. */
4093 if { (eval echo configure
:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4095 eval "ac_cv_lib_$ac_lib_var=yes"
4097 echo "configure: failed program was:" >&5
4098 cat conftest.
$ac_ext >&5
4100 eval "ac_cv_lib_$ac_lib_var=no"
4103 LIBS
="$ac_save_LIBS"
4106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4107 echo "$ac_t""yes" 1>&6
4108 vlc_LDFLAGS
="${vlc_LDFLAGS} -ldl"
4110 echo "$ac_t""no" 1>&6
4113 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4114 echo "configure:4115: checking for cos in -lm" >&5
4115 ac_lib_var
=`echo m'_'cos | sed 'y%./+-%__p_%'`
4116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4119 ac_save_LIBS
="$LIBS"
4121 cat > conftest.
$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4124 /* Override any gcc2 internal prototype to avoid an error. */
4125 /* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
4133 if { (eval echo configure
:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4135 eval "ac_cv_lib_$ac_lib_var=yes"
4137 echo "configure: failed program was:" >&5
4138 cat conftest.
$ac_ext >&5
4140 eval "ac_cv_lib_$ac_lib_var=no"
4143 LIBS
="$ac_save_LIBS"
4146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4147 echo "$ac_t""yes" 1>&6
4148 imdct_LDFLAGS
="${imdct_LDFLAGS} -lm"
4149 filter_distort_LDFLAGS
="${filter_distort_LDFLAGS} -lm"
4151 echo "$ac_t""no" 1>&6
4154 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4155 echo "configure:4156: checking for pow in -lm" >&5
4156 ac_lib_var
=`echo m'_'pow | sed 'y%./+-%__p_%'`
4157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 ac_save_LIBS
="$LIBS"
4162 cat > conftest.
$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* Override any gcc2 internal prototype to avoid an error. */
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4174 if { (eval echo configure
:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4176 eval "ac_cv_lib_$ac_lib_var=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.
$ac_ext >&5
4181 eval "ac_cv_lib_$ac_lib_var=no"
4184 LIBS
="$ac_save_LIBS"
4187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4188 echo "$ac_t""yes" 1>&6
4189 imdct_LDFLAGS
="${imdct_LDFLAGS} -lm"
4190 imdct3dn_LDFLAGS
="${imdct3dn_LDFLAGS} -lm"
4191 imdctsse_LDFLAGS
="${imdctsse_LDFLAGS} -lm"
4192 chroma_i420_rgb_LDFLAGS
="${chroma_i420_rgb_LDFLAGS} -lm"
4195 echo "$ac_t""no" 1>&6
4200 if test "x${THREAD_LIB}" = xerror
; then
4201 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4202 echo "configure:4203: checking for pthread_attr_init in -lpthread" >&5
4203 ac_lib_var
=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4207 ac_save_LIBS
="$LIBS"
4208 LIBS
="-lpthread $LIBS"
4209 cat > conftest.
$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4215 char pthread_attr_init();
4221 if { (eval echo configure
:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4223 eval "ac_cv_lib_$ac_lib_var=yes"
4225 echo "configure: failed program was:" >&5
4226 cat conftest.
$ac_ext >&5
4228 eval "ac_cv_lib_$ac_lib_var=no"
4231 LIBS
="$ac_save_LIBS"
4234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4235 echo "$ac_t""yes" 1>&6
4236 THREAD_LIB
="-lpthread"
4238 echo "$ac_t""no" 1>&6
4242 if test "x${THREAD_LIB}" = xerror
; then
4243 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4244 echo "configure:4245: checking for pthread_attr_init in -lpthreads" >&5
4245 ac_lib_var
=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4249 ac_save_LIBS
="$LIBS"
4250 LIBS
="-lpthreads $LIBS"
4251 cat > conftest.
$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4257 char pthread_attr_init();
4263 if { (eval echo configure
:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4265 eval "ac_cv_lib_$ac_lib_var=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.
$ac_ext >&5
4270 eval "ac_cv_lib_$ac_lib_var=no"
4273 LIBS
="$ac_save_LIBS"
4276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4278 THREAD_LIB
="-lpthreads"
4280 echo "$ac_t""no" 1>&6
4284 if test "x${THREAD_LIB}" = xerror
; then
4285 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4286 echo "configure:4287: checking for pthread_attr_init in -lc_r" >&5
4287 ac_lib_var
=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 ac_save_LIBS
="$LIBS"
4293 cat > conftest.
$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4299 char pthread_attr_init();
4305 if { (eval echo configure
:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4307 eval "ac_cv_lib_$ac_lib_var=yes"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.
$ac_ext >&5
4312 eval "ac_cv_lib_$ac_lib_var=no"
4315 LIBS
="$ac_save_LIBS"
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4322 echo "$ac_t""no" 1>&6
4326 if test "x${THREAD_LIB}" = xerror
; then
4327 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4328 echo "configure:4329: checking for pthread_attr_init" >&5
4329 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 cat > conftest.
$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 /* System header to define __stub macros and hopefully few prototypes,
4336 which can conflict with char pthread_attr_init(); below. */
4338 /* Override any gcc2 internal prototype to avoid an error. */
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4341 char pthread_attr_init();
4345 /* The GNU C library defines this for functions which it implements
4346 to always fail with ENOSYS. Some functions are actually named
4347 something starting with __ and the normal name is an alias. */
4348 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4351 pthread_attr_init();
4356 if { (eval echo configure
:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4358 eval "ac_cv_func_pthread_attr_init=yes"
4360 echo "configure: failed program was:" >&5
4361 cat conftest.
$ac_ext >&5
4363 eval "ac_cv_func_pthread_attr_init=no"
4368 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4369 echo "$ac_t""yes" 1>&6
4372 echo "$ac_t""no" 1>&6
4378 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4379 echo "configure:4380: checking for cthread_fork in -lthreads" >&5
4380 ac_lib_var
=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 ac_save_LIBS
="$LIBS"
4385 LIBS
="-lthreads $LIBS"
4386 cat > conftest.
$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 /* Override any gcc2 internal prototype to avoid an error. */
4390 /* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4392 char cthread_fork();
4398 if { (eval echo configure
:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4400 eval "ac_cv_lib_$ac_lib_var=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.
$ac_ext >&5
4405 eval "ac_cv_lib_$ac_lib_var=no"
4408 LIBS
="$ac_save_LIBS"
4411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4413 THREAD_LIB
="-lthreads"
4415 echo "$ac_t""no" 1>&6
4419 cat > conftest.
$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 #include <pthread.h>
4424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4425 egrep "pthread_cond_t" >/dev
/null
2>&1; then
4428 cat >> confdefs.h
<<\EOF
4429 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4435 cat > conftest.
$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4438 #include <strings.h>
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 egrep "strncasecmp" >/dev
/null
2>&1; then
4444 cat >> confdefs.h
<<\EOF
4445 #define STRNCASECMP_IN_STRINGS_H 1
4452 for ac_hdr
in getopt.h
strings.h
4454 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4456 echo "configure:4457: checking for $ac_hdr" >&5
4457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 cat > conftest.
$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4465 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4466 { (eval echo configure
:4467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4467 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4468 if test -z "$ac_err"; then
4470 eval "ac_cv_header_$ac_safe=yes"
4473 echo "configure: failed program was:" >&5
4474 cat conftest.
$ac_ext >&5
4476 eval "ac_cv_header_$ac_safe=no"
4480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4483 cat >> confdefs.h
<<EOF
4484 #define $ac_tr_hdr 1
4488 echo "$ac_t""no" 1>&6
4492 for ac_hdr
in sys
/sockio.h fcntl.h sys
/types.h sys
/time.h sys
/times.h
4494 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_hdr" >&5
4497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 cat > conftest.
$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4505 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4506 { (eval echo configure
:4507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4507 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4508 if test -z "$ac_err"; then
4510 eval "ac_cv_header_$ac_safe=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.
$ac_ext >&5
4516 eval "ac_cv_header_$ac_safe=no"
4520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4522 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4523 cat >> confdefs.h
<<EOF
4524 #define $ac_tr_hdr 1
4528 echo "$ac_t""no" 1>&6
4532 for ac_hdr
in dlfcn.h image.h
4534 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4536 echo "configure:4537: checking for $ac_hdr" >&5
4537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4540 cat > conftest.
$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4545 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4546 { (eval echo configure
:4547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4547 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4548 if test -z "$ac_err"; then
4550 eval "ac_cv_header_$ac_safe=yes"
4553 echo "configure: failed program was:" >&5
4554 cat conftest.
$ac_ext >&5
4556 eval "ac_cv_header_$ac_safe=no"
4560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4563 cat >> confdefs.h
<<EOF
4564 #define $ac_tr_hdr 1
4568 echo "$ac_t""no" 1>&6
4572 for ac_hdr
in arpa
/inet.h net
/if.h netinet
/in.h sys
/socket.h
4574 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4576 echo "configure:4577: checking for $ac_hdr" >&5
4577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4580 cat > conftest.
$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4585 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4586 { (eval echo configure
:4587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4587 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4588 if test -z "$ac_err"; then
4590 eval "ac_cv_header_$ac_safe=yes"
4593 echo "configure: failed program was:" >&5
4594 cat conftest.
$ac_ext >&5
4596 eval "ac_cv_header_$ac_safe=no"
4600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4601 echo "$ac_t""yes" 1>&6
4602 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4603 cat >> confdefs.h
<<EOF
4604 #define $ac_tr_hdr 1
4608 echo "$ac_t""no" 1>&6
4612 for ac_hdr
in machine
/param.h sys
/shm.h
4614 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4616 echo "configure:4617: checking for $ac_hdr" >&5
4617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 cat > conftest.
$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4625 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4626 { (eval echo configure
:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4627 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4628 if test -z "$ac_err"; then
4630 eval "ac_cv_header_$ac_safe=yes"
4633 echo "configure: failed program was:" >&5
4634 cat conftest.
$ac_ext >&5
4636 eval "ac_cv_header_$ac_safe=no"
4640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4643 cat >> confdefs.h
<<EOF
4644 #define $ac_tr_hdr 1
4648 echo "$ac_t""no" 1>&6
4652 for ac_hdr
in linux
/version.h
4654 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_hdr" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.
$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4665 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure
:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4670 eval "ac_cv_header_$ac_safe=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.
$ac_ext >&5
4676 eval "ac_cv_header_$ac_safe=no"
4680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4683 cat >> confdefs.h
<<EOF
4684 #define $ac_tr_hdr 1
4688 echo "$ac_t""no" 1>&6
4693 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4694 echo "configure:4695: checking whether time.h and sys/time.h may both be included" >&5
4695 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 cat > conftest.
$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 #include <sys/types.h>
4702 #include <sys/time.h>
4708 if { (eval echo configure
:4709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4710 ac_cv_header_time
=yes
4712 echo "configure: failed program was:" >&5
4713 cat conftest.
$ac_ext >&5
4715 ac_cv_header_time
=no
4720 echo "$ac_t""$ac_cv_header_time" 1>&6
4721 if test $ac_cv_header_time = yes; then
4722 cat >> confdefs.h
<<\EOF
4723 #define TIME_WITH_SYS_TIME 1
4729 cat > conftest.
$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4735 egrep "nanosleep" >/dev
/null
2>&1; then
4738 cat >> confdefs.h
<<\EOF
4739 #define HAVE_DECL_NANOSLEEP 1
4747 cat > conftest.
$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4750 #include <sys/time.h>
4752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753 egrep "timespec" >/dev
/null
2>&1; then
4756 cat >> confdefs.h
<<\EOF
4757 #define HAVE_STRUCT_TIMESPEC 1
4765 for ac_hdr
in cthreads.h pthread.h kernel
/scheduler.h kernel
/OS.h
4767 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_hdr" >&5
4770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 cat > conftest.
$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4778 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4779 { (eval echo configure
:4780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4780 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4781 if test -z "$ac_err"; then
4783 eval "ac_cv_header_$ac_safe=yes"
4786 echo "configure: failed program was:" >&5
4787 cat conftest.
$ac_ext >&5
4789 eval "ac_cv_header_$ac_safe=no"
4793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4794 echo "$ac_t""yes" 1>&6
4795 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4796 cat >> confdefs.h
<<EOF
4797 #define $ac_tr_hdr 1
4801 echo "$ac_t""no" 1>&6
4806 if test x
$SYS != xmingw32
4808 if test x
$x_includes = xNONE
; then
4809 x_includes
=/usr
/X11R
6/include
4811 if test x
$x_libraries = xNONE
; then
4812 x_libraries
=/usr
/X11R
6/lib
4814 CPPFLAGS
="$save_CPPFLAGS -I$x_includes"
4815 for ac_hdr
in X11
/extensions
/dpms.h
4817 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4819 echo "configure:4820: checking for $ac_hdr" >&5
4820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.
$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4828 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4829 { (eval echo configure
:4830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4830 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4831 if test -z "$ac_err"; then
4833 eval "ac_cv_header_$ac_safe=yes"
4836 echo "configure: failed program was:" >&5
4837 cat conftest.
$ac_ext >&5
4839 eval "ac_cv_header_$ac_safe=no"
4843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4846 cat >> confdefs.h
<<EOF
4847 #define $ac_tr_hdr 1
4850 cat > conftest.
$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4853 #include <X11/extensions/dpms.h>
4855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856 egrep "DPMSInfo" >/dev
/null
2>&1; then
4859 cat >> confdefs.h
<<\EOF
4860 #define DPMSINFO_IN_DPMS_H 1
4869 echo "$ac_t""no" 1>&6
4873 CPPFLAGS
="$save_CPPFLAGS"
4876 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4877 echo "configure:4878: checking for ntohl in sys/param.h" >&5
4878 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 CFLAGS
="${save_CFLAGS} -Wall -Werror"
4882 cat > conftest.
$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4885 #include <sys/param.h>
4887 void foo() { int meuh; ntohl(meuh); }
4890 if { (eval echo configure
:4891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4892 ac_cv_c_ntohl_sys_param_h
=yes
4894 echo "configure: failed program was:" >&5
4895 cat conftest.
$ac_ext >&5
4897 ac_cv_c_ntohl_sys_param_h
=no
4902 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4903 if test x
"$ac_cv_c_ntohl_sys_param_h" != x
"no"; then
4904 cat >> confdefs.h
<<\EOF
4905 #define NTOHL_IN_SYS_PARAM_H 1
4910 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4911 echo "configure:4912: checking if \$CC accepts -finline-limit" >&5
4912 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 CFLAGS
="${save_CFLAGS} -finline-limit-30000"
4916 cat > conftest.
$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4924 if { (eval echo configure
:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4926 ac_cv_c_inline_limit
=yes
4928 echo "configure: failed program was:" >&5
4929 cat conftest.
$ac_ext >&5
4931 ac_cv_c_inline_limit
=no
4936 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4937 if test x
"$ac_cv_c_inline_limit" != x
"no"; then
4938 save_CFLAGS
="${save_CFLAGS} -finline-limit-30000"
4941 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4942 echo "configure:4943: checking if \$CC accepts -Wall -Winline" >&5
4943 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4946 CFLAGS
="${save_CFLAGS} -Wall -Winline"
4947 cat > conftest.
$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4955 if { (eval echo configure
:4956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4957 ac_cv_c_Wall_Winline
=yes
4959 echo "configure: failed program was:" >&5
4960 cat conftest.
$ac_ext >&5
4962 ac_cv_c_Wall_Winline
=no
4967 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4968 if test x
"$ac_cv_c_Wall_Winline" != x
"no"; then
4969 save_CFLAGS
="${save_CFLAGS} -Wall -Winline"
4971 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4972 echo "configure:4973: checking if \$CC accepts -wall -winline" >&5
4973 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 CFLAGS
="${save_CFLAGS} -wall -winline"
4977 cat > conftest.
$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4985 if { (eval echo configure
:4986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4987 ac_cv_c_wall_winline
=yes
4989 echo "configure: failed program was:" >&5
4990 cat conftest.
$ac_ext >&5
4992 ac_cv_c_wall_winline
=no
4997 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4998 if test x
"$ac_cv_c_wall_winline" != x
"no"; then
4999 save_CFLAGS
="${save_CFLAGS} -wall -winline"
5003 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5004 echo "configure:5005: checking if \$CC accepts -pipe" >&5
5005 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5008 CFLAGS
="${save_CFLAGS} -pipe"
5009 cat > conftest.
$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5017 if { (eval echo configure
:5018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5021 echo "configure: failed program was:" >&5
5022 cat conftest.
$ac_ext >&5
5029 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5030 if test x
"$ac_cv_c_pipe" != x
"no"; then
5031 save_CFLAGS
="${save_CFLAGS} -pipe"
5034 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5035 echo "configure:5036: checking if \$CC accepts -O3" >&5
5036 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 CFLAGS
="${save_CFLAGS} -O3"
5040 cat > conftest.
$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5048 if { (eval echo configure
:5049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5052 echo "configure: failed program was:" >&5
5053 cat conftest.
$ac_ext >&5
5060 echo "$ac_t""$ac_cv_c_o3" 1>&6
5061 if test x
"$ac_cv_c_o3" != x
"no"; then
5062 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -O3"
5064 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5065 echo "configure:5066: checking if \$CC accepts -O2" >&5
5066 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5069 CFLAGS
="${save_CFLAGS} -O2"
5070 cat > conftest.
$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5078 if { (eval echo configure
:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5082 echo "configure: failed program was:" >&5
5083 cat conftest.
$ac_ext >&5
5090 echo "$ac_t""$ac_cv_c_o2" 1>&6
5091 if test x
"$ac_cv_c_o2" != x
"no"; then
5092 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -O2"
5094 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5095 echo "configure:5096: checking if \$CC accepts -O" >&5
5096 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5099 CFLAGS
="${save_CFLAGS} -O"
5100 cat > conftest.
$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5108 if { (eval echo configure
:5109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5112 echo "configure: failed program was:" >&5
5113 cat conftest.
$ac_ext >&5
5120 echo "$ac_t""$ac_cv_c_o" 1>&6
5121 if test x
"$ac_cv_c_o" != x
"no"; then
5122 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -O"
5127 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5128 echo "configure:5129: checking if \$CC accepts -ffast-math" >&5
5129 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5132 CFLAGS
="${save_CFLAGS} -ffast-math"
5133 cat > conftest.
$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5141 if { (eval echo configure
:5142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5143 ac_cv_c_fast_math
=yes
5145 echo "configure: failed program was:" >&5
5146 cat conftest.
$ac_ext >&5
5148 ac_cv_c_fast_math
=no
5153 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5154 if test x
"$ac_cv_c_fast_math" != x
"no"; then
5155 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -ffast-math"
5158 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5159 echo "configure:5160: checking if \$CC accepts -funroll-loops" >&5
5160 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5163 CFLAGS
="${save_CFLAGS} -funroll-loops"
5164 cat > conftest.
$ac_ext <<EOF
5165 #line 5166 "configure"
5166 #include "confdefs.h"
5172 if { (eval echo configure
:5173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5174 ac_cv_c_unroll_loops
=yes
5176 echo "configure: failed program was:" >&5
5177 cat conftest.
$ac_ext >&5
5179 ac_cv_c_unroll_loops
=no
5184 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5185 if test x
"$ac_cv_c_unroll_loops" != x
"no"; then
5186 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -funroll-loops"
5189 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5190 echo "configure:5191: checking if \$CC accepts -fomit-frame-pointer" >&5
5191 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5194 CFLAGS
="${save_CFLAGS} -fomit-frame-pointer"
5195 cat > conftest.
$ac_ext <<EOF
5196 #line 5197 "configure"
5197 #include "confdefs.h"
5203 if { (eval echo configure
:5204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5205 ac_cv_c_omit_frame_pointer
=yes
5207 echo "configure: failed program was:" >&5
5208 cat conftest.
$ac_ext >&5
5210 ac_cv_c_omit_frame_pointer
=no
5215 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5216 if test x
"$ac_cv_c_omit_frame_pointer" != x
"no"; then
5217 CFLAGS_OPTIM_NODEBUG
="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5220 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5221 echo "configure:5222: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5222 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 CFLAGS
="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5226 cat > conftest.
$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5234 if { (eval echo configure
:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5238 echo "configure: failed program was:" >&5
5239 cat conftest.
$ac_ext >&5
5246 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5247 if test x
"$ac_cv_ld_darwin" != x
"no"; then
5248 plugins_LDFLAGS
="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5251 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5252 echo "configure:5253: checking if \$CC accepts -shared" >&5
5253 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5256 CFLAGS
="${save_CFLAGS} -shared"
5257 cat > conftest.
$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5265 if { (eval echo configure
:5266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5267 ac_cv_ld_plugins
=yes
5269 echo "configure: failed program was:" >&5
5270 cat conftest.
$ac_ext >&5
5277 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5278 if test x
"$ac_cv_ld_plugins" != x
"no"; then
5279 plugins_LDFLAGS
="${plugins_LDFLAGS} -shared"
5282 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5283 echo "configure:5284: checking for variadic cpp macros" >&5
5284 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 CFLAGS
="${save_CFLAGS}"
5288 cat > conftest.
$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5292 #define a(b,c...) printf(b,##c)
5294 a("foo");a("%s","bar");a("%s%s","baz","quux");
5297 if { (eval echo configure
:5298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5299 ac_cv_cpp_variadic_macros
=yes
5301 echo "configure: failed program was:" >&5
5302 cat conftest.
$ac_ext >&5
5304 ac_cv_cpp_variadic_macros
=no
5309 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5310 if test x
"$ac_cv_cpp_variadic_macros" != x
"no"; then
5311 cat >> confdefs.h
<<\EOF
5312 #define HAVE_VARIADIC_MACROS 1
5317 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5318 echo "configure:5319: checking __attribute__ ((aligned ())) support" >&5
5319 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 ac_cv_c_attribute_aligned
=0
5323 CFLAGS
="${save_CFLAGS} -Werror"
5324 for ac_cv_c_attr_align_try
in 2 4 8 16 32 64; do
5325 cat > conftest.
$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5330 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5333 if { (eval echo configure
:5334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5335 ac_cv_c_attribute_aligned
=$ac_cv_c_attr_align_try
5337 echo "configure: failed program was:" >&5
5338 cat conftest.
$ac_ext >&5
5344 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5345 if test x
"$ac_cv_c_attribute_aligned" != x
"0"; then
5346 cat >> confdefs.h
<<EOF
5347 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5352 CFLAGS
="${save_CFLAGS}"
5353 CPPFLAGS
="${save_CPPFLAGS}"
5354 LDFLAGS
="${save_LDFLAGS}"
5356 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5357 echo "configure:5358: checking for boolean_t in sys/types.h" >&5
5358 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5361 cat > conftest.
$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5364 #include <sys/types.h>
5369 if { (eval echo configure
:5370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5371 ac_cv_c_boolean_t_sys_types_h
=yes
5373 echo "configure: failed program was:" >&5
5374 cat conftest.
$ac_ext >&5
5376 ac_cv_c_boolean_t_sys_types_h
=no
5381 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5382 if test x
"$ac_cv_c_boolean_t_sys_types_h" != x
"no"; then
5383 cat >> confdefs.h
<<\EOF
5384 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5389 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5390 echo "configure:5391: checking for boolean_t in pthread.h" >&5
5391 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5394 cat > conftest.
$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5397 #include <pthread.h>
5402 if { (eval echo configure
:5403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5404 ac_cv_c_boolean_t_pthread_h
=yes
5406 echo "configure: failed program was:" >&5
5407 cat conftest.
$ac_ext >&5
5409 ac_cv_c_boolean_t_pthread_h
=no
5414 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5415 if test x
"$ac_cv_c_boolean_t_pthread_h" != x
"no"; then
5416 cat >> confdefs.h
<<\EOF
5417 #define BOOLEAN_T_IN_PTHREAD_H 1
5422 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5423 echo "configure:5424: checking for boolean_t in cthreads.h" >&5
5424 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 cat > conftest.
$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 #include <cthreads.h>
5435 if { (eval echo configure
:5436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5437 ac_cv_c_boolean_t_cthreads_h
=yes
5439 echo "configure: failed program was:" >&5
5440 cat conftest.
$ac_ext >&5
5442 ac_cv_c_boolean_t_cthreads_h
=no
5447 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5448 if test x
"$ac_cv_c_boolean_t_cthreads_h" != x
"no"; then
5449 cat >> confdefs.h
<<\EOF
5450 #define BOOLEAN_T_IN_CTHREADS_H 1
5455 case x
"${target_cpu}" in
5460 ARCH
="${target_cpu}"
5464 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"
5465 PLUGINS
="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone fx_scope"
5467 MMX_MODULES
="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5468 MMXEXT_MODULES
="memcpymmxext idctmmxext motionmmxext"
5469 THREEDNOW_MODULES
="memcpy3dn imdct3dn downmix3dn"
5470 SSE_MODULES
="imdctsse downmixsse"
5471 ALTIVEC_MODULES
="idctaltivec motionaltivec memcpyaltivec"
5473 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5474 echo "configure:5475: checking if \$CC groks MMX inline assembly" >&5
5475 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5478 cat > conftest.
$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5483 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5486 if { (eval echo configure
:5487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5488 ac_cv_mmx_inline
=yes
5490 echo "configure: failed program was:" >&5
5491 cat conftest.
$ac_ext >&5
5498 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5499 if test x
"$ac_cv_mmx_inline" != x
"no"; then
5500 ACCEL_MODULES
="${ACCEL_MODULES} ${MMX_MODULES}"
5503 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5504 echo "configure:5505: checking if \$CC groks MMX EXT inline assembly" >&5
5505 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5506 echo $ac_n "(cached) $ac_c" 1>&6
5508 cat > conftest.
$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5513 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5516 if { (eval echo configure
:5517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5518 ac_cv_mmxext_inline
=yes
5520 echo "configure: failed program was:" >&5
5521 cat conftest.
$ac_ext >&5
5523 ac_cv_mmxext_inline
=no
5528 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5529 if test x
"$ac_cv_mmxext_inline" != x
"no"; then
5530 ACCEL_MODULES
="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5533 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5534 echo "configure:5535: checking if \$CC groks 3D Now! inline assembly" >&5
5535 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5538 cat > conftest.
$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5543 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5546 if { (eval echo configure
:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5548 ac_cv_3dnow_inline
=yes
5550 echo "configure: failed program was:" >&5
5551 cat conftest.
$ac_ext >&5
5553 ac_cv_3dnow_inline
=no
5558 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5559 if test x
"$ac_cv_3dnow_inline" != x
"no"; then
5560 cat >> confdefs.h
<<\EOF
5561 #define CAN_COMPILE_3DNOW 1
5564 ACCEL_MODULES
="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5567 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5568 echo "configure:5569: checking if \$CC groks SSE inline assembly" >&5
5569 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5572 cat > conftest.
$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5577 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5580 if { (eval echo configure
:5581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5582 ac_cv_sse_inline
=yes
5584 echo "configure: failed program was:" >&5
5585 cat conftest.
$ac_ext >&5
5592 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5593 if test x
"$ac_cv_sse_inline" != x
"no" -a x
$SYS != xmingw32
; then
5594 cat >> confdefs.h
<<\EOF
5595 #define CAN_COMPILE_SSE 1
5598 ACCEL_MODULES
="${ACCEL_MODULES} ${SSE_MODULES}"
5601 # don't try to grok altivec with native mingw32 it doesn't work right now
5602 # we should be able to remove this test with future versions of mingw32
5603 if test x
$SYS != xmingw32
; then
5604 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5605 echo "configure:5606: checking if \$CC groks Altivec inline assembly" >&5
5606 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 cat > conftest.
$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5614 asm volatile("vperm 0,1,2,3");
5617 if { (eval echo configure
:5618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5619 ac_cv_altivec_inline
=yes
5621 echo "configure: failed program was:" >&5
5622 cat conftest.
$ac_ext >&5
5625 CFLAGS
="$CFLAGS -Wa,-m7400"
5626 cat > conftest.
$ac_ext <<EOF
5627 #line 5628 "configure"
5628 #include "confdefs.h"
5631 asm volatile("vperm 0,1,2,3");
5634 if { (eval echo configure
:5635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5636 ac_cv_altivec_inline
="-Wa,-m7400"
5638 echo "configure: failed program was:" >&5
5639 cat conftest.
$ac_ext >&5
5641 ac_cv_altivec_inline
=no
5650 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5651 if test x
"$ac_cv_altivec_inline" != x
"no"; then
5652 cat >> confdefs.h
<<\EOF
5653 #define CAN_COMPILE_ALTIVEC 1
5656 if test x
"$ac_cv_altivec_inline" != x
"yes"; then
5657 idctaltivec_CFLAGS
="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5658 motionaltivec_CFLAGS
="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5659 memcpyaltivec_CFLAGS
="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5660 vlc_CFLAGS
="$vlc_CFLAGS $ac_cv_altivec_inline"
5662 ACCEL_MODULES
="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5665 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5666 echo "configure:5667: checking if \$CC groks Altivec C extensions" >&5
5667 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5671 CFLAGS
="$CFLAGS -faltivec"
5673 cat > conftest.
$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5678 vec_mtvscr((vector unsigned int)(0));
5681 if { (eval echo configure
:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5683 ac_cv_c_altivec
=-faltivec
5685 echo "configure: failed program was:" >&5
5686 cat conftest.
$ac_ext >&5
5690 CFLAGS
="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5691 cat > conftest.
$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5696 vec_mtvscr((vector unsigned int)(0));
5699 if { (eval echo configure
:5700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5701 ac_cv_c_altivec
="-fvec"
5703 echo "configure: failed program was:" >&5
5704 cat conftest.
$ac_ext >&5
5716 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5717 if test x
"$ac_cv_c_altivec" != x
"no"; then
5718 cat >> confdefs.h
<<\EOF
5719 #define CAN_COMPILE_C_ALTIVEC 1
5722 idctaltivec_CFLAGS
="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5723 motionaltivec_CFLAGS
="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5724 memcpyaltivec_CFLAGS
="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5725 vlc_CFLAGS
="$vlc_CFLAGS $ac_cv_c_altivec"
5726 ACCEL_MODULES
="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5729 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5730 echo "configure:5731: checking if linker needs -framework vecLib" >&5
5731 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5734 save_LDFLAGS
=$LDFLAGS
5735 LDFLAGS
="$LDFLAGS -framework vecLib"
5736 cat > conftest.
$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5744 if { (eval echo configure
:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5746 ac_cv_ld_altivec
=yes
5748 echo "configure: failed program was:" >&5
5749 cat conftest.
$ac_ext >&5
5754 LDFLAGS
=$save_LDFLAGS
5758 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5759 if test x
"$ac_cv_ld_altivec" != x
"no"; then
5760 idctaltivec_LDFLAGS
="${idctaltivec_LDFLAGS} -framework vecLib"
5761 motionaltivec_LDFLAGS
="${motionaltivec_LDFLAGS} -framework vecLib"
5762 memcpyaltivec_LDFLAGS
="${memcpyaltivec_LDFLAGS} -framework vecLib"
5763 vlc_LDFLAGS
="${vlc_LDFLAGS} -framework vecLib"
5768 # Check whether --with- or --without- was given.
5769 if test "${with_+set}" = set; then
5774 # Check whether --with- or --without- was given.
5775 if test "${with_+set}" = set; then
5781 # Check whether --with-tuning or --without-tuning was given.
5782 if test "${with_tuning+set}" = set; then
5783 withval
="$with_tuning"
5787 if test "x$with_tuning" != "x"; then
5788 TUNING
="$with_tuning"
5790 if test x
${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386
; then TUNING
="pentiumpro"
5792 if test x
${target_cpu} = xpowerpc
; then TUNING
="750"; fi
5796 if test x
${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5799 BUILTINS
="${BUILTINS} ${ACCEL_MODULES}"
5802 # Check whether --enable-optimizations or --disable-optimizations was given.
5803 if test "${enable_optimizations+set}" = set; then
5804 enableval
="$enable_optimizations"
5805 if test x
$enable_optimizations = xno
; then OPTIMS
=0; fi
5811 # Check whether --enable-altivec or --disable-altivec was given.
5812 if test "${enable_altivec+set}" = set; then
5813 enableval
="$enable_altivec"
5814 if test x
$enable_altivec = xyes
; then ARCH
="${ARCH} altivec";
5815 BUILTINS
="${BUILTINS} ${ACCEL_MODULES}"; fi
5817 if test x
${target_cpu} = xpowerpc
; then ARCH
="${ARCH} altivec";
5818 BUILTINS
="${BUILTINS} ${ACCEL_MODULES}"; fi
5823 # Check whether --enable-debug or --disable-debug was given.
5824 if test "${enable_debug+set}" = set; then
5825 enableval
="$enable_debug"
5826 if test x
$enable_debug = xyes
; then DEBUG
=1; fi
5831 # Check whether --enable-release or --disable-release was given.
5832 if test "${enable_release+set}" = set; then
5833 enableval
="$enable_release"
5834 if test x
$enable_release = xyes
; then RELEASE
=1; fi
5836 VERSION
="${VERSION}_`date +%Y-%m-%d`"
5841 # Check whether --with- or --without- was given.
5842 if test "${with_+set}" = set; then
5848 # Check whether --enable-dvd or --disable-dvd was given.
5849 if test "${enable_dvd+set}" = set; then
5850 enableval
="$enable_dvd"
5854 if test "x$enable_dvd" != "xno"
5856 # Check whether --with-dvdcss or --without-dvdcss was given.
5857 if test "${with_dvdcss+set}" = set; then
5858 withval
="$with_dvdcss"
5862 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5863 if test "${with_dvdcss_tree+set}" = set; then
5864 withval
="$with_dvdcss_tree"
5868 case "x$with_dvdcss" in
5870 if test "x$with_dvdcss_tree" = x
5872 for ac_hdr
in dvdcss
/dvdcss.h
5874 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5876 echo "configure:5877: checking for $ac_hdr" >&5
5877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5878 echo $ac_n "(cached) $ac_c" 1>&6
5880 cat > conftest.
$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5885 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5886 { (eval echo configure
:5887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5887 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5888 if test -z "$ac_err"; then
5890 eval "ac_cv_header_$ac_safe=yes"
5893 echo "configure: failed program was:" >&5
5894 cat conftest.
$ac_ext >&5
5896 eval "ac_cv_header_$ac_safe=no"
5900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5901 echo "$ac_t""yes" 1>&6
5902 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5903 cat >> confdefs.h
<<EOF
5904 #define $ac_tr_hdr 1
5906 PLUGINS
="${PLUGINS} dvd"
5907 dvd_LDFLAGS
="${dvd_LDFLAGS} -ldvdcss"
5909 echo "$ac_t""no" 1>&6
5910 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
5911 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5916 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5917 echo "configure:5918: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5918 real_dvdcss_tree
="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5919 if test "x$real_dvdcss_tree" = x
5921 echo "$ac_t""no" 1>&6
5922 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5924 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5926 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5927 BUILTINS
="${BUILTINS} dvd"
5928 dvd_LDFLAGS
="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5929 dvd_CFLAGS
="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5931 echo "$ac_t""no" 1>&6
5932 { 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; }
5937 PLUGINS="${PLUGINS} dvd
"
5938 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5939 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5942 echo $ac_n "checking
for dvdcss headers
in ${with_dvdcss}""...
$ac_c" 1>&6
5943 echo "configure
:5944: checking
for dvdcss headers
in ${with_dvdcss}" >&5
5944 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5946 echo "$ac_t""yes" 1>&6
5947 PLUGINS="${PLUGINS} dvd
"
5948 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib
-ldvdcss"
5949 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include
"
5951 echo "$ac_t""no
" 1>&6
5952 { echo "configure
: error
: cannot
find ${with_dvdcss}/include
/dvdcss
/dvdcss.h
" 1>&2; exit 1; }
5958 # Check whether --enable-dvdread or --disable-dvdread was given.
5959 if test "${enable_dvdread+set}" = set; then
5960 enableval="$enable_dvdread"
5964 if test "x
$enable_dvdread" != "xno
"
5966 # Check whether --with-dvdread or --without-dvdread was given.
5967 if test "${with_dvdread+set}" = set; then
5968 withval="$with_dvdread"
5972 if test "x
$with_dvdread" = x
5977 test_LDFLAGS="-L${with_dvdread}/lib
"
5978 test_CFLAGS="-I${with_dvdread}/include
"
5980 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5981 for ac_hdr in dvdread/dvd_reader.h
5983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5984 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5985 echo "configure
:5986: checking
for $ac_hdr" >&5
5986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5987 echo $ac_n "(cached
) $ac_c" 1>&6
5989 cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure
"
5991 #include "confdefs.h
"
5994 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5995 { (eval echo configure:5996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5997 if test -z "$ac_err"; then
5999 eval "ac_cv_header_
$ac_safe=yes"
6002 echo "configure
: failed program was
:" >&5
6003 cat conftest.$ac_ext >&5
6005 eval "ac_cv_header_
$ac_safe=no
"
6009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6010 echo "$ac_t""yes" 1>&6
6011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6012 cat >> confdefs.h <<EOF
6013 #define $ac_tr_hdr 1
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure
"
6018 #include "confdefs.h
"
6019 #include <dvdread/dvd_reader.h>
6021 void foo() { int i=DVD_VIDEO_LB_LEN; }
6024 if { (eval echo configure:6025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6027 PLUGINS="${PLUGINS} dvdread
"
6028 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6029 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6032 echo "configure
: failed program was
:" >&5
6033 cat conftest.$ac_ext >&5
6036 if test "x
$enable_dvdread" != x
6038 { 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; }
6045 echo "$ac_t""no
" 1>&6
6046 if test "x
$enable_dvdread" != x
6048 if test "x
$with_dvdread" != x
6050 { echo "configure
: error
: Cannot
find dvdread
/dvd_reader.h
in ${with_dvdread}/include
" 1>&2; exit 1; }
6052 { echo "configure
: error
: Cannot
find dvdread
/dvd_reader.h
" 1>&2; exit 1; }
6059 CPPFLAGS="$save_CPPFLAGS"
6062 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6063 if test "${enable_dvbpsi+set}" = set; then
6064 enableval="$enable_dvbpsi"
6068 if test "x
$enable_dvbpsi" != "xno
"
6070 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6071 if test "${with_dvbpsi+set}" = set; then
6072 withval="$with_dvbpsi"
6076 if test "x
$with_dvbpsi" = x
6081 test_LDFLAGS="-L${with_dvbpsi}/lib
"
6082 test_CFLAGS="-I${with_dvbpsi}/include
"
6084 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6085 ac_safe=`echo "dvbpsi
/dr.h
" | sed 'y%./+-%__p_%'`
6086 echo $ac_n "checking
for dvbpsi
/dr.h
""...
$ac_c" 1>&6
6087 echo "configure
:6088: checking
for dvbpsi
/dr.h
" >&5
6088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6089 echo $ac_n "(cached
) $ac_c" 1>&6
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure
"
6093 #include "confdefs.h
"
6094 #include <dvbpsi/dr.h>
6096 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6097 { (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6099 if test -z "$ac_err"; then
6101 eval "ac_cv_header_
$ac_safe=yes"
6104 echo "configure
: failed program was
:" >&5
6105 cat conftest.$ac_ext >&5
6107 eval "ac_cv_header_
$ac_safe=no
"
6111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6112 echo "$ac_t""yes" 1>&6
6114 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi
"
6115 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6116 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6119 echo "$ac_t""no
" 1>&6
6121 if test "x
$enable_dvbpsi" != x
6123 { echo "configure
: error
: Could not
find libdvbpsi on your system
: you may get it from www.videolan.org
, you
'll need at least version 0.1.1" 1>&2; exit 1; }
6128 CPPFLAGS="$save_CPPFLAGS"
6131 # Check whether --enable-vcd or --disable-vcd was given.
6132 if test "${enable_vcd+set}" = set; then
6133 enableval="$enable_vcd"
6138 if test x$enable_vcd != xno
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 #include <linux/cdrom.h>
6145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6146 egrep "cdrom_msf0" >/dev/null 2>&1; then
6149 PLUGINS="${PLUGINS} vcd"
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 #include <sys/cdio.h>
6160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6161 egrep "ioc_toc_header " >/dev/null 2>&1; then
6164 PLUGINS="${PLUGINS} vcd"
6165 cat >> confdefs.h <<\EOF
6166 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6174 if test "x${SYS}" = "xbsdi"
6176 PLUGINS="${PLUGINS} vcd"
6179 if test "x${SYS}" = "xdarwin"
6181 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6182 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6186 # Check whether --enable-satellite or --disable-satellite was given.
6187 if test "${enable_satellite+set}" = set; then
6188 enableval="$enable_satellite"
6189 if test x$enable_satellite = xyes
6191 PLUGINS="${PLUGINS} satellite"
6196 if test x$SYS != xnto
6198 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6199 echo "configure:6200: checking for inet_pton" >&5
6200 if eval "test \"`echo '$
''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* System header to define __stub macros and hopefully few prototypes,
6207 which can conflict with char inet_pton(); below. */
6209 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6216 /* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6229 eval "ac_cv_func_inet_pton=yes"
6231 echo "configure: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6234 eval "ac_cv_func_inet_pton=no"
6239 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 PLUGINS="${PLUGINS} ipv6"
6243 echo "$ac_t""no" 1>&6
6248 # Check whether --enable-avi or --disable-avi was given.
6249 if test "${enable_avi+set}" = set; then
6250 enableval="$enable_avi"
6254 if test x$enable_avi != xno
6256 PLUGINS="${PLUGINS} avi"
6260 # Check whether --with- or --without- was given.
6261 if test "${with_+set}" = set; then
6267 # Check whether --enable-mad or --disable-mad was given.
6268 if test "${enable_mad+set}" = set; then
6269 enableval="$enable_mad"
6273 if test x$enable_mad = xyes
6275 # Check whether --with-mad or --without-mad was given.
6276 if test "${with_mad+set}" = set; then
6281 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6283 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6284 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6287 # Check whether --with-mad-tree or --without-mad-tree was given.
6288 if test "${with_mad_tree+set}" = set; then
6289 withval="$with_mad_tree"
6293 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6295 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6296 if test "x$real_mad_tree" = x
6298 echo "$ac_t""no" 1>&6
6299 { echo "configure: error: ${with_mad_tree} directory doesn't exist
" 1>&2; exit 1; }
6301 echo $ac_n "checking
for mad.h
in ${real_mad_tree}/libmad
""...
$ac_c" 1>&6
6302 echo "configure
:6303: checking
for mad.h
in ${real_mad_tree}/libmad
" >&5
6303 if test -f ${real_mad_tree}/libmad/mad.h
6305 echo "$ac_t""yes" 1>&6
6306 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad
"
6307 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad
/.libs
"
6308 save_LDFLAGS=$LDFLAGS
6309 LDFLAGS=$mad_LDFLAGS
6310 echo $ac_n "checking
for mad_bit_init
in -lmad""...
$ac_c" 1>&6
6311 echo "configure
:6312: checking
for mad_bit_init
in -lmad" >&5
6312 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6314 echo $ac_n "(cached
) $ac_c" 1>&6
6316 ac_save_LIBS="$LIBS"
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure
"
6320 #include "confdefs.h
"
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6324 char mad_bit_init();
6330 if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6332 eval "ac_cv_lib_
$ac_lib_var=yes"
6334 echo "configure
: failed program was
:" >&5
6335 cat conftest.$ac_ext >&5
6337 eval "ac_cv_lib_
$ac_lib_var=no
"
6340 LIBS="$ac_save_LIBS"
6343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6344 echo "$ac_t""yes" 1>&6
6346 BUILTINS="${BUILTINS} mad
"
6347 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6350 echo "$ac_t""no
" 1>&6
6351 { echo "configure
: error
: the specified tree hasn
't been compiled " 1>&2; exit 1; }
6355 LDFLAGS=$save_LDFLAGS
6357 echo "$ac_t""no" 1>&6
6358 { echo "configure: error: the specified tree doesn't have mad.h
" 1>&2; exit 1; }
6362 save_LDFLAGS=$LDFLAGS
6363 CFLAGS="$CFLAGS $mad_CFLAGS"
6364 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6368 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
6369 echo "configure
:6370: checking
for $ac_hdr" >&5
6370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6371 echo $ac_n "(cached
) $ac_c" 1>&6
6373 cat > conftest.$ac_ext <<EOF
6374 #line 6375 "configure
"
6375 #include "confdefs.h
"
6378 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6379 { (eval echo configure:6380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6381 if test -z "$ac_err"; then
6383 eval "ac_cv_header_
$ac_safe=yes"
6386 echo "configure
: failed program was
:" >&5
6387 cat conftest.$ac_ext >&5
6389 eval "ac_cv_header_
$ac_safe=no
"
6393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6396 cat >> confdefs.h <<EOF
6397 #define $ac_tr_hdr 1
6401 echo "$ac_t""no
" 1>&6
6402 { echo "configure
: error
: Cannot
find development headers
for libmad...
" 1>&2; exit 1; }
6406 echo $ac_n "checking
for mad_bit_init
in -lmad""...
$ac_c" 1>&6
6407 echo "configure
:6408: checking
for mad_bit_init
in -lmad" >&5
6408 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6410 echo $ac_n "(cached
) $ac_c" 1>&6
6412 ac_save_LIBS="$LIBS"
6414 cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure
"
6416 #include "confdefs.h
"
6417 /* Override any gcc2 internal prototype to avoid an error. */
6418 /* We use char because int might match the return type of a gcc2
6419 builtin and then its argument prototype would still apply. */
6420 char mad_bit_init();
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6428 eval "ac_cv_lib_
$ac_lib_var=yes"
6430 echo "configure
: failed program was
:" >&5
6431 cat conftest.$ac_ext >&5
6433 eval "ac_cv_lib_
$ac_lib_var=no
"
6436 LIBS="$ac_save_LIBS"
6439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6440 echo "$ac_t""yes" 1>&6
6442 PLUGINS="${PLUGINS} mad
"
6443 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6445 echo "$ac_t""no
" 1>&6
6446 { echo "configure
: error
: Cannot
find libmad library...
" 1>&2; exit 1; }
6450 LDFLAGS=$save_LDFLAGS
6454 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6455 if test "${enable_ffmpeg+set}" = set; then
6456 enableval="$enable_ffmpeg"
6460 if test "x
$enable_ffmpeg" = "xyes
"
6462 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6463 if test "${with_ffmpeg+set}" = set; then
6464 withval="$with_ffmpeg"
6468 if test "x
$with_ffmpeg" != "xno
" -a "x
$with_ffmpeg" != "x
"
6470 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include
/libffmpeg
"
6471 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib
"
6474 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6475 if test "${with_ffmpeg_tree+set}" = set; then
6476 withval="$with_ffmpeg_tree"
6480 if test "x
$with_ffmpeg_tree" != "x
"
6482 echo $ac_n "checking
for libavcodec.a
in ${with_ffmpeg_tree}""...
$ac_c" 1>&6
6483 echo "configure
:6484: checking
for libavcodec.a
in ${with_ffmpeg_tree}" >&5
6484 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6485 if test "x
$real_ffmpeg_tree" = x
6487 echo "$ac_t""no
" 1>&6
6488 { echo "configure
: error
: cannot
cd to
${with_ffmpeg_tree}" 1>&2; exit 1; }
6490 if test -f "${real_ffmpeg_tree}/libavcodec
/libavcodec.a
"
6492 echo "$ac_t""${real_ffmpeg_tree}/libavcodec
/libavcodec.a
" 1>&6
6493 BUILTINS="${BUILTINS} ffmpeg
"
6494 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec
/libavcodec.a
"
6495 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec
"
6497 echo "$ac_t""no
" 1>&6
6498 { echo "configure
: error
: cannot
find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6502 save_LDFLAGS
=$LDFLAGS
6503 CFLAGS
="$CFLAGS $ffmpeg_CFLAGS"
6504 LDFLAGS
="$LDFLAGS $ffmpeg_LDFLAGS"
6505 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6506 echo "configure:6507: checking for avcodec_init in -lavcodec" >&5
6507 ac_lib_var
=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6511 ac_save_LIBS
="$LIBS"
6512 LIBS
="-lavcodec $LIBS"
6513 cat > conftest.
$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6516 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6519 char avcodec_init();
6525 if { (eval echo configure
:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6527 eval "ac_cv_lib_$ac_lib_var=yes"
6529 echo "configure: failed program was:" >&5
6530 cat conftest.
$ac_ext >&5
6532 eval "ac_cv_lib_$ac_lib_var=no"
6535 LIBS
="$ac_save_LIBS"
6538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6541 BUILTINS
="${BUILTINS} ffmpeg"
6542 ffmpeg_LDFLAGS
="${ffmpeg_LDFLAGS} -lavcodec"
6544 echo "$ac_t""no" 1>&6
6545 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6549 LDFLAGS
=$save_LDFLAGS
6554 if test x
$SYS = xbeos
6556 PLUGINS
="${PLUGINS} beos"
6559 # Check whether --enable-a52 or --disable-a52 was given.
6560 if test "${enable_a52+set}" = set; then
6561 enableval
="$enable_a52"
6565 if test "x$enable_a52" != "xno"
6567 # Check whether --with-a52-tree or --without-a52-tree was given.
6568 if test "${with_a52_tree+set}" = set; then
6569 withval
="$with_a52_tree"
6573 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6575 real_a52_tree
="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6576 if test "x$real_a52_tree" = x
6578 echo "$ac_t""no" 1>&6
6579 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6581 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6582 echo "configure:6583: checking for a52.h in ${real_a52_tree}/include" >&5
6583 if test -f ${real_a52_tree}/include
/a52.h
6585 echo "$ac_t""yes" 1>&6
6586 a52_CFLAGS
="${a52_CFLAGS} -I${real_a52_tree}"
6587 a52_LDFLAGS
="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6588 save_LDFLAGS
=$LDFLAGS
6589 LDFLAGS
="$a52_LDFLAGS $LDFLAGS"
6590 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6591 echo "configure:6592: checking for a52_free in -la52" >&5
6592 ac_lib_var
=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6594 echo $ac_n "(cached) $ac_c" 1>&6
6596 ac_save_LIBS
="$LIBS"
6597 LIBS
="-la52 -lm $LIBS"
6598 cat > conftest.
$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6601 /* Override any gcc2 internal prototype to avoid an error. */
6602 /* We use char because int might match the return type of a gcc2
6603 builtin and then its argument prototype would still apply. */
6610 if { (eval echo configure
:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6612 eval "ac_cv_lib_$ac_lib_var=yes"
6614 echo "configure: failed program was:" >&5
6615 cat conftest.
$ac_ext >&5
6617 eval "ac_cv_lib_$ac_lib_var=no"
6620 LIBS
="$ac_save_LIBS"
6623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6624 echo "$ac_t""yes" 1>&6
6626 BUILTINS
="${BUILTINS} a52"
6627 a52_LDFLAGS
="${a52_LDFLAGS} -la52 -lm"
6628 a52_CFLAGS
="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6631 echo "$ac_t""no" 1>&6
6633 if test -f ${real_a52_tree}/liba52
/.libs
/liba52.a
6635 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6637 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6642 LDFLAGS
=$save_LDFLAGS
6644 echo "$ac_t""no" 1>&6
6645 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6647 else for ac_hdr
in a52dec
/a52.h
6649 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6651 echo "configure:6652: checking for $ac_hdr" >&5
6652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 cat > conftest.
$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6660 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6661 { (eval echo configure
:6662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6662 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6663 if test -z "$ac_err"; then
6665 eval "ac_cv_header_$ac_safe=yes"
6668 echo "configure: failed program was:" >&5
6669 cat conftest.
$ac_ext >&5
6671 eval "ac_cv_header_$ac_safe=no"
6675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6678 cat >> confdefs.h
<<EOF
6679 #define $ac_tr_hdr 1
6682 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6683 echo "configure:6684: checking for a52_free in -la52" >&5
6684 ac_lib_var
=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6688 ac_save_LIBS
="$LIBS"
6689 LIBS
="-la52 -lm $LIBS"
6690 cat > conftest.
$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6702 if { (eval echo configure
:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6704 eval "ac_cv_lib_$ac_lib_var=yes"
6706 echo "configure: failed program was:" >&5
6707 cat conftest.
$ac_ext >&5
6709 eval "ac_cv_lib_$ac_lib_var=no"
6712 LIBS
="$ac_save_LIBS"
6715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6716 echo "$ac_t""yes" 1>&6
6718 BUILTINS
="${BUILTINS} a52"
6719 a52_LDFLAGS
="${a52_LDFLAGS} -la52 -lm"
6720 a52_CFLAGS
="${a52_CFLAGS}"
6723 echo "$ac_t""no" 1>&6
6728 echo "$ac_t""no" 1>&6
6735 # Check whether --enable-vorbis or --disable-vorbis was given.
6736 if test "${enable_vorbis+set}" = set; then
6737 enableval
="$enable_vorbis"
6741 if test "x$enable_vorbis" != "xno"
6743 for ac_hdr
in ogg
/ogg.h
6745 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6747 echo "configure:6748: checking for $ac_hdr" >&5
6748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6751 cat > conftest.
$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6756 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6757 { (eval echo configure
:6758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6758 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6759 if test -z "$ac_err"; then
6761 eval "ac_cv_header_$ac_safe=yes"
6764 echo "configure: failed program was:" >&5
6765 cat conftest.
$ac_ext >&5
6767 eval "ac_cv_header_$ac_safe=no"
6771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6772 echo "$ac_t""yes" 1>&6
6773 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6774 cat >> confdefs.h
<<EOF
6775 #define $ac_tr_hdr 1
6778 #PLUGINS="${PLUGINS} vorbis"
6779 vorbis_LDFLAGS
="${vorbis_LDFLAGS} -lvorbis"
6782 echo "$ac_t""no" 1>&6
6789 # Check whether --with- or --without- was given.
6790 if test "${with_+set}" = set; then
6796 # Check whether --enable-x11 or --disable-x11 was given.
6797 if test "${enable_x11+set}" = set; then
6798 enableval
="$enable_x11"
6802 if test x
$enable_x11 != xno
&&
6803 (test x
$SYS != xmingw32 ||
test x
$enable_x11 = xyes
); then
6804 if test x
$x_includes = xNONE
; then
6805 x_includes
=/usr
/X11R
6/include
6807 if test x
$x_libraries = xNONE
; then
6808 x_libraries
=/usr
/X11R
6/lib
6810 CPPFLAGS
="$save_CPPFLAGS -I$x_includes"
6811 for ac_hdr
in X11
/Xlib.h
6813 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6815 echo "configure:6816: checking for $ac_hdr" >&5
6816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6819 cat > conftest.
$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6825 { (eval echo configure
:6826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6827 if test -z "$ac_err"; then
6829 eval "ac_cv_header_$ac_safe=yes"
6832 echo "configure: failed program was:" >&5
6833 cat conftest.
$ac_ext >&5
6835 eval "ac_cv_header_$ac_safe=no"
6839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6840 echo "$ac_t""yes" 1>&6
6841 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6842 cat >> confdefs.h
<<EOF
6843 #define $ac_tr_hdr 1
6846 PLUGINS
="${PLUGINS} x11"
6847 x11_LDFLAGS
="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6848 x11_CFLAGS
="${x11_CFLAGS} -I$x_includes"
6851 echo "$ac_t""no" 1>&6
6855 CPPFLAGS
="$save_CPPFLAGS"
6858 # Check whether --enable-xvideo or --disable-xvideo was given.
6859 if test "${enable_xvideo+set}" = set; then
6860 enableval
="$enable_xvideo"
6864 if test x
$enable_xvideo != xno
&&
6865 (test x
$SYS != xmingw32 ||
test x
$enable_xvideo = xyes
); then
6866 if test x
$x_includes = xNONE
; then
6867 x_includes
=/usr
/X11R
6/include
6869 if test x
$x_libraries = xNONE
; then
6870 x_libraries
=/usr
/X11R
6/lib
6872 save_CPPFLAGS
=$CPPFLAGS
6873 CPPFLAGS
="$save_CPPFLAGS -I$x_includes"
6874 for ac_hdr
in X11
/extensions
/Xv.h
6876 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6878 echo "configure:6879: checking for $ac_hdr" >&5
6879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6
6882 cat > conftest.
$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6887 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6888 { (eval echo configure
:6889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6889 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6890 if test -z "$ac_err"; then
6892 eval "ac_cv_header_$ac_safe=yes"
6895 echo "configure: failed program was:" >&5
6896 cat conftest.
$ac_ext >&5
6898 eval "ac_cv_header_$ac_safe=no"
6902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6903 echo "$ac_t""yes" 1>&6
6904 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6905 cat >> confdefs.h
<<EOF
6906 #define $ac_tr_hdr 1
6910 CFLAGS
="$CFLAGS -L$x_libraries -lX11 -lXext"
6911 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6912 echo "configure:6913: checking for XvSetPortAttribute in -lXv_pic" >&5
6913 ac_lib_var
=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6917 ac_save_LIBS
="$LIBS"
6918 LIBS
="-lXv_pic $LIBS"
6919 cat > conftest.
$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6925 char XvSetPortAttribute();
6928 XvSetPortAttribute()
6931 if { (eval echo configure
:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6933 eval "ac_cv_lib_$ac_lib_var=yes"
6935 echo "configure: failed program was:" >&5
6936 cat conftest.
$ac_ext >&5
6938 eval "ac_cv_lib_$ac_lib_var=no"
6941 LIBS
="$ac_save_LIBS"
6944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6945 echo "$ac_t""yes" 1>&6
6946 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6947 PLUGINS
="${PLUGINS} xvideo"
6948 xvideo_LDFLAGS
="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6949 xvideo_CFLAGS
="${xvideo_CFLAGS} -I$x_includes"
6951 echo "$ac_t""no" 1>&6
6952 # We don't have Xv_pic, let's make xvideo.a as builtin
6953 BUILTINS
="${BUILTINS} xvideo"
6954 xvideo_LDFLAGS
="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6955 xvideo_CFLAGS
="${xvideo_CFLAGS} -I$x_includes"
6958 CFLAGS
="$save_CFLAGS"
6960 CPPFLAGS
="$save_CPPFLAGS"
6962 echo "$ac_t""no" 1>&6
6968 # Check whether --enable-sdl or --disable-sdl was given.
6969 if test "${enable_sdl+set}" = set; then
6970 enableval
="$enable_sdl"
6974 if test "x$enable_sdl" != "xno"
6977 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6978 if test "${with_sdl_config_path+set}" = set; then
6979 withval
="$with_sdl_config_path"
6980 if test "x$with_sdl_config_path" != "xno"
6982 SDL_PATH
="$with_sdl_config_path:$PATH"
6986 # Extract the first word of "sdl12-config", so it can be a program name with args.
6987 set dummy sdl12-config
; ac_word
=$2
6988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6989 echo "configure:6990: checking for $ac_word" >&5
6990 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6993 case "$SDL12_CONFIG" in
6995 ac_cv_path_SDL12_CONFIG
="$SDL12_CONFIG" # Let the user override the test with a path.
6998 ac_cv_path_SDL12_CONFIG
="$SDL12_CONFIG" # Let the user override the test with a dos path.
7001 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7002 ac_dummy
="$SDL_PATH"
7003 for ac_dir
in $ac_dummy; do
7004 test -z "$ac_dir" && ac_dir
=.
7005 if test -f $ac_dir/$ac_word; then
7006 ac_cv_path_SDL12_CONFIG
="$ac_dir/$ac_word"
7011 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG
="no"
7015 SDL12_CONFIG
="$ac_cv_path_SDL12_CONFIG"
7016 if test -n "$SDL12_CONFIG"; then
7017 echo "$ac_t""$SDL12_CONFIG" 1>&6
7019 echo "$ac_t""no" 1>&6
7022 SDL_CONFIG
=${SDL12_CONFIG}
7023 SDL_HEADER
="SDL12/SDL.h"
7024 if test x
${SDL_CONFIG} = xno
7026 # Extract the first word of "sdl11-config", so it can be a program name with args.
7027 set dummy sdl11-config
; ac_word
=$2
7028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7029 echo "configure:7030: checking for $ac_word" >&5
7030 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7031 echo $ac_n "(cached) $ac_c" 1>&6
7033 case "$SDL11_CONFIG" in
7035 ac_cv_path_SDL11_CONFIG
="$SDL11_CONFIG" # Let the user override the test with a path.
7038 ac_cv_path_SDL11_CONFIG
="$SDL11_CONFIG" # Let the user override the test with a dos path.
7041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7042 ac_dummy
="$SDL_PATH"
7043 for ac_dir
in $ac_dummy; do
7044 test -z "$ac_dir" && ac_dir
=.
7045 if test -f $ac_dir/$ac_word; then
7046 ac_cv_path_SDL11_CONFIG
="$ac_dir/$ac_word"
7051 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG
="no"
7055 SDL11_CONFIG
="$ac_cv_path_SDL11_CONFIG"
7056 if test -n "$SDL11_CONFIG"; then
7057 echo "$ac_t""$SDL11_CONFIG" 1>&6
7059 echo "$ac_t""no" 1>&6
7062 SDL_CONFIG
=${SDL11_CONFIG}
7063 SDL_HEADER
="SDL11/SDL.h"
7065 if test x
${SDL_CONFIG} = xno
7067 # Extract the first word of "sdl-config", so it can be a program name with args.
7068 set dummy sdl-config
; ac_word
=$2
7069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7070 echo "configure:7071: checking for $ac_word" >&5
7071 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7072 echo $ac_n "(cached) $ac_c" 1>&6
7074 case "$SDL_CONFIG" in
7076 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
7079 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a dos path.
7082 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7083 ac_dummy
="$SDL_PATH"
7084 for ac_dir
in $ac_dummy; do
7085 test -z "$ac_dir" && ac_dir
=.
7086 if test -f $ac_dir/$ac_word; then
7087 ac_cv_path_SDL_CONFIG
="$ac_dir/$ac_word"
7092 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
7096 SDL_CONFIG
="$ac_cv_path_SDL_CONFIG"
7097 if test -n "$SDL_CONFIG"; then
7098 echo "$ac_t""$SDL_CONFIG" 1>&6
7100 echo "$ac_t""no" 1>&6
7103 SDL_HEADER
="SDL/SDL.h"
7105 if test x
${SDL_CONFIG} != xno
7107 PLUGINS
="${PLUGINS} sdl"
7108 sdl_CFLAGS
="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7109 sdl_LDFLAGS
="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7110 CPPFLAGS
="$save_CPPFLAGS $sdl_CFLAGS"
7111 for ac_hdr
in ${SDL_HEADER}
7113 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7115 echo "configure:7116: checking for $ac_hdr" >&5
7116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7119 cat > conftest.
$ac_ext <<EOF
7120 #line 7121 "configure"
7121 #include "confdefs.h"
7124 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7125 { (eval echo configure
:7126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7126 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7127 if test -z "$ac_err"; then
7129 eval "ac_cv_header_$ac_safe=yes"
7132 echo "configure: failed program was:" >&5
7133 cat conftest.
$ac_ext >&5
7135 eval "ac_cv_header_$ac_safe=no"
7139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7140 echo "$ac_t""yes" 1>&6
7141 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7142 cat >> confdefs.h
<<EOF
7143 #define $ac_tr_hdr 1
7145 cat >> confdefs.h
<<EOF
7146 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7150 echo "$ac_t""no" 1>&6
7151 { echo "configure: error: The development package for SDL is not installed.
7152 Please install it and try again. Alternatively you can also configure with
7153 --disable-sdl." 1>&2; exit 1; }
7158 CPPFLAGS
="$save_CPPFLAGS"
7159 if expr 1.1.5 \
> `$SDL_CONFIG --version` >/dev
/null
7161 { echo "configure: error: The development package for SDL is not installed.
7162 Please install it and try again. Alternatively you can also configure with
7163 --disable-sdl." 1>&2; exit 1; }
7165 elif test "x$enable_sdl" = "xyes"
7167 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7168 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7173 # Check whether --enable-directx or --disable-directx was given.
7174 if test "${enable_directx+set}" = set; then
7175 enableval
="$enable_directx"
7179 if test "x$enable_directx" != "xno"
7181 if test x
$SYS = xmingw32
7183 # Check whether --with-directx or --without-directx was given.
7184 if test "${with_directx+set}" = set; then
7185 withval
="$with_directx"
7189 if test "x$with_directx" = "x"
7191 for ac_hdr
in ddraw.h
7193 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7195 echo "configure:7196: checking for $ac_hdr" >&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
7221 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7222 cat >> confdefs.h
<<EOF
7223 #define $ac_tr_hdr 1
7225 PLUGINS
="${PLUGINS} directx"
7226 directx_LDFLAGS
="${directx_LDFLAGS} -lgdi32"
7228 echo "$ac_t""no" 1>&6
7233 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7234 echo "configure:7235: checking for directX headers in ${with_directx}" >&5
7235 if test -f ${with_directx}/ddraw.h
7237 PLUGINS
="${PLUGINS} directx"
7238 directx_LDFLAGS
="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7239 directx_CFLAGS
="${directx_CFLAGS} -I${with_directx}"
7240 echo "$ac_t""yes" 1>&6
7242 echo "$ac_t""no" 1>&6
7243 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7249 # Check whether --enable-fb or --disable-fb was given.
7250 if test "${enable_fb+set}" = set; then
7251 enableval
="$enable_fb"
7255 if test x
$enable_fb != xno
7257 for ac_hdr
in linux
/fb.h
7259 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7261 echo "configure:7262: checking for $ac_hdr" >&5
7262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7263 echo $ac_n "(cached) $ac_c" 1>&6
7265 cat > conftest.
$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7270 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7271 { (eval echo configure
:7272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7272 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7273 if test -z "$ac_err"; then
7275 eval "ac_cv_header_$ac_safe=yes"
7278 echo "configure: failed program was:" >&5
7279 cat conftest.
$ac_ext >&5
7281 eval "ac_cv_header_$ac_safe=no"
7285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7286 echo "$ac_t""yes" 1>&6
7287 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7288 cat >> confdefs.h
<<EOF
7289 #define $ac_tr_hdr 1
7292 PLUGINS
="${PLUGINS} fb"
7295 echo "$ac_t""no" 1>&6
7301 # Check whether --enable-mga or --disable-mga was given.
7302 if test "${enable_mga+set}" = set; then
7303 enableval
="$enable_mga"
7304 if test x
$enable_mga = xyes
7306 PLUGINS
="${PLUGINS} mga xmga"
7311 # Check whether --enable-ggi or --disable-ggi was given.
7312 if test "${enable_ggi+set}" = set; then
7313 enableval
="$enable_ggi"
7317 if test x
$enable_ggi = xyes
7319 PLUGINS
="${PLUGINS} ggi"
7320 ggi_LDFLAGS
="${ggi_LDFLAGS} -lggi"
7321 # Check whether --with-ggi or --without-ggi was given.
7322 if test "${with_ggi+set}" = set; then
7324 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7326 CFLAGS_GGI
="${CFLAGS_GGI} -I$with_ggi/include"
7327 ggi_LDFLAGS
="${ggi_LDFLAGS} -L$with_ggi/lib"
7333 # Check whether --enable-glide or --disable-glide was given.
7334 if test "${enable_glide+set}" = set; then
7335 enableval
="$enable_glide"
7339 if test x
$enable_glide = xyes
7341 PLUGINS
="${PLUGINS} glide"
7342 glide_LDFLAGS
="${glide_LDFLAGS} -lglide2x -lm"
7343 glide_CFLAGS
="${glide_CFLAGS} -I/usr/include/glide"
7344 # Check whether --with-glide or --without-glide was given.
7345 if test "${with_glide+set}" = set; then
7346 withval
="$with_glide"
7347 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7349 glide_CFLAGS
="${glide_CFLAGS} -I$with_glide/include"
7350 glide_LDFLAGS
="${glide_LDFLAGS} -L$with_glide/lib"
7356 # Check whether --enable-aa or --disable-aa was given.
7357 if test "${enable_aa+set}" = set; then
7358 enableval
="$enable_aa"
7362 if test x
$enable_aa = xyes
7364 ac_safe
=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7365 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7366 echo "configure:7367: checking for aalib.h" >&5
7367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7370 cat > conftest.
$ac_ext <<EOF
7371 #line 7372 "configure"
7372 #include "confdefs.h"
7375 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7376 { (eval echo configure
:7377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7377 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7378 if test -z "$ac_err"; then
7380 eval "ac_cv_header_$ac_safe=yes"
7383 echo "configure: failed program was:" >&5
7384 cat conftest.
$ac_ext >&5
7386 eval "ac_cv_header_$ac_safe=no"
7390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7391 echo "$ac_t""yes" 1>&6
7394 echo "$ac_t""no" 1>&6
7398 if test x
$have_aa = xtrue
7400 PLUGINS
="${PLUGINS} aa"
7401 aa_LDFLAGS
="${aa_LDFLAGS} -laa"
7406 # Check whether --with- or --without- was given.
7407 if test "${with_+set}" = set; then
7413 # Check whether --enable-dsp or --disable-dsp was given.
7414 if test "${enable_dsp+set}" = set; then
7415 enableval
="$enable_dsp"
7420 if test x
$enable_dsp != xno
&&
7421 (test x
$SYS != xmingw32 ||
test x
$enable_dsp = xyes
)
7423 for ac_hdr
in soundcard.h sys
/soundcard.h machine
/soundcard.h
7425 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7427 echo "configure:7428: checking for $ac_hdr" >&5
7428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7429 echo $ac_n "(cached) $ac_c" 1>&6
7431 cat > conftest.
$ac_ext <<EOF
7432 #line 7433 "configure"
7433 #include "confdefs.h"
7436 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7437 { (eval echo configure
:7438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7438 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7439 if test -z "$ac_err"; then
7441 eval "ac_cv_header_$ac_safe=yes"
7444 echo "configure: failed program was:" >&5
7445 cat conftest.
$ac_ext >&5
7447 eval "ac_cv_header_$ac_safe=no"
7451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7452 echo "$ac_t""yes" 1>&6
7453 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7454 cat >> confdefs.h
<<EOF
7455 #define $ac_tr_hdr 1
7458 PLUGINS
="${PLUGINS} dsp"
7459 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7460 echo "configure:7461: checking for main in -lossaudio" >&5
7461 ac_lib_var
=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7465 ac_save_LIBS
="$LIBS"
7466 LIBS
="-lossaudio $LIBS"
7467 cat > conftest.
$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7475 if { (eval echo configure
:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7477 eval "ac_cv_lib_$ac_lib_var=yes"
7479 echo "configure: failed program was:" >&5
7480 cat conftest.
$ac_ext >&5
7482 eval "ac_cv_lib_$ac_lib_var=no"
7485 LIBS
="$ac_save_LIBS"
7488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7489 echo "$ac_t""yes" 1>&6
7490 dsp_LDFLAGS
="${dsp_LDFLAGS} -lossaudio"
7492 echo "$ac_t""no" 1>&6
7497 echo "$ac_t""no" 1>&6
7503 # Check whether --enable-esd or --disable-esd was given.
7504 if test "${enable_esd+set}" = set; then
7505 enableval
="$enable_esd"
7506 if test x
$enable_esd = xyes
7508 # Extract the first word of "esd-config", so it can be a program name with args.
7509 set dummy esd-config
; ac_word
=$2
7510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7511 echo "configure:7512: checking for $ac_word" >&5
7512 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7515 case "$ESD_CONFIG" in
7517 ac_cv_path_ESD_CONFIG
="$ESD_CONFIG" # Let the user override the test with a path.
7520 ac_cv_path_ESD_CONFIG
="$ESD_CONFIG" # Let the user override the test with a dos path.
7523 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7525 for ac_dir
in $ac_dummy; do
7526 test -z "$ac_dir" && ac_dir
=.
7527 if test -f $ac_dir/$ac_word; then
7528 ac_cv_path_ESD_CONFIG
="$ac_dir/$ac_word"
7533 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG
="no"
7537 ESD_CONFIG
="$ac_cv_path_ESD_CONFIG"
7538 if test -n "$ESD_CONFIG"; then
7539 echo "$ac_t""$ESD_CONFIG" 1>&6
7541 echo "$ac_t""no" 1>&6
7544 if test x
${ESD_CONFIG} != xno
7546 PLUGINS
="${PLUGINS} esd"
7547 esd_CFLAGS
="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7548 esd_LDFLAGS
="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7554 # Check whether --enable-arts or --disable-arts was given.
7555 if test "${enable_arts+set}" = set; then
7556 enableval
="$enable_arts"
7557 if test x
$enable_arts = xyes
7559 # Extract the first word of "artsc-config", so it can be a program name with args.
7560 set dummy artsc-config
; ac_word
=$2
7561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7562 echo "configure:7563: checking for $ac_word" >&5
7563 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7566 case "$ARTS_CONFIG" in
7568 ac_cv_path_ARTS_CONFIG
="$ARTS_CONFIG" # Let the user override the test with a path.
7571 ac_cv_path_ARTS_CONFIG
="$ARTS_CONFIG" # Let the user override the test with a dos path.
7574 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7576 for ac_dir
in $ac_dummy; do
7577 test -z "$ac_dir" && ac_dir
=.
7578 if test -f $ac_dir/$ac_word; then
7579 ac_cv_path_ARTS_CONFIG
="$ac_dir/$ac_word"
7584 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG
="no"
7588 ARTS_CONFIG
="$ac_cv_path_ARTS_CONFIG"
7589 if test -n "$ARTS_CONFIG"; then
7590 echo "$ac_t""$ARTS_CONFIG" 1>&6
7592 echo "$ac_t""no" 1>&6
7595 if test x
${ARTS_CONFIG} != xno
7597 PLUGINS
="${PLUGINS} arts"
7598 arts_CFLAGS
="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7599 arts_LDFLAGS
="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7605 # Check whether --enable-alsa or --disable-alsa was given.
7606 if test "${enable_alsa+set}" = set; then
7607 enableval
="$enable_alsa"
7608 if test x
$enable_alsa = xyes
7610 ac_safe
=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7611 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7612 echo "configure:7613: checking for alsa/asoundlib.h" >&5
7613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7616 cat > conftest.
$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 #include <alsa/asoundlib.h>
7621 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7622 { (eval echo configure
:7623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7623 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7624 if test -z "$ac_err"; then
7626 eval "ac_cv_header_$ac_safe=yes"
7629 echo "configure: failed program was:" >&5
7630 cat conftest.
$ac_ext >&5
7632 eval "ac_cv_header_$ac_safe=no"
7636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7637 echo "$ac_t""yes" 1>&6
7638 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7639 echo "configure:7640: checking for main in -lasound" >&5
7640 ac_lib_var
=`echo asound'_'main | sed 'y%./+-%__p_%'`
7641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7644 ac_save_LIBS
="$LIBS"
7645 LIBS
="-lasound $LIBS"
7646 cat > conftest.
$ac_ext <<EOF
7647 #line 7648 "configure"
7648 #include "confdefs.h"
7654 if { (eval echo configure
:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7656 eval "ac_cv_lib_$ac_lib_var=yes"
7658 echo "configure: failed program was:" >&5
7659 cat conftest.
$ac_ext >&5
7661 eval "ac_cv_lib_$ac_lib_var=no"
7664 LIBS
="$ac_save_LIBS"
7667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7668 echo "$ac_t""yes" 1>&6
7671 echo "$ac_t""no" 1>&6
7676 echo "$ac_t""no" 1>&6
7680 if test x
$have_alsa = xtrue
7682 PLUGINS
="${PLUGINS} alsa"
7683 alsa_LDFLAGS
="${alsa_LDFLAGS} -lasound -lm -ldl"
7689 # Check whether --enable-waveout or --disable-waveout was given.
7690 if test "${enable_waveout+set}" = set; then
7691 enableval
="$enable_waveout"
7695 if test "x$enable_waveout" != "xno" -a x
$SYS = xmingw32
7697 PLUGINS
="${PLUGINS} waveout"
7698 waveout_LDFLAGS
="-lwinmm"
7702 # Check whether --with- or --without- was given.
7703 if test "${with_+set}" = set; then
7709 # Check whether --enable-gtk or --disable-gtk was given.
7710 if test "${enable_gtk+set}" = set; then
7711 enableval
="$enable_gtk"
7715 if test x
$enable_gtk != xno
7718 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7719 if test "${with_gtk_config_path+set}" = set; then
7720 withval
="$with_gtk_config_path"
7721 if test "x$with_gtk_config_path" != "xno"
7723 GTK_PATH
="$with_gtk_config_path:$PATH"
7727 # look for gtk-config
7728 # Extract the first word of "gtk12-config", so it can be a program name with args.
7729 set dummy gtk12-config
; ac_word
=$2
7730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7731 echo "configure:7732: checking for $ac_word" >&5
7732 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7735 case "$GTK12_CONFIG" in
7737 ac_cv_path_GTK12_CONFIG
="$GTK12_CONFIG" # Let the user override the test with a path.
7740 ac_cv_path_GTK12_CONFIG
="$GTK12_CONFIG" # Let the user override the test with a dos path.
7743 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7744 ac_dummy
="$GTK_PATH"
7745 for ac_dir
in $ac_dummy; do
7746 test -z "$ac_dir" && ac_dir
=.
7747 if test -f $ac_dir/$ac_word; then
7748 ac_cv_path_GTK12_CONFIG
="$ac_dir/$ac_word"
7753 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG
="no"
7757 GTK12_CONFIG
="$ac_cv_path_GTK12_CONFIG"
7758 if test -n "$GTK12_CONFIG"; then
7759 echo "$ac_t""$GTK12_CONFIG" 1>&6
7761 echo "$ac_t""no" 1>&6
7764 GTK_CONFIG
=${GTK12_CONFIG}
7765 if test x
${GTK_CONFIG} = xno
7767 # Extract the first word of "gtk-config", so it can be a program name with args.
7768 set dummy gtk-config
; ac_word
=$2
7769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7770 echo "configure:7771: checking for $ac_word" >&5
7771 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7772 echo $ac_n "(cached) $ac_c" 1>&6
7774 case "$GTK_CONFIG" in
7776 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
7779 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
7782 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7783 ac_dummy
="$GTK_PATH"
7784 for ac_dir
in $ac_dummy; do
7785 test -z "$ac_dir" && ac_dir
=.
7786 if test -f $ac_dir/$ac_word; then
7787 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
7792 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
7796 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
7797 if test -n "$GTK_CONFIG"; then
7798 echo "$ac_t""$GTK_CONFIG" 1>&6
7800 echo "$ac_t""no" 1>&6
7804 if test x
${GTK_CONFIG} != xno
7806 if expr 1.2.0 \
> `$GTK_CONFIG --version` >/dev
/null
7808 { 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; }
7810 gtk_CFLAGS
="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7811 gtk_LDFLAGS
="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7812 # now look for the gtk.h header
7813 CPPFLAGS
="$save_CPPFLAGS $gtk_CFLAGS"
7814 ac_cv_gtk_headers
=yes
7815 for ac_hdr
in gtk
/gtk.h glib.h gdk
/gdk.h
7817 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7819 echo "configure:7820: checking for $ac_hdr" >&5
7820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7823 cat > conftest.
$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7828 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7829 { (eval echo configure
:7830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7830 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7831 if test -z "$ac_err"; then
7833 eval "ac_cv_header_$ac_safe=yes"
7836 echo "configure: failed program was:" >&5
7837 cat conftest.
$ac_ext >&5
7839 eval "ac_cv_header_$ac_safe=no"
7843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7844 echo "$ac_t""yes" 1>&6
7845 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7846 cat >> confdefs.h
<<EOF
7847 #define $ac_tr_hdr 1
7851 echo "$ac_t""no" 1>&6
7852 ac_cv_gtk_headers
=no
7853 echo "Cannot find gtk development headers."
7858 if test "x$ac_cv_gtk_headers" = xyes
7860 PLUGINS
="${PLUGINS} gtk"
7861 ALIASES
="${ALIASES} gvlc"
7863 CPPFLAGS
="$save_CPPFLAGS"
7867 # Check whether --enable-gnome or --disable-gnome was given.
7868 if test "${enable_gnome+set}" = set; then
7869 enableval
="$enable_gnome"
7870 if test x
$enable_gnome = xyes
; then
7871 # look for gnome-config
7872 # Extract the first word of "gnome-config", so it can be a program name with args.
7873 set dummy gnome-config
; ac_word
=$2
7874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7875 echo "configure:7876: checking for $ac_word" >&5
7876 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7877 echo $ac_n "(cached) $ac_c" 1>&6
7879 case "$GNOME_CONFIG" in
7881 ac_cv_path_GNOME_CONFIG
="$GNOME_CONFIG" # Let the user override the test with a path.
7884 ac_cv_path_GNOME_CONFIG
="$GNOME_CONFIG" # Let the user override the test with a dos path.
7887 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7889 for ac_dir
in $ac_dummy; do
7890 test -z "$ac_dir" && ac_dir
=.
7891 if test -f $ac_dir/$ac_word; then
7892 ac_cv_path_GNOME_CONFIG
="$ac_dir/$ac_word"
7897 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG
="no"
7901 GNOME_CONFIG
="$ac_cv_path_GNOME_CONFIG"
7902 if test -n "$GNOME_CONFIG"; then
7903 echo "$ac_t""$GNOME_CONFIG" 1>&6
7905 echo "$ac_t""no" 1>&6
7908 if test -x ${GNOME_CONFIG}
7910 gnome_CFLAGS
="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7911 gnome_LDFLAGS
="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7913 # now look for the gnome.h header
7914 CPPFLAGS
="$save_CPPFLAGS $gnome_CFLAGS"
7915 for ac_hdr
in gnome.h
7917 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7919 echo "configure:7920: checking for $ac_hdr" >&5
7920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7923 cat > conftest.
$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7928 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7929 { (eval echo configure
:7930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7930 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7931 if test -z "$ac_err"; then
7933 eval "ac_cv_header_$ac_safe=yes"
7936 echo "configure: failed program was:" >&5
7937 cat conftest.
$ac_ext >&5
7939 eval "ac_cv_header_$ac_safe=no"
7943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7944 echo "$ac_t""yes" 1>&6
7945 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7946 cat >> confdefs.h
<<EOF
7947 #define $ac_tr_hdr 1
7950 PLUGINS
="${PLUGINS} gnome"
7951 ALIASES
="${ALIASES} gnome-vlc"
7954 echo "$ac_t""no" 1>&6
7955 { echo "configure: error: Can't find gnome headers. Please install the gnome
7956 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7961 CPPFLAGS
="$save_CPPFLAGS"
7966 # Check whether --enable-qt or --disable-qt was given.
7967 if test "${enable_qt+set}" = set; then
7968 enableval
="$enable_qt"
7969 if test x
$enable_qt = xyes
; then
7970 PLUGINS
="${PLUGINS} qt"
7971 ALIASES
="${ALIASES} qvlc"
7972 qt_LDFLAGS
="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7973 qt_CFLAGS
="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7974 if test -x ${QTDIR}/bin
/moc
7976 MOC
=${QTDIR}/bin
/moc
7984 # Check whether --enable-kde or --disable-kde was given.
7985 if test "${enable_kde+set}" = set; then
7986 enableval
="$enable_kde"
7987 if test x
$enable_kde = xyes
; then
7988 PLUGINS
="${PLUGINS} kde"
7989 ALIASES
="${ALIASES} kvlc"
7990 kde_LDFLAGS
="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
7991 kde_CFLAGS
="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
7992 kde_CFLAGS
="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
7993 if test -x ${QTDIR}/bin
/moc
7995 MOC
=${QTDIR}/bin
/moc
8003 # Check whether --enable-macosx or --disable-macosx was given.
8004 if test "${enable_macosx+set}" = set; then
8005 enableval
="$enable_macosx"
8006 if test x
$enable_macosx = xyes
8008 BUILTINS
="${BUILTINS} macosx"
8009 macosx_LDFLAGS
="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8012 for ac_hdr
in Cocoa
/Cocoa.h
8014 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8016 echo "configure:8017: checking for $ac_hdr" >&5
8017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8018 echo $ac_n "(cached) $ac_c" 1>&6
8020 cat > conftest.
$ac_ext <<EOF
8021 #line 8022 "configure"
8022 #include "confdefs.h"
8025 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8026 { (eval echo configure
:8027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8027 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8028 if test -z "$ac_err"; then
8030 eval "ac_cv_header_$ac_safe=yes"
8033 echo "configure: failed program was:" >&5
8034 cat conftest.
$ac_ext >&5
8036 eval "ac_cv_header_$ac_safe=no"
8040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8041 echo "$ac_t""yes" 1>&6
8042 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8043 cat >> confdefs.h
<<EOF
8044 #define $ac_tr_hdr 1
8046 BUILTINS
="${BUILTINS} macosx"
8047 macosx_LDFLAGS
="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8050 echo "$ac_t""no" 1>&6
8057 # Check whether --enable-qnx or --disable-qnx was given.
8058 if test "${enable_qnx+set}" = set; then
8059 enableval
="$enable_qnx"
8063 if test x
$enable_qnx != xno
8067 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8069 echo "configure:8070: checking for $ac_hdr" >&5
8070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8073 cat > conftest.
$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8078 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8079 { (eval echo configure
:8080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8080 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8081 if test -z "$ac_err"; then
8083 eval "ac_cv_header_$ac_safe=yes"
8086 echo "configure: failed program was:" >&5
8087 cat conftest.
$ac_ext >&5
8089 eval "ac_cv_header_$ac_safe=no"
8093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8094 echo "$ac_t""yes" 1>&6
8095 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8096 cat >> confdefs.h
<<EOF
8097 #define $ac_tr_hdr 1
8100 PLUGINS
="${PLUGINS} qnx"
8101 qnx_LDFLAGS
="${qnx_LDFLAGS} -lasound -lph"
8104 echo "$ac_t""no" 1>&6
8110 # Check whether --enable-intfwin or --disable-intfwin was given.
8111 if test "${enable_intfwin+set}" = set; then
8112 enableval
="$enable_intfwin"
8113 if test "x$enable_intfwin" != "xno"
8115 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8116 if test "${with_bcbuilder+set}" = set; then
8117 withval
="$with_bcbuilder"
8121 if test "x$with_bcbuilder" != "x"
8123 BCBUILDER
="$with_bcbuilder"
8125 PLUGINS
="${PLUGINS} intfwin"
8130 # Check whether --enable-ncurses or --disable-ncurses was given.
8131 if test "${enable_ncurses+set}" = set; then
8132 enableval
="$enable_ncurses"
8133 if test x
$enable_ncurses = xyes
; then
8134 PLUGINS
="${PLUGINS} ncurses"
8135 ncurses_LDFLAGS
="${ncurses_LDFLAGS} -lncurses"
8140 # Check whether --enable-lirc or --disable-lirc was given.
8141 if test "${enable_lirc+set}" = set; then
8142 enableval
="$enable_lirc"
8146 if test x
$enable_lirc = xyes
8148 ac_safe
=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8149 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8150 echo "configure:8151: checking for lirc/lirc_client.h" >&5
8151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8154 cat > conftest.
$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 #include <lirc/lirc_client.h>
8159 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8160 { (eval echo configure
:8161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8161 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8162 if test -z "$ac_err"; then
8164 eval "ac_cv_header_$ac_safe=yes"
8167 echo "configure: failed program was:" >&5
8168 cat conftest.
$ac_ext >&5
8170 eval "ac_cv_header_$ac_safe=no"
8174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8175 echo "$ac_t""yes" 1>&6
8176 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8177 echo "configure:8178: checking for lirc_init in -llirc_client" >&5
8178 ac_lib_var
=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8180 echo $ac_n "(cached) $ac_c" 1>&6
8182 ac_save_LIBS
="$LIBS"
8183 LIBS
="-llirc_client $LIBS"
8184 cat > conftest.
$ac_ext <<EOF
8185 #line 8186 "configure"
8186 #include "confdefs.h"
8187 /* Override any gcc2 internal prototype to avoid an error. */
8188 /* We use char because int might match the return type of a gcc2
8189 builtin and then its argument prototype would still apply. */
8196 if { (eval echo configure
:8197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8198 eval "ac_cv_lib_$ac_lib_var=yes"
8200 echo "configure: failed program was:" >&5
8201 cat conftest.
$ac_ext >&5
8203 eval "ac_cv_lib_$ac_lib_var=no"
8206 LIBS
="$ac_save_LIBS"
8209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8210 echo "$ac_t""yes" 1>&6
8213 echo "$ac_t""no" 1>&6
8218 echo "$ac_t""no" 1>&6
8222 if test x
$have_lirc = xtrue
8224 PLUGINS
="${PLUGINS} lirc"
8225 lirc_LDFLAGS
="${lirc_LDFLAGS} -llirc_client"
8229 # Check whether --with- or --without- was given.
8230 if test "${with_+set}" = set; then
8236 # Check whether --with-words or --without-words was given.
8237 if test "${with_words+set}" = set; then
8238 withval
="$with_words"
8242 case "x$with_words" in
8244 ac_cv_c_bigendian
=yes
8247 ac_cv_c_bigendian
=no
8250 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8251 echo "configure:8252: checking whether the byte order is big-endian" >&5
8252 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8255 ac_cv_c_bigendian
=unknown
8256 cat >conftest.c
<<EOF
8257 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8258 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8259 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8260 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8261 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8262 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8263 int main(void) { _a(); _e(); return 0; }
8266 if test -f conftest.c
8268 if ${CC-cc} -c conftest.c
-o conftest.o
>config.log
2>&1 \
8269 && test -f conftest.o
8271 if test "`strings conftest.o | grep BIGenDianSyS`"
8273 ac_cv_c_bigendian
=yes
8275 if test "`strings conftest.o | grep LiTTleEnDian`"
8277 ac_cv_c_bigendian
=no
8284 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8285 if test x
$ac_cv_c_bigendian = xunknown
8287 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8291 if test $ac_cv_c_bigendian = yes
8293 cat >> confdefs.h
<<\EOF
8294 #define WORDS_BIGENDIAN 1
8300 # Check whether --enable-gprof or --disable-gprof was given.
8301 if test "${enable_gprof+set}" = set; then
8302 enableval
="$enable_gprof"
8303 if test "x$enable_gprof" = "xyes"; then GPROF
=1; fi
8308 # Check whether --enable-cprof or --disable-cprof was given.
8309 if test "${enable_cprof+set}" = set; then
8310 enableval
="$enable_cprof"
8311 if test "x$enable_cprof" = "xyes";
8313 LDFLAGS
="${LDFLAGS} -lcprof"
8320 # Check whether --enable-pth or --disable-pth was given.
8321 if test "${enable_pth+set}" = set; then
8322 enableval
="$enable_pth"
8323 if test "x$enable_pth" = "xyes"; then
8324 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8325 echo "configure:8326: checking for pth_init in -lpth" >&5
8326 ac_lib_var
=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8328 echo $ac_n "(cached) $ac_c" 1>&6
8330 ac_save_LIBS
="$LIBS"
8332 cat > conftest.
$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 /* Override any gcc2 internal prototype to avoid an error. */
8336 /* We use char because int might match the return type of a gcc2
8337 builtin and then its argument prototype would still apply. */
8344 if { (eval echo configure
:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8346 eval "ac_cv_lib_$ac_lib_var=yes"
8348 echo "configure: failed program was:" >&5
8349 cat conftest.
$ac_ext >&5
8351 eval "ac_cv_lib_$ac_lib_var=no"
8354 LIBS
="$ac_save_LIBS"
8357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8359 ac_tr_lib
=HAVE_LIB
`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8360 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8361 cat >> confdefs.h
<<EOF
8362 #define $ac_tr_lib 1
8368 echo "$ac_t""no" 1>&6
8371 cat > conftest.
$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8377 egrep "pth_init" >/dev
/null
2>&1; then
8380 cat >> confdefs.h
<<\EOF
8381 #define PTH_INIT_IN_PTH_H 1
8393 # Check whether --enable-st or --disable-st was given.
8394 if test "${enable_st+set}" = set; then
8395 enableval
="$enable_st"
8396 if test "x$enable_st" = "xyes"; then
8397 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8398 echo "configure:8399: checking for st_init in -lst" >&5
8399 ac_lib_var
=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8401 echo $ac_n "(cached) $ac_c" 1>&6
8403 ac_save_LIBS
="$LIBS"
8405 cat > conftest.
$ac_ext <<EOF
8406 #line 8407 "configure"
8407 #include "confdefs.h"
8408 /* Override any gcc2 internal prototype to avoid an error. */
8409 /* We use char because int might match the return type of a gcc2
8410 builtin and then its argument prototype would still apply. */
8417 if { (eval echo configure
:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8419 eval "ac_cv_lib_$ac_lib_var=yes"
8421 echo "configure: failed program was:" >&5
8422 cat conftest.
$ac_ext >&5
8424 eval "ac_cv_lib_$ac_lib_var=no"
8427 LIBS
="$ac_save_LIBS"
8430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8431 echo "$ac_t""yes" 1>&6
8432 ac_tr_lib
=HAVE_LIB
`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8434 cat >> confdefs.h
<<EOF
8435 #define $ac_tr_lib 1
8441 echo "$ac_t""no" 1>&6
8444 cat > conftest.
$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8450 egrep "st_init" >/dev
/null
2>&1; then
8453 cat >> confdefs.h
<<\EOF
8454 #define ST_INIT_IN_ST_H 1
8466 LDFLAGS
="${LDFLAGS} ${THREAD_LIB}"
8468 # Check whether --enable-plugins or --disable-plugins was given.
8469 if test "${enable_plugins+set}" = set; then
8470 enableval
="$enable_plugins"
8471 if test x
$enable_plugins = xno
8473 BUILTINS
="${BUILTINS} ${PLUGINS}"
8479 if test x
$ac_cv_header_dlfcn_h = xno
-a x
$ac_cv_header_image_h = xno
-a x
$SYS != xmingw32
8481 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8483 BUILTINS
="${BUILTINS} ${PLUGINS}"
8487 cat >> confdefs.h
<<EOF
8488 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8491 cat >> confdefs.h
<<EOF
8492 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8496 VLC_SYMBOL
="`echo ${VERSION} | tr .- __`"
8497 cat >> confdefs.h
<<EOF
8498 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8501 cat >> confdefs.h
<<EOF
8502 #define MODULE_SYMBOL $VLC_SYMBOL
8506 DATA_PATH
="${ac_tool_prefix}/share/videolan"
8508 PLUGIN_PATH
="${ac_tool_prefix}/share/videolan"
8605 cat > confcache
<<\EOF
8606 # This file is a shell script that caches the results of configure
8607 # tests run on this system so they can be shared between configure
8608 # scripts and configure runs. It is not useful on other systems.
8609 # If it contains results you don't want to keep, you may remove or edit it.
8611 # By default, configure uses ./config.cache as the cache file,
8612 # creating it if it does not exist already. You can give configure
8613 # the --cache-file=FILE option to use a different cache file; that is
8614 # what configure does when it calls configure scripts in
8615 # subdirectories, so they share the cache.
8616 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8617 # config.status only pays attention to the cache file if you give it the
8618 # --recheck option to rerun configure.
8621 # The following way of writing the cache mishandles newlines in values,
8622 # but we know of no workaround that is simple, portable, and efficient.
8623 # So, don't put newlines in cache variables' values.
8624 # Ultrix sh set writes to stderr and can't be redirected directly,
8625 # and sets the high bit in the cache file unless we assign to the vars.
8627 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8629 # `set' does not quote correctly, so add quotes (double-quote substitution
8630 # turns \\\\ into \\, and sed turns \\ into \).
8632 -e "s/'/'\\\\''/g" \
8633 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8636 # `set' quotes correctly as required by POSIX, so do not add quotes.
8637 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8640 if cmp -s $cache_file confcache
; then
8643 if test -w $cache_file; then
8644 echo "updating cache $cache_file"
8645 cat confcache
> $cache_file
8647 echo "not updating unwritable cache $cache_file"
8652 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8654 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8655 # Let make expand exec_prefix.
8656 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8658 # Any assignment to VPATH causes Sun make to only execute
8659 # the first set of double-colon rules, so remove it if not needed.
8660 # If there is a colon in the path, we need to keep it.
8661 if test "x$srcdir" = x.
; then
8662 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8665 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8667 DEFS
=-DHAVE_CONFIG_H
8669 # Without the "./", some shells look in PATH for config.status.
8670 : ${CONFIG_STATUS=./config.status}
8672 echo creating
$CONFIG_STATUS
8673 rm -f $CONFIG_STATUS
8674 cat > $CONFIG_STATUS <<EOF
8676 # Generated automatically by configure.
8677 # Run this file to recreate the current configuration.
8678 # This directory was configured as follows,
8679 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8681 # $0 $ac_configure_args
8683 # Compiler output produced by configure, useful for debugging
8684 # configure, is in ./config.log if it exists.
8686 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8689 case "\$ac_option" in
8690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8691 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8692 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8693 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8694 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8696 -help | --help | --hel | --he | --h)
8697 echo "\$ac_cs_usage"; exit 0 ;;
8698 *) echo "\$ac_cs_usage"; exit 1 ;;
8702 ac_given_srcdir=$srcdir
8703 ac_given_INSTALL="$INSTALL"
8705 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8707 cat >> $CONFIG_STATUS <<EOF
8709 # Protect against being on the right side of a sed subst in config.status.
8710 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8711 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8715 s%@CFLAGS@%$CFLAGS%g
8716 s%@CPPFLAGS@%$CPPFLAGS%g
8717 s%@CXXFLAGS@%$CXXFLAGS%g
8718 s%@FFLAGS@%$FFLAGS%g
8720 s%@LDFLAGS@%$LDFLAGS%g
8722 s%@exec_prefix@%$exec_prefix%g
8723 s%@prefix@%$prefix%g
8724 s%@program_transform_name@%$program_transform_name%g
8725 s%@bindir@%$bindir%g
8726 s%@sbindir@%$sbindir%g
8727 s%@libexecdir@%$libexecdir%g
8728 s%@datadir@%$datadir%g
8729 s%@sysconfdir@%$sysconfdir%g
8730 s%@sharedstatedir@%$sharedstatedir%g
8731 s%@localstatedir@%$localstatedir%g
8732 s%@libdir@%$libdir%g
8733 s%@includedir@%$includedir%g
8734 s%@oldincludedir@%$oldincludedir%g
8735 s%@infodir@%$infodir%g
8736 s%@mandir@%$mandir%g
8738 s%@host_alias@%$host_alias%g
8739 s%@host_cpu@%$host_cpu%g
8740 s%@host_vendor@%$host_vendor%g
8741 s%@host_os@%$host_os%g
8742 s%@target@%$target%g
8743 s%@target_alias@%$target_alias%g
8744 s%@target_cpu@%$target_cpu%g
8745 s%@target_vendor@%$target_vendor%g
8746 s%@target_os@%$target_os%g
8748 s%@build_alias@%$build_alias%g
8749 s%@build_cpu@%$build_cpu%g
8750 s%@build_vendor@%$build_vendor%g
8751 s%@build_os@%$build_os%g
8752 s%@SET_MAKE@%$SET_MAKE%g
8755 s%@RANLIB@%$RANLIB%g
8758 s%@ALLOCA@%$ALLOCA%g
8759 s%@GLIBC21@%$GLIBC21%g
8760 s%@LIBICONV@%$LIBICONV%g
8761 s%@USE_NLS@%$USE_NLS%g
8762 s%@MSGFMT@%$MSGFMT%g
8763 s%@GMSGFMT@%$GMSGFMT%g
8764 s%@XGETTEXT@%$XGETTEXT%g
8765 s%@INTLBISON@%$INTLBISON%g
8766 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8767 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8768 s%@CATALOGS@%$CATALOGS%g
8769 s%@CATOBJEXT@%$CATOBJEXT%g
8770 s%@GMOFILES@%$GMOFILES%g
8771 s%@INTLLIBS@%$INTLLIBS%g
8772 s%@INTLOBJS@%$INTLOBJS%g
8773 s%@POFILES@%$POFILES%g
8775 s%@DATADIRNAME@%$DATADIRNAME%g
8776 s%@INSTOBJEXT@%$INSTOBJEXT%g
8777 s%@GENCAT@%$GENCAT%g
8778 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8779 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8780 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8781 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8782 s%@INSTALL_DATA@%$INSTALL_DATA%g
8783 s%@WINDRES@%$WINDRES%g
8784 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8785 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8786 s%@SDL_CONFIG@%$SDL_CONFIG%g
8787 s%@ESD_CONFIG@%$ESD_CONFIG%g
8788 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8789 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8790 s%@GTK_CONFIG@%$GTK_CONFIG%g
8791 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8792 s%@DATA_PATH@%$DATA_PATH%g
8793 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8796 s%@PLUGINS@%$PLUGINS%g
8797 s%@BUILTINS@%$BUILTINS%g
8798 s%@ALIASES@%$ALIASES%g
8803 s%@OPTIMS@%$OPTIMS%g
8804 s%@TUNING@%$TUNING%g
8805 s%@RELEASE@%$RELEASE%g
8807 s%@BCBUILDER@%$BCBUILDER%g
8808 s%@PACKAGE@%$PACKAGE%g
8809 s%@VERSION@%$VERSION%g
8810 s%@NEED_GETOPT@%$NEED_GETOPT%g
8811 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8812 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8813 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8814 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8815 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8816 s%@a52_CFLAGS@%$a52_CFLAGS%g
8817 s%@arts_CFLAGS@%$arts_CFLAGS%g
8818 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8819 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8820 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8821 s%@directx_CFLAGS@%$directx_CFLAGS%g
8822 s%@esd_CFLAGS@%$esd_CFLAGS%g
8823 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8824 s%@glide_CFLAGS@%$glide_CFLAGS%g
8825 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8826 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8827 s%@kde_CFLAGS@%$kde_CFLAGS%g
8828 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8829 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8830 s%@mad_CFLAGS@%$mad_CFLAGS%g
8831 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8832 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8833 s%@qt_CFLAGS@%$qt_CFLAGS%g
8834 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8835 s%@x11_CFLAGS@%$x11_CFLAGS%g
8836 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8837 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8838 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8839 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8840 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8841 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8842 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8843 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8844 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8845 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8846 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8847 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8848 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8849 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8850 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8851 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8852 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8853 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8854 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8855 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8856 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8857 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8858 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8859 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8860 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8861 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8862 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8863 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8864 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8865 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8866 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8867 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8868 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8869 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8870 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8871 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8872 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8873 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8874 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8875 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8876 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8877 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8878 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8883 cat >> $CONFIG_STATUS <<\EOF
8885 # Split the substitutions into bite-sized pieces for seds with
8886 # small command number limits, like on Digital OSF/1 and HP-UX.
8887 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8888 ac_file
=1 # Number of current file.
8889 ac_beg
=1 # First line for current file.
8890 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8893 while $ac_more_lines; do
8894 if test $ac_beg -gt 1; then
8895 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8897 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8899 if test ! -s conftest.s
$ac_file; then
8901 rm -f conftest.s
$ac_file
8903 if test -z "$ac_sed_cmds"; then
8904 ac_sed_cmds
="sed -f conftest.s$ac_file"
8906 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8908 ac_file
=`expr $ac_file + 1`
8910 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8913 if test -z "$ac_sed_cmds"; then
8918 cat >> $CONFIG_STATUS <<EOF
8920 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
8922 cat >> $CONFIG_STATUS <<\EOF
8923 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8924 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8926 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8927 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8928 *) ac_file_in
="${ac_file}.in" ;;
8931 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8933 # Remove last slash and all that follows it. Not all systems have dirname.
8934 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8935 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8936 # The file is in a subdirectory.
8937 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8938 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8939 # A "../" for each directory in $ac_dir_suffix.
8940 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8942 ac_dir_suffix
= ac_dots
=
8945 case "$ac_given_srcdir" in
8947 if test -z "$ac_dots"; then top_srcdir
=.
8948 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8949 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8951 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8952 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8955 case "$ac_given_INSTALL" in
8956 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8957 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8960 echo creating
"$ac_file"
8962 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8964 *Makefile
*) ac_comsub
="1i\\
8965 # $configure_input" ;;
8969 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8971 s%@configure_input@%$configure_input%g
8972 s%@srcdir@%$srcdir%g
8973 s%@top_srcdir@%$top_srcdir%g
8974 s%@INSTALL@%$INSTALL%g
8975 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8979 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8980 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8982 # ac_d sets the value in "#define NAME VALUE" lines.
8983 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8984 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8987 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8988 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8989 ac_uB
='\([ ]\)%\1#\2define\3'
8992 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8993 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8994 ac_eB
='$%\1#\2define\3'
8998 if test "${CONFIG_HEADERS+set}" != set; then
9000 cat >> $CONFIG_STATUS <<EOF
9001 CONFIG_HEADERS="include/defs.h"
9003 cat >> $CONFIG_STATUS <<\EOF
9005 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9008 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9009 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9010 *) ac_file_in
="${ac_file}.in" ;;
9013 echo creating
$ac_file
9015 rm -f conftest.frag conftest.
in conftest.out
9016 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9017 cat $ac_file_inputs > conftest.
in
9021 # Transform confdefs.h into a sed script conftest.vals that substitutes
9022 # the proper values into config.h.in to produce config.h. And first:
9023 # Protect against being on the right side of a sed subst in config.status.
9024 # Protect against being in an unquoted here document in config.status.
9026 cat > conftest.hdr
<<\EOF
9029 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9033 sed -n -f conftest.hdr confdefs.h > conftest.vals
9036 # This sed command replaces #undef with comments. This is necessary, for
9037 # example, in the case of _POSIX_SOURCE, which is predefined and required
9038 # on some systems where configure will not decide to define it.
9039 cat >> conftest.vals <<\EOF
9040 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9043 # Break up conftest.vals because some shells have a limit on
9044 # the size of here documents, and old seds have small limits too.
9049 ac_lines=`grep -c . conftest.vals
`
9050 # grep -c gives empty output for an empty file on some AIX systems.
9051 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9052 # Write a limited-size here document to conftest.frag.
9053 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9054 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9056 sed -f conftest.frag conftest.in > conftest.out
9058 mv conftest.out conftest.in
9060 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9062 mv conftest.tail conftest.vals
9066 cat >> $CONFIG_STATUS <<\EOF
9067 rm -f conftest.frag conftest.h
9068 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9069 cat conftest.in >> conftest.h
9071 if cmp -s $ac_file conftest.h 2>/dev/null; then
9072 echo "$ac_file is unchanged"
9075 # Remove last slash and all that follows it. Not all systems have dirname.
9076 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9077 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9078 # The file is in a subdirectory.
9079 test ! -d "$ac_dir" && mkdir "$ac_dir"
9082 mv conftest.h $ac_file
9087 cat >> $CONFIG_STATUS <<EOF
9091 cat >> $CONFIG_STATUS <<\EOF
9092 for ac_file in $CONFIG_FILES; do
9093 # Support "outfile[:infile[:infile...]]"
9095 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
9097 # PO directories have a Makefile.in generated from Makefile.in.in.
9098 case "$ac_file" in */Makefile.in)
9099 # Adjust a relative srcdir.
9100 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
9101 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
9102 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
9103 # In autoconf-2.13 it is called $ac_given_srcdir.
9104 # In autoconf-2.50 it is called $srcdir.
9105 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9106 case "$ac_given_srcdir" in
9107 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
9108 /*) top_srcdir="$ac_given_srcdir" ;;
9109 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9111 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9112 rm -f "$ac_dir/POTFILES"
9113 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9114 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9115 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9116 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9124 chmod +x $CONFIG_STATUS
9125 rm -fr confdefs* $ac_clean_files
9126 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9131 --------------------
9132 vlc version : ${VERSION}
9134 architecture : ${ARCH}
9135 optimizations : ${OPTIMS}
9137 debug mode : ${DEBUG}
9138 release : ${RELEASE}
9139 cprof/gprof support : ${CPROF}/${GPROF}
9140 need builtin getopt : ${NEED_GETOPT}
9141 built-in modules :${BUILTINS}
9142 plug-in modules :${PLUGINS}
9143 vlc aliases :${ALIASES}
9145 You may now tune Makefile.opts at your convenience, for instance to choose
9146 which modules get compiled as plugins.
9148 To build vlc and its plugins, type \`$VLC_MAKE'.