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 ipv6_LDFLAGS
="${ipv6_LDFLAGS} -lws2_32"
3261 rc_LDFLAGS
="${rc_LDFLAGS} -lws2_32"
3265 x11_LDFLAGS
="${x11_LDFLAGS} -lsocket"
3266 xvideo_LDFLAGS
="${xvideo_LDFLAGS} -lsocket"
3270 save_CFLAGS
="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3271 vlc_LDFLAGS
="${vlc_LDFLAGS} -lbe"
3272 plugins_LDFLAGS
="${plugins_LDFLAGS} -nostart"
3273 beos_LDFLAGS
="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3274 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lbind"
3281 if test x
"${SYS}" = xmingw32
3283 plugins_CFLAGS
="${plugins_CFLAGS} -fnative-struct"
3285 plugins_CFLAGS
="${plugins_CFLAGS} -fPIC"
3288 save_CFLAGS
="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3290 for ac_func
in gettimeofday
select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3293 echo "configure:3294: checking for $ac_func" >&5
3294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 cat > conftest.
$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 /* System header to define __stub macros and hopefully few prototypes,
3301 which can conflict with char $ac_func(); below. */
3303 /* Override any gcc2 internal prototype to avoid an error. */
3304 /* We use char because int might match the return type of a gcc2
3305 builtin and then its argument prototype would still apply. */
3310 /* The GNU C library defines this for functions which it implements
3311 to always fail with ENOSYS. Some functions are actually named
3312 something starting with __ and the normal name is an alias. */
3313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3321 if { (eval echo configure
:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3323 eval "ac_cv_func_$ac_func=yes"
3325 echo "configure: failed program was:" >&5
3326 cat conftest.
$ac_ext >&5
3328 eval "ac_cv_func_$ac_func=no"
3333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3334 echo "$ac_t""yes" 1>&6
3335 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3336 cat >> confdefs.h
<<EOF
3337 #define $ac_tr_func 1
3341 echo "$ac_t""no" 1>&6
3346 echo $ac_n "checking for connect""... $ac_c" 1>&6
3347 echo "configure:3348: checking for connect" >&5
3348 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 cat > conftest.
$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3354 /* System header to define __stub macros and hopefully few prototypes,
3355 which can conflict with char connect(); below. */
3357 /* Override any gcc2 internal prototype to avoid an error. */
3358 /* We use char because int might match the return type of a gcc2
3359 builtin and then its argument prototype would still apply. */
3364 /* The GNU C library defines this for functions which it implements
3365 to always fail with ENOSYS. Some functions are actually named
3366 something starting with __ and the normal name is an alias. */
3367 #if defined (__stub_connect) || defined (__stub___connect)
3375 if { (eval echo configure
:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3377 eval "ac_cv_func_connect=yes"
3379 echo "configure: failed program was:" >&5
3380 cat conftest.
$ac_ext >&5
3382 eval "ac_cv_func_connect=no"
3387 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3388 echo "$ac_t""yes" 1>&6
3391 echo "$ac_t""no" 1>&6
3393 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3394 echo "configure:3395: checking for connect in -lsocket" >&5
3395 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 ac_save_LIBS
="$LIBS"
3400 LIBS
="-lsocket $LIBS"
3401 cat > conftest.
$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 /* Override any gcc2 internal prototype to avoid an error. */
3405 /* We use char because int might match the return type of a gcc2
3406 builtin and then its argument prototype would still apply. */
3413 if { (eval echo configure
:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3415 eval "ac_cv_lib_$ac_lib_var=yes"
3417 echo "configure: failed program was:" >&5
3418 cat conftest.
$ac_ext >&5
3420 eval "ac_cv_lib_$ac_lib_var=no"
3423 LIBS
="$ac_save_LIBS"
3426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3427 echo "$ac_t""yes" 1>&6
3428 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lsocket"
3429 vlc_LDFLAGS
="${vlc_LDFLAGS} -lsocket"
3432 echo "$ac_t""no" 1>&6
3437 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3438 echo "configure:3439: checking for gethostbyname" >&5
3439 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 cat > conftest.
$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* System header to define __stub macros and hopefully few prototypes,
3446 which can conflict with char gethostbyname(); below. */
3448 /* Override any gcc2 internal prototype to avoid an error. */
3449 /* We use char because int might match the return type of a gcc2
3450 builtin and then its argument prototype would still apply. */
3451 char gethostbyname();
3455 /* The GNU C library defines this for functions which it implements
3456 to always fail with ENOSYS. Some functions are actually named
3457 something starting with __ and the normal name is an alias. */
3458 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3466 if { (eval echo configure
:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3468 eval "ac_cv_func_gethostbyname=yes"
3470 echo "configure: failed program was:" >&5
3471 cat conftest.
$ac_ext >&5
3473 eval "ac_cv_func_gethostbyname=no"
3478 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3479 echo "$ac_t""yes" 1>&6
3482 echo "$ac_t""no" 1>&6
3484 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3485 echo "configure:3486: checking for gethostbyname in -lnsl" >&5
3486 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 ac_save_LIBS
="$LIBS"
3492 cat > conftest.
$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 /* Override any gcc2 internal prototype to avoid an error. */
3496 /* We use char because int might match the return type of a gcc2
3497 builtin and then its argument prototype would still apply. */
3498 char gethostbyname();
3504 if { (eval echo configure
:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3506 eval "ac_cv_lib_$ac_lib_var=yes"
3508 echo "configure: failed program was:" >&5
3509 cat conftest.
$ac_ext >&5
3511 eval "ac_cv_lib_$ac_lib_var=no"
3514 LIBS
="$ac_save_LIBS"
3517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3518 echo "$ac_t""yes" 1>&6
3519 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lnsl"
3521 echo "$ac_t""no" 1>&6
3527 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3528 echo "configure:3529: checking for gethostbyname" >&5
3529 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.
$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3535 /* System header to define __stub macros and hopefully few prototypes,
3536 which can conflict with char gethostbyname(); below. */
3538 /* Override any gcc2 internal prototype to avoid an error. */
3539 /* We use char because int might match the return type of a gcc2
3540 builtin and then its argument prototype would still apply. */
3541 char gethostbyname();
3545 /* The GNU C library defines this for functions which it implements
3546 to always fail with ENOSYS. Some functions are actually named
3547 something starting with __ and the normal name is an alias. */
3548 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3556 if { (eval echo configure
:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3558 eval "ac_cv_func_gethostbyname=yes"
3560 echo "configure: failed program was:" >&5
3561 cat conftest.
$ac_ext >&5
3563 eval "ac_cv_func_gethostbyname=no"
3568 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3569 echo "$ac_t""yes" 1>&6
3572 echo "$ac_t""no" 1>&6
3574 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3575 echo "configure:3576: checking for gethostbyname in -lbind" >&5
3576 ac_lib_var
=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 ac_save_LIBS
="$LIBS"
3582 cat > conftest.
$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 /* Override any gcc2 internal prototype to avoid an error. */
3586 /* We use char because int might match the return type of a gcc2
3587 builtin and then its argument prototype would still apply. */
3588 char gethostbyname();
3594 if { (eval echo configure
:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3596 eval "ac_cv_lib_$ac_lib_var=yes"
3598 echo "configure: failed program was:" >&5
3599 cat conftest.
$ac_ext >&5
3601 eval "ac_cv_lib_$ac_lib_var=no"
3604 LIBS
="$ac_save_LIBS"
3607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3608 echo "$ac_t""yes" 1>&6
3609 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lbind"
3611 echo "$ac_t""no" 1>&6
3617 for ac_func
in nanosleep
3619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3620 echo "configure:3621: checking for $ac_func" >&5
3621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3624 cat > conftest.
$ac_ext <<EOF
3625 #line 3626 "configure"
3626 #include "confdefs.h"
3627 /* System header to define __stub macros and hopefully few prototypes,
3628 which can conflict with char $ac_func(); below. */
3630 /* Override any gcc2 internal prototype to avoid an error. */
3631 /* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3637 /* The GNU C library defines this for functions which it implements
3638 to always fail with ENOSYS. Some functions are actually named
3639 something starting with __ and the normal name is an alias. */
3640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3648 if { (eval echo configure
:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3650 eval "ac_cv_func_$ac_func=yes"
3652 echo "configure: failed program was:" >&5
3653 cat conftest.
$ac_ext >&5
3655 eval "ac_cv_func_$ac_func=no"
3660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3661 echo "$ac_t""yes" 1>&6
3662 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3663 cat >> confdefs.h
<<EOF
3664 #define $ac_tr_func 1
3668 echo "$ac_t""no" 1>&6
3669 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3670 echo "configure:3671: checking for nanosleep in -lrt" >&5
3671 ac_lib_var
=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 ac_save_LIBS
="$LIBS"
3677 cat > conftest.
$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 /* Override any gcc2 internal prototype to avoid an error. */
3681 /* We use char because int might match the return type of a gcc2
3682 builtin and then its argument prototype would still apply. */
3689 if { (eval echo configure
:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3691 eval "ac_cv_lib_$ac_lib_var=yes"
3693 echo "configure: failed program was:" >&5
3694 cat conftest.
$ac_ext >&5
3696 eval "ac_cv_lib_$ac_lib_var=no"
3699 LIBS
="$ac_save_LIBS"
3702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3703 echo "$ac_t""yes" 1>&6
3704 vlc_LDFLAGS
="${vlc_LDFLAGS} -lrt"
3706 echo "$ac_t""no" 1>&6
3707 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3708 echo "configure:3709: checking for nanosleep in -lposix4" >&5
3709 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3713 ac_save_LIBS
="$LIBS"
3714 LIBS
="-lposix4 $LIBS"
3715 cat > conftest.
$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 /* Override any gcc2 internal prototype to avoid an error. */
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3727 if { (eval echo configure
:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3729 eval "ac_cv_lib_$ac_lib_var=yes"
3731 echo "configure: failed program was:" >&5
3732 cat conftest.
$ac_ext >&5
3734 eval "ac_cv_lib_$ac_lib_var=no"
3737 LIBS
="$ac_save_LIBS"
3740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3741 echo "$ac_t""yes" 1>&6
3742 vlc_LDFLAGS
="${vlc_LDFLAGS} -lposix4"
3744 echo "$ac_t""no" 1>&6
3754 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3755 echo "configure:3756: checking for inet_aton" >&5
3756 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.
$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3762 /* System header to define __stub macros and hopefully few prototypes,
3763 which can conflict with char inet_aton(); below. */
3765 /* Override any gcc2 internal prototype to avoid an error. */
3766 /* We use char because int might match the return type of a gcc2
3767 builtin and then its argument prototype would still apply. */
3772 /* The GNU C library defines this for functions which it implements
3773 to always fail with ENOSYS. Some functions are actually named
3774 something starting with __ and the normal name is an alias. */
3775 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3783 if { (eval echo configure
:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3785 eval "ac_cv_func_inet_aton=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.
$ac_ext >&5
3790 eval "ac_cv_func_inet_aton=no"
3795 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3796 echo "$ac_t""yes" 1>&6
3799 echo "$ac_t""no" 1>&6
3801 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3802 echo "configure:3803: checking for inet_aton in -lresolv" >&5
3803 ac_lib_var
=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3807 ac_save_LIBS
="$LIBS"
3808 LIBS
="-lresolv $LIBS"
3809 cat > conftest.
$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 /* Override any gcc2 internal prototype to avoid an error. */
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3821 if { (eval echo configure
:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3823 eval "ac_cv_lib_$ac_lib_var=yes"
3825 echo "configure: failed program was:" >&5
3826 cat conftest.
$ac_ext >&5
3828 eval "ac_cv_lib_$ac_lib_var=no"
3831 LIBS
="$ac_save_LIBS"
3834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3836 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lresolv"
3838 echo "$ac_t""no" 1>&6
3844 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3845 echo "configure:3846: checking for textdomain" >&5
3846 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 cat > conftest.
$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 /* System header to define __stub macros and hopefully few prototypes,
3853 which can conflict with char textdomain(); below. */
3855 /* Override any gcc2 internal prototype to avoid an error. */
3856 /* We use char because int might match the return type of a gcc2
3857 builtin and then its argument prototype would still apply. */
3862 /* The GNU C library defines this for functions which it implements
3863 to always fail with ENOSYS. Some functions are actually named
3864 something starting with __ and the normal name is an alias. */
3865 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3873 if { (eval echo configure
:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3875 eval "ac_cv_func_textdomain=yes"
3877 echo "configure: failed program was:" >&5
3878 cat conftest.
$ac_ext >&5
3880 eval "ac_cv_func_textdomain=no"
3885 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3886 echo "$ac_t""yes" 1>&6
3889 echo "$ac_t""no" 1>&6
3891 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3892 echo "configure:3893: checking for textdomain in -lintl" >&5
3893 ac_lib_var
=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 ac_save_LIBS
="$LIBS"
3899 cat > conftest.
$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 /* Override any gcc2 internal prototype to avoid an error. */
3903 /* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3911 if { (eval echo configure
:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3913 eval "ac_cv_lib_$ac_lib_var=yes"
3915 echo "configure: failed program was:" >&5
3916 cat conftest.
$ac_ext >&5
3918 eval "ac_cv_lib_$ac_lib_var=no"
3921 LIBS
="$ac_save_LIBS"
3924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3925 echo "$ac_t""yes" 1>&6
3926 save_LDFLAGS
="${save_LDFLAGS} -lintl"
3928 echo "$ac_t""no" 1>&6
3936 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3937 echo "configure:3938: checking for getopt_long" >&5
3938 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 cat > conftest.
$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3944 /* System header to define __stub macros and hopefully few prototypes,
3945 which can conflict with char getopt_long(); below. */
3947 /* Override any gcc2 internal prototype to avoid an error. */
3948 /* We use char because int might match the return type of a gcc2
3949 builtin and then its argument prototype would still apply. */
3954 /* The GNU C library defines this for functions which it implements
3955 to always fail with ENOSYS. Some functions are actually named
3956 something starting with __ and the normal name is an alias. */
3957 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3965 if { (eval echo configure
:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3967 eval "ac_cv_func_getopt_long=yes"
3969 echo "configure: failed program was:" >&5
3970 cat conftest.
$ac_ext >&5
3972 eval "ac_cv_func_getopt_long=no"
3977 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3979 cat >> confdefs.h
<<\EOF
3980 #define HAVE_GETOPT_LONG 1
3984 echo "$ac_t""no" 1>&6
3985 # FreeBSD has a gnugetopt library for this:
3986 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3987 echo "configure:3988: checking for getopt_long in -lgnugetopt" >&5
3988 ac_lib_var
=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 ac_save_LIBS
="$LIBS"
3993 LIBS
="-lgnugetopt $LIBS"
3994 cat > conftest.
$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 /* Override any gcc2 internal prototype to avoid an error. */
3998 /* We use char because int might match the return type of a gcc2
3999 builtin and then its argument prototype would still apply. */
4006 if { (eval echo configure
:4007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4008 eval "ac_cv_lib_$ac_lib_var=yes"
4010 echo "configure: failed program was:" >&5
4011 cat conftest.
$ac_ext >&5
4013 eval "ac_cv_lib_$ac_lib_var=no"
4016 LIBS
="$ac_save_LIBS"
4019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4020 echo "$ac_t""yes" 1>&6
4021 cat >> confdefs.h
<<\EOF
4022 #define HAVE_GETOPT_LONG 1
4024 vlc_LDFLAGS
="${vlc_LDFLAGS} -lgnugetopt"
4026 echo "$ac_t""no" 1>&6
4033 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4034 echo "configure:4035: checking return type of signal handlers" >&5
4035 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4038 cat > conftest.
$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4041 #include <sys/types.h>
4047 extern "C" void (*signal (int, void (*)(int)))(int);
4049 void (*signal ()) ();
4056 if { (eval echo configure
:4057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4058 ac_cv_type_signal
=void
4060 echo "configure: failed program was:" >&5
4061 cat conftest.
$ac_ext >&5
4063 ac_cv_type_signal
=int
4068 echo "$ac_t""$ac_cv_type_signal" 1>&6
4069 cat >> confdefs.h
<<EOF
4070 #define RETSIGTYPE $ac_cv_type_signal
4074 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4075 echo "configure:4076: checking for dlopen in -ldl" >&5
4076 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4080 ac_save_LIBS
="$LIBS"
4082 cat > conftest.
$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4085 /* Override any gcc2 internal prototype to avoid an error. */
4086 /* We use char because int might match the return type of a gcc2
4087 builtin and then its argument prototype would still apply. */
4094 if { (eval echo configure
:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4096 eval "ac_cv_lib_$ac_lib_var=yes"
4098 echo "configure: failed program was:" >&5
4099 cat conftest.
$ac_ext >&5
4101 eval "ac_cv_lib_$ac_lib_var=no"
4104 LIBS
="$ac_save_LIBS"
4107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4108 echo "$ac_t""yes" 1>&6
4109 vlc_LDFLAGS
="${vlc_LDFLAGS} -ldl"
4111 echo "$ac_t""no" 1>&6
4114 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4115 echo "configure:4116: checking for cos in -lm" >&5
4116 ac_lib_var
=`echo m'_'cos | sed 'y%./+-%__p_%'`
4117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4120 ac_save_LIBS
="$LIBS"
4122 cat > conftest.
$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 /* Override any gcc2 internal prototype to avoid an error. */
4126 /* We use char because int might match the return type of a gcc2
4127 builtin and then its argument prototype would still apply. */
4134 if { (eval echo configure
:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4136 eval "ac_cv_lib_$ac_lib_var=yes"
4138 echo "configure: failed program was:" >&5
4139 cat conftest.
$ac_ext >&5
4141 eval "ac_cv_lib_$ac_lib_var=no"
4144 LIBS
="$ac_save_LIBS"
4147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4148 echo "$ac_t""yes" 1>&6
4149 imdct_LDFLAGS
="${imdct_LDFLAGS} -lm"
4150 filter_distort_LDFLAGS
="${filter_distort_LDFLAGS} -lm"
4152 echo "$ac_t""no" 1>&6
4155 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4156 echo "configure:4157: checking for pow in -lm" >&5
4157 ac_lib_var
=`echo m'_'pow | sed 'y%./+-%__p_%'`
4158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4161 ac_save_LIBS
="$LIBS"
4163 cat > conftest.
$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4175 if { (eval echo configure
:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4177 eval "ac_cv_lib_$ac_lib_var=yes"
4179 echo "configure: failed program was:" >&5
4180 cat conftest.
$ac_ext >&5
4182 eval "ac_cv_lib_$ac_lib_var=no"
4185 LIBS
="$ac_save_LIBS"
4188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 imdct_LDFLAGS
="${imdct_LDFLAGS} -lm"
4191 imdct3dn_LDFLAGS
="${imdct3dn_LDFLAGS} -lm"
4192 imdctsse_LDFLAGS
="${imdctsse_LDFLAGS} -lm"
4193 chroma_i420_rgb_LDFLAGS
="${chroma_i420_rgb_LDFLAGS} -lm"
4196 echo "$ac_t""no" 1>&6
4201 if test "x${THREAD_LIB}" = xerror
; then
4202 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4203 echo "configure:4204: checking for pthread_attr_init in -lpthread" >&5
4204 ac_lib_var
=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4208 ac_save_LIBS
="$LIBS"
4209 LIBS
="-lpthread $LIBS"
4210 cat > conftest.
$ac_ext <<EOF
4211 #line 4212 "configure"
4212 #include "confdefs.h"
4213 /* Override any gcc2 internal prototype to avoid an error. */
4214 /* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4216 char pthread_attr_init();
4222 if { (eval echo configure
:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4224 eval "ac_cv_lib_$ac_lib_var=yes"
4226 echo "configure: failed program was:" >&5
4227 cat conftest.
$ac_ext >&5
4229 eval "ac_cv_lib_$ac_lib_var=no"
4232 LIBS
="$ac_save_LIBS"
4235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4236 echo "$ac_t""yes" 1>&6
4237 THREAD_LIB
="-lpthread"
4239 echo "$ac_t""no" 1>&6
4243 if test "x${THREAD_LIB}" = xerror
; then
4244 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4245 echo "configure:4246: checking for pthread_attr_init in -lpthreads" >&5
4246 ac_lib_var
=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4250 ac_save_LIBS
="$LIBS"
4251 LIBS
="-lpthreads $LIBS"
4252 cat > conftest.
$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4255 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4258 char pthread_attr_init();
4264 if { (eval echo configure
:4265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4266 eval "ac_cv_lib_$ac_lib_var=yes"
4268 echo "configure: failed program was:" >&5
4269 cat conftest.
$ac_ext >&5
4271 eval "ac_cv_lib_$ac_lib_var=no"
4274 LIBS
="$ac_save_LIBS"
4277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4278 echo "$ac_t""yes" 1>&6
4279 THREAD_LIB
="-lpthreads"
4281 echo "$ac_t""no" 1>&6
4285 if test "x${THREAD_LIB}" = xerror
; then
4286 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4287 echo "configure:4288: checking for pthread_attr_init in -lc_r" >&5
4288 ac_lib_var
=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 ac_save_LIBS
="$LIBS"
4294 cat > conftest.
$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4297 /* Override any gcc2 internal prototype to avoid an error. */
4298 /* We use char because int might match the return type of a gcc2
4299 builtin and then its argument prototype would still apply. */
4300 char pthread_attr_init();
4306 if { (eval echo configure
:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4308 eval "ac_cv_lib_$ac_lib_var=yes"
4310 echo "configure: failed program was:" >&5
4311 cat conftest.
$ac_ext >&5
4313 eval "ac_cv_lib_$ac_lib_var=no"
4316 LIBS
="$ac_save_LIBS"
4319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4320 echo "$ac_t""yes" 1>&6
4323 echo "$ac_t""no" 1>&6
4327 if test "x${THREAD_LIB}" = xerror
; then
4328 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4329 echo "configure:4330: checking for pthread_attr_init" >&5
4330 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4333 cat > conftest.
$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 /* System header to define __stub macros and hopefully few prototypes,
4337 which can conflict with char pthread_attr_init(); below. */
4339 /* Override any gcc2 internal prototype to avoid an error. */
4340 /* We use char because int might match the return type of a gcc2
4341 builtin and then its argument prototype would still apply. */
4342 char pthread_attr_init();
4346 /* The GNU C library defines this for functions which it implements
4347 to always fail with ENOSYS. Some functions are actually named
4348 something starting with __ and the normal name is an alias. */
4349 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4352 pthread_attr_init();
4357 if { (eval echo configure
:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4359 eval "ac_cv_func_pthread_attr_init=yes"
4361 echo "configure: failed program was:" >&5
4362 cat conftest.
$ac_ext >&5
4364 eval "ac_cv_func_pthread_attr_init=no"
4369 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4370 echo "$ac_t""yes" 1>&6
4373 echo "$ac_t""no" 1>&6
4379 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4380 echo "configure:4381: checking for cthread_fork in -lthreads" >&5
4381 ac_lib_var
=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4383 echo $ac_n "(cached) $ac_c" 1>&6
4385 ac_save_LIBS
="$LIBS"
4386 LIBS
="-lthreads $LIBS"
4387 cat > conftest.
$ac_ext <<EOF
4388 #line 4389 "configure"
4389 #include "confdefs.h"
4390 /* Override any gcc2 internal prototype to avoid an error. */
4391 /* We use char because int might match the return type of a gcc2
4392 builtin and then its argument prototype would still apply. */
4393 char cthread_fork();
4399 if { (eval echo configure
:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4401 eval "ac_cv_lib_$ac_lib_var=yes"
4403 echo "configure: failed program was:" >&5
4404 cat conftest.
$ac_ext >&5
4406 eval "ac_cv_lib_$ac_lib_var=no"
4409 LIBS
="$ac_save_LIBS"
4412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4413 echo "$ac_t""yes" 1>&6
4414 THREAD_LIB
="-lthreads"
4416 echo "$ac_t""no" 1>&6
4420 cat > conftest.
$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 #include <pthread.h>
4425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4426 egrep "pthread_cond_t" >/dev
/null
2>&1; then
4429 cat >> confdefs.h
<<\EOF
4430 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4436 cat > conftest.
$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4439 #include <strings.h>
4441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442 egrep "strncasecmp" >/dev
/null
2>&1; then
4445 cat >> confdefs.h
<<\EOF
4446 #define STRNCASECMP_IN_STRINGS_H 1
4453 for ac_hdr
in getopt.h
strings.h
4455 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4457 echo "configure:4458: checking for $ac_hdr" >&5
4458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4461 cat > conftest.
$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4466 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4467 { (eval echo configure
:4468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4468 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4469 if test -z "$ac_err"; then
4471 eval "ac_cv_header_$ac_safe=yes"
4474 echo "configure: failed program was:" >&5
4475 cat conftest.
$ac_ext >&5
4477 eval "ac_cv_header_$ac_safe=no"
4481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4484 cat >> confdefs.h
<<EOF
4485 #define $ac_tr_hdr 1
4489 echo "$ac_t""no" 1>&6
4493 for ac_hdr
in sys
/sockio.h fcntl.h sys
/types.h sys
/time.h sys
/times.h
4495 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4497 echo "configure:4498: checking for $ac_hdr" >&5
4498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4501 cat > conftest.
$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4506 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4507 { (eval echo configure
:4508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4508 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4509 if test -z "$ac_err"; then
4511 eval "ac_cv_header_$ac_safe=yes"
4514 echo "configure: failed program was:" >&5
4515 cat conftest.
$ac_ext >&5
4517 eval "ac_cv_header_$ac_safe=no"
4521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4523 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4524 cat >> confdefs.h
<<EOF
4525 #define $ac_tr_hdr 1
4529 echo "$ac_t""no" 1>&6
4533 for ac_hdr
in dlfcn.h image.h
4535 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4537 echo "configure:4538: checking for $ac_hdr" >&5
4538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4539 echo $ac_n "(cached) $ac_c" 1>&6
4541 cat > conftest.
$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4546 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4547 { (eval echo configure
:4548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4548 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4549 if test -z "$ac_err"; then
4551 eval "ac_cv_header_$ac_safe=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.
$ac_ext >&5
4557 eval "ac_cv_header_$ac_safe=no"
4561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4564 cat >> confdefs.h
<<EOF
4565 #define $ac_tr_hdr 1
4569 echo "$ac_t""no" 1>&6
4573 for ac_hdr
in arpa
/inet.h net
/if.h netinet
/in.h sys
/socket.h
4575 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_hdr" >&5
4578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.
$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4587 { (eval echo configure
:4588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4588 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4589 if test -z "$ac_err"; then
4591 eval "ac_cv_header_$ac_safe=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.
$ac_ext >&5
4597 eval "ac_cv_header_$ac_safe=no"
4601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4602 echo "$ac_t""yes" 1>&6
4603 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4604 cat >> confdefs.h
<<EOF
4605 #define $ac_tr_hdr 1
4609 echo "$ac_t""no" 1>&6
4613 for ac_hdr
in machine
/param.h sys
/shm.h
4615 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_hdr" >&5
4618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 cat > conftest.
$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4626 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4627 { (eval echo configure
:4628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4628 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4629 if test -z "$ac_err"; then
4631 eval "ac_cv_header_$ac_safe=yes"
4634 echo "configure: failed program was:" >&5
4635 cat conftest.
$ac_ext >&5
4637 eval "ac_cv_header_$ac_safe=no"
4641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4642 echo "$ac_t""yes" 1>&6
4643 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4644 cat >> confdefs.h
<<EOF
4645 #define $ac_tr_hdr 1
4649 echo "$ac_t""no" 1>&6
4653 for ac_hdr
in linux
/version.h
4655 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4657 echo "configure:4658: checking for $ac_hdr" >&5
4658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4661 cat > conftest.
$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4666 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4667 { (eval echo configure
:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4668 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4669 if test -z "$ac_err"; then
4671 eval "ac_cv_header_$ac_safe=yes"
4674 echo "configure: failed program was:" >&5
4675 cat conftest.
$ac_ext >&5
4677 eval "ac_cv_header_$ac_safe=no"
4681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4684 cat >> confdefs.h
<<EOF
4685 #define $ac_tr_hdr 1
4689 echo "$ac_t""no" 1>&6
4694 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4695 echo "configure:4696: checking whether time.h and sys/time.h may both be included" >&5
4696 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 cat > conftest.
$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 #include <sys/types.h>
4703 #include <sys/time.h>
4709 if { (eval echo configure
:4710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4711 ac_cv_header_time
=yes
4713 echo "configure: failed program was:" >&5
4714 cat conftest.
$ac_ext >&5
4716 ac_cv_header_time
=no
4721 echo "$ac_t""$ac_cv_header_time" 1>&6
4722 if test $ac_cv_header_time = yes; then
4723 cat >> confdefs.h
<<\EOF
4724 #define TIME_WITH_SYS_TIME 1
4730 cat > conftest.
$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4736 egrep "nanosleep" >/dev
/null
2>&1; then
4739 cat >> confdefs.h
<<\EOF
4740 #define HAVE_DECL_NANOSLEEP 1
4748 cat > conftest.
$ac_ext <<EOF
4749 #line 4750 "configure"
4750 #include "confdefs.h"
4751 #include <sys/time.h>
4753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4754 egrep "timespec" >/dev
/null
2>&1; then
4757 cat >> confdefs.h
<<\EOF
4758 #define HAVE_STRUCT_TIMESPEC 1
4766 for ac_hdr
in cthreads.h pthread.h kernel
/scheduler.h kernel
/OS.h
4768 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4770 echo "configure:4771: checking for $ac_hdr" >&5
4771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 cat > conftest.
$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4779 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4780 { (eval echo configure
:4781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4781 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4782 if test -z "$ac_err"; then
4784 eval "ac_cv_header_$ac_safe=yes"
4787 echo "configure: failed program was:" >&5
4788 cat conftest.
$ac_ext >&5
4790 eval "ac_cv_header_$ac_safe=no"
4794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4797 cat >> confdefs.h
<<EOF
4798 #define $ac_tr_hdr 1
4802 echo "$ac_t""no" 1>&6
4807 if test x
$SYS != xmingw32
4809 if test x
$x_includes = xNONE
; then
4810 x_includes
=/usr
/X11R
6/include
4812 if test x
$x_libraries = xNONE
; then
4813 x_libraries
=/usr
/X11R
6/lib
4815 CPPFLAGS
="$save_CPPFLAGS -I$x_includes"
4816 for ac_hdr
in X11
/extensions
/dpms.h
4818 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4820 echo "configure:4821: checking for $ac_hdr" >&5
4821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 cat > conftest.
$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4829 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4830 { (eval echo configure
:4831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4831 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4832 if test -z "$ac_err"; then
4834 eval "ac_cv_header_$ac_safe=yes"
4837 echo "configure: failed program was:" >&5
4838 cat conftest.
$ac_ext >&5
4840 eval "ac_cv_header_$ac_safe=no"
4844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4845 echo "$ac_t""yes" 1>&6
4846 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4847 cat >> confdefs.h
<<EOF
4848 #define $ac_tr_hdr 1
4851 cat > conftest.
$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 #include <X11/extensions/dpms.h>
4856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4857 egrep "DPMSInfo" >/dev
/null
2>&1; then
4860 cat >> confdefs.h
<<\EOF
4861 #define DPMSINFO_IN_DPMS_H 1
4870 echo "$ac_t""no" 1>&6
4874 CPPFLAGS
="$save_CPPFLAGS"
4877 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4878 echo "configure:4879: checking for ntohl in sys/param.h" >&5
4879 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4882 CFLAGS
="${save_CFLAGS} -Wall -Werror"
4883 cat > conftest.
$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4886 #include <sys/param.h>
4888 void foo() { int meuh; ntohl(meuh); }
4891 if { (eval echo configure
:4892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4893 ac_cv_c_ntohl_sys_param_h
=yes
4895 echo "configure: failed program was:" >&5
4896 cat conftest.
$ac_ext >&5
4898 ac_cv_c_ntohl_sys_param_h
=no
4903 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4904 if test x
"$ac_cv_c_ntohl_sys_param_h" != x
"no"; then
4905 cat >> confdefs.h
<<\EOF
4906 #define NTOHL_IN_SYS_PARAM_H 1
4911 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4912 echo "configure:4913: checking if \$CC accepts -finline-limit" >&5
4913 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4916 CFLAGS
="${save_CFLAGS} -finline-limit-30000"
4917 cat > conftest.
$ac_ext <<EOF
4918 #line 4919 "configure"
4919 #include "confdefs.h"
4925 if { (eval echo configure
:4926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4927 ac_cv_c_inline_limit
=yes
4929 echo "configure: failed program was:" >&5
4930 cat conftest.
$ac_ext >&5
4932 ac_cv_c_inline_limit
=no
4937 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4938 if test x
"$ac_cv_c_inline_limit" != x
"no"; then
4939 save_CFLAGS
="${save_CFLAGS} -finline-limit-30000"
4942 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4943 echo "configure:4944: checking if \$CC accepts -Wall -Winline" >&5
4944 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4947 CFLAGS
="${save_CFLAGS} -Wall -Winline"
4948 cat > conftest.
$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4956 if { (eval echo configure
:4957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4958 ac_cv_c_Wall_Winline
=yes
4960 echo "configure: failed program was:" >&5
4961 cat conftest.
$ac_ext >&5
4963 ac_cv_c_Wall_Winline
=no
4968 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4969 if test x
"$ac_cv_c_Wall_Winline" != x
"no"; then
4970 save_CFLAGS
="${save_CFLAGS} -Wall -Winline"
4972 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4973 echo "configure:4974: checking if \$CC accepts -wall -winline" >&5
4974 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4977 CFLAGS
="${save_CFLAGS} -wall -winline"
4978 cat > conftest.
$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4986 if { (eval echo configure
:4987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4988 ac_cv_c_wall_winline
=yes
4990 echo "configure: failed program was:" >&5
4991 cat conftest.
$ac_ext >&5
4993 ac_cv_c_wall_winline
=no
4998 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4999 if test x
"$ac_cv_c_wall_winline" != x
"no"; then
5000 save_CFLAGS
="${save_CFLAGS} -wall -winline"
5004 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5005 echo "configure:5006: checking if \$CC accepts -pipe" >&5
5006 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5009 CFLAGS
="${save_CFLAGS} -pipe"
5010 cat > conftest.
$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5018 if { (eval echo configure
:5019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5022 echo "configure: failed program was:" >&5
5023 cat conftest.
$ac_ext >&5
5030 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5031 if test x
"$ac_cv_c_pipe" != x
"no"; then
5032 save_CFLAGS
="${save_CFLAGS} -pipe"
5035 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5036 echo "configure:5037: checking if \$CC accepts -O3" >&5
5037 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 CFLAGS
="${save_CFLAGS} -O3"
5041 cat > conftest.
$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5049 if { (eval echo configure
:5050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5053 echo "configure: failed program was:" >&5
5054 cat conftest.
$ac_ext >&5
5061 echo "$ac_t""$ac_cv_c_o3" 1>&6
5062 if test x
"$ac_cv_c_o3" != x
"no"; then
5063 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -O3"
5065 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5066 echo "configure:5067: checking if \$CC accepts -O2" >&5
5067 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5070 CFLAGS
="${save_CFLAGS} -O2"
5071 cat > conftest.
$ac_ext <<EOF
5072 #line 5073 "configure"
5073 #include "confdefs.h"
5079 if { (eval echo configure
:5080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5083 echo "configure: failed program was:" >&5
5084 cat conftest.
$ac_ext >&5
5091 echo "$ac_t""$ac_cv_c_o2" 1>&6
5092 if test x
"$ac_cv_c_o2" != x
"no"; then
5093 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -O2"
5095 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5096 echo "configure:5097: checking if \$CC accepts -O" >&5
5097 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 CFLAGS
="${save_CFLAGS} -O"
5101 cat > conftest.
$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5109 if { (eval echo configure
:5110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5113 echo "configure: failed program was:" >&5
5114 cat conftest.
$ac_ext >&5
5121 echo "$ac_t""$ac_cv_c_o" 1>&6
5122 if test x
"$ac_cv_c_o" != x
"no"; then
5123 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -O"
5128 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5129 echo "configure:5130: checking if \$CC accepts -ffast-math" >&5
5130 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 CFLAGS
="${save_CFLAGS} -ffast-math"
5134 cat > conftest.
$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5142 if { (eval echo configure
:5143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5144 ac_cv_c_fast_math
=yes
5146 echo "configure: failed program was:" >&5
5147 cat conftest.
$ac_ext >&5
5149 ac_cv_c_fast_math
=no
5154 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5155 if test x
"$ac_cv_c_fast_math" != x
"no"; then
5156 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -ffast-math"
5159 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5160 echo "configure:5161: checking if \$CC accepts -funroll-loops" >&5
5161 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5164 CFLAGS
="${save_CFLAGS} -funroll-loops"
5165 cat > conftest.
$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5173 if { (eval echo configure
:5174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5175 ac_cv_c_unroll_loops
=yes
5177 echo "configure: failed program was:" >&5
5178 cat conftest.
$ac_ext >&5
5180 ac_cv_c_unroll_loops
=no
5185 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5186 if test x
"$ac_cv_c_unroll_loops" != x
"no"; then
5187 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -funroll-loops"
5190 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5191 echo "configure:5192: checking if \$CC accepts -fomit-frame-pointer" >&5
5192 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 CFLAGS
="${save_CFLAGS} -fomit-frame-pointer"
5196 cat > conftest.
$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5204 if { (eval echo configure
:5205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5206 ac_cv_c_omit_frame_pointer
=yes
5208 echo "configure: failed program was:" >&5
5209 cat conftest.
$ac_ext >&5
5211 ac_cv_c_omit_frame_pointer
=no
5216 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5217 if test x
"$ac_cv_c_omit_frame_pointer" != x
"no"; then
5218 CFLAGS_OPTIM_NODEBUG
="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5221 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5222 echo "configure:5223: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5223 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6
5226 CFLAGS
="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5227 cat > conftest.
$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5235 if { (eval echo configure
:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5239 echo "configure: failed program was:" >&5
5240 cat conftest.
$ac_ext >&5
5247 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5248 if test x
"$ac_cv_ld_darwin" != x
"no"; then
5249 plugins_LDFLAGS
="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5252 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5253 echo "configure:5254: checking if \$CC accepts -shared" >&5
5254 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6
5257 CFLAGS
="${save_CFLAGS} -shared"
5258 cat > conftest.
$ac_ext <<EOF
5259 #line 5260 "configure"
5260 #include "confdefs.h"
5266 if { (eval echo configure
:5267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5268 ac_cv_ld_plugins
=yes
5270 echo "configure: failed program was:" >&5
5271 cat conftest.
$ac_ext >&5
5278 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5279 if test x
"$ac_cv_ld_plugins" != x
"no"; then
5280 plugins_LDFLAGS
="${plugins_LDFLAGS} -shared"
5283 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5284 echo "configure:5285: checking for variadic cpp macros" >&5
5285 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5286 echo $ac_n "(cached) $ac_c" 1>&6
5288 CFLAGS
="${save_CFLAGS}"
5289 cat > conftest.
$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5293 #define a(b,c...) printf(b,##c)
5295 a("foo");a("%s","bar");a("%s%s","baz","quux");
5298 if { (eval echo configure
:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5300 ac_cv_cpp_variadic_macros
=yes
5302 echo "configure: failed program was:" >&5
5303 cat conftest.
$ac_ext >&5
5305 ac_cv_cpp_variadic_macros
=no
5310 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5311 if test x
"$ac_cv_cpp_variadic_macros" != x
"no"; then
5312 cat >> confdefs.h
<<\EOF
5313 #define HAVE_VARIADIC_MACROS 1
5318 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5319 echo "configure:5320: checking __attribute__ ((aligned ())) support" >&5
5320 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 ac_cv_c_attribute_aligned
=0
5324 CFLAGS
="${save_CFLAGS} -Werror"
5325 for ac_cv_c_attr_align_try
in 2 4 8 16 32 64; do
5326 cat > conftest.
$ac_ext <<EOF
5327 #line 5328 "configure"
5328 #include "confdefs.h"
5331 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5334 if { (eval echo configure
:5335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5336 ac_cv_c_attribute_aligned
=$ac_cv_c_attr_align_try
5338 echo "configure: failed program was:" >&5
5339 cat conftest.
$ac_ext >&5
5345 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5346 if test x
"$ac_cv_c_attribute_aligned" != x
"0"; then
5347 cat >> confdefs.h
<<EOF
5348 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5353 CFLAGS
="${save_CFLAGS}"
5354 CPPFLAGS
="${save_CPPFLAGS}"
5355 LDFLAGS
="${save_LDFLAGS}"
5357 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5358 echo "configure:5359: checking for boolean_t in sys/types.h" >&5
5359 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5362 cat > conftest.
$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5365 #include <sys/types.h>
5370 if { (eval echo configure
:5371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5372 ac_cv_c_boolean_t_sys_types_h
=yes
5374 echo "configure: failed program was:" >&5
5375 cat conftest.
$ac_ext >&5
5377 ac_cv_c_boolean_t_sys_types_h
=no
5382 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5383 if test x
"$ac_cv_c_boolean_t_sys_types_h" != x
"no"; then
5384 cat >> confdefs.h
<<\EOF
5385 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5390 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5391 echo "configure:5392: checking for boolean_t in pthread.h" >&5
5392 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5393 echo $ac_n "(cached) $ac_c" 1>&6
5395 cat > conftest.
$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5398 #include <pthread.h>
5403 if { (eval echo configure
:5404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 ac_cv_c_boolean_t_pthread_h
=yes
5407 echo "configure: failed program was:" >&5
5408 cat conftest.
$ac_ext >&5
5410 ac_cv_c_boolean_t_pthread_h
=no
5415 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5416 if test x
"$ac_cv_c_boolean_t_pthread_h" != x
"no"; then
5417 cat >> confdefs.h
<<\EOF
5418 #define BOOLEAN_T_IN_PTHREAD_H 1
5423 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5424 echo "configure:5425: checking for boolean_t in cthreads.h" >&5
5425 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5428 cat > conftest.
$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 #include <cthreads.h>
5436 if { (eval echo configure
:5437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5438 ac_cv_c_boolean_t_cthreads_h
=yes
5440 echo "configure: failed program was:" >&5
5441 cat conftest.
$ac_ext >&5
5443 ac_cv_c_boolean_t_cthreads_h
=no
5448 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5449 if test x
"$ac_cv_c_boolean_t_cthreads_h" != x
"no"; then
5450 cat >> confdefs.h
<<\EOF
5451 #define BOOLEAN_T_IN_CTHREADS_H 1
5456 case x
"${target_cpu}" in
5461 ARCH
="${target_cpu}"
5465 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"
5466 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"
5468 MMX_MODULES
="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5469 MMXEXT_MODULES
="memcpymmxext idctmmxext motionmmxext"
5470 THREEDNOW_MODULES
="memcpy3dn imdct3dn downmix3dn"
5471 SSE_MODULES
="imdctsse downmixsse"
5472 ALTIVEC_MODULES
="idctaltivec motionaltivec memcpyaltivec"
5474 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5475 echo "configure:5476: checking if \$CC groks MMX inline assembly" >&5
5476 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5477 echo $ac_n "(cached) $ac_c" 1>&6
5479 cat > conftest.
$ac_ext <<EOF
5480 #line 5481 "configure"
5481 #include "confdefs.h"
5484 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5487 if { (eval echo configure
:5488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5489 ac_cv_mmx_inline
=yes
5491 echo "configure: failed program was:" >&5
5492 cat conftest.
$ac_ext >&5
5499 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5500 if test x
"$ac_cv_mmx_inline" != x
"no"; then
5501 ACCEL_MODULES
="${ACCEL_MODULES} ${MMX_MODULES}"
5504 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5505 echo "configure:5506: checking if \$CC groks MMX EXT inline assembly" >&5
5506 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5509 cat > conftest.
$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5514 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5517 if { (eval echo configure
:5518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5519 ac_cv_mmxext_inline
=yes
5521 echo "configure: failed program was:" >&5
5522 cat conftest.
$ac_ext >&5
5524 ac_cv_mmxext_inline
=no
5529 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5530 if test x
"$ac_cv_mmxext_inline" != x
"no"; then
5531 ACCEL_MODULES
="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5534 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5535 echo "configure:5536: checking if \$CC groks 3D Now! inline assembly" >&5
5536 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.
$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5544 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5547 if { (eval echo configure
:5548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5549 ac_cv_3dnow_inline
=yes
5551 echo "configure: failed program was:" >&5
5552 cat conftest.
$ac_ext >&5
5554 ac_cv_3dnow_inline
=no
5559 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5560 if test x
"$ac_cv_3dnow_inline" != x
"no"; then
5561 cat >> confdefs.h
<<\EOF
5562 #define CAN_COMPILE_3DNOW 1
5565 ACCEL_MODULES
="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5568 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5569 echo "configure:5570: checking if \$CC groks SSE inline assembly" >&5
5570 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5571 echo $ac_n "(cached) $ac_c" 1>&6
5573 cat > conftest.
$ac_ext <<EOF
5574 #line 5575 "configure"
5575 #include "confdefs.h"
5578 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5581 if { (eval echo configure
:5582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5583 ac_cv_sse_inline
=yes
5585 echo "configure: failed program was:" >&5
5586 cat conftest.
$ac_ext >&5
5593 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5594 if test x
"$ac_cv_sse_inline" != x
"no" -a x
$SYS != xmingw32
; then
5595 cat >> confdefs.h
<<\EOF
5596 #define CAN_COMPILE_SSE 1
5599 ACCEL_MODULES
="${ACCEL_MODULES} ${SSE_MODULES}"
5602 # don't try to grok altivec with native mingw32 it doesn't work right now
5603 # we should be able to remove this test with future versions of mingw32
5604 if test x
$SYS != xmingw32
; then
5605 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5606 echo "configure:5607: checking if \$CC groks Altivec inline assembly" >&5
5607 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5610 cat > conftest.
$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5615 asm volatile("vperm 0,1,2,3");
5618 if { (eval echo configure
:5619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5620 ac_cv_altivec_inline
=yes
5622 echo "configure: failed program was:" >&5
5623 cat conftest.
$ac_ext >&5
5626 CFLAGS
="$CFLAGS -Wa,-m7400"
5627 cat > conftest.
$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5632 asm volatile("vperm 0,1,2,3");
5635 if { (eval echo configure
:5636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5637 ac_cv_altivec_inline
="-Wa,-m7400"
5639 echo "configure: failed program was:" >&5
5640 cat conftest.
$ac_ext >&5
5642 ac_cv_altivec_inline
=no
5651 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5652 if test x
"$ac_cv_altivec_inline" != x
"no"; then
5653 cat >> confdefs.h
<<\EOF
5654 #define CAN_COMPILE_ALTIVEC 1
5657 if test x
"$ac_cv_altivec_inline" != x
"yes"; then
5658 idctaltivec_CFLAGS
="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5659 motionaltivec_CFLAGS
="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5660 memcpyaltivec_CFLAGS
="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5661 vlc_CFLAGS
="$vlc_CFLAGS $ac_cv_altivec_inline"
5663 ACCEL_MODULES
="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5666 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5667 echo "configure:5668: checking if \$CC groks Altivec C extensions" >&5
5668 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5672 CFLAGS
="$CFLAGS -faltivec"
5674 cat > conftest.
$ac_ext <<EOF
5675 #line 5676 "configure"
5676 #include "confdefs.h"
5679 vec_mtvscr((vector unsigned int)(0));
5682 if { (eval echo configure
:5683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5684 ac_cv_c_altivec
=-faltivec
5686 echo "configure: failed program was:" >&5
5687 cat conftest.
$ac_ext >&5
5691 CFLAGS
="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5692 cat > conftest.
$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5697 vec_mtvscr((vector unsigned int)(0));
5700 if { (eval echo configure
:5701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5702 ac_cv_c_altivec
="-fvec"
5704 echo "configure: failed program was:" >&5
5705 cat conftest.
$ac_ext >&5
5717 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5718 if test x
"$ac_cv_c_altivec" != x
"no"; then
5719 cat >> confdefs.h
<<\EOF
5720 #define CAN_COMPILE_C_ALTIVEC 1
5723 idctaltivec_CFLAGS
="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5724 motionaltivec_CFLAGS
="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5725 memcpyaltivec_CFLAGS
="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5726 vlc_CFLAGS
="$vlc_CFLAGS $ac_cv_c_altivec"
5727 ACCEL_MODULES
="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5730 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5731 echo "configure:5732: checking if linker needs -framework vecLib" >&5
5732 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5735 save_LDFLAGS
=$LDFLAGS
5736 LDFLAGS
="$LDFLAGS -framework vecLib"
5737 cat > conftest.
$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5745 if { (eval echo configure
:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5747 ac_cv_ld_altivec
=yes
5749 echo "configure: failed program was:" >&5
5750 cat conftest.
$ac_ext >&5
5755 LDFLAGS
=$save_LDFLAGS
5759 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5760 if test x
"$ac_cv_ld_altivec" != x
"no"; then
5761 idctaltivec_LDFLAGS
="${idctaltivec_LDFLAGS} -framework vecLib"
5762 motionaltivec_LDFLAGS
="${motionaltivec_LDFLAGS} -framework vecLib"
5763 memcpyaltivec_LDFLAGS
="${memcpyaltivec_LDFLAGS} -framework vecLib"
5764 vlc_LDFLAGS
="${vlc_LDFLAGS} -framework vecLib"
5769 # Check whether --with- or --without- was given.
5770 if test "${with_+set}" = set; then
5775 # Check whether --with- or --without- was given.
5776 if test "${with_+set}" = set; then
5782 # Check whether --with-tuning or --without-tuning was given.
5783 if test "${with_tuning+set}" = set; then
5784 withval
="$with_tuning"
5788 if test "x$with_tuning" != "x"; then
5789 TUNING
="$with_tuning"
5791 if test x
${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386
; then TUNING
="pentiumpro"
5793 if test x
${target_cpu} = xpowerpc
; then TUNING
="750"; fi
5797 if test x
${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5800 BUILTINS
="${BUILTINS} ${ACCEL_MODULES}"
5803 # Check whether --enable-optimizations or --disable-optimizations was given.
5804 if test "${enable_optimizations+set}" = set; then
5805 enableval
="$enable_optimizations"
5806 if test x
$enable_optimizations = xno
; then OPTIMS
=0; fi
5812 # Check whether --enable-altivec or --disable-altivec was given.
5813 if test "${enable_altivec+set}" = set; then
5814 enableval
="$enable_altivec"
5815 if test x
$enable_altivec = xyes
; then ARCH
="${ARCH} altivec";
5816 BUILTINS
="${BUILTINS} ${ACCEL_MODULES}"; fi
5818 if test x
${target_cpu} = xpowerpc
; then ARCH
="${ARCH} altivec";
5819 BUILTINS
="${BUILTINS} ${ACCEL_MODULES}"; fi
5824 # Check whether --enable-debug or --disable-debug was given.
5825 if test "${enable_debug+set}" = set; then
5826 enableval
="$enable_debug"
5827 if test x
$enable_debug = xyes
; then DEBUG
=1; fi
5832 # Check whether --enable-release or --disable-release was given.
5833 if test "${enable_release+set}" = set; then
5834 enableval
="$enable_release"
5835 if test x
$enable_release = xyes
; then RELEASE
=1; fi
5837 VERSION
="${VERSION}_`date +%Y-%m-%d`"
5842 # Check whether --with- or --without- was given.
5843 if test "${with_+set}" = set; then
5849 # Check whether --enable-dvd or --disable-dvd was given.
5850 if test "${enable_dvd+set}" = set; then
5851 enableval
="$enable_dvd"
5855 if test "x$enable_dvd" != "xno"
5857 # Check whether --with-dvdcss or --without-dvdcss was given.
5858 if test "${with_dvdcss+set}" = set; then
5859 withval
="$with_dvdcss"
5863 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5864 if test "${with_dvdcss_tree+set}" = set; then
5865 withval
="$with_dvdcss_tree"
5869 case "x$with_dvdcss" in
5871 if test "x$with_dvdcss_tree" = x
5873 for ac_hdr
in dvdcss
/dvdcss.h
5875 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5877 echo "configure:5878: checking for $ac_hdr" >&5
5878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5881 cat > conftest.
$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5886 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5887 { (eval echo configure
:5888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5888 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5889 if test -z "$ac_err"; then
5891 eval "ac_cv_header_$ac_safe=yes"
5894 echo "configure: failed program was:" >&5
5895 cat conftest.
$ac_ext >&5
5897 eval "ac_cv_header_$ac_safe=no"
5901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5903 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5904 cat >> confdefs.h
<<EOF
5905 #define $ac_tr_hdr 1
5907 PLUGINS
="${PLUGINS} dvd"
5908 dvd_LDFLAGS
="${dvd_LDFLAGS} -ldvdcss"
5910 echo "$ac_t""no" 1>&6
5911 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
5912 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5917 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5918 echo "configure:5919: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5919 real_dvdcss_tree
="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5920 if test "x$real_dvdcss_tree" = x
5922 echo "$ac_t""no" 1>&6
5923 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5925 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5927 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5928 BUILTINS
="${BUILTINS} dvd"
5929 dvd_LDFLAGS
="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5930 dvd_CFLAGS
="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5932 echo "$ac_t""no" 1>&6
5933 { 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; }
5938 PLUGINS="${PLUGINS} dvd
"
5939 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5940 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5943 echo $ac_n "checking
for dvdcss headers
in ${with_dvdcss}""...
$ac_c" 1>&6
5944 echo "configure
:5945: checking
for dvdcss headers
in ${with_dvdcss}" >&5
5945 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5947 echo "$ac_t""yes" 1>&6
5948 PLUGINS="${PLUGINS} dvd
"
5949 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib
-ldvdcss"
5950 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include
"
5952 echo "$ac_t""no
" 1>&6
5953 { echo "configure
: error
: cannot
find ${with_dvdcss}/include
/dvdcss
/dvdcss.h
" 1>&2; exit 1; }
5959 # Check whether --enable-dvdread or --disable-dvdread was given.
5960 if test "${enable_dvdread+set}" = set; then
5961 enableval="$enable_dvdread"
5965 if test "x
$enable_dvdread" != "xno
"
5967 # Check whether --with-dvdread or --without-dvdread was given.
5968 if test "${with_dvdread+set}" = set; then
5969 withval="$with_dvdread"
5973 if test "x
$with_dvdread" = x
5978 test_LDFLAGS="-L${with_dvdread}/lib
"
5979 test_CFLAGS="-I${with_dvdread}/include
"
5981 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5982 for ac_hdr in dvdread/dvd_reader.h
5984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5985 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5986 echo "configure
:5987: checking
for $ac_hdr" >&5
5987 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5988 echo $ac_n "(cached
) $ac_c" 1>&6
5990 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure
"
5992 #include "confdefs.h
"
5995 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5996 { (eval echo configure:5997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5998 if test -z "$ac_err"; then
6000 eval "ac_cv_header_
$ac_safe=yes"
6003 echo "configure
: failed program was
:" >&5
6004 cat conftest.$ac_ext >&5
6006 eval "ac_cv_header_
$ac_safe=no
"
6010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6011 echo "$ac_t""yes" 1>&6
6012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6013 cat >> confdefs.h <<EOF
6014 #define $ac_tr_hdr 1
6017 cat > conftest.$ac_ext <<EOF
6018 #line 6019 "configure
"
6019 #include "confdefs.h
"
6020 #include <dvdread/dvd_reader.h>
6022 void foo() { int i=DVD_VIDEO_LB_LEN; }
6025 if { (eval echo configure:6026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6028 PLUGINS="${PLUGINS} dvdread
"
6029 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6030 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6033 echo "configure
: failed program was
:" >&5
6034 cat conftest.$ac_ext >&5
6037 if test "x
$enable_dvdread" != x
6039 { 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; }
6046 echo "$ac_t""no
" 1>&6
6047 if test "x
$enable_dvdread" != x
6049 if test "x
$with_dvdread" != x
6051 { echo "configure
: error
: Cannot
find dvdread
/dvd_reader.h
in ${with_dvdread}/include
" 1>&2; exit 1; }
6053 { echo "configure
: error
: Cannot
find dvdread
/dvd_reader.h
" 1>&2; exit 1; }
6060 CPPFLAGS="$save_CPPFLAGS"
6063 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6064 if test "${enable_dvbpsi+set}" = set; then
6065 enableval="$enable_dvbpsi"
6069 if test "x
$enable_dvbpsi" != "xno
"
6071 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6072 if test "${with_dvbpsi+set}" = set; then
6073 withval="$with_dvbpsi"
6077 if test "x
$with_dvbpsi" = x
6082 test_LDFLAGS="-L${with_dvbpsi}/lib
"
6083 test_CFLAGS="-I${with_dvbpsi}/include
"
6085 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6086 ac_safe=`echo "dvbpsi
/dr.h
" | sed 'y%./+-%__p_%'`
6087 echo $ac_n "checking
for dvbpsi
/dr.h
""...
$ac_c" 1>&6
6088 echo "configure
:6089: checking
for dvbpsi
/dr.h
" >&5
6089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6090 echo $ac_n "(cached
) $ac_c" 1>&6
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure
"
6094 #include "confdefs.h
"
6095 #include <dvbpsi/dr.h>
6097 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6098 { (eval echo configure:6099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6100 if test -z "$ac_err"; then
6102 eval "ac_cv_header_
$ac_safe=yes"
6105 echo "configure
: failed program was
:" >&5
6106 cat conftest.$ac_ext >&5
6108 eval "ac_cv_header_
$ac_safe=no
"
6112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6113 echo "$ac_t""yes" 1>&6
6115 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi
"
6116 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6117 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6120 echo "$ac_t""no
" 1>&6
6122 if test "x
$enable_dvbpsi" != x
6124 { 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; }
6129 CPPFLAGS="$save_CPPFLAGS"
6132 # Check whether --enable-vcd or --disable-vcd was given.
6133 if test "${enable_vcd+set}" = set; then
6134 enableval="$enable_vcd"
6139 if test x$enable_vcd != xno
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6144 #include <linux/cdrom.h>
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 egrep "cdrom_msf0" >/dev/null 2>&1; then
6150 PLUGINS="${PLUGINS} vcd"
6156 cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure"
6158 #include "confdefs.h"
6159 #include <sys/cdio.h>
6161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6162 egrep "ioc_toc_header " >/dev/null 2>&1; then
6165 PLUGINS="${PLUGINS} vcd"
6166 cat >> confdefs.h <<\EOF
6167 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6175 if test "x${SYS}" = "xbsdi"
6177 PLUGINS="${PLUGINS} vcd"
6180 if test "x${SYS}" = "xdarwin"
6182 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6183 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6187 # Check whether --enable-satellite or --disable-satellite was given.
6188 if test "${enable_satellite+set}" = set; then
6189 enableval="$enable_satellite"
6190 if test x$enable_satellite = xyes
6192 PLUGINS="${PLUGINS} satellite"
6197 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6199 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6200 echo "configure:6201: checking for inet_pton" >&5
6201 if eval "test \"`echo '$
''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6204 cat > conftest.$ac_ext <<EOF
6205 #line 6206 "configure"
6206 #include "confdefs.h"
6207 /* System header to define __stub macros and hopefully few prototypes,
6208 which can conflict with char inet_pton(); below. */
6210 /* Override any gcc2 internal prototype to avoid an error. */
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6217 /* The GNU C library defines this for functions which it implements
6218 to always fail with ENOSYS. Some functions are actually named
6219 something starting with __ and the normal name is an alias. */
6220 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6228 if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6230 eval "ac_cv_func_inet_pton=yes"
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6235 eval "ac_cv_func_inet_pton=no"
6240 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6241 echo "$ac_t""yes" 1>&6
6242 PLUGINS="${PLUGINS} ipv6"
6244 echo "$ac_t""no" 1>&6
6248 if test "x$SYS" = "xmingw32"
6250 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6251 echo "configure:6252: checking for getaddrinfo in ws2tcpip.h" >&5
6252 cat > conftest.$ac_ext <<EOF
6253 #line 6254 "configure"
6254 #include "confdefs.h"
6255 #include <ws2tcpip.h>
6257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6258 egrep "addrinfo" >/dev/null 2>&1; then
6260 echo "$ac_t""yes" 1>&6
6261 PLUGINS="${PLUGINS} ipv6"
6264 echo "$ac_t""no" 1>&6
6270 # Check whether --enable-avi or --disable-avi was given.
6271 if test "${enable_avi+set}" = set; then
6272 enableval="$enable_avi"
6276 if test x$enable_avi != xno
6278 PLUGINS="${PLUGINS} avi"
6282 # Check whether --with- or --without- was given.
6283 if test "${with_+set}" = set; then
6289 # Check whether --enable-mad or --disable-mad was given.
6290 if test "${enable_mad+set}" = set; then
6291 enableval="$enable_mad"
6295 if test x$enable_mad = xyes
6297 # Check whether --with-mad or --without-mad was given.
6298 if test "${with_mad+set}" = set; then
6303 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6305 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6306 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6309 # Check whether --with-mad-tree or --without-mad-tree was given.
6310 if test "${with_mad_tree+set}" = set; then
6311 withval="$with_mad_tree"
6315 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6317 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6318 if test "x$real_mad_tree" = x
6320 echo "$ac_t""no" 1>&6
6321 { echo "configure: error: ${with_mad_tree} directory doesn't exist
" 1>&2; exit 1; }
6323 echo $ac_n "checking
for mad.h
in ${real_mad_tree}/libmad
""...
$ac_c" 1>&6
6324 echo "configure
:6325: checking
for mad.h
in ${real_mad_tree}/libmad
" >&5
6325 if test -f ${real_mad_tree}/libmad/mad.h
6327 echo "$ac_t""yes" 1>&6
6328 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad
"
6329 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad
/.libs
"
6330 save_LDFLAGS=$LDFLAGS
6331 LDFLAGS=$mad_LDFLAGS
6332 echo $ac_n "checking
for mad_bit_init
in -lmad""...
$ac_c" 1>&6
6333 echo "configure
:6334: checking
for mad_bit_init
in -lmad" >&5
6334 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6336 echo $ac_n "(cached
) $ac_c" 1>&6
6338 ac_save_LIBS="$LIBS"
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure
"
6342 #include "confdefs.h
"
6343 /* Override any gcc2 internal prototype to avoid an error. */
6344 /* We use char because int might match the return type of a gcc2
6345 builtin and then its argument prototype would still apply. */
6346 char mad_bit_init();
6352 if { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6354 eval "ac_cv_lib_
$ac_lib_var=yes"
6356 echo "configure
: failed program was
:" >&5
6357 cat conftest.$ac_ext >&5
6359 eval "ac_cv_lib_
$ac_lib_var=no
"
6362 LIBS="$ac_save_LIBS"
6365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6366 echo "$ac_t""yes" 1>&6
6368 BUILTINS="${BUILTINS} mad
"
6369 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6372 echo "$ac_t""no
" 1>&6
6373 { echo "configure
: error
: the specified tree hasn
't been compiled " 1>&2; exit 1; }
6377 LDFLAGS=$save_LDFLAGS
6379 echo "$ac_t""no" 1>&6
6380 { echo "configure: error: the specified tree doesn't have mad.h
" 1>&2; exit 1; }
6384 save_LDFLAGS=$LDFLAGS
6385 CFLAGS="$CFLAGS $mad_CFLAGS"
6386 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6390 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
6391 echo "configure
:6392: checking
for $ac_hdr" >&5
6392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6393 echo $ac_n "(cached
) $ac_c" 1>&6
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure
"
6397 #include "confdefs.h
"
6400 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6401 { (eval echo configure:6402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6403 if test -z "$ac_err"; then
6405 eval "ac_cv_header_
$ac_safe=yes"
6408 echo "configure
: failed program was
:" >&5
6409 cat conftest.$ac_ext >&5
6411 eval "ac_cv_header_
$ac_safe=no
"
6415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6416 echo "$ac_t""yes" 1>&6
6417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6418 cat >> confdefs.h <<EOF
6419 #define $ac_tr_hdr 1
6423 echo "$ac_t""no
" 1>&6
6424 { echo "configure
: error
: Cannot
find development headers
for libmad...
" 1>&2; exit 1; }
6428 echo $ac_n "checking
for mad_bit_init
in -lmad""...
$ac_c" 1>&6
6429 echo "configure
:6430: checking
for mad_bit_init
in -lmad" >&5
6430 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6432 echo $ac_n "(cached
) $ac_c" 1>&6
6434 ac_save_LIBS="$LIBS"
6436 cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure
"
6438 #include "confdefs.h
"
6439 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6442 char mad_bit_init();
6448 if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6450 eval "ac_cv_lib_
$ac_lib_var=yes"
6452 echo "configure
: failed program was
:" >&5
6453 cat conftest.$ac_ext >&5
6455 eval "ac_cv_lib_
$ac_lib_var=no
"
6458 LIBS="$ac_save_LIBS"
6461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6462 echo "$ac_t""yes" 1>&6
6464 PLUGINS="${PLUGINS} mad
"
6465 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6467 echo "$ac_t""no
" 1>&6
6468 { echo "configure
: error
: Cannot
find libmad library...
" 1>&2; exit 1; }
6472 LDFLAGS=$save_LDFLAGS
6476 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6477 if test "${enable_ffmpeg+set}" = set; then
6478 enableval="$enable_ffmpeg"
6482 if test "x
$enable_ffmpeg" = "xyes
"
6484 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6485 if test "${with_ffmpeg+set}" = set; then
6486 withval="$with_ffmpeg"
6490 if test "x
$with_ffmpeg" != "xno
" -a "x
$with_ffmpeg" != "x
"
6492 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include
/libffmpeg
"
6493 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib
"
6496 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6497 if test "${with_ffmpeg_tree+set}" = set; then
6498 withval="$with_ffmpeg_tree"
6502 if test "x
$with_ffmpeg_tree" != "x
"
6504 echo $ac_n "checking
for libavcodec.a
in ${with_ffmpeg_tree}""...
$ac_c" 1>&6
6505 echo "configure
:6506: checking
for libavcodec.a
in ${with_ffmpeg_tree}" >&5
6506 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6507 if test "x
$real_ffmpeg_tree" = x
6509 echo "$ac_t""no
" 1>&6
6510 { echo "configure
: error
: cannot
cd to
${with_ffmpeg_tree}" 1>&2; exit 1; }
6512 if test -f "${real_ffmpeg_tree}/libavcodec
/libavcodec.a
"
6514 echo "$ac_t""${real_ffmpeg_tree}/libavcodec
/libavcodec.a
" 1>&6
6515 BUILTINS="${BUILTINS} ffmpeg
"
6516 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec
/libavcodec.a
-lm"
6517 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec
"
6519 echo "$ac_t""no
" 1>&6
6520 { echo "configure
: error
: cannot
find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6524 save_LDFLAGS
=$LDFLAGS
6525 CFLAGS
="$CFLAGS $ffmpeg_CFLAGS"
6526 LDFLAGS
="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6527 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6528 echo "configure:6529: checking for avcodec_init in -lavcodec" >&5
6529 ac_lib_var
=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6533 ac_save_LIBS
="$LIBS"
6534 LIBS
="-lavcodec $LIBS"
6535 cat > conftest.
$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 /* Override any gcc2 internal prototype to avoid an error. */
6539 /* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6541 char avcodec_init();
6547 if { (eval echo configure
:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6549 eval "ac_cv_lib_$ac_lib_var=yes"
6551 echo "configure: failed program was:" >&5
6552 cat conftest.
$ac_ext >&5
6554 eval "ac_cv_lib_$ac_lib_var=no"
6557 LIBS
="$ac_save_LIBS"
6560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6561 echo "$ac_t""yes" 1>&6
6563 BUILTINS
="${BUILTINS} ffmpeg"
6564 ffmpeg_LDFLAGS
="${ffmpeg_LDFLAGS} -lavcodec -lm"
6566 echo "$ac_t""no" 1>&6
6567 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6571 LDFLAGS
=$save_LDFLAGS
6576 if test x
$SYS = xbeos
6578 PLUGINS
="${PLUGINS} beos"
6581 # Check whether --enable-a52 or --disable-a52 was given.
6582 if test "${enable_a52+set}" = set; then
6583 enableval
="$enable_a52"
6587 if test "x$enable_a52" != "xno"
6589 # Check whether --with-a52-tree or --without-a52-tree was given.
6590 if test "${with_a52_tree+set}" = set; then
6591 withval
="$with_a52_tree"
6595 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6597 real_a52_tree
="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6598 if test "x$real_a52_tree" = x
6600 echo "$ac_t""no" 1>&6
6601 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6603 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6604 echo "configure:6605: checking for a52.h in ${real_a52_tree}/include" >&5
6605 if test -f ${real_a52_tree}/include
/a52.h
6607 echo "$ac_t""yes" 1>&6
6608 a52_CFLAGS
="${a52_CFLAGS} -I${real_a52_tree}"
6609 a52_LDFLAGS
="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6610 save_LDFLAGS
=$LDFLAGS
6611 LDFLAGS
="$a52_LDFLAGS $LDFLAGS"
6612 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6613 echo "configure:6614: checking for a52_free in -la52" >&5
6614 ac_lib_var
=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6618 ac_save_LIBS
="$LIBS"
6619 LIBS
="-la52 -lm $LIBS"
6620 cat > conftest.
$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6623 /* Override any gcc2 internal prototype to avoid an error. */
6624 /* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6632 if { (eval echo configure
:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6634 eval "ac_cv_lib_$ac_lib_var=yes"
6636 echo "configure: failed program was:" >&5
6637 cat conftest.
$ac_ext >&5
6639 eval "ac_cv_lib_$ac_lib_var=no"
6642 LIBS
="$ac_save_LIBS"
6645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6648 BUILTINS
="${BUILTINS} a52"
6649 a52_LDFLAGS
="${a52_LDFLAGS} -la52 -lm"
6650 a52_CFLAGS
="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6653 echo "$ac_t""no" 1>&6
6655 if test -f ${real_a52_tree}/liba52
/.libs
/liba52.a
6657 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6659 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6664 LDFLAGS
=$save_LDFLAGS
6666 echo "$ac_t""no" 1>&6
6667 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6669 else for ac_hdr
in a52dec
/a52.h
6671 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6673 echo "configure:6674: checking for $ac_hdr" >&5
6674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6675 echo $ac_n "(cached) $ac_c" 1>&6
6677 cat > conftest.
$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6682 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6683 { (eval echo configure
:6684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6684 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6685 if test -z "$ac_err"; then
6687 eval "ac_cv_header_$ac_safe=yes"
6690 echo "configure: failed program was:" >&5
6691 cat conftest.
$ac_ext >&5
6693 eval "ac_cv_header_$ac_safe=no"
6697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6698 echo "$ac_t""yes" 1>&6
6699 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6700 cat >> confdefs.h
<<EOF
6701 #define $ac_tr_hdr 1
6704 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6705 echo "configure:6706: checking for a52_free in -la52" >&5
6706 ac_lib_var
=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6708 echo $ac_n "(cached) $ac_c" 1>&6
6710 ac_save_LIBS
="$LIBS"
6711 LIBS
="-la52 -lm $LIBS"
6712 cat > conftest.
$ac_ext <<EOF
6713 #line 6714 "configure"
6714 #include "confdefs.h"
6715 /* Override any gcc2 internal prototype to avoid an error. */
6716 /* We use char because int might match the return type of a gcc2
6717 builtin and then its argument prototype would still apply. */
6724 if { (eval echo configure
:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6726 eval "ac_cv_lib_$ac_lib_var=yes"
6728 echo "configure: failed program was:" >&5
6729 cat conftest.
$ac_ext >&5
6731 eval "ac_cv_lib_$ac_lib_var=no"
6734 LIBS
="$ac_save_LIBS"
6737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6738 echo "$ac_t""yes" 1>&6
6740 BUILTINS
="${BUILTINS} a52"
6741 a52_LDFLAGS
="${a52_LDFLAGS} -la52 -lm"
6742 a52_CFLAGS
="${a52_CFLAGS}"
6745 echo "$ac_t""no" 1>&6
6750 echo "$ac_t""no" 1>&6
6757 # Check whether --enable-vorbis or --disable-vorbis was given.
6758 if test "${enable_vorbis+set}" = set; then
6759 enableval
="$enable_vorbis"
6763 if test "x$enable_vorbis" != "xno"
6765 for ac_hdr
in ogg
/ogg.h
6767 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6769 echo "configure:6770: checking for $ac_hdr" >&5
6770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6771 echo $ac_n "(cached) $ac_c" 1>&6
6773 cat > conftest.
$ac_ext <<EOF
6774 #line 6775 "configure"
6775 #include "confdefs.h"
6778 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6779 { (eval echo configure
:6780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6780 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6781 if test -z "$ac_err"; then
6783 eval "ac_cv_header_$ac_safe=yes"
6786 echo "configure: failed program was:" >&5
6787 cat conftest.
$ac_ext >&5
6789 eval "ac_cv_header_$ac_safe=no"
6793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6794 echo "$ac_t""yes" 1>&6
6795 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6796 cat >> confdefs.h
<<EOF
6797 #define $ac_tr_hdr 1
6800 #PLUGINS="${PLUGINS} vorbis"
6801 vorbis_LDFLAGS
="${vorbis_LDFLAGS} -lvorbis"
6804 echo "$ac_t""no" 1>&6
6811 # Check whether --with- or --without- was given.
6812 if test "${with_+set}" = set; then
6818 # Check whether --enable-x11 or --disable-x11 was given.
6819 if test "${enable_x11+set}" = set; then
6820 enableval
="$enable_x11"
6824 if test x
$enable_x11 != xno
&&
6825 (test x
$SYS != xmingw32 ||
test x
$enable_x11 = xyes
); then
6826 if test x
$x_includes = xNONE
; then
6827 x_includes
=/usr
/X11R
6/include
6829 if test x
$x_libraries = xNONE
; then
6830 x_libraries
=/usr
/X11R
6/lib
6832 CPPFLAGS
="$save_CPPFLAGS -I$x_includes"
6833 for ac_hdr
in X11
/Xlib.h
6835 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6837 echo "configure:6838: checking for $ac_hdr" >&5
6838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6839 echo $ac_n "(cached) $ac_c" 1>&6
6841 cat > conftest.
$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6846 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6847 { (eval echo configure
:6848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6848 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6849 if test -z "$ac_err"; then
6851 eval "ac_cv_header_$ac_safe=yes"
6854 echo "configure: failed program was:" >&5
6855 cat conftest.
$ac_ext >&5
6857 eval "ac_cv_header_$ac_safe=no"
6861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6863 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6864 cat >> confdefs.h
<<EOF
6865 #define $ac_tr_hdr 1
6868 PLUGINS
="${PLUGINS} x11"
6869 x11_LDFLAGS
="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6870 x11_CFLAGS
="${x11_CFLAGS} -I$x_includes"
6873 echo "$ac_t""no" 1>&6
6877 CPPFLAGS
="$save_CPPFLAGS"
6880 # Check whether --enable-xvideo or --disable-xvideo was given.
6881 if test "${enable_xvideo+set}" = set; then
6882 enableval
="$enable_xvideo"
6886 if test x
$enable_xvideo != xno
&&
6887 (test x
$SYS != xmingw32 ||
test x
$enable_xvideo = xyes
); then
6888 if test x
$x_includes = xNONE
; then
6889 x_includes
=/usr
/X11R
6/include
6891 if test x
$x_libraries = xNONE
; then
6892 x_libraries
=/usr
/X11R
6/lib
6894 save_CPPFLAGS
=$CPPFLAGS
6895 CPPFLAGS
="$save_CPPFLAGS -I$x_includes"
6896 for ac_hdr
in X11
/extensions
/Xv.h
6898 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6900 echo "configure:6901: checking for $ac_hdr" >&5
6901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 cat > conftest.
$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6909 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6910 { (eval echo configure
:6911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6911 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6912 if test -z "$ac_err"; then
6914 eval "ac_cv_header_$ac_safe=yes"
6917 echo "configure: failed program was:" >&5
6918 cat conftest.
$ac_ext >&5
6920 eval "ac_cv_header_$ac_safe=no"
6924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6925 echo "$ac_t""yes" 1>&6
6926 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6927 cat >> confdefs.h
<<EOF
6928 #define $ac_tr_hdr 1
6932 CFLAGS
="$CFLAGS -L$x_libraries -lX11 -lXext"
6933 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6934 echo "configure:6935: checking for XvSetPortAttribute in -lXv_pic" >&5
6935 ac_lib_var
=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6939 ac_save_LIBS
="$LIBS"
6940 LIBS
="-lXv_pic $LIBS"
6941 cat > conftest.
$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6944 /* Override any gcc2 internal prototype to avoid an error. */
6945 /* We use char because int might match the return type of a gcc2
6946 builtin and then its argument prototype would still apply. */
6947 char XvSetPortAttribute();
6950 XvSetPortAttribute()
6953 if { (eval echo configure
:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6955 eval "ac_cv_lib_$ac_lib_var=yes"
6957 echo "configure: failed program was:" >&5
6958 cat conftest.
$ac_ext >&5
6960 eval "ac_cv_lib_$ac_lib_var=no"
6963 LIBS
="$ac_save_LIBS"
6966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6967 echo "$ac_t""yes" 1>&6
6968 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6969 PLUGINS
="${PLUGINS} xvideo"
6970 xvideo_LDFLAGS
="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6971 xvideo_CFLAGS
="${xvideo_CFLAGS} -I$x_includes"
6973 echo "$ac_t""no" 1>&6
6974 # We don't have Xv_pic, let's make xvideo.a as builtin
6975 BUILTINS
="${BUILTINS} xvideo"
6976 xvideo_LDFLAGS
="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6977 xvideo_CFLAGS
="${xvideo_CFLAGS} -I$x_includes"
6980 CFLAGS
="$save_CFLAGS"
6982 CPPFLAGS
="$save_CPPFLAGS"
6984 echo "$ac_t""no" 1>&6
6990 # Check whether --enable-sdl or --disable-sdl was given.
6991 if test "${enable_sdl+set}" = set; then
6992 enableval
="$enable_sdl"
6996 if test "x$enable_sdl" != "xno"
6999 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7000 if test "${with_sdl_config_path+set}" = set; then
7001 withval
="$with_sdl_config_path"
7002 if test "x$with_sdl_config_path" != "xno"
7004 SDL_PATH
="$with_sdl_config_path:$PATH"
7008 # Extract the first word of "sdl12-config", so it can be a program name with args.
7009 set dummy sdl12-config
; ac_word
=$2
7010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7011 echo "configure:7012: checking for $ac_word" >&5
7012 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7013 echo $ac_n "(cached) $ac_c" 1>&6
7015 case "$SDL12_CONFIG" in
7017 ac_cv_path_SDL12_CONFIG
="$SDL12_CONFIG" # Let the user override the test with a path.
7020 ac_cv_path_SDL12_CONFIG
="$SDL12_CONFIG" # Let the user override the test with a dos path.
7023 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7024 ac_dummy
="$SDL_PATH"
7025 for ac_dir
in $ac_dummy; do
7026 test -z "$ac_dir" && ac_dir
=.
7027 if test -f $ac_dir/$ac_word; then
7028 ac_cv_path_SDL12_CONFIG
="$ac_dir/$ac_word"
7033 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG
="no"
7037 SDL12_CONFIG
="$ac_cv_path_SDL12_CONFIG"
7038 if test -n "$SDL12_CONFIG"; then
7039 echo "$ac_t""$SDL12_CONFIG" 1>&6
7041 echo "$ac_t""no" 1>&6
7044 SDL_CONFIG
=${SDL12_CONFIG}
7045 SDL_HEADER
="SDL12/SDL.h"
7046 if test x
${SDL_CONFIG} = xno
7048 # Extract the first word of "sdl11-config", so it can be a program name with args.
7049 set dummy sdl11-config
; ac_word
=$2
7050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7051 echo "configure:7052: checking for $ac_word" >&5
7052 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7053 echo $ac_n "(cached) $ac_c" 1>&6
7055 case "$SDL11_CONFIG" in
7057 ac_cv_path_SDL11_CONFIG
="$SDL11_CONFIG" # Let the user override the test with a path.
7060 ac_cv_path_SDL11_CONFIG
="$SDL11_CONFIG" # Let the user override the test with a dos path.
7063 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7064 ac_dummy
="$SDL_PATH"
7065 for ac_dir
in $ac_dummy; do
7066 test -z "$ac_dir" && ac_dir
=.
7067 if test -f $ac_dir/$ac_word; then
7068 ac_cv_path_SDL11_CONFIG
="$ac_dir/$ac_word"
7073 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG
="no"
7077 SDL11_CONFIG
="$ac_cv_path_SDL11_CONFIG"
7078 if test -n "$SDL11_CONFIG"; then
7079 echo "$ac_t""$SDL11_CONFIG" 1>&6
7081 echo "$ac_t""no" 1>&6
7084 SDL_CONFIG
=${SDL11_CONFIG}
7085 SDL_HEADER
="SDL11/SDL.h"
7087 if test x
${SDL_CONFIG} = xno
7089 # Extract the first word of "sdl-config", so it can be a program name with args.
7090 set dummy sdl-config
; ac_word
=$2
7091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7092 echo "configure:7093: checking for $ac_word" >&5
7093 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7096 case "$SDL_CONFIG" in
7098 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
7101 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a dos path.
7104 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7105 ac_dummy
="$SDL_PATH"
7106 for ac_dir
in $ac_dummy; do
7107 test -z "$ac_dir" && ac_dir
=.
7108 if test -f $ac_dir/$ac_word; then
7109 ac_cv_path_SDL_CONFIG
="$ac_dir/$ac_word"
7114 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
7118 SDL_CONFIG
="$ac_cv_path_SDL_CONFIG"
7119 if test -n "$SDL_CONFIG"; then
7120 echo "$ac_t""$SDL_CONFIG" 1>&6
7122 echo "$ac_t""no" 1>&6
7125 SDL_HEADER
="SDL/SDL.h"
7127 if test x
${SDL_CONFIG} != xno
7129 PLUGINS
="${PLUGINS} sdl"
7130 sdl_CFLAGS
="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7131 sdl_LDFLAGS
="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7132 CPPFLAGS
="$save_CPPFLAGS $sdl_CFLAGS"
7133 for ac_hdr
in ${SDL_HEADER}
7135 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7137 echo "configure:7138: checking for $ac_hdr" >&5
7138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7139 echo $ac_n "(cached) $ac_c" 1>&6
7141 cat > conftest.
$ac_ext <<EOF
7142 #line 7143 "configure"
7143 #include "confdefs.h"
7146 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7147 { (eval echo configure
:7148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7148 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7149 if test -z "$ac_err"; then
7151 eval "ac_cv_header_$ac_safe=yes"
7154 echo "configure: failed program was:" >&5
7155 cat conftest.
$ac_ext >&5
7157 eval "ac_cv_header_$ac_safe=no"
7161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7162 echo "$ac_t""yes" 1>&6
7163 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7164 cat >> confdefs.h
<<EOF
7165 #define $ac_tr_hdr 1
7167 cat >> confdefs.h
<<EOF
7168 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7172 echo "$ac_t""no" 1>&6
7173 { echo "configure: error: The development package for SDL is not installed.
7174 Please install it and try again. Alternatively you can also configure with
7175 --disable-sdl." 1>&2; exit 1; }
7180 CPPFLAGS
="$save_CPPFLAGS"
7181 if expr 1.1.5 \
> `$SDL_CONFIG --version` >/dev
/null
7183 { echo "configure: error: The development package for SDL is not installed.
7184 Please install it and try again. Alternatively you can also configure with
7185 --disable-sdl." 1>&2; exit 1; }
7187 elif test "x$enable_sdl" = "xyes"
7189 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7190 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7195 # Check whether --enable-directx or --disable-directx was given.
7196 if test "${enable_directx+set}" = set; then
7197 enableval
="$enable_directx"
7201 if test "x$enable_directx" != "xno"
7203 if test x
$SYS = xmingw32
7205 # Check whether --with-directx or --without-directx was given.
7206 if test "${with_directx+set}" = set; then
7207 withval
="$with_directx"
7211 if test "x$with_directx" = "x"
7213 for ac_hdr
in ddraw.h
7215 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7217 echo "configure:7218: checking for $ac_hdr" >&5
7218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7219 echo $ac_n "(cached) $ac_c" 1>&6
7221 cat > conftest.
$ac_ext <<EOF
7222 #line 7223 "configure"
7223 #include "confdefs.h"
7226 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7227 { (eval echo configure
:7228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7228 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7229 if test -z "$ac_err"; then
7231 eval "ac_cv_header_$ac_safe=yes"
7234 echo "configure: failed program was:" >&5
7235 cat conftest.
$ac_ext >&5
7237 eval "ac_cv_header_$ac_safe=no"
7241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7242 echo "$ac_t""yes" 1>&6
7243 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7244 cat >> confdefs.h
<<EOF
7245 #define $ac_tr_hdr 1
7247 PLUGINS
="${PLUGINS} directx"
7248 directx_LDFLAGS
="${directx_LDFLAGS} -lgdi32"
7250 echo "$ac_t""no" 1>&6
7255 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7256 echo "configure:7257: checking for directX headers in ${with_directx}" >&5
7257 if test -f ${with_directx}/ddraw.h
7259 PLUGINS
="${PLUGINS} directx"
7260 directx_LDFLAGS
="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7261 directx_CFLAGS
="${directx_CFLAGS} -I${with_directx}"
7262 echo "$ac_t""yes" 1>&6
7264 echo "$ac_t""no" 1>&6
7265 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7271 # Check whether --enable-fb or --disable-fb was given.
7272 if test "${enable_fb+set}" = set; then
7273 enableval
="$enable_fb"
7277 if test x
$enable_fb != xno
7279 for ac_hdr
in linux
/fb.h
7281 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7283 echo "configure:7284: checking for $ac_hdr" >&5
7284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7285 echo $ac_n "(cached) $ac_c" 1>&6
7287 cat > conftest.
$ac_ext <<EOF
7288 #line 7289 "configure"
7289 #include "confdefs.h"
7292 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7293 { (eval echo configure
:7294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7294 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7295 if test -z "$ac_err"; then
7297 eval "ac_cv_header_$ac_safe=yes"
7300 echo "configure: failed program was:" >&5
7301 cat conftest.
$ac_ext >&5
7303 eval "ac_cv_header_$ac_safe=no"
7307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7308 echo "$ac_t""yes" 1>&6
7309 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7310 cat >> confdefs.h
<<EOF
7311 #define $ac_tr_hdr 1
7314 PLUGINS
="${PLUGINS} fb"
7317 echo "$ac_t""no" 1>&6
7323 # Check whether --enable-mga or --disable-mga was given.
7324 if test "${enable_mga+set}" = set; then
7325 enableval
="$enable_mga"
7326 if test x
$enable_mga = xyes
7328 PLUGINS
="${PLUGINS} mga xmga"
7333 # Check whether --enable-ggi or --disable-ggi was given.
7334 if test "${enable_ggi+set}" = set; then
7335 enableval
="$enable_ggi"
7339 if test x
$enable_ggi = xyes
7341 PLUGINS
="${PLUGINS} ggi"
7342 ggi_LDFLAGS
="${ggi_LDFLAGS} -lggi"
7343 # Check whether --with-ggi or --without-ggi was given.
7344 if test "${with_ggi+set}" = set; then
7346 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7348 CFLAGS_GGI
="${CFLAGS_GGI} -I$with_ggi/include"
7349 ggi_LDFLAGS
="${ggi_LDFLAGS} -L$with_ggi/lib"
7355 # Check whether --enable-glide or --disable-glide was given.
7356 if test "${enable_glide+set}" = set; then
7357 enableval
="$enable_glide"
7361 if test x
$enable_glide = xyes
7363 PLUGINS
="${PLUGINS} glide"
7364 glide_LDFLAGS
="${glide_LDFLAGS} -lglide2x -lm"
7365 glide_CFLAGS
="${glide_CFLAGS} -I/usr/include/glide"
7366 # Check whether --with-glide or --without-glide was given.
7367 if test "${with_glide+set}" = set; then
7368 withval
="$with_glide"
7369 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7371 glide_CFLAGS
="${glide_CFLAGS} -I$with_glide/include"
7372 glide_LDFLAGS
="${glide_LDFLAGS} -L$with_glide/lib"
7378 # Check whether --enable-aa or --disable-aa was given.
7379 if test "${enable_aa+set}" = set; then
7380 enableval
="$enable_aa"
7384 if test x
$enable_aa = xyes
7386 ac_safe
=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7387 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7388 echo "configure:7389: checking for aalib.h" >&5
7389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7390 echo $ac_n "(cached) $ac_c" 1>&6
7392 cat > conftest.
$ac_ext <<EOF
7393 #line 7394 "configure"
7394 #include "confdefs.h"
7397 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7398 { (eval echo configure
:7399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7399 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7400 if test -z "$ac_err"; then
7402 eval "ac_cv_header_$ac_safe=yes"
7405 echo "configure: failed program was:" >&5
7406 cat conftest.
$ac_ext >&5
7408 eval "ac_cv_header_$ac_safe=no"
7412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7413 echo "$ac_t""yes" 1>&6
7416 echo "$ac_t""no" 1>&6
7420 if test x
$have_aa = xtrue
7422 PLUGINS
="${PLUGINS} aa"
7423 aa_LDFLAGS
="${aa_LDFLAGS} -laa"
7428 # Check whether --with- or --without- was given.
7429 if test "${with_+set}" = set; then
7435 # Check whether --enable-dsp or --disable-dsp was given.
7436 if test "${enable_dsp+set}" = set; then
7437 enableval
="$enable_dsp"
7442 if test x
$enable_dsp != xno
&&
7443 (test x
$SYS != xmingw32 ||
test x
$enable_dsp = xyes
)
7445 for ac_hdr
in soundcard.h sys
/soundcard.h machine
/soundcard.h
7447 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7449 echo "configure:7450: checking for $ac_hdr" >&5
7450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7451 echo $ac_n "(cached) $ac_c" 1>&6
7453 cat > conftest.
$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7458 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7459 { (eval echo configure
:7460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7460 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7461 if test -z "$ac_err"; then
7463 eval "ac_cv_header_$ac_safe=yes"
7466 echo "configure: failed program was:" >&5
7467 cat conftest.
$ac_ext >&5
7469 eval "ac_cv_header_$ac_safe=no"
7473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7474 echo "$ac_t""yes" 1>&6
7475 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7476 cat >> confdefs.h
<<EOF
7477 #define $ac_tr_hdr 1
7480 PLUGINS
="${PLUGINS} dsp"
7481 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7482 echo "configure:7483: checking for main in -lossaudio" >&5
7483 ac_lib_var
=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7487 ac_save_LIBS
="$LIBS"
7488 LIBS
="-lossaudio $LIBS"
7489 cat > conftest.
$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7497 if { (eval echo configure
:7498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7499 eval "ac_cv_lib_$ac_lib_var=yes"
7501 echo "configure: failed program was:" >&5
7502 cat conftest.
$ac_ext >&5
7504 eval "ac_cv_lib_$ac_lib_var=no"
7507 LIBS
="$ac_save_LIBS"
7510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7511 echo "$ac_t""yes" 1>&6
7512 dsp_LDFLAGS
="${dsp_LDFLAGS} -lossaudio"
7514 echo "$ac_t""no" 1>&6
7519 echo "$ac_t""no" 1>&6
7525 # Check whether --enable-esd or --disable-esd was given.
7526 if test "${enable_esd+set}" = set; then
7527 enableval
="$enable_esd"
7528 if test x
$enable_esd = xyes
7530 # Extract the first word of "esd-config", so it can be a program name with args.
7531 set dummy esd-config
; ac_word
=$2
7532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7533 echo "configure:7534: checking for $ac_word" >&5
7534 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7535 echo $ac_n "(cached) $ac_c" 1>&6
7537 case "$ESD_CONFIG" in
7539 ac_cv_path_ESD_CONFIG
="$ESD_CONFIG" # Let the user override the test with a path.
7542 ac_cv_path_ESD_CONFIG
="$ESD_CONFIG" # Let the user override the test with a dos path.
7545 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7547 for ac_dir
in $ac_dummy; do
7548 test -z "$ac_dir" && ac_dir
=.
7549 if test -f $ac_dir/$ac_word; then
7550 ac_cv_path_ESD_CONFIG
="$ac_dir/$ac_word"
7555 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG
="no"
7559 ESD_CONFIG
="$ac_cv_path_ESD_CONFIG"
7560 if test -n "$ESD_CONFIG"; then
7561 echo "$ac_t""$ESD_CONFIG" 1>&6
7563 echo "$ac_t""no" 1>&6
7566 if test x
${ESD_CONFIG} != xno
7568 PLUGINS
="${PLUGINS} esd"
7569 esd_CFLAGS
="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7570 esd_LDFLAGS
="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7576 # Check whether --enable-arts or --disable-arts was given.
7577 if test "${enable_arts+set}" = set; then
7578 enableval
="$enable_arts"
7579 if test x
$enable_arts = xyes
7581 # Extract the first word of "artsc-config", so it can be a program name with args.
7582 set dummy artsc-config
; ac_word
=$2
7583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7584 echo "configure:7585: checking for $ac_word" >&5
7585 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 case "$ARTS_CONFIG" in
7590 ac_cv_path_ARTS_CONFIG
="$ARTS_CONFIG" # Let the user override the test with a path.
7593 ac_cv_path_ARTS_CONFIG
="$ARTS_CONFIG" # Let the user override the test with a dos path.
7596 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7598 for ac_dir
in $ac_dummy; do
7599 test -z "$ac_dir" && ac_dir
=.
7600 if test -f $ac_dir/$ac_word; then
7601 ac_cv_path_ARTS_CONFIG
="$ac_dir/$ac_word"
7606 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG
="no"
7610 ARTS_CONFIG
="$ac_cv_path_ARTS_CONFIG"
7611 if test -n "$ARTS_CONFIG"; then
7612 echo "$ac_t""$ARTS_CONFIG" 1>&6
7614 echo "$ac_t""no" 1>&6
7617 if test x
${ARTS_CONFIG} != xno
7619 PLUGINS
="${PLUGINS} arts"
7620 arts_CFLAGS
="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7621 arts_LDFLAGS
="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7627 # Check whether --enable-alsa or --disable-alsa was given.
7628 if test "${enable_alsa+set}" = set; then
7629 enableval
="$enable_alsa"
7630 if test x
$enable_alsa = xyes
7632 ac_safe
=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7633 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7634 echo "configure:7635: checking for alsa/asoundlib.h" >&5
7635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7636 echo $ac_n "(cached) $ac_c" 1>&6
7638 cat > conftest.
$ac_ext <<EOF
7639 #line 7640 "configure"
7640 #include "confdefs.h"
7641 #include <alsa/asoundlib.h>
7643 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7644 { (eval echo configure
:7645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7645 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7646 if test -z "$ac_err"; then
7648 eval "ac_cv_header_$ac_safe=yes"
7651 echo "configure: failed program was:" >&5
7652 cat conftest.
$ac_ext >&5
7654 eval "ac_cv_header_$ac_safe=no"
7658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7659 echo "$ac_t""yes" 1>&6
7660 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7661 echo "configure:7662: checking for main in -lasound" >&5
7662 ac_lib_var
=`echo asound'_'main | sed 'y%./+-%__p_%'`
7663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7666 ac_save_LIBS
="$LIBS"
7667 LIBS
="-lasound $LIBS"
7668 cat > conftest.
$ac_ext <<EOF
7669 #line 7670 "configure"
7670 #include "confdefs.h"
7676 if { (eval echo configure
:7677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7678 eval "ac_cv_lib_$ac_lib_var=yes"
7680 echo "configure: failed program was:" >&5
7681 cat conftest.
$ac_ext >&5
7683 eval "ac_cv_lib_$ac_lib_var=no"
7686 LIBS
="$ac_save_LIBS"
7689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7690 echo "$ac_t""yes" 1>&6
7693 echo "$ac_t""no" 1>&6
7698 echo "$ac_t""no" 1>&6
7702 if test x
$have_alsa = xtrue
7704 PLUGINS
="${PLUGINS} alsa"
7705 alsa_LDFLAGS
="${alsa_LDFLAGS} -lasound -lm -ldl"
7711 # Check whether --enable-waveout or --disable-waveout was given.
7712 if test "${enable_waveout+set}" = set; then
7713 enableval
="$enable_waveout"
7717 if test "x$enable_waveout" != "xno" -a x
$SYS = xmingw32
7719 PLUGINS
="${PLUGINS} waveout"
7720 waveout_LDFLAGS
="-lwinmm"
7724 # Check whether --with- or --without- was given.
7725 if test "${with_+set}" = set; then
7731 # Check whether --enable-gtk or --disable-gtk was given.
7732 if test "${enable_gtk+set}" = set; then
7733 enableval
="$enable_gtk"
7737 if test x
$enable_gtk != xno
7740 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7741 if test "${with_gtk_config_path+set}" = set; then
7742 withval
="$with_gtk_config_path"
7743 if test "x$with_gtk_config_path" != "xno"
7745 GTK_PATH
="$with_gtk_config_path:$PATH"
7749 # look for gtk-config
7750 # Extract the first word of "gtk12-config", so it can be a program name with args.
7751 set dummy gtk12-config
; ac_word
=$2
7752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7753 echo "configure:7754: checking for $ac_word" >&5
7754 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7757 case "$GTK12_CONFIG" in
7759 ac_cv_path_GTK12_CONFIG
="$GTK12_CONFIG" # Let the user override the test with a path.
7762 ac_cv_path_GTK12_CONFIG
="$GTK12_CONFIG" # Let the user override the test with a dos path.
7765 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7766 ac_dummy
="$GTK_PATH"
7767 for ac_dir
in $ac_dummy; do
7768 test -z "$ac_dir" && ac_dir
=.
7769 if test -f $ac_dir/$ac_word; then
7770 ac_cv_path_GTK12_CONFIG
="$ac_dir/$ac_word"
7775 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG
="no"
7779 GTK12_CONFIG
="$ac_cv_path_GTK12_CONFIG"
7780 if test -n "$GTK12_CONFIG"; then
7781 echo "$ac_t""$GTK12_CONFIG" 1>&6
7783 echo "$ac_t""no" 1>&6
7786 GTK_CONFIG
=${GTK12_CONFIG}
7787 if test x
${GTK_CONFIG} = xno
7789 # Extract the first word of "gtk-config", so it can be a program name with args.
7790 set dummy gtk-config
; ac_word
=$2
7791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7792 echo "configure:7793: checking for $ac_word" >&5
7793 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7794 echo $ac_n "(cached) $ac_c" 1>&6
7796 case "$GTK_CONFIG" in
7798 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
7801 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
7804 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7805 ac_dummy
="$GTK_PATH"
7806 for ac_dir
in $ac_dummy; do
7807 test -z "$ac_dir" && ac_dir
=.
7808 if test -f $ac_dir/$ac_word; then
7809 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
7814 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
7818 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
7819 if test -n "$GTK_CONFIG"; then
7820 echo "$ac_t""$GTK_CONFIG" 1>&6
7822 echo "$ac_t""no" 1>&6
7826 if test x
${GTK_CONFIG} != xno
7828 if expr 1.2.0 \
> `$GTK_CONFIG --version` >/dev
/null
7830 { 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; }
7832 gtk_CFLAGS
="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7833 gtk_LDFLAGS
="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7834 # now look for the gtk.h header
7835 CPPFLAGS
="$save_CPPFLAGS $gtk_CFLAGS"
7836 ac_cv_gtk_headers
=yes
7837 for ac_hdr
in gtk
/gtk.h glib.h gdk
/gdk.h
7839 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7841 echo "configure:7842: checking for $ac_hdr" >&5
7842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6
7845 cat > conftest.
$ac_ext <<EOF
7846 #line 7847 "configure"
7847 #include "confdefs.h"
7850 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7851 { (eval echo configure
:7852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7852 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7853 if test -z "$ac_err"; then
7855 eval "ac_cv_header_$ac_safe=yes"
7858 echo "configure: failed program was:" >&5
7859 cat conftest.
$ac_ext >&5
7861 eval "ac_cv_header_$ac_safe=no"
7865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7866 echo "$ac_t""yes" 1>&6
7867 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7868 cat >> confdefs.h
<<EOF
7869 #define $ac_tr_hdr 1
7873 echo "$ac_t""no" 1>&6
7874 ac_cv_gtk_headers
=no
7875 echo "Cannot find gtk development headers."
7880 if test "x$ac_cv_gtk_headers" = xyes
7882 PLUGINS
="${PLUGINS} gtk"
7883 ALIASES
="${ALIASES} gvlc"
7885 CPPFLAGS
="$save_CPPFLAGS"
7889 # Check whether --enable-gnome or --disable-gnome was given.
7890 if test "${enable_gnome+set}" = set; then
7891 enableval
="$enable_gnome"
7892 if test x
$enable_gnome = xyes
; then
7893 # look for gnome-config
7894 # Extract the first word of "gnome-config", so it can be a program name with args.
7895 set dummy gnome-config
; ac_word
=$2
7896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7897 echo "configure:7898: checking for $ac_word" >&5
7898 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7899 echo $ac_n "(cached) $ac_c" 1>&6
7901 case "$GNOME_CONFIG" in
7903 ac_cv_path_GNOME_CONFIG
="$GNOME_CONFIG" # Let the user override the test with a path.
7906 ac_cv_path_GNOME_CONFIG
="$GNOME_CONFIG" # Let the user override the test with a dos path.
7909 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7911 for ac_dir
in $ac_dummy; do
7912 test -z "$ac_dir" && ac_dir
=.
7913 if test -f $ac_dir/$ac_word; then
7914 ac_cv_path_GNOME_CONFIG
="$ac_dir/$ac_word"
7919 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG
="no"
7923 GNOME_CONFIG
="$ac_cv_path_GNOME_CONFIG"
7924 if test -n "$GNOME_CONFIG"; then
7925 echo "$ac_t""$GNOME_CONFIG" 1>&6
7927 echo "$ac_t""no" 1>&6
7930 if test -x ${GNOME_CONFIG}
7932 gnome_CFLAGS
="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7933 gnome_LDFLAGS
="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7935 # now look for the gnome.h header
7936 CPPFLAGS
="$save_CPPFLAGS $gnome_CFLAGS"
7937 for ac_hdr
in gnome.h
7939 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7941 echo "configure:7942: checking for $ac_hdr" >&5
7942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7943 echo $ac_n "(cached) $ac_c" 1>&6
7945 cat > conftest.
$ac_ext <<EOF
7946 #line 7947 "configure"
7947 #include "confdefs.h"
7950 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7951 { (eval echo configure
:7952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7952 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7953 if test -z "$ac_err"; then
7955 eval "ac_cv_header_$ac_safe=yes"
7958 echo "configure: failed program was:" >&5
7959 cat conftest.
$ac_ext >&5
7961 eval "ac_cv_header_$ac_safe=no"
7965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7966 echo "$ac_t""yes" 1>&6
7967 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7968 cat >> confdefs.h
<<EOF
7969 #define $ac_tr_hdr 1
7972 PLUGINS
="${PLUGINS} gnome"
7973 ALIASES
="${ALIASES} gnome-vlc"
7976 echo "$ac_t""no" 1>&6
7977 { echo "configure: error: Can't find gnome headers. Please install the gnome
7978 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7983 CPPFLAGS
="$save_CPPFLAGS"
7988 # Check whether --enable-qt or --disable-qt was given.
7989 if test "${enable_qt+set}" = set; then
7990 enableval
="$enable_qt"
7991 if test x
$enable_qt = xyes
; then
7992 PLUGINS
="${PLUGINS} qt"
7993 ALIASES
="${ALIASES} qvlc"
7994 qt_LDFLAGS
="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7995 qt_CFLAGS
="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7996 if test -x ${QTDIR}/bin
/moc
7998 MOC
=${QTDIR}/bin
/moc
8006 # Check whether --enable-kde or --disable-kde was given.
8007 if test "${enable_kde+set}" = set; then
8008 enableval
="$enable_kde"
8009 if test x
$enable_kde = xyes
; then
8010 PLUGINS
="${PLUGINS} kde"
8011 ALIASES
="${ALIASES} kvlc"
8012 kde_LDFLAGS
="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8013 kde_CFLAGS
="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8014 kde_CFLAGS
="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8015 if test -x ${QTDIR}/bin
/moc
8017 MOC
=${QTDIR}/bin
/moc
8025 # Check whether --enable-macosx or --disable-macosx was given.
8026 if test "${enable_macosx+set}" = set; then
8027 enableval
="$enable_macosx"
8028 if test x
$enable_macosx = xyes
8030 BUILTINS
="${BUILTINS} macosx"
8031 macosx_LDFLAGS
="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8034 for ac_hdr
in Cocoa
/Cocoa.h
8036 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8038 echo "configure:8039: checking for $ac_hdr" >&5
8039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8042 cat > conftest.
$ac_ext <<EOF
8043 #line 8044 "configure"
8044 #include "confdefs.h"
8047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8048 { (eval echo configure
:8049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8049 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8050 if test -z "$ac_err"; then
8052 eval "ac_cv_header_$ac_safe=yes"
8055 echo "configure: failed program was:" >&5
8056 cat conftest.
$ac_ext >&5
8058 eval "ac_cv_header_$ac_safe=no"
8062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8063 echo "$ac_t""yes" 1>&6
8064 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8065 cat >> confdefs.h
<<EOF
8066 #define $ac_tr_hdr 1
8068 BUILTINS
="${BUILTINS} macosx"
8069 macosx_LDFLAGS
="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8072 echo "$ac_t""no" 1>&6
8079 # Check whether --enable-qnx or --disable-qnx was given.
8080 if test "${enable_qnx+set}" = set; then
8081 enableval
="$enable_qnx"
8085 if test x
$enable_qnx != xno
8089 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8091 echo "configure:8092: checking for $ac_hdr" >&5
8092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8093 echo $ac_n "(cached) $ac_c" 1>&6
8095 cat > conftest.
$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8100 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8101 { (eval echo configure
:8102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8102 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8103 if test -z "$ac_err"; then
8105 eval "ac_cv_header_$ac_safe=yes"
8108 echo "configure: failed program was:" >&5
8109 cat conftest.
$ac_ext >&5
8111 eval "ac_cv_header_$ac_safe=no"
8115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8116 echo "$ac_t""yes" 1>&6
8117 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8118 cat >> confdefs.h
<<EOF
8119 #define $ac_tr_hdr 1
8122 PLUGINS
="${PLUGINS} qnx"
8123 qnx_LDFLAGS
="${qnx_LDFLAGS} -lasound -lph"
8126 echo "$ac_t""no" 1>&6
8132 # Check whether --enable-intfwin or --disable-intfwin was given.
8133 if test "${enable_intfwin+set}" = set; then
8134 enableval
="$enable_intfwin"
8135 if test "x$enable_intfwin" != "xno"
8137 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8138 if test "${with_bcbuilder+set}" = set; then
8139 withval
="$with_bcbuilder"
8143 if test "x$with_bcbuilder" != "x"
8145 BCBUILDER
="$with_bcbuilder"
8147 PLUGINS
="${PLUGINS} intfwin"
8152 # Check whether --enable-ncurses or --disable-ncurses was given.
8153 if test "${enable_ncurses+set}" = set; then
8154 enableval
="$enable_ncurses"
8155 if test x
$enable_ncurses = xyes
; then
8156 PLUGINS
="${PLUGINS} ncurses"
8157 ncurses_LDFLAGS
="${ncurses_LDFLAGS} -lncurses"
8162 # Check whether --enable-lirc or --disable-lirc was given.
8163 if test "${enable_lirc+set}" = set; then
8164 enableval
="$enable_lirc"
8168 if test x
$enable_lirc = xyes
8170 ac_safe
=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8171 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8172 echo "configure:8173: checking for lirc/lirc_client.h" >&5
8173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8174 echo $ac_n "(cached) $ac_c" 1>&6
8176 cat > conftest.
$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8179 #include <lirc/lirc_client.h>
8181 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8182 { (eval echo configure
:8183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8183 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8184 if test -z "$ac_err"; then
8186 eval "ac_cv_header_$ac_safe=yes"
8189 echo "configure: failed program was:" >&5
8190 cat conftest.
$ac_ext >&5
8192 eval "ac_cv_header_$ac_safe=no"
8196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8197 echo "$ac_t""yes" 1>&6
8198 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8199 echo "configure:8200: checking for lirc_init in -llirc_client" >&5
8200 ac_lib_var
=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8202 echo $ac_n "(cached) $ac_c" 1>&6
8204 ac_save_LIBS
="$LIBS"
8205 LIBS
="-llirc_client $LIBS"
8206 cat > conftest.
$ac_ext <<EOF
8207 #line 8208 "configure"
8208 #include "confdefs.h"
8209 /* Override any gcc2 internal prototype to avoid an error. */
8210 /* We use char because int might match the return type of a gcc2
8211 builtin and then its argument prototype would still apply. */
8218 if { (eval echo configure
:8219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8220 eval "ac_cv_lib_$ac_lib_var=yes"
8222 echo "configure: failed program was:" >&5
8223 cat conftest.
$ac_ext >&5
8225 eval "ac_cv_lib_$ac_lib_var=no"
8228 LIBS
="$ac_save_LIBS"
8231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8232 echo "$ac_t""yes" 1>&6
8235 echo "$ac_t""no" 1>&6
8240 echo "$ac_t""no" 1>&6
8244 if test x
$have_lirc = xtrue
8246 PLUGINS
="${PLUGINS} lirc"
8247 lirc_LDFLAGS
="${lirc_LDFLAGS} -llirc_client"
8251 # Check whether --with- or --without- was given.
8252 if test "${with_+set}" = set; then
8258 # Check whether --with-words or --without-words was given.
8259 if test "${with_words+set}" = set; then
8260 withval
="$with_words"
8264 case "x$with_words" in
8266 ac_cv_c_bigendian
=yes
8269 ac_cv_c_bigendian
=no
8272 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8273 echo "configure:8274: checking whether the byte order is big-endian" >&5
8274 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8275 echo $ac_n "(cached) $ac_c" 1>&6
8277 ac_cv_c_bigendian
=unknown
8278 cat >conftest.c
<<EOF
8279 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8280 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8281 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8282 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8283 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8284 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8285 int main(void) { _a(); _e(); return 0; }
8288 if test -f conftest.c
8290 if ${CC-cc} -c conftest.c
-o conftest.o
>config.log
2>&1 \
8291 && test -f conftest.o
8293 if test "`strings conftest.o | grep BIGenDianSyS`"
8295 ac_cv_c_bigendian
=yes
8297 if test "`strings conftest.o | grep LiTTleEnDian`"
8299 ac_cv_c_bigendian
=no
8306 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8307 if test x
$ac_cv_c_bigendian = xunknown
8309 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8313 if test $ac_cv_c_bigendian = yes
8315 cat >> confdefs.h
<<\EOF
8316 #define WORDS_BIGENDIAN 1
8322 # Check whether --enable-gprof or --disable-gprof was given.
8323 if test "${enable_gprof+set}" = set; then
8324 enableval
="$enable_gprof"
8325 if test "x$enable_gprof" = "xyes"; then GPROF
=1; fi
8330 # Check whether --enable-cprof or --disable-cprof was given.
8331 if test "${enable_cprof+set}" = set; then
8332 enableval
="$enable_cprof"
8333 if test "x$enable_cprof" = "xyes";
8335 LDFLAGS
="${LDFLAGS} -lcprof"
8342 # Check whether --enable-pth or --disable-pth was given.
8343 if test "${enable_pth+set}" = set; then
8344 enableval
="$enable_pth"
8345 if test "x$enable_pth" = "xyes"; then
8346 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8347 echo "configure:8348: checking for pth_init in -lpth" >&5
8348 ac_lib_var
=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8350 echo $ac_n "(cached) $ac_c" 1>&6
8352 ac_save_LIBS
="$LIBS"
8354 cat > conftest.
$ac_ext <<EOF
8355 #line 8356 "configure"
8356 #include "confdefs.h"
8357 /* Override any gcc2 internal prototype to avoid an error. */
8358 /* We use char because int might match the return type of a gcc2
8359 builtin and then its argument prototype would still apply. */
8366 if { (eval echo configure
:8367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8368 eval "ac_cv_lib_$ac_lib_var=yes"
8370 echo "configure: failed program was:" >&5
8371 cat conftest.
$ac_ext >&5
8373 eval "ac_cv_lib_$ac_lib_var=no"
8376 LIBS
="$ac_save_LIBS"
8379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8380 echo "$ac_t""yes" 1>&6
8381 ac_tr_lib
=HAVE_LIB
`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8382 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8383 cat >> confdefs.h
<<EOF
8384 #define $ac_tr_lib 1
8390 echo "$ac_t""no" 1>&6
8393 cat > conftest.
$ac_ext <<EOF
8394 #line 8395 "configure"
8395 #include "confdefs.h"
8398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8399 egrep "pth_init" >/dev
/null
2>&1; then
8402 cat >> confdefs.h
<<\EOF
8403 #define PTH_INIT_IN_PTH_H 1
8415 # Check whether --enable-st or --disable-st was given.
8416 if test "${enable_st+set}" = set; then
8417 enableval
="$enable_st"
8418 if test "x$enable_st" = "xyes"; then
8419 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8420 echo "configure:8421: checking for st_init in -lst" >&5
8421 ac_lib_var
=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8423 echo $ac_n "(cached) $ac_c" 1>&6
8425 ac_save_LIBS
="$LIBS"
8427 cat > conftest.
$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8430 /* Override any gcc2 internal prototype to avoid an error. */
8431 /* We use char because int might match the return type of a gcc2
8432 builtin and then its argument prototype would still apply. */
8439 if { (eval echo configure
:8440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8441 eval "ac_cv_lib_$ac_lib_var=yes"
8443 echo "configure: failed program was:" >&5
8444 cat conftest.
$ac_ext >&5
8446 eval "ac_cv_lib_$ac_lib_var=no"
8449 LIBS
="$ac_save_LIBS"
8452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8453 echo "$ac_t""yes" 1>&6
8454 ac_tr_lib
=HAVE_LIB
`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8455 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8456 cat >> confdefs.h
<<EOF
8457 #define $ac_tr_lib 1
8463 echo "$ac_t""no" 1>&6
8466 cat > conftest.
$ac_ext <<EOF
8467 #line 8468 "configure"
8468 #include "confdefs.h"
8471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8472 egrep "st_init" >/dev
/null
2>&1; then
8475 cat >> confdefs.h
<<\EOF
8476 #define ST_INIT_IN_ST_H 1
8488 LDFLAGS
="${LDFLAGS} ${THREAD_LIB}"
8490 # Check whether --enable-plugins or --disable-plugins was given.
8491 if test "${enable_plugins+set}" = set; then
8492 enableval
="$enable_plugins"
8493 if test x
$enable_plugins = xno
8495 BUILTINS
="${BUILTINS} ${PLUGINS}"
8501 if test x
$ac_cv_header_dlfcn_h = xno
-a x
$ac_cv_header_image_h = xno
-a x
$SYS != xmingw32
8503 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8505 BUILTINS
="${BUILTINS} ${PLUGINS}"
8509 cat >> confdefs.h
<<EOF
8510 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8513 cat >> confdefs.h
<<EOF
8514 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8518 VLC_SYMBOL
="`echo ${VERSION} | tr .- __`"
8519 cat >> confdefs.h
<<EOF
8520 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8523 cat >> confdefs.h
<<EOF
8524 #define MODULE_SYMBOL $VLC_SYMBOL
8528 DATA_PATH
="${ac_tool_prefix}/share/videolan"
8530 PLUGIN_PATH
="${ac_tool_prefix}/share/videolan"
8628 cat > confcache
<<\EOF
8629 # This file is a shell script that caches the results of configure
8630 # tests run on this system so they can be shared between configure
8631 # scripts and configure runs. It is not useful on other systems.
8632 # If it contains results you don't want to keep, you may remove or edit it.
8634 # By default, configure uses ./config.cache as the cache file,
8635 # creating it if it does not exist already. You can give configure
8636 # the --cache-file=FILE option to use a different cache file; that is
8637 # what configure does when it calls configure scripts in
8638 # subdirectories, so they share the cache.
8639 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8640 # config.status only pays attention to the cache file if you give it the
8641 # --recheck option to rerun configure.
8644 # The following way of writing the cache mishandles newlines in values,
8645 # but we know of no workaround that is simple, portable, and efficient.
8646 # So, don't put newlines in cache variables' values.
8647 # Ultrix sh set writes to stderr and can't be redirected directly,
8648 # and sets the high bit in the cache file unless we assign to the vars.
8650 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8652 # `set' does not quote correctly, so add quotes (double-quote substitution
8653 # turns \\\\ into \\, and sed turns \\ into \).
8655 -e "s/'/'\\\\''/g" \
8656 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8659 # `set' quotes correctly as required by POSIX, so do not add quotes.
8660 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8663 if cmp -s $cache_file confcache
; then
8666 if test -w $cache_file; then
8667 echo "updating cache $cache_file"
8668 cat confcache
> $cache_file
8670 echo "not updating unwritable cache $cache_file"
8675 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8677 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8678 # Let make expand exec_prefix.
8679 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8681 # Any assignment to VPATH causes Sun make to only execute
8682 # the first set of double-colon rules, so remove it if not needed.
8683 # If there is a colon in the path, we need to keep it.
8684 if test "x$srcdir" = x.
; then
8685 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8688 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8690 DEFS
=-DHAVE_CONFIG_H
8692 # Without the "./", some shells look in PATH for config.status.
8693 : ${CONFIG_STATUS=./config.status}
8695 echo creating
$CONFIG_STATUS
8696 rm -f $CONFIG_STATUS
8697 cat > $CONFIG_STATUS <<EOF
8699 # Generated automatically by configure.
8700 # Run this file to recreate the current configuration.
8701 # This directory was configured as follows,
8702 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8704 # $0 $ac_configure_args
8706 # Compiler output produced by configure, useful for debugging
8707 # configure, is in ./config.log if it exists.
8709 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8712 case "\$ac_option" in
8713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8714 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8715 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8716 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8717 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8719 -help | --help | --hel | --he | --h)
8720 echo "\$ac_cs_usage"; exit 0 ;;
8721 *) echo "\$ac_cs_usage"; exit 1 ;;
8725 ac_given_srcdir=$srcdir
8726 ac_given_INSTALL="$INSTALL"
8728 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8730 cat >> $CONFIG_STATUS <<EOF
8732 # Protect against being on the right side of a sed subst in config.status.
8733 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8734 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8738 s%@CFLAGS@%$CFLAGS%g
8739 s%@CPPFLAGS@%$CPPFLAGS%g
8740 s%@CXXFLAGS@%$CXXFLAGS%g
8741 s%@FFLAGS@%$FFLAGS%g
8743 s%@LDFLAGS@%$LDFLAGS%g
8745 s%@exec_prefix@%$exec_prefix%g
8746 s%@prefix@%$prefix%g
8747 s%@program_transform_name@%$program_transform_name%g
8748 s%@bindir@%$bindir%g
8749 s%@sbindir@%$sbindir%g
8750 s%@libexecdir@%$libexecdir%g
8751 s%@datadir@%$datadir%g
8752 s%@sysconfdir@%$sysconfdir%g
8753 s%@sharedstatedir@%$sharedstatedir%g
8754 s%@localstatedir@%$localstatedir%g
8755 s%@libdir@%$libdir%g
8756 s%@includedir@%$includedir%g
8757 s%@oldincludedir@%$oldincludedir%g
8758 s%@infodir@%$infodir%g
8759 s%@mandir@%$mandir%g
8761 s%@host_alias@%$host_alias%g
8762 s%@host_cpu@%$host_cpu%g
8763 s%@host_vendor@%$host_vendor%g
8764 s%@host_os@%$host_os%g
8765 s%@target@%$target%g
8766 s%@target_alias@%$target_alias%g
8767 s%@target_cpu@%$target_cpu%g
8768 s%@target_vendor@%$target_vendor%g
8769 s%@target_os@%$target_os%g
8771 s%@build_alias@%$build_alias%g
8772 s%@build_cpu@%$build_cpu%g
8773 s%@build_vendor@%$build_vendor%g
8774 s%@build_os@%$build_os%g
8775 s%@SET_MAKE@%$SET_MAKE%g
8778 s%@RANLIB@%$RANLIB%g
8781 s%@ALLOCA@%$ALLOCA%g
8782 s%@GLIBC21@%$GLIBC21%g
8783 s%@LIBICONV@%$LIBICONV%g
8784 s%@USE_NLS@%$USE_NLS%g
8785 s%@MSGFMT@%$MSGFMT%g
8786 s%@GMSGFMT@%$GMSGFMT%g
8787 s%@XGETTEXT@%$XGETTEXT%g
8788 s%@INTLBISON@%$INTLBISON%g
8789 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8790 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8791 s%@CATALOGS@%$CATALOGS%g
8792 s%@CATOBJEXT@%$CATOBJEXT%g
8793 s%@GMOFILES@%$GMOFILES%g
8794 s%@INTLLIBS@%$INTLLIBS%g
8795 s%@INTLOBJS@%$INTLOBJS%g
8796 s%@POFILES@%$POFILES%g
8798 s%@DATADIRNAME@%$DATADIRNAME%g
8799 s%@INSTOBJEXT@%$INSTOBJEXT%g
8800 s%@GENCAT@%$GENCAT%g
8801 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8802 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8803 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8804 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8805 s%@INSTALL_DATA@%$INSTALL_DATA%g
8806 s%@WINDRES@%$WINDRES%g
8807 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8808 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8809 s%@SDL_CONFIG@%$SDL_CONFIG%g
8810 s%@ESD_CONFIG@%$ESD_CONFIG%g
8811 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8812 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8813 s%@GTK_CONFIG@%$GTK_CONFIG%g
8814 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8815 s%@DATA_PATH@%$DATA_PATH%g
8816 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8819 s%@PLUGINS@%$PLUGINS%g
8820 s%@BUILTINS@%$BUILTINS%g
8821 s%@ALIASES@%$ALIASES%g
8826 s%@OPTIMS@%$OPTIMS%g
8827 s%@TUNING@%$TUNING%g
8828 s%@RELEASE@%$RELEASE%g
8830 s%@BCBUILDER@%$BCBUILDER%g
8831 s%@PACKAGE@%$PACKAGE%g
8832 s%@VERSION@%$VERSION%g
8833 s%@NEED_GETOPT@%$NEED_GETOPT%g
8834 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8835 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8836 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8837 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8838 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8839 s%@a52_CFLAGS@%$a52_CFLAGS%g
8840 s%@arts_CFLAGS@%$arts_CFLAGS%g
8841 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8842 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8843 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8844 s%@directx_CFLAGS@%$directx_CFLAGS%g
8845 s%@esd_CFLAGS@%$esd_CFLAGS%g
8846 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8847 s%@glide_CFLAGS@%$glide_CFLAGS%g
8848 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8849 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8850 s%@kde_CFLAGS@%$kde_CFLAGS%g
8851 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8852 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8853 s%@mad_CFLAGS@%$mad_CFLAGS%g
8854 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8855 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8856 s%@qt_CFLAGS@%$qt_CFLAGS%g
8857 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8858 s%@x11_CFLAGS@%$x11_CFLAGS%g
8859 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8860 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8861 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8862 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8863 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8864 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8865 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8866 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8867 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8868 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8869 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8870 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8871 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8872 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8873 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8874 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8875 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8876 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8877 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8878 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8879 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8880 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8881 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8882 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8883 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8884 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8885 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8886 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
8887 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8888 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8889 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8890 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8891 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8892 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8893 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8894 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8895 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8896 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8897 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8898 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8899 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8900 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8901 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8902 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8907 cat >> $CONFIG_STATUS <<\EOF
8909 # Split the substitutions into bite-sized pieces for seds with
8910 # small command number limits, like on Digital OSF/1 and HP-UX.
8911 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8912 ac_file
=1 # Number of current file.
8913 ac_beg
=1 # First line for current file.
8914 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8917 while $ac_more_lines; do
8918 if test $ac_beg -gt 1; then
8919 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8921 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8923 if test ! -s conftest.s
$ac_file; then
8925 rm -f conftest.s
$ac_file
8927 if test -z "$ac_sed_cmds"; then
8928 ac_sed_cmds
="sed -f conftest.s$ac_file"
8930 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8932 ac_file
=`expr $ac_file + 1`
8934 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8937 if test -z "$ac_sed_cmds"; then
8942 cat >> $CONFIG_STATUS <<EOF
8944 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
8946 cat >> $CONFIG_STATUS <<\EOF
8947 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8950 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8951 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8952 *) ac_file_in
="${ac_file}.in" ;;
8955 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8957 # Remove last slash and all that follows it. Not all systems have dirname.
8958 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8959 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8960 # The file is in a subdirectory.
8961 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8962 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8963 # A "../" for each directory in $ac_dir_suffix.
8964 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8966 ac_dir_suffix
= ac_dots
=
8969 case "$ac_given_srcdir" in
8971 if test -z "$ac_dots"; then top_srcdir
=.
8972 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8973 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8975 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8976 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8979 case "$ac_given_INSTALL" in
8980 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8981 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8984 echo creating
"$ac_file"
8986 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8988 *Makefile
*) ac_comsub
="1i\\
8989 # $configure_input" ;;
8993 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8995 s%@configure_input@%$configure_input%g
8996 s%@srcdir@%$srcdir%g
8997 s%@top_srcdir@%$top_srcdir%g
8998 s%@INSTALL@%$INSTALL%g
8999 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9003 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9004 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9006 # ac_d sets the value in "#define NAME VALUE" lines.
9007 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9008 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9011 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9012 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9013 ac_uB
='\([ ]\)%\1#\2define\3'
9016 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9017 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9018 ac_eB
='$%\1#\2define\3'
9022 if test "${CONFIG_HEADERS+set}" != set; then
9024 cat >> $CONFIG_STATUS <<EOF
9025 CONFIG_HEADERS="include/defs.h"
9027 cat >> $CONFIG_STATUS <<\EOF
9029 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9030 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9032 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9033 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9034 *) ac_file_in
="${ac_file}.in" ;;
9037 echo creating
$ac_file
9039 rm -f conftest.frag conftest.
in conftest.out
9040 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9041 cat $ac_file_inputs > conftest.
in
9045 # Transform confdefs.h into a sed script conftest.vals that substitutes
9046 # the proper values into config.h.in to produce config.h. And first:
9047 # Protect against being on the right side of a sed subst in config.status.
9048 # Protect against being in an unquoted here document in config.status.
9050 cat > conftest.hdr
<<\EOF
9053 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9057 sed -n -f conftest.hdr confdefs.h > conftest.vals
9060 # This sed command replaces #undef with comments. This is necessary, for
9061 # example, in the case of _POSIX_SOURCE, which is predefined and required
9062 # on some systems where configure will not decide to define it.
9063 cat >> conftest.vals <<\EOF
9064 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9067 # Break up conftest.vals because some shells have a limit on
9068 # the size of here documents, and old seds have small limits too.
9073 ac_lines=`grep -c . conftest.vals
`
9074 # grep -c gives empty output for an empty file on some AIX systems.
9075 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9076 # Write a limited-size here document to conftest.frag.
9077 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9078 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9080 sed -f conftest.frag conftest.in > conftest.out
9082 mv conftest.out conftest.in
9084 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9086 mv conftest.tail conftest.vals
9090 cat >> $CONFIG_STATUS <<\EOF
9091 rm -f conftest.frag conftest.h
9092 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9093 cat conftest.in >> conftest.h
9095 if cmp -s $ac_file conftest.h 2>/dev/null; then
9096 echo "$ac_file is unchanged"
9099 # Remove last slash and all that follows it. Not all systems have dirname.
9100 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9101 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9102 # The file is in a subdirectory.
9103 test ! -d "$ac_dir" && mkdir "$ac_dir"
9106 mv conftest.h $ac_file
9111 cat >> $CONFIG_STATUS <<EOF
9115 cat >> $CONFIG_STATUS <<\EOF
9116 for ac_file in $CONFIG_FILES; do
9117 # Support "outfile[:infile[:infile...]]"
9119 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
9121 # PO directories have a Makefile.in generated from Makefile.in.in.
9122 case "$ac_file" in */Makefile.in)
9123 # Adjust a relative srcdir.
9124 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
9125 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
9126 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
9127 # In autoconf-2.13 it is called $ac_given_srcdir.
9128 # In autoconf-2.50 it is called $srcdir.
9129 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9130 case "$ac_given_srcdir" in
9131 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
9132 /*) top_srcdir="$ac_given_srcdir" ;;
9133 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9135 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9136 rm -f "$ac_dir/POTFILES"
9137 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9138 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9139 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9140 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9148 chmod +x $CONFIG_STATUS
9149 rm -fr confdefs* $ac_clean_files
9150 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9155 --------------------
9156 vlc version : ${VERSION}
9158 architecture : ${ARCH}
9159 optimizations : ${OPTIMS}
9161 debug mode : ${DEBUG}
9162 release : ${RELEASE}
9163 cprof/gprof support : ${CPROF}/${GPROF}
9164 need builtin getopt : ${NEED_GETOPT}
9165 built-in modules :${BUILTINS}
9166 plug-in modules :${PLUGINS}
9167 vlc aliases :${ALIASES}
9169 You may now tune Makefile.opts at your convenience, for instance to choose
9170 which modules get compiled as plugins.
9172 To build vlc and its plugins, type \`$VLC_MAKE'.